@dev-blinq/bvt-playwright-js 1.0.0-dev.4 → 1.0.0-dev.4.latest.105.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{en-Bp7eyprf.mjs → en-KbNSnMPf.mjs} +4 -4
- package/en-KbNSnMPf.mjs.map +1 -0
- package/index.d.mts +30 -23
- package/index.mjs +240 -125
- package/index.mjs.map +1 -1
- package/{otpauth.node-k0uQ9qOV.mjs → otpauth.node-flL8gowF.mjs} +2 -2
- package/otpauth.node-flL8gowF.mjs.map +1 -0
- package/package.json +1 -1
- package/en-Bp7eyprf.mjs.map +0 -1
- package/otpauth.node-k0uQ9qOV.mjs.map +0 -1
package/index.mjs
CHANGED
|
@@ -343,7 +343,7 @@ var TestDataApi = class {
|
|
|
343
343
|
};
|
|
344
344
|
|
|
345
345
|
//#endregion
|
|
346
|
-
//#region ../../node_modules/zod/v4/core/core.js
|
|
346
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
347
347
|
/** A special constant with type `never` */
|
|
348
348
|
const NEVER = Object.freeze({ status: "aborted" });
|
|
349
349
|
function $constructor(name, initializer, params) {
|
|
@@ -403,7 +403,7 @@ function config(newConfig) {
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
//#endregion
|
|
406
|
-
//#region ../../node_modules/zod/v4/core/util.js
|
|
406
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/util.js
|
|
407
407
|
function getEnumValues(entries) {
|
|
408
408
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
409
409
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
|
@@ -717,7 +717,7 @@ function issue(...args) {
|
|
|
717
717
|
}
|
|
718
718
|
|
|
719
719
|
//#endregion
|
|
720
|
-
//#region ../../node_modules/zod/v4/core/errors.js
|
|
720
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/errors.js
|
|
721
721
|
const initializer$1 = (inst, def) => {
|
|
722
722
|
inst.name = "$ZodError";
|
|
723
723
|
Object.defineProperty(inst, "_zod", {
|
|
@@ -775,7 +775,7 @@ function formatError(error, mapper = (issue) => issue.message) {
|
|
|
775
775
|
}
|
|
776
776
|
|
|
777
777
|
//#endregion
|
|
778
|
-
//#region ../../node_modules/zod/v4/core/parse.js
|
|
778
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/parse.js
|
|
779
779
|
const _parse = (_Err) => (schema, value, _ctx, _params) => {
|
|
780
780
|
const ctx = _ctx ? Object.assign(_ctx, { async: false }) : { async: false };
|
|
781
781
|
const result = schema._zod.run({
|
|
@@ -879,7 +879,7 @@ const _safeDecodeAsync = (_Err) => async (schema, value, _ctx) => {
|
|
|
879
879
|
const safeDecodeAsync$1 = /* @__PURE__ */ _safeDecodeAsync($ZodRealError);
|
|
880
880
|
|
|
881
881
|
//#endregion
|
|
882
|
-
//#region ../../node_modules/zod/v4/core/regexes.js
|
|
882
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
883
883
|
const cuid = /^[cC][^\s-]{8,}$/;
|
|
884
884
|
const cuid2 = /^[0-9a-z]+$/;
|
|
885
885
|
const ulid$1 = /^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/;
|
|
@@ -939,7 +939,7 @@ const lowercase = /^[^A-Z]*$/;
|
|
|
939
939
|
const uppercase = /^[^a-z]*$/;
|
|
940
940
|
|
|
941
941
|
//#endregion
|
|
942
|
-
//#region ../../node_modules/zod/v4/core/checks.js
|
|
942
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/checks.js
|
|
943
943
|
const $ZodCheck = /* @__PURE__ */ $constructor("$ZodCheck", (inst, def) => {
|
|
944
944
|
var _a;
|
|
945
945
|
inst._zod ?? (inst._zod = {});
|
|
@@ -1298,7 +1298,7 @@ const $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (i
|
|
|
1298
1298
|
});
|
|
1299
1299
|
|
|
1300
1300
|
//#endregion
|
|
1301
|
-
//#region ../../node_modules/zod/v4/core/doc.js
|
|
1301
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/doc.js
|
|
1302
1302
|
var Doc = class {
|
|
1303
1303
|
constructor(args = []) {
|
|
1304
1304
|
this.content = [];
|
|
@@ -1330,7 +1330,7 @@ var Doc = class {
|
|
|
1330
1330
|
};
|
|
1331
1331
|
|
|
1332
1332
|
//#endregion
|
|
1333
|
-
//#region ../../node_modules/zod/v4/core/versions.js
|
|
1333
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/versions.js
|
|
1334
1334
|
const version$1 = {
|
|
1335
1335
|
major: 4,
|
|
1336
1336
|
minor: 3,
|
|
@@ -1338,7 +1338,7 @@ const version$1 = {
|
|
|
1338
1338
|
};
|
|
1339
1339
|
|
|
1340
1340
|
//#endregion
|
|
1341
|
-
//#region ../../node_modules/zod/v4/core/schemas.js
|
|
1341
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/schemas.js
|
|
1342
1342
|
const $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
1343
1343
|
var _a;
|
|
1344
1344
|
inst ?? (inst = {});
|
|
@@ -2586,7 +2586,7 @@ function handleRefineResult(result, payload, input, inst) {
|
|
|
2586
2586
|
}
|
|
2587
2587
|
|
|
2588
2588
|
//#endregion
|
|
2589
|
-
//#region ../../node_modules/zod/v4/core/registries.js
|
|
2589
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
2590
2590
|
var _a;
|
|
2591
2591
|
var $ZodRegistry = class {
|
|
2592
2592
|
constructor() {
|
|
@@ -2634,7 +2634,7 @@ function registry() {
|
|
|
2634
2634
|
const globalRegistry = globalThis.__zod_globalRegistry;
|
|
2635
2635
|
|
|
2636
2636
|
//#endregion
|
|
2637
|
-
//#region ../../node_modules/zod/v4/core/api.js
|
|
2637
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
2638
2638
|
/* @__NO_SIDE_EFFECTS__ */
|
|
2639
2639
|
function _string(Class, params) {
|
|
2640
2640
|
return new Class({
|
|
@@ -3175,7 +3175,7 @@ function meta$1(metadata) {
|
|
|
3175
3175
|
}
|
|
3176
3176
|
|
|
3177
3177
|
//#endregion
|
|
3178
|
-
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
3178
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/to-json-schema.js
|
|
3179
3179
|
function initializeContext(params) {
|
|
3180
3180
|
let target = params?.target ?? "draft-2020-12";
|
|
3181
3181
|
if (target === "draft-4") target = "draft-04";
|
|
@@ -3461,7 +3461,7 @@ const createStandardJSONSchemaMethod = (schema, io, processors = {}) => (params)
|
|
|
3461
3461
|
};
|
|
3462
3462
|
|
|
3463
3463
|
//#endregion
|
|
3464
|
-
//#region ../../node_modules/zod/v4/core/json-schema-processors.js
|
|
3464
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/json-schema-processors.js
|
|
3465
3465
|
const formatMap = {
|
|
3466
3466
|
guid: "uuid",
|
|
3467
3467
|
url: "uri",
|
|
@@ -3745,7 +3745,7 @@ const lazyProcessor = (schema, ctx, _json, params) => {
|
|
|
3745
3745
|
};
|
|
3746
3746
|
|
|
3747
3747
|
//#endregion
|
|
3748
|
-
//#region ../../node_modules/zod/v4/classic/iso.js
|
|
3748
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/iso.js
|
|
3749
3749
|
const ZodISODateTime = /* @__PURE__ */ $constructor("ZodISODateTime", (inst, def) => {
|
|
3750
3750
|
$ZodISODateTime.init(inst, def);
|
|
3751
3751
|
ZodStringFormat.init(inst, def);
|
|
@@ -3776,7 +3776,7 @@ function duration(params) {
|
|
|
3776
3776
|
}
|
|
3777
3777
|
|
|
3778
3778
|
//#endregion
|
|
3779
|
-
//#region ../../node_modules/zod/v4/classic/errors.js
|
|
3779
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/errors.js
|
|
3780
3780
|
const initializer = (inst, issues) => {
|
|
3781
3781
|
$ZodError.init(inst, issues);
|
|
3782
3782
|
inst.name = "ZodError";
|
|
@@ -3800,7 +3800,7 @@ const ZodError = $constructor("ZodError", initializer);
|
|
|
3800
3800
|
const ZodRealError = $constructor("ZodError", initializer, { Parent: Error });
|
|
3801
3801
|
|
|
3802
3802
|
//#endregion
|
|
3803
|
-
//#region ../../node_modules/zod/v4/classic/parse.js
|
|
3803
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/parse.js
|
|
3804
3804
|
const parse$1 = /* @__PURE__ */ _parse(ZodRealError);
|
|
3805
3805
|
const parseAsync = /* @__PURE__ */ _parseAsync(ZodRealError);
|
|
3806
3806
|
const safeParse = /* @__PURE__ */ _safeParse(ZodRealError);
|
|
@@ -3815,7 +3815,7 @@ const safeEncodeAsync = /* @__PURE__ */ _safeEncodeAsync(ZodRealError);
|
|
|
3815
3815
|
const safeDecodeAsync = /* @__PURE__ */ _safeDecodeAsync(ZodRealError);
|
|
3816
3816
|
|
|
3817
3817
|
//#endregion
|
|
3818
|
-
//#region ../../node_modules/zod/v4/classic/schemas.js
|
|
3818
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/schemas.js
|
|
3819
3819
|
const ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
3820
3820
|
$ZodType.init(inst, def);
|
|
3821
3821
|
Object.assign(inst["~standard"], { jsonSchema: {
|
|
@@ -4467,7 +4467,7 @@ function preprocess(fn, schema) {
|
|
|
4467
4467
|
}
|
|
4468
4468
|
|
|
4469
4469
|
//#endregion
|
|
4470
|
-
//#region ../../node_modules/zod/v4/classic/compat.js
|
|
4470
|
+
//#region ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/classic/compat.js
|
|
4471
4471
|
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
4472
4472
|
const ZodIssueCode = {
|
|
4473
4473
|
invalid_type: "invalid_type",
|
|
@@ -6202,6 +6202,15 @@ const AiRecoveredScenarioVersionSchema = object({
|
|
|
6202
6202
|
supersededAt: date().optional()
|
|
6203
6203
|
}).strict();
|
|
6204
6204
|
|
|
6205
|
+
//#endregion
|
|
6206
|
+
//#region ../../core/schemas/src/custom-code-step-template/custom-code-step-template.schema.ts
|
|
6207
|
+
const CustomCodeStepTemplateSchema = object({
|
|
6208
|
+
_id: EntityIdSchema,
|
|
6209
|
+
projectId: EntityIdSchema,
|
|
6210
|
+
name: string().min(1).max(500),
|
|
6211
|
+
code: string().min(1).max(1e5)
|
|
6212
|
+
}).strict();
|
|
6213
|
+
|
|
6205
6214
|
//#endregion
|
|
6206
6215
|
//#region ../../core/schemas/src/workspace/workspace.schema.ts
|
|
6207
6216
|
const EnvironmentSchema = object({
|
|
@@ -6461,7 +6470,7 @@ const BrowserObserverStateKSchema = union([_enum([
|
|
|
6461
6470
|
]), _null()]);
|
|
6462
6471
|
|
|
6463
6472
|
//#endregion
|
|
6464
|
-
//#region ../../node_modules/xstate/dev/dist/xstate-dev.esm.js
|
|
6473
|
+
//#region ../../node_modules/.pnpm/xstate@5.28.0/node_modules/xstate/dev/dist/xstate-dev.esm.js
|
|
6465
6474
|
function getGlobal$1() {
|
|
6466
6475
|
if (typeof globalThis !== "undefined") return globalThis;
|
|
6467
6476
|
if (typeof self !== "undefined") return self;
|
|
@@ -6479,7 +6488,7 @@ const devToolsAdapter = (service) => {
|
|
|
6479
6488
|
};
|
|
6480
6489
|
|
|
6481
6490
|
//#endregion
|
|
6482
|
-
//#region ../../node_modules/xstate/dist/raise-34c45204.esm.js
|
|
6491
|
+
//#region ../../node_modules/.pnpm/xstate@5.28.0/node_modules/xstate/dist/raise-34c45204.esm.js
|
|
6483
6492
|
var Mailbox = class {
|
|
6484
6493
|
constructor(_process) {
|
|
6485
6494
|
this._process = _process;
|
|
@@ -8383,7 +8392,7 @@ function raise(eventOrExpr, options) {
|
|
|
8383
8392
|
}
|
|
8384
8393
|
|
|
8385
8394
|
//#endregion
|
|
8386
|
-
//#region ../../node_modules/xstate/actors/dist/xstate-actors.esm.js
|
|
8395
|
+
//#region ../../node_modules/.pnpm/xstate@5.28.0/node_modules/xstate/actors/dist/xstate-actors.esm.js
|
|
8387
8396
|
/**
|
|
8388
8397
|
* Represents an actor created by `fromTransition`.
|
|
8389
8398
|
*
|
|
@@ -8694,7 +8703,7 @@ function fromCallback(callback) {
|
|
|
8694
8703
|
const emptyLogic = fromTransition((_) => void 0, void 0);
|
|
8695
8704
|
|
|
8696
8705
|
//#endregion
|
|
8697
|
-
//#region ../../node_modules/xstate/dist/assign-5f7ff891.esm.js
|
|
8706
|
+
//#region ../../node_modules/.pnpm/xstate@5.28.0/node_modules/xstate/dist/assign-5f7ff891.esm.js
|
|
8698
8707
|
function createSpawner(actorScope, { machine, context }, event, spawnedChildren) {
|
|
8699
8708
|
const spawn = (src, options) => {
|
|
8700
8709
|
if (typeof src === "string") {
|
|
@@ -8804,7 +8813,7 @@ function assign(assignment) {
|
|
|
8804
8813
|
}
|
|
8805
8814
|
|
|
8806
8815
|
//#endregion
|
|
8807
|
-
//#region ../../node_modules/xstate/dist/StateMachine-9ef88566.esm.js
|
|
8816
|
+
//#region ../../node_modules/.pnpm/xstate@5.28.0/node_modules/xstate/dist/StateMachine-9ef88566.esm.js
|
|
8808
8817
|
const cache = /* @__PURE__ */ new WeakMap();
|
|
8809
8818
|
function memo(object, key, fn) {
|
|
8810
8819
|
let memoizedData = cache.get(object);
|
|
@@ -9270,7 +9279,7 @@ var StateMachine = class StateMachine {
|
|
|
9270
9279
|
};
|
|
9271
9280
|
|
|
9272
9281
|
//#endregion
|
|
9273
|
-
//#region ../../node_modules/xstate/dist/log-1324d455.esm.js
|
|
9282
|
+
//#region ../../node_modules/.pnpm/xstate@5.28.0/node_modules/xstate/dist/log-1324d455.esm.js
|
|
9274
9283
|
function resolveEmit(_, snapshot, args, actionParams, { event: eventOrExpr }) {
|
|
9275
9284
|
return [
|
|
9276
9285
|
snapshot,
|
|
@@ -9554,7 +9563,7 @@ function log(value = ({ context, event }) => ({
|
|
|
9554
9563
|
}
|
|
9555
9564
|
|
|
9556
9565
|
//#endregion
|
|
9557
|
-
//#region ../../node_modules/xstate/dist/xstate.esm.js
|
|
9566
|
+
//#region ../../node_modules/.pnpm/xstate@5.28.0/node_modules/xstate/dist/xstate.esm.js
|
|
9558
9567
|
/**
|
|
9559
9568
|
* Creates a state machine (statechart) with the given configuration.
|
|
9560
9569
|
*
|
|
@@ -9803,6 +9812,7 @@ const FieldKindSchema = _enum([
|
|
|
9803
9812
|
"number",
|
|
9804
9813
|
"date",
|
|
9805
9814
|
"select",
|
|
9815
|
+
"custom-select",
|
|
9806
9816
|
"multiselect",
|
|
9807
9817
|
"checkbox",
|
|
9808
9818
|
"radio",
|
|
@@ -9829,11 +9839,17 @@ const FillFormBatchResultEntrySchema = object({
|
|
|
9829
9839
|
"error"
|
|
9830
9840
|
]),
|
|
9831
9841
|
error: string().optional(),
|
|
9832
|
-
actualValue: string().optional()
|
|
9842
|
+
actualValue: string().optional(),
|
|
9843
|
+
signal: object({
|
|
9844
|
+
filled: boolean(),
|
|
9845
|
+
matchesConfirmField: boolean().optional(),
|
|
9846
|
+
valueSatisfiesIntent: boolean().optional()
|
|
9847
|
+
}).strict().optional()
|
|
9833
9848
|
}).strict();
|
|
9834
9849
|
const FillFormBatchResultSchema = object({
|
|
9835
9850
|
results: array(FillFormBatchResultEntrySchema),
|
|
9836
|
-
domGrew: boolean()
|
|
9851
|
+
domGrew: boolean(),
|
|
9852
|
+
fieldTimingsMs: array(number().nonnegative()).optional()
|
|
9837
9853
|
}).strict();
|
|
9838
9854
|
|
|
9839
9855
|
//#endregion
|
|
@@ -9885,13 +9901,31 @@ const GenerateParameterizedStepNameRequestSchema = object({
|
|
|
9885
9901
|
scenarioId: string().min(1).optional(),
|
|
9886
9902
|
projectId: string().min(1).optional()
|
|
9887
9903
|
});
|
|
9904
|
+
const AiChatFormFieldSnapshotSchema = object({
|
|
9905
|
+
tag: string().min(1),
|
|
9906
|
+
type: string().nullable(),
|
|
9907
|
+
id: string().nullable(),
|
|
9908
|
+
name: string().nullable(),
|
|
9909
|
+
ariaLabel: string().nullable(),
|
|
9910
|
+
placeholder: string().nullable(),
|
|
9911
|
+
required: boolean(),
|
|
9912
|
+
disabled: boolean(),
|
|
9913
|
+
readOnly: boolean().default(false),
|
|
9914
|
+
label: string().nullable(),
|
|
9915
|
+
selector: string().nullable(),
|
|
9916
|
+
options: array(string()).optional(),
|
|
9917
|
+
formIndex: number().int().nonnegative().nullable().optional(),
|
|
9918
|
+
formName: string().nullable().optional()
|
|
9919
|
+
}).strict();
|
|
9888
9920
|
const AiChatPageContextSchema = object({
|
|
9889
9921
|
url: string().url(),
|
|
9890
9922
|
title: string().min(1),
|
|
9891
9923
|
accessibilityTree: string().min(1),
|
|
9892
9924
|
visibleText: string().min(1).optional(),
|
|
9893
9925
|
domSnapshot: string().min(1).optional(),
|
|
9894
|
-
screenshotBase64: string().min(1).optional()
|
|
9926
|
+
screenshotBase64: string().min(1).optional(),
|
|
9927
|
+
formFields: array(AiChatFormFieldSnapshotSchema).optional(),
|
|
9928
|
+
formFieldsCapped: boolean().optional()
|
|
9895
9929
|
}).strict();
|
|
9896
9930
|
const ValidationComplexitySchema = _enum([
|
|
9897
9931
|
"simple",
|
|
@@ -9930,6 +9964,7 @@ const ExecutionResultSchema = object({
|
|
|
9930
9964
|
logs: array(string()),
|
|
9931
9965
|
checkpoints: array(CheckpointSchema).optional().default([]),
|
|
9932
9966
|
duration: number().nonnegative(),
|
|
9967
|
+
screenshotBefore: string().optional(),
|
|
9933
9968
|
screenshotAfter: string().optional(),
|
|
9934
9969
|
mutationSignals: SegmentMutationSignalsSchema.optional()
|
|
9935
9970
|
}).strict();
|
|
@@ -12186,7 +12221,7 @@ var NoOpRecoveryController = class {
|
|
|
12186
12221
|
};
|
|
12187
12222
|
|
|
12188
12223
|
//#endregion
|
|
12189
|
-
//#region ../../node_modules/ulid/dist/node/index.js
|
|
12224
|
+
//#region ../../node_modules/.pnpm/ulid@3.0.1/node_modules/ulid/dist/node/index.js
|
|
12190
12225
|
const ENCODING = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
12191
12226
|
const ENCODING_LEN = 32;
|
|
12192
12227
|
const RANDOM_LEN = 16;
|
|
@@ -12468,7 +12503,7 @@ var CommandPreprocessorPipeline = class {
|
|
|
12468
12503
|
};
|
|
12469
12504
|
|
|
12470
12505
|
//#endregion
|
|
12471
|
-
//#region ../../node_modules/acorn/dist/acorn.mjs
|
|
12506
|
+
//#region ../../node_modules/.pnpm/acorn@8.16.0/node_modules/acorn/dist/acorn.mjs
|
|
12472
12507
|
var astralIdentifierCodes = [
|
|
12473
12508
|
509,
|
|
12474
12509
|
0,
|
|
@@ -17555,7 +17590,7 @@ function parse(input, options) {
|
|
|
17555
17590
|
}
|
|
17556
17591
|
|
|
17557
17592
|
//#endregion
|
|
17558
|
-
//#region ../../node_modules/acorn-walk/dist/walk.mjs
|
|
17593
|
+
//#region ../../node_modules/.pnpm/acorn-walk@8.3.5/node_modules/acorn-walk/dist/walk.mjs
|
|
17559
17594
|
function simple(node, visitors, baseVisitor, state, override) {
|
|
17560
17595
|
if (!baseVisitor) baseVisitor = base;
|
|
17561
17596
|
(function c(node, st, override) {
|
|
@@ -17946,11 +17981,11 @@ async function validatePlaywrightCode(code) {
|
|
|
17946
17981
|
}
|
|
17947
17982
|
|
|
17948
17983
|
//#endregion
|
|
17949
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/version.js
|
|
17984
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/version.js
|
|
17950
17985
|
const VERSION = "1.9.1";
|
|
17951
17986
|
|
|
17952
17987
|
//#endregion
|
|
17953
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/internal/semver.js
|
|
17988
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/semver.js
|
|
17954
17989
|
const re = /^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;
|
|
17955
17990
|
/**
|
|
17956
17991
|
* Create a function to test an API version to see if it is compatible with the provided ownVersion.
|
|
@@ -18029,7 +18064,7 @@ function _makeCompatibilityCheck(ownVersion) {
|
|
|
18029
18064
|
const isCompatible = _makeCompatibilityCheck(VERSION);
|
|
18030
18065
|
|
|
18031
18066
|
//#endregion
|
|
18032
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/internal/global-utils.js
|
|
18067
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/internal/global-utils.js
|
|
18033
18068
|
const major = VERSION.split(".")[0];
|
|
18034
18069
|
const GLOBAL_OPENTELEMETRY_API_KEY = Symbol.for(`opentelemetry.js.api.${major}`);
|
|
18035
18070
|
const _global = typeof globalThis === "object" ? globalThis : typeof self === "object" ? self : typeof window === "object" ? window : typeof global === "object" ? global : {};
|
|
@@ -18063,7 +18098,7 @@ function unregisterGlobal(type, diag) {
|
|
|
18063
18098
|
}
|
|
18064
18099
|
|
|
18065
18100
|
//#endregion
|
|
18066
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js
|
|
18101
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/ComponentLogger.js
|
|
18067
18102
|
/**
|
|
18068
18103
|
* Component Logger which is meant to be used as part of any component which
|
|
18069
18104
|
* will add automatically additional namespace in front of the log message.
|
|
@@ -18100,7 +18135,7 @@ function logProxy(funcName, namespace, args) {
|
|
|
18100
18135
|
}
|
|
18101
18136
|
|
|
18102
18137
|
//#endregion
|
|
18103
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/diag/types.js
|
|
18138
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/types.js
|
|
18104
18139
|
/**
|
|
18105
18140
|
* Defines the available internal logging levels for the diagnostic logger, the numeric values
|
|
18106
18141
|
* of the levels are defined to match the original values from the initial LogLevel to avoid
|
|
@@ -18128,7 +18163,7 @@ var DiagLogLevel;
|
|
|
18128
18163
|
})(DiagLogLevel || (DiagLogLevel = {}));
|
|
18129
18164
|
|
|
18130
18165
|
//#endregion
|
|
18131
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
|
|
18166
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/diag/internal/logLevelLogger.js
|
|
18132
18167
|
function createLogLevelDiagLogger(maxLevel, logger) {
|
|
18133
18168
|
if (maxLevel < DiagLogLevel.NONE) maxLevel = DiagLogLevel.NONE;
|
|
18134
18169
|
else if (maxLevel > DiagLogLevel.ALL) maxLevel = DiagLogLevel.ALL;
|
|
@@ -18148,7 +18183,7 @@ function createLogLevelDiagLogger(maxLevel, logger) {
|
|
|
18148
18183
|
}
|
|
18149
18184
|
|
|
18150
18185
|
//#endregion
|
|
18151
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/api/diag.js
|
|
18186
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/diag.js
|
|
18152
18187
|
const API_NAME$2 = "diag";
|
|
18153
18188
|
/**
|
|
18154
18189
|
* Singleton object which represents the entry point to the OpenTelemetry internal
|
|
@@ -18208,7 +18243,7 @@ var DiagAPI = class DiagAPI {
|
|
|
18208
18243
|
};
|
|
18209
18244
|
|
|
18210
18245
|
//#endregion
|
|
18211
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/context/context.js
|
|
18246
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/context.js
|
|
18212
18247
|
/**
|
|
18213
18248
|
* Get a key to uniquely identify a context value
|
|
18214
18249
|
*
|
|
@@ -18247,7 +18282,7 @@ var BaseContext = class BaseContext {
|
|
|
18247
18282
|
const ROOT_CONTEXT = new BaseContext();
|
|
18248
18283
|
|
|
18249
18284
|
//#endregion
|
|
18250
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js
|
|
18285
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/context/NoopContextManager.js
|
|
18251
18286
|
var NoopContextManager = class {
|
|
18252
18287
|
active() {
|
|
18253
18288
|
return ROOT_CONTEXT;
|
|
@@ -18267,7 +18302,7 @@ var NoopContextManager = class {
|
|
|
18267
18302
|
};
|
|
18268
18303
|
|
|
18269
18304
|
//#endregion
|
|
18270
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/api/context.js
|
|
18305
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/context.js
|
|
18271
18306
|
const API_NAME$1 = "context";
|
|
18272
18307
|
const NOOP_CONTEXT_MANAGER = new NoopContextManager();
|
|
18273
18308
|
/**
|
|
@@ -18328,7 +18363,7 @@ var ContextAPI = class ContextAPI {
|
|
|
18328
18363
|
};
|
|
18329
18364
|
|
|
18330
18365
|
//#endregion
|
|
18331
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js
|
|
18366
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/trace_flags.js
|
|
18332
18367
|
/**
|
|
18333
18368
|
* @since 1.0.0
|
|
18334
18369
|
*/
|
|
@@ -18341,7 +18376,7 @@ var TraceFlags;
|
|
|
18341
18376
|
})(TraceFlags || (TraceFlags = {}));
|
|
18342
18377
|
|
|
18343
18378
|
//#endregion
|
|
18344
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js
|
|
18379
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/invalid-span-constants.js
|
|
18345
18380
|
/**
|
|
18346
18381
|
* @since 1.0.0
|
|
18347
18382
|
*/
|
|
@@ -18360,7 +18395,7 @@ const INVALID_SPAN_CONTEXT = {
|
|
|
18360
18395
|
};
|
|
18361
18396
|
|
|
18362
18397
|
//#endregion
|
|
18363
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js
|
|
18398
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NonRecordingSpan.js
|
|
18364
18399
|
/**
|
|
18365
18400
|
* The NonRecordingSpan is the default {@link Span} that is used when no Span
|
|
18366
18401
|
* implementation is available. All operations are no-op including context
|
|
@@ -18402,7 +18437,7 @@ var NonRecordingSpan = class {
|
|
|
18402
18437
|
};
|
|
18403
18438
|
|
|
18404
18439
|
//#endregion
|
|
18405
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
|
|
18440
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/context-utils.js
|
|
18406
18441
|
/**
|
|
18407
18442
|
* span key
|
|
18408
18443
|
*/
|
|
@@ -18459,7 +18494,7 @@ function getSpanContext(context) {
|
|
|
18459
18494
|
}
|
|
18460
18495
|
|
|
18461
18496
|
//#endregion
|
|
18462
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
|
|
18497
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/spancontext-utils.js
|
|
18463
18498
|
const isHex = new Uint8Array([
|
|
18464
18499
|
0,
|
|
18465
18500
|
0,
|
|
@@ -18603,7 +18638,7 @@ function wrapSpanContext(spanContext) {
|
|
|
18603
18638
|
}
|
|
18604
18639
|
|
|
18605
18640
|
//#endregion
|
|
18606
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
|
|
18641
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracer.js
|
|
18607
18642
|
const contextApi = ContextAPI.getInstance();
|
|
18608
18643
|
/**
|
|
18609
18644
|
* No-op implementations of {@link Tracer}.
|
|
@@ -18640,7 +18675,7 @@ function isSpanContext(spanContext) {
|
|
|
18640
18675
|
}
|
|
18641
18676
|
|
|
18642
18677
|
//#endregion
|
|
18643
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
|
|
18678
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracer.js
|
|
18644
18679
|
const NOOP_TRACER = new NoopTracer();
|
|
18645
18680
|
/**
|
|
18646
18681
|
* Proxy tracer provided by the proxy tracer provider
|
|
@@ -18675,7 +18710,7 @@ var ProxyTracer = class {
|
|
|
18675
18710
|
};
|
|
18676
18711
|
|
|
18677
18712
|
//#endregion
|
|
18678
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js
|
|
18713
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/NoopTracerProvider.js
|
|
18679
18714
|
/**
|
|
18680
18715
|
* An implementation of the {@link TracerProvider} which returns an impotent
|
|
18681
18716
|
* Tracer for all calls to `getTracer`.
|
|
@@ -18689,7 +18724,7 @@ var NoopTracerProvider = class {
|
|
|
18689
18724
|
};
|
|
18690
18725
|
|
|
18691
18726
|
//#endregion
|
|
18692
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js
|
|
18727
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/ProxyTracerProvider.js
|
|
18693
18728
|
const NOOP_TRACER_PROVIDER = new NoopTracerProvider();
|
|
18694
18729
|
/**
|
|
18695
18730
|
* Tracer provider which provides {@link ProxyTracer}s.
|
|
@@ -18727,7 +18762,7 @@ var ProxyTracerProvider = class {
|
|
|
18727
18762
|
};
|
|
18728
18763
|
|
|
18729
18764
|
//#endregion
|
|
18730
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/span_kind.js
|
|
18765
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/span_kind.js
|
|
18731
18766
|
/**
|
|
18732
18767
|
* @since 1.0.0
|
|
18733
18768
|
*/
|
|
@@ -18760,7 +18795,7 @@ var SpanKind;
|
|
|
18760
18795
|
})(SpanKind || (SpanKind = {}));
|
|
18761
18796
|
|
|
18762
18797
|
//#endregion
|
|
18763
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace/status.js
|
|
18798
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace/status.js
|
|
18764
18799
|
/**
|
|
18765
18800
|
* An enumeration of status codes.
|
|
18766
18801
|
*
|
|
@@ -18784,7 +18819,7 @@ var SpanStatusCode;
|
|
|
18784
18819
|
})(SpanStatusCode || (SpanStatusCode = {}));
|
|
18785
18820
|
|
|
18786
18821
|
//#endregion
|
|
18787
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/api/trace.js
|
|
18822
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/api/trace.js
|
|
18788
18823
|
const API_NAME = "trace";
|
|
18789
18824
|
/**
|
|
18790
18825
|
* Singleton object which represents the entry point to the OpenTelemetry Tracing API
|
|
@@ -18839,7 +18874,7 @@ var TraceAPI = class TraceAPI {
|
|
|
18839
18874
|
};
|
|
18840
18875
|
|
|
18841
18876
|
//#endregion
|
|
18842
|
-
//#region ../../node_modules/@opentelemetry/api/build/esm/trace-api.js
|
|
18877
|
+
//#region ../../node_modules/.pnpm/@opentelemetry+api@1.9.1/node_modules/@opentelemetry/api/build/esm/trace-api.js
|
|
18843
18878
|
/**
|
|
18844
18879
|
* Entrypoint for trace API
|
|
18845
18880
|
*
|
|
@@ -18848,7 +18883,7 @@ var TraceAPI = class TraceAPI {
|
|
|
18848
18883
|
const trace = TraceAPI.getInstance();
|
|
18849
18884
|
|
|
18850
18885
|
//#endregion
|
|
18851
|
-
//#region ../../node_modules/@arizeai/openinference-semantic-conventions/dist/esm/trace/SemanticConventions.js
|
|
18886
|
+
//#region ../../node_modules/.pnpm/@arizeai+openinference-semantic-conventions@2.4.0/node_modules/@arizeai/openinference-semantic-conventions/dist/esm/trace/SemanticConventions.js
|
|
18852
18887
|
/**
|
|
18853
18888
|
* Semantic conventions for OpenInference tracing
|
|
18854
18889
|
*/
|
|
@@ -20618,17 +20653,40 @@ async function executePlaywrightCode({ page, code, context, timeoutMs = PLAYWRIG
|
|
|
20618
20653
|
}
|
|
20619
20654
|
|
|
20620
20655
|
//#endregion
|
|
20621
|
-
//#region ../../shared/observability/src/
|
|
20622
|
-
function
|
|
20656
|
+
//#region ../../shared/observability/src/log-message.ts
|
|
20657
|
+
function resolveLogMessageClass(controls) {
|
|
20658
|
+
if (controls.isMilestone) return "MILESTONE";
|
|
20659
|
+
if (controls.severity === "critical") return "CRITICAL_ERR";
|
|
20660
|
+
if (controls.severity === "error") return "ERR";
|
|
20661
|
+
return controls.messageClass;
|
|
20662
|
+
}
|
|
20663
|
+
function buildClassifiedEventMessage(controls) {
|
|
20664
|
+
if (!controls.eventName) return;
|
|
20665
|
+
const resolvedClass = resolveLogMessageClass(controls);
|
|
20666
|
+
if (!resolvedClass) return;
|
|
20667
|
+
return `[${resolvedClass}][${controls.eventName}]`;
|
|
20668
|
+
}
|
|
20669
|
+
function extractStructuredLogMessageControls(metadata) {
|
|
20623
20670
|
if (!metadata) return {};
|
|
20624
20671
|
const rawEventName = metadata.eventName;
|
|
20625
|
-
|
|
20626
|
-
const
|
|
20672
|
+
const eventName = typeof rawEventName === "string" && rawEventName.trim().length > 0 ? rawEventName : void 0;
|
|
20673
|
+
const rawMessageClass = metadata.messageClass;
|
|
20674
|
+
const messageClass = rawMessageClass === "USER_EVENT" || rawMessageClass === "INFRA_EVENT" || rawMessageClass === "MILESTONE" || rawMessageClass === "ERR" || rawMessageClass === "CRITICAL_ERR" ? rawMessageClass : void 0;
|
|
20675
|
+
const rawSeverity = metadata.severity;
|
|
20676
|
+
const severity = rawSeverity === "error" || rawSeverity === "critical" ? rawSeverity : void 0;
|
|
20677
|
+
const isMilestone = metadata.isMilestone === true;
|
|
20678
|
+
const { eventName: _eventName, messageClass: _messageClass, severity: _severity, isMilestone: _isMilestone, ...restMetadata } = metadata;
|
|
20627
20679
|
return {
|
|
20628
|
-
eventName:
|
|
20629
|
-
|
|
20680
|
+
...eventName ? { eventName } : {},
|
|
20681
|
+
...messageClass ? { messageClass } : {},
|
|
20682
|
+
...severity ? { severity } : {},
|
|
20683
|
+
...isMilestone ? { isMilestone } : {},
|
|
20684
|
+
...Object.keys(restMetadata).length > 0 ? { sanitizedMetadata: restMetadata } : {}
|
|
20630
20685
|
};
|
|
20631
20686
|
}
|
|
20687
|
+
|
|
20688
|
+
//#endregion
|
|
20689
|
+
//#region ../../shared/observability/src/logger.ts
|
|
20632
20690
|
var Logger = class Logger {
|
|
20633
20691
|
constructor(transports, defaultContext = { system: true }) {
|
|
20634
20692
|
this.transports = transports;
|
|
@@ -20646,15 +20704,48 @@ var Logger = class Logger {
|
|
|
20646
20704
|
error(message, metadata, context) {
|
|
20647
20705
|
this.emit("error", message, metadata, context);
|
|
20648
20706
|
}
|
|
20707
|
+
userEvent(eventName, metadata, context) {
|
|
20708
|
+
this.emit("info", eventName, {
|
|
20709
|
+
eventName,
|
|
20710
|
+
messageClass: "USER_EVENT",
|
|
20711
|
+
...metadata
|
|
20712
|
+
}, context);
|
|
20713
|
+
}
|
|
20714
|
+
infraEvent(eventName, metadata, context) {
|
|
20715
|
+
this.emit("info", eventName, {
|
|
20716
|
+
eventName,
|
|
20717
|
+
messageClass: "INFRA_EVENT",
|
|
20718
|
+
...metadata
|
|
20719
|
+
}, context);
|
|
20720
|
+
}
|
|
20721
|
+
milestone(eventName, metadata, context) {
|
|
20722
|
+
this.emit("info", eventName, {
|
|
20723
|
+
eventName,
|
|
20724
|
+
isMilestone: true,
|
|
20725
|
+
...metadata
|
|
20726
|
+
}, context);
|
|
20727
|
+
}
|
|
20728
|
+
errorEvent(eventName, metadata, context, options) {
|
|
20729
|
+
this.emit("error", eventName, {
|
|
20730
|
+
eventName,
|
|
20731
|
+
severity: options?.critical ? "critical" : "error",
|
|
20732
|
+
...metadata
|
|
20733
|
+
}, context);
|
|
20734
|
+
}
|
|
20649
20735
|
/** Returns a new Logger instance bound to the given context. */
|
|
20650
20736
|
withContext(context) {
|
|
20651
20737
|
return new Logger(this.transports, context);
|
|
20652
20738
|
}
|
|
20653
20739
|
emit(level, message, metadata, context) {
|
|
20654
|
-
const { eventName, sanitizedMetadata } =
|
|
20740
|
+
const { eventName, messageClass, severity, isMilestone, sanitizedMetadata } = extractStructuredLogMessageControls(metadata);
|
|
20655
20741
|
const entry = {
|
|
20656
20742
|
level,
|
|
20657
|
-
message
|
|
20743
|
+
message: buildClassifiedEventMessage({
|
|
20744
|
+
eventName,
|
|
20745
|
+
messageClass,
|
|
20746
|
+
severity,
|
|
20747
|
+
isMilestone
|
|
20748
|
+
}) ?? message,
|
|
20658
20749
|
...eventName ? { eventName } : {},
|
|
20659
20750
|
context: context ?? this.defaultContext,
|
|
20660
20751
|
timestamp: /* @__PURE__ */ new Date(),
|
|
@@ -21089,6 +21180,11 @@ async function restoreSessionStorageState(page, value) {
|
|
|
21089
21180
|
|
|
21090
21181
|
//#endregion
|
|
21091
21182
|
//#region ../../core/bvt-agent/src/agent/tester.ts
|
|
21183
|
+
function getResolvedChosenSelectorIndex(result) {
|
|
21184
|
+
if (!result || typeof result !== "object") return;
|
|
21185
|
+
const candidate = result.resolvedChosenSelectorIndex;
|
|
21186
|
+
return Number.isInteger(candidate) ? candidate : void 0;
|
|
21187
|
+
}
|
|
21092
21188
|
const browserTypesMap = {
|
|
21093
21189
|
chromium,
|
|
21094
21190
|
firefox,
|
|
@@ -21247,7 +21343,7 @@ var Tester = class {
|
|
|
21247
21343
|
startedAt: /* @__PURE__ */ new Date()
|
|
21248
21344
|
};
|
|
21249
21345
|
}
|
|
21250
|
-
async onCommandPass(command, stepDefinitionId, session,
|
|
21346
|
+
async onCommandPass(command, stepDefinitionId, session, metadata) {
|
|
21251
21347
|
this.obs.logger.log(`Command executed successfully: ${command}`);
|
|
21252
21348
|
if (session?.type === "run") {
|
|
21253
21349
|
this.obs.logger.log(`Ending Playwright tracing group for command: ${command}`);
|
|
@@ -21264,7 +21360,8 @@ var Tester = class {
|
|
|
21264
21360
|
stepDefinitionId,
|
|
21265
21361
|
completedAt,
|
|
21266
21362
|
result: { type: "success" },
|
|
21267
|
-
|
|
21363
|
+
...typeof metadata?.resolvedChosenSelectorIndex === "number" ? { resolvedChosenSelectorIndex: metadata.resolvedChosenSelectorIndex } : {},
|
|
21364
|
+
...metadata?.recovery ? { recovery: metadata.recovery } : {}
|
|
21268
21365
|
};
|
|
21269
21366
|
}
|
|
21270
21367
|
async onCommandFail(command, stepDefinitionId, error, session, recovery) {
|
|
@@ -21557,7 +21654,7 @@ var Tester = class {
|
|
|
21557
21654
|
});
|
|
21558
21655
|
if ((command.type === "custom" || command.type === "custom.code") && commandResult && isFailedCustomCommandResult(commandResult)) throw new Error(commandResult.error || `Custom command "${command._id}" failed.`);
|
|
21559
21656
|
this.obs.logger.log(`Finished executing command: ${command}`);
|
|
21560
|
-
yield await this.onCommandPass(command, stepDefinitionId, session);
|
|
21657
|
+
yield await this.onCommandPass(command, stepDefinitionId, session, { resolvedChosenSelectorIndex: getResolvedChosenSelectorIndex(commandResult) });
|
|
21561
21658
|
} catch (error) {
|
|
21562
21659
|
const executionError = this.toExecutionError(error);
|
|
21563
21660
|
let terminalExecutionError = executionError;
|
|
@@ -21676,7 +21773,7 @@ var Tester = class {
|
|
|
21676
21773
|
};
|
|
21677
21774
|
emittedTerminalRecoveryStatus = true;
|
|
21678
21775
|
this.obs.logger.log(`Recovered command ${command._id} with whole-step repair`);
|
|
21679
|
-
yield await this.onCommandPass(command, stepDefinitionId, session, recoveryMeta);
|
|
21776
|
+
yield await this.onCommandPass(command, stepDefinitionId, session, { recovery: recoveryMeta });
|
|
21680
21777
|
commandIndex = recorderStep.definition.commands.length - 1;
|
|
21681
21778
|
continue;
|
|
21682
21779
|
} catch (retryError) {
|
|
@@ -21794,7 +21891,7 @@ var Tester = class {
|
|
|
21794
21891
|
};
|
|
21795
21892
|
emittedTerminalRecoveryStatus = true;
|
|
21796
21893
|
this.obs.logger.log(`Recovered command ${command._id} with step repair`);
|
|
21797
|
-
yield await this.onCommandPass(command, stepDefinitionId, session, recoveryMeta);
|
|
21894
|
+
yield await this.onCommandPass(command, stepDefinitionId, session, { recovery: recoveryMeta });
|
|
21798
21895
|
if (decision.stepRepairPlan.type === "command-operations" || decision.stepRepairPlan.preserveSuffix) commandIndex = recorderStep.definition.commands.length - 1;
|
|
21799
21896
|
continue;
|
|
21800
21897
|
} catch (retryError) {
|
|
@@ -22382,7 +22479,7 @@ var Tester = class {
|
|
|
22382
22479
|
};
|
|
22383
22480
|
await this.executeElementAction(locator.target, dataWithModifiedTimeout);
|
|
22384
22481
|
this.obs.logger.info(`Action "${data.type}" completed successfully on target "${target.name}" with fallback selector`);
|
|
22385
|
-
return;
|
|
22482
|
+
return { resolvedChosenSelectorIndex: i };
|
|
22386
22483
|
} catch (error) {
|
|
22387
22484
|
this.obs.logger.warn(`Action "${data.type}" failed on fallback selector "${JSON.stringify(selectorInfo, null, 2)}". Trying next selector if available...`, error);
|
|
22388
22485
|
errors.push(this.toExecutionError(error));
|
|
@@ -22432,7 +22529,7 @@ var Tester = class {
|
|
|
22432
22529
|
this.obs.logger.info(`Retrying assertion "${data.type}" using next selector: ${JSON.stringify(selectorInfo)}`);
|
|
22433
22530
|
await this.executeElementAssertion(locator.target, dataWithModifiedTimeout, isNegativeAssertion);
|
|
22434
22531
|
this.obs.logger.info(`Assertion "${data.type}" passed on target "${target.name}" with fallback selector`);
|
|
22435
|
-
return;
|
|
22532
|
+
return { resolvedChosenSelectorIndex: i };
|
|
22436
22533
|
} catch (error) {
|
|
22437
22534
|
this.obs.logger.warn(`Assertion "${data.type}" failed on fallback selector "${JSON.stringify(selectorInfo, null, 2)}". Trying next selector if available...`, error);
|
|
22438
22535
|
errors.push(this.toExecutionError(error));
|
|
@@ -22471,7 +22568,7 @@ var Tester = class {
|
|
|
22471
22568
|
this.obs.logger.info(`Retrying extraction "${extract.type}" using next selector: ${JSON.stringify(fallbackSelectorInfo)}`);
|
|
22472
22569
|
await this.executeElementExtraction(fallbackLocator.target, extract, storageDetails);
|
|
22473
22570
|
this.obs.logger.info(`Extraction "${extract.type}" completed successfully on target "${target.name}" with fallback selector`);
|
|
22474
|
-
return;
|
|
22571
|
+
return { resolvedChosenSelectorIndex: i };
|
|
22475
22572
|
} catch (error) {
|
|
22476
22573
|
this.obs.logger.warn(`Extraction "${extract.type}" failed on fallback selector "${JSON.stringify(fallbackSelectorInfo, null, 2)}". Trying next selector if available...`, error);
|
|
22477
22574
|
errors.push(this.toExecutionError(error));
|
|
@@ -23080,7 +23177,7 @@ function parsePath(path) {
|
|
|
23080
23177
|
}
|
|
23081
23178
|
|
|
23082
23179
|
//#endregion
|
|
23083
|
-
//#region ../../node_modules/dlv/dist/dlv.js
|
|
23180
|
+
//#region ../../node_modules/.pnpm/dlv@1.1.3/node_modules/dlv/dist/dlv.js
|
|
23084
23181
|
var require_dlv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
23085
23182
|
module.exports = function(t, e, l, n, o) {
|
|
23086
23183
|
for (e = e.split ? e.split(".") : e, n = 0; n < e.length; n++) t = t ? t[e[n]] : o;
|
|
@@ -23168,7 +23265,7 @@ async function decrypt(encrypted, keyMaterial) {
|
|
|
23168
23265
|
* @returns 6-digit TOTP code as a string
|
|
23169
23266
|
*/
|
|
23170
23267
|
async function generateTOTP(seed) {
|
|
23171
|
-
const { TOTP } = await import("./otpauth.node-
|
|
23268
|
+
const { TOTP } = await import("./otpauth.node-flL8gowF.mjs");
|
|
23172
23269
|
return new TOTP({
|
|
23173
23270
|
secret: seed,
|
|
23174
23271
|
digits: 6,
|
|
@@ -23737,7 +23834,7 @@ var FakerEvaluator = class {
|
|
|
23737
23834
|
this.fakerInstance = faker;
|
|
23738
23835
|
return faker;
|
|
23739
23836
|
} catch {
|
|
23740
|
-
const { faker } = await import("./en-
|
|
23837
|
+
const { faker } = await import("./en-KbNSnMPf.mjs");
|
|
23741
23838
|
this.fakerInstance = faker;
|
|
23742
23839
|
return faker;
|
|
23743
23840
|
}
|
|
@@ -23811,7 +23908,7 @@ var FakerEvaluator = class {
|
|
|
23811
23908
|
};
|
|
23812
23909
|
|
|
23813
23910
|
//#endregion
|
|
23814
|
-
//#region ../../node_modules/jsep/dist/jsep.js
|
|
23911
|
+
//#region ../../node_modules/.pnpm/jsep@1.4.0/node_modules/jsep/dist/jsep.js
|
|
23815
23912
|
/**
|
|
23816
23913
|
* @implements {IHooks}
|
|
23817
23914
|
*/
|
|
@@ -25175,7 +25272,7 @@ var JSEvaluator = class {
|
|
|
25175
25272
|
};
|
|
25176
25273
|
|
|
25177
25274
|
//#endregion
|
|
25178
|
-
//#region ../../node_modules/chrono-node/dist/esm/types.js
|
|
25275
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/types.js
|
|
25179
25276
|
var Meridiem;
|
|
25180
25277
|
(function(Meridiem) {
|
|
25181
25278
|
Meridiem[Meridiem["AM"] = 0] = "AM";
|
|
@@ -25208,7 +25305,7 @@ var Month;
|
|
|
25208
25305
|
})(Month || (Month = {}));
|
|
25209
25306
|
|
|
25210
25307
|
//#endregion
|
|
25211
|
-
//#region ../../node_modules/chrono-node/dist/esm/utils/dates.js
|
|
25308
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/utils/dates.js
|
|
25212
25309
|
function assignSimilarDate(component, target) {
|
|
25213
25310
|
component.assign("day", target.getDate());
|
|
25214
25311
|
component.assign("month", target.getMonth() + 1);
|
|
@@ -25235,7 +25332,7 @@ function implySimilarTime(component, target) {
|
|
|
25235
25332
|
}
|
|
25236
25333
|
|
|
25237
25334
|
//#endregion
|
|
25238
|
-
//#region ../../node_modules/chrono-node/dist/esm/timezone.js
|
|
25335
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/timezone.js
|
|
25239
25336
|
const TIMEZONE_ABBR_MAP = {
|
|
25240
25337
|
ACDT: 630,
|
|
25241
25338
|
ACST: 570,
|
|
@@ -25488,7 +25585,7 @@ function toTimezoneOffset(timezoneInput, date, timezoneOverrides = {}) {
|
|
|
25488
25585
|
}
|
|
25489
25586
|
|
|
25490
25587
|
//#endregion
|
|
25491
|
-
//#region ../../node_modules/chrono-node/dist/esm/calculation/duration.js
|
|
25588
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/calculation/duration.js
|
|
25492
25589
|
const EmptyDuration = {
|
|
25493
25590
|
day: 0,
|
|
25494
25591
|
second: 0,
|
|
@@ -25612,7 +25709,7 @@ function reverseDuration(duration) {
|
|
|
25612
25709
|
}
|
|
25613
25710
|
|
|
25614
25711
|
//#endregion
|
|
25615
|
-
//#region ../../node_modules/chrono-node/dist/esm/results.js
|
|
25712
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/results.js
|
|
25616
25713
|
var ReferenceWithTimezone = class ReferenceWithTimezone {
|
|
25617
25714
|
instant;
|
|
25618
25715
|
timezoneOffset;
|
|
@@ -25855,7 +25952,7 @@ var ParsingResult = class ParsingResult {
|
|
|
25855
25952
|
};
|
|
25856
25953
|
|
|
25857
25954
|
//#endregion
|
|
25858
|
-
//#region ../../node_modules/chrono-node/dist/esm/utils/pattern.js
|
|
25955
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/utils/pattern.js
|
|
25859
25956
|
function repeatedTimeunitPattern(prefix, singleTimeunitPattern, connectorPattern = "\\s{0,5},?\\s{0,5}") {
|
|
25860
25957
|
const singleTimeunitPatternNoCapture = singleTimeunitPattern.replace(/\((?!\?)/g, "(?:");
|
|
25861
25958
|
return `${prefix}${singleTimeunitPatternNoCapture}(?:${connectorPattern}${singleTimeunitPatternNoCapture}){0,10}`;
|
|
@@ -25872,7 +25969,7 @@ function matchAnyPattern(dictionary) {
|
|
|
25872
25969
|
}
|
|
25873
25970
|
|
|
25874
25971
|
//#endregion
|
|
25875
|
-
//#region ../../node_modules/chrono-node/dist/esm/calculation/years.js
|
|
25972
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/calculation/years.js
|
|
25876
25973
|
function findMostLikelyADYear(yearNumber) {
|
|
25877
25974
|
if (yearNumber < 100) if (yearNumber > 50) yearNumber = yearNumber + 1900;
|
|
25878
25975
|
else yearNumber = yearNumber + 2e3;
|
|
@@ -25890,7 +25987,7 @@ function findYearClosestToRef(refDate, day, month) {
|
|
|
25890
25987
|
}
|
|
25891
25988
|
|
|
25892
25989
|
//#endregion
|
|
25893
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/constants.js
|
|
25990
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/constants.js
|
|
25894
25991
|
const WEEKDAY_DICTIONARY = {
|
|
25895
25992
|
sunday: 0,
|
|
25896
25993
|
sun: 0,
|
|
@@ -26129,7 +26226,7 @@ function collectDateTimeFragment(fragments, match) {
|
|
|
26129
26226
|
}
|
|
26130
26227
|
|
|
26131
26228
|
//#endregion
|
|
26132
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/parsers/AbstractParserWithWordBoundary.js
|
|
26229
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/parsers/AbstractParserWithWordBoundary.js
|
|
26133
26230
|
var AbstractParserWithWordBoundaryChecking = class {
|
|
26134
26231
|
innerPatternHasChange(context, currentInnerPattern) {
|
|
26135
26232
|
return this.innerPattern(context) !== currentInnerPattern;
|
|
@@ -26157,7 +26254,7 @@ var AbstractParserWithWordBoundaryChecking = class {
|
|
|
26157
26254
|
};
|
|
26158
26255
|
|
|
26159
26256
|
//#endregion
|
|
26160
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js
|
|
26257
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeUnitWithinFormatParser.js
|
|
26161
26258
|
const PATTERN_WITH_OPTIONAL_PREFIX = new RegExp(`(?:(?:within|in|for)\\s*)?(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
|
26162
26259
|
const PATTERN_WITH_PREFIX = new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
|
26163
26260
|
const PATTERN_WITH_PREFIX_STRICT = new RegExp(`(?:within|in|for)\\s*(?:(?:about|around|roughly|approximately|just)\\s*(?:~\\s*)?)?(${TIME_UNITS_NO_ABBR_PATTERN})(?=\\W|$)`, "i");
|
|
@@ -26180,7 +26277,7 @@ var ENTimeUnitWithinFormatParser = class extends AbstractParserWithWordBoundaryC
|
|
|
26180
26277
|
};
|
|
26181
26278
|
|
|
26182
26279
|
//#endregion
|
|
26183
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js
|
|
26280
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENMonthNameLittleEndianParser.js
|
|
26184
26281
|
const PATTERN$13 = new RegExp(`(?:on\\s{0,3})?(${ORDINAL_NUMBER_PATTERN})(?:\\s{0,3}(?:to|\\-|\\–|until|through|till)?\\s{0,3}(${ORDINAL_NUMBER_PATTERN}))?(?:-|/|\\s{0,3}(?:of)?\\s{0,3})(${matchAnyPattern(MONTH_DICTIONARY)})(?:(?:-|/|,?\\s{0,3})(${YEAR_PATTERN}(?!\\w)))?(?=\\W|\$)`, "i");
|
|
26185
26282
|
const DATE_GROUP$1 = 1;
|
|
26186
26283
|
const DATE_TO_GROUP$1 = 2;
|
|
@@ -26217,7 +26314,7 @@ var ENMonthNameLittleEndianParser = class extends AbstractParserWithWordBoundary
|
|
|
26217
26314
|
};
|
|
26218
26315
|
|
|
26219
26316
|
//#endregion
|
|
26220
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js
|
|
26317
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENMonthNameMiddleEndianParser.js
|
|
26221
26318
|
const PATTERN$12 = new RegExp(`(${matchAnyPattern(MONTH_DICTIONARY)})(?:-|/|\\s*,?\\s*)(${ORDINAL_NUMBER_PATTERN})(?!\\s*(?:am|pm))\\s*(?:(?:to|\\-)\\s*(${ORDINAL_NUMBER_PATTERN})\\s*)?(?:(?:-|/|\\s*,\\s*|\\s+)(${YEAR_PATTERN}))?(?=\\W|\$)(?!\\:\\d)`, "i");
|
|
26222
26319
|
const MONTH_NAME_GROUP$2 = 1;
|
|
26223
26320
|
const DATE_GROUP = 2;
|
|
@@ -26261,7 +26358,7 @@ var ENMonthNameMiddleEndianParser = class extends AbstractParserWithWordBoundary
|
|
|
26261
26358
|
};
|
|
26262
26359
|
|
|
26263
26360
|
//#endregion
|
|
26264
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENMonthNameParser.js
|
|
26361
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENMonthNameParser.js
|
|
26265
26362
|
const PATTERN$11 = new RegExp(`((?:in)\\s*)?(${matchAnyPattern(MONTH_DICTIONARY)})\\s*(?:(?:,|-|of)?\\s*(${YEAR_PATTERN})?)?(?=[^\\s\\w]|\\s+[^0-9]|\\s+\$|\$)`, "i");
|
|
26266
26363
|
const PREFIX_GROUP$1 = 1;
|
|
26267
26364
|
const MONTH_NAME_GROUP$1 = 2;
|
|
@@ -26290,7 +26387,7 @@ var ENMonthNameParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
|
26290
26387
|
};
|
|
26291
26388
|
|
|
26292
26389
|
//#endregion
|
|
26293
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENYearMonthDayParser.js
|
|
26390
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENYearMonthDayParser.js
|
|
26294
26391
|
const PATTERN$10 = new RegExp(`([0-9]{4})[-\\.\\/\\s](?:(${matchAnyPattern(MONTH_DICTIONARY)})|([0-9]{1,2}))[-\\.\\/\\s]([0-9]{1,2})(?=\\W|\$)`, "i");
|
|
26295
26392
|
const YEAR_NUMBER_GROUP$1 = 1;
|
|
26296
26393
|
const MONTH_NAME_GROUP = 2;
|
|
@@ -26323,7 +26420,7 @@ var ENYearMonthDayParser = class extends AbstractParserWithWordBoundaryChecking
|
|
|
26323
26420
|
};
|
|
26324
26421
|
|
|
26325
26422
|
//#endregion
|
|
26326
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js
|
|
26423
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENSlashMonthFormatParser.js
|
|
26327
26424
|
const PATTERN$9 = new RegExp("([0-9]|0[1-9]|1[012])/([0-9]{4})", "i");
|
|
26328
26425
|
const MONTH_GROUP = 1;
|
|
26329
26426
|
const YEAR_GROUP$2 = 2;
|
|
@@ -26339,7 +26436,7 @@ var ENSlashMonthFormatParser = class extends AbstractParserWithWordBoundaryCheck
|
|
|
26339
26436
|
};
|
|
26340
26437
|
|
|
26341
26438
|
//#endregion
|
|
26342
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/parsers/AbstractTimeExpressionParser.js
|
|
26439
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/parsers/AbstractTimeExpressionParser.js
|
|
26343
26440
|
function primaryTimePattern(leftBoundary, primaryPrefix, primarySuffix, flags) {
|
|
26344
26441
|
return new RegExp(`${leftBoundary}${primaryPrefix}(\\d{1,4})(?:(?:\\.|:|:)(\\d{1,2})(?:(?::|:)(\\d{2})(?:\\.(\\d{1,6}))?)?)?(?:\\s*(a\\.m\\.|p\\.m\\.|am?|pm?))?${primarySuffix}`, flags);
|
|
26345
26442
|
}
|
|
@@ -26553,7 +26650,7 @@ var AbstractTimeExpressionParser = class {
|
|
|
26553
26650
|
};
|
|
26554
26651
|
|
|
26555
26652
|
//#endregion
|
|
26556
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeExpressionParser.js
|
|
26653
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeExpressionParser.js
|
|
26557
26654
|
var ENTimeExpressionParser = class extends AbstractTimeExpressionParser {
|
|
26558
26655
|
constructor(strictMode) {
|
|
26559
26656
|
super(strictMode);
|
|
@@ -26596,7 +26693,7 @@ var ENTimeExpressionParser = class extends AbstractTimeExpressionParser {
|
|
|
26596
26693
|
};
|
|
26597
26694
|
|
|
26598
26695
|
//#endregion
|
|
26599
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js
|
|
26696
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeUnitAgoFormatParser.js
|
|
26600
26697
|
const PATTERN$8 = new RegExp(`(${TIME_UNITS_PATTERN})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`, "i");
|
|
26601
26698
|
const STRICT_PATTERN$1 = new RegExp(`(${TIME_UNITS_NO_ABBR_PATTERN})\\s{0,5}(?:ago|before|earlier)(?=\\W|$)`, "i");
|
|
26602
26699
|
var ENTimeUnitAgoFormatParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
@@ -26616,7 +26713,7 @@ var ENTimeUnitAgoFormatParser = class extends AbstractParserWithWordBoundaryChec
|
|
|
26616
26713
|
};
|
|
26617
26714
|
|
|
26618
26715
|
//#endregion
|
|
26619
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js
|
|
26716
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeUnitLaterFormatParser.js
|
|
26620
26717
|
const PATTERN$7 = new RegExp(`(${TIME_UNITS_PATTERN})\\s{0,5}(?:later|after|from now|henceforth|forward|out)(?=(?:\\W|\$))`, "i");
|
|
26621
26718
|
const STRICT_PATTERN = new RegExp(`(${TIME_UNITS_NO_ABBR_PATTERN})\\s{0,5}(later|after|from now)(?=\\W|$)`, "i");
|
|
26622
26719
|
const GROUP_NUM_TIMEUNITS = 1;
|
|
@@ -26637,7 +26734,7 @@ var ENTimeUnitLaterFormatParser = class extends AbstractParserWithWordBoundaryCh
|
|
|
26637
26734
|
};
|
|
26638
26735
|
|
|
26639
26736
|
//#endregion
|
|
26640
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/abstractRefiners.js
|
|
26737
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/abstractRefiners.js
|
|
26641
26738
|
var Filter = class {
|
|
26642
26739
|
refine(context, results) {
|
|
26643
26740
|
return results.filter((r) => this.isValid(context, r));
|
|
@@ -26671,7 +26768,7 @@ var MergingRefiner = class {
|
|
|
26671
26768
|
};
|
|
26672
26769
|
|
|
26673
26770
|
//#endregion
|
|
26674
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js
|
|
26771
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/refiners/AbstractMergeDateRangeRefiner.js
|
|
26675
26772
|
var AbstractMergeDateRangeRefiner = class extends MergingRefiner {
|
|
26676
26773
|
shouldMergeResults(textBetween, currentResult, nextResult) {
|
|
26677
26774
|
return !currentResult.end && !nextResult.end && textBetween.match(this.patternBetween()) != null;
|
|
@@ -26717,7 +26814,7 @@ var AbstractMergeDateRangeRefiner = class extends MergingRefiner {
|
|
|
26717
26814
|
};
|
|
26718
26815
|
|
|
26719
26816
|
//#endregion
|
|
26720
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js
|
|
26817
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeDateRangeRefiner.js
|
|
26721
26818
|
var ENMergeDateRangeRefiner = class extends AbstractMergeDateRangeRefiner {
|
|
26722
26819
|
patternBetween() {
|
|
26723
26820
|
return /^\s*(to|-|–|until|through|till)\s*$/i;
|
|
@@ -26725,7 +26822,7 @@ var ENMergeDateRangeRefiner = class extends AbstractMergeDateRangeRefiner {
|
|
|
26725
26822
|
};
|
|
26726
26823
|
|
|
26727
26824
|
//#endregion
|
|
26728
|
-
//#region ../../node_modules/chrono-node/dist/esm/calculation/mergingCalculation.js
|
|
26825
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/calculation/mergingCalculation.js
|
|
26729
26826
|
function mergeDateTimeResult(dateResult, timeResult) {
|
|
26730
26827
|
const result = dateResult.clone();
|
|
26731
26828
|
const beginDate = dateResult.start;
|
|
@@ -26773,7 +26870,7 @@ function mergeDateTimeComponent(dateComponent, timeComponent) {
|
|
|
26773
26870
|
}
|
|
26774
26871
|
|
|
26775
26872
|
//#endregion
|
|
26776
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js
|
|
26873
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/refiners/AbstractMergeDateTimeRefiner.js
|
|
26777
26874
|
var AbstractMergeDateTimeRefiner = class extends MergingRefiner {
|
|
26778
26875
|
shouldMergeResults(textBetween, currentResult, nextResult) {
|
|
26779
26876
|
return (currentResult.start.isOnlyDate() && nextResult.start.isOnlyTime() || nextResult.start.isOnlyDate() && currentResult.start.isOnlyTime()) && textBetween.match(this.patternBetween()) != null;
|
|
@@ -26787,7 +26884,7 @@ var AbstractMergeDateTimeRefiner = class extends MergingRefiner {
|
|
|
26787
26884
|
};
|
|
26788
26885
|
|
|
26789
26886
|
//#endregion
|
|
26790
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js
|
|
26887
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeDateTimeRefiner.js
|
|
26791
26888
|
var ENMergeDateTimeRefiner = class extends AbstractMergeDateTimeRefiner {
|
|
26792
26889
|
patternBetween() {
|
|
26793
26890
|
return /* @__PURE__ */ new RegExp("^\\s*(T|at|after|before|on|of|,|-|\\.|∙|:)?\\s*$");
|
|
@@ -26795,7 +26892,7 @@ var ENMergeDateTimeRefiner = class extends AbstractMergeDateTimeRefiner {
|
|
|
26795
26892
|
};
|
|
26796
26893
|
|
|
26797
26894
|
//#endregion
|
|
26798
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js
|
|
26895
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/refiners/ExtractTimezoneAbbrRefiner.js
|
|
26799
26896
|
const TIMEZONE_NAME_PATTERN = /* @__PURE__ */ new RegExp("^\\s*,?\\s*\\(?([A-Z]{2,4})\\)?(?=\\W|$)", "i");
|
|
26800
26897
|
var ExtractTimezoneAbbrRefiner = class {
|
|
26801
26898
|
timezoneOverrides;
|
|
@@ -26834,7 +26931,7 @@ var ExtractTimezoneAbbrRefiner = class {
|
|
|
26834
26931
|
};
|
|
26835
26932
|
|
|
26836
26933
|
//#endregion
|
|
26837
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js
|
|
26934
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/refiners/ExtractTimezoneOffsetRefiner.js
|
|
26838
26935
|
const TIMEZONE_OFFSET_PATTERN = /* @__PURE__ */ new RegExp("^\\s*(?:\\(?(?:GMT|UTC)\\s?)?([+-])(\\d{1,2})(?::?(\\d{2}))?\\)?", "i");
|
|
26839
26936
|
const TIMEZONE_OFFSET_SIGN_GROUP = 1;
|
|
26840
26937
|
const TIMEZONE_OFFSET_HOUR_OFFSET_GROUP = 2;
|
|
@@ -26863,7 +26960,7 @@ var ExtractTimezoneOffsetRefiner = class {
|
|
|
26863
26960
|
};
|
|
26864
26961
|
|
|
26865
26962
|
//#endregion
|
|
26866
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/refiners/OverlapRemovalRefiner.js
|
|
26963
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/refiners/OverlapRemovalRefiner.js
|
|
26867
26964
|
var OverlapRemovalRefiner = class {
|
|
26868
26965
|
refine(context, results) {
|
|
26869
26966
|
if (results.length < 2) return results;
|
|
@@ -26896,7 +26993,7 @@ var OverlapRemovalRefiner = class {
|
|
|
26896
26993
|
};
|
|
26897
26994
|
|
|
26898
26995
|
//#endregion
|
|
26899
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/refiners/ForwardDateRefiner.js
|
|
26996
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/refiners/ForwardDateRefiner.js
|
|
26900
26997
|
var ForwardDateRefiner = class {
|
|
26901
26998
|
refine(context, results) {
|
|
26902
26999
|
if (!context.option.forwardDate) return results;
|
|
@@ -26954,7 +27051,7 @@ var ForwardDateRefiner = class {
|
|
|
26954
27051
|
};
|
|
26955
27052
|
|
|
26956
27053
|
//#endregion
|
|
26957
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/refiners/UnlikelyFormatFilter.js
|
|
27054
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/refiners/UnlikelyFormatFilter.js
|
|
26958
27055
|
var UnlikelyFormatFilter = class extends Filter {
|
|
26959
27056
|
strictMode;
|
|
26960
27057
|
constructor(strictMode) {
|
|
@@ -26995,7 +27092,7 @@ var UnlikelyFormatFilter = class extends Filter {
|
|
|
26995
27092
|
};
|
|
26996
27093
|
|
|
26997
27094
|
//#endregion
|
|
26998
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/parsers/ISOFormatParser.js
|
|
27095
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/parsers/ISOFormatParser.js
|
|
26999
27096
|
const PATTERN$6 = new RegExp("([0-9]{4})\\-([0-9]{1,2})\\-([0-9]{1,2})(?:T([0-9]{1,2}):([0-9]{1,2})(?::([0-9]{1,2})(?:\\.(\\d{1,4}))?)?(Z|([+-]\\d{2}):?(\\d{2})?)?)?(?=\\W|$)", "i");
|
|
27000
27097
|
const YEAR_NUMBER_GROUP = 1;
|
|
27001
27098
|
const MONTH_NUMBER_GROUP = 2;
|
|
@@ -27040,7 +27137,7 @@ var ISOFormatParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
|
27040
27137
|
};
|
|
27041
27138
|
|
|
27042
27139
|
//#endregion
|
|
27043
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js
|
|
27140
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/refiners/MergeWeekdayComponentRefiner.js
|
|
27044
27141
|
var MergeWeekdayComponentRefiner = class extends MergingRefiner {
|
|
27045
27142
|
mergeResults(textBetween, currentResult, nextResult) {
|
|
27046
27143
|
const newResult = nextResult.clone();
|
|
@@ -27056,7 +27153,7 @@ var MergeWeekdayComponentRefiner = class extends MergingRefiner {
|
|
|
27056
27153
|
};
|
|
27057
27154
|
|
|
27058
27155
|
//#endregion
|
|
27059
|
-
//#region ../../node_modules/chrono-node/dist/esm/configurations.js
|
|
27156
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/configurations.js
|
|
27060
27157
|
function includeCommonConfiguration(configuration, strictMode = false) {
|
|
27061
27158
|
configuration.parsers.unshift(new ISOFormatParser());
|
|
27062
27159
|
configuration.refiners.unshift(new MergeWeekdayComponentRefiner());
|
|
@@ -27070,7 +27167,7 @@ function includeCommonConfiguration(configuration, strictMode = false) {
|
|
|
27070
27167
|
}
|
|
27071
27168
|
|
|
27072
27169
|
//#endregion
|
|
27073
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/casualReferences.js
|
|
27170
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/casualReferences.js
|
|
27074
27171
|
function now(reference) {
|
|
27075
27172
|
const targetDate = reference.getDateWithAdjustedTimezone();
|
|
27076
27173
|
const component = new ParsingComponents(reference, {});
|
|
@@ -27166,7 +27263,7 @@ function noon(reference) {
|
|
|
27166
27263
|
}
|
|
27167
27264
|
|
|
27168
27265
|
//#endregion
|
|
27169
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENCasualDateParser.js
|
|
27266
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENCasualDateParser.js
|
|
27170
27267
|
const PATTERN$5 = /(now|today|tonight|tomorrow|overmorrow|tmr|tmrw|yesterday|last\s*night)(?=\W|$)/i;
|
|
27171
27268
|
var ENCasualDateParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
27172
27269
|
innerPattern(context) {
|
|
@@ -27215,7 +27312,7 @@ var ENCasualDateParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
|
27215
27312
|
};
|
|
27216
27313
|
|
|
27217
27314
|
//#endregion
|
|
27218
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENCasualTimeParser.js
|
|
27315
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENCasualTimeParser.js
|
|
27219
27316
|
const PATTERN$4 = /(?:this)?\s{0,3}(morning|afternoon|evening|night|midnight|midday|noon)(?=\W|$)/i;
|
|
27220
27317
|
var ENCasualTimeParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
27221
27318
|
innerPattern() {
|
|
@@ -27248,7 +27345,7 @@ var ENCasualTimeParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
|
27248
27345
|
};
|
|
27249
27346
|
|
|
27250
27347
|
//#endregion
|
|
27251
|
-
//#region ../../node_modules/chrono-node/dist/esm/calculation/weekdays.js
|
|
27348
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/calculation/weekdays.js
|
|
27252
27349
|
function createParsingComponentsAtWeekday(reference, weekday, modifier) {
|
|
27253
27350
|
const daysToWeekday = getDaysToWeekday(reference.getDateWithAdjustedTimezone(), weekday, modifier);
|
|
27254
27351
|
let components = new ParsingComponents(reference);
|
|
@@ -27290,7 +27387,7 @@ function getBackwardDaysToWeekday(refDate, weekday) {
|
|
|
27290
27387
|
}
|
|
27291
27388
|
|
|
27292
27389
|
//#endregion
|
|
27293
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENWeekdayParser.js
|
|
27390
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENWeekdayParser.js
|
|
27294
27391
|
const PATTERN$3 = new RegExp(`(?:(?:\\,|\\(|\\()\\s*)?(?:on\\s*?)?(?:(this|last|past|next)\\s*)?(${matchAnyPattern(WEEKDAY_DICTIONARY)}|weekend|weekday)(?:\\s*(?:\\,|\\)|\\)))?(?:\\s*(this|last|past|next)\\s*week)?(?=\\W|\$)`, "i");
|
|
27295
27392
|
const PREFIX_GROUP = 1;
|
|
27296
27393
|
const WEEKDAY_GROUP = 2;
|
|
@@ -27327,7 +27424,7 @@ var ENWeekdayParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
|
27327
27424
|
};
|
|
27328
27425
|
|
|
27329
27426
|
//#endregion
|
|
27330
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js
|
|
27427
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENRelativeDateFormatParser.js
|
|
27331
27428
|
const PATTERN$2 = new RegExp(`(this|last|past|next|after\\s*this)\\s*(${matchAnyPattern(TIME_UNIT_DICTIONARY)})(?=\\s*)(?=\\W|\$)`, "i");
|
|
27332
27429
|
const MODIFIER_WORD_GROUP = 1;
|
|
27333
27430
|
const RELATIVE_WORD_GROUP = 2;
|
|
@@ -27373,7 +27470,7 @@ var ENRelativeDateFormatParser = class extends AbstractParserWithWordBoundaryChe
|
|
|
27373
27470
|
};
|
|
27374
27471
|
|
|
27375
27472
|
//#endregion
|
|
27376
|
-
//#region ../../node_modules/chrono-node/dist/esm/common/parsers/SlashDateFormatParser.js
|
|
27473
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/common/parsers/SlashDateFormatParser.js
|
|
27377
27474
|
const PATTERN$1 = new RegExp("([^\\d]|^)([0-3]{0,1}[0-9]{1})[\\/\\.\\-]([0-3]{0,1}[0-9]{1})(?:[\\/\\.\\-]([0-9]{4}|[0-9]{2}))?(\\W|$)", "i");
|
|
27378
27475
|
const OPENING_GROUP = 1;
|
|
27379
27476
|
const ENDING_GROUP = 5;
|
|
@@ -27424,7 +27521,7 @@ var SlashDateFormatParser = class {
|
|
|
27424
27521
|
};
|
|
27425
27522
|
|
|
27426
27523
|
//#endregion
|
|
27427
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js
|
|
27524
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/parsers/ENTimeUnitCasualRelativeFormatParser.js
|
|
27428
27525
|
const PATTERN = new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${TIME_UNITS_PATTERN})(?=\\W|$)`, "i");
|
|
27429
27526
|
const PATTERN_NO_ABBR = new RegExp(`(this|last|past|next|after|\\+|-)\\s*(${TIME_UNITS_NO_ABBR_PATTERN})(?=\\W|$)`, "i");
|
|
27430
27527
|
var ENTimeUnitCasualRelativeFormatParser = class extends AbstractParserWithWordBoundaryChecking {
|
|
@@ -27452,7 +27549,7 @@ var ENTimeUnitCasualRelativeFormatParser = class extends AbstractParserWithWordB
|
|
|
27452
27549
|
};
|
|
27453
27550
|
|
|
27454
27551
|
//#endregion
|
|
27455
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeRelativeAfterDateRefiner.js
|
|
27552
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeRelativeAfterDateRefiner.js
|
|
27456
27553
|
function IsPositiveFollowingReference(result) {
|
|
27457
27554
|
return result.text.match(/^[+-]/i) != null;
|
|
27458
27555
|
}
|
|
@@ -27473,7 +27570,7 @@ var ENMergeRelativeAfterDateRefiner = class extends MergingRefiner {
|
|
|
27473
27570
|
};
|
|
27474
27571
|
|
|
27475
27572
|
//#endregion
|
|
27476
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeRelativeFollowByDateRefiner.js
|
|
27573
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/refiners/ENMergeRelativeFollowByDateRefiner.js
|
|
27477
27574
|
function hasImpliedEarlierReferenceDate(result) {
|
|
27478
27575
|
return result.text.match(/\s+(before|from)$/i) != null;
|
|
27479
27576
|
}
|
|
@@ -27498,7 +27595,7 @@ var ENMergeRelativeFollowByDateRefiner = class extends MergingRefiner {
|
|
|
27498
27595
|
};
|
|
27499
27596
|
|
|
27500
27597
|
//#endregion
|
|
27501
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/refiners/ENExtractYearSuffixRefiner.js
|
|
27598
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/refiners/ENExtractYearSuffixRefiner.js
|
|
27502
27599
|
const YEAR_SUFFIX_PATTERN = new RegExp(`^\\s*(${YEAR_PATTERN})`, "i");
|
|
27503
27600
|
const YEAR_GROUP = 1;
|
|
27504
27601
|
var ENExtractYearSuffixRefiner = class {
|
|
@@ -27522,7 +27619,7 @@ var ENExtractYearSuffixRefiner = class {
|
|
|
27522
27619
|
};
|
|
27523
27620
|
|
|
27524
27621
|
//#endregion
|
|
27525
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/refiners/ENUnlikelyFormatFilter.js
|
|
27622
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/refiners/ENUnlikelyFormatFilter.js
|
|
27526
27623
|
var ENUnlikelyFormatFilter = class extends Filter {
|
|
27527
27624
|
constructor() {
|
|
27528
27625
|
super();
|
|
@@ -27549,7 +27646,7 @@ var ENUnlikelyFormatFilter = class extends Filter {
|
|
|
27549
27646
|
};
|
|
27550
27647
|
|
|
27551
27648
|
//#endregion
|
|
27552
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/configuration.js
|
|
27649
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/configuration.js
|
|
27553
27650
|
var ENDefaultConfiguration = class {
|
|
27554
27651
|
createCasualConfiguration(littleEndian = false) {
|
|
27555
27652
|
const option = this.createConfiguration(false, littleEndian);
|
|
@@ -27588,7 +27685,7 @@ var ENDefaultConfiguration = class {
|
|
|
27588
27685
|
};
|
|
27589
27686
|
|
|
27590
27687
|
//#endregion
|
|
27591
|
-
//#region ../../node_modules/chrono-node/dist/esm/chrono.js
|
|
27688
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/chrono.js
|
|
27592
27689
|
var Chrono = class Chrono {
|
|
27593
27690
|
parsers;
|
|
27594
27691
|
refiners;
|
|
@@ -27682,14 +27779,14 @@ var ParsingContext = class {
|
|
|
27682
27779
|
};
|
|
27683
27780
|
|
|
27684
27781
|
//#endregion
|
|
27685
|
-
//#region ../../node_modules/chrono-node/dist/esm/locales/en/index.js
|
|
27782
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/locales/en/index.js
|
|
27686
27783
|
const configuration = new ENDefaultConfiguration();
|
|
27687
27784
|
const casual$1 = new Chrono(configuration.createCasualConfiguration(false));
|
|
27688
27785
|
const strict$1 = new Chrono(configuration.createConfiguration(true, false));
|
|
27689
27786
|
const GB = new Chrono(configuration.createCasualConfiguration(true));
|
|
27690
27787
|
|
|
27691
27788
|
//#endregion
|
|
27692
|
-
//#region ../../node_modules/chrono-node/dist/esm/index.js
|
|
27789
|
+
//#region ../../node_modules/.pnpm/chrono-node@2.9.0/node_modules/chrono-node/dist/esm/index.js
|
|
27693
27790
|
const strict = strict$1;
|
|
27694
27791
|
const casual = casual$1;
|
|
27695
27792
|
function parseDate(text, ref, option) {
|
|
@@ -27734,7 +27831,25 @@ var DateEvaluator = class {
|
|
|
27734
27831
|
const upperBound = rest ? parseDate(`in ${rest}`, now, { forwardDate: true }) ?? new Date(now.getTime() + 720 * 60 * 60 * 1e3) : new Date(now.getTime() + 720 * 60 * 60 * 1e3);
|
|
27735
27832
|
return new Date(now.getTime() + Math.random() * (upperBound.getTime() - now.getTime()));
|
|
27736
27833
|
}
|
|
27737
|
-
|
|
27834
|
+
const monthDay = this.parseMonthWithDay(expr, now);
|
|
27835
|
+
if (monthDay) return monthDay;
|
|
27836
|
+
return parseDate(this.normalizeExpression(expr), now, { forwardDate: true });
|
|
27837
|
+
}
|
|
27838
|
+
normalizeExpression(expr) {
|
|
27839
|
+
return expr.replace(/\b(next|last|previous|this)\s+week\s+(mon|tues?|wed(?:nes)?|thurs?|fri|sat(?:ur)?|sun)(day)?\b/gi, (_match, qualifier, weekdayStem, daySuffix) => `${weekdayStem}${daySuffix ?? ""} ${qualifier} week`);
|
|
27840
|
+
}
|
|
27841
|
+
parseMonthWithDay(expr, now) {
|
|
27842
|
+
const trimmed = expr.trim();
|
|
27843
|
+
const qualifierFirst = trimmed.match(/^(next|last|previous|this)\s+month\s+(\d{1,2})(?:st|nd|rd|th)?$/i);
|
|
27844
|
+
const dayFirst = trimmed.match(/^(\d{1,2})(?:st|nd|rd|th)?\s+(?:of\s+)?(next|last|previous|this)\s+month$/i);
|
|
27845
|
+
const match = qualifierFirst ?? dayFirst;
|
|
27846
|
+
if (!match) return null;
|
|
27847
|
+
const qualifier = (qualifierFirst ? match[1] : match[2]).toLowerCase();
|
|
27848
|
+
const day = parseInt(qualifierFirst ? match[2] : match[1], 10);
|
|
27849
|
+
const monthOffset = qualifier === "next" ? 1 : qualifier === "last" || qualifier === "previous" ? -1 : 0;
|
|
27850
|
+
const target = new Date(now.getFullYear(), now.getMonth() + monthOffset, day, now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds());
|
|
27851
|
+
if (target.getDate() !== day) return null;
|
|
27852
|
+
return target;
|
|
27738
27853
|
}
|
|
27739
27854
|
formatDate(date, format) {
|
|
27740
27855
|
if (format === "iso") return date.toISOString();
|