autotel-subscribers 30.0.2 → 30.0.4

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.
@@ -111,11 +111,11 @@ function normalizeWindowsPath(path) {
111
111
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
112
112
  }
113
113
  var init_module_node = __esm({
114
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
114
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
115
115
  }
116
116
  });
117
117
 
118
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
118
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/featureFlagUtils.mjs
119
119
  function getFlagDetailFromFlagAndPayload(key, value, payload) {
120
120
  return {
121
121
  key,
@@ -132,7 +132,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
132
132
  }
133
133
  var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
134
134
  var init_featureFlagUtils = __esm({
135
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
135
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
136
136
  normalizeFlagsResponse = (flagsResponse) => {
137
137
  if ("flags" in flagsResponse) {
138
138
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -190,251 +190,41 @@ var init_featureFlagUtils = __esm({
190
190
  }
191
191
  });
192
192
 
193
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/gzip.mjs
193
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/gzip.mjs
194
194
  function isGzipSupported() {
195
- return "CompressionStream" in globalThis;
195
+ return "CompressionStream" in globalThis && "TextEncoder" in globalThis && "Response" in globalThis && "function" == typeof Response.prototype.blob;
196
196
  }
197
- async function gzipCompress(input, isDebug = true) {
197
+ async function gzipCompress(input, isDebug = true, options) {
198
198
  try {
199
- const dataStream = new Blob([
200
- input
201
- ], {
202
- type: "text/plain"
203
- }).stream();
204
- const compressedStream = dataStream.pipeThrough(new CompressionStream("gzip"));
205
- return await new Response(compressedStream).blob();
199
+ const compressedStream = new CompressionStream("gzip");
200
+ const writer = compressedStream.writable.getWriter();
201
+ const writePromise = writer.write(new TextEncoder().encode(input)).then(() => writer.close()).catch(async (err) => {
202
+ try {
203
+ await writer.abort(err);
204
+ } catch {
205
+ }
206
+ throw err;
207
+ });
208
+ const responsePromise = new Response(compressedStream.readable).blob();
209
+ const [compressed] = await Promise.all([
210
+ responsePromise,
211
+ writePromise
212
+ ]);
213
+ return compressed;
206
214
  } catch (error) {
207
215
  if (isDebug) console.error("Failed to gzip compress data", error);
208
216
  return null;
209
217
  }
210
218
  }
211
219
  var init_gzip = __esm({
212
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/gzip.mjs"() {
220
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/gzip.mjs"() {
213
221
  }
214
222
  });
215
223
 
216
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
217
- var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
218
- var init_uuidv7 = __esm({
219
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
220
- DIGITS = "0123456789abcdef";
221
- UUID = class _UUID {
222
- constructor(bytes) {
223
- this.bytes = bytes;
224
- }
225
- static ofInner(bytes) {
226
- if (16 === bytes.length) return new _UUID(bytes);
227
- throw new TypeError("not 128-bit length");
228
- }
229
- static fromFieldsV7(unixTsMs, randA, randBHi, randBLo) {
230
- if (!Number.isInteger(unixTsMs) || !Number.isInteger(randA) || !Number.isInteger(randBHi) || !Number.isInteger(randBLo) || unixTsMs < 0 || randA < 0 || randBHi < 0 || randBLo < 0 || unixTsMs > 281474976710655 || randA > 4095 || randBHi > 1073741823 || randBLo > 4294967295) throw new RangeError("invalid field value");
231
- const bytes = new Uint8Array(16);
232
- bytes[0] = unixTsMs / 2 ** 40;
233
- bytes[1] = unixTsMs / 2 ** 32;
234
- bytes[2] = unixTsMs / 2 ** 24;
235
- bytes[3] = unixTsMs / 2 ** 16;
236
- bytes[4] = unixTsMs / 256;
237
- bytes[5] = unixTsMs;
238
- bytes[6] = 112 | randA >>> 8;
239
- bytes[7] = randA;
240
- bytes[8] = 128 | randBHi >>> 24;
241
- bytes[9] = randBHi >>> 16;
242
- bytes[10] = randBHi >>> 8;
243
- bytes[11] = randBHi;
244
- bytes[12] = randBLo >>> 24;
245
- bytes[13] = randBLo >>> 16;
246
- bytes[14] = randBLo >>> 8;
247
- bytes[15] = randBLo;
248
- return new _UUID(bytes);
249
- }
250
- static parse(uuid) {
251
- let hex2;
252
- switch (uuid.length) {
253
- case 32:
254
- hex2 = /^[0-9a-f]{32}$/i.exec(uuid)?.[0];
255
- break;
256
- case 36:
257
- hex2 = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(uuid)?.slice(1, 6).join("");
258
- break;
259
- case 38:
260
- hex2 = /^\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\}$/i.exec(uuid)?.slice(1, 6).join("");
261
- break;
262
- case 45:
263
- hex2 = /^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(uuid)?.slice(1, 6).join("");
264
- break;
265
- }
266
- if (hex2) {
267
- const inner = new Uint8Array(16);
268
- for (let i = 0; i < 16; i += 4) {
269
- const n = parseInt(hex2.substring(2 * i, 2 * i + 8), 16);
270
- inner[i + 0] = n >>> 24;
271
- inner[i + 1] = n >>> 16;
272
- inner[i + 2] = n >>> 8;
273
- inner[i + 3] = n;
274
- }
275
- return new _UUID(inner);
276
- }
277
- throw new SyntaxError("could not parse UUID string");
278
- }
279
- toString() {
280
- let text = "";
281
- for (let i = 0; i < this.bytes.length; i++) {
282
- text += DIGITS.charAt(this.bytes[i] >>> 4);
283
- text += DIGITS.charAt(15 & this.bytes[i]);
284
- if (3 === i || 5 === i || 7 === i || 9 === i) text += "-";
285
- }
286
- return text;
287
- }
288
- toHex() {
289
- let text = "";
290
- for (let i = 0; i < this.bytes.length; i++) {
291
- text += DIGITS.charAt(this.bytes[i] >>> 4);
292
- text += DIGITS.charAt(15 & this.bytes[i]);
293
- }
294
- return text;
295
- }
296
- toJSON() {
297
- return this.toString();
298
- }
299
- getVariant() {
300
- const n = this.bytes[8] >>> 4;
301
- if (n < 0) throw new Error("unreachable");
302
- if (n <= 7) return this.bytes.every((e) => 0 === e) ? "NIL" : "VAR_0";
303
- if (n <= 11) return "VAR_10";
304
- if (n <= 13) return "VAR_110";
305
- if (n <= 15) return this.bytes.every((e) => 255 === e) ? "MAX" : "VAR_RESERVED";
306
- else throw new Error("unreachable");
307
- }
308
- getVersion() {
309
- return "VAR_10" === this.getVariant() ? this.bytes[6] >>> 4 : void 0;
310
- }
311
- clone() {
312
- return new _UUID(this.bytes.slice(0));
313
- }
314
- equals(other) {
315
- return 0 === this.compareTo(other);
316
- }
317
- compareTo(other) {
318
- for (let i = 0; i < 16; i++) {
319
- const diff = this.bytes[i] - other.bytes[i];
320
- if (0 !== diff) return Math.sign(diff);
321
- }
322
- return 0;
323
- }
324
- };
325
- V7Generator = class {
326
- constructor(randomNumberGenerator) {
327
- this.timestamp = 0;
328
- this.counter = 0;
329
- this.random = randomNumberGenerator ?? getDefaultRandom();
330
- }
331
- generate() {
332
- return this.generateOrResetCore(Date.now(), 1e4);
333
- }
334
- generateOrAbort() {
335
- return this.generateOrAbortCore(Date.now(), 1e4);
336
- }
337
- generateOrResetCore(unixTsMs, rollbackAllowance) {
338
- let value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);
339
- if (void 0 === value) {
340
- this.timestamp = 0;
341
- value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);
342
- }
343
- return value;
344
- }
345
- generateOrAbortCore(unixTsMs, rollbackAllowance) {
346
- const MAX_COUNTER = 4398046511103;
347
- if (!Number.isInteger(unixTsMs) || unixTsMs < 1 || unixTsMs > 281474976710655) throw new RangeError("`unixTsMs` must be a 48-bit positive integer");
348
- if (rollbackAllowance < 0 || rollbackAllowance > 281474976710655) throw new RangeError("`rollbackAllowance` out of reasonable range");
349
- if (unixTsMs > this.timestamp) {
350
- this.timestamp = unixTsMs;
351
- this.resetCounter();
352
- } else {
353
- if (!(unixTsMs + rollbackAllowance >= this.timestamp)) return;
354
- this.counter++;
355
- if (this.counter > MAX_COUNTER) {
356
- this.timestamp++;
357
- this.resetCounter();
358
- }
359
- }
360
- return UUID.fromFieldsV7(this.timestamp, Math.trunc(this.counter / 2 ** 30), this.counter & 2 ** 30 - 1, this.random.nextUint32());
361
- }
362
- resetCounter() {
363
- this.counter = 1024 * this.random.nextUint32() + (1023 & this.random.nextUint32());
364
- }
365
- generateV4() {
366
- const bytes = new Uint8Array(Uint32Array.of(this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32()).buffer);
367
- bytes[6] = 64 | bytes[6] >>> 4;
368
- bytes[8] = 128 | bytes[8] >>> 2;
369
- return UUID.ofInner(bytes);
370
- }
371
- };
372
- getDefaultRandom = () => ({
373
- nextUint32: () => 65536 * Math.trunc(65536 * Math.random()) + Math.trunc(65536 * Math.random())
374
- });
375
- uuidv7 = () => uuidv7obj().toString();
376
- uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator())).generate();
377
- }
378
- });
379
-
380
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/types.mjs
381
- var types_PostHogPersistedProperty, FeatureFlagError;
382
- var init_types = __esm({
383
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/types.mjs"() {
384
- types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
385
- PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
386
- PostHogPersistedProperty["DistinctId"] = "distinct_id";
387
- PostHogPersistedProperty["Props"] = "props";
388
- PostHogPersistedProperty["EnablePersonProcessing"] = "enable_person_processing";
389
- PostHogPersistedProperty["PersonMode"] = "person_mode";
390
- PostHogPersistedProperty["FeatureFlagDetails"] = "feature_flag_details";
391
- PostHogPersistedProperty["FeatureFlags"] = "feature_flags";
392
- PostHogPersistedProperty["FeatureFlagPayloads"] = "feature_flag_payloads";
393
- PostHogPersistedProperty["BootstrapFeatureFlagDetails"] = "bootstrap_feature_flag_details";
394
- PostHogPersistedProperty["BootstrapFeatureFlags"] = "bootstrap_feature_flags";
395
- PostHogPersistedProperty["BootstrapFeatureFlagPayloads"] = "bootstrap_feature_flag_payloads";
396
- PostHogPersistedProperty["OverrideFeatureFlags"] = "override_feature_flags";
397
- PostHogPersistedProperty["Queue"] = "queue";
398
- PostHogPersistedProperty["OptedOut"] = "opted_out";
399
- PostHogPersistedProperty["SessionId"] = "session_id";
400
- PostHogPersistedProperty["SessionStartTimestamp"] = "session_start_timestamp";
401
- PostHogPersistedProperty["SessionLastTimestamp"] = "session_timestamp";
402
- PostHogPersistedProperty["PersonProperties"] = "person_properties";
403
- PostHogPersistedProperty["GroupProperties"] = "group_properties";
404
- PostHogPersistedProperty["InstalledAppBuild"] = "installed_app_build";
405
- PostHogPersistedProperty["InstalledAppVersion"] = "installed_app_version";
406
- PostHogPersistedProperty["SessionReplay"] = "session_replay";
407
- PostHogPersistedProperty["SurveyLastSeenDate"] = "survey_last_seen_date";
408
- PostHogPersistedProperty["SurveysSeen"] = "surveys_seen";
409
- PostHogPersistedProperty["Surveys"] = "surveys";
410
- PostHogPersistedProperty["RemoteConfig"] = "remote_config";
411
- PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
412
- PostHogPersistedProperty["DeviceId"] = "device_id";
413
- return PostHogPersistedProperty;
414
- })({});
415
- FeatureFlagError = {
416
- ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
417
- FLAG_MISSING: "flag_missing",
418
- QUOTA_LIMITED: "quota_limited",
419
- TIMEOUT: "timeout",
420
- CONNECTION_ERROR: "connection_error",
421
- UNKNOWN_ERROR: "unknown_error",
422
- apiError: (status) => `api_error_${status}`
423
- };
424
- }
425
- });
426
-
427
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/surveys/validation.mjs
428
- var init_validation = __esm({
429
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/surveys/validation.mjs"() {
430
- init_types();
431
- }
432
- });
433
-
434
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
224
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/bot-detection.mjs
435
225
  var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
