autotel-subscribers 16.0.1 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -86,11 +86,11 @@ function normalizeWindowsPath(path) {
86
86
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
87
87
  }
88
88
  var init_module_node = __esm({
89
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
89
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
90
90
  }
91
91
  });
92
92
 
93
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
93
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/featureFlagUtils.mjs
94
94
  function getFlagDetailFromFlagAndPayload(key, value, payload) {
95
95
  return {
96
96
  key,
@@ -107,7 +107,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
107
107
  }
108
108
  var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
109
109
  var init_featureFlagUtils = __esm({
110
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
110
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
111
111
  normalizeFlagsResponse = (flagsResponse) => {
112
112
  if ("flags" in flagsResponse) {
113
113
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -165,10 +165,10 @@ var init_featureFlagUtils = __esm({
165
165
  }
166
166
  });
167
167
 
168
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
168
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
169
169
  var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
170
170
  var init_uuidv7 = __esm({
171
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
171
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
172
172
  DIGITS = "0123456789abcdef";
173
173
  UUID = class _UUID {
174
174
  constructor(bytes) {
@@ -329,10 +329,10 @@ var init_uuidv7 = __esm({
329
329
  }
330
330
  });
331
331
 
332
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
332
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bot-detection.mjs
333
333
  var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
334
334
  var init_bot_detection = __esm({
335
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
335
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
336
336
  DEFAULT_BLOCKED_UA_STRS = [
337
337
  "amazonbot",
338
338
  "amazonproductbot",
@@ -423,14 +423,16 @@ var init_bot_detection = __esm({
423
423
  }
424
424
  });
425
425
 
426
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/types.mjs
427
- var types_PostHogPersistedProperty;
426
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/types.mjs
427
+ var types_PostHogPersistedProperty, FeatureFlagError;
428
428
  var init_types = __esm({
429
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/types.mjs"() {
429
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/types.mjs"() {
430
430
  types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
431
431
  PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
432
432
  PostHogPersistedProperty["DistinctId"] = "distinct_id";
433
433
  PostHogPersistedProperty["Props"] = "props";
434
+ PostHogPersistedProperty["EnablePersonProcessing"] = "enable_person_processing";
435
+ PostHogPersistedProperty["PersonMode"] = "person_mode";
434
436
  PostHogPersistedProperty["FeatureFlagDetails"] = "feature_flag_details";
435
437
  PostHogPersistedProperty["FeatureFlags"] = "feature_flags";
436
438
  PostHogPersistedProperty["FeatureFlagPayloads"] = "feature_flag_payloads";
@@ -455,16 +457,25 @@ var init_types = __esm({
455
457
  PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
456
458
  return PostHogPersistedProperty;
457
459
  })({});
460
+ FeatureFlagError = {
461
+ ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
462
+ FLAG_MISSING: "flag_missing",
463
+ QUOTA_LIMITED: "quota_limited",
464
+ TIMEOUT: "timeout",
465
+ CONNECTION_ERROR: "connection_error",
466
+ UNKNOWN_ERROR: "unknown_error",
467
+ apiError: (status) => `api_error_${status}`
468
+ };
458
469
  }
459
470
  });
460
471
 
461
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
472
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/string-utils.mjs
462
473
  var init_string_utils = __esm({
463
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
474
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
464
475
  }
465
476
  });
466
477
 
467
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
478
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/type-utils.mjs
468
479
  function isPrimitive(value) {
469
480
  return null === value || "object" != typeof value;
470
481
  }
@@ -489,7 +500,7 @@ function isInstanceOf(candidate, base) {
489
500
  }
490
501
  var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
491
502
  var init_type_utils = __esm({
492
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
503
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
493
504
  init_types();
494
505
  init_string_utils();
495
506
  nativeIsArray = Array.isArray;
@@ -503,12 +514,12 @@ var init_type_utils = __esm({
503
514
  isUndefined = (x) => void 0 === x;
504
515
  isString = (x) => "[object String]" == type_utils_toString.call(x);
505
516
  isEmptyString = (x) => isString(x) && 0 === x.trim().length;
506
- isNumber = (x) => "[object Number]" == type_utils_toString.call(x);
517
+ isNumber = (x) => "[object Number]" == type_utils_toString.call(x) && x === x;
507
518
  isPlainError = (x) => x instanceof Error;
508
519
  }
509
520
  });
510
521
 
511
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
522
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/number-utils.mjs
512
523
  function clampToRange(value, min, max, logger, fallbackValue) {
513
524
  if (min > max) {
514
525
  logger.warn("min cannot be greater than max.");
@@ -526,15 +537,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
526
537
  return clampToRange(max, min, max, logger);
527
538
  }
528
539
  var init_number_utils = __esm({
529
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
540
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
530
541
  init_type_utils();
531
542
  }
532
543
  });
533
544
 
534
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
545
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
535
546
  var ONE_DAY_IN_MS, BucketedRateLimiter;
536
547
  var init_bucketed_rate_limiter = __esm({
537
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
548
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
538
549
  init_number_utils();
539
550
  ONE_DAY_IN_MS = 864e5;
540
551
  BucketedRateLimiter = class {
@@ -578,10 +589,10 @@ var init_bucketed_rate_limiter = __esm({
578
589
  }
579
590
  });
580
591
 
581
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
592
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/promise-queue.mjs
582
593
  var PromiseQueue;
583
594
  var init_promise_queue = __esm({
584
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
595
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
585
596
  init_uuidv7();
586
597
  PromiseQueue = class {
587
598
  add(promise) {
@@ -612,7 +623,7 @@ var init_promise_queue = __esm({
612
623
  }
613
624
  });
614
625
 
615
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/logger.mjs
626
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/logger.mjs
616
627
  function createConsole(consoleLike = console) {
617
628
  const lockedMethods = {
618
629
  log: consoleLike.log.bind(consoleLike),
@@ -627,7 +638,7 @@ function createLogger(prefix, maybeCall = passThrough) {
627
638
  }
628
639
  var _createLogger, passThrough;
629
640
  var init_logger = __esm({
630
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
641
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/logger.mjs"() {
631
642
  _createLogger = (prefix, maybeCall, consoleLike) => {
632
643
  function _log(level, ...args) {
633
644
  maybeCall(() => {
@@ -656,10 +667,10 @@ var init_logger = __esm({
656
667
  }
657
668
  });
658
669
 
659
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
670
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
660
671
  var MOBILE, TABLET, GENERIC;
661
672
  var init_user_agent_utils = __esm({
662
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
673
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
663
674
  init_string_utils();
664
675
  init_type_utils();
665
676
  MOBILE = "Mobile";
@@ -670,7 +681,7 @@ var init_user_agent_utils = __esm({
670
681
  }
671
682
  });
672
683
 
673
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/index.mjs
684
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/index.mjs
674
685
  function assert(truthyValue, message2) {
675
686
  if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message2);
676
687
  }
@@ -714,7 +725,7 @@ function allSettled(promises) {
714
725
  }
715
726
  var STRING_FORMAT, isError;
716
727
  var init_utils = __esm({
717
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
728
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/index.mjs"() {
718
729
  init_bot_detection();
719
730
  init_bucketed_rate_limiter();
720
731
  init_number_utils();
@@ -728,10 +739,10 @@ var init_utils = __esm({
728
739
  }
729
740
  });
730
741
 
731
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/eventemitter.mjs
742
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/eventemitter.mjs
732
743
  var SimpleEventEmitter;
733
744
  var init_eventemitter = __esm({
734
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
745
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/eventemitter.mjs"() {
735
746
  SimpleEventEmitter = class {
736
747
  constructor() {
737
748
  this.events = {};
@@ -752,7 +763,7 @@ var init_eventemitter = __esm({
752
763
  }
753
764
  });
754
765
 
755
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/gzip.mjs
766
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/gzip.mjs
756
767
  function isGzipSupported() {
757
768
  return "CompressionStream" in globalThis;
758
769
  }
@@ -771,11 +782,11 @@ async function gzipCompress(input, isDebug = true) {
771
782
  }
772
783
  }
773
784
  var init_gzip = __esm({
774
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/gzip.mjs"() {
785
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/gzip.mjs"() {
775
786
  }
776
787
  });
777
788
 
778
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
789
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
779
790
  async function logFlushError(err) {
780
791
  if (err instanceof PostHogFetchHttpError) {
781
792
  let text = "";
@@ -795,7 +806,7 @@ function isPostHogFetchContentTooLargeError(err) {
795
806
  }
796
807
  var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
797
808
  var init_posthog_core_stateless = __esm({
798
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
809
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
799
810
  init_eventemitter();
800
811
  init_featureFlagUtils();
801
812
  init_gzip();
@@ -851,10 +862,11 @@ var init_posthog_core_stateless = __esm({
851
862
  this.disableGeoip = options.disableGeoip ?? true;
852
863
  this.disabled = options.disabled ?? false;
853
864
  this.historicalMigration = options?.historicalMigration ?? false;
854
- this.evaluationEnvironments = options?.evaluationEnvironments;
855
865
  this._initPromise = Promise.resolve();
856
866
  this._isInitialized = true;
857
867
  this._logger = createLogger("[PostHog]", this.logMsgIfDebug.bind(this));
868
+ this.evaluationContexts = options?.evaluationContexts ?? options?.evaluationEnvironments;
869
+ if (options?.evaluationEnvironments && !options?.evaluationContexts) this._logger.warn("evaluationEnvironments is deprecated. Use evaluationContexts instead. This property will be removed in a future version.");
858
870
  this.disableCompression = !isGzipSupported() || (options?.disableCompression ?? false);
859
871
  }
860
872
  logMsgIfDebug(fn) {
@@ -1029,7 +1041,7 @@ var init_posthog_core_stateless = __esm({
1029
1041
  group_properties: groupProperties,
1030
1042
  ...extraPayload
1031
1043
  };
1032
- if (this.evaluationEnvironments && this.evaluationEnvironments.length > 0) requestData.evaluation_environments = this.evaluationEnvironments;
1044
+ if (this.evaluationContexts && this.evaluationContexts.length > 0) requestData.evaluation_contexts = this.evaluationContexts;
1033
1045
  const fetchOptions = {
1034
1046
  method: "POST",
1035
1047
  headers: {
@@ -1041,10 +1053,35 @@ var init_posthog_core_stateless = __esm({
1041
1053
  this._logger.info("Flags URL", url);
1042
1054
  return this.fetchWithRetry(url, fetchOptions, {
1043
1055
  retryCount: 0
1044
- }, this.featureFlagsRequestTimeoutMs).then((response) => response.json()).then((response) => normalizeFlagsResponse(response)).catch((error) => {
1056
+ }, this.featureFlagsRequestTimeoutMs).then((response) => response.json()).then((response) => ({
1057
+ success: true,
1058
+ response: normalizeFlagsResponse(response)
1059
+ })).catch((error) => {
1045
1060
  this._events.emit("error", error);
1061
+ return {
1062
+ success: false,
1063
+ error: this.categorizeRequestError(error)
1064
+ };
1046
1065
  });
1047
1066
  }
1067
+ categorizeRequestError(error) {
1068
+ if (error instanceof PostHogFetchHttpError) return {
1069
+ type: "api_error",
1070
+ statusCode: error.status
1071
+ };
1072
+ if (error instanceof PostHogFetchNetworkError) {
1073
+ const cause = error.error;
1074
+ if (cause instanceof Error && ("AbortError" === cause.name || "TimeoutError" === cause.name)) return {
1075
+ type: "timeout"
1076
+ };
1077
+ return {
1078
+ type: "connection_error"
1079
+ };
1080
+ }
1081
+ return {
1082
+ type: "unknown_error"
1083
+ };
1084
+ }
1048
1085
  async getFeatureFlagStateless(key, distinctId, groups = {}, personProperties = {}, groupProperties = {}, disableGeoip) {
1049
1086
  await this._initPromise;
1050
1087
  const flagDetailResponse = await this.getFeatureFlagDetailStateless(key, distinctId, groups, personProperties, groupProperties, disableGeoip);
@@ -1111,8 +1148,9 @@ var init_posthog_core_stateless = __esm({
1111
1148
  const extraPayload = {};
1112
1149
  if (disableGeoip ?? this.disableGeoip) extraPayload["geoip_disable"] = true;
1113
1150
  if (flagKeysToEvaluate) extraPayload["flag_keys_to_evaluate"] = flagKeysToEvaluate;
1114
- const flagsResponse = await this.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload);
1115
- if (void 0 === flagsResponse) return;
1151
+ const result = await this.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload);
1152
+ if (!result.success) return;
1153
+ const flagsResponse = result.response;
1116
1154
  if (flagsResponse.errorsWhileComputingFlags) console.error("[FEATURE FLAGS] Error while computing feature flags, some flags may be missing or incorrect. Learn more at https://posthog.com/docs/feature-flags/best-practices");
1117
1155
  if (flagsResponse.quotaLimited?.includes("feature_flags")) {
1118
1156
  console.warn("[FEATURE FLAGS] Feature flags quota limit exceeded - feature flags unavailable. Learn more about billing limits at https://posthog.com/docs/billing/limits-alerts");
@@ -1179,10 +1217,15 @@ var init_posthog_core_stateless = __esm({
1179
1217
  this.setPersistedProperty(types_PostHogPersistedProperty.Props, this.props);
1180
1218
  });
1181
1219
  }
1220
+ processBeforeEnqueue(message2) {
1221
+ return message2;
1222
+ }
1182
1223
  enqueue(type, _message, options) {
1183
1224
  this.wrap(() => {
1184
1225
  if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
1185
- const message2 = this.prepareMessage(type, _message, options);
1226
+ let message2 = this.prepareMessage(type, _message, options);
1227
+ message2 = this.processBeforeEnqueue(message2);
1228
+ if (null === message2) return;
1186
1229
  const queue = this.getPersistedProperty(types_PostHogPersistedProperty.Queue) || [];
1187
1230
  if (queue.length >= this.maxQueueSize) {
1188
1231
  queue.shift();
@@ -1201,10 +1244,13 @@ var init_posthog_core_stateless = __esm({
1201
1244
  if (this.disabled) return void this._logger.warn("The client is disabled");
1202
1245
  if (!this._isInitialized) await this._initPromise;
1203
1246
  if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
1247
+ let message2 = this.prepareMessage(type, _message, options);
1248
+ message2 = this.processBeforeEnqueue(message2);
1249
+ if (null === message2) return;
1204
1250
  const data = {
1205
1251
  api_key: this.apiKey,
1206
1252
  batch: [
1207
- this.prepareMessage(type, _message, options)
1253
+ message2
1208
1254
  ],
1209
1255
  sent_at: currentISOTime()
1210
1256
  };
@@ -1413,9 +1459,9 @@ var init_posthog_core_stateless = __esm({
1413
1459
  }
1414
1460
  });
1415
1461
 
1416
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core.mjs
1462
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core.mjs
1417
1463
  var init_posthog_core = __esm({
1418
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1464
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1419
1465
  init_featureFlagUtils();
1420
1466
  init_types();
1421
1467
  init_posthog_core_stateless();
@@ -1424,7 +1470,7 @@ var init_posthog_core = __esm({
1424
1470
  }
1425
1471
  });
1426
1472
 
1427
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1473
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1428
1474
  function getFilenameToChunkIdMap(stackParser) {
1429
1475
  const chunkIdMap = globalThis._posthogChunkIds;
1430
1476
  if (!chunkIdMap) return;
@@ -1457,14 +1503,14 @@ function getFilenameToChunkIdMap(stackParser) {
1457
1503
  }
1458
1504
  var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
1459
1505
  var init_chunk_ids = __esm({
1460
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1506
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1461
1507
  }
1462
1508
  });
1463
1509
 
1464
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1510
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1465
1511
  var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
1466
1512
  var init_error_properties_builder = __esm({
1467
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1513
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1468
1514
  init_utils();
1469
1515
  init_chunk_ids();
1470
1516
  MAX_CAUSE_RECURSION = 4;
@@ -1578,7 +1624,7 @@ var init_error_properties_builder = __esm({
1578
1624
  }
1579
1625
  });
1580
1626
 
1581
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1627
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1582
1628
  function createFrame(platform, filename, func, lineno, colno) {
1583
1629
  const frame = {
1584
1630
  platform,
@@ -1592,16 +1638,16 @@ function createFrame(platform, filename, func, lineno, colno) {
1592
1638
  }
1593
1639
  var UNKNOWN_FUNCTION;
1594
1640
  var init_base = __esm({
1595
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1641
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1596
1642
  init_utils();
1597
1643
  UNKNOWN_FUNCTION = "?";
1598
1644
  }
1599
1645
  });
1600
1646
 
1601
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1647
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1602
1648
  var extractSafariExtensionDetails;
1603
1649
  var init_safari = __esm({
1604
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1650
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1605
1651
  init_base();
1606
1652
  extractSafariExtensionDetails = (func, filename) => {
1607
1653
  const isSafariExtension = -1 !== func.indexOf("safari-extension");
@@ -1617,10 +1663,10 @@ var init_safari = __esm({
1617
1663
  }
1618
1664
  });
1619
1665
 
1620
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1666
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1621
1667
  var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
1622
1668
  var init_chrome = __esm({
1623
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1669
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1624
1670
  init_base();
1625
1671
  init_safari();
1626
1672
  chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
@@ -1650,10 +1696,10 @@ var init_chrome = __esm({
1650
1696
  }
1651
1697
  });
1652
1698
 
1653
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1699
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1654
1700
  var geckoREgex, geckoEvalRegex, geckoStackLineParser;
1655
1701
  var init_gecko = __esm({
1656
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1702
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1657
1703
  init_base();
1658
1704
  init_safari();
1659
1705
  geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
@@ -1680,10 +1726,10 @@ var init_gecko = __esm({
1680
1726
  }
1681
1727
  });
1682
1728
 
1683
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1729
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1684
1730
  var winjsRegex, winjsStackLineParser;
1685
1731
  var init_winjs = __esm({
1686
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1732
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1687
1733
  init_base();
1688
1734
  winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
1689
1735
  winjsStackLineParser = (line, platform) => {
@@ -1693,10 +1739,10 @@ var init_winjs = __esm({
1693
1739
  }
1694
1740
  });
1695
1741
 
1696
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1742
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1697
1743
  var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
1698
1744
  var init_opera = __esm({
1699
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1745
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1700
1746
  init_base();
1701
1747
  opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
1702
1748
  opera10StackLineParser = (line, platform) => {
@@ -1711,7 +1757,7 @@ var init_opera = __esm({
1711
1757
  }
1712
1758
  });
1713
1759
 
1714
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1760
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1715
1761
  function filenameIsInApp(filename, isNative = false) {
1716
1762
  const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
1717
1763
  return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
@@ -1721,7 +1767,7 @@ function _parseIntOrUndefined(input) {
1721
1767
  }
1722
1768
  var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
1723
1769
  var init_node = __esm({
1724
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1770
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1725
1771
  init_base();
1726
1772
  FILENAME_MATCH = /^\s*[-]{4,}$/;
1727
1773
  FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
@@ -1782,7 +1828,7 @@ var init_node = __esm({
1782
1828
  }
1783
1829
  });
1784
1830
 
1785
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1831
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1786
1832
  function reverseAndStripFrames(stack) {
1787
1833
  if (!stack.length) return [];
1788
1834
  const localStack = Array.from(stack);
@@ -1823,7 +1869,7 @@ function createStackParser(platform, ...parsers) {
1823
1869
  }
1824
1870
  var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
1825
1871
  var init_parsers = __esm({
1826
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1872
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1827
1873
  init_base();
1828
1874
  init_chrome();
1829
1875
  init_gecko();
@@ -1835,10 +1881,10 @@ var init_parsers = __esm({
1835
1881
  }
1836
1882
  });
1837
1883
 
1838
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1884
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1839
1885
  var DOMExceptionCoercer;
1840
1886
  var init_dom_exception_coercer = __esm({
1841
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1887
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1842
1888
  init_utils();
1843
1889
  DOMExceptionCoercer = class {
1844
1890
  match(err) {
@@ -1872,10 +1918,10 @@ var init_dom_exception_coercer = __esm({
1872
1918
  }
1873
1919
  });
1874
1920
 
1875
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1921
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1876
1922
  var ErrorCoercer;
1877
1923
  var init_error_coercer = __esm({
1878
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1924
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1879
1925
  init_utils();
1880
1926
  ErrorCoercer = class {
1881
1927
  match(err) {
@@ -1905,10 +1951,10 @@ var init_error_coercer = __esm({
1905
1951
  }
1906
1952
  });
1907
1953
 
1908
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1954
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1909
1955
  var ErrorEventCoercer;
1910
1956
  var init_error_event_coercer = __esm({
1911
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1957
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1912
1958
  init_utils();
1913
1959
  ErrorEventCoercer = class {
1914
1960
  constructor() {
@@ -1930,10 +1976,10 @@ var init_error_event_coercer = __esm({
1930
1976
  }
1931
1977
  });
1932
1978
 
1933
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1979
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1934
1980
  var ERROR_TYPES_PATTERN, StringCoercer;
1935
1981
  var init_string_coercer = __esm({
1936
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1982
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1937
1983
  ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
1938
1984
  StringCoercer = class {
1939
1985
  match(input) {
@@ -1965,10 +2011,10 @@ var init_string_coercer = __esm({
1965
2011
  }
1966
2012
  });
1967
2013
 
1968
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
2014
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/types.mjs
1969
2015
  var severityLevels;
1970
2016
  var init_types2 = __esm({
1971
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
2017
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
1972
2018
  severityLevels = [
1973
2019
  "fatal",
1974
2020
  "error",
@@ -1980,7 +2026,7 @@ var init_types2 = __esm({
1980
2026
  }
1981
2027
  });
1982
2028
 
1983
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
2029
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
1984
2030
  function extractExceptionKeysForMessage(err, maxLength = 40) {
1985
2031
  const keys = Object.keys(err);
1986
2032
  keys.sort();
@@ -1995,14 +2041,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
1995
2041
  return "";
1996
2042
  }
1997
2043
  var init_utils2 = __esm({
1998
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
2044
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
1999
2045
  }
2000
2046
  });
2001
2047
 
2002
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2048
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2003
2049
  var ObjectCoercer;
2004
2050
  var init_object_coercer = __esm({
2005
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2051
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2006
2052
  init_utils();
2007
2053
  init_types2();
2008
2054
  init_utils2();
@@ -2056,10 +2102,10 @@ var init_object_coercer = __esm({
2056
2102
  }
2057
2103
  });
2058
2104
 
2059
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2105
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2060
2106
  var EventCoercer;
2061
2107
  var init_event_coercer = __esm({
2062
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2108
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2063
2109
  init_utils();
2064
2110
  init_utils2();
2065
2111
  EventCoercer = class {
@@ -2079,10 +2125,10 @@ var init_event_coercer = __esm({
2079
2125
  }
2080
2126
  });
2081
2127
 
2082
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2128
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2083
2129
  var PrimitiveCoercer;
2084
2130
  var init_primitive_coercer = __esm({
2085
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2131
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2086
2132
  init_utils();
2087
2133
  PrimitiveCoercer = class {
2088
2134
  match(candidate) {
@@ -2100,10 +2146,10 @@ var init_primitive_coercer = __esm({
2100
2146
  }
2101
2147
  });
2102
2148
 
2103
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2149
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2104
2150
  var PromiseRejectionEventCoercer;
2105
2151
  var init_promise_rejection_event = __esm({
2106
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2152
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2107
2153
  init_utils();
2108
2154
  PromiseRejectionEventCoercer = class {
2109
2155
  match(err) {
@@ -2132,9 +2178,9 @@ var init_promise_rejection_event = __esm({
2132
2178
  }
2133
2179
  });
2134
2180
 
2135
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2181
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2136
2182
  var init_coercers = __esm({
2137
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2183
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2138
2184
  init_dom_exception_coercer();
2139
2185
  init_error_coercer();
2140
2186
  init_error_event_coercer();
@@ -2146,10 +2192,10 @@ var init_coercers = __esm({
2146
2192
  }
2147
2193
  });
2148
2194
 
2149
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2195
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2150
2196
  var ReduceableCache;
2151
2197
  var init_utils3 = __esm({
2152
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2198
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2153
2199
  ReduceableCache = class {
2154
2200
  constructor(_maxSize) {
2155
2201
  this._maxSize = _maxSize;
@@ -2175,7 +2221,7 @@ var init_utils3 = __esm({
2175
2221
  }
2176
2222
  });
2177
2223
 
2178
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/index.mjs
2224
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/index.mjs
2179
2225
  var error_tracking_exports = {};
2180
2226
  __export(error_tracking_exports, {
2181
2227
  DOMExceptionCoercer: () => DOMExceptionCoercer,
@@ -2199,7 +2245,7 @@ __export(error_tracking_exports, {
2199
2245
  winjsStackLineParser: () => winjsStackLineParser
2200
2246
  });
2201
2247
  var init_error_tracking = __esm({
2202
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2248
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2203
2249
  init_error_properties_builder();
2204
2250
  init_parsers();
2205
2251
  init_coercers();
@@ -2207,9 +2253,9 @@ var init_error_tracking = __esm({
2207
2253
  }
2208
2254
  });
2209
2255
 
2210
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/index.mjs
2256
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/index.mjs
2211
2257
  var init_dist = __esm({
2212
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/index.mjs"() {
2258
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/index.mjs"() {
2213
2259
  init_featureFlagUtils();
2214
2260
  init_uuidv7();
2215
2261
  init_utils();
@@ -2400,7 +2446,7 @@ function snipLine(line, colno) {
2400
2446
  }
2401
2447
  var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
2402
2448
  var init_context_lines_node = __esm({
2403
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2449
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2404
2450
  init_dist();
2405
2451
  LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
2406
2452
  LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
@@ -2410,7 +2456,7 @@ var init_context_lines_node = __esm({
2410
2456
  }
2411
2457
  });
2412
2458
 
2413
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2459
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2414
2460
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
2415
2461
  let calledFatalError = false;
2416
2462
  return Object.assign((error) => {
@@ -2442,14 +2488,14 @@ function addUnhandledRejectionListener(captureFn) {
2442
2488
  }));
2443
2489
  }
2444
2490
  var init_autocapture = __esm({
2445
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2491
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2446
2492
  }
2447
2493
  });
2448
2494
 
2449
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2495
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2450
2496
  var SHUTDOWN_TIMEOUT, ErrorTracking;
2451
2497
  var init_error_tracking2 = __esm({
2452
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2498
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2453
2499
  init_autocapture();
2454
2500
  init_dist();
2455
2501
  SHUTDOWN_TIMEOUT = 2e3;
@@ -2520,19 +2566,19 @@ var init_error_tracking2 = __esm({
2520
2566
  }
2521
2567
  });
2522
2568
 
2523
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/version.mjs
2569
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/version.mjs
2524
2570
  var version;
2525
2571
  var init_version = __esm({
2526
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/version.mjs"() {
2527
- version = "5.21.0";
2572
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/version.mjs"() {
2573
+ version = "5.24.2";
2528
2574
  }
2529
2575
  });
2530
2576
 
2531
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/types.mjs
2532
- var FeatureFlagError;
2577
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/types.mjs
2578
+ var FeatureFlagError2;
2533
2579
  var init_types3 = __esm({
2534
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/types.mjs"() {
2535
- FeatureFlagError = {
2580
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/types.mjs"() {
2581
+ FeatureFlagError2 = {
2536
2582
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
2537
2583
  FLAG_MISSING: "flag_missing",
2538
2584
  QUOTA_LIMITED: "quota_limited",
@@ -2541,7 +2587,7 @@ var init_types3 = __esm({
2541
2587
  }
2542
2588
  });
2543
2589
 
2544
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2590
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2545
2591
  async function hashSHA1(text) {
2546
2592
  const subtle = globalThis.crypto?.subtle;
2547
2593
  if (!subtle) throw new Error("SubtleCrypto API not available");
@@ -2550,11 +2596,11 @@ async function hashSHA1(text) {
2550
2596
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
2551
2597
  }
2552
2598
  var init_crypto = __esm({
2553
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2599
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2554
2600
  }
2555
2601
  });
2556
2602
 
2557
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2603
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2558
2604
  async function _hash(key, distinctId, salt = "") {
2559
2605
  const hashString = await hashSHA1(`${key}.${distinctId}${salt}`);
2560
2606
  return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
@@ -2722,7 +2768,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
2722
2768
  }
2723
2769
  var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
2724
2770
  var init_feature_flags = __esm({
2725
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2771
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2726
2772
  init_dist();
2727
2773
  init_crypto();
2728
2774
  SIXTY_SECONDS = 6e4;
@@ -3135,10 +3181,10 @@ var init_feature_flags = __esm({
3135
3181
  }
3136
3182
  });
3137
3183
 
3138
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/storage-memory.mjs
3184
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/storage-memory.mjs
3139
3185
  var PostHogMemoryStorage;
3140
3186
  var init_storage_memory = __esm({
3141
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/storage-memory.mjs"() {
3187
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3142
3188
  PostHogMemoryStorage = class {
3143
3189
  getProperty(key) {
3144
3190
  return this._memoryStorage[key];
@@ -3153,10 +3199,10 @@ var init_storage_memory = __esm({
3153
3199
  }
3154
3200
  });
3155
3201
 
3156
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/client.mjs
3202
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/client.mjs
3157
3203
  var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, PostHogBackendClient;
3158
3204
  var init_client = __esm({
3159
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/client.mjs"() {
3205
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/client.mjs"() {
3160
3206
  init_version();
3161
3207
  init_dist();
3162
3208
  init_types3();
@@ -3296,94 +3342,148 @@ var init_client = __esm({
3296
3342
  });
3297
3343
  });
3298
3344
  }
3299
- async getFeatureFlag(key, distinctId, options) {
3300
- if (void 0 !== this._flagOverrides && key in this._flagOverrides) return this._flagOverrides[key];
3301
- const { groups, disableGeoip } = options || {};
3302
- let { onlyEvaluateLocally, sendFeatureFlagEvents, personProperties, groupProperties } = options || {};
3345
+ async _getFeatureFlagResult(key, distinctId, options = {}, matchValue) {
3346
+ const sendFeatureFlagEvents = options.sendFeatureFlagEvents ?? true;
3347
+ if (void 0 !== this._flagOverrides && key in this._flagOverrides) {
3348
+ const overrideValue = this._flagOverrides[key];
3349
+ if (void 0 === overrideValue) return;
3350
+ const overridePayload = this._payloadOverrides?.[key];
3351
+ return {
3352
+ key,
3353
+ enabled: false !== overrideValue,
3354
+ variant: "string" == typeof overrideValue ? overrideValue : void 0,
3355
+ payload: overridePayload
3356
+ };
3357
+ }
3358
+ const { groups, disableGeoip } = options;
3359
+ let { onlyEvaluateLocally, personProperties, groupProperties } = options;
3303
3360
  const adjustedProperties = this.addLocalPersonAndGroupProperties(distinctId, groups, personProperties, groupProperties);
3304
3361
  personProperties = adjustedProperties.allPersonProperties;
3305
3362
  groupProperties = adjustedProperties.allGroupProperties;
3306
3363
  if (void 0 == onlyEvaluateLocally) onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
3307
- if (void 0 == sendFeatureFlagEvents) sendFeatureFlagEvents = this.options.sendFeatureFlagEvent ?? true;
3308
- let response = await this.featureFlagsPoller?.getFeatureFlag(key, distinctId, groups, personProperties, groupProperties);
3309
- const flagWasLocallyEvaluated = void 0 !== response;
3364
+ let result;
3365
+ let flagWasLocallyEvaluated = false;
3310
3366
  let requestId;
3311
3367
  let evaluatedAt;
3312
- let flagDetail;
3313
3368
  let featureFlagError;
3369
+ let flagId;
3370
+ let flagVersion;
3371
+ let flagReason;
3372
+ const localEvaluationEnabled = void 0 !== this.featureFlagsPoller;
3373
+ if (localEvaluationEnabled) {
3374
+ await this.featureFlagsPoller?.loadFeatureFlags();
3375
+ const flag = this.featureFlagsPoller?.featureFlagsByKey[key];
3376
+ if (flag) try {
3377
+ const localResult = await this.featureFlagsPoller?.computeFlagAndPayloadLocally(flag, distinctId, groups, personProperties, groupProperties, matchValue);
3378
+ if (localResult) {
3379
+ flagWasLocallyEvaluated = true;
3380
+ const value = localResult.value;
3381
+ flagId = flag.id;
3382
+ flagReason = "Evaluated locally";
3383
+ result = {
3384
+ key,
3385
+ enabled: false !== value,
3386
+ variant: "string" == typeof value ? value : void 0,
3387
+ payload: localResult.payload ?? void 0
3388
+ };
3389
+ }
3390
+ } catch (e) {
3391
+ if (e instanceof RequiresServerEvaluation || e instanceof InconclusiveMatchError) this._logger?.info(`${e.name} when computing flag locally: ${key}: ${e.message}`);
3392
+ else throw e;
3393
+ }
3394
+ }
3314
3395
  if (!flagWasLocallyEvaluated && !onlyEvaluateLocally) {
3315
3396
  const flagsResponse = await super.getFeatureFlagDetailsStateless(distinctId, groups, personProperties, groupProperties, disableGeoip, [
3316
3397
  key
3317
3398
  ]);
3318
- if (void 0 === flagsResponse) featureFlagError = FeatureFlagError.UNKNOWN_ERROR;
3399
+ if (void 0 === flagsResponse) featureFlagError = FeatureFlagError2.UNKNOWN_ERROR;
3319
3400
  else {
3320
3401
  requestId = flagsResponse.requestId;
3321
3402
  evaluatedAt = flagsResponse.evaluatedAt;
3322
3403
  const errors = [];
3323
- if (flagsResponse.errorsWhileComputingFlags) errors.push(FeatureFlagError.ERRORS_WHILE_COMPUTING);
3324
- if (flagsResponse.quotaLimited?.includes("feature_flags")) errors.push(FeatureFlagError.QUOTA_LIMITED);
3325
- flagDetail = flagsResponse.flags[key];
3326
- if (void 0 === flagDetail) errors.push(FeatureFlagError.FLAG_MISSING);
3404
+ if (flagsResponse.errorsWhileComputingFlags) errors.push(FeatureFlagError2.ERRORS_WHILE_COMPUTING);
3405
+ if (flagsResponse.quotaLimited?.includes("feature_flags")) errors.push(FeatureFlagError2.QUOTA_LIMITED);
3406
+ const flagDetail = flagsResponse.flags[key];
3407
+ if (void 0 === flagDetail) errors.push(FeatureFlagError2.FLAG_MISSING);
3408
+ else {
3409
+ flagId = flagDetail.metadata?.id;
3410
+ flagVersion = flagDetail.metadata?.version;
3411
+ flagReason = flagDetail.reason?.description ?? flagDetail.reason?.code;
3412
+ let parsedPayload;
3413
+ if (flagDetail.metadata?.payload !== void 0) try {
3414
+ parsedPayload = JSON.parse(flagDetail.metadata.payload);
3415
+ } catch {
3416
+ parsedPayload = flagDetail.metadata.payload;
3417
+ }
3418
+ result = {
3419
+ key,
3420
+ enabled: flagDetail.enabled,
3421
+ variant: flagDetail.variant,
3422
+ payload: parsedPayload
3423
+ };
3424
+ }
3327
3425
  if (errors.length > 0) featureFlagError = errors.join(",");
3328
- response = getFeatureFlagValue(flagDetail);
3329
3426
  }
3330
3427
  }
3331
- const featureFlagReportedKey = `${key}_${response}`;
3332
- if (sendFeatureFlagEvents && (!(distinctId in this.distinctIdHasSentFlagCalls) || !this.distinctIdHasSentFlagCalls[distinctId].includes(featureFlagReportedKey))) {
3333
- if (Object.keys(this.distinctIdHasSentFlagCalls).length >= this.maxCacheSize) this.distinctIdHasSentFlagCalls = {};
3334
- if (Array.isArray(this.distinctIdHasSentFlagCalls[distinctId])) this.distinctIdHasSentFlagCalls[distinctId].push(featureFlagReportedKey);
3335
- else this.distinctIdHasSentFlagCalls[distinctId] = [
3336
- featureFlagReportedKey
3337
- ];
3338
- const properties = {
3339
- $feature_flag: key,
3340
- $feature_flag_response: response,
3341
- $feature_flag_id: flagDetail?.metadata?.id,
3342
- $feature_flag_version: flagDetail?.metadata?.version,
3343
- $feature_flag_reason: flagDetail?.reason?.description ?? flagDetail?.reason?.code,
3344
- locally_evaluated: flagWasLocallyEvaluated,
3345
- [`$feature/${key}`]: response,
3346
- $feature_flag_request_id: requestId,
3347
- $feature_flag_evaluated_at: evaluatedAt
3348
- };
3349
- if (featureFlagError) properties.$feature_flag_error = featureFlagError;
3350
- this.capture({
3351
- distinctId,
3352
- event: "$feature_flag_called",
3353
- properties,
3354
- groups,
3355
- disableGeoip
3356
- });
3428
+ if (sendFeatureFlagEvents) {
3429
+ const response = void 0 === result ? void 0 : false === result.enabled ? false : result.variant ?? true;
3430
+ const featureFlagReportedKey = `${key}_${response}`;
3431
+ if (!(distinctId in this.distinctIdHasSentFlagCalls) || !this.distinctIdHasSentFlagCalls[distinctId].includes(featureFlagReportedKey)) {
3432
+ if (Object.keys(this.distinctIdHasSentFlagCalls).length >= this.maxCacheSize) this.distinctIdHasSentFlagCalls = {};
3433
+ if (Array.isArray(this.distinctIdHasSentFlagCalls[distinctId])) this.distinctIdHasSentFlagCalls[distinctId].push(featureFlagReportedKey);
3434
+ else this.distinctIdHasSentFlagCalls[distinctId] = [
3435
+ featureFlagReportedKey
3436
+ ];
3437
+ const properties = {
3438
+ $feature_flag: key,
3439
+ $feature_flag_response: response,
3440
+ $feature_flag_id: flagId,
3441
+ $feature_flag_version: flagVersion,
3442
+ $feature_flag_reason: flagReason,
3443
+ locally_evaluated: flagWasLocallyEvaluated,
3444
+ [`$feature/${key}`]: response,
3445
+ $feature_flag_request_id: requestId,
3446
+ $feature_flag_evaluated_at: evaluatedAt
3447
+ };
3448
+ if (featureFlagError) properties.$feature_flag_error = featureFlagError;
3449
+ this.capture({
3450
+ distinctId,
3451
+ event: "$feature_flag_called",
3452
+ properties,
3453
+ groups,
3454
+ disableGeoip
3455
+ });
3456
+ }
3357
3457
  }
3358
- return response;
3458
+ if (void 0 !== result && void 0 !== this._payloadOverrides && key in this._payloadOverrides) result = {
3459
+ ...result,
3460
+ payload: this._payloadOverrides[key]
3461
+ };
3462
+ return result;
3463
+ }
3464
+ async getFeatureFlag(key, distinctId, options) {
3465
+ const result = await this._getFeatureFlagResult(key, distinctId, {
3466
+ ...options,
3467
+ sendFeatureFlagEvents: options?.sendFeatureFlagEvents ?? this.options.sendFeatureFlagEvent ?? true
3468
+ });
3469
+ if (void 0 === result) return;
3470
+ if (false === result.enabled) return false;
3471
+ return result.variant ?? true;
3359
3472
  }
3360
3473
  async getFeatureFlagPayload(key, distinctId, matchValue, options) {
3361
3474
  if (void 0 !== this._payloadOverrides && key in this._payloadOverrides) return this._payloadOverrides[key];
3362
- const { groups, disableGeoip } = options || {};
3363
- let { onlyEvaluateLocally, personProperties, groupProperties } = options || {};
3364
- const adjustedProperties = this.addLocalPersonAndGroupProperties(distinctId, groups, personProperties, groupProperties);
3365
- personProperties = adjustedProperties.allPersonProperties;
3366
- groupProperties = adjustedProperties.allGroupProperties;
3367
- let response;
3368
- const localEvaluationEnabled = void 0 !== this.featureFlagsPoller;
3369
- if (localEvaluationEnabled) {
3370
- await this.featureFlagsPoller?.loadFeatureFlags();
3371
- const flag = this.featureFlagsPoller?.featureFlagsByKey[key];
3372
- if (flag) try {
3373
- const result = await this.featureFlagsPoller?.computeFlagAndPayloadLocally(flag, distinctId, groups, personProperties, groupProperties, matchValue);
3374
- if (result) {
3375
- matchValue = result.value;
3376
- response = result.payload;
3377
- }
3378
- } catch (e) {
3379
- if (e instanceof RequiresServerEvaluation || e instanceof InconclusiveMatchError) this._logger?.info(`${e.name} when computing flag locally: ${flag.key}: ${e.message}`);
3380
- else throw e;
3381
- }
3382
- }
3383
- if (void 0 == onlyEvaluateLocally) onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
3384
- const payloadWasLocallyEvaluated = void 0 !== response;
3385
- if (!payloadWasLocallyEvaluated && !onlyEvaluateLocally) response = await super.getFeatureFlagPayloadStateless(key, distinctId, groups, personProperties, groupProperties, disableGeoip);
3386
- return response;
3475
+ const result = await this._getFeatureFlagResult(key, distinctId, {
3476
+ ...options,
3477
+ sendFeatureFlagEvents: false
3478
+ }, matchValue);
3479
+ if (void 0 === result) return;
3480
+ return result.payload ?? null;
3481
+ }
3482
+ async getFeatureFlagResult(key, distinctId, options) {
3483
+ return this._getFeatureFlagResult(key, distinctId, {
3484
+ ...options,
3485
+ sendFeatureFlagEvents: options?.sendFeatureFlagEvents ?? this.options.sendFeatureFlagEvent ?? true
3486
+ });
3387
3487
  }
3388
3488
  async getRemoteConfigPayload(flagKey) {
3389
3489
  if (!this.options.personalApiKey) throw new Error("Personal API key is required for remote config payload decryption");
@@ -3710,7 +3810,7 @@ var init_client = __esm({
3710
3810
  });
3711
3811
  var PostHogContext;
3712
3812
  var init_context = __esm({
3713
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
3813
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
3714
3814
  PostHogContext = class {
3715
3815
  constructor() {
3716
3816
  this.storage = new AsyncLocalStorage();
@@ -3738,7 +3838,7 @@ var init_context = __esm({
3738
3838
  }
3739
3839
  });
3740
3840
 
3741
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
3841
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
3742
3842
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
3743
3843
  "error"
3744
3844
  ], sendExceptionsToPostHog = true } = {}) {
@@ -3794,7 +3894,7 @@ function sentryIntegration(_posthog, options) {
3794
3894
  }
3795
3895
  var NAME, PostHogSentryIntegration;
3796
3896
  var init_sentry_integration = __esm({
3797
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
3897
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
3798
3898
  NAME = "posthog-node";
3799
3899
  PostHogSentryIntegration = class {
3800
3900
  static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
@@ -3816,7 +3916,7 @@ var init_sentry_integration = __esm({
3816
3916
  }
3817
3917
  });
3818
3918
 
3819
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/express.mjs
3919
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/express.mjs
3820
3920
  function setupExpressErrorHandler(_posthog, app) {
3821
3921
  app.use(posthogErrorHandler(_posthog));
3822
3922
  }
@@ -3848,21 +3948,22 @@ function posthogErrorHandler(posthog) {
3848
3948
  };
3849
3949
  }
3850
3950
  var init_express = __esm({
3851
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/express.mjs"() {
3951
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
3852
3952
  init_error_tracking2();
3853
3953
  }
3854
3954
  });
3855
3955
 
3856
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/exports.mjs
3956
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/exports.mjs
3857
3957
  var init_exports = __esm({
3858
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/exports.mjs"() {
3958
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/exports.mjs"() {
3959
+ init_dist();
3859
3960
  init_sentry_integration();
3860
3961
  init_express();
3861
3962
  init_types3();
3862
3963
  }
3863
3964
  });
3864
3965
 
3865
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/entrypoints/index.node.mjs
3966
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
3866
3967
  var index_node_exports = {};
3867
3968
  __export(index_node_exports, {
3868
3969
  FeatureFlagError: () => FeatureFlagError,
@@ -3874,7 +3975,7 @@ __export(index_node_exports, {
3874
3975
  });
3875
3976
  var PostHog;
3876
3977
  var init_index_node = __esm({
3877
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
3978
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
3878
3979
  init_module_node();
3879
3980
  init_context_lines_node();
3880
3981
  init_error_tracking2();
@@ -13948,10 +14049,10 @@ var init_esm4 = __esm({
13948
14049
  }
13949
14050
  });
13950
14051
 
13951
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
14052
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
13952
14053
  var IdentifyOperation, SpecialEventType;
13953
14054
  var init_event = __esm({
13954
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
14055
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
13955
14056
  (function(IdentifyOperation3) {
13956
14057
  IdentifyOperation3["SET"] = "$set";
13957
14058
  IdentifyOperation3["SET_ONCE"] = "$setOnce";
@@ -13972,10 +14073,10 @@ var init_event = __esm({
13972
14073
  }
13973
14074
  });
13974
14075
 
13975
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
14076
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
13976
14077
  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;
13977
14078
  var init_constants = __esm({
13978
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
14079
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
13979
14080
  UNSET_VALUE = "-";
13980
14081
  AMPLITUDE_PREFIX = "AMP";
13981
14082
  STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
@@ -13987,10 +14088,10 @@ var init_constants = __esm({
13987
14088
  }
13988
14089
  });
13989
14090
 
13990
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
14091
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
13991
14092
  var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
13992
14093
  var init_valid_properties = __esm({
13993
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
14094
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
13994
14095
  init_tslib_es6();
13995
14096
  MAX_PROPERTY_KEYS = 1e3;
13996
14097
  isValidObject = function(properties) {
@@ -14045,10 +14146,10 @@ var init_valid_properties = __esm({
14045
14146
  }
14046
14147
  });
14047
14148
 
14048
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js
14149
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js
14049
14150
  var Identify, IdentifyOperation2, OrderedIdentifyOperations;
14050
14151
  var init_identify = __esm({
14051
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
14152
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
14052
14153
  init_tslib_es6();
14053
14154
  init_constants();
14054
14155
  init_valid_properties();
@@ -14159,10 +14260,10 @@ var init_identify = __esm({
14159
14260
  }
14160
14261
  });
14161
14262
 
14162
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
14263
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
14163
14264
  var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
14164
14265
  var init_messages = __esm({
14165
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
14266
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
14166
14267
  SUCCESS_MESSAGE = "Event tracked successfully";
14167
14268
  UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
14168
14269
  MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
@@ -14173,10 +14274,10 @@ var init_messages = __esm({
14173
14274
  }
14174
14275
  });
14175
14276
 
14176
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
14277
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
14177
14278
  var Status;
14178
14279
  var init_status = __esm({
14179
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
14280
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
14180
14281
  (function(Status2) {
14181
14282
  Status2["Unknown"] = "unknown";
14182
14283
  Status2["Skipped"] = "skipped";
@@ -14191,10 +14292,10 @@ var init_status = __esm({
14191
14292
  }
14192
14293
  });
14193
14294
 
14194
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
14295
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
14195
14296
  var buildResult;
14196
14297
  var init_result_builder = __esm({
14197
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
14298
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
14198
14299
  init_status();
14199
14300
  buildResult = function(event, code, message2) {
14200
14301
  if (code === void 0) {
@@ -14208,10 +14309,10 @@ var init_result_builder = __esm({
14208
14309
  }
14209
14310
  });
14210
14311
 
14211
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
14312
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
14212
14313
  var getGlobalScope;
14213
14314
  var init_global_scope = __esm({
14214
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
14315
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
14215
14316
  getGlobalScope = function() {
14216
14317
  var ampIntegrationContextName = "ampIntegrationContext";
14217
14318
  if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
@@ -14234,10 +14335,10 @@ var init_global_scope = __esm({
14234
14335
  }
14235
14336
  });
14236
14337
 
14237
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
14338
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
14238
14339
  var legacyUUID, hex, UUID2;
14239
14340
  var init_uuid2 = __esm({
14240
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
14341
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
14241
14342
  init_tslib_es6();
14242
14343
  init_global_scope();
14243
14344
  legacyUUID = function(a) {
@@ -14281,10 +14382,10 @@ var init_uuid2 = __esm({
14281
14382
  }
14282
14383
  });
14283
14384
 
14284
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
14385
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
14285
14386
  var Timeline;
14286
14387
  var init_timeline = __esm({
14287
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
14388
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
14288
14389
  init_tslib_es6();
14289
14390
  init_result_builder();
14290
14391
  init_uuid2();
@@ -14586,10 +14687,10 @@ var init_timeline = __esm({
14586
14687
  }
14587
14688
  });
14588
14689
 
14589
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
14690
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
14590
14691
  var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
14591
14692
  var init_event_builder = __esm({
14592
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
14693
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
14593
14694
  init_tslib_es6();
14594
14695
  init_identify();
14595
14696
  init_event();
@@ -14619,10 +14720,10 @@ var init_event_builder = __esm({
14619
14720
  }
14620
14721
  });
14621
14722
 
14622
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
14723
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
14623
14724
  var returnWrapper;
14624
14725
  var init_return_wrapper = __esm({
14625
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
14726
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
14626
14727
  returnWrapper = function(awaitable) {
14627
14728
  return {
14628
14729
  promise: awaitable || Promise.resolve()
@@ -14631,10 +14732,10 @@ var init_return_wrapper = __esm({
14631
14732
  }
14632
14733
  });
14633
14734
 
14634
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
14735
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
14635
14736
  var AmplitudeCore;
14636
14737
  var init_core_client = __esm({
14637
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
14738
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
14638
14739
  init_tslib_es6();
14639
14740
  init_event();
14640
14741
  init_identify();
@@ -14902,10 +15003,10 @@ var init_core_client = __esm({
14902
15003
  }
14903
15004
  });
14904
15005
 
14905
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
15006
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
14906
15007
  var Revenue, RevenueProperty;
14907
15008
  var init_revenue = __esm({
14908
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
15009
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
14909
15010
  init_tslib_es6();
14910
15011
  init_valid_properties();
14911
15012
  Revenue = /** @class */
@@ -14982,10 +15083,10 @@ var init_revenue = __esm({
14982
15083
  }
14983
15084
  });
14984
15085
 
14985
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
15086
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
14986
15087
  var chunk;
14987
15088
  var init_chunk = __esm({
14988
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
15089
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
14989
15090
  chunk = function(arr, size) {
14990
15091
  var chunkSize = Math.max(size, 1);
14991
15092
  return arr.reduce(function(chunks, element, index) {
@@ -15000,10 +15101,10 @@ var init_chunk = __esm({
15000
15101
  }
15001
15102
  });
15002
15103
 
15003
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
15104
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
15004
15105
  var LogLevel;
15005
15106
  var init_loglevel = __esm({
15006
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
15107
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
15007
15108
  (function(LogLevel2) {
15008
15109
  LogLevel2[LogLevel2["None"] = 0] = "None";
15009
15110
  LogLevel2[LogLevel2["Error"] = 1] = "Error";
@@ -15014,10 +15115,10 @@ var init_loglevel = __esm({
15014
15115
  }
15015
15116
  });
15016
15117
 
15017
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js
15118
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js
15018
15119
  var PREFIX, Logger;
15019
15120
  var init_logger3 = __esm({
15020
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
15121
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
15021
15122
  init_loglevel();
15022
15123
  PREFIX = "Amplitude Logger ";
15023
15124
  Logger = /** @class */
@@ -15079,10 +15180,10 @@ var init_logger3 = __esm({
15079
15180
  }
15080
15181
  });
15081
15182
 
15082
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/config.js
15183
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/config.js
15083
15184
  var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
15084
15185
  var init_config = __esm({
15085
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
15186
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
15086
15187
  init_constants();
15087
15188
  init_logger3();
15088
15189
  init_loglevel();
@@ -15183,19 +15284,19 @@ var init_config = __esm({
15183
15284
  }
15184
15285
  });
15185
15286
 
15186
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
15287
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
15187
15288
  function isSuccessStatusCode(code) {
15188
15289
  return code >= 200 && code < 300;
15189
15290
  }
15190
15291
  var init_status_code = __esm({
15191
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
15292
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
15192
15293
  }
15193
15294
  });
15194
15295
 
15195
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
15296
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
15196
15297
  var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
15197
15298
  var init_debug = __esm({
15198
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
15299
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
15199
15300
  init_tslib_es6();
15200
15301
  init_loglevel();
15201
15302
  getStacktrace = function(ignoreDepth) {
@@ -15313,7 +15414,7 @@ var init_debug = __esm({
15313
15414
  }
15314
15415
  });
15315
15416
 
15316
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
15417
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
15317
15418
  function getErrorMessage(error) {
15318
15419
  if (error instanceof Error)
15319
15420
  return error.message;
@@ -15331,7 +15432,7 @@ function getResponseBodyString(res) {
15331
15432
  }
15332
15433
  var Destination;
15333
15434
  var init_destination = __esm({
15334
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
15435
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
15335
15436
  init_tslib_es6();
15336
15437
  init_status();
15337
15438
  init_messages();
@@ -15722,10 +15823,10 @@ var init_destination = __esm({
15722
15823
  }
15723
15824
  });
15724
15825
 
15725
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
15826
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
15726
15827
  var BaseTransport;
15727
15828
  var init_base2 = __esm({
15728
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
15829
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
15729
15830
  init_status();
15730
15831
  init_status_code();
15731
15832
  BaseTransport = /** @class */
@@ -15827,10 +15928,10 @@ var init_base2 = __esm({
15827
15928
  }
15828
15929
  });
15829
15930
 
15830
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
15931
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
15831
15932
  var ServerZone;
15832
15933
  var init_server_zone = __esm({
15833
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
15934
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
15834
15935
  (function(ServerZone2) {
15835
15936
  ServerZone2["US"] = "US";
15836
15937
  ServerZone2["EU"] = "EU";
@@ -15839,17 +15940,17 @@ var init_server_zone = __esm({
15839
15940
  }
15840
15941
  });
15841
15942
 
15842
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
15943
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
15843
15944
  var OfflineDisabled;
15844
15945
  var init_offline = __esm({
15845
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
15946
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
15846
15947
  OfflineDisabled = null;
15847
15948
  }
15848
15949
  });
15849
15950
 
15850
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/index.js
15951
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/index.js
15851
15952
  var init_esm5 = __esm({
15852
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
15953
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
15853
15954
  init_core_client();
15854
15955
  init_identify();
15855
15956
  init_revenue();
@@ -15866,18 +15967,18 @@ var init_esm5 = __esm({
15866
15967
  }
15867
15968
  });
15868
15969
 
15869
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/version.js
15970
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/version.js
15870
15971
  var VERSION;
15871
15972
  var init_version3 = __esm({
15872
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
15873
- VERSION = "1.5.31";
15973
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
15974
+ VERSION = "1.5.34";
15874
15975
  }
15875
15976
  });
15876
15977
 
15877
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
15978
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
15878
15979
  var Context2;
15879
15980
  var init_context4 = __esm({
15880
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
15981
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
15881
15982
  init_tslib_es6();
15882
15983
  init_esm5();
15883
15984
  init_version3();
@@ -15912,7 +16013,7 @@ var init_context4 = __esm({
15912
16013
  });
15913
16014
  var Http;
15914
16015
  var init_http = __esm({
15915
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
16016
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
15916
16017
  init_tslib_es6();
15917
16018
  init_esm5();
15918
16019
  Http = /** @class */
@@ -15974,10 +16075,10 @@ var init_http = __esm({
15974
16075
  }
15975
16076
  });
15976
16077
 
15977
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/config.js
16078
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/config.js
15978
16079
  var NodeConfig, useNodeConfig;
15979
16080
  var init_config2 = __esm({
15980
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
16081
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
15981
16082
  init_tslib_es6();
15982
16083
  init_esm5();
15983
16084
  init_http();
@@ -15995,10 +16096,10 @@ var init_config2 = __esm({
15995
16096
  }
15996
16097
  });
15997
16098
 
15998
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
16099
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
15999
16100
  var AmplitudeNode, createInstance, node_client_default;
16000
16101
  var init_node_client = __esm({
16001
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
16102
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
16002
16103
  init_tslib_es6();
16003
16104
  init_esm5();
16004
16105
  init_context4();
@@ -16072,7 +16173,7 @@ var init_node_client = __esm({
16072
16173
  }
16073
16174
  });
16074
16175
 
16075
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/types.js
16176
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/types.js
16076
16177
  var types_exports = {};
16077
16178
  __export(types_exports, {
16078
16179
  IdentifyOperation: () => IdentifyOperation,
@@ -16083,12 +16184,12 @@ __export(types_exports, {
16083
16184
  SpecialEventType: () => SpecialEventType
16084
16185
  });
16085
16186
  var init_types4 = __esm({
16086
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
16187
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
16087
16188
  init_esm5();
16088
16189
  }
16089
16190
  });
16090
16191
 
16091
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/index.js
16192
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/index.js
16092
16193
  var esm_exports2 = {};
16093
16194
  __export(esm_exports2, {
16094
16195
  Identify: () => Identify,
@@ -16109,7 +16210,7 @@ __export(esm_exports2, {
16109
16210
  });
16110
16211
  var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
16111
16212
  var init_esm6 = __esm({
16112
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
16213
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
16113
16214
  init_node_client();
16114
16215
  init_node_client();
16115
16216
  init_esm5();