tempest.games 0.2.72 → 0.2.74
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 +14 -0
- package/app/assets/{index-BQfBw87O.js → index-DQgXn3W_.js} +23 -23
- package/app/index.html +1 -1
- package/bin/backend.bun.js +215 -928
- package/bin/backend.worker.game.bun.js +0 -713
- package/bin/backend.worker.tribunal.bun.js +219 -932
- package/bin/frontend.bun.js +215 -928
- package/bin/setup-db.bun.js +178 -178
- package/package.json +11 -11
package/bin/backend.bun.js
CHANGED
|
@@ -48457,9 +48457,6 @@ var UList = class UList2 extends Set {
|
|
|
48457
48457
|
};
|
|
48458
48458
|
|
|
48459
48459
|
// ../../packages/atom.io/dist/internal/index.js
|
|
48460
|
-
function arbitrary(random = Math.random) {
|
|
48461
|
-
return random().toString(36).slice(2);
|
|
48462
|
-
}
|
|
48463
48460
|
function newest(scion) {
|
|
48464
48461
|
while (scion.child !== null)
|
|
48465
48462
|
scion = scion.child;
|
|
@@ -49051,426 +49048,12 @@ var Junction = class Junction2 {
|
|
|
49051
49048
|
function isReservedIntrospectionKey(value) {
|
|
49052
49049
|
return value.startsWith(`\uD83D\uDD0D `);
|
|
49053
49050
|
}
|
|
49054
|
-
var abortTransaction = (target) => {
|
|
49055
|
-
target.logger.info(`\uD83E\uDE82`, `transaction`, target.transactionMeta.update.token.key, `Aborting transaction`);
|
|
49056
|
-
target.parent.child = null;
|
|
49057
|
-
};
|
|
49058
|
-
function actUponStore(store, token, id) {
|
|
49059
|
-
return (...parameters) => {
|
|
49060
|
-
return withdraw(store, token).run(parameters, id);
|
|
49061
|
-
};
|
|
49062
|
-
}
|
|
49063
|
-
function ingestAtomUpdateEvent(store, event, applying) {
|
|
49064
|
-
const { token, update: { newValue, oldValue } } = event;
|
|
49065
|
-
setIntoStore(store, token, applying === `newValue` ? newValue : oldValue);
|
|
49066
|
-
}
|
|
49067
|
-
function getTrace(error) {
|
|
49068
|
-
const { stack } = error;
|
|
49069
|
-
if (stack)
|
|
49070
|
-
return `
|
|
49071
|
-
` + stack.split(`
|
|
49072
|
-
`)?.slice(1)?.join(`
|
|
49073
|
-
`);
|
|
49074
|
-
return ``;
|
|
49075
|
-
}
|
|
49076
|
-
function allocateIntoStore(store, provenance, key, dependsOn = `any`) {
|
|
49077
|
-
const origin = provenance;
|
|
49078
|
-
const stringKey = stringifyJson(key);
|
|
49079
|
-
const invalidKeys = [];
|
|
49080
|
-
const target = newest(store);
|
|
49081
|
-
if (Array.isArray(origin))
|
|
49082
|
-
for (const formerClaim of origin) {
|
|
49083
|
-
const claimString = stringifyJson(formerClaim);
|
|
49084
|
-
if (target.molecules.get(claimString))
|
|
49085
|
-
store.moleculeGraph.set(claimString, stringKey, { source: claimString });
|
|
49086
|
-
else
|
|
49087
|
-
invalidKeys.push(claimString);
|
|
49088
|
-
}
|
|
49089
|
-
else {
|
|
49090
|
-
const claimString = stringifyJson(origin);
|
|
49091
|
-
if (target.molecules.get(claimString))
|
|
49092
|
-
store.moleculeGraph.set(claimString, stringKey, { source: claimString });
|
|
49093
|
-
else
|
|
49094
|
-
invalidKeys.push(claimString);
|
|
49095
|
-
}
|
|
49096
|
-
const subject = new Subject;
|
|
49097
|
-
if (invalidKeys.length === 0)
|
|
49098
|
-
target.molecules.set(stringKey, {
|
|
49099
|
-
key,
|
|
49100
|
-
stringKey,
|
|
49101
|
-
dependsOn,
|
|
49102
|
-
subject
|
|
49103
|
-
});
|
|
49104
|
-
const creationEvent = {
|
|
49105
|
-
type: `molecule_creation`,
|
|
49106
|
-
key,
|
|
49107
|
-
provenance: origin,
|
|
49108
|
-
timestamp: Date.now()
|
|
49109
|
-
};
|
|
49110
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
49111
|
-
target.transactionMeta.update.subEvents.push(creationEvent);
|
|
49112
|
-
else
|
|
49113
|
-
target.on.moleculeCreation.next(creationEvent);
|
|
49114
|
-
for (const claim of invalidKeys) {
|
|
49115
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === claim);
|
|
49116
|
-
store.logger.error(`\u274C`, `key`, key, `allocation failed:`, `Could not allocate to ${claim} in store "${store.config.name}".`, disposal ? `
|
|
49117
|
-
${claim} was most recently disposed
|
|
49118
|
-
${disposal.trace}` : `No previous disposal trace for ${claim} was found.`);
|
|
49119
|
-
}
|
|
49120
|
-
return key;
|
|
49121
|
-
}
|
|
49122
|
-
function deallocateFromStore(target, claim) {
|
|
49123
|
-
const stringKey = stringifyJson(claim);
|
|
49124
|
-
const molecule = target.molecules.get(stringKey);
|
|
49125
|
-
if (!molecule) {
|
|
49126
|
-
const disposal = target.disposalTraces.buffer.find((item) => item?.key === stringKey);
|
|
49127
|
-
target.logger.error(`\u274C`, `key`, claim, `deallocation failed:`, `Could not find allocation for ${stringKey} in store "${target.config.name}".`, disposal ? `
|
|
49128
|
-
This state was most recently deallocated
|
|
49129
|
-
${disposal.trace}` : `No previous disposal trace for ${stringKey} was found.`);
|
|
49130
|
-
return;
|
|
49131
|
-
}
|
|
49132
|
-
molecule.subject.next();
|
|
49133
|
-
const joinKeys = target.keyRefsInJoins.getRelatedKeys(stringKey);
|
|
49134
|
-
if (joinKeys)
|
|
49135
|
-
for (const joinKey of joinKeys) {
|
|
49136
|
-
const join$1 = target.joins.get(joinKey);
|
|
49137
|
-
if (join$1)
|
|
49138
|
-
join$1.relations.delete(claim);
|
|
49139
|
-
}
|
|
49140
|
-
else {
|
|
49141
|
-
const compound = decomposeCompound(claim);
|
|
49142
|
-
if (compound) {
|
|
49143
|
-
const [, a2, b2] = compound;
|
|
49144
|
-
const joinKey = target.keyRefsInJoins.getRelatedKey(simpleCompound(a2, b2));
|
|
49145
|
-
if (joinKey) {
|
|
49146
|
-
const join$1 = target.joins.get(joinKey);
|
|
49147
|
-
if (join$1)
|
|
49148
|
-
join$1.relations.delete(a2, b2);
|
|
49149
|
-
}
|
|
49150
|
-
}
|
|
49151
|
-
}
|
|
49152
|
-
target.keyRefsInJoins.delete(stringKey);
|
|
49153
|
-
const provenance = [];
|
|
49154
|
-
const values = [];
|
|
49155
|
-
const relatedMolecules = target.moleculeGraph.getRelationEntries({ downstreamMoleculeKey: stringKey });
|
|
49156
|
-
if (relatedMolecules)
|
|
49157
|
-
for (const [relatedStringKey, { source }] of relatedMolecules)
|
|
49158
|
-
if (source === stringKey)
|
|
49159
|
-
deallocateFromStore(target, parseJson(relatedStringKey));
|
|
49160
|
-
else
|
|
49161
|
-
provenance.push(source);
|
|
49162
|
-
const familyKeys = target.moleculeData.getRelatedKeys(molecule.stringKey);
|
|
49163
|
-
if (familyKeys)
|
|
49164
|
-
for (const familyKey of familyKeys) {
|
|
49165
|
-
const family = target.families.get(familyKey);
|
|
49166
|
-
const value = getFromStore(target, family, claim);
|
|
49167
|
-
values.push([family.key, value]);
|
|
49168
|
-
disposeFromStore(target, family, claim);
|
|
49169
|
-
}
|
|
49170
|
-
const disposalEvent = {
|
|
49171
|
-
type: `molecule_disposal`,
|
|
49172
|
-
key: molecule.key,
|
|
49173
|
-
values,
|
|
49174
|
-
provenance,
|
|
49175
|
-
timestamp: Date.now()
|
|
49176
|
-
};
|
|
49177
|
-
target.molecules.delete(stringKey);
|
|
49178
|
-
const isTransaction = isChildStore(target) && target.transactionMeta.phase === `building`;
|
|
49179
|
-
if (isTransaction)
|
|
49180
|
-
target.transactionMeta.update.subEvents.push(disposalEvent);
|
|
49181
|
-
target.moleculeGraph.delete(molecule.stringKey);
|
|
49182
|
-
target.keyRefsInJoins.delete(molecule.stringKey);
|
|
49183
|
-
target.moleculeData.delete(molecule.stringKey);
|
|
49184
|
-
if (!isTransaction)
|
|
49185
|
-
target.on.moleculeDisposal.next(disposalEvent);
|
|
49186
|
-
target.molecules.delete(molecule.stringKey);
|
|
49187
|
-
const trace = getTrace(/* @__PURE__ */ new Error);
|
|
49188
|
-
target.disposalTraces.add({
|
|
49189
|
-
key: stringKey,
|
|
49190
|
-
trace
|
|
49191
|
-
});
|
|
49192
|
-
}
|
|
49193
|
-
function claimWithinStore(store, newProvenance, claim, exclusive) {
|
|
49194
|
-
const stringKey = stringifyJson(claim);
|
|
49195
|
-
const target = newest(store);
|
|
49196
|
-
const molecule = target.molecules.get(stringKey);
|
|
49197
|
-
if (!molecule) {
|
|
49198
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === stringKey);
|
|
49199
|
-
store.logger.error(`\u274C`, `key`, stringKey, `claim failed:`, `Could not allocate to ${stringKey} in store "${store.config.name}".`, disposal ? `
|
|
49200
|
-
${stringKey} was most recently disposed
|
|
49201
|
-
${disposal.trace}` : `No previous disposal trace for ${stringKey} was found.`);
|
|
49202
|
-
return claim;
|
|
49203
|
-
}
|
|
49204
|
-
const newProvenanceKey = stringifyJson(newProvenance);
|
|
49205
|
-
const newProvenanceMolecule = target.molecules.get(newProvenanceKey);
|
|
49206
|
-
if (!newProvenanceMolecule) {
|
|
49207
|
-
const disposal = store.disposalTraces.buffer.find((item) => item?.key === newProvenanceKey);
|
|
49208
|
-
store.logger.error(`\u274C`, `key`, claim, `claim failed:`, `Could not allocate to ${newProvenanceKey} in store "${store.config.name}".`, disposal ? `
|
|
49209
|
-
${newProvenanceKey} was most recently disposed
|
|
49210
|
-
${disposal.trace}` : `No previous disposal trace for ${newProvenanceKey} was found.`);
|
|
49211
|
-
return claim;
|
|
49212
|
-
}
|
|
49213
|
-
const priorProvenance = store.moleculeGraph.getRelationEntries({ downstreamMoleculeKey: molecule.stringKey }).filter(([, { source }]) => source !== stringKey).map(([key]) => parseJson(key));
|
|
49214
|
-
if (exclusive)
|
|
49215
|
-
target.moleculeGraph.delete(stringKey);
|
|
49216
|
-
target.moleculeGraph.set({
|
|
49217
|
-
upstreamMoleculeKey: newProvenanceMolecule.stringKey,
|
|
49218
|
-
downstreamMoleculeKey: molecule.stringKey
|
|
49219
|
-
}, { source: newProvenanceMolecule.stringKey });
|
|
49220
|
-
const transferEvent = {
|
|
49221
|
-
type: `molecule_transfer`,
|
|
49222
|
-
key: molecule.key,
|
|
49223
|
-
exclusive: Boolean(exclusive),
|
|
49224
|
-
from: priorProvenance,
|
|
49225
|
-
to: [newProvenanceMolecule.key],
|
|
49226
|
-
timestamp: Date.now()
|
|
49227
|
-
};
|
|
49228
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
49229
|
-
target.transactionMeta.update.subEvents.push(transferEvent);
|
|
49230
|
-
return claim;
|
|
49231
|
-
}
|
|
49232
|
-
function ingestCreationEvent(store, event, applying) {
|
|
49233
|
-
switch (applying) {
|
|
49234
|
-
case `newValue`:
|
|
49235
|
-
createInStore(store, event);
|
|
49236
|
-
break;
|
|
49237
|
-
case `oldValue`:
|
|
49238
|
-
disposeFromStore(store, event.token);
|
|
49239
|
-
break;
|
|
49240
|
-
}
|
|
49241
|
-
}
|
|
49242
|
-
function ingestDisposalEvent(store, event, applying) {
|
|
49243
|
-
switch (applying) {
|
|
49244
|
-
case `newValue`:
|
|
49245
|
-
disposeFromStore(store, event.token);
|
|
49246
|
-
break;
|
|
49247
|
-
case `oldValue`:
|
|
49248
|
-
createInStore(store, event);
|
|
49249
|
-
if (event.subType === `atom`)
|
|
49250
|
-
store.valueMap.set(event.token.key, event.value);
|
|
49251
|
-
break;
|
|
49252
|
-
}
|
|
49253
|
-
}
|
|
49254
|
-
function createInStore(store, event) {
|
|
49255
|
-
const { token } = event;
|
|
49256
|
-
if (event.subType === `writable` && event.value)
|
|
49257
|
-
setIntoStore(store, token, event.value);
|
|
49258
|
-
else
|
|
49259
|
-
getFromStore(store, token);
|
|
49260
|
-
}
|
|
49261
|
-
function ingestMoleculeCreationEvent(store, event, applying) {
|
|
49262
|
-
switch (applying) {
|
|
49263
|
-
case `newValue`:
|
|
49264
|
-
allocateIntoStore(store, event.provenance, event.key);
|
|
49265
|
-
break;
|
|
49266
|
-
case `oldValue`:
|
|
49267
|
-
deallocateFromStore(store, event.key);
|
|
49268
|
-
break;
|
|
49269
|
-
}
|
|
49270
|
-
}
|
|
49271
|
-
function ingestMoleculeDisposalEvent(store, event, applying) {
|
|
49272
|
-
switch (applying) {
|
|
49273
|
-
case `newValue`:
|
|
49274
|
-
deallocateFromStore(store, event.key);
|
|
49275
|
-
break;
|
|
49276
|
-
case `oldValue`:
|
|
49277
|
-
allocateIntoStore(store, event.provenance.map(parseJson), event.key);
|
|
49278
|
-
for (const [familyKey, value] of event.values) {
|
|
49279
|
-
const family = store.families.get(familyKey);
|
|
49280
|
-
if (family) {
|
|
49281
|
-
getFromStore(store, family, event.key);
|
|
49282
|
-
const memberKey = `${familyKey}(${stringifyJson(event.key)})`;
|
|
49283
|
-
store.valueMap.set(memberKey, value);
|
|
49284
|
-
}
|
|
49285
|
-
}
|
|
49286
|
-
break;
|
|
49287
|
-
}
|
|
49288
|
-
}
|
|
49289
|
-
function ingestMoleculeTransferEvent(store, event, applying) {
|
|
49290
|
-
switch (applying) {
|
|
49291
|
-
case `newValue`:
|
|
49292
|
-
for (const newOwner of event.to)
|
|
49293
|
-
claimWithinStore(store, newOwner, event.key, event.exclusive ? `exclusive` : undefined);
|
|
49294
|
-
break;
|
|
49295
|
-
case `oldValue`:
|
|
49296
|
-
{
|
|
49297
|
-
let exclusivity = `exclusive`;
|
|
49298
|
-
for (const previousOwner of event.from) {
|
|
49299
|
-
claimWithinStore(store, previousOwner, event.key, exclusivity);
|
|
49300
|
-
exclusivity = undefined;
|
|
49301
|
-
}
|
|
49302
|
-
}
|
|
49303
|
-
break;
|
|
49304
|
-
}
|
|
49305
|
-
}
|
|
49306
|
-
function ingestTransactionOutcomeEvent(store, event, applying) {
|
|
49307
|
-
const subEvents = applying === `newValue` ? event.subEvents : [...event.subEvents].reverse();
|
|
49308
|
-
for (const subEvent of subEvents)
|
|
49309
|
-
switch (subEvent.type) {
|
|
49310
|
-
case `atom_update`:
|
|
49311
|
-
ingestAtomUpdateEvent(store, subEvent, applying);
|
|
49312
|
-
break;
|
|
49313
|
-
case `state_creation`:
|
|
49314
|
-
ingestCreationEvent(store, subEvent, applying);
|
|
49315
|
-
break;
|
|
49316
|
-
case `state_disposal`:
|
|
49317
|
-
ingestDisposalEvent(store, subEvent, applying);
|
|
49318
|
-
break;
|
|
49319
|
-
case `molecule_creation`:
|
|
49320
|
-
ingestMoleculeCreationEvent(store, subEvent, applying);
|
|
49321
|
-
break;
|
|
49322
|
-
case `molecule_disposal`:
|
|
49323
|
-
ingestMoleculeDisposalEvent(store, subEvent, applying);
|
|
49324
|
-
break;
|
|
49325
|
-
case `molecule_transfer`:
|
|
49326
|
-
ingestMoleculeTransferEvent(store, subEvent, applying);
|
|
49327
|
-
break;
|
|
49328
|
-
case `transaction_outcome`:
|
|
49329
|
-
ingestTransactionOutcomeEvent(store, subEvent, applying);
|
|
49330
|
-
break;
|
|
49331
|
-
}
|
|
49332
|
-
}
|
|
49333
49051
|
function isRootStore(store) {
|
|
49334
49052
|
return `epoch` in store.transactionMeta;
|
|
49335
49053
|
}
|
|
49336
49054
|
function isChildStore(store) {
|
|
49337
49055
|
return `phase` in store.transactionMeta;
|
|
49338
49056
|
}
|
|
49339
|
-
function getContinuityKey(store, transactionKey) {
|
|
49340
|
-
return store.transactionMeta.actionContinuities.getRelatedKey(transactionKey);
|
|
49341
|
-
}
|
|
49342
|
-
function getEpochNumberOfContinuity(store, continuityKey) {
|
|
49343
|
-
return store.transactionMeta.epoch.get(continuityKey);
|
|
49344
|
-
}
|
|
49345
|
-
function getEpochNumberOfAction(store, transactionKey) {
|
|
49346
|
-
const continuityKey = getContinuityKey(store, transactionKey);
|
|
49347
|
-
if (continuityKey === undefined)
|
|
49348
|
-
return;
|
|
49349
|
-
return getEpochNumberOfContinuity(store, continuityKey);
|
|
49350
|
-
}
|
|
49351
|
-
function setEpochNumberOfAction(store, transactionKey, newEpoch) {
|
|
49352
|
-
const continuityKey = getContinuityKey(store, transactionKey);
|
|
49353
|
-
if (continuityKey !== undefined)
|
|
49354
|
-
store.transactionMeta.epoch.set(continuityKey, newEpoch);
|
|
49355
|
-
}
|
|
49356
|
-
function applyTransaction(store, output) {
|
|
49357
|
-
const child = newest(store);
|
|
49358
|
-
const { parent } = child;
|
|
49359
|
-
child.transactionMeta.phase = `applying`;
|
|
49360
|
-
child.transactionMeta.update.output = output;
|
|
49361
|
-
parent.child = null;
|
|
49362
|
-
parent.on.transactionApplying.next(child.transactionMeta);
|
|
49363
|
-
const { subEvents: updates } = child.transactionMeta.update;
|
|
49364
|
-
store.logger.info(`\uD83D\uDEC4`, `transaction`, child.transactionMeta.update.token.key, `applying ${updates.length} subEvents:`, updates);
|
|
49365
|
-
ingestTransactionOutcomeEvent(parent, child.transactionMeta.update, `newValue`);
|
|
49366
|
-
if (isRootStore(parent)) {
|
|
49367
|
-
setEpochNumberOfAction(parent, child.transactionMeta.update.token.key, child.transactionMeta.update.epoch);
|
|
49368
|
-
withdraw(store, {
|
|
49369
|
-
key: child.transactionMeta.update.token.key,
|
|
49370
|
-
type: `transaction`
|
|
49371
|
-
})?.subject.next(child.transactionMeta.update);
|
|
49372
|
-
store.logger.info(`\uD83D\uDEEC`, `transaction`, child.transactionMeta.update.token.key, `applied`);
|
|
49373
|
-
} else if (isChildStore(parent))
|
|
49374
|
-
parent.transactionMeta.update.subEvents.push(child.transactionMeta.update);
|
|
49375
|
-
parent.on.transactionApplying.next(null);
|
|
49376
|
-
}
|
|
49377
|
-
function getEnvironmentData(store) {
|
|
49378
|
-
return { store };
|
|
49379
|
-
}
|
|
49380
|
-
var buildTransaction = (store, token, params, id) => {
|
|
49381
|
-
const parent = newest(store);
|
|
49382
|
-
const childBase = {
|
|
49383
|
-
parent,
|
|
49384
|
-
child: null,
|
|
49385
|
-
on: parent.on,
|
|
49386
|
-
loggers: parent.loggers,
|
|
49387
|
-
logger: parent.logger,
|
|
49388
|
-
config: parent.config,
|
|
49389
|
-
atoms: new MapOverlay(parent.atoms),
|
|
49390
|
-
atomsThatAreDefault: new Set(parent.atomsThatAreDefault),
|
|
49391
|
-
families: new MapOverlay(parent.families),
|
|
49392
|
-
joins: new MapOverlay(parent.joins),
|
|
49393
|
-
operation: { open: false },
|
|
49394
|
-
readonlySelectors: new MapOverlay(parent.readonlySelectors),
|
|
49395
|
-
timelines: new MapOverlay(parent.timelines),
|
|
49396
|
-
timelineTopics: parent.timelineTopics.overlay(),
|
|
49397
|
-
trackers: /* @__PURE__ */ new Map,
|
|
49398
|
-
transactions: new MapOverlay(parent.transactions),
|
|
49399
|
-
selectorAtoms: parent.selectorAtoms.overlay(),
|
|
49400
|
-
selectorGraph: parent.selectorGraph.overlay(),
|
|
49401
|
-
writableSelectors: new MapOverlay(parent.writableSelectors),
|
|
49402
|
-
valueMap: new MapOverlay(parent.valueMap),
|
|
49403
|
-
defaults: parent.defaults,
|
|
49404
|
-
disposalTraces: store.disposalTraces.copy(),
|
|
49405
|
-
molecules: new MapOverlay(parent.molecules),
|
|
49406
|
-
moleculeGraph: parent.moleculeGraph.overlay(),
|
|
49407
|
-
moleculeData: parent.moleculeData.overlay(),
|
|
49408
|
-
keyRefsInJoins: parent.keyRefsInJoins.overlay(),
|
|
49409
|
-
miscResources: new MapOverlay(parent.miscResources)
|
|
49410
|
-
};
|
|
49411
|
-
const epoch = getEpochNumberOfAction(store, token.key);
|
|
49412
|
-
const transactionMeta = {
|
|
49413
|
-
phase: `building`,
|
|
49414
|
-
update: {
|
|
49415
|
-
type: `transaction_outcome`,
|
|
49416
|
-
token,
|
|
49417
|
-
id,
|
|
49418
|
-
epoch: epoch === undefined ? NaN : epoch + 1,
|
|
49419
|
-
timestamp: Date.now(),
|
|
49420
|
-
subEvents: [],
|
|
49421
|
-
params,
|
|
49422
|
-
output: undefined
|
|
49423
|
-
},
|
|
49424
|
-
toolkit: {
|
|
49425
|
-
get: (...ps) => getFromStore(child, ...ps),
|
|
49426
|
-
set: (...ps) => {
|
|
49427
|
-
setIntoStore(child, ...ps);
|
|
49428
|
-
},
|
|
49429
|
-
reset: (...ps) => {
|
|
49430
|
-
resetInStore(child, ...ps);
|
|
49431
|
-
},
|
|
49432
|
-
run: (t2, identifier = arbitrary()) => actUponStore(child, t2, identifier),
|
|
49433
|
-
find: (...ps) => findInStore(store, ...ps),
|
|
49434
|
-
json: (t2) => getJsonToken(child, t2),
|
|
49435
|
-
dispose: (...ps) => {
|
|
49436
|
-
disposeFromStore(child, ...ps);
|
|
49437
|
-
},
|
|
49438
|
-
env: () => getEnvironmentData(child)
|
|
49439
|
-
}
|
|
49440
|
-
};
|
|
49441
|
-
const child = Object.assign(childBase, { transactionMeta });
|
|
49442
|
-
parent.child = child;
|
|
49443
|
-
store.logger.info(`\uD83D\uDEEB`, `transaction`, token.key, `building with params:`, params);
|
|
49444
|
-
return child;
|
|
49445
|
-
};
|
|
49446
|
-
function createTransaction(store, options) {
|
|
49447
|
-
const { key } = options;
|
|
49448
|
-
const transactionAlreadyExists = store.transactions.has(key);
|
|
49449
|
-
const newTransaction = {
|
|
49450
|
-
key,
|
|
49451
|
-
type: `transaction`,
|
|
49452
|
-
run: (params, id) => {
|
|
49453
|
-
const target = buildTransaction(store, deposit(newTransaction), params, id);
|
|
49454
|
-
try {
|
|
49455
|
-
const { toolkit } = target.transactionMeta;
|
|
49456
|
-
const output = options.do(toolkit, ...params);
|
|
49457
|
-
applyTransaction(target, output);
|
|
49458
|
-
return output;
|
|
49459
|
-
} catch (thrown) {
|
|
49460
|
-
abortTransaction(target);
|
|
49461
|
-
store.logger.warn(`\uD83D\uDCA5`, `transaction`, key, `caught:`, thrown);
|
|
49462
|
-
throw thrown;
|
|
49463
|
-
}
|
|
49464
|
-
},
|
|
49465
|
-
install: (s2) => createTransaction(s2, options),
|
|
49466
|
-
subject: new Subject
|
|
49467
|
-
};
|
|
49468
|
-
newest(store).transactions.set(key, newTransaction);
|
|
49469
|
-
const token = deposit(newTransaction);
|
|
49470
|
-
if (!transactionAlreadyExists)
|
|
49471
|
-
store.on.transactionCreation.next(token);
|
|
49472
|
-
return token;
|
|
49473
|
-
}
|
|
49474
49057
|
var Store = class {
|
|
49475
49058
|
parent = null;
|
|
49476
49059
|
child = null;
|
|
@@ -50148,34 +49731,6 @@ function createSelectorFamily(store, options) {
|
|
|
50148
49731
|
return createWritablePureSelectorFamily(store, options);
|
|
50149
49732
|
return createReadonlyPureSelectorFamily(store, options);
|
|
50150
49733
|
}
|
|
50151
|
-
function disposeFromStore(store, ...params) {
|
|
50152
|
-
let token;
|
|
50153
|
-
if (params.length === 1)
|
|
50154
|
-
token = params[0];
|
|
50155
|
-
else {
|
|
50156
|
-
const family = params[0];
|
|
50157
|
-
const key = params[1];
|
|
50158
|
-
token = findInStore(store, family, key);
|
|
50159
|
-
}
|
|
50160
|
-
try {
|
|
50161
|
-
withdraw(store, token);
|
|
50162
|
-
} catch (_2) {
|
|
50163
|
-
store.logger.error(`\u274C`, token.type, token.key, `could not be disposed because it was not found in the store "${store.config.name}".`);
|
|
50164
|
-
return;
|
|
50165
|
-
}
|
|
50166
|
-
switch (token.type) {
|
|
50167
|
-
case `atom`:
|
|
50168
|
-
case `mutable_atom`:
|
|
50169
|
-
disposeAtom(store, token);
|
|
50170
|
-
break;
|
|
50171
|
-
case `writable_pure_selector`:
|
|
50172
|
-
case `readonly_pure_selector`:
|
|
50173
|
-
case `writable_held_selector`:
|
|
50174
|
-
case `readonly_held_selector`:
|
|
50175
|
-
disposeSelector(store, token);
|
|
50176
|
-
break;
|
|
50177
|
-
}
|
|
50178
|
-
}
|
|
50179
49734
|
function openOperation(store, token) {
|
|
50180
49735
|
if (store.operation.open) {
|
|
50181
49736
|
const rejectionTime = performance.now();
|
|
@@ -50745,85 +50300,6 @@ function createStandaloneSelector(store, options) {
|
|
|
50745
50300
|
store.on.selectorCreation.next(state);
|
|
50746
50301
|
return state;
|
|
50747
50302
|
}
|
|
50748
|
-
function disposeSelector(store, selectorToken) {
|
|
50749
|
-
const target = newest(store);
|
|
50750
|
-
const { key, type, family: familyMeta } = selectorToken;
|
|
50751
|
-
if (!familyMeta)
|
|
50752
|
-
store.logger.error(`\u274C`, type, key, `Standalone selectors cannot be disposed.`);
|
|
50753
|
-
else {
|
|
50754
|
-
if (target.molecules.get(familyMeta.subKey))
|
|
50755
|
-
target.moleculeData.delete(familyMeta.subKey, familyMeta.key);
|
|
50756
|
-
let familyToken;
|
|
50757
|
-
switch (selectorToken.type) {
|
|
50758
|
-
case `writable_held_selector`:
|
|
50759
|
-
target.writableSelectors.delete(key);
|
|
50760
|
-
familyToken = {
|
|
50761
|
-
key: familyMeta.key,
|
|
50762
|
-
type: `writable_held_selector_family`
|
|
50763
|
-
};
|
|
50764
|
-
withdraw(store, familyToken).subject.next({
|
|
50765
|
-
type: `state_disposal`,
|
|
50766
|
-
subType: `selector`,
|
|
50767
|
-
token: selectorToken,
|
|
50768
|
-
timestamp: Date.now()
|
|
50769
|
-
});
|
|
50770
|
-
break;
|
|
50771
|
-
case `writable_pure_selector`:
|
|
50772
|
-
target.writableSelectors.delete(key);
|
|
50773
|
-
familyToken = {
|
|
50774
|
-
key: familyMeta.key,
|
|
50775
|
-
type: `writable_pure_selector_family`
|
|
50776
|
-
};
|
|
50777
|
-
withdraw(store, familyToken).subject.next({
|
|
50778
|
-
type: `state_disposal`,
|
|
50779
|
-
subType: `selector`,
|
|
50780
|
-
token: selectorToken,
|
|
50781
|
-
timestamp: Date.now()
|
|
50782
|
-
});
|
|
50783
|
-
break;
|
|
50784
|
-
case `readonly_held_selector`:
|
|
50785
|
-
target.readonlySelectors.delete(key);
|
|
50786
|
-
familyToken = {
|
|
50787
|
-
key: familyMeta.key,
|
|
50788
|
-
type: `readonly_held_selector_family`
|
|
50789
|
-
};
|
|
50790
|
-
withdraw(store, familyToken).subject.next({
|
|
50791
|
-
type: `state_disposal`,
|
|
50792
|
-
subType: `selector`,
|
|
50793
|
-
token: selectorToken,
|
|
50794
|
-
timestamp: Date.now()
|
|
50795
|
-
});
|
|
50796
|
-
break;
|
|
50797
|
-
case `readonly_pure_selector`:
|
|
50798
|
-
target.readonlySelectors.delete(key);
|
|
50799
|
-
familyToken = {
|
|
50800
|
-
key: familyMeta.key,
|
|
50801
|
-
type: `readonly_pure_selector_family`
|
|
50802
|
-
};
|
|
50803
|
-
withdraw(store, familyToken).subject.next({
|
|
50804
|
-
type: `state_disposal`,
|
|
50805
|
-
subType: `selector`,
|
|
50806
|
-
token: selectorToken,
|
|
50807
|
-
timestamp: Date.now()
|
|
50808
|
-
});
|
|
50809
|
-
break;
|
|
50810
|
-
}
|
|
50811
|
-
target.valueMap.delete(key);
|
|
50812
|
-
target.selectorAtoms.delete(key);
|
|
50813
|
-
target.selectorGraph.delete(key);
|
|
50814
|
-
target.moleculeData.delete(familyMeta.key, familyMeta.subKey);
|
|
50815
|
-
store.logger.info(`\uD83D\uDD25`, selectorToken.type, key, `deleted`);
|
|
50816
|
-
if (isChildStore(target) && target.transactionMeta.phase === `building`)
|
|
50817
|
-
target.transactionMeta.update.subEvents.push({
|
|
50818
|
-
type: `state_disposal`,
|
|
50819
|
-
subType: `selector`,
|
|
50820
|
-
token: selectorToken,
|
|
50821
|
-
timestamp: Date.now()
|
|
50822
|
-
});
|
|
50823
|
-
else
|
|
50824
|
-
store.on.selectorDisposal.next(selectorToken);
|
|
50825
|
-
}
|
|
50826
|
-
}
|
|
50827
50303
|
var recallState = (store, state) => {
|
|
50828
50304
|
const target = newest(store);
|
|
50829
50305
|
if (target.operation.open)
|
|
@@ -51298,46 +50774,6 @@ function hasRole(atom, role) {
|
|
|
51298
50774
|
return false;
|
|
51299
50775
|
return atom.internalRoles.includes(role);
|
|
51300
50776
|
}
|
|
51301
|
-
function disposeAtom(store, atomToken) {
|
|
51302
|
-
const target = newest(store);
|
|
51303
|
-
const { key, family } = atomToken;
|
|
51304
|
-
const atom = withdraw(target, atomToken);
|
|
51305
|
-
if (!family)
|
|
51306
|
-
store.logger.error(`\u274C`, `atom`, key, `Standalone atoms cannot be disposed.`);
|
|
51307
|
-
else {
|
|
51308
|
-
atom.cleanup?.();
|
|
51309
|
-
const lastValue = store.valueMap.get(atom.key);
|
|
51310
|
-
const subject = withdraw(store, getFamilyOfToken(store, atomToken)).subject;
|
|
51311
|
-
const disposalEvent = {
|
|
51312
|
-
type: `state_disposal`,
|
|
51313
|
-
subType: `atom`,
|
|
51314
|
-
token: atomToken,
|
|
51315
|
-
value: lastValue,
|
|
51316
|
-
timestamp: Date.now()
|
|
51317
|
-
};
|
|
51318
|
-
subject.next(disposalEvent);
|
|
51319
|
-
const isChild = isChildStore(target);
|
|
51320
|
-
target.atoms.delete(key);
|
|
51321
|
-
target.valueMap.delete(key);
|
|
51322
|
-
target.selectorAtoms.delete(key);
|
|
51323
|
-
target.atomsThatAreDefault.delete(key);
|
|
51324
|
-
target.moleculeData.delete(family.key, family.subKey);
|
|
51325
|
-
store.timelineTopics.delete(key);
|
|
51326
|
-
if (atomToken.type === `mutable_atom`) {
|
|
51327
|
-
disposeAtom(store, getUpdateToken(atomToken));
|
|
51328
|
-
store.trackers.delete(key);
|
|
51329
|
-
}
|
|
51330
|
-
store.logger.info(`\uD83D\uDD25`, `atom`, key, `deleted`);
|
|
51331
|
-
if (isChild && target.transactionMeta.phase === `building`) {
|
|
51332
|
-
const mostRecentUpdate = target.transactionMeta.update.subEvents.at(-1);
|
|
51333
|
-
const updateAlreadyCaptured = mostRecentUpdate?.type === `molecule_disposal` && mostRecentUpdate.values.some(([k2]) => k2 === atom.family?.key);
|
|
51334
|
-
const isTracker = hasRole(atom, `tracker:signal`);
|
|
51335
|
-
if (!updateAlreadyCaptured && !isTracker)
|
|
51336
|
-
target.transactionMeta.update.subEvents.push(disposalEvent);
|
|
51337
|
-
} else
|
|
51338
|
-
store.on.atomDisposal.next(atomToken);
|
|
51339
|
-
}
|
|
51340
|
-
}
|
|
51341
50777
|
function capitalize(string) {
|
|
51342
50778
|
return string[0].toUpperCase() + string.slice(1);
|
|
51343
50779
|
}
|
|
@@ -51613,9 +51049,6 @@ function findRelationsInStore(token, key, store) {
|
|
|
51613
51049
|
}
|
|
51614
51050
|
return relations;
|
|
51615
51051
|
}
|
|
51616
|
-
function getInternalRelationsFromStore(token, store) {
|
|
51617
|
-
return getJoin(token, store).relatedKeysAtoms;
|
|
51618
|
-
}
|
|
51619
51052
|
|
|
51620
51053
|
// ../../packages/atom.io/dist/main/index.js
|
|
51621
51054
|
function mutableAtom(options) {
|
|
@@ -51630,9 +51063,6 @@ function getState(...params) {
|
|
|
51630
51063
|
function join(options) {
|
|
51631
51064
|
return createJoin(IMPLICIT.STORE, options);
|
|
51632
51065
|
}
|
|
51633
|
-
function getInternalRelations(token) {
|
|
51634
|
-
return getInternalRelationsFromStore(token, IMPLICIT.STORE);
|
|
51635
|
-
}
|
|
51636
51066
|
var PRETTY_TOKEN_TYPES = {
|
|
51637
51067
|
atom_family: `atom family`,
|
|
51638
51068
|
atom: `atom`,
|
|
@@ -51702,28 +51132,9 @@ var $validatedKey = Symbol.for(`claim`);
|
|
|
51702
51132
|
function simpleCompound(a2, b2) {
|
|
51703
51133
|
return [a2, b2].sort().join(`\x1F`);
|
|
51704
51134
|
}
|
|
51705
|
-
function decomposeCompound(compound) {
|
|
51706
|
-
if (typeof compound === `string` === false)
|
|
51707
|
-
return null;
|
|
51708
|
-
const [typeTag, components] = compound.split(`==`);
|
|
51709
|
-
if (!components)
|
|
51710
|
-
return null;
|
|
51711
|
-
const type = typeTag.slice(4);
|
|
51712
|
-
const [a2, b2] = components.split(`++`);
|
|
51713
|
-
if (type && a2 && b2)
|
|
51714
|
-
return [
|
|
51715
|
-
type,
|
|
51716
|
-
a2,
|
|
51717
|
-
b2
|
|
51718
|
-
];
|
|
51719
|
-
return null;
|
|
51720
|
-
}
|
|
51721
51135
|
function selectorFamily(options) {
|
|
51722
51136
|
return createSelectorFamily(IMPLICIT.STORE, options);
|
|
51723
51137
|
}
|
|
51724
|
-
function transaction(options) {
|
|
51725
|
-
return createTransaction(IMPLICIT.STORE, options);
|
|
51726
|
-
}
|
|
51727
51138
|
|
|
51728
51139
|
// src/backend.bun.ts
|
|
51729
51140
|
var import_cors = __toESM(require_lib(), 1);
|
|
@@ -51739,7 +51150,7 @@ import { createServer as createHttpServer } from "http";
|
|
|
51739
51150
|
import { createServer as createSecureServer } from "https";
|
|
51740
51151
|
import { resolve } from "path";
|
|
51741
51152
|
|
|
51742
|
-
// ../../node_modules/.pnpm/@t3-oss+env-core@0.13.8_arktype@2.1.
|
|
51153
|
+
// ../../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
|
|
51743
51154
|
function ensureSynchronous(value, message) {
|
|
51744
51155
|
if (value instanceof Promise)
|
|
51745
51156
|
throw new Error(message);
|
|
@@ -51825,7 +51236,7 @@ function createEnv(opts) {
|
|
|
51825
51236
|
return env;
|
|
51826
51237
|
}
|
|
51827
51238
|
|
|
51828
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51239
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/arrays.js
|
|
51829
51240
|
var liftArray = (data) => Array.isArray(data) ? data : [data];
|
|
51830
51241
|
var spliterate = (arr, predicate) => {
|
|
51831
51242
|
const result = [[], []];
|
|
@@ -51880,7 +51291,7 @@ var groupBy = (array, discriminant) => array.reduce((result, item) => {
|
|
|
51880
51291
|
return result;
|
|
51881
51292
|
}, {});
|
|
51882
51293
|
var arrayEquals = (l2, r2, opts) => l2.length === r2.length && l2.every(opts?.isEqual ? (lItem, i2) => opts.isEqual(lItem, r2[i2]) : (lItem, i2) => lItem === r2[i2]);
|
|
51883
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51294
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/domain.js
|
|
51884
51295
|
var hasDomain = (data, kind) => domainOf(data) === kind;
|
|
51885
51296
|
var domainOf = (data) => {
|
|
51886
51297
|
const builtinType = typeof data;
|
|
@@ -51901,7 +51312,7 @@ var jsTypeOfDescriptions = {
|
|
|
51901
51312
|
function: "a function"
|
|
51902
51313
|
};
|
|
51903
51314
|
|
|
51904
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51315
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/errors.js
|
|
51905
51316
|
class InternalArktypeError extends Error {
|
|
51906
51317
|
}
|
|
51907
51318
|
var throwInternalError = (message) => throwError(message, InternalArktypeError);
|
|
@@ -51916,7 +51327,7 @@ var throwParseError = (message) => throwError(message, ParseError);
|
|
|
51916
51327
|
var noSuggest = (s2) => ` ${s2}`;
|
|
51917
51328
|
var ZeroWidthSpace = "\u200B";
|
|
51918
51329
|
|
|
51919
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51330
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/flatMorph.js
|
|
51920
51331
|
var flatMorph = (o2, flatMapEntry) => {
|
|
51921
51332
|
const result = {};
|
|
51922
51333
|
const inputIsArray = Array.isArray(o2);
|
|
@@ -51935,7 +51346,7 @@ var flatMorph = (o2, flatMapEntry) => {
|
|
|
51935
51346
|
return outputShouldBeArray ? Object.values(result) : result;
|
|
51936
51347
|
};
|
|
51937
51348
|
|
|
51938
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51349
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/records.js
|
|
51939
51350
|
var entriesOf = Object.entries;
|
|
51940
51351
|
var isKeyOf = (k2, o2) => (k2 in o2);
|
|
51941
51352
|
var hasKey = (o2, k2) => (k2 in o2);
|
|
@@ -51982,7 +51393,7 @@ var enumValues = (tsEnum) => Object.values(tsEnum).filter((v2) => {
|
|
|
51982
51393
|
return typeof tsEnum[v2] !== "number";
|
|
51983
51394
|
});
|
|
51984
51395
|
|
|
51985
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51396
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/objectKinds.js
|
|
51986
51397
|
var ecmascriptConstructors = {
|
|
51987
51398
|
Array,
|
|
51988
51399
|
Boolean,
|
|
@@ -52098,7 +51509,7 @@ var constructorExtends = (ctor, base) => {
|
|
|
52098
51509
|
return false;
|
|
52099
51510
|
};
|
|
52100
51511
|
|
|
52101
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51512
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/clone.js
|
|
52102
51513
|
var deepClone = (input) => _clone(input, new Map);
|
|
52103
51514
|
var _clone = (input, seen) => {
|
|
52104
51515
|
if (typeof input !== "object" || input === null)
|
|
@@ -52124,7 +51535,7 @@ var _clone = (input, seen) => {
|
|
|
52124
51535
|
Object.defineProperties(cloned, propertyDescriptors);
|
|
52125
51536
|
return cloned;
|
|
52126
51537
|
};
|
|
52127
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51538
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/functions.js
|
|
52128
51539
|
var cached = (thunk) => {
|
|
52129
51540
|
let result = unset;
|
|
52130
51541
|
return () => result === unset ? result = thunk() : result;
|
|
@@ -52133,14 +51544,14 @@ var isThunk = (value) => typeof value === "function" && value.length === 0;
|
|
|
52133
51544
|
var DynamicFunction = class extends Function {
|
|
52134
51545
|
constructor(...args) {
|
|
52135
51546
|
const params = args.slice(0, -1);
|
|
52136
|
-
const body = args.
|
|
51547
|
+
const body = args[args.length - 1];
|
|
52137
51548
|
try {
|
|
52138
51549
|
super(...params, body);
|
|
52139
51550
|
} catch (e) {
|
|
52140
51551
|
return throwInternalError(`Encountered an unexpected error while compiling your definition:
|
|
52141
51552
|
Message: ${e}
|
|
52142
51553
|
Source: (${args.slice(0, -1)}) => {
|
|
52143
|
-
${args.
|
|
51554
|
+
${args[args.length - 1]}
|
|
52144
51555
|
}`);
|
|
52145
51556
|
}
|
|
52146
51557
|
}
|
|
@@ -52158,16 +51569,16 @@ var envHasCsp = cached(() => {
|
|
|
52158
51569
|
return true;
|
|
52159
51570
|
}
|
|
52160
51571
|
});
|
|
52161
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51572
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/generics.js
|
|
52162
51573
|
var brand = noSuggest("brand");
|
|
52163
51574
|
var inferred = noSuggest("arkInferred");
|
|
52164
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51575
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/hkt.js
|
|
52165
51576
|
var args = noSuggest("args");
|
|
52166
51577
|
|
|
52167
51578
|
class Hkt {
|
|
52168
51579
|
constructor() {}
|
|
52169
51580
|
}
|
|
52170
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51581
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/isomorphic.js
|
|
52171
51582
|
var fileName = () => {
|
|
52172
51583
|
try {
|
|
52173
51584
|
const error = new Error;
|
|
@@ -52184,7 +51595,7 @@ var isomorphic = {
|
|
|
52184
51595
|
fileName,
|
|
52185
51596
|
env
|
|
52186
51597
|
};
|
|
52187
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51598
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/strings.js
|
|
52188
51599
|
var capitalize2 = (s2) => s2[0].toUpperCase() + s2.slice(1);
|
|
52189
51600
|
var anchoredRegex = (regex) => new RegExp(anchoredSource(regex), typeof regex === "string" ? "" : regex.flags);
|
|
52190
51601
|
var anchoredSource = (regex) => {
|
|
@@ -52202,7 +51613,7 @@ var whitespaceChars = {
|
|
|
52202
51613
|
"\t": 1
|
|
52203
51614
|
};
|
|
52204
51615
|
|
|
52205
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51616
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/numbers.js
|
|
52206
51617
|
var anchoredNegativeZeroPattern = /^-0\.?0*$/.source;
|
|
52207
51618
|
var positiveIntegerPattern = /[1-9]\d*/.source;
|
|
52208
51619
|
var looseDecimalPattern = /\.\d+/.source;
|
|
@@ -52264,8 +51675,8 @@ var tryParseWellFormedBigint = (def) => {
|
|
|
52264
51675
|
return throwParseError(writeMalformedNumericLiteralMessage(def, "bigint"));
|
|
52265
51676
|
}
|
|
52266
51677
|
};
|
|
52267
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
52268
|
-
var arkUtilVersion = "0.
|
|
51678
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/registry.js
|
|
51679
|
+
var arkUtilVersion = "0.54.0";
|
|
52269
51680
|
var initialRegistryContents = {
|
|
52270
51681
|
version: arkUtilVersion,
|
|
52271
51682
|
filename: isomorphic.fileName(),
|
|
@@ -52304,10 +51715,10 @@ var baseNameFor = (value) => {
|
|
|
52304
51715
|
return throwInternalError(`Unexpected attempt to register serializable value of type ${domainOf(value)}`);
|
|
52305
51716
|
};
|
|
52306
51717
|
|
|
52307
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51718
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/primitive.js
|
|
52308
51719
|
var serializePrimitive = (value) => typeof value === "string" ? JSON.stringify(value) : typeof value === "bigint" ? `${value}n` : `${value}`;
|
|
52309
51720
|
|
|
52310
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51721
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/serialize.js
|
|
52311
51722
|
var snapshot = (data, opts = {}) => _serialize(data, {
|
|
52312
51723
|
onUndefined: `$ark.undefined`,
|
|
52313
51724
|
onBigInt: (n2) => `$ark.bigint-${n2}`,
|
|
@@ -52395,7 +51806,7 @@ var _serialize = (data, opts, seen) => {
|
|
|
52395
51806
|
case "undefined":
|
|
52396
51807
|
return opts.onUndefined ?? "undefined";
|
|
52397
51808
|
case "string":
|
|
52398
|
-
return data.
|
|
51809
|
+
return data.replace(/\\/g, "\\\\");
|
|
52399
51810
|
default:
|
|
52400
51811
|
return data;
|
|
52401
51812
|
}
|
|
@@ -52440,7 +51851,7 @@ var months = [
|
|
|
52440
51851
|
var timeWithUnnecessarySeconds = /:\d\d:00$/;
|
|
52441
51852
|
var pad = (value, length) => String(value).padStart(length, "0");
|
|
52442
51853
|
|
|
52443
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51854
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/path.js
|
|
52444
51855
|
var appendStringifiedKey = (path, prop, ...[opts]) => {
|
|
52445
51856
|
const stringifySymbol = opts?.stringifySymbol ?? printable;
|
|
52446
51857
|
let propAccessChain = path;
|
|
@@ -52497,7 +51908,7 @@ class ReadonlyPath extends ReadonlyArray {
|
|
|
52497
51908
|
return this.cache.stringifyAncestors = result;
|
|
52498
51909
|
}
|
|
52499
51910
|
}
|
|
52500
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51911
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/scanner.js
|
|
52501
51912
|
class Scanner {
|
|
52502
51913
|
chars;
|
|
52503
51914
|
i;
|
|
@@ -52580,9 +51991,9 @@ class Scanner {
|
|
|
52580
51991
|
}
|
|
52581
51992
|
var writeUnmatchedGroupCloseMessage = (char, unscanned) => `Unmatched ${char}${unscanned === "" ? "" : ` before ${unscanned}`}`;
|
|
52582
51993
|
var writeUnclosedGroupMessage = (missingChar) => `Missing ${missingChar}`;
|
|
52583
|
-
// ../../node_modules/.pnpm/@ark+util@0.
|
|
51994
|
+
// ../../node_modules/.pnpm/@ark+util@0.54.0/node_modules/@ark/util/out/traits.js
|
|
52584
51995
|
var implementedTraits = noSuggest("implementedTraits");
|
|
52585
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
51996
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/registry.js
|
|
52586
51997
|
var _registryName = "$ark";
|
|
52587
51998
|
var suffix = 2;
|
|
52588
51999
|
while (_registryName in globalThis)
|
|
@@ -52593,7 +52004,7 @@ var $ark = registry;
|
|
|
52593
52004
|
var reference = (name) => `${registryName}.${name}`;
|
|
52594
52005
|
var registeredReference = (value) => reference(register(value));
|
|
52595
52006
|
|
|
52596
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52007
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/compile.js
|
|
52597
52008
|
class CompiledFunction extends CastableBase {
|
|
52598
52009
|
argNames;
|
|
52599
52010
|
body = "";
|
|
@@ -52729,13 +52140,13 @@ class NodeCompiler extends CompiledFunction {
|
|
|
52729
52140
|
}
|
|
52730
52141
|
}
|
|
52731
52142
|
|
|
52732
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52143
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/utils.js
|
|
52733
52144
|
var makeRootAndArrayPropertiesMutable = (o2) => flatMorph(o2, (k2, v2) => [k2, isArray(v2) ? [...v2] : v2]);
|
|
52734
52145
|
var arkKind = noSuggest("arkKind");
|
|
52735
52146
|
var hasArkKind = (value, kind) => value?.[arkKind] === kind;
|
|
52736
52147
|
var isNode = (value) => hasArkKind(value, "root") || hasArkKind(value, "constraint");
|
|
52737
52148
|
|
|
52738
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52149
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/implement.js
|
|
52739
52150
|
var basisKinds = ["unit", "proto", "domain"];
|
|
52740
52151
|
var structuralKinds = [
|
|
52741
52152
|
"required",
|
|
@@ -52823,7 +52234,7 @@ var implementNode = (_2) => {
|
|
|
52823
52234
|
return implementation;
|
|
52824
52235
|
};
|
|
52825
52236
|
|
|
52826
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52237
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/toJsonSchema.js
|
|
52827
52238
|
class ToJsonSchemaError extends Error {
|
|
52828
52239
|
name = "ToJsonSchemaError";
|
|
52829
52240
|
code;
|
|
@@ -52863,7 +52274,7 @@ var ToJsonSchema = {
|
|
|
52863
52274
|
defaultConfig
|
|
52864
52275
|
};
|
|
52865
52276
|
|
|
52866
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52277
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/config.js
|
|
52867
52278
|
$ark.config ??= {};
|
|
52868
52279
|
var mergeConfigs = (base, merged) => {
|
|
52869
52280
|
if (!merged)
|
|
@@ -52918,7 +52329,7 @@ var mergeFallbacks = (base, merged) => {
|
|
|
52918
52329
|
return result;
|
|
52919
52330
|
};
|
|
52920
52331
|
var normalizeFallback = (fallback) => typeof fallback === "function" ? { default: fallback } : fallback ?? {};
|
|
52921
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52332
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/errors.js
|
|
52922
52333
|
class ArkError extends CastableBase {
|
|
52923
52334
|
[arkKind] = "error";
|
|
52924
52335
|
path;
|
|
@@ -53111,7 +52522,7 @@ var indent = (error) => error.toString().split(`
|
|
|
53111
52522
|
`).join(`
|
|
53112
52523
|
`);
|
|
53113
52524
|
|
|
53114
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52525
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/traversal.js
|
|
53115
52526
|
class Traversal {
|
|
53116
52527
|
path = [];
|
|
53117
52528
|
errors = new ArkErrors(this);
|
|
@@ -53149,7 +52560,7 @@ class Traversal {
|
|
|
53149
52560
|
return this.currentErrorCount !== 0;
|
|
53150
52561
|
}
|
|
53151
52562
|
get currentBranch() {
|
|
53152
|
-
return this.branches.
|
|
52563
|
+
return this.branches[this.branches.length - 1];
|
|
53153
52564
|
}
|
|
53154
52565
|
queueMorphs(morphs) {
|
|
53155
52566
|
const input = {
|
|
@@ -53212,7 +52623,7 @@ class Traversal {
|
|
|
53212
52623
|
}
|
|
53213
52624
|
}
|
|
53214
52625
|
applyMorphsAtPath(path2, morphs) {
|
|
53215
|
-
const key = path2.
|
|
52626
|
+
const key = path2[path2.length - 1];
|
|
53216
52627
|
let parent;
|
|
53217
52628
|
if (key !== undefined) {
|
|
53218
52629
|
parent = this.root;
|
|
@@ -53251,7 +52662,7 @@ var traverseKey = (key, fn2, ctx) => {
|
|
|
53251
52662
|
return result;
|
|
53252
52663
|
};
|
|
53253
52664
|
|
|
53254
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
52665
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/node.js
|
|
53255
52666
|
class BaseNode extends Callable {
|
|
53256
52667
|
attachments;
|
|
53257
52668
|
$;
|
|
@@ -53586,7 +52997,7 @@ var typePathToPropString = (path2) => stringifyPath(path2, {
|
|
|
53586
52997
|
stringifyNonKey: (node) => node.expression
|
|
53587
52998
|
});
|
|
53588
52999
|
var referenceMatcher = /"(\$ark\.[^"]+)"/g;
|
|
53589
|
-
var compileMeta = (metaJson) => JSON.stringify(metaJson).
|
|
53000
|
+
var compileMeta = (metaJson) => JSON.stringify(metaJson).replace(referenceMatcher, "$1");
|
|
53590
53001
|
var flatRef = (path2, node) => ({
|
|
53591
53002
|
path: path2,
|
|
53592
53003
|
node,
|
|
@@ -53600,7 +53011,7 @@ var appendUniqueNodes = (existing, refs) => appendUnique(existing, refs, {
|
|
|
53600
53011
|
isEqual: (l2, r2) => l2.equals(r2)
|
|
53601
53012
|
});
|
|
53602
53013
|
|
|
53603
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53014
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/disjoint.js
|
|
53604
53015
|
class Disjoint extends Array {
|
|
53605
53016
|
static init(kind, l2, r2, ctx) {
|
|
53606
53017
|
return new Disjoint({
|
|
@@ -53662,7 +53073,7 @@ var describeReasons = (l2, r2) => `${describeReason(l2)} and ${describeReason(r2
|
|
|
53662
53073
|
var describeReason = (value) => isNode(value) ? value.expression : isArray(value) ? value.map(describeReason).join(" | ") || "never" : String(value);
|
|
53663
53074
|
var writeUnsatisfiableExpressionError = (expression) => `${expression} results in an unsatisfiable type`;
|
|
53664
53075
|
|
|
53665
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53076
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/shared/intersections.js
|
|
53666
53077
|
var intersectionCache = {};
|
|
53667
53078
|
var intersectNodesRoot = (l2, r2, $2) => intersectOrPipeNodes(l2, r2, {
|
|
53668
53079
|
$: $2,
|
|
@@ -53770,7 +53181,7 @@ var _pipeMorphed = (from, to2, ctx) => {
|
|
|
53770
53181
|
});
|
|
53771
53182
|
};
|
|
53772
53183
|
|
|
53773
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53184
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/constraint.js
|
|
53774
53185
|
class BaseConstraint extends BaseNode {
|
|
53775
53186
|
constructor(attachments, $2) {
|
|
53776
53187
|
super(attachments, $2);
|
|
@@ -53884,7 +53295,7 @@ var writeInvalidOperandMessage = (kind, expected, actual) => {
|
|
|
53884
53295
|
const actualDescription = actual.hasKind("morph") ? "a morph" : actual.isUnknown() ? "unknown" : actual.exclude(expected).defaultShortDescription;
|
|
53885
53296
|
return `${capitalize2(kind)} operand must be ${expected.description} (was ${actualDescription})`;
|
|
53886
53297
|
};
|
|
53887
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53298
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/generic.js
|
|
53888
53299
|
var parseGeneric = (paramDefs, bodyDef, $2) => new GenericRoot(paramDefs, bodyDef, $2, $2, null);
|
|
53889
53300
|
|
|
53890
53301
|
class LazyGenericBody extends Callable {
|
|
@@ -53955,7 +53366,7 @@ class GenericRoot extends Callable {
|
|
|
53955
53366
|
}
|
|
53956
53367
|
}
|
|
53957
53368
|
var writeUnsatisfiedParameterConstraintMessage = (name, constraint, arg) => `${name} must be assignable to ${constraint} (was ${arg})`;
|
|
53958
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53369
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/predicate.js
|
|
53959
53370
|
var implementation = implementNode({
|
|
53960
53371
|
kind: "predicate",
|
|
53961
53372
|
hasAssociatedError: true,
|
|
@@ -54010,7 +53421,7 @@ var Predicate = {
|
|
|
54010
53421
|
Node: PredicateNode
|
|
54011
53422
|
};
|
|
54012
53423
|
|
|
54013
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53424
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/divisor.js
|
|
54014
53425
|
var implementation2 = implementNode({
|
|
54015
53426
|
kind: "divisor",
|
|
54016
53427
|
collapsibleKey: "rule",
|
|
@@ -54063,7 +53474,7 @@ var greatestCommonDivisor = (l2, r2) => {
|
|
|
54063
53474
|
return greatestCommonDivisor2;
|
|
54064
53475
|
};
|
|
54065
53476
|
|
|
54066
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53477
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/range.js
|
|
54067
53478
|
class BaseRange extends InternalPrimitiveConstraint {
|
|
54068
53479
|
boundOperandKind = operandKindsByBoundKind[this.kind];
|
|
54069
53480
|
compiledActual = this.boundOperandKind === "value" ? `data` : this.boundOperandKind === "length" ? `data.length` : `data.valueOf()`;
|
|
@@ -54143,7 +53554,7 @@ var compileComparator = (kind, exclusive) => `${isKeyOf(kind, boundKindPairsByLo
|
|
|
54143
53554
|
var dateLimitToString = (limit) => typeof limit === "string" ? limit : new Date(limit).toLocaleString();
|
|
54144
53555
|
var writeUnboundableMessage = (root) => `Bounded expression ${root} must be exactly one of number, string, Array, or Date`;
|
|
54145
53556
|
|
|
54146
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53557
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/after.js
|
|
54147
53558
|
var implementation3 = implementNode({
|
|
54148
53559
|
kind: "after",
|
|
54149
53560
|
collapsibleKey: "rule",
|
|
@@ -54177,7 +53588,7 @@ var After = {
|
|
|
54177
53588
|
Node: AfterNode
|
|
54178
53589
|
};
|
|
54179
53590
|
|
|
54180
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53591
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/before.js
|
|
54181
53592
|
var implementation4 = implementNode({
|
|
54182
53593
|
kind: "before",
|
|
54183
53594
|
collapsibleKey: "rule",
|
|
@@ -54212,7 +53623,7 @@ var Before = {
|
|
|
54212
53623
|
Node: BeforeNode
|
|
54213
53624
|
};
|
|
54214
53625
|
|
|
54215
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53626
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/exactLength.js
|
|
54216
53627
|
var implementation5 = implementNode({
|
|
54217
53628
|
kind: "exactLength",
|
|
54218
53629
|
collapsibleKey: "rule",
|
|
@@ -54260,7 +53671,7 @@ var ExactLength = {
|
|
|
54260
53671
|
Node: ExactLengthNode
|
|
54261
53672
|
};
|
|
54262
53673
|
|
|
54263
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53674
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/max.js
|
|
54264
53675
|
var implementation6 = implementNode({
|
|
54265
53676
|
kind: "max",
|
|
54266
53677
|
collapsibleKey: "rule",
|
|
@@ -54300,7 +53711,7 @@ var Max = {
|
|
|
54300
53711
|
Node: MaxNode
|
|
54301
53712
|
};
|
|
54302
53713
|
|
|
54303
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53714
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/maxLength.js
|
|
54304
53715
|
var implementation7 = implementNode({
|
|
54305
53716
|
kind: "maxLength",
|
|
54306
53717
|
collapsibleKey: "rule",
|
|
@@ -54343,7 +53754,7 @@ var MaxLength = {
|
|
|
54343
53754
|
Node: MaxLengthNode
|
|
54344
53755
|
};
|
|
54345
53756
|
|
|
54346
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53757
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/min.js
|
|
54347
53758
|
var implementation8 = implementNode({
|
|
54348
53759
|
kind: "min",
|
|
54349
53760
|
collapsibleKey: "rule",
|
|
@@ -54382,7 +53793,7 @@ var Min = {
|
|
|
54382
53793
|
Node: MinNode
|
|
54383
53794
|
};
|
|
54384
53795
|
|
|
54385
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53796
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/minLength.js
|
|
54386
53797
|
var implementation9 = implementNode({
|
|
54387
53798
|
kind: "minLength",
|
|
54388
53799
|
collapsibleKey: "rule",
|
|
@@ -54424,7 +53835,7 @@ var MinLength = {
|
|
|
54424
53835
|
Node: MinLengthNode
|
|
54425
53836
|
};
|
|
54426
53837
|
|
|
54427
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53838
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/kinds.js
|
|
54428
53839
|
var boundImplementationsByKind = {
|
|
54429
53840
|
min: Min.implementation,
|
|
54430
53841
|
max: Max.implementation,
|
|
@@ -54444,7 +53855,7 @@ var boundClassesByKind = {
|
|
|
54444
53855
|
before: Before.Node
|
|
54445
53856
|
};
|
|
54446
53857
|
|
|
54447
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53858
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/refinements/pattern.js
|
|
54448
53859
|
var implementation10 = implementNode({
|
|
54449
53860
|
kind: "pattern",
|
|
54450
53861
|
collapsibleKey: "rule",
|
|
@@ -54489,7 +53900,7 @@ var Pattern = {
|
|
|
54489
53900
|
Node: PatternNode
|
|
54490
53901
|
};
|
|
54491
53902
|
|
|
54492
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
53903
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/parse.js
|
|
54493
53904
|
var schemaKindOf = (schema, allowedKinds) => {
|
|
54494
53905
|
const kind = discriminateRootKind(schema);
|
|
54495
53906
|
if (allowedKinds && !allowedKinds.includes(kind)) {
|
|
@@ -54670,7 +54081,7 @@ var possiblyCollapse = (json, toKey, allowPrimitive) => {
|
|
|
54670
54081
|
return json;
|
|
54671
54082
|
};
|
|
54672
54083
|
|
|
54673
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54084
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/prop.js
|
|
54674
54085
|
var intersectProps = (l2, r2, ctx) => {
|
|
54675
54086
|
if (l2.key !== r2.key)
|
|
54676
54087
|
return null;
|
|
@@ -54737,7 +54148,7 @@ class BaseProp extends BaseConstraint {
|
|
|
54737
54148
|
}
|
|
54738
54149
|
var writeDefaultIntersectionMessage = (lValue, rValue) => `Invalid intersection of default values ${printable(lValue)} & ${printable(rValue)}`;
|
|
54739
54150
|
|
|
54740
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54151
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/optional.js
|
|
54741
54152
|
var implementation11 = implementNode({
|
|
54742
54153
|
kind: "optional",
|
|
54743
54154
|
hasAssociatedError: false,
|
|
@@ -54841,7 +54252,7 @@ var writeNonPrimitiveNonFunctionDefaultValueMessage = (key) => {
|
|
|
54841
54252
|
return `Non-primitive default ${keyDescription}must be specified as a function like () => ({my: 'object'})`;
|
|
54842
54253
|
};
|
|
54843
54254
|
|
|
54844
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54255
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/root.js
|
|
54845
54256
|
class BaseRoot extends BaseNode {
|
|
54846
54257
|
constructor(attachments, $2) {
|
|
54847
54258
|
super(attachments, $2);
|
|
@@ -55215,13 +54626,13 @@ var writeLiteralUnionEntriesMessage = (expression) => `Props cannot be extracted
|
|
|
55215
54626
|
${expression}`;
|
|
55216
54627
|
var writeNonStructuralOperandMessage = (operation, operand) => `${operation} operand must be an object (was ${operand})`;
|
|
55217
54628
|
|
|
55218
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54629
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/utils.js
|
|
55219
54630
|
var defineRightwardIntersections = (kind, implementation12) => flatMorph(schemaKindsRightOf(kind), (i2, kind2) => [
|
|
55220
54631
|
kind2,
|
|
55221
54632
|
implementation12
|
|
55222
54633
|
]);
|
|
55223
54634
|
|
|
55224
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54635
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/alias.js
|
|
55225
54636
|
var normalizeAliasSchema = (schema) => typeof schema === "string" ? { reference: schema } : schema;
|
|
55226
54637
|
var neverIfDisjoint = (result) => result instanceof Disjoint ? $ark.intrinsic.never.internal : result;
|
|
55227
54638
|
var implementation12 = implementNode({
|
|
@@ -55329,7 +54740,7 @@ var Alias = {
|
|
|
55329
54740
|
Node: AliasNode
|
|
55330
54741
|
};
|
|
55331
54742
|
|
|
55332
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54743
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/basis.js
|
|
55333
54744
|
class InternalBasis extends BaseRoot {
|
|
55334
54745
|
traverseApply = (data, ctx) => {
|
|
55335
54746
|
if (!this.traverseAllows(data, ctx))
|
|
@@ -55355,7 +54766,7 @@ class InternalBasis extends BaseRoot {
|
|
|
55355
54766
|
}
|
|
55356
54767
|
}
|
|
55357
54768
|
|
|
55358
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54769
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/domain.js
|
|
55359
54770
|
var implementation13 = implementNode({
|
|
55360
54771
|
kind: "domain",
|
|
55361
54772
|
hasAssociatedError: true,
|
|
@@ -55406,7 +54817,7 @@ var Domain = {
|
|
|
55406
54817
|
writeBadAllowNanMessage: (actual) => `numberAllowsNaN may only be specified with domain "number" (was ${actual})`
|
|
55407
54818
|
};
|
|
55408
54819
|
|
|
55409
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
54820
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/intersection.js
|
|
55410
54821
|
var implementation14 = implementNode({
|
|
55411
54822
|
kind: "intersection",
|
|
55412
54823
|
hasAssociatedError: true,
|
|
@@ -55508,7 +54919,7 @@ var implementation14 = implementNode({
|
|
|
55508
54919
|
if (node.basis && !node.prestructurals.some((r2) => r2.impl.obviatesBasisDescription))
|
|
55509
54920
|
childDescriptions.push(node.basis.description);
|
|
55510
54921
|
if (node.prestructurals.length) {
|
|
55511
|
-
const sortedRefinementDescriptions = node.prestructurals.
|
|
54922
|
+
const sortedRefinementDescriptions = node.prestructurals.slice().sort((l2, r2) => l2.kind === "min" && r2.kind === "max" ? -1 : 0).map((r2) => r2.description);
|
|
55512
54923
|
childDescriptions.push(...sortedRefinementDescriptions);
|
|
55513
54924
|
}
|
|
55514
54925
|
if (node.inner.predicate) {
|
|
@@ -55569,7 +54980,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
55569
54980
|
if (ctx.failFast && ctx.currentErrorCount > errorCount)
|
|
55570
54981
|
return;
|
|
55571
54982
|
}
|
|
55572
|
-
this.prestructurals.
|
|
54983
|
+
this.prestructurals[this.prestructurals.length - 1].traverseApply(data, ctx);
|
|
55573
54984
|
if (ctx.currentErrorCount > errorCount)
|
|
55574
54985
|
return;
|
|
55575
54986
|
}
|
|
@@ -55584,7 +54995,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
55584
54995
|
if (ctx.failFast && ctx.currentErrorCount > errorCount)
|
|
55585
54996
|
return;
|
|
55586
54997
|
}
|
|
55587
|
-
this.inner.predicate.
|
|
54998
|
+
this.inner.predicate[this.inner.predicate.length - 1].traverseApply(data, ctx);
|
|
55588
54999
|
}
|
|
55589
55000
|
};
|
|
55590
55001
|
compile(js) {
|
|
@@ -55605,7 +55016,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
55605
55016
|
js.check(this.prestructurals[i2]);
|
|
55606
55017
|
js.returnIfFailFast();
|
|
55607
55018
|
}
|
|
55608
|
-
js.check(this.prestructurals.
|
|
55019
|
+
js.check(this.prestructurals[this.prestructurals.length - 1]);
|
|
55609
55020
|
if (this.structure || this.inner.predicate)
|
|
55610
55021
|
js.returnIfFail();
|
|
55611
55022
|
}
|
|
@@ -55619,7 +55030,7 @@ class IntersectionNode extends BaseRoot {
|
|
|
55619
55030
|
js.check(this.inner.predicate[i2]);
|
|
55620
55031
|
js.returnIfFail();
|
|
55621
55032
|
}
|
|
55622
|
-
js.check(this.inner.predicate.
|
|
55033
|
+
js.check(this.inner.predicate[this.inner.predicate.length - 1]);
|
|
55623
55034
|
}
|
|
55624
55035
|
}
|
|
55625
55036
|
}
|
|
@@ -55656,7 +55067,7 @@ var intersectIntersections = (l2, r2, ctx) => {
|
|
|
55656
55067
|
});
|
|
55657
55068
|
};
|
|
55658
55069
|
|
|
55659
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55070
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/morph.js
|
|
55660
55071
|
var implementation15 = implementNode({
|
|
55661
55072
|
kind: "morph",
|
|
55662
55073
|
hasAssociatedError: false,
|
|
@@ -55725,7 +55136,7 @@ var implementation15 = implementNode({
|
|
|
55725
55136
|
class MorphNode extends BaseRoot {
|
|
55726
55137
|
serializedMorphs = this.morphs.map(registeredReference);
|
|
55727
55138
|
compiledMorphs = `[${this.serializedMorphs}]`;
|
|
55728
|
-
lastMorph = this.inner.morphs.
|
|
55139
|
+
lastMorph = this.inner.morphs[this.inner.morphs.length - 1];
|
|
55729
55140
|
lastMorphIfNode = hasArkKind(this.lastMorph, "root") ? this.lastMorph : undefined;
|
|
55730
55141
|
introspectableIn = this.inner.in;
|
|
55731
55142
|
introspectableOut = this.lastMorphIfNode ? Object.assign(this.referencesById, this.lastMorphIfNode.referencesById) && this.lastMorphIfNode.rawOut : undefined;
|
|
@@ -55792,7 +55203,7 @@ var writeMorphIntersectionMessage = (lDescription, rDescription) => `The interse
|
|
|
55792
55203
|
Left: ${lDescription}
|
|
55793
55204
|
Right: ${rDescription}`;
|
|
55794
55205
|
|
|
55795
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55206
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/proto.js
|
|
55796
55207
|
var implementation16 = implementNode({
|
|
55797
55208
|
kind: "proto",
|
|
55798
55209
|
hasAssociatedError: true,
|
|
@@ -55865,7 +55276,7 @@ var Proto = {
|
|
|
55865
55276
|
writeInvalidSchemaMessage: (actual) => `instanceOf operand must be a function (was ${domainOf(actual)})`
|
|
55866
55277
|
};
|
|
55867
55278
|
|
|
55868
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55279
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/union.js
|
|
55869
55280
|
var implementation17 = implementNode({
|
|
55870
55281
|
kind: "union",
|
|
55871
55282
|
hasAssociatedError: true,
|
|
@@ -56435,7 +55846,7 @@ var writeOrderedIntersectionMessage = (lDescription, rDescription) => `The inter
|
|
|
56435
55846
|
Left: ${lDescription}
|
|
56436
55847
|
Right: ${rDescription}`;
|
|
56437
55848
|
|
|
56438
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55849
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/roots/unit.js
|
|
56439
55850
|
var implementation18 = implementNode({
|
|
56440
55851
|
kind: "unit",
|
|
56441
55852
|
hasAssociatedError: true,
|
|
@@ -56497,7 +55908,7 @@ var compileEqualityCheck = (unit, serializedValue, negated) => {
|
|
|
56497
55908
|
return `data ${negated ? "!" : "="}== ${serializedValue}`;
|
|
56498
55909
|
};
|
|
56499
55910
|
|
|
56500
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55911
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/index.js
|
|
56501
55912
|
var implementation19 = implementNode({
|
|
56502
55913
|
kind: "index",
|
|
56503
55914
|
hasAssociatedError: false,
|
|
@@ -56574,7 +55985,7 @@ var Index = {
|
|
|
56574
55985
|
var writeEnumerableIndexBranches = (keys2) => `Index keys ${keys2.join(", ")} should be specified as named props.`;
|
|
56575
55986
|
var writeInvalidPropertyKeyMessage = (indexSchema) => `Indexed key definition '${indexSchema}' must be a string or symbol`;
|
|
56576
55987
|
|
|
56577
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
55988
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/required.js
|
|
56578
55989
|
var implementation20 = implementNode({
|
|
56579
55990
|
kind: "required",
|
|
56580
55991
|
hasAssociatedError: true,
|
|
@@ -56613,7 +56024,7 @@ var Required = {
|
|
|
56613
56024
|
Node: RequiredNode
|
|
56614
56025
|
};
|
|
56615
56026
|
|
|
56616
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
56027
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/sequence.js
|
|
56617
56028
|
var implementation21 = implementNode({
|
|
56618
56029
|
kind: "sequence",
|
|
56619
56030
|
hasAssociatedError: false,
|
|
@@ -56699,10 +56110,10 @@ var implementation21 = implementNode({
|
|
|
56699
56110
|
const optionals = raw.optionals?.slice() ?? [];
|
|
56700
56111
|
const postfix = raw.postfix?.slice() ?? [];
|
|
56701
56112
|
if (raw.variadic) {
|
|
56702
|
-
while (optionals.
|
|
56113
|
+
while (optionals[optionals.length - 1]?.equals(raw.variadic))
|
|
56703
56114
|
optionals.pop();
|
|
56704
56115
|
if (optionals.length === 0 && defaultables.length === 0) {
|
|
56705
|
-
while (prefix.
|
|
56116
|
+
while (prefix[prefix.length - 1]?.equals(raw.variadic)) {
|
|
56706
56117
|
prefix.pop();
|
|
56707
56118
|
minVariadicLength++;
|
|
56708
56119
|
}
|
|
@@ -56936,8 +56347,8 @@ var _intersectSequences = (s2) => {
|
|
|
56936
56347
|
const [rHead, ...rTail] = s2.r;
|
|
56937
56348
|
if (!lHead || !rHead)
|
|
56938
56349
|
return s2;
|
|
56939
|
-
const lHasPostfix = lTail.
|
|
56940
|
-
const rHasPostfix = rTail.
|
|
56350
|
+
const lHasPostfix = lTail[lTail.length - 1]?.kind === "postfix";
|
|
56351
|
+
const rHasPostfix = rTail[rTail.length - 1]?.kind === "postfix";
|
|
56941
56352
|
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";
|
|
56942
56353
|
if (lHead.kind === "prefix" && rHead.kind === "variadic" && rHasPostfix) {
|
|
56943
56354
|
const postfixBranchResult = _intersectSequences({
|
|
@@ -56995,7 +56406,7 @@ var _intersectSequences = (s2) => {
|
|
|
56995
56406
|
};
|
|
56996
56407
|
var elementIsRequired = (el) => el.kind === "prefix" || el.kind === "postfix";
|
|
56997
56408
|
|
|
56998
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
56409
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/structure.js
|
|
56999
56410
|
var createStructuralWriter = (childStringProp) => (node) => {
|
|
57000
56411
|
if (node.props.length || node.index) {
|
|
57001
56412
|
const parts = node.index?.map((index) => index[childStringProp]) ?? [];
|
|
@@ -57678,7 +57089,7 @@ var typeKeyToString = (k2) => hasArkKind(k2, "root") ? k2.expression : printable
|
|
|
57678
57089
|
var writeInvalidKeysMessage = (o2, keys2) => `Key${keys2.length === 1 ? "" : "s"} ${keys2.map(typeKeyToString).join(", ")} ${keys2.length === 1 ? "does" : "do"} not exist on ${o2}`;
|
|
57679
57090
|
var writeDuplicateKeyMessage = (key) => `Duplicate key ${compileSerializedValue(key)}`;
|
|
57680
57091
|
|
|
57681
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57092
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/kinds.js
|
|
57682
57093
|
var nodeImplementationsByKind = {
|
|
57683
57094
|
...boundImplementationsByKind,
|
|
57684
57095
|
alias: Alias.implementation,
|
|
@@ -57731,7 +57142,7 @@ var nodeClassesByKind = {
|
|
|
57731
57142
|
structure: Structure.Node
|
|
57732
57143
|
};
|
|
57733
57144
|
|
|
57734
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57145
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/module.js
|
|
57735
57146
|
class RootModule extends DynamicBase {
|
|
57736
57147
|
get [arkKind]() {
|
|
57737
57148
|
return "module";
|
|
@@ -57742,7 +57153,7 @@ var bindModule = (module, $2) => new RootModule(flatMorph(module, (alias, value)
|
|
|
57742
57153
|
hasArkKind(value, "module") ? bindModule(value, $2) : $2.bindReference(value)
|
|
57743
57154
|
]));
|
|
57744
57155
|
|
|
57745
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57156
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/scope.js
|
|
57746
57157
|
var schemaBranchesOf = (schema) => isArray(schema) ? schema : ("branches" in schema) && isArray(schema.branches) ? schema.branches : undefined;
|
|
57747
57158
|
var throwMismatchedNodeRootError = (expected, actual) => throwParseError(`Node of kind ${actual} is not valid as a ${expected} definition`);
|
|
57748
57159
|
var writeDuplicateAliasError = (alias) => `#${alias} duplicates public alias ${alias}`;
|
|
@@ -58149,12 +57560,12 @@ var node = rootSchemaScope.node;
|
|
|
58149
57560
|
var defineSchema = rootSchemaScope.defineSchema;
|
|
58150
57561
|
var genericNode = rootSchemaScope.generic;
|
|
58151
57562
|
|
|
58152
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57563
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/structure/shared.js
|
|
58153
57564
|
var arrayIndexSource = `^(?:0|[1-9]\\d*)$`;
|
|
58154
57565
|
var arrayIndexMatcher = new RegExp(arrayIndexSource);
|
|
58155
57566
|
var arrayIndexMatcherReference = registeredReference(arrayIndexMatcher);
|
|
58156
57567
|
|
|
58157
|
-
// ../../node_modules/.pnpm/@ark+schema@0.
|
|
57568
|
+
// ../../node_modules/.pnpm/@ark+schema@0.54.0/node_modules/@ark/schema/out/intrinsic.js
|
|
58158
57569
|
var intrinsicBases = schemaScope({
|
|
58159
57570
|
bigint: "bigint",
|
|
58160
57571
|
boolean: [{ unit: false }, { unit: true }],
|
|
@@ -58209,8 +57620,8 @@ $ark.intrinsic = { ...intrinsic };
|
|
|
58209
57620
|
// ../../node_modules/.pnpm/arkregex@0.0.2/node_modules/arkregex/out/regex.js
|
|
58210
57621
|
var regex = (src, flags) => new RegExp(src, flags);
|
|
58211
57622
|
Object.assign(regex, { as: regex });
|
|
58212
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58213
|
-
var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value.
|
|
57623
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/date.js
|
|
57624
|
+
var isDateLiteral = (value) => typeof value === "string" && value[0] === "d" && (value[1] === "'" || value[1] === '"') && value[value.length - 1] === value[1];
|
|
58214
57625
|
var isValidDate = (d2) => d2.toString() !== "Invalid Date";
|
|
58215
57626
|
var extractDateLiteralSource = (literal) => literal.slice(2, -1);
|
|
58216
57627
|
var writeInvalidDateMessage = (source) => `'${source}' could not be parsed by the Date constructor`;
|
|
@@ -58228,7 +57639,7 @@ var maybeParseDate = (source, errorOnFail) => {
|
|
|
58228
57639
|
return errorOnFail ? throwParseError(errorOnFail === true ? writeInvalidDateMessage(source) : errorOnFail) : undefined;
|
|
58229
57640
|
};
|
|
58230
57641
|
|
|
58231
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57642
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/enclosed.js
|
|
58232
57643
|
var parseEnclosed = (s2, enclosing) => {
|
|
58233
57644
|
const enclosed = s2.scanner.shiftUntilEscapable(untilLookaheadIsClosing[enclosingTokens[enclosing]]);
|
|
58234
57645
|
if (s2.scanner.lookahead === "")
|
|
@@ -58282,12 +57693,12 @@ var enclosingCharDescriptions = {
|
|
|
58282
57693
|
};
|
|
58283
57694
|
var writeUnterminatedEnclosedMessage = (fragment, enclosingStart) => `${enclosingStart}${fragment} requires a closing ${enclosingCharDescriptions[enclosingTokens[enclosingStart]]}`;
|
|
58284
57695
|
|
|
58285
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57696
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/ast/validate.js
|
|
58286
57697
|
var writePrefixedPrivateReferenceMessage = (name) => `Private type references should not include '#'. Use '${name}' instead.`;
|
|
58287
57698
|
var shallowOptionalMessage = "Optional definitions like 'string?' are only valid as properties in an object or tuple";
|
|
58288
57699
|
var shallowDefaultableMessage = "Defaultable definitions like 'number = 0' are only valid as properties in an object or tuple";
|
|
58289
57700
|
|
|
58290
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57701
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/tokens.js
|
|
58291
57702
|
var terminatingChars = {
|
|
58292
57703
|
"<": 1,
|
|
58293
57704
|
">": 1,
|
|
@@ -58305,7 +57716,7 @@ var terminatingChars = {
|
|
|
58305
57716
|
};
|
|
58306
57717
|
var lookaheadIsFinalizing = (lookahead, unscanned) => lookahead === ">" ? unscanned[0] === "=" ? unscanned[1] === "=" : unscanned.trimStart() === "" || isKeyOf(unscanned.trimStart()[0], terminatingChars) : lookahead === "=" ? unscanned[0] !== "=" : lookahead === "," || lookahead === "?";
|
|
58307
57718
|
|
|
58308
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57719
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/genericArgs.js
|
|
58309
57720
|
var parseGenericArgs = (name, g2, s2) => _parseGenericArgs(name, g2, s2, []);
|
|
58310
57721
|
var _parseGenericArgs = (name, g2, s2, argNodes) => {
|
|
58311
57722
|
const argState = s2.parseUntilFinalizer();
|
|
@@ -58322,7 +57733,7 @@ var _parseGenericArgs = (name, g2, s2, argNodes) => {
|
|
|
58322
57733
|
};
|
|
58323
57734
|
var writeInvalidGenericArgCountMessage = (name, params, argDefs) => `${name}<${params.join(", ")}> requires exactly ${params.length} args (got ${argDefs.length}${argDefs.length === 0 ? "" : `: ${argDefs.join(", ")}`})`;
|
|
58324
57735
|
|
|
58325
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57736
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/unenclosed.js
|
|
58326
57737
|
var parseUnenclosed = (s2) => {
|
|
58327
57738
|
const token = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
58328
57739
|
if (token === "keyof")
|
|
@@ -58370,10 +57781,10 @@ var writeMissingOperandMessage = (s2) => {
|
|
|
58370
57781
|
var writeMissingRightOperandMessage = (token, unscanned = "") => `Token '${token}' requires a right operand${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
58371
57782
|
var writeExpressionExpectedMessage = (unscanned) => `Expected an expression${unscanned ? ` before '${unscanned}'` : ""}`;
|
|
58372
57783
|
|
|
58373
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57784
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operand/operand.js
|
|
58374
57785
|
var parseOperand = (s2) => s2.scanner.lookahead === "" ? s2.error(writeMissingOperandMessage(s2)) : s2.scanner.lookahead === "(" ? s2.shiftedByOne().reduceGroupOpen() : s2.scanner.lookaheadIsIn(enclosingChar) ? parseEnclosed(s2, s2.scanner.shift()) : s2.scanner.lookaheadIsIn(whitespaceChars) ? parseOperand(s2.shiftedByOne()) : s2.scanner.lookahead === "d" ? s2.scanner.nextLookahead in enclosingQuote ? parseEnclosed(s2, `${s2.scanner.shift()}${s2.scanner.shift()}`) : parseUnenclosed(s2) : parseUnenclosed(s2);
|
|
58375
57786
|
|
|
58376
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57787
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/reduce/shared.js
|
|
58377
57788
|
var minComparators = {
|
|
58378
57789
|
">": true,
|
|
58379
57790
|
">=": true
|
|
@@ -58393,7 +57804,7 @@ var writeOpenRangeMessage = (min2, comparator) => `Left bounds are only valid wh
|
|
|
58393
57804
|
var writeUnpairableComparatorMessage = (comparator) => `Left-bounded expressions must specify their limits using < or <= (was ${comparator})`;
|
|
58394
57805
|
var writeMultipleLeftBoundsMessage = (openLimit, openComparator, limit, comparator) => `An expression may have at most one left bound (parsed ${openLimit}${invertedComparators[openComparator]}, ${limit}${invertedComparators[comparator]})`;
|
|
58395
57806
|
|
|
58396
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57807
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/bounds.js
|
|
58397
57808
|
var parseBound = (s2, start) => {
|
|
58398
57809
|
const comparator = shiftComparator(s2, start);
|
|
58399
57810
|
if (s2.root.hasKind("unit")) {
|
|
@@ -58464,14 +57875,14 @@ var parseRightBound = (s2, comparator) => {
|
|
|
58464
57875
|
};
|
|
58465
57876
|
var writeInvalidLimitMessage = (comparator, limit, boundKind) => `Comparator ${boundKind === "left" ? invertedComparators[comparator] : comparator} must be ${boundKind === "left" ? "preceded" : "followed"} by a corresponding literal (was ${limit})`;
|
|
58466
57877
|
|
|
58467
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57878
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/brand.js
|
|
58468
57879
|
var parseBrand = (s2) => {
|
|
58469
57880
|
s2.scanner.shiftUntilNonWhitespace();
|
|
58470
57881
|
const brandName = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
58471
57882
|
s2.root = s2.root.brand(brandName);
|
|
58472
57883
|
};
|
|
58473
57884
|
|
|
58474
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57885
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/divisor.js
|
|
58475
57886
|
var parseDivisor = (s2) => {
|
|
58476
57887
|
s2.scanner.shiftUntilNonWhitespace();
|
|
58477
57888
|
const divisorToken = s2.scanner.shiftUntilLookahead(terminatingChars);
|
|
@@ -58484,7 +57895,7 @@ var parseDivisor = (s2) => {
|
|
|
58484
57895
|
};
|
|
58485
57896
|
var writeInvalidDivisorMessage = (divisor2) => `% operator must be followed by a non-zero integer literal (was ${divisor2})`;
|
|
58486
57897
|
|
|
58487
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57898
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/operator.js
|
|
58488
57899
|
var parseOperator = (s2) => {
|
|
58489
57900
|
const lookahead = s2.scanner.shift();
|
|
58490
57901
|
return lookahead === "" ? s2.finalize("") : lookahead === "[" ? s2.scanner.shift() === "]" ? s2.setRoot(s2.root.array()) : s2.error(incompleteArrayTokenMessage) : lookahead === "|" ? s2.scanner.lookahead === ">" ? s2.shiftedByOne().pushRootToBranch("|>") : s2.pushRootToBranch(lookahead) : lookahead === "&" ? s2.pushRootToBranch(lookahead) : lookahead === ")" ? s2.finalizeGroup() : lookaheadIsFinalizing(lookahead, s2.scanner.unscanned) ? s2.finalize(lookahead) : isKeyOf(lookahead, comparatorStartChars) ? parseBound(s2, lookahead) : lookahead === "%" ? parseDivisor(s2) : lookahead === "#" ? parseBrand(s2) : (lookahead in whitespaceChars) ? parseOperator(s2) : s2.error(writeUnexpectedCharacterMessage(lookahead));
|
|
@@ -58492,7 +57903,7 @@ var parseOperator = (s2) => {
|
|
|
58492
57903
|
var writeUnexpectedCharacterMessage = (char, shouldBe = "") => `'${char}' is not allowed here${shouldBe && ` (should be ${shouldBe})`}`;
|
|
58493
57904
|
var incompleteArrayTokenMessage = `Missing expected ']'`;
|
|
58494
57905
|
|
|
58495
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57906
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/shift/operator/default.js
|
|
58496
57907
|
var parseDefault = (s2) => {
|
|
58497
57908
|
const baseNode = s2.unsetRoot();
|
|
58498
57909
|
s2.parseOperand();
|
|
@@ -58504,7 +57915,7 @@ var parseDefault = (s2) => {
|
|
|
58504
57915
|
};
|
|
58505
57916
|
var writeNonLiteralDefaultMessage = (defaultDef) => `Default value '${defaultDef}' must be a literal value`;
|
|
58506
57917
|
|
|
58507
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57918
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/string.js
|
|
58508
57919
|
var parseString = (def, ctx) => {
|
|
58509
57920
|
const aliasResolution = ctx.$.maybeResolveRoot(def);
|
|
58510
57921
|
if (aliasResolution)
|
|
@@ -58543,7 +57954,7 @@ var parseUntilFinalizer = (s2) => {
|
|
|
58543
57954
|
};
|
|
58544
57955
|
var next = (s2) => s2.hasRoot() ? s2.parseOperator() : s2.parseOperand();
|
|
58545
57956
|
|
|
58546
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
57957
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/reduce/dynamic.js
|
|
58547
57958
|
class RuntimeState {
|
|
58548
57959
|
root;
|
|
58549
57960
|
branches = {
|
|
@@ -58672,7 +58083,7 @@ class RuntimeState {
|
|
|
58672
58083
|
};
|
|
58673
58084
|
}
|
|
58674
58085
|
previousOperator() {
|
|
58675
|
-
return this.branches.leftBound?.comparator ?? this.branches.prefixes.
|
|
58086
|
+
return this.branches.leftBound?.comparator ?? this.branches.prefixes[this.branches.prefixes.length - 1] ?? (this.branches.intersection ? "&" : this.branches.union ? "|" : this.branches.pipe ? "|>" : undefined);
|
|
58676
58087
|
}
|
|
58677
58088
|
shiftedByOne() {
|
|
58678
58089
|
this.scanner.shift();
|
|
@@ -58680,7 +58091,7 @@ class RuntimeState {
|
|
|
58680
58091
|
}
|
|
58681
58092
|
}
|
|
58682
58093
|
|
|
58683
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58094
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/generic.js
|
|
58684
58095
|
var emptyGenericParameterMessage = "An empty string is not a valid generic parameter name";
|
|
58685
58096
|
var parseGenericParamName = (scanner2, result, ctx) => {
|
|
58686
58097
|
scanner2.shiftUntilNonWhitespace();
|
|
@@ -58708,7 +58119,7 @@ var _parseOptionalConstraint = (scanner2, name, result, ctx) => {
|
|
|
58708
58119
|
result.push([name, s2.root]);
|
|
58709
58120
|
return parseGenericParamName(scanner2, result, ctx);
|
|
58710
58121
|
};
|
|
58711
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58122
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/fn.js
|
|
58712
58123
|
class InternalFnParser extends Callable {
|
|
58713
58124
|
constructor($2) {
|
|
58714
58125
|
const attach = {
|
|
@@ -58750,7 +58161,7 @@ class InternalTypedFn extends Callable {
|
|
|
58750
58161
|
this.params = params;
|
|
58751
58162
|
this.returns = returns;
|
|
58752
58163
|
let argsExpression = params.expression;
|
|
58753
|
-
if (argsExpression[0] === "[" && argsExpression.
|
|
58164
|
+
if (argsExpression[0] === "[" && argsExpression[argsExpression.length - 1] === "]")
|
|
58754
58165
|
argsExpression = argsExpression.slice(1, -1);
|
|
58755
58166
|
else if (argsExpression.endsWith("[]"))
|
|
58756
58167
|
argsExpression = `...${argsExpression}`;
|
|
@@ -58760,7 +58171,7 @@ class InternalTypedFn extends Callable {
|
|
|
58760
58171
|
var badFnReturnTypeMessage = `":" must be followed by exactly one return type e.g:
|
|
58761
58172
|
fn("string", ":", "number")(s => s.length)`;
|
|
58762
58173
|
|
|
58763
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58174
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/match.js
|
|
58764
58175
|
class InternalMatchParser extends Callable {
|
|
58765
58176
|
$;
|
|
58766
58177
|
constructor($2) {
|
|
@@ -58854,7 +58265,7 @@ var throwOnDefault = (errors3) => errors3.throw();
|
|
|
58854
58265
|
var chainedAtMessage = `A key matcher must be specified before the first case i.e. match.at('foo') or match.in<object>().at('bar')`;
|
|
58855
58266
|
var doubleAtMessage = `At most one key matcher may be specified per expression`;
|
|
58856
58267
|
|
|
58857
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58268
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/property.js
|
|
58858
58269
|
var parseProperty = (def, ctx) => {
|
|
58859
58270
|
if (isArray(def)) {
|
|
58860
58271
|
if (def[1] === "=")
|
|
@@ -58867,7 +58278,7 @@ var parseProperty = (def, ctx) => {
|
|
|
58867
58278
|
var invalidOptionalKeyKindMessage = `Only required keys may make their values optional, e.g. { [mySymbol]: ['number', '?'] }`;
|
|
58868
58279
|
var invalidDefaultableKeyKindMessage = `Only required keys may specify default values, e.g. { value: 'number = 0' }`;
|
|
58869
58280
|
|
|
58870
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58281
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/objectLiteral.js
|
|
58871
58282
|
var parseObjectLiteral = (def, ctx) => {
|
|
58872
58283
|
let spread;
|
|
58873
58284
|
const structure3 = {};
|
|
@@ -58943,16 +58354,16 @@ var appendNamedProp = (structure3, kind, inner, ctx) => {
|
|
|
58943
58354
|
};
|
|
58944
58355
|
var writeInvalidUndeclaredBehaviorMessage = (actual) => `Value of '+' key must be 'reject', 'delete', or 'ignore' (was ${printable(actual)})`;
|
|
58945
58356
|
var nonLeadingSpreadError = "Spread operator may only be used as the first key in an object";
|
|
58946
|
-
var preparseKey = (key) => typeof key === "symbol" ? { kind: "required", normalized: key } : key.
|
|
58357
|
+
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)}?` } : {
|
|
58947
58358
|
kind: "optional",
|
|
58948
58359
|
normalized: key.slice(0, -1)
|
|
58949
|
-
} : key[0] === "[" && key.
|
|
58360
|
+
} : 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" } : {
|
|
58950
58361
|
kind: "required",
|
|
58951
58362
|
normalized: key === "\\..." ? "..." : key === "\\+" ? "+" : key
|
|
58952
58363
|
};
|
|
58953
58364
|
var writeInvalidSpreadTypeMessage = (def) => `Spread operand must resolve to an object literal type (was ${def})`;
|
|
58954
58365
|
|
|
58955
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58366
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/tupleExpressions.js
|
|
58956
58367
|
var maybeParseTupleExpression = (def, ctx) => isIndexZeroExpression(def) ? indexZeroParsers[def[0]](def, ctx) : isIndexOneExpression(def) ? indexOneParsers[def[1]](def, ctx) : null;
|
|
58957
58368
|
var parseKeyOfTuple = (def, ctx) => ctx.$.parseOwnDefinitionFormat(def[1], ctx).keyof();
|
|
58958
58369
|
var parseBranchTuple = (def, ctx) => {
|
|
@@ -59013,7 +58424,7 @@ var indexZeroParsers = defineIndexZeroParsers({
|
|
|
59013
58424
|
var isIndexZeroExpression = (def) => indexZeroParsers[def[0]] !== undefined;
|
|
59014
58425
|
var writeInvalidConstructorMessage = (actual) => `Expected a constructor following 'instanceof' operator (was ${actual})`;
|
|
59015
58426
|
|
|
59016
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58427
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/tupleLiteral.js
|
|
59017
58428
|
var parseTupleLiteral = (def, ctx) => {
|
|
59018
58429
|
let sequences = [{}];
|
|
59019
58430
|
let i2 = 0;
|
|
@@ -59109,7 +58520,7 @@ var requiredPostOptionalMessage = "A required element may not follow an optional
|
|
|
59109
58520
|
var optionalOrDefaultableAfterVariadicMessage = "An optional element may not follow a variadic element";
|
|
59110
58521
|
var defaultablePostOptionalMessage = "A defaultable element may not follow an optional element without a default";
|
|
59111
58522
|
|
|
59112
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58523
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/parser/definition.js
|
|
59113
58524
|
var parseCache = {};
|
|
59114
58525
|
var parseInnerDefinition = (def, ctx) => {
|
|
59115
58526
|
if (typeof def === "string") {
|
|
@@ -59148,7 +58559,7 @@ var parseObject = (def, ctx) => {
|
|
|
59148
58559
|
var parseTuple = (def, ctx) => maybeParseTupleExpression(def, ctx) ?? parseTupleLiteral(def, ctx);
|
|
59149
58560
|
var writeBadDefinitionTypeMessage = (actual) => `Type definitions must be strings or objects (was ${actual})`;
|
|
59150
58561
|
|
|
59151
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58562
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/type.js
|
|
59152
58563
|
class InternalTypeParser extends Callable {
|
|
59153
58564
|
constructor($2) {
|
|
59154
58565
|
const attach = Object.assign({
|
|
@@ -59178,7 +58589,7 @@ class InternalTypeParser extends Callable {
|
|
|
59178
58589
|
if (args2.length === 1) {
|
|
59179
58590
|
return $2.parse(args2[0]);
|
|
59180
58591
|
}
|
|
59181
|
-
if (args2.length === 2 && typeof args2[0] === "string" && args2[0][0] === "<" && args2[0].
|
|
58592
|
+
if (args2.length === 2 && typeof args2[0] === "string" && args2[0][0] === "<" && args2[0][args2[0].length - 1] === ">") {
|
|
59182
58593
|
const paramString = args2[0].slice(1, -1);
|
|
59183
58594
|
const params = $2.parseGenericParams(paramString, {});
|
|
59184
58595
|
return new GenericRoot(params, args2[1], $2, $2, null);
|
|
@@ -59190,7 +58601,7 @@ class InternalTypeParser extends Callable {
|
|
|
59190
58601
|
}
|
|
59191
58602
|
}
|
|
59192
58603
|
|
|
59193
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58604
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/scope.js
|
|
59194
58605
|
var $arkTypeRegistry = $ark;
|
|
59195
58606
|
|
|
59196
58607
|
class InternalScope extends BaseScope {
|
|
@@ -59213,7 +58624,7 @@ class InternalScope extends BaseScope {
|
|
|
59213
58624
|
def = [def, "@", config2];
|
|
59214
58625
|
return [alias, def];
|
|
59215
58626
|
}
|
|
59216
|
-
if (alias.
|
|
58627
|
+
if (alias[alias.length - 1] !== ">") {
|
|
59217
58628
|
throwParseError(`'>' must be the last character of a generic declaration in a scope`);
|
|
59218
58629
|
}
|
|
59219
58630
|
const name = alias.slice(0, firstParamIndex);
|
|
@@ -59284,7 +58695,7 @@ var scope2 = Object.assign(InternalScope.scope, {
|
|
|
59284
58695
|
});
|
|
59285
58696
|
var Scope = InternalScope;
|
|
59286
58697
|
|
|
59287
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58698
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/builtins.js
|
|
59288
58699
|
class MergeHkt extends Hkt {
|
|
59289
58700
|
description = 'merge an object\'s properties onto another like `Merge(User, { isAdmin: "true" })`';
|
|
59290
58701
|
}
|
|
@@ -59294,7 +58705,7 @@ var arkBuiltins = Scope.module({
|
|
|
59294
58705
|
Merge
|
|
59295
58706
|
});
|
|
59296
58707
|
|
|
59297
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58708
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/Array.js
|
|
59298
58709
|
class liftFromHkt extends Hkt {
|
|
59299
58710
|
}
|
|
59300
58711
|
var liftFrom = genericNode("element")((args2) => {
|
|
@@ -59311,7 +58722,7 @@ var arkArray = Scope.module({
|
|
|
59311
58722
|
name: "Array"
|
|
59312
58723
|
});
|
|
59313
58724
|
|
|
59314
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58725
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/FormData.js
|
|
59315
58726
|
var value = rootSchema(["string", registry.FileConstructor]);
|
|
59316
58727
|
var parsedFormDataValue = value.rawOr(value.array());
|
|
59317
58728
|
var parsed = rootSchema({
|
|
@@ -59348,7 +58759,7 @@ var arkFormData = Scope.module({
|
|
|
59348
58759
|
name: "FormData"
|
|
59349
58760
|
});
|
|
59350
58761
|
|
|
59351
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58762
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/TypedArray.js
|
|
59352
58763
|
var TypedArray = Scope.module({
|
|
59353
58764
|
Int8: ["instanceof", Int8Array],
|
|
59354
58765
|
Uint8: ["instanceof", Uint8Array],
|
|
@@ -59365,7 +58776,7 @@ var TypedArray = Scope.module({
|
|
|
59365
58776
|
name: "TypedArray"
|
|
59366
58777
|
});
|
|
59367
58778
|
|
|
59368
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58779
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/constructors.js
|
|
59369
58780
|
var omittedPrototypes = {
|
|
59370
58781
|
Boolean: 1,
|
|
59371
58782
|
Number: 1,
|
|
@@ -59378,7 +58789,7 @@ var arkPrototypes = Scope.module({
|
|
|
59378
58789
|
FormData: arkFormData
|
|
59379
58790
|
});
|
|
59380
58791
|
|
|
59381
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58792
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/number.js
|
|
59382
58793
|
var epoch = rootSchema({
|
|
59383
58794
|
domain: {
|
|
59384
58795
|
domain: "number",
|
|
@@ -59421,7 +58832,7 @@ var number = Scope.module({
|
|
|
59421
58832
|
name: "number"
|
|
59422
58833
|
});
|
|
59423
58834
|
|
|
59424
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
58835
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/string.js
|
|
59425
58836
|
var regexStringNode = (regex2, description, jsonSchemaFormat) => {
|
|
59426
58837
|
const schema = {
|
|
59427
58838
|
domain: "string",
|
|
@@ -59468,7 +58879,7 @@ var capitalize3 = Scope.module({
|
|
|
59468
58879
|
name: "string.capitalize"
|
|
59469
58880
|
});
|
|
59470
58881
|
var isLuhnValid = (creditCardInput) => {
|
|
59471
|
-
const sanitized = creditCardInput.
|
|
58882
|
+
const sanitized = creditCardInput.replace(/[ -]+/g, "");
|
|
59472
58883
|
let sum = 0;
|
|
59473
58884
|
let digit;
|
|
59474
58885
|
let tmpNum;
|
|
@@ -59812,7 +59223,7 @@ var string = Scope.module({
|
|
|
59812
59223
|
name: "string"
|
|
59813
59224
|
});
|
|
59814
59225
|
|
|
59815
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
59226
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/ts.js
|
|
59816
59227
|
var arkTsKeywords = Scope.module({
|
|
59817
59228
|
bigint: intrinsic.bigint,
|
|
59818
59229
|
boolean: intrinsic.boolean,
|
|
@@ -59900,7 +59311,7 @@ var arkTsGenerics = Scope.module({
|
|
|
59900
59311
|
Required: Required2
|
|
59901
59312
|
});
|
|
59902
59313
|
|
|
59903
|
-
// ../../node_modules/.pnpm/arktype@2.1.
|
|
59314
|
+
// ../../node_modules/.pnpm/arktype@2.1.26/node_modules/arktype/out/keywords/keywords.js
|
|
59904
59315
|
var ark = scope2({
|
|
59905
59316
|
...arkTsKeywords,
|
|
59906
59317
|
...arkTsGenerics,
|
|
@@ -59988,91 +59399,6 @@ function createServer(listener) {
|
|
|
59988
59399
|
import { spawn } from "child_process";
|
|
59989
59400
|
import { resolve as resolve2 } from "path";
|
|
59990
59401
|
|
|
59991
|
-
// ../../packages/atom.io/dist/realtime/index.js
|
|
59992
|
-
var mutexAtoms = atomFamily({
|
|
59993
|
-
key: `mutex`,
|
|
59994
|
-
default: false
|
|
59995
|
-
});
|
|
59996
|
-
var InvariantMap = class extends Map {
|
|
59997
|
-
set(key, value2) {
|
|
59998
|
-
if (this.has(key)) {
|
|
59999
|
-
console.warn(`Tried to set a key that already exists in an InvariantMap`, {
|
|
60000
|
-
key,
|
|
60001
|
-
value: value2
|
|
60002
|
-
});
|
|
60003
|
-
return this;
|
|
60004
|
-
}
|
|
60005
|
-
return super.set(key, value2);
|
|
60006
|
-
}
|
|
60007
|
-
};
|
|
60008
|
-
var SyncGroup = class SyncGroup2 {
|
|
60009
|
-
type = `continuity`;
|
|
60010
|
-
globals = [];
|
|
60011
|
-
actions = [];
|
|
60012
|
-
perspectives = [];
|
|
60013
|
-
key;
|
|
60014
|
-
constructor(key) {
|
|
60015
|
-
this.key = key;
|
|
60016
|
-
}
|
|
60017
|
-
static existing = new InvariantMap;
|
|
60018
|
-
static create(key, builder) {
|
|
60019
|
-
const { type: type2, globals, actions, perspectives } = builder(new SyncGroup2(key));
|
|
60020
|
-
const token = {
|
|
60021
|
-
type: type2,
|
|
60022
|
-
key,
|
|
60023
|
-
globals,
|
|
60024
|
-
actions,
|
|
60025
|
-
perspectives
|
|
60026
|
-
};
|
|
60027
|
-
SyncGroup2.existing.set(key, token);
|
|
60028
|
-
return token;
|
|
60029
|
-
}
|
|
60030
|
-
add(...args2) {
|
|
60031
|
-
switch (args2[0].type) {
|
|
60032
|
-
case `atom`:
|
|
60033
|
-
case `mutable_atom`:
|
|
60034
|
-
this.globals.push(...args2);
|
|
60035
|
-
break;
|
|
60036
|
-
case `transaction`:
|
|
60037
|
-
this.actions.push(...args2);
|
|
60038
|
-
break;
|
|
60039
|
-
case `atom_family`:
|
|
60040
|
-
case `mutable_atom_family`:
|
|
60041
|
-
{
|
|
60042
|
-
const [family, index] = args2;
|
|
60043
|
-
this.perspectives.push({
|
|
60044
|
-
type: `realtime_perspective`,
|
|
60045
|
-
resourceAtoms: family,
|
|
60046
|
-
viewAtoms: index
|
|
60047
|
-
});
|
|
60048
|
-
}
|
|
60049
|
-
break;
|
|
60050
|
-
}
|
|
60051
|
-
return this;
|
|
60052
|
-
}
|
|
60053
|
-
};
|
|
60054
|
-
var usersInThisRoomIndex = mutableAtom({
|
|
60055
|
-
key: `usersInRoomIndex`,
|
|
60056
|
-
class: UList
|
|
60057
|
-
});
|
|
60058
|
-
var roomIndex = mutableAtom({
|
|
60059
|
-
key: `roomIndex`,
|
|
60060
|
-
class: UList
|
|
60061
|
-
});
|
|
60062
|
-
var usersInRooms = join({
|
|
60063
|
-
key: `usersInRooms`,
|
|
60064
|
-
between: [`room`, `user`],
|
|
60065
|
-
cardinality: `1:n`,
|
|
60066
|
-
isAType: (input) => typeof input === `string`,
|
|
60067
|
-
isBType: (input) => typeof input === `string`
|
|
60068
|
-
});
|
|
60069
|
-
var usersInMyRoomView = selectorFamily({
|
|
60070
|
-
key: `usersInMyRoomView`,
|
|
60071
|
-
get: (myUsername) => ({ find }) => {
|
|
60072
|
-
return [find(getInternalRelations(usersInRooms), myUsername)];
|
|
60073
|
-
}
|
|
60074
|
-
});
|
|
60075
|
-
|
|
60076
59402
|
// ../../packages/atom.io/dist/realtime-server/index.js
|
|
60077
59403
|
var redactorAtoms = atomFamily({
|
|
60078
59404
|
key: `redactor`,
|
|
@@ -60415,45 +59741,6 @@ var ParentSocket = class extends CustomSocket {
|
|
|
60415
59741
|
this.relayServices.push(attachServices);
|
|
60416
59742
|
}
|
|
60417
59743
|
};
|
|
60418
|
-
var ROOMS = /* @__PURE__ */ new Map;
|
|
60419
|
-
var joinRoomTX = transaction({
|
|
60420
|
-
key: `joinRoom`,
|
|
60421
|
-
do: (tools, roomId, userId, enteredAtEpoch) => {
|
|
60422
|
-
const meta = { enteredAtEpoch };
|
|
60423
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
60424
|
-
relations.set({
|
|
60425
|
-
room: roomId,
|
|
60426
|
-
user: userId
|
|
60427
|
-
});
|
|
60428
|
-
}, tools.env().store);
|
|
60429
|
-
return meta;
|
|
60430
|
-
}
|
|
60431
|
-
});
|
|
60432
|
-
var leaveRoomTX = transaction({
|
|
60433
|
-
key: `leaveRoom`,
|
|
60434
|
-
do: ({ env: env3 }, roomId, userId) => {
|
|
60435
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
60436
|
-
relations.delete({
|
|
60437
|
-
room: roomId,
|
|
60438
|
-
user: userId
|
|
60439
|
-
});
|
|
60440
|
-
}, env3().store);
|
|
60441
|
-
}
|
|
60442
|
-
});
|
|
60443
|
-
var destroyRoomTX = transaction({
|
|
60444
|
-
key: `destroyRoom`,
|
|
60445
|
-
do: ({ set, env: env3 }, roomId) => {
|
|
60446
|
-
editRelationsInStore(usersInRooms, (relations) => {
|
|
60447
|
-
relations.delete({ room: roomId });
|
|
60448
|
-
}, env3().store);
|
|
60449
|
-
set(roomIndex, (s2) => (s2.delete(roomId), s2));
|
|
60450
|
-
const room = ROOMS.get(roomId);
|
|
60451
|
-
if (room) {
|
|
60452
|
-
room.emit(`exit`);
|
|
60453
|
-
ROOMS.delete(roomId);
|
|
60454
|
-
}
|
|
60455
|
-
}
|
|
60456
|
-
});
|
|
60457
59744
|
var socketAtoms = atomFamily({
|
|
60458
59745
|
key: `sockets`,
|
|
60459
59746
|
default: null
|
|
@@ -60496,7 +59783,7 @@ function worker(from, name, logger = from.logger) {
|
|
|
60496
59783
|
// src/database/tempest-db-manager.ts
|
|
60497
59784
|
import path2 from "path";
|
|
60498
59785
|
|
|
60499
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59786
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/entity.js
|
|
60500
59787
|
var entityKind = Symbol.for("drizzle:entityKind");
|
|
60501
59788
|
var hasOwnEntityKind = Symbol.for("drizzle:hasOwnEntityKind");
|
|
60502
59789
|
function is(value2, type2) {
|
|
@@ -60521,7 +59808,7 @@ function is(value2, type2) {
|
|
|
60521
59808
|
return false;
|
|
60522
59809
|
}
|
|
60523
59810
|
|
|
60524
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59811
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/column.js
|
|
60525
59812
|
class Column {
|
|
60526
59813
|
constructor(table, config3) {
|
|
60527
59814
|
this.table = table;
|
|
@@ -60571,7 +59858,7 @@ class Column {
|
|
|
60571
59858
|
}
|
|
60572
59859
|
}
|
|
60573
59860
|
|
|
60574
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59861
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/column-builder.js
|
|
60575
59862
|
class ColumnBuilder {
|
|
60576
59863
|
static [entityKind] = "ColumnBuilder";
|
|
60577
59864
|
config;
|
|
@@ -60627,10 +59914,10 @@ class ColumnBuilder {
|
|
|
60627
59914
|
}
|
|
60628
59915
|
}
|
|
60629
59916
|
|
|
60630
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59917
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/table.utils.js
|
|
60631
59918
|
var TableName = Symbol.for("drizzle:Name");
|
|
60632
59919
|
|
|
60633
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59920
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/foreign-keys.js
|
|
60634
59921
|
class ForeignKeyBuilder {
|
|
60635
59922
|
static [entityKind] = "PgForeignKeyBuilder";
|
|
60636
59923
|
reference;
|
|
@@ -60684,17 +59971,17 @@ class ForeignKey {
|
|
|
60684
59971
|
}
|
|
60685
59972
|
}
|
|
60686
59973
|
|
|
60687
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59974
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/tracing-utils.js
|
|
60688
59975
|
function iife(fn3, ...args2) {
|
|
60689
59976
|
return fn3(...args2);
|
|
60690
59977
|
}
|
|
60691
59978
|
|
|
60692
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59979
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/unique-constraint.js
|
|
60693
59980
|
function uniqueKeyName(table, columns) {
|
|
60694
59981
|
return `${table[TableName]}_${columns.join("_")}_unique`;
|
|
60695
59982
|
}
|
|
60696
59983
|
|
|
60697
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
59984
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/utils/array.js
|
|
60698
59985
|
function parsePgArrayValue(arrayString, startFrom, inQuotes) {
|
|
60699
59986
|
for (let i2 = startFrom;i2 < arrayString.length; i2++) {
|
|
60700
59987
|
const char = arrayString[i2];
|
|
@@ -60770,7 +60057,7 @@ function makePgArray(array) {
|
|
|
60770
60057
|
}).join(",")}}`;
|
|
60771
60058
|
}
|
|
60772
60059
|
|
|
60773
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60060
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/common.js
|
|
60774
60061
|
class PgColumnBuilder extends ColumnBuilder {
|
|
60775
60062
|
foreignKeyConfigs = [];
|
|
60776
60063
|
static [entityKind] = "PgColumnBuilder";
|
|
@@ -60918,7 +60205,7 @@ class PgArray extends PgColumn {
|
|
|
60918
60205
|
}
|
|
60919
60206
|
}
|
|
60920
60207
|
|
|
60921
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60208
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/enum.js
|
|
60922
60209
|
class PgEnumObjectColumnBuilder extends PgColumnBuilder {
|
|
60923
60210
|
static [entityKind] = "PgEnumObjectColumnBuilder";
|
|
60924
60211
|
constructor(name, enumInstance) {
|
|
@@ -60992,7 +60279,7 @@ function pgEnumObjectWithSchema(enumName, values, schema2) {
|
|
|
60992
60279
|
return enumInstance;
|
|
60993
60280
|
}
|
|
60994
60281
|
|
|
60995
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60282
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/subquery.js
|
|
60996
60283
|
class Subquery {
|
|
60997
60284
|
static [entityKind] = "Subquery";
|
|
60998
60285
|
constructor(sql, fields, alias, isWith = false, usedTables = []) {
|
|
@@ -61011,10 +60298,10 @@ class WithSubquery extends Subquery {
|
|
|
61011
60298
|
static [entityKind] = "WithSubquery";
|
|
61012
60299
|
}
|
|
61013
60300
|
|
|
61014
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60301
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/version.js
|
|
61015
60302
|
var version = "0.44.7";
|
|
61016
60303
|
|
|
61017
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60304
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/tracing.js
|
|
61018
60305
|
var otel;
|
|
61019
60306
|
var rawTracer;
|
|
61020
60307
|
var tracer = {
|
|
@@ -61041,10 +60328,10 @@ var tracer = {
|
|
|
61041
60328
|
}
|
|
61042
60329
|
};
|
|
61043
60330
|
|
|
61044
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60331
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/view-common.js
|
|
61045
60332
|
var ViewBaseConfig = Symbol.for("drizzle:ViewBaseConfig");
|
|
61046
60333
|
|
|
61047
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60334
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/table.js
|
|
61048
60335
|
var Schema = Symbol.for("drizzle:Schema");
|
|
61049
60336
|
var Columns = Symbol.for("drizzle:Columns");
|
|
61050
60337
|
var ExtraConfigColumns = Symbol.for("drizzle:ExtraConfigColumns");
|
|
@@ -61088,7 +60375,7 @@ function getTableUniqueName(table) {
|
|
|
61088
60375
|
return `${table[Schema] ?? "public"}.${table[TableName]}`;
|
|
61089
60376
|
}
|
|
61090
60377
|
|
|
61091
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60378
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/sql/sql.js
|
|
61092
60379
|
function isSQLWrapper(value2) {
|
|
61093
60380
|
return value2 !== null && value2 !== undefined && typeof value2.getSQL === "function";
|
|
61094
60381
|
}
|
|
@@ -61468,7 +60755,7 @@ Subquery.prototype.getSQL = function() {
|
|
|
61468
60755
|
return new SQL([this]);
|
|
61469
60756
|
};
|
|
61470
60757
|
|
|
61471
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60758
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/alias.js
|
|
61472
60759
|
class ColumnAliasProxyHandler {
|
|
61473
60760
|
constructor(table) {
|
|
61474
60761
|
this.table = table;
|
|
@@ -61547,7 +60834,7 @@ function mapColumnsInSQLToAlias(query, alias) {
|
|
|
61547
60834
|
}));
|
|
61548
60835
|
}
|
|
61549
60836
|
|
|
61550
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60837
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/errors.js
|
|
61551
60838
|
class DrizzleError extends Error {
|
|
61552
60839
|
static [entityKind] = "DrizzleError";
|
|
61553
60840
|
constructor({ message, cause }) {
|
|
@@ -61577,7 +60864,7 @@ class TransactionRollbackError extends DrizzleError {
|
|
|
61577
60864
|
}
|
|
61578
60865
|
}
|
|
61579
60866
|
|
|
61580
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60867
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/logger.js
|
|
61581
60868
|
class ConsoleLogWriter {
|
|
61582
60869
|
static [entityKind] = "ConsoleLogWriter";
|
|
61583
60870
|
write(message) {
|
|
@@ -61609,7 +60896,7 @@ class NoopLogger {
|
|
|
61609
60896
|
logQuery() {}
|
|
61610
60897
|
}
|
|
61611
60898
|
|
|
61612
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60899
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/query-promise.js
|
|
61613
60900
|
class QueryPromise {
|
|
61614
60901
|
static [entityKind] = "QueryPromise";
|
|
61615
60902
|
[Symbol.toStringTag] = "QueryPromise";
|
|
@@ -61630,7 +60917,7 @@ class QueryPromise {
|
|
|
61630
60917
|
}
|
|
61631
60918
|
}
|
|
61632
60919
|
|
|
61633
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
60920
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/utils.js
|
|
61634
60921
|
function mapResultRow(columns, row, joinsNotNullableMap) {
|
|
61635
60922
|
const nullifyMap = {};
|
|
61636
60923
|
const result = columns.reduce((result2, { path: path2, field }, columnIndex) => {
|
|
@@ -61782,7 +61069,7 @@ function isConfig(data) {
|
|
|
61782
61069
|
}
|
|
61783
61070
|
var textDecoder = typeof TextDecoder === "undefined" ? null : new TextDecoder;
|
|
61784
61071
|
|
|
61785
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61072
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/int.common.js
|
|
61786
61073
|
class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
61787
61074
|
static [entityKind] = "PgIntColumnBaseBuilder";
|
|
61788
61075
|
generatedAlwaysAsIdentity(sequence2) {
|
|
@@ -61821,7 +61108,7 @@ class PgIntColumnBaseBuilder extends PgColumnBuilder {
|
|
|
61821
61108
|
}
|
|
61822
61109
|
}
|
|
61823
61110
|
|
|
61824
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61111
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/bigint.js
|
|
61825
61112
|
class PgBigInt53Builder extends PgIntColumnBaseBuilder {
|
|
61826
61113
|
static [entityKind] = "PgBigInt53Builder";
|
|
61827
61114
|
constructor(name) {
|
|
@@ -61872,7 +61159,7 @@ function bigint(a2, b2) {
|
|
|
61872
61159
|
return new PgBigInt64Builder(name);
|
|
61873
61160
|
}
|
|
61874
61161
|
|
|
61875
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61162
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/bigserial.js
|
|
61876
61163
|
class PgBigSerial53Builder extends PgColumnBuilder {
|
|
61877
61164
|
static [entityKind] = "PgBigSerial53Builder";
|
|
61878
61165
|
constructor(name) {
|
|
@@ -61926,7 +61213,7 @@ function bigserial(a2, b2) {
|
|
|
61926
61213
|
return new PgBigSerial64Builder(name);
|
|
61927
61214
|
}
|
|
61928
61215
|
|
|
61929
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61216
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/boolean.js
|
|
61930
61217
|
class PgBooleanBuilder extends PgColumnBuilder {
|
|
61931
61218
|
static [entityKind] = "PgBooleanBuilder";
|
|
61932
61219
|
constructor(name) {
|
|
@@ -61947,7 +61234,7 @@ function boolean(name) {
|
|
|
61947
61234
|
return new PgBooleanBuilder(name ?? "");
|
|
61948
61235
|
}
|
|
61949
61236
|
|
|
61950
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61237
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/char.js
|
|
61951
61238
|
class PgCharBuilder extends PgColumnBuilder {
|
|
61952
61239
|
static [entityKind] = "PgCharBuilder";
|
|
61953
61240
|
constructor(name, config3) {
|
|
@@ -61973,7 +61260,7 @@ function char(a2, b2 = {}) {
|
|
|
61973
61260
|
return new PgCharBuilder(name, config3);
|
|
61974
61261
|
}
|
|
61975
61262
|
|
|
61976
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61263
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/cidr.js
|
|
61977
61264
|
class PgCidrBuilder extends PgColumnBuilder {
|
|
61978
61265
|
static [entityKind] = "PgCidrBuilder";
|
|
61979
61266
|
constructor(name) {
|
|
@@ -61994,7 +61281,7 @@ function cidr(name) {
|
|
|
61994
61281
|
return new PgCidrBuilder(name ?? "");
|
|
61995
61282
|
}
|
|
61996
61283
|
|
|
61997
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61284
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/custom.js
|
|
61998
61285
|
class PgCustomColumnBuilder extends PgColumnBuilder {
|
|
61999
61286
|
static [entityKind] = "PgCustomColumnBuilder";
|
|
62000
61287
|
constructor(name, fieldConfig, customTypeParams) {
|
|
@@ -62035,7 +61322,7 @@ function customType(customTypeParams) {
|
|
|
62035
61322
|
};
|
|
62036
61323
|
}
|
|
62037
61324
|
|
|
62038
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61325
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/date.common.js
|
|
62039
61326
|
class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
62040
61327
|
static [entityKind] = "PgDateColumnBaseBuilder";
|
|
62041
61328
|
defaultNow() {
|
|
@@ -62043,7 +61330,7 @@ class PgDateColumnBaseBuilder extends PgColumnBuilder {
|
|
|
62043
61330
|
}
|
|
62044
61331
|
}
|
|
62045
61332
|
|
|
62046
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61333
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/date.js
|
|
62047
61334
|
class PgDateBuilder extends PgDateColumnBaseBuilder {
|
|
62048
61335
|
static [entityKind] = "PgDateBuilder";
|
|
62049
61336
|
constructor(name) {
|
|
@@ -62091,7 +61378,7 @@ function date(a2, b2) {
|
|
|
62091
61378
|
return new PgDateStringBuilder(name);
|
|
62092
61379
|
}
|
|
62093
61380
|
|
|
62094
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61381
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/double-precision.js
|
|
62095
61382
|
class PgDoublePrecisionBuilder extends PgColumnBuilder {
|
|
62096
61383
|
static [entityKind] = "PgDoublePrecisionBuilder";
|
|
62097
61384
|
constructor(name) {
|
|
@@ -62118,7 +61405,7 @@ function doublePrecision(name) {
|
|
|
62118
61405
|
return new PgDoublePrecisionBuilder(name ?? "");
|
|
62119
61406
|
}
|
|
62120
61407
|
|
|
62121
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61408
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/inet.js
|
|
62122
61409
|
class PgInetBuilder extends PgColumnBuilder {
|
|
62123
61410
|
static [entityKind] = "PgInetBuilder";
|
|
62124
61411
|
constructor(name) {
|
|
@@ -62139,7 +61426,7 @@ function inet(name) {
|
|
|
62139
61426
|
return new PgInetBuilder(name ?? "");
|
|
62140
61427
|
}
|
|
62141
61428
|
|
|
62142
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61429
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/integer.js
|
|
62143
61430
|
class PgIntegerBuilder extends PgIntColumnBaseBuilder {
|
|
62144
61431
|
static [entityKind] = "PgIntegerBuilder";
|
|
62145
61432
|
constructor(name) {
|
|
@@ -62166,7 +61453,7 @@ function integer2(name) {
|
|
|
62166
61453
|
return new PgIntegerBuilder(name ?? "");
|
|
62167
61454
|
}
|
|
62168
61455
|
|
|
62169
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61456
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/interval.js
|
|
62170
61457
|
class PgIntervalBuilder extends PgColumnBuilder {
|
|
62171
61458
|
static [entityKind] = "PgIntervalBuilder";
|
|
62172
61459
|
constructor(name, intervalConfig) {
|
|
@@ -62193,7 +61480,7 @@ function interval(a2, b2 = {}) {
|
|
|
62193
61480
|
return new PgIntervalBuilder(name, config3);
|
|
62194
61481
|
}
|
|
62195
61482
|
|
|
62196
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61483
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/json.js
|
|
62197
61484
|
class PgJsonBuilder extends PgColumnBuilder {
|
|
62198
61485
|
static [entityKind] = "PgJsonBuilder";
|
|
62199
61486
|
constructor(name) {
|
|
@@ -62230,7 +61517,7 @@ function json3(name) {
|
|
|
62230
61517
|
return new PgJsonBuilder(name ?? "");
|
|
62231
61518
|
}
|
|
62232
61519
|
|
|
62233
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61520
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/jsonb.js
|
|
62234
61521
|
class PgJsonbBuilder extends PgColumnBuilder {
|
|
62235
61522
|
static [entityKind] = "PgJsonbBuilder";
|
|
62236
61523
|
constructor(name) {
|
|
@@ -62267,7 +61554,7 @@ function jsonb(name) {
|
|
|
62267
61554
|
return new PgJsonbBuilder(name ?? "");
|
|
62268
61555
|
}
|
|
62269
61556
|
|
|
62270
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61557
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/line.js
|
|
62271
61558
|
class PgLineBuilder extends PgColumnBuilder {
|
|
62272
61559
|
static [entityKind] = "PgLineBuilder";
|
|
62273
61560
|
constructor(name) {
|
|
@@ -62323,7 +61610,7 @@ function line(a2, b2) {
|
|
|
62323
61610
|
return new PgLineABCBuilder(name);
|
|
62324
61611
|
}
|
|
62325
61612
|
|
|
62326
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61613
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/macaddr.js
|
|
62327
61614
|
class PgMacaddrBuilder extends PgColumnBuilder {
|
|
62328
61615
|
static [entityKind] = "PgMacaddrBuilder";
|
|
62329
61616
|
constructor(name) {
|
|
@@ -62344,7 +61631,7 @@ function macaddr(name) {
|
|
|
62344
61631
|
return new PgMacaddrBuilder(name ?? "");
|
|
62345
61632
|
}
|
|
62346
61633
|
|
|
62347
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61634
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/macaddr8.js
|
|
62348
61635
|
class PgMacaddr8Builder extends PgColumnBuilder {
|
|
62349
61636
|
static [entityKind] = "PgMacaddr8Builder";
|
|
62350
61637
|
constructor(name) {
|
|
@@ -62365,7 +61652,7 @@ function macaddr8(name) {
|
|
|
62365
61652
|
return new PgMacaddr8Builder(name ?? "");
|
|
62366
61653
|
}
|
|
62367
61654
|
|
|
62368
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61655
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/numeric.js
|
|
62369
61656
|
class PgNumericBuilder extends PgColumnBuilder {
|
|
62370
61657
|
static [entityKind] = "PgNumericBuilder";
|
|
62371
61658
|
constructor(name, precision, scale) {
|
|
@@ -62480,7 +61767,7 @@ function numeric(a2, b2) {
|
|
|
62480
61767
|
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);
|
|
62481
61768
|
}
|
|
62482
61769
|
|
|
62483
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61770
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/point.js
|
|
62484
61771
|
class PgPointTupleBuilder extends PgColumnBuilder {
|
|
62485
61772
|
static [entityKind] = "PgPointTupleBuilder";
|
|
62486
61773
|
constructor(name) {
|
|
@@ -62542,7 +61829,7 @@ function point(a2, b2) {
|
|
|
62542
61829
|
return new PgPointObjectBuilder(name);
|
|
62543
61830
|
}
|
|
62544
61831
|
|
|
62545
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61832
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/postgis_extension/utils.js
|
|
62546
61833
|
function hexToBytes(hex2) {
|
|
62547
61834
|
const bytes = [];
|
|
62548
61835
|
for (let c2 = 0;c2 < hex2.length; c2 += 2) {
|
|
@@ -62581,7 +61868,7 @@ function parseEWKB(hex2) {
|
|
|
62581
61868
|
throw new Error("Unsupported geometry type");
|
|
62582
61869
|
}
|
|
62583
61870
|
|
|
62584
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61871
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/postgis_extension/geometry.js
|
|
62585
61872
|
class PgGeometryBuilder extends PgColumnBuilder {
|
|
62586
61873
|
static [entityKind] = "PgGeometryBuilder";
|
|
62587
61874
|
constructor(name) {
|
|
@@ -62636,7 +61923,7 @@ function geometry(a2, b2) {
|
|
|
62636
61923
|
return new PgGeometryObjectBuilder(name);
|
|
62637
61924
|
}
|
|
62638
61925
|
|
|
62639
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61926
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/real.js
|
|
62640
61927
|
class PgRealBuilder extends PgColumnBuilder {
|
|
62641
61928
|
static [entityKind] = "PgRealBuilder";
|
|
62642
61929
|
constructor(name, length) {
|
|
@@ -62667,7 +61954,7 @@ function real(name) {
|
|
|
62667
61954
|
return new PgRealBuilder(name ?? "");
|
|
62668
61955
|
}
|
|
62669
61956
|
|
|
62670
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61957
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/serial.js
|
|
62671
61958
|
class PgSerialBuilder extends PgColumnBuilder {
|
|
62672
61959
|
static [entityKind] = "PgSerialBuilder";
|
|
62673
61960
|
constructor(name) {
|
|
@@ -62690,7 +61977,7 @@ function serial(name) {
|
|
|
62690
61977
|
return new PgSerialBuilder(name ?? "");
|
|
62691
61978
|
}
|
|
62692
61979
|
|
|
62693
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
61980
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/smallint.js
|
|
62694
61981
|
class PgSmallIntBuilder extends PgIntColumnBaseBuilder {
|
|
62695
61982
|
static [entityKind] = "PgSmallIntBuilder";
|
|
62696
61983
|
constructor(name) {
|
|
@@ -62717,7 +62004,7 @@ function smallint(name) {
|
|
|
62717
62004
|
return new PgSmallIntBuilder(name ?? "");
|
|
62718
62005
|
}
|
|
62719
62006
|
|
|
62720
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62007
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/smallserial.js
|
|
62721
62008
|
class PgSmallSerialBuilder extends PgColumnBuilder {
|
|
62722
62009
|
static [entityKind] = "PgSmallSerialBuilder";
|
|
62723
62010
|
constructor(name) {
|
|
@@ -62740,7 +62027,7 @@ function smallserial(name) {
|
|
|
62740
62027
|
return new PgSmallSerialBuilder(name ?? "");
|
|
62741
62028
|
}
|
|
62742
62029
|
|
|
62743
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62030
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/text.js
|
|
62744
62031
|
class PgTextBuilder extends PgColumnBuilder {
|
|
62745
62032
|
static [entityKind] = "PgTextBuilder";
|
|
62746
62033
|
constructor(name, config3) {
|
|
@@ -62764,7 +62051,7 @@ function text(a2, b2 = {}) {
|
|
|
62764
62051
|
return new PgTextBuilder(name, config3);
|
|
62765
62052
|
}
|
|
62766
62053
|
|
|
62767
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62054
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/time.js
|
|
62768
62055
|
class PgTimeBuilder extends PgDateColumnBaseBuilder {
|
|
62769
62056
|
constructor(name, withTimezone, precision) {
|
|
62770
62057
|
super(name, "string", "PgTime");
|
|
@@ -62798,7 +62085,7 @@ function time(a2, b2 = {}) {
|
|
|
62798
62085
|
return new PgTimeBuilder(name, config3.withTimezone ?? false, config3.precision);
|
|
62799
62086
|
}
|
|
62800
62087
|
|
|
62801
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62088
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/timestamp.js
|
|
62802
62089
|
class PgTimestampBuilder extends PgDateColumnBaseBuilder {
|
|
62803
62090
|
static [entityKind] = "PgTimestampBuilder";
|
|
62804
62091
|
constructor(name, withTimezone, precision) {
|
|
@@ -62866,7 +62153,7 @@ function timestamp(a2, b2 = {}) {
|
|
|
62866
62153
|
return new PgTimestampBuilder(name, config3?.withTimezone ?? false, config3?.precision);
|
|
62867
62154
|
}
|
|
62868
62155
|
|
|
62869
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62156
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/uuid.js
|
|
62870
62157
|
class PgUUIDBuilder extends PgColumnBuilder {
|
|
62871
62158
|
static [entityKind] = "PgUUIDBuilder";
|
|
62872
62159
|
constructor(name) {
|
|
@@ -62890,7 +62177,7 @@ function uuid2(name) {
|
|
|
62890
62177
|
return new PgUUIDBuilder(name ?? "");
|
|
62891
62178
|
}
|
|
62892
62179
|
|
|
62893
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62180
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/varchar.js
|
|
62894
62181
|
class PgVarcharBuilder extends PgColumnBuilder {
|
|
62895
62182
|
static [entityKind] = "PgVarcharBuilder";
|
|
62896
62183
|
constructor(name, config3) {
|
|
@@ -62916,7 +62203,7 @@ function varchar(a2, b2 = {}) {
|
|
|
62916
62203
|
return new PgVarcharBuilder(name, config3);
|
|
62917
62204
|
}
|
|
62918
62205
|
|
|
62919
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62206
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/bit.js
|
|
62920
62207
|
class PgBinaryVectorBuilder extends PgColumnBuilder {
|
|
62921
62208
|
static [entityKind] = "PgBinaryVectorBuilder";
|
|
62922
62209
|
constructor(name, config3) {
|
|
@@ -62940,7 +62227,7 @@ function bit(a2, b2) {
|
|
|
62940
62227
|
return new PgBinaryVectorBuilder(name, config3);
|
|
62941
62228
|
}
|
|
62942
62229
|
|
|
62943
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62230
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/halfvec.js
|
|
62944
62231
|
class PgHalfVectorBuilder extends PgColumnBuilder {
|
|
62945
62232
|
static [entityKind] = "PgHalfVectorBuilder";
|
|
62946
62233
|
constructor(name, config3) {
|
|
@@ -62970,7 +62257,7 @@ function halfvec(a2, b2) {
|
|
|
62970
62257
|
return new PgHalfVectorBuilder(name, config3);
|
|
62971
62258
|
}
|
|
62972
62259
|
|
|
62973
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62260
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/sparsevec.js
|
|
62974
62261
|
class PgSparseVectorBuilder extends PgColumnBuilder {
|
|
62975
62262
|
static [entityKind] = "PgSparseVectorBuilder";
|
|
62976
62263
|
constructor(name, config3) {
|
|
@@ -62994,7 +62281,7 @@ function sparsevec(a2, b2) {
|
|
|
62994
62281
|
return new PgSparseVectorBuilder(name, config3);
|
|
62995
62282
|
}
|
|
62996
62283
|
|
|
62997
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62284
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/vector_extension/vector.js
|
|
62998
62285
|
class PgVectorBuilder extends PgColumnBuilder {
|
|
62999
62286
|
static [entityKind] = "PgVectorBuilder";
|
|
63000
62287
|
constructor(name, config3) {
|
|
@@ -63024,7 +62311,7 @@ function vector(a2, b2) {
|
|
|
63024
62311
|
return new PgVectorBuilder(name, config3);
|
|
63025
62312
|
}
|
|
63026
62313
|
|
|
63027
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62314
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/columns/all.js
|
|
63028
62315
|
function getPgColumnBuilders() {
|
|
63029
62316
|
return {
|
|
63030
62317
|
bigint,
|
|
@@ -63062,7 +62349,7 @@ function getPgColumnBuilders() {
|
|
|
63062
62349
|
};
|
|
63063
62350
|
}
|
|
63064
62351
|
|
|
63065
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62352
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/table.js
|
|
63066
62353
|
var InlineForeignKeys = Symbol.for("drizzle:PgInlineForeignKeys");
|
|
63067
62354
|
var EnableRLS = Symbol.for("drizzle:EnableRLS");
|
|
63068
62355
|
|
|
@@ -63110,7 +62397,7 @@ var pgTable = (name, columns, extraConfig) => {
|
|
|
63110
62397
|
return pgTableWithSchema(name, columns, extraConfig, undefined);
|
|
63111
62398
|
};
|
|
63112
62399
|
|
|
63113
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62400
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/primary-keys.js
|
|
63114
62401
|
function primaryKey(...config3) {
|
|
63115
62402
|
if (config3[0].columns) {
|
|
63116
62403
|
return new PrimaryKeyBuilder(config3[0].columns, config3[0].name);
|
|
@@ -63145,7 +62432,7 @@ class PrimaryKey {
|
|
|
63145
62432
|
}
|
|
63146
62433
|
}
|
|
63147
62434
|
|
|
63148
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62435
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/sql/expressions/conditions.js
|
|
63149
62436
|
function bindIfParam(value2, column) {
|
|
63150
62437
|
if (isDriverValueEncoder(column) && !isSQLWrapper(value2) && !is(value2, Param) && !is(value2, Placeholder) && !is(value2, Column) && !is(value2, Table) && !is(value2, View)) {
|
|
63151
62438
|
return new Param(value2, column);
|
|
@@ -63250,7 +62537,7 @@ function notIlike(column, value2) {
|
|
|
63250
62537
|
return sql`${column} not ilike ${value2}`;
|
|
63251
62538
|
}
|
|
63252
62539
|
|
|
63253
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62540
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/sql/expressions/select.js
|
|
63254
62541
|
function asc(column) {
|
|
63255
62542
|
return sql`${column} asc`;
|
|
63256
62543
|
}
|
|
@@ -63258,7 +62545,7 @@ function desc(column) {
|
|
|
63258
62545
|
return sql`${column} desc`;
|
|
63259
62546
|
}
|
|
63260
62547
|
|
|
63261
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
62548
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/relations.js
|
|
63262
62549
|
class Relation {
|
|
63263
62550
|
constructor(sourceTable, referencedTable, relationName) {
|
|
63264
62551
|
this.sourceTable = sourceTable;
|
|
@@ -65425,7 +64712,7 @@ function osUsername() {
|
|
|
65425
64712
|
}
|
|
65426
64713
|
}
|
|
65427
64714
|
|
|
65428
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64715
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/selection-proxy.js
|
|
65429
64716
|
class SelectionProxyHandler {
|
|
65430
64717
|
static [entityKind] = "SelectionProxyHandler";
|
|
65431
64718
|
config;
|
|
@@ -65477,7 +64764,7 @@ class SelectionProxyHandler {
|
|
|
65477
64764
|
}
|
|
65478
64765
|
}
|
|
65479
64766
|
|
|
65480
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64767
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/indexes.js
|
|
65481
64768
|
class IndexBuilderOn {
|
|
65482
64769
|
constructor(unique, name) {
|
|
65483
64770
|
this.unique = unique;
|
|
@@ -65559,7 +64846,7 @@ function uniqueIndex(name) {
|
|
|
65559
64846
|
return new IndexBuilderOn(true, name);
|
|
65560
64847
|
}
|
|
65561
64848
|
|
|
65562
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64849
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/casing.js
|
|
65563
64850
|
function toSnakeCase(input) {
|
|
65564
64851
|
const words = input.replace(/['\u2019]/g, "").match(/[\da-z]+|[A-Z]+(?![a-z])|[A-Z][\da-z]+/g) ?? [];
|
|
65565
64852
|
return words.map((word) => word.toLowerCase()).join("_");
|
|
@@ -65612,12 +64899,12 @@ class CasingCache {
|
|
|
65612
64899
|
}
|
|
65613
64900
|
}
|
|
65614
64901
|
|
|
65615
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64902
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/view-base.js
|
|
65616
64903
|
class PgViewBase extends View {
|
|
65617
64904
|
static [entityKind] = "PgViewBase";
|
|
65618
64905
|
}
|
|
65619
64906
|
|
|
65620
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
64907
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/dialect.js
|
|
65621
64908
|
class PgDialect {
|
|
65622
64909
|
static [entityKind] = "PgDialect";
|
|
65623
64910
|
casing;
|
|
@@ -66175,7 +65462,7 @@ class PgDialect {
|
|
|
66175
65462
|
}
|
|
66176
65463
|
}
|
|
66177
65464
|
|
|
66178
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65465
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/query-builders/query-builder.js
|
|
66179
65466
|
class TypedQueryBuilder {
|
|
66180
65467
|
static [entityKind] = "TypedQueryBuilder";
|
|
66181
65468
|
getSelectedFields() {
|
|
@@ -66183,7 +65470,7 @@ class TypedQueryBuilder {
|
|
|
66183
65470
|
}
|
|
66184
65471
|
}
|
|
66185
65472
|
|
|
66186
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65473
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/select.js
|
|
66187
65474
|
class PgSelectBuilder {
|
|
66188
65475
|
static [entityKind] = "PgSelectBuilder";
|
|
66189
65476
|
fields;
|
|
@@ -66501,7 +65788,7 @@ var intersectAll = createSetOperator("intersect", true);
|
|
|
66501
65788
|
var except = createSetOperator("except", false);
|
|
66502
65789
|
var exceptAll = createSetOperator("except", true);
|
|
66503
65790
|
|
|
66504
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65791
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/query-builder.js
|
|
66505
65792
|
class QueryBuilder {
|
|
66506
65793
|
static [entityKind] = "PgQueryBuilder";
|
|
66507
65794
|
dialect;
|
|
@@ -66579,7 +65866,7 @@ class QueryBuilder {
|
|
|
66579
65866
|
}
|
|
66580
65867
|
}
|
|
66581
65868
|
|
|
66582
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65869
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/utils.js
|
|
66583
65870
|
function extractUsedTable(table) {
|
|
66584
65871
|
if (is(table, PgTable)) {
|
|
66585
65872
|
return [table[Schema] ? `${table[Schema]}.${table[Table.Symbol.BaseName]}` : table[Table.Symbol.BaseName]];
|
|
@@ -66593,7 +65880,7 @@ function extractUsedTable(table) {
|
|
|
66593
65880
|
return [];
|
|
66594
65881
|
}
|
|
66595
65882
|
|
|
66596
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65883
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/delete.js
|
|
66597
65884
|
class PgDeleteBase extends QueryPromise {
|
|
66598
65885
|
constructor(table, session, dialect, withList) {
|
|
66599
65886
|
super();
|
|
@@ -66653,7 +65940,7 @@ class PgDeleteBase extends QueryPromise {
|
|
|
66653
65940
|
}
|
|
66654
65941
|
}
|
|
66655
65942
|
|
|
66656
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
65943
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/insert.js
|
|
66657
65944
|
class PgInsertBuilder {
|
|
66658
65945
|
constructor(table, session, dialect, withList, overridingSystemValue_) {
|
|
66659
65946
|
this.table = table;
|
|
@@ -66776,7 +66063,7 @@ class PgInsertBase extends QueryPromise {
|
|
|
66776
66063
|
}
|
|
66777
66064
|
}
|
|
66778
66065
|
|
|
66779
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66066
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/refresh-materialized-view.js
|
|
66780
66067
|
class PgRefreshMaterializedView extends QueryPromise {
|
|
66781
66068
|
constructor(view, session, dialect) {
|
|
66782
66069
|
super();
|
|
@@ -66827,7 +66114,7 @@ class PgRefreshMaterializedView extends QueryPromise {
|
|
|
66827
66114
|
};
|
|
66828
66115
|
}
|
|
66829
66116
|
|
|
66830
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66117
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/update.js
|
|
66831
66118
|
class PgUpdateBuilder {
|
|
66832
66119
|
constructor(table, session, dialect, withList) {
|
|
66833
66120
|
this.table = table;
|
|
@@ -66981,7 +66268,7 @@ class PgUpdateBase extends QueryPromise {
|
|
|
66981
66268
|
}
|
|
66982
66269
|
}
|
|
66983
66270
|
|
|
66984
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66271
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/count.js
|
|
66985
66272
|
class PgCountBuilder extends SQL {
|
|
66986
66273
|
constructor(params) {
|
|
66987
66274
|
super(PgCountBuilder.buildEmbeddedCount(params.source, params.filters).queryChunks);
|
|
@@ -67022,7 +66309,7 @@ class PgCountBuilder extends SQL {
|
|
|
67022
66309
|
}
|
|
67023
66310
|
}
|
|
67024
66311
|
|
|
67025
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66312
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/query.js
|
|
67026
66313
|
class RelationalQueryBuilder {
|
|
67027
66314
|
constructor(fullSchema, schema2, tableNamesMap, table, tableConfig, dialect, session) {
|
|
67028
66315
|
this.fullSchema = fullSchema;
|
|
@@ -67105,7 +66392,7 @@ class PgRelationalQuery extends QueryPromise {
|
|
|
67105
66392
|
}
|
|
67106
66393
|
}
|
|
67107
66394
|
|
|
67108
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66395
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/query-builders/raw.js
|
|
67109
66396
|
class PgRaw extends QueryPromise {
|
|
67110
66397
|
constructor(execute, sql2, query, mapBatchResult) {
|
|
67111
66398
|
super();
|
|
@@ -67132,7 +66419,7 @@ class PgRaw extends QueryPromise {
|
|
|
67132
66419
|
}
|
|
67133
66420
|
}
|
|
67134
66421
|
|
|
67135
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66422
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/db.js
|
|
67136
66423
|
class PgDatabase {
|
|
67137
66424
|
constructor(dialect, session, schema2) {
|
|
67138
66425
|
this.dialect = dialect;
|
|
@@ -67253,12 +66540,12 @@ class PgDatabase {
|
|
|
67253
66540
|
const prepared = this.session.prepareQuery(builtQuery, undefined, undefined, false);
|
|
67254
66541
|
return new PgRaw(() => prepared.execute(undefined, this.authToken), sequel, builtQuery, (result) => prepared.mapResult(result, true));
|
|
67255
66542
|
}
|
|
67256
|
-
transaction(
|
|
67257
|
-
return this.session.transaction(
|
|
66543
|
+
transaction(transaction, config3) {
|
|
66544
|
+
return this.session.transaction(transaction, config3);
|
|
67258
66545
|
}
|
|
67259
66546
|
}
|
|
67260
66547
|
|
|
67261
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66548
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/cache/core/cache.js
|
|
67262
66549
|
class Cache {
|
|
67263
66550
|
static [entityKind] = "Cache";
|
|
67264
66551
|
}
|
|
@@ -67284,7 +66571,7 @@ async function hashQuery(sql2, params) {
|
|
|
67284
66571
|
return hashHex;
|
|
67285
66572
|
}
|
|
67286
66573
|
|
|
67287
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66574
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/pg-core/session.js
|
|
67288
66575
|
class PgPreparedQuery {
|
|
67289
66576
|
constructor(query, cache, queryMetadata, cacheConfig) {
|
|
67290
66577
|
this.query = query;
|
|
@@ -67416,7 +66703,7 @@ class PgTransaction extends PgDatabase {
|
|
|
67416
66703
|
}
|
|
67417
66704
|
}
|
|
67418
66705
|
|
|
67419
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66706
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/postgres-js/session.js
|
|
67420
66707
|
class PostgresJsPreparedQuery extends PgPreparedQuery {
|
|
67421
66708
|
constructor(client, queryString, params, logger, cache, queryMetadata, cacheConfig, fields, _isResponseInArrayMode, customResultMapper) {
|
|
67422
66709
|
super({ sql: queryString, params }, cache, queryMetadata, cacheConfig);
|
|
@@ -67505,14 +66792,14 @@ class PostgresJsSession extends PgSession {
|
|
|
67505
66792
|
queryObjects(query, params) {
|
|
67506
66793
|
return this.client.unsafe(query, params);
|
|
67507
66794
|
}
|
|
67508
|
-
transaction(
|
|
66795
|
+
transaction(transaction, config3) {
|
|
67509
66796
|
return this.client.begin(async (client) => {
|
|
67510
66797
|
const session = new PostgresJsSession(client, this.dialect, this.schema, this.options);
|
|
67511
66798
|
const tx = new PostgresJsTransaction(this.dialect, session, this.schema);
|
|
67512
66799
|
if (config3) {
|
|
67513
66800
|
await tx.setTransaction(config3);
|
|
67514
66801
|
}
|
|
67515
|
-
return
|
|
66802
|
+
return transaction(tx);
|
|
67516
66803
|
});
|
|
67517
66804
|
}
|
|
67518
66805
|
}
|
|
@@ -67523,16 +66810,16 @@ class PostgresJsTransaction extends PgTransaction {
|
|
|
67523
66810
|
this.session = session;
|
|
67524
66811
|
}
|
|
67525
66812
|
static [entityKind] = "PostgresJsTransaction";
|
|
67526
|
-
transaction(
|
|
66813
|
+
transaction(transaction) {
|
|
67527
66814
|
return this.session.client.savepoint((client) => {
|
|
67528
66815
|
const session = new PostgresJsSession(client, this.dialect, this.schema, this.session.options);
|
|
67529
66816
|
const tx = new PostgresJsTransaction(this.dialect, session, this.schema);
|
|
67530
|
-
return
|
|
66817
|
+
return transaction(tx);
|
|
67531
66818
|
});
|
|
67532
66819
|
}
|
|
67533
66820
|
}
|
|
67534
66821
|
|
|
67535
|
-
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.
|
|
66822
|
+
// ../../node_modules/.pnpm/drizzle-orm@0.44.7_@cloudflare+workers-types@4.20251106.1_bun-types@1.3.2_@types+react@19.2.4__postgres@3.4.7/node_modules/drizzle-orm/postgres-js/driver.js
|
|
67536
66823
|
class PostgresJsDatabase extends PgDatabase {
|
|
67537
66824
|
static [entityKind] = "PostgresJsDatabase";
|
|
67538
66825
|
}
|