436
226
  var init_bot_detection = __esm({
437
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
227
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
438
228
  DEFAULT_BLOCKED_UA_STRS = [
439
229
  "amazonbot",
440
230
  "amazonproductbot",
@@ -525,13 +315,60 @@ var init_bot_detection = __esm({
525
315
  }
526
316
  });
527
317
 
528
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
318
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/types.mjs
319
+ var types_PostHogPersistedProperty, FeatureFlagError;
320
+ var init_types = __esm({
321
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/types.mjs"() {
322
+ types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
323
+ PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
324
+ PostHogPersistedProperty["DistinctId"] = "distinct_id";
325
+ PostHogPersistedProperty["Props"] = "props";
326
+ PostHogPersistedProperty["EnablePersonProcessing"] = "enable_person_processing";
327
+ PostHogPersistedProperty["PersonMode"] = "person_mode";
328
+ PostHogPersistedProperty["FeatureFlagDetails"] = "feature_flag_details";
329
+ PostHogPersistedProperty["FeatureFlags"] = "feature_flags";
330
+ PostHogPersistedProperty["FeatureFlagPayloads"] = "feature_flag_payloads";
331
+ PostHogPersistedProperty["BootstrapFeatureFlagDetails"] = "bootstrap_feature_flag_details";
332
+ PostHogPersistedProperty["BootstrapFeatureFlags"] = "bootstrap_feature_flags";
333
+ PostHogPersistedProperty["BootstrapFeatureFlagPayloads"] = "bootstrap_feature_flag_payloads";
334
+ PostHogPersistedProperty["OverrideFeatureFlags"] = "override_feature_flags";
335
+ PostHogPersistedProperty["Queue"] = "queue";
336
+ PostHogPersistedProperty["OptedOut"] = "opted_out";
337
+ PostHogPersistedProperty["SessionId"] = "session_id";
338
+ PostHogPersistedProperty["SessionStartTimestamp"] = "session_start_timestamp";
339
+ PostHogPersistedProperty["SessionLastTimestamp"] = "session_timestamp";
340
+ PostHogPersistedProperty["PersonProperties"] = "person_properties";
341
+ PostHogPersistedProperty["GroupProperties"] = "group_properties";
342
+ PostHogPersistedProperty["InstalledAppBuild"] = "installed_app_build";
343
+ PostHogPersistedProperty["InstalledAppVersion"] = "installed_app_version";
344
+ PostHogPersistedProperty["SessionReplay"] = "session_replay";
345
+ PostHogPersistedProperty["SurveyLastSeenDate"] = "survey_last_seen_date";
346
+ PostHogPersistedProperty["SurveysSeen"] = "surveys_seen";
347
+ PostHogPersistedProperty["Surveys"] = "surveys";
348
+ PostHogPersistedProperty["RemoteConfig"] = "remote_config";
349
+ PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
350
+ PostHogPersistedProperty["DeviceId"] = "device_id";
351
+ return PostHogPersistedProperty;
352
+ })({});
353
+ FeatureFlagError = {
354
+ ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
355
+ FLAG_MISSING: "flag_missing",
356
+ QUOTA_LIMITED: "quota_limited",
357
+ TIMEOUT: "timeout",
358
+ CONNECTION_ERROR: "connection_error",
359
+ UNKNOWN_ERROR: "unknown_error",
360
+ apiError: (status) => `api_error_${status}`
361
+ };
362
+ }
363
+ });
364
+
365
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/string-utils.mjs
529
366
  var init_string_utils = __esm({
530
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
367
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
531
368
  }
532
369
  });
533
370
 
534
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
371
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/type-utils.mjs
535
372
  function isPrimitive(value) {
536
373
  return null === value || "object" != typeof value;
537
374
  }
@@ -556,7 +393,7 @@ function isInstanceOf(candidate, base) {
556
393
  }
557
394
  var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
558
395
  var init_type_utils = __esm({
559
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
396
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
560
397
  init_types();
561
398
  init_string_utils();
562
399
  nativeIsArray = Array.isArray;
@@ -575,7 +412,7 @@ var init_type_utils = __esm({
575
412
  }
576
413
  });
577
414
 
578
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
415
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/number-utils.mjs
579
416
  function clampToRange(value, min, max, logger, fallbackValue) {
580
417
  if (min > max) {
581
418
  logger.warn("min cannot be greater than max.");
@@ -593,15 +430,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
593
430
  return clampToRange(max, min, max, logger);
594
431
  }
595
432
  var init_number_utils = __esm({
596
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
433
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
597
434
  init_type_utils();
598
435
  }
599
436
  });
600
437
 
601
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
438
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
602
439
  var ONE_DAY_IN_MS, BucketedRateLimiter;
603
440
  var init_bucketed_rate_limiter = __esm({
604
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
441
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
605
442
  init_number_utils();
606
443
  ONE_DAY_IN_MS = 864e5;
607
444
  BucketedRateLimiter = class {
@@ -645,10 +482,174 @@ var init_bucketed_rate_limiter = __esm({
645
482
  }
646
483
  });
647
484
 
648
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
485
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
486
+ var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
487
+ var init_uuidv7 = __esm({
488
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
489
+ DIGITS = "0123456789abcdef";
490
+ UUID = class _UUID {
491
+ constructor(bytes) {
492
+ this.bytes = bytes;
493
+ }
494
+ static ofInner(bytes) {
495
+ if (16 === bytes.length) return new _UUID(bytes);
496
+ throw new TypeError("not 128-bit length");
497
+ }
498
+ static fromFieldsV7(unixTsMs, randA, randBHi, randBLo) {
499
+ if (!Number.isInteger(unixTsMs) || !Number.isInteger(randA) || !Number.isInteger(randBHi) || !Number.isInteger(randBLo) || unixTsMs < 0 || randA < 0 || randBHi < 0 || randBLo < 0 || unixTsMs > 281474976710655 || randA > 4095 || randBHi > 1073741823 || randBLo > 4294967295) throw new RangeError("invalid field value");
500
+ const bytes = new Uint8Array(16);
501
+ bytes[0] = unixTsMs / 2 ** 40;
502
+ bytes[1] = unixTsMs / 2 ** 32;
503
+ bytes[2] = unixTsMs / 2 ** 24;
504
+ bytes[3] = unixTsMs / 2 ** 16;
505
+ bytes[4] = unixTsMs / 256;
506
+ bytes[5] = unixTsMs;
507
+ bytes[6] = 112 | randA >>> 8;
508
+ bytes[7] = randA;
509
+ bytes[8] = 128 | randBHi >>> 24;
510
+ bytes[9] = randBHi >>> 16;
511
+ bytes[10] = randBHi >>> 8;
512
+ bytes[11] = randBHi;
513
+ bytes[12] = randBLo >>> 24;
514
+ bytes[13] = randBLo >>> 16;
515
+ bytes[14] = randBLo >>> 8;
516
+ bytes[15] = randBLo;
517
+ return new _UUID(bytes);
518
+ }
519
+ static parse(uuid) {
520
+ let hex2;
521
+ switch (uuid.length) {
522
+ case 32:
523
+ hex2 = /^[0-9a-f]{32}$/i.exec(uuid)?.[0];
524
+ break;
525
+ case 36:
526
+ hex2 = /^([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(uuid)?.slice(1, 6).join("");
527
+ break;
528
+ case 38:
529
+ hex2 = /^\{([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})\}$/i.exec(uuid)?.slice(1, 6).join("");
530
+ break;
531
+ case 45:
532
+ hex2 = /^urn:uuid:([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})$/i.exec(uuid)?.slice(1, 6).join("");
533
+ break;
534
+ }
535
+ if (hex2) {
536
+ const inner = new Uint8Array(16);
537
+ for (let i = 0; i < 16; i += 4) {
538
+ const n = parseInt(hex2.substring(2 * i, 2 * i + 8), 16);
539
+ inner[i + 0] = n >>> 24;
540
+ inner[i + 1] = n >>> 16;
541
+ inner[i + 2] = n >>> 8;
542
+ inner[i + 3] = n;
543
+ }
544
+ return new _UUID(inner);
545
+ }
546
+ throw new SyntaxError("could not parse UUID string");
547
+ }
548
+ toString() {
549
+ let text = "";
550
+ for (let i = 0; i < this.bytes.length; i++) {
551
+ text += DIGITS.charAt(this.bytes[i] >>> 4);
552
+ text += DIGITS.charAt(15 & this.bytes[i]);
553
+ if (3 === i || 5 === i || 7 === i || 9 === i) text += "-";
554
+ }
555
+ return text;
556
+ }
557
+ toHex() {
558
+ let text = "";
559
+ for (let i = 0; i < this.bytes.length; i++) {
560
+ text += DIGITS.charAt(this.bytes[i] >>> 4);
561
+ text += DIGITS.charAt(15 & this.bytes[i]);
562
+ }
563
+ return text;
564
+ }
565
+ toJSON() {
566
+ return this.toString();
567
+ }
568
+ getVariant() {
569
+ const n = this.bytes[8] >>> 4;
570
+ if (n < 0) throw new Error("unreachable");
571
+ if (n <= 7) return this.bytes.every((e) => 0 === e) ? "NIL" : "VAR_0";
572
+ if (n <= 11) return "VAR_10";
573
+ if (n <= 13) return "VAR_110";
574
+ if (n <= 15) return this.bytes.every((e) => 255 === e) ? "MAX" : "VAR_RESERVED";
575
+ else throw new Error("unreachable");
576
+ }
577
+ getVersion() {
578
+ return "VAR_10" === this.getVariant() ? this.bytes[6] >>> 4 : void 0;
579
+ }
580
+ clone() {
581
+ return new _UUID(this.bytes.slice(0));
582
+ }
583
+ equals(other) {
584
+ return 0 === this.compareTo(other);
585
+ }
586
+ compareTo(other) {
587
+ for (let i = 0; i < 16; i++) {
588
+ const diff = this.bytes[i] - other.bytes[i];
589
+ if (0 !== diff) return Math.sign(diff);
590
+ }
591
+ return 0;
592
+ }
593
+ };
594
+ V7Generator = class {
595
+ constructor(randomNumberGenerator) {
596
+ this.timestamp = 0;
597
+ this.counter = 0;
598
+ this.random = randomNumberGenerator ?? getDefaultRandom();
599
+ }
600
+ generate() {
601
+ return this.generateOrResetCore(Date.now(), 1e4);
602
+ }
603
+ generateOrAbort() {
604
+ return this.generateOrAbortCore(Date.now(), 1e4);
605
+ }
606
+ generateOrResetCore(unixTsMs, rollbackAllowance) {
607
+ let value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);
608
+ if (void 0 === value) {
609
+ this.timestamp = 0;
610
+ value = this.generateOrAbortCore(unixTsMs, rollbackAllowance);
611
+ }
612
+ return value;
613
+ }
614
+ generateOrAbortCore(unixTsMs, rollbackAllowance) {
615
+ const MAX_COUNTER = 4398046511103;
616
+ if (!Number.isInteger(unixTsMs) || unixTsMs < 1 || unixTsMs > 281474976710655) throw new RangeError("`unixTsMs` must be a 48-bit positive integer");
617
+ if (rollbackAllowance < 0 || rollbackAllowance > 281474976710655) throw new RangeError("`rollbackAllowance` out of reasonable range");
618
+ if (unixTsMs > this.timestamp) {
619
+ this.timestamp = unixTsMs;
620
+ this.resetCounter();
621
+ } else {
622
+ if (!(unixTsMs + rollbackAllowance >= this.timestamp)) return;
623
+ this.counter++;
624
+ if (this.counter > MAX_COUNTER) {
625
+ this.timestamp++;
626
+ this.resetCounter();
627
+ }
628
+ }
629
+ return UUID.fromFieldsV7(this.timestamp, Math.trunc(this.counter / 2 ** 30), this.counter & 2 ** 30 - 1, this.random.nextUint32());
630
+ }
631
+ resetCounter() {
632
+ this.counter = 1024 * this.random.nextUint32() + (1023 & this.random.nextUint32());
633
+ }
634
+ generateV4() {
635
+ const bytes = new Uint8Array(Uint32Array.of(this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32(), this.random.nextUint32()).buffer);
636
+ bytes[6] = 64 | bytes[6] >>> 4;
637
+ bytes[8] = 128 | bytes[8] >>> 2;
638
+ return UUID.ofInner(bytes);
639
+ }
640
+ };
641
+ getDefaultRandom = () => ({
642
+ nextUint32: () => 65536 * Math.trunc(65536 * Math.random()) + Math.trunc(65536 * Math.random())
643
+ });
644
+ uuidv7 = () => uuidv7obj().toString();
645
+ uuidv7obj = () => (defaultGenerator || (defaultGenerator = new V7Generator())).generate();
646
+ }
647
+ });
648
+
649
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/promise-queue.mjs
649
650
  var PromiseQueue;
650
651
  var init_promise_queue = __esm({
651
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
652
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
652
653
  init_uuidv7();
653
654
  PromiseQueue = class {
654
655
  add(promise) {
@@ -679,7 +680,7 @@ var init_promise_queue = __esm({
679
680
  }
680
681
  });
681
682
 
682
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/logger.mjs
683
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/logger.mjs
683
684
  function createConsole(consoleLike = console) {
684
685
  const lockedMethods = {
685
686
  log: consoleLike.log.bind(consoleLike),
@@ -694,7 +695,7 @@ function createLogger(prefix, maybeCall = passThrough) {
694
695
  }
695
696
  var _createLogger, passThrough;
696
697
  var init_logger = __esm({
697
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
698
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/logger.mjs"() {
698
699
  _createLogger = (prefix, maybeCall, consoleLike) => {
699
700
  function _log(level, ...args) {
700
701
  maybeCall(() => {
@@ -723,10 +724,10 @@ var init_logger = __esm({
723
724
  }
724
725
  });
725
726
 
726
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
727
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
727
728
  var MOBILE, TABLET, GENERIC;
728
729
  var init_user_agent_utils = __esm({
729
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
730
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
730
731
  init_string_utils();
731
732
  init_type_utils();
732
733
  MOBILE = "Mobile";
@@ -737,14 +738,7 @@ var init_user_agent_utils = __esm({
737
738
  }
738
739
  });
739
740
 
740
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/index.mjs
741
- function assert(truthyValue, message2) {
742
- if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message2);
743
- }
744
- function isEmpty(truthyValue) {
745
- if (0 === truthyValue.trim().length) return true;
746
- return false;
747
- }
741
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/index.mjs
748
742
  function removeTrailingSlash(url) {
749
743
  return url?.replace(/\/+$/, "");
750
744
  }
@@ -781,7 +775,7 @@ function allSettled(promises) {
781
775
  }
782
776
  var STRING_FORMAT, isError;
783
777
  var init_utils = __esm({
784
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
778
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/utils/index.mjs"() {
785
779
  init_bot_detection();
786
780
  init_bucketed_rate_limiter();
787
781
  init_number_utils();
@@ -795,10 +789,52 @@ var init_utils = __esm({
795
789
  }
796
790
  });
797
791
 
798
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/eventemitter.mjs
792
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/logs/logs-utils.mjs
793
+ var OTLP_SEVERITY_MAP;
794
+ var init_logs_utils = __esm({
795
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/logs/logs-utils.mjs"() {
796
+ init_utils();
797
+ OTLP_SEVERITY_MAP = {
798
+ trace: {
799
+ text: "TRACE",
800
+ number: 1
801
+ },
802
+ debug: {
803
+ text: "DEBUG",
804
+ number: 5
805
+ },
806
+ info: {
807
+ text: "INFO",
808
+ number: 9
809
+ },
810
+ warn: {
811
+ text: "WARN",
812
+ number: 13
813
+ },
814
+ error: {
815
+ text: "ERROR",
816
+ number: 17
817
+ },
818
+ fatal: {
819
+ text: "FATAL",
820
+ number: 21
821
+ }
822
+ };
823
+ OTLP_SEVERITY_MAP.info;
824
+ }
825
+ });
826
+
827
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/surveys/validation.mjs
828
+ var init_validation = __esm({
829
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/surveys/validation.mjs"() {
830
+ init_types();
831
+ }
832
+ });
833
+
834
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/eventemitter.mjs
799
835
  var SimpleEventEmitter;
800
836
  var init_eventemitter = __esm({
801
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
837
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/eventemitter.mjs"() {
802
838
  SimpleEventEmitter = class {
803
839
  constructor() {
804
840
  this.events = {};
@@ -819,7 +855,7 @@ var init_eventemitter = __esm({
819
855
  }
820
856
  });
821
857
 
822
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
858
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
823
859
  async function logFlushError(err) {
824
860
  if (err instanceof PostHogFetchHttpError) {
825
861
  let text = "";
@@ -839,7 +875,7 @@ function isPostHogFetchContentTooLargeError(err) {
839
875
  }
840
876
  var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
841
877
  var init_posthog_core_stateless = __esm({
842
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
878
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
843
879
  init_eventemitter();
844
880
  init_featureFlagUtils();
845
881
  init_gzip();
@@ -874,9 +910,13 @@ var init_posthog_core_stateless = __esm({
874
910
  this.promiseQueue = new PromiseQueue();
875
911
  this._events = new SimpleEventEmitter();
876
912
  this._isInitialized = false;
877
- assert(apiKey, "You must pass your PostHog project's api key.");
878
- this.apiKey = apiKey;
879
- this.host = removeTrailingSlash(options.host || "https://us.i.posthog.com");
913
+ const normalizedApiKey = "string" == typeof apiKey ? apiKey.trim() : "";
914
+ const normalizedHost = "string" == typeof options.host ? options.host.trim() : "";
915
+ const missingApiKey = !normalizedApiKey;
916
+ this._logger = createLogger("[PostHog]", this.logMsgIfDebug.bind(this));
917
+ if (missingApiKey) this._logger.error("You must pass your PostHog project's api key. The client will be disabled.");
918
+ this.apiKey = normalizedApiKey;
919
+ this.host = removeTrailingSlash(normalizedHost || "https://us.i.posthog.com");
880
920
  this.flushAt = options.flushAt ? Math.max(options.flushAt, 1) : 20;
881
921
  this.maxBatchSize = Math.max(this.flushAt, options.maxBatchSize ?? 100);
882
922
  this.maxQueueSize = Math.max(this.flushAt, options.maxQueueSize ?? 1e3);
@@ -893,11 +933,10 @@ var init_posthog_core_stateless = __esm({
893
933
  this.featureFlagsRequestTimeoutMs = options.featureFlagsRequestTimeoutMs ?? 3e3;
894
934
  this.remoteConfigRequestTimeoutMs = options.remoteConfigRequestTimeoutMs ?? 3e3;
895
935
  this.disableGeoip = options.disableGeoip ?? true;
896
- this.disabled = options.disabled ?? false;
936
+ this.disabled = (options.disabled ?? false) || missingApiKey;
897
937
  this.historicalMigration = options?.historicalMigration ?? false;
898
938
  this._initPromise = Promise.resolve();
899
939
  this._isInitialized = true;
900
- this._logger = createLogger("[PostHog]", this.logMsgIfDebug.bind(this));
901
940
  this.evaluationContexts = options?.evaluationContexts ?? options?.evaluationEnvironments;
902
941
  if (options?.evaluationEnvironments && !options?.evaluationContexts) this._logger.warn("evaluationEnvironments is deprecated. Use evaluationContexts instead. This property will be removed in a future version.");
903
942
  this.disableCompression = !isGzipSupported() || (options?.disableCompression ?? false);
@@ -1074,6 +1113,7 @@ var init_posthog_core_stateless = __esm({
1074
1113
  group_properties: groupProperties,
1075
1114
  ...extraPayload
1076
1115
  };
1116
+ if (personProperties.$device_id) requestData.$device_id = personProperties.$device_id;
1077
1117
  if (this.evaluationContexts && this.evaluationContexts.length > 0) requestData.evaluation_contexts = this.evaluationContexts;
1078
1118
  const fetchOptions = {
1079
1119
  method: "POST",
@@ -1500,9 +1540,9 @@ var init_posthog_core_stateless = __esm({
1500
1540
  }
1501
1541
  });
1502
1542
 
1503
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/posthog-core.mjs
1543
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/posthog-core.mjs
1504
1544
  var init_posthog_core = __esm({
1505
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1545
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1506
1546
  init_featureFlagUtils();
1507
1547
  init_types();
1508
1548
  init_posthog_core_stateless();
@@ -1511,7 +1551,14 @@ var init_posthog_core = __esm({
1511
1551
  }
1512
1552
  });
1513
1553
 
1514
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1554
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/tracing-headers.mjs
1555
+ var init_tracing_headers = __esm({
1556
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/tracing-headers.mjs"() {
1557
+ init_type_utils();
1558
+ }
1559
+ });
1560
+
1561
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1515
1562
  function getFilenameToChunkIdMap(stackParser) {
1516
1563
  const chunkIdMap = globalThis._posthogChunkIds;
1517
1564
  if (!chunkIdMap) return;
@@ -1544,14 +1591,14 @@ function getFilenameToChunkIdMap(stackParser) {
1544
1591
  }
1545
1592
  var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
1546
1593
  var init_chunk_ids = __esm({
1547
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1594
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1548
1595
  }
1549
1596
  });
1550
1597
 
1551
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1598
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1552
1599
  var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
1553
1600
  var init_error_properties_builder = __esm({
1554
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1601
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1555
1602
  init_utils();
1556
1603
  init_chunk_ids();
1557
1604
  MAX_CAUSE_RECURSION = 4;
@@ -1666,7 +1713,7 @@ var init_error_properties_builder = __esm({
1666
1713
  }
1667
1714
  });
1668
1715
 
1669
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1716
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1670
1717
  function createFrame(platform, filename, func, lineno, colno) {
1671
1718
  const frame = {
1672
1719
  platform,
@@ -1680,16 +1727,16 @@ function createFrame(platform, filename, func, lineno, colno) {
1680
1727
  }
1681
1728
  var UNKNOWN_FUNCTION;
1682
1729
  var init_base = __esm({
1683
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1730
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1684
1731
  init_utils();
1685
1732
  UNKNOWN_FUNCTION = "?";
1686
1733
  }
1687
1734
  });
1688
1735
 
1689
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1736
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1690
1737
  var extractSafariExtensionDetails;
1691
1738
  var init_safari = __esm({
1692
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1739
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1693
1740
  init_base();
1694
1741
  extractSafariExtensionDetails = (func, filename) => {
1695
1742
  const isSafariExtension = -1 !== func.indexOf("safari-extension");
@@ -1705,10 +1752,10 @@ var init_safari = __esm({
1705
1752
  }
1706
1753
  });
1707
1754
 
1708
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1755
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1709
1756
  var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
1710
1757
  var init_chrome = __esm({
1711
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1758
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1712
1759
  init_base();
1713
1760
  init_safari();
1714
1761
  chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
@@ -1738,10 +1785,10 @@ var init_chrome = __esm({
1738
1785
  }
1739
1786
  });
1740
1787
 
1741
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1788
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1742
1789
  var geckoREgex, geckoEvalRegex, geckoStackLineParser;
1743
1790
  var init_gecko = __esm({
1744
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1791
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1745
1792
  init_base();
1746
1793
  init_safari();
1747
1794
  geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
@@ -1768,10 +1815,10 @@ var init_gecko = __esm({
1768
1815
  }
1769
1816
  });
1770
1817
 
1771
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1818
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1772
1819
  var winjsRegex, winjsStackLineParser;
1773
1820
  var init_winjs = __esm({
1774
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1821
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1775
1822
  init_base();
1776
1823
  winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
1777
1824
  winjsStackLineParser = (line, platform) => {
@@ -1781,10 +1828,10 @@ var init_winjs = __esm({
1781
1828
  }
1782
1829
  });
1783
1830
 
1784
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1831
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1785
1832
  var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
1786
1833
  var init_opera = __esm({
1787
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1834
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1788
1835
  init_base();
1789
1836
  opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
1790
1837
  opera10StackLineParser = (line, platform) => {
@@ -1799,7 +1846,7 @@ var init_opera = __esm({
1799
1846
  }
1800
1847
  });
1801
1848
 
1802
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1849
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1803
1850
  function filenameIsInApp(filename, isNative = false) {
1804
1851
  const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
1805
1852
  return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
@@ -1809,7 +1856,7 @@ function _parseIntOrUndefined(input) {
1809
1856
  }
1810
1857
  var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
1811
1858
  var init_node = __esm({
1812
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1859
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1813
1860
  init_base();
1814
1861
  FILENAME_MATCH = /^\s*[-]{4,}$/;
1815
1862
  FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
@@ -1870,7 +1917,7 @@ var init_node = __esm({
1870
1917
  }
1871
1918
  });
1872
1919
 
1873
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1920
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1874
1921
  function reverseAndStripFrames(stack) {
1875
1922
  if (!stack.length) return [];
1876
1923
  const localStack = Array.from(stack);
@@ -1911,7 +1958,7 @@ function createStackParser(platform, ...parsers) {
1911
1958
  }
1912
1959
  var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
1913
1960
  var init_parsers = __esm({
1914
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1961
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1915
1962
  init_base();
1916
1963
  init_chrome();
1917
1964
  init_gecko();
@@ -1923,10 +1970,10 @@ var init_parsers = __esm({
1923
1970
  }
1924
1971
  });
1925
1972
 
1926
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1973
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1927
1974
  var DOMExceptionCoercer;
1928
1975
  var init_dom_exception_coercer = __esm({
1929
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1976
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1930
1977
  init_utils();
1931
1978
  DOMExceptionCoercer = class {
1932
1979
  match(err) {
@@ -1960,10 +2007,10 @@ var init_dom_exception_coercer = __esm({
1960
2007
  }
1961
2008
  });
1962
2009
 
1963
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
2010
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1964
2011
  var ErrorCoercer;
1965
2012
  var init_error_coercer = __esm({
1966
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
2013
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1967
2014
  init_utils();
1968
2015
  ErrorCoercer = class {
1969
2016
  match(err) {
@@ -1993,10 +2040,10 @@ var init_error_coercer = __esm({
1993
2040
  }
1994
2041
  });
1995
2042
 
1996
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
2043
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1997
2044
  var ErrorEventCoercer;
1998
2045
  var init_error_event_coercer = __esm({
1999
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
2046
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
2000
2047
  init_utils();
2001
2048
  ErrorEventCoercer = class {
2002
2049
  constructor() {
@@ -2018,10 +2065,10 @@ var init_error_event_coercer = __esm({
2018
2065
  }
2019
2066
  });
2020
2067
 
2021
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
2068
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
2022
2069
  var ERROR_TYPES_PATTERN, StringCoercer;
2023
2070
  var init_string_coercer = __esm({
2024
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
2071
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
2025
2072
  ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
2026
2073
  StringCoercer = class {
2027
2074
  match(input) {
@@ -2053,10 +2100,10 @@ var init_string_coercer = __esm({
2053
2100
  }
2054
2101
  });
2055
2102
 
2056
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
2103
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/types.mjs
2057
2104
  var severityLevels;
2058
2105
  var init_types2 = __esm({
2059
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
2106
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
2060
2107
  severityLevels = [
2061
2108
  "fatal",
2062
2109
  "error",
@@ -2068,7 +2115,7 @@ var init_types2 = __esm({
2068
2115
  }
2069
2116
  });
2070
2117
 
2071
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
2118
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
2072
2119
  function extractExceptionKeysForMessage(err, maxLength = 40) {
2073
2120
  const keys = Object.keys(err);
2074
2121
  keys.sort();
@@ -2083,14 +2130,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
2083
2130
  return "";
2084
2131
  }
2085
2132
  var init_utils2 = __esm({
2086
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
2133
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
2087
2134
  }
2088
2135
  });
2089
2136
 
2090
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2137
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2091
2138
  var ObjectCoercer;
2092
2139
  var init_object_coercer = __esm({
2093
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2140
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2094
2141
  init_utils();
2095
2142
  init_types2();
2096
2143
  init_utils2();
@@ -2144,10 +2191,10 @@ var init_object_coercer = __esm({
2144
2191
  }
2145
2192
  });
2146
2193
 
2147
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2194
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2148
2195
  var EventCoercer;
2149
2196
  var init_event_coercer = __esm({
2150
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2197
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2151
2198
  init_utils();
2152
2199
  init_utils2();
2153
2200
  EventCoercer = class {
@@ -2167,10 +2214,10 @@ var init_event_coercer = __esm({
2167
2214
  }
2168
2215
  });
2169
2216
 
2170
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2217
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2171
2218
  var PrimitiveCoercer;
2172
2219
  var init_primitive_coercer = __esm({
2173
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2220
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2174
2221
  init_utils();
2175
2222
  PrimitiveCoercer = class {
2176
2223
  match(candidate) {
@@ -2188,10 +2235,10 @@ var init_primitive_coercer = __esm({
2188
2235
  }
2189
2236
  });
2190
2237
 
2191
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2238
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2192
2239
  var PromiseRejectionEventCoercer;
2193
2240
  var init_promise_rejection_event = __esm({
2194
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2241
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2195
2242
  init_utils();
2196
2243
  PromiseRejectionEventCoercer = class {
2197
2244
  match(err) {
@@ -2228,9 +2275,9 @@ var init_promise_rejection_event = __esm({
2228
2275
  }
2229
2276
  });
2230
2277
 
2231
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2278
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2232
2279
  var init_coercers = __esm({
2233
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2280
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2234
2281
  init_dom_exception_coercer();
2235
2282
  init_error_coercer();
2236
2283
  init_error_event_coercer();
@@ -2242,10 +2289,10 @@ var init_coercers = __esm({
2242
2289
  }
2243
2290
  });
2244
2291
 
2245
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2292
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2246
2293
  var ReduceableCache;
2247
2294
  var init_utils3 = __esm({
2248
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2295
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2249
2296
  ReduceableCache = class {
2250
2297
  constructor(_maxSize) {
2251
2298
  this._maxSize = _maxSize;
@@ -2271,14 +2318,161 @@ var init_utils3 = __esm({
2271
2318
  }
2272
2319
  });
2273
2320
 
2274
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/index.mjs
2321
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs
2322
+ function resolveExceptionStepsConfig(config) {
2323
+ if (!config) return {
2324
+ ...DEFAULT_EXCEPTION_STEPS_CONFIG
2325
+ };
2326
+ return {
2327
+ enabled: config.enabled ?? DEFAULT_EXCEPTION_STEPS_CONFIG.enabled,
2328
+ max_bytes: normalizePositiveInteger(config.max_bytes, DEFAULT_EXCEPTION_STEPS_CONFIG.max_bytes)
2329
+ };
2330
+ }
2331
+ function stripReservedExceptionStepFields(properties) {
2332
+ if (!properties) return {
2333
+ sanitizedProperties: {},
2334
+ droppedKeys: []
2335
+ };
2336
+ const droppedKeys = [];
2337
+ const sanitizedProperties = Object.keys(properties).reduce((acc, key) => {
2338
+ if (RESERVED_EXCEPTION_STEP_KEYS.has(key)) {
2339
+ droppedKeys.push(key);
2340
+ return acc;
2341
+ }
2342
+ acc[key] = properties[key];
2343
+ return acc;
2344
+ }, {});
2345
+ return {
2346
+ sanitizedProperties,
2347
+ droppedKeys
2348
+ };
2349
+ }
2350
+ function normalizePositiveInteger(input, fallback) {
2351
+ if (!isNumber(input) || input === 1 / 0 || input === -1 / 0) return fallback;
2352
+ const normalized = Math.floor(input);
2353
+ if (normalized < 0) return fallback;
2354
+ return normalized;
2355
+ }
2356
+ function normalizeAndSerializeStep(step) {
2357
+ const json = safeStringify(step);
2358
+ if (!json) return;
2359
+ try {
2360
+ const parsed = JSON.parse(json);
2361
+ if (!isObject(parsed)) return;
2362
+ const parsedStep = parsed;
2363
+ const message2 = parsedStep[EXCEPTION_STEP_INTERNAL_FIELDS.MESSAGE];
2364
+ const timestamp = parsedStep[EXCEPTION_STEP_INTERNAL_FIELDS.TIMESTAMP];
2365
+ if (!isString(message2) || 0 === message2.trim().length) return;
2366
+ if (!isString(timestamp) && !isNumber(timestamp)) return;
2367
+ return {
2368
+ step: parsedStep,
2369
+ json
2370
+ };
2371
+ } catch {
2372
+ return;
2373
+ }
2374
+ }
2375
+ function safeStringify(value) {
2376
+ const seen = /* @__PURE__ */ new WeakSet();
2377
+ try {
2378
+ return JSON.stringify(value, (_key, replacementValue) => {
2379
+ if ("bigint" == typeof replacementValue) return replacementValue.toString();
2380
+ if ("function" == typeof replacementValue || "symbol" == typeof replacementValue) return;
2381
+ if (replacementValue instanceof Date) return replacementValue.toISOString();
2382
+ if (replacementValue instanceof Error) return {
2383
+ name: replacementValue.name,
2384
+ message: replacementValue.message,
2385
+ stack: replacementValue.stack
2386
+ };
2387
+ if (replacementValue && "object" == typeof replacementValue) {
2388
+ if (seen.has(replacementValue)) return "[Circular]";
2389
+ seen.add(replacementValue);
2390
+ }
2391
+ return replacementValue;
2392
+ });
2393
+ } catch {
2394
+ return;
2395
+ }
2396
+ }
2397
+ function getUtf8ByteLength(value) {
2398
+ if ("undefined" != typeof TextEncoder) return new TextEncoder().encode(value).length;
2399
+ const encoded = encodeURIComponent(value);
2400
+ let byteLength = 0;
2401
+ for (let i = 0; i < encoded.length; i++) if ("%" === encoded[i]) {
2402
+ byteLength += 1;
2403
+ i += 2;
2404
+ } else byteLength += 1;
2405
+ return byteLength;
2406
+ }
2407
+ var EXCEPTION_STEP_INTERNAL_FIELDS, RESERVED_EXCEPTION_STEP_KEYS, DEFAULT_EXCEPTION_STEPS_CONFIG, ExceptionStepsBuffer;
2408
+ var init_exception_steps = __esm({
2409
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/exception-steps.mjs"() {
2410
+ init_utils();
2411
+ EXCEPTION_STEP_INTERNAL_FIELDS = {
2412
+ MESSAGE: "$message",
2413
+ TIMESTAMP: "$timestamp"
2414
+ };
2415
+ RESERVED_EXCEPTION_STEP_KEYS = /* @__PURE__ */ new Set([
2416
+ EXCEPTION_STEP_INTERNAL_FIELDS.MESSAGE,
2417
+ EXCEPTION_STEP_INTERNAL_FIELDS.TIMESTAMP
2418
+ ]);
2419
+ DEFAULT_EXCEPTION_STEPS_CONFIG = {
2420
+ enabled: true,
2421
+ max_bytes: 32768
2422
+ };
2423
+ ExceptionStepsBuffer = class {
2424
+ constructor(config) {
2425
+ this._entries = [];
2426
+ this._totalBytes = 0;
2427
+ this._config = resolveExceptionStepsConfig(config);
2428
+ }
2429
+ setConfig(config) {
2430
+ this._config = resolveExceptionStepsConfig(config);
2431
+ this._trimToMaxBytes();
2432
+ }
2433
+ add(step) {
2434
+ const serialized = normalizeAndSerializeStep(step);
2435
+ if (!serialized) return;
2436
+ const bytes = getUtf8ByteLength(serialized.json);
2437
+ if (bytes > this._config.max_bytes) return;
2438
+ this._entries.push({
2439
+ step: serialized.step,
2440
+ bytes
2441
+ });
2442
+ this._totalBytes += bytes;
2443
+ this._trimToMaxBytes();
2444
+ }
2445
+ getAttachable() {
2446
+ return this._entries.map((e) => e.step);
2447
+ }
2448
+ clear() {
2449
+ this._entries = [];
2450
+ this._totalBytes = 0;
2451
+ }
2452
+ size() {
2453
+ return this._entries.length;
2454
+ }
2455
+ _trimToMaxBytes() {
2456
+ while (this._totalBytes > this._config.max_bytes && this._entries.length > 0) {
2457
+ const evicted = this._entries.shift();
2458
+ if (evicted) this._totalBytes -= evicted.bytes;
2459
+ }
2460
+ }
2461
+ };
2462
+ }
2463
+ });
2464
+
2465
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/index.mjs
2275
2466
  var error_tracking_exports = {};
2276
2467
  __export(error_tracking_exports, {
2468
+ DEFAULT_EXCEPTION_STEPS_CONFIG: () => DEFAULT_EXCEPTION_STEPS_CONFIG,
2277
2469
  DOMExceptionCoercer: () => DOMExceptionCoercer,
2470
+ EXCEPTION_STEP_INTERNAL_FIELDS: () => EXCEPTION_STEP_INTERNAL_FIELDS,
2278
2471
  ErrorCoercer: () => ErrorCoercer,
2279
2472
  ErrorEventCoercer: () => ErrorEventCoercer,
2280
2473
  ErrorPropertiesBuilder: () => ErrorPropertiesBuilder,
2281
2474
  EventCoercer: () => EventCoercer,
2475
+ ExceptionStepsBuffer: () => ExceptionStepsBuffer,
2282
2476
  ObjectCoercer: () => ObjectCoercer,
2283
2477
  PrimitiveCoercer: () => PrimitiveCoercer,
2284
2478
  PromiseRejectionEventCoercer: () => PromiseRejectionEventCoercer,
@@ -2288,31 +2482,37 @@ __export(error_tracking_exports, {
2288
2482
  createDefaultStackParser: () => createDefaultStackParser,
2289
2483
  createStackParser: () => createStackParser,
2290
2484
  geckoStackLineParser: () => geckoStackLineParser,
2485
+ getUtf8ByteLength: () => getUtf8ByteLength,
2291
2486
  nodeStackLineParser: () => nodeStackLineParser,
2292
2487
  opera10StackLineParser: () => opera10StackLineParser,
2293
2488
  opera11StackLineParser: () => opera11StackLineParser,
2489
+ resolveExceptionStepsConfig: () => resolveExceptionStepsConfig,
2294
2490
  reverseAndStripFrames: () => reverseAndStripFrames,
2491
+ stripReservedExceptionStepFields: () => stripReservedExceptionStepFields,
2295
2492
  winjsStackLineParser: () => winjsStackLineParser
2296
2493
  });
2297
2494
  var init_error_tracking = __esm({
2298
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2495
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2299
2496
  init_error_properties_builder();
2300
2497
  init_parsers();
2301
2498
  init_coercers();
2302
2499
  init_utils3();
2500
+ init_exception_steps();
2303
2501
  }
2304
2502
  });
2305
2503
 
2306
- // ../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/index.mjs
2504
+ // ../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/index.mjs
2307
2505
  var init_dist = __esm({
2308
- "../../node_modules/.pnpm/@posthog+core@1.25.1/node_modules/@posthog/core/dist/index.mjs"() {
2506
+ "../../node_modules/.pnpm/@posthog+core@1.27.5/node_modules/@posthog/core/dist/index.mjs"() {
2309
2507
  init_featureFlagUtils();
2310
2508
  init_gzip();
2509
+ init_logs_utils();
2311
2510
  init_uuidv7();
2312
2511
  init_validation();
2313
2512
  init_utils();
2314
2513
  init_posthog_core();
2315
2514
  init_posthog_core_stateless();
2515
+ init_tracing_headers();
2316
2516
  init_types();
2317
2517
  init_error_tracking();
2318
2518
  }
@@ -2498,7 +2698,7 @@ function snipLine(line, colno) {
2498
2698
  }
2499
2699
  var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
2500
2700
  var init_context_lines_node = __esm({
2501
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2701
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2502
2702
  init_dist();
2503
2703
  LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
2504
2704
  LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
@@ -2507,8 +2707,23 @@ var init_context_lines_node = __esm({
2507
2707
  MAX_CONTEXTLINES_LINENO = 1e4;
2508
2708
  }
2509
2709
  });
2710
+ function createRelativePathModifier(basePath = process.cwd()) {
2711
+ const isWindows = "\\" === path.sep;
2712
+ const toUnix = (p) => isWindows ? p.replace(/\\/g, "/") : p;
2713
+ const normalizedBase = toUnix(basePath);
2714
+ return async (frames) => {
2715
+ for (const frame of frames) if (!(!frame.filename || frame.filename.startsWith("node:") || frame.filename.startsWith("data:"))) {
2716
+ if (path.isAbsolute(frame.filename)) frame.filename = toUnix(path.relative(normalizedBase, toUnix(frame.filename)));
2717
+ }
2718
+ return frames;
2719
+ };
2720
+ }
2721
+ var init_relative_path_node = __esm({
2722
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/relative-path.node.mjs"() {
2723
+ }
2724
+ });
2510
2725
 
2511
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2726
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2512
2727
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
2513
2728
  let calledFatalError = false;
2514
2729
  return Object.assign((error) => {
@@ -2540,14 +2755,14 @@ function addUnhandledRejectionListener(captureFn) {
2540
2755
  }));
2541
2756
  }
2542
2757
  var init_autocapture = __esm({
2543
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2758
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2544
2759
  }
2545
2760
  });
2546
2761
 
2547
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2762
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2548
2763
  var SHUTDOWN_TIMEOUT, ErrorTracking;
2549
2764
  var init_error_tracking2 = __esm({
2550
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2765
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2551
2766
  init_autocapture();
2552
2767
  init_dist();
2553
2768
  SHUTDOWN_TIMEOUT = 2e3;
@@ -2618,18 +2833,18 @@ var init_error_tracking2 = __esm({
2618
2833
  }
2619
2834
  });
2620
2835
 
2621
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs
2836
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs
2622
2837
  var version;
2623
2838
  var init_version = __esm({
2624
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs"() {
2625
- version = "5.29.1";
2839
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/version.mjs"() {
2840
+ version = "5.30.4";
2626
2841
  }
2627
2842
  });
2628
2843
 
2629
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs
2844
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs
2630
2845
  var FeatureFlagError2;
2631
2846
  var init_types3 = __esm({
2632
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs"() {
2847
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/types.mjs"() {
2633
2848
  FeatureFlagError2 = {
2634
2849
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
2635
2850
  FLAG_MISSING: "flag_missing",
@@ -2639,7 +2854,7 @@ var init_types3 = __esm({
2639
2854
  }
2640
2855
  });
2641
2856
 
2642
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2857
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2643
2858
  async function hashSHA1(text) {
2644
2859
  const subtle = globalThis.crypto?.subtle;
2645
2860
  if (!subtle) throw new Error("SubtleCrypto API not available");
@@ -2648,11 +2863,11 @@ async function hashSHA1(text) {
2648
2863
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
2649
2864
  }
2650
2865
  var init_crypto = __esm({
2651
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2866
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2652
2867
  }
2653
2868
  });
2654
2869
 
2655
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2870
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2656
2871
  async function _hash(key, bucketingValue, salt = "") {
2657
2872
  const hashString = await hashSHA1(`${key}.${bucketingValue}${salt}`);
2658
2873
  return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
@@ -2968,7 +3183,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
2968
3183
  }
2969
3184
  var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
2970
3185
  var init_feature_flags = __esm({
2971
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
3186
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2972
3187
  init_dist();
2973
3188
  init_crypto();
2974
3189
  SIXTY_SECONDS = 6e4;
@@ -3387,7 +3602,7 @@ var init_feature_flags = __esm({
3387
3602
  };
3388
3603
  }
3389
3604
  _requestFeatureFlagDefinitions() {
3390
- const url = `${this.host}/api/feature_flag/local_evaluation?token=${this.projectApiKey}&send_cohorts`;
3605
+ const url = `${this.host}/flags/definitions?token=${this.projectApiKey}&send_cohorts`;
3391
3606
  const options = this.getPersonalApiKeyRequestOptions("GET", this.flagsEtag);
3392
3607
  let abortTimeout = null;
3393
3608
  if (this.timeout && "number" == typeof this.timeout) {
@@ -3420,10 +3635,10 @@ var init_feature_flags = __esm({
3420
3635
  }
3421
3636
  });
3422
3637
 
3423
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs
3638
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs
3424
3639
  var PostHogMemoryStorage;
3425
3640
  var init_storage_memory = __esm({
3426
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3641
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3427
3642
  PostHogMemoryStorage = class {
3428
3643
  getProperty(key) {
3429
3644
  return this._memoryStorage[key];
@@ -3438,10 +3653,21 @@ var init_storage_memory = __esm({
3438
3653
  }
3439
3654
  });
3440
3655
 
3441
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs
3442
- var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, WAITUNTIL_DEBOUNCE_MS, WAITUNTIL_MAX_WAIT_MS, PostHogBackendClient;
3656
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs
3657
+ function normalizeApiKey(value) {
3658
+ return "string" == typeof value ? value.trim() : "";
3659
+ }
3660
+ function normalizePersonalApiKey(value) {
3661
+ const normalizedValue = "string" == typeof value ? value.trim() : "";
3662
+ return normalizedValue || void 0;
3663
+ }
3664
+ function normalizeHost(value) {
3665
+ const normalizedValue = "string" == typeof value ? value.trim() : "";
3666
+ return normalizedValue || DEFAULT_NODE_HOST;
3667
+ }
3668
+ var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, WAITUNTIL_DEBOUNCE_MS, WAITUNTIL_MAX_WAIT_MS, DEFAULT_NODE_HOST, PostHogBackendClient;
3443
3669
  var init_client = __esm({
3444
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs"() {
3670
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/client.mjs"() {
3445
3671
  init_version();
3446
3672
  init_dist();
3447
3673
  init_types3();
@@ -3453,24 +3679,31 @@ var init_client = __esm({
3453
3679
  MAX_CACHE_SIZE = 5e4;
3454
3680
  WAITUNTIL_DEBOUNCE_MS = 50;
3455
3681
  WAITUNTIL_MAX_WAIT_MS = 500;
3682
+ DEFAULT_NODE_HOST = "https://us.i.posthog.com";
3456
3683
  PostHogBackendClient = class extends PostHogCoreStateless {
3457
3684
  constructor(apiKey, options = {}) {
3458
- super(apiKey, options), this._memoryStorage = new PostHogMemoryStorage();
3459
- this.options = options;
3685
+ const normalizedApiKey = normalizeApiKey(apiKey);
3686
+ const normalizedOptions = {
3687
+ ...options,
3688
+ host: normalizeHost(options.host),
3689
+ personalApiKey: normalizePersonalApiKey(options.personalApiKey)
3690
+ };
3691
+ super(normalizedApiKey, normalizedOptions), this._memoryStorage = new PostHogMemoryStorage();
3692
+ this.options = normalizedOptions;
3460
3693
  this.context = this.initializeContext();
3461
- this.options.featureFlagsPollingInterval = "number" == typeof options.featureFlagsPollingInterval ? Math.max(options.featureFlagsPollingInterval, MINIMUM_POLLING_INTERVAL) : THIRTY_SECONDS;
3462
- if ("number" == typeof options.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(options.waitUntilDebounceMs, 0);
3463
- if ("number" == typeof options.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(options.waitUntilMaxWaitMs, 0);
3464
- if (options.personalApiKey) {
3465
- if (options.personalApiKey.includes("phc_")) throw new Error('Your Personal API key is invalid. These keys are prefixed with "phx_" and can be created in PostHog project settings.');
3466
- const shouldEnableLocalEvaluation = false !== options.enableLocalEvaluation;
3694
+ this.options.featureFlagsPollingInterval = "number" == typeof normalizedOptions.featureFlagsPollingInterval ? Math.max(normalizedOptions.featureFlagsPollingInterval, MINIMUM_POLLING_INTERVAL) : THIRTY_SECONDS;
3695
+ if ("number" == typeof normalizedOptions.waitUntilDebounceMs) this.options.waitUntilDebounceMs = Math.max(normalizedOptions.waitUntilDebounceMs, 0);
3696
+ if ("number" == typeof normalizedOptions.waitUntilMaxWaitMs) this.options.waitUntilMaxWaitMs = Math.max(normalizedOptions.waitUntilMaxWaitMs, 0);
3697
+ if (normalizedOptions.personalApiKey) {
3698
+ if (normalizedOptions.personalApiKey.includes("phc_")) throw new Error('Your Personal API key is invalid. These keys are prefixed with "phx_" and can be created in PostHog project settings.');
3699
+ const shouldEnableLocalEvaluation = false !== normalizedOptions.enableLocalEvaluation;
3467
3700
  if (shouldEnableLocalEvaluation) this.featureFlagsPoller = new FeatureFlagsPoller({
3468
3701
  pollingInterval: this.options.featureFlagsPollingInterval,
3469
- personalApiKey: options.personalApiKey,
3470
- projectApiKey: apiKey,
3471
- timeout: options.requestTimeout ?? 1e4,
3702
+ personalApiKey: normalizedOptions.personalApiKey,
3703
+ projectApiKey: normalizedApiKey,
3704
+ timeout: normalizedOptions.requestTimeout ?? 1e4,
3472
3705
  host: this.host,
3473
- fetch: options.fetch,
3706
+ fetch: normalizedOptions.fetch,
3474
3707
  onError: (err) => {
3475
3708
  this._events.emit("error", err);
3476
3709
  },
@@ -3478,13 +3711,13 @@ var init_client = __esm({
3478
3711
  this._events.emit("localEvaluationFlagsLoaded", count);
3479
3712
  },
3480
3713
  customHeaders: this.getCustomHeaders(),
3481
- cacheProvider: options.flagDefinitionCacheProvider,
3482
- strictLocalEvaluation: options.strictLocalEvaluation
3714
+ cacheProvider: normalizedOptions.flagDefinitionCacheProvider,
3715
+ strictLocalEvaluation: normalizedOptions.strictLocalEvaluation
3483
3716
  });
3484
3717
  }
3485
- this.errorTracking = new ErrorTracking(this, options, this._logger);
3718
+ this.errorTracking = new ErrorTracking(this, normalizedOptions, this._logger);
3486
3719
  this.distinctIdHasSentFlagCalls = {};
3487
- this.maxCacheSize = options.maxCacheSize || MAX_CACHE_SIZE;
3720
+ this.maxCacheSize = normalizedOptions.maxCacheSize || MAX_CACHE_SIZE;
3488
3721
  }
3489
3722
  enqueue(type, message2, options) {
3490
3723
  super.enqueue(type, message2, options);
@@ -4167,7 +4400,7 @@ var init_client = __esm({
4167
4400
  });
4168
4401
  var PostHogContext;
4169
4402
  var init_context = __esm({
4170
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
4403
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
4171
4404
  PostHogContext = class {
4172
4405
  constructor() {
4173
4406
  this.storage = new async_hooks.AsyncLocalStorage();
@@ -4197,7 +4430,7 @@ var init_context = __esm({
4197
4430
  }
4198
4431
  });
4199
4432
 
4200
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
4433
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
4201
4434
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
4202
4435
  "error"
4203
4436
  ], sendExceptionsToPostHog = true } = {}) {
@@ -4253,7 +4486,7 @@ function sentryIntegration(_posthog, options) {
4253
4486
  }
4254
4487
  var NAME, PostHogSentryIntegration;
4255
4488
  var init_sentry_integration = __esm({
4256
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
4489
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
4257
4490
  NAME = "posthog-node";
4258
4491
  PostHogSentryIntegration = class {
4259
4492
  static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
@@ -4275,7 +4508,7 @@ var init_sentry_integration = __esm({
4275
4508
  }
4276
4509
  });
4277
4510
 
4278
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs
4511
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs
4279
4512
  function setupExpressErrorHandler(_posthog, app) {
4280
4513
  app.use(posthogErrorHandler(_posthog));
4281
4514
  }
@@ -4307,14 +4540,14 @@ function posthogErrorHandler(posthog) {
4307
4540
  };
4308
4541
  }
4309
4542
  var init_express = __esm({
4310
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
4543
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
4311
4544
  init_error_tracking2();
4312
4545
  }
4313
4546
  });
4314
4547
 
4315
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs
4548
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs
4316
4549
  var init_exports = __esm({
4317
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs"() {
4550
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/exports.mjs"() {
4318
4551
  init_dist();
4319
4552
  init_sentry_integration();
4320
4553
  init_express();
@@ -4322,7 +4555,7 @@ var init_exports = __esm({
4322
4555
  }
4323
4556
  });
4324
4557
 
4325
- // ../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
4558
+ // ../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
4326
4559
  var index_node_exports = {};
4327
4560
  __export(index_node_exports, {
4328
4561
  FeatureFlagError: () => FeatureFlagError,
@@ -4334,9 +4567,10 @@ __export(index_node_exports, {
4334
4567
  });
4335
4568
  var PostHog;
4336
4569
  var init_index_node = __esm({
4337
- "../../node_modules/.pnpm/posthog-node@5.29.1_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
4570
+ "../../node_modules/.pnpm/posthog-node@5.30.4_rxjs@7.8.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
4338
4571
  init_module_node();
4339
4572
  init_context_lines_node();
4573
+ init_relative_path_node();
4340
4574
  init_error_tracking2();
4341
4575
  init_client();
4342
4576
  init_dist();
@@ -4350,7 +4584,8 @@ var init_index_node = __esm({
4350
4584
  new error_tracking_exports.PrimitiveCoercer()
4351
4585
  ], error_tracking_exports.createStackParser("node:javascript", error_tracking_exports.nodeStackLineParser), [
4352
4586
  createModulerModifier(),
4353
- addSourceContext
4587
+ addSourceContext,
4588
+ createRelativePathModifier()
4354
4589
  ]);
4355
4590
  PostHog = class extends PostHogBackendClient {
4356
4591
  getLibraryId() {
@@ -5625,9 +5860,9 @@ var require_dist2 = __commonJS({
5625
5860
  }
5626
5861
  });
5627
5862
 
5628
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/package.json
5863
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/package.json
5629
5864
  var require_package = __commonJS({
5630
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/package.json"(exports$1, module) {
5865
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/package.json"(exports$1, module) {
5631
5866
  module.exports = {
5632
5867
  name: "mixpanel",
5633
5868
  description: "A simple server-side API for mixpanel",
@@ -5637,7 +5872,7 @@ var require_package = __commonJS({
5637
5872
  "api",
5638
5873
  "stats"
5639
5874
  ],
5640
- version: "0.20.0",
5875
+ version: "0.21.0",
5641
5876
  homepage: "https://github.com/mixpanel/mixpanel-node",
5642
5877
  author: "Carl Sverre",
5643
5878
  license: "MIT",
@@ -5677,9 +5912,9 @@ var require_package = __commonJS({
5677
5912
  }
5678
5913
  });
5679
5914
 
5680
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/utils.js
5915
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/utils.js
5681
5916
  var require_utils = __commonJS({
5682
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/utils.js"(exports$1) {
5917
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/utils.js"(exports$1) {
5683
5918
  exports$1.async_all = function(requests, handler, callback) {
5684
5919
  let total = requests.length, errors = null, results = [], done = function(err, result) {
5685
5920
  if (err) {
@@ -5720,9 +5955,9 @@ var require_utils = __commonJS({
5720
5955
  }
5721
5956
  });
5722
5957
 
5723
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/profile_helpers.js
5958
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/profile_helpers.js
5724
5959
  var require_profile_helpers = __commonJS({
5725
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/profile_helpers.js"(exports$1) {
5960
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/profile_helpers.js"(exports$1) {
5726
5961
  var { ensure_timestamp } = require_utils();
5727
5962
  function merge_modifiers(data, modifiers) {
5728
5963
  if (modifiers) {
@@ -5950,9 +6185,9 @@ var require_profile_helpers = __commonJS({
5950
6185
  }
5951
6186
  });
5952
6187
 
5953
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/groups.js
6188
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/groups.js
5954
6189
  var require_groups = __commonJS({
5955
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/groups.js"(exports$1) {
6190
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/groups.js"(exports$1) {
5956
6191
  var { ProfileHelpers } = require_profile_helpers();
5957
6192
  var MixpanelGroups = class extends ProfileHelpers() {
5958
6193
  constructor(mp_instance) {
@@ -6052,9 +6287,9 @@ var require_groups = __commonJS({
6052
6287
  }
6053
6288
  });
6054
6289
 
6055
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/people.js
6290
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/people.js
6056
6291
  var require_people = __commonJS({
6057
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/people.js"(exports$1) {
6292
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/people.js"(exports$1) {
6058
6293
  var { merge_modifiers, ProfileHelpers } = require_profile_helpers();
6059
6294
  var MixpanelPeople = class extends ProfileHelpers() {
6060
6295
  constructor(mp_instance) {
@@ -6379,9 +6614,9 @@ var require_people = __commonJS({
6379
6614
  }
6380
6615
  });
6381
6616
 
6382
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/utils.js
6617
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/utils.js
6383
6618
  var require_utils2 = __commonJS({
6384
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/utils.js"(exports$1, module) {
6619
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/utils.js"(exports$1, module) {
6385
6620
  var crypto3 = __require("crypto");
6386
6621
  var EXPOSURE_EVENT = "$experiment_started";
6387
6622
  var REQUEST_HEADERS = {
@@ -6454,9 +6689,9 @@ var require_utils2 = __commonJS({
6454
6689
  }
6455
6690
  });
6456
6691
 
6457
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/flags.js
6692
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/flags.js
6458
6693
  var require_flags = __commonJS({
6459
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/flags.js"(exports$1, module) {
6694
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/flags.js"(exports$1, module) {
6460
6695
  var https2 = __require("https");
6461
6696
  var packageInfo = require_package();
6462
6697
  var {
@@ -6547,6 +6782,11 @@ var require_flags = __commonJS({
6547
6782
  request.end();
6548
6783
  });
6549
6784
  }
6785
+ /**
6786
+ * No-op by default; subclasses can override to clean up resources
6787
+ */
6788
+ shutdown() {
6789
+ }
6550
6790
  /**
6551
6791
  * Manually tracks a feature flag exposure event to Mixpanel
6552
6792
  * This provides flexibility for reporting individual exposure events when using getAllVariants
@@ -6570,7 +6810,7 @@ var require_flags = __commonJS({
6570
6810
  $experiment_type: "feature_flag",
6571
6811
  "Flag evaluation mode": this.evaluationMode
6572
6812
  };
6573
- if (latencyMs !== null && latencyMs !== void 0) {
6813
+ if (latencyMs != null) {
6574
6814
  properties["Variant fetch latency (ms)"] = latencyMs;
6575
6815
  }
6576
6816
  if (selectedVariant.experiment_id !== void 0) {
@@ -6971,9 +7211,9 @@ var require_logic = __commonJS({
6971
7211
  }
6972
7212
  });
6973
7213
 
6974
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/local_flags.js
7214
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/local_flags.js
6975
7215
  var require_local_flags = __commonJS({
6976
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/local_flags.js"(exports$1, module) {
7216
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/local_flags.js"(exports$1, module) {
6977
7217
  var FeatureFlagsProvider = require_flags();
6978
7218
  var {
6979
7219
  normalizedHash,
@@ -7005,6 +7245,7 @@ var require_local_flags = __commonJS({
7005
7245
  this.config = mergedConfig;
7006
7246
  this.flagDefinitions = /* @__PURE__ */ new Map();
7007
7247
  this.pollingInterval = null;
7248
+ this._initialFetchPromise = null;
7008
7249
  }
7009
7250
  /**
7010
7251
  * Start polling for flag definitions.
@@ -7013,7 +7254,8 @@ var require_local_flags = __commonJS({
7013
7254
  */
7014
7255
  async startPollingForDefinitions() {
7015
7256
  try {
7016
- await this._fetchFlagDefinitions();
7257
+ this._initialFetchPromise = this._fetchFlagDefinitions();
7258
+ await this._initialFetchPromise;
7017
7259
  if (this.config.enable_polling && !this.pollingInterval) {
7018
7260
  this.pollingInterval = setInterval(async () => {
7019
7261
  try {
@@ -7044,6 +7286,20 @@ var require_local_flags = __commonJS({
7044
7286
  );
7045
7287
  }
7046
7288
  }
7289
+ shutdown() {
7290
+ if (this.pollingInterval) {
7291
+ clearInterval(this.pollingInterval);
7292
+ this.pollingInterval = null;
7293
+ }
7294
+ }
7295
+ areFlagsReady() {
7296
+ if (!this._initialFetchPromise) {
7297
+ this.logger?.warn(
7298
+ "areFlagsReady called before startPollingForDefinitions"
7299
+ );
7300
+ }
7301
+ return this._initialFetchPromise ?? Promise.resolve();
7302
+ }
7047
7303
  /**
7048
7304
  * Check if a feature flag is enabled
7049
7305
  * This method is intended only for flags defined as Mixpanel Feature Gates (boolean flags)
@@ -7178,17 +7434,17 @@ var require_local_flags = __commonJS({
7178
7434
  if (!variantKey) {
7179
7435
  return null;
7180
7436
  }
7181
- let selected_variant = this._getMatchingVariant(variantKey, flag);
7182
- if (selected_variant) {
7183
- selected_variant.is_qa_tester = true;
7437
+ let selectedVariant = this._getMatchingVariant(variantKey, flag);
7438
+ if (selectedVariant) {
7439
+ selectedVariant.is_qa_tester = true;
7184
7440
  }
7185
- return selected_variant;
7441
+ return selectedVariant;
7186
7442
  }
7187
7443
  _getAssignedRollout(flag, contextValue, context) {
7188
7444
  for (let index = 0; index < flag.ruleset.rollout.length; index++) {
7189
7445
  const rollout = flag.ruleset.rollout[index];
7190
7446
  let salt;
7191
- if (flag.hash_salt !== null && flag.hash_salt !== void 0) {
7447
+ if (flag.hash_salt != null) {
7192
7448
  salt = flag.key + flag.hash_salt + index.toString();
7193
7449
  } else {
7194
7450
  salt = flag.key + "rollout";
@@ -7210,7 +7466,7 @@ var require_local_flags = __commonJS({
7210
7466
  return { ...variant, is_qa_tester: false };
7211
7467
  }
7212
7468
  }
7213
- const storedSalt = flag.hash_salt !== null && flag.hash_salt !== void 0 ? flag.hash_salt : "";
7469
+ const storedSalt = flag.hash_salt != null ? flag.hash_salt : "";
7214
7470
  const salt = flagKey + storedSalt + "variant";
7215
7471
  const variantHash = normalizedHash(String(contextValue), salt);
7216
7472
  const variants = flag.ruleset.variants.map((v) => ({ ...v }));
@@ -7288,9 +7544,9 @@ var require_local_flags = __commonJS({
7288
7544
  }
7289
7545
  });
7290
7546
 
7291
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/remote_flags.js
7547
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/remote_flags.js
7292
7548
  var require_remote_flags = __commonJS({
7293
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/remote_flags.js"(exports$1, module) {
7549
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/remote_flags.js"(exports$1, module) {
7294
7550
  var FeatureFlagsProvider = require_flags();
7295
7551
  var RemoteFeatureFlagsProvider = class extends FeatureFlagsProvider {
7296
7552
  /**
@@ -7423,9 +7679,9 @@ var require_remote_flags = __commonJS({
7423
7679
  }
7424
7680
  });
7425
7681
 
7426
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/index.js
7682
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/index.js
7427
7683
  var require_flags2 = __commonJS({
7428
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/flags/index.js"(exports$1, module) {
7684
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/flags/index.js"(exports$1, module) {
7429
7685
  var LocalFeatureFlagsProvider = require_local_flags();
7430
7686
  var RemoteFeatureFlagsProvider = require_remote_flags();
7431
7687
  module.exports = {
@@ -7435,9 +7691,9 @@ var require_flags2 = __commonJS({
7435
7691
  }
7436
7692
  });
7437
7693
 
7438
- // ../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/mixpanel-node.js
7694
+ // ../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/mixpanel-node.js
7439
7695
  var require_mixpanel_node = __commonJS({
7440
- "../../node_modules/.pnpm/mixpanel@0.20.0/node_modules/mixpanel/lib/mixpanel-node.js"(exports$1, module) {
7696
+ "../../node_modules/.pnpm/mixpanel@0.21.0/node_modules/mixpanel/lib/mixpanel-node.js"(exports$1, module) {
7441
7697
  var querystring = __require("querystring");
7442
7698
  var Buffer4 = __require("buffer").Buffer;
7443
7699
  var http2 = __require("http");
@@ -7906,10 +8162,10 @@ var init_tslib_es6 = __esm({
7906
8162
  }
7907
8163
  });
7908
8164
 
7909
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
8165
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
7910
8166
  var IdentifyOperation, SpecialEventType;
7911
8167
  var init_event = __esm({
7912
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
8168
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
7913
8169
  (function(IdentifyOperation3) {
7914
8170
  IdentifyOperation3["SET"] = "$set";
7915
8171
  IdentifyOperation3["SET_ONCE"] = "$setOnce";
@@ -7930,10 +8186,10 @@ var init_event = __esm({
7930
8186
  }
7931
8187
  });
7932
8188
 
7933
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
8189
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
7934
8190
  var UNSET_VALUE, AMPLITUDE_PREFIX, STORAGE_PREFIX, DEFAULT_INSTANCE_NAME, AMPLITUDE_SERVER_URL, EU_AMPLITUDE_SERVER_URL, AMPLITUDE_BATCH_SERVER_URL, EU_AMPLITUDE_BATCH_SERVER_URL;
7935
8191
  var init_constants = __esm({
7936
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
8192
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
7937
8193
  UNSET_VALUE = "-";
7938
8194
  AMPLITUDE_PREFIX = "AMP";
7939
8195
  STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
@@ -7945,10 +8201,10 @@ var init_constants = __esm({
7945
8201
  }
7946
8202
  });
7947
8203
 
7948
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
8204
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
7949
8205
  var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
7950
8206
  var init_valid_properties = __esm({
7951
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
8207
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
7952
8208
  init_tslib_es6();
7953
8209
  MAX_PROPERTY_KEYS = 1e3;
7954
8210
  isValidObject = function(properties) {
@@ -8003,10 +8259,10 @@ var init_valid_properties = __esm({
8003
8259
  }
8004
8260
  });
8005
8261
 
8006
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js
8262
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js
8007
8263
  var Identify, IdentifyOperation2, OrderedIdentifyOperations;
8008
8264
  var init_identify = __esm({
8009
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
8265
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
8010
8266
  init_tslib_es6();
8011
8267
  init_constants();
8012
8268
  init_valid_properties();
@@ -8117,10 +8373,10 @@ var init_identify = __esm({
8117
8373
  }
8118
8374
  });
8119
8375
 
8120
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
8376
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
8121
8377
  var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
8122
8378
  var init_messages = __esm({
8123
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
8379
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
8124
8380
  SUCCESS_MESSAGE = "Event tracked successfully";
8125
8381
  UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
8126
8382
  MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
@@ -8131,10 +8387,10 @@ var init_messages = __esm({
8131
8387
  }
8132
8388
  });
8133
8389
 
8134
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
8390
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
8135
8391
  var Status;
8136
8392
  var init_status = __esm({
8137
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
8393
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
8138
8394
  (function(Status2) {
8139
8395
  Status2["Unknown"] = "unknown";
8140
8396
  Status2["Skipped"] = "skipped";
@@ -8149,10 +8405,10 @@ var init_status = __esm({
8149
8405
  }
8150
8406
  });
8151
8407
 
8152
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
8408
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
8153
8409
  var buildResult;
8154
8410
  var init_result_builder = __esm({
8155
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
8411
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
8156
8412
  init_status();
8157
8413
  buildResult = function(event, code, message2) {
8158
8414
  if (code === void 0) {
@@ -8166,10 +8422,10 @@ var init_result_builder = __esm({
8166
8422
  }
8167
8423
  });
8168
8424
 
8169
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
8425
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
8170
8426
  var getGlobalScope;
8171
8427
  var init_global_scope = __esm({
8172
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
8428
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
8173
8429
  getGlobalScope = function() {
8174
8430
  var ampIntegrationContextName = "ampIntegrationContext";
8175
8431
  if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
@@ -8192,10 +8448,10 @@ var init_global_scope = __esm({
8192
8448
  }
8193
8449
  });
8194
8450
 
8195
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
8451
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
8196
8452
  var legacyUUID, hex, UUID2;
8197
8453
  var init_uuid = __esm({
8198
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
8454
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
8199
8455
  init_tslib_es6();
8200
8456
  init_global_scope();
8201
8457
  legacyUUID = function(a) {
@@ -8239,10 +8495,10 @@ var init_uuid = __esm({
8239
8495
  }
8240
8496
  });
8241
8497
 
8242
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
8498
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
8243
8499
  var Timeline;
8244
8500
  var init_timeline = __esm({
8245
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
8501
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
8246
8502
  init_tslib_es6();
8247
8503
  init_result_builder();
8248
8504
  init_uuid();
@@ -8605,10 +8861,10 @@ var init_timeline = __esm({
8605
8861
  }
8606
8862
  });
8607
8863
 
8608
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8864
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8609
8865
  var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
8610
8866
  var init_event_builder = __esm({
8611
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8867
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8612
8868
  init_tslib_es6();
8613
8869
  init_identify();
8614
8870
  init_event();
@@ -8638,10 +8894,10 @@ var init_event_builder = __esm({
8638
8894
  }
8639
8895
  });
8640
8896
 
8641
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8897
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8642
8898
  var returnWrapper;
8643
8899
  var init_return_wrapper = __esm({
8644
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8900
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8645
8901
  returnWrapper = function(awaitable) {
8646
8902
  return {
8647
8903
  promise: awaitable || Promise.resolve()
@@ -8650,10 +8906,10 @@ var init_return_wrapper = __esm({
8650
8906
  }
8651
8907
  });
8652
8908
 
8653
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8909
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8654
8910
  var AmplitudeCore;
8655
8911
  var init_core_client = __esm({
8656
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8912
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8657
8913
  init_tslib_es6();
8658
8914
  init_event();
8659
8915
  init_identify();
@@ -8925,10 +9181,10 @@ var init_core_client = __esm({
8925
9181
  }
8926
9182
  });
8927
9183
 
8928
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
9184
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
8929
9185
  var Revenue, RevenueProperty;
8930
9186
  var init_revenue = __esm({
8931
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
9187
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
8932
9188
  init_tslib_es6();
8933
9189
  init_valid_properties();
8934
9190
  Revenue = /** @class */
@@ -9009,10 +9265,10 @@ var init_revenue = __esm({
9009
9265
  }
9010
9266
  });
9011
9267
 
9012
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
9268
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
9013
9269
  var chunk;
9014
9270
  var init_chunk = __esm({
9015
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
9271
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
9016
9272
  chunk = function(arr, size) {
9017
9273
  var chunkSize = Math.max(size, 1);
9018
9274
  return arr.reduce(function(chunks, element, index) {
@@ -9027,10 +9283,10 @@ var init_chunk = __esm({
9027
9283
  }
9028
9284
  });
9029
9285
 
9030
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
9286
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
9031
9287
  var LogLevel;
9032
9288
  var init_loglevel = __esm({
9033
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
9289
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
9034
9290
  (function(LogLevel2) {
9035
9291
  LogLevel2[LogLevel2["None"] = 0] = "None";
9036
9292
  LogLevel2[LogLevel2["Error"] = 1] = "Error";
@@ -9041,10 +9297,10 @@ var init_loglevel = __esm({
9041
9297
  }
9042
9298
  });
9043
9299
 
9044
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js
9300
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js
9045
9301
  var PREFIX, Logger;
9046
9302
  var init_logger2 = __esm({
9047
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
9303
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
9048
9304
  init_loglevel();
9049
9305
  PREFIX = "Amplitude Logger ";
9050
9306
  Logger = /** @class */
@@ -9106,10 +9362,10 @@ var init_logger2 = __esm({
9106
9362
  }
9107
9363
  });
9108
9364
 
9109
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/config.js
9365
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/config.js
9110
9366
  var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
9111
9367
  var init_config = __esm({
9112
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
9368
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
9113
9369
  init_constants();
9114
9370
  init_logger2();
9115
9371
  init_loglevel();
@@ -9210,19 +9466,19 @@ var init_config = __esm({
9210
9466
  }
9211
9467
  });
9212
9468
 
9213
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
9469
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
9214
9470
  function isSuccessStatusCode(code) {
9215
9471
  return code >= 200 && code < 300;
9216
9472
  }
9217
9473
  var init_status_code = __esm({
9218
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
9474
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
9219
9475
  }
9220
9476
  });
9221
9477
 
9222
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
9478
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
9223
9479
  var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
9224
9480
  var init_debug = __esm({
9225
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
9481
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
9226
9482
  init_tslib_es6();
9227
9483
  init_loglevel();
9228
9484
  getStacktrace = function(ignoreDepth) {
@@ -9340,7 +9596,7 @@ var init_debug = __esm({
9340
9596
  }
9341
9597
  });
9342
9598
 
9343
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
9599
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
9344
9600
  function getErrorMessage(error) {
9345
9601
  if (error instanceof Error)
9346
9602
  return error.message;
@@ -9358,7 +9614,7 @@ function getResponseBodyString(res) {
9358
9614
  }
9359
9615
  var DEFAULT_AMPLITUDE_SERVER_URLS, shouldCompressUploadBodyForRequest, Destination;
9360
9616
  var init_destination = __esm({
9361
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
9617
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
9362
9618
  init_tslib_es6();
9363
9619
  init_status();
9364
9620
  init_messages();
@@ -9765,10 +10021,10 @@ var init_destination = __esm({
9765
10021
  }
9766
10022
  });
9767
10023
 
9768
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
10024
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9769
10025
  var BaseTransport;
9770
10026
  var init_base2 = __esm({
9771
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
10027
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9772
10028
  init_status();
9773
10029
  init_status_code();
9774
10030
  BaseTransport = /** @class */
@@ -9870,10 +10126,10 @@ var init_base2 = __esm({
9870
10126
  }
9871
10127
  });
9872
10128
 
9873
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
10129
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
9874
10130
  var ServerZone;
9875
10131
  var init_server_zone = __esm({
9876
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
10132
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
9877
10133
  (function(ServerZone2) {
9878
10134
  ServerZone2["US"] = "US";
9879
10135
  ServerZone2["EU"] = "EU";
@@ -9882,17 +10138,17 @@ var init_server_zone = __esm({
9882
10138
  }
9883
10139
  });
9884
10140
 
9885
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
10141
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
9886
10142
  var OfflineDisabled;
9887
10143
  var init_offline = __esm({
9888
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
10144
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
9889
10145
  OfflineDisabled = null;
9890
10146
  }
9891
10147
  });
9892
10148
 
9893
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/index.js
10149
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/index.js
9894
10150
  var init_esm = __esm({
9895
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.44.1/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
10151
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.47.1/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
9896
10152
  init_core_client();
9897
10153
  init_identify();
9898
10154
  init_revenue();
@@ -9909,18 +10165,18 @@ var init_esm = __esm({
9909
10165
  }
9910
10166
  });
9911
10167
 
9912
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/version.js
10168
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/version.js
9913
10169
  var VERSION;
9914
10170
  var init_version2 = __esm({
9915
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
9916
- VERSION = "1.5.52";
10171
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
10172
+ VERSION = "1.5.56";
9917
10173
  }
9918
10174
  });
9919
10175
 
9920
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
10176
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
9921
10177
  var Context;
9922
10178
  var init_context2 = __esm({
9923
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
10179
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
9924
10180
  init_tslib_es6();
9925
10181
  init_esm();
9926
10182
  init_version2();
@@ -9955,7 +10211,7 @@ var init_context2 = __esm({
9955
10211
  });
9956
10212
  var Http;
9957
10213
  var init_http = __esm({
9958
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
10214
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
9959
10215
  init_tslib_es6();
9960
10216
  init_esm();
9961
10217
  Http = /** @class */
@@ -10017,10 +10273,10 @@ var init_http = __esm({
10017
10273
  }
10018
10274
  });
10019
10275
 
10020
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/config.js
10276
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/config.js
10021
10277
  var NodeConfig, useNodeConfig;
10022
10278
  var init_config2 = __esm({
10023
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
10279
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
10024
10280
  init_tslib_es6();
10025
10281
  init_esm();
10026
10282
  init_http();
@@ -10038,10 +10294,10 @@ var init_config2 = __esm({
10038
10294
  }
10039
10295
  });
10040
10296
 
10041
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
10297
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
10042
10298
  var AmplitudeNode, createInstance, node_client_default;
10043
10299
  var init_node_client = __esm({
10044
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
10300
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
10045
10301
  init_tslib_es6();
10046
10302
  init_esm();
10047
10303
  init_context2();
@@ -10115,7 +10371,7 @@ var init_node_client = __esm({
10115
10371
  }
10116
10372
  });
10117
10373
 
10118
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/types.js
10374
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/types.js
10119
10375
  var types_exports = {};
10120
10376
  __export(types_exports, {
10121
10377
  IdentifyOperation: () => IdentifyOperation,
@@ -10126,12 +10382,12 @@ __export(types_exports, {
10126
10382
  SpecialEventType: () => SpecialEventType
10127
10383
  });
10128
10384
  var init_types4 = __esm({
10129
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
10385
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
10130
10386
  init_esm();
10131
10387
  }
10132
10388
  });
10133
10389
 
10134
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/index.js
10390
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/index.js
10135
10391
  var esm_exports = {};
10136
10392
  __export(esm_exports, {
10137
10393
  Identify: () => Identify,
@@ -10152,7 +10408,7 @@ __export(esm_exports, {
10152
10408
  });
10153
10409
  var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
10154
10410
  var init_esm2 = __esm({
10155
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.52/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
10411
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.56/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
10156
10412
  init_node_client();
10157
10413
  init_node_client();
10158
10414
  init_esm();