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/factories.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();
@@ -7446,10 +7547,10 @@ var init_tslib_es6 = __esm({
7446
7547
  }
7447
7548
  });
7448
7549
 
7449
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
7550
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js
7450
7551
  var IdentifyOperation, SpecialEventType;
7451
7552
  var init_event = __esm({
7452
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
7553
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/event/event.js"() {
7453
7554
  (function(IdentifyOperation3) {
7454
7555
  IdentifyOperation3["SET"] = "$set";
7455
7556
  IdentifyOperation3["SET_ONCE"] = "$setOnce";
@@ -7470,10 +7571,10 @@ var init_event = __esm({
7470
7571
  }
7471
7572
  });
7472
7573
 
7473
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
7574
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js
7474
7575
  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;
7475
7576
  var init_constants = __esm({
7476
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
7577
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/constants.js"() {
7477
7578
  UNSET_VALUE = "-";
7478
7579
  AMPLITUDE_PREFIX = "AMP";
7479
7580
  STORAGE_PREFIX = "".concat(AMPLITUDE_PREFIX, "_unsent");
@@ -7485,10 +7586,10 @@ var init_constants = __esm({
7485
7586
  }
7486
7587
  });
7487
7588
 
7488
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
7589
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js
7489
7590
  var MAX_PROPERTY_KEYS, isValidObject, isValidProperties;
7490
7591
  var init_valid_properties = __esm({
7491
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
7592
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/valid-properties.js"() {
7492
7593
  init_tslib_es6();
7493
7594
  MAX_PROPERTY_KEYS = 1e3;
7494
7595
  isValidObject = function(properties) {
@@ -7543,10 +7644,10 @@ var init_valid_properties = __esm({
7543
7644
  }
7544
7645
  });
7545
7646
 
7546
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js
7647
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js
7547
7648
  var Identify, IdentifyOperation2, OrderedIdentifyOperations;
7548
7649
  var init_identify = __esm({
7549
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
7650
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/identify.js"() {
7550
7651
  init_tslib_es6();
7551
7652
  init_constants();
7552
7653
  init_valid_properties();
@@ -7657,10 +7758,10 @@ var init_identify = __esm({
7657
7758
  }
7658
7759
  });
7659
7760
 
7660
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
7761
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js
7661
7762
  var SUCCESS_MESSAGE, UNEXPECTED_ERROR_MESSAGE, MAX_RETRIES_EXCEEDED_MESSAGE, OPT_OUT_MESSAGE, MISSING_API_KEY_MESSAGE, INVALID_API_KEY, CLIENT_NOT_INITIALIZED;
7662
7763
  var init_messages = __esm({
7663
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
7764
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/messages.js"() {
7664
7765
  SUCCESS_MESSAGE = "Event tracked successfully";
7665
7766
  UNEXPECTED_ERROR_MESSAGE = "Unexpected error occurred";
7666
7767
  MAX_RETRIES_EXCEEDED_MESSAGE = "Event rejected due to exceeded retry count";
@@ -7671,10 +7772,10 @@ var init_messages = __esm({
7671
7772
  }
7672
7773
  });
7673
7774
 
7674
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
7775
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js
7675
7776
  var Status;
7676
7777
  var init_status = __esm({
7677
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
7778
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/status.js"() {
7678
7779
  (function(Status2) {
7679
7780
  Status2["Unknown"] = "unknown";
7680
7781
  Status2["Skipped"] = "skipped";
@@ -7689,10 +7790,10 @@ var init_status = __esm({
7689
7790
  }
7690
7791
  });
7691
7792
 
7692
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
7793
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js
7693
7794
  var buildResult;
7694
7795
  var init_result_builder = __esm({
7695
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
7796
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/result-builder.js"() {
7696
7797
  init_status();
7697
7798
  buildResult = function(event, code, message2) {
7698
7799
  if (code === void 0) {
@@ -7706,10 +7807,10 @@ var init_result_builder = __esm({
7706
7807
  }
7707
7808
  });
7708
7809
 
7709
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
7810
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js
7710
7811
  var getGlobalScope;
7711
7812
  var init_global_scope = __esm({
7712
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
7813
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/global-scope.js"() {
7713
7814
  getGlobalScope = function() {
7714
7815
  var ampIntegrationContextName = "ampIntegrationContext";
7715
7816
  if (typeof globalThis !== "undefined" && typeof globalThis[ampIntegrationContextName] !== "undefined") {
@@ -7732,10 +7833,10 @@ var init_global_scope = __esm({
7732
7833
  }
7733
7834
  });
7734
7835
 
7735
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
7836
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js
7736
7837
  var legacyUUID, hex, UUID2;
7737
7838
  var init_uuid = __esm({
7738
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
7839
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/uuid.js"() {
7739
7840
  init_tslib_es6();
7740
7841
  init_global_scope();
7741
7842
  legacyUUID = function(a) {
@@ -7779,10 +7880,10 @@ var init_uuid = __esm({
7779
7880
  }
7780
7881
  });
7781
7882
 
7782
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
7883
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js
7783
7884
  var Timeline;
7784
7885
  var init_timeline = __esm({
7785
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
7886
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/timeline.js"() {
7786
7887
  init_tslib_es6();
7787
7888
  init_result_builder();
7788
7889
  init_uuid();
@@ -8084,10 +8185,10 @@ var init_timeline = __esm({
8084
8185
  }
8085
8186
  });
8086
8187
 
8087
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8188
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js
8088
8189
  var createTrackEvent, createIdentifyEvent, createGroupIdentifyEvent, createGroupEvent, createRevenueEvent;
8089
8190
  var init_event_builder = __esm({
8090
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8191
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/event-builder.js"() {
8091
8192
  init_tslib_es6();
8092
8193
  init_identify();
8093
8194
  init_event();
@@ -8117,10 +8218,10 @@ var init_event_builder = __esm({
8117
8218
  }
8118
8219
  });
8119
8220
 
8120
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8221
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js
8121
8222
  var returnWrapper;
8122
8223
  var init_return_wrapper = __esm({
8123
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8224
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/return-wrapper.js"() {
8124
8225
  returnWrapper = function(awaitable) {
8125
8226
  return {
8126
8227
  promise: awaitable || Promise.resolve()
@@ -8129,10 +8230,10 @@ var init_return_wrapper = __esm({
8129
8230
  }
8130
8231
  });
8131
8232
 
8132
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8233
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js
8133
8234
  var AmplitudeCore;
8134
8235
  var init_core_client = __esm({
8135
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8236
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/core-client.js"() {
8136
8237
  init_tslib_es6();
8137
8238
  init_event();
8138
8239
  init_identify();
@@ -8400,10 +8501,10 @@ var init_core_client = __esm({
8400
8501
  }
8401
8502
  });
8402
8503
 
8403
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
8504
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js
8404
8505
  var Revenue, RevenueProperty;
8405
8506
  var init_revenue = __esm({
8406
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
8507
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/revenue.js"() {
8407
8508
  init_tslib_es6();
8408
8509
  init_valid_properties();
8409
8510
  Revenue = /** @class */
@@ -8480,10 +8581,10 @@ var init_revenue = __esm({
8480
8581
  }
8481
8582
  });
8482
8583
 
8483
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
8584
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js
8484
8585
  var chunk;
8485
8586
  var init_chunk = __esm({
8486
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
8587
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/chunk.js"() {
8487
8588
  chunk = function(arr, size) {
8488
8589
  var chunkSize = Math.max(size, 1);
8489
8590
  return arr.reduce(function(chunks, element, index) {
@@ -8498,10 +8599,10 @@ var init_chunk = __esm({
8498
8599
  }
8499
8600
  });
8500
8601
 
8501
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
8602
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js
8502
8603
  var LogLevel;
8503
8604
  var init_loglevel = __esm({
8504
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
8605
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/loglevel.js"() {
8505
8606
  (function(LogLevel2) {
8506
8607
  LogLevel2[LogLevel2["None"] = 0] = "None";
8507
8608
  LogLevel2[LogLevel2["Error"] = 1] = "Error";
@@ -8512,10 +8613,10 @@ var init_loglevel = __esm({
8512
8613
  }
8513
8614
  });
8514
8615
 
8515
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js
8616
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js
8516
8617
  var PREFIX, Logger;
8517
8618
  var init_logger2 = __esm({
8518
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
8619
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/logger.js"() {
8519
8620
  init_loglevel();
8520
8621
  PREFIX = "Amplitude Logger ";
8521
8622
  Logger = /** @class */
@@ -8577,10 +8678,10 @@ var init_logger2 = __esm({
8577
8678
  }
8578
8679
  });
8579
8680
 
8580
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/config.js
8681
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/config.js
8581
8682
  var getDefaultConfig, Config, getServerUrl, createServerConfig, RequestMetadata;
8582
8683
  var init_config = __esm({
8583
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
8684
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/config.js"() {
8584
8685
  init_constants();
8585
8686
  init_logger2();
8586
8687
  init_loglevel();
@@ -8681,19 +8782,19 @@ var init_config = __esm({
8681
8782
  }
8682
8783
  });
8683
8784
 
8684
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
8785
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js
8685
8786
  function isSuccessStatusCode(code) {
8686
8787
  return code >= 200 && code < 300;
8687
8788
  }
8688
8789
  var init_status_code = __esm({
8689
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
8790
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/status-code.js"() {
8690
8791
  }
8691
8792
  });
8692
8793
 
8693
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
8794
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js
8694
8795
  var getStacktrace, getClientLogConfig, getValueByStringPath, getClientStates, debugWrapper;
8695
8796
  var init_debug = __esm({
8696
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
8797
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/utils/debug.js"() {
8697
8798
  init_tslib_es6();
8698
8799
  init_loglevel();
8699
8800
  getStacktrace = function(ignoreDepth) {
@@ -8811,7 +8912,7 @@ var init_debug = __esm({
8811
8912
  }
8812
8913
  });
8813
8914
 
8814
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
8915
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js
8815
8916
  function getErrorMessage(error) {
8816
8917
  if (error instanceof Error)
8817
8918
  return error.message;
@@ -8829,7 +8930,7 @@ function getResponseBodyString(res) {
8829
8930
  }
8830
8931
  var Destination;
8831
8932
  var init_destination = __esm({
8832
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
8933
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/plugins/destination.js"() {
8833
8934
  init_tslib_es6();
8834
8935
  init_status();
8835
8936
  init_messages();
@@ -9220,10 +9321,10 @@ var init_destination = __esm({
9220
9321
  }
9221
9322
  });
9222
9323
 
9223
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9324
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js
9224
9325
  var BaseTransport;
9225
9326
  var init_base2 = __esm({
9226
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9327
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/transports/base.js"() {
9227
9328
  init_status();
9228
9329
  init_status_code();
9229
9330
  BaseTransport = /** @class */
@@ -9325,10 +9426,10 @@ var init_base2 = __esm({
9325
9426
  }
9326
9427
  });
9327
9428
 
9328
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
9429
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js
9329
9430
  var ServerZone;
9330
9431
  var init_server_zone = __esm({
9331
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
9432
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/server-zone.js"() {
9332
9433
  (function(ServerZone2) {
9333
9434
  ServerZone2["US"] = "US";
9334
9435
  ServerZone2["EU"] = "EU";
@@ -9337,17 +9438,17 @@ var init_server_zone = __esm({
9337
9438
  }
9338
9439
  });
9339
9440
 
9340
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
9441
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js
9341
9442
  var OfflineDisabled;
9342
9443
  var init_offline = __esm({
9343
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
9444
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/types/offline.js"() {
9344
9445
  OfflineDisabled = null;
9345
9446
  }
9346
9447
  });
9347
9448
 
9348
- // ../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/index.js
9449
+ // ../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/index.js
9349
9450
  var init_esm = __esm({
9350
- "../../node_modules/.pnpm/@amplitude+analytics-core@2.35.2/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
9451
+ "../../node_modules/.pnpm/@amplitude+analytics-core@2.37.0/node_modules/@amplitude/analytics-core/lib/esm/index.js"() {
9351
9452
  init_core_client();
9352
9453
  init_identify();
9353
9454
  init_revenue();
@@ -9364,18 +9465,18 @@ var init_esm = __esm({
9364
9465
  }
9365
9466
  });
9366
9467
 
9367
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/version.js
9468
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/version.js
9368
9469
  var VERSION;
9369
9470
  var init_version2 = __esm({
9370
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
9371
- VERSION = "1.5.31";
9471
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/version.js"() {
9472
+ VERSION = "1.5.34";
9372
9473
  }
9373
9474
  });
9374
9475
 
9375
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
9476
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js
9376
9477
  var Context;
9377
9478
  var init_context2 = __esm({
9378
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
9479
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/plugins/context.js"() {
9379
9480
  init_tslib_es6();
9380
9481
  init_esm();
9381
9482
  init_version2();
@@ -9410,7 +9511,7 @@ var init_context2 = __esm({
9410
9511
  });
9411
9512
  var Http;
9412
9513
  var init_http = __esm({
9413
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
9514
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/transports/http.js"() {
9414
9515
  init_tslib_es6();
9415
9516
  init_esm();
9416
9517
  Http = /** @class */
@@ -9472,10 +9573,10 @@ var init_http = __esm({
9472
9573
  }
9473
9574
  });
9474
9575
 
9475
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/config.js
9576
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/config.js
9476
9577
  var NodeConfig, useNodeConfig;
9477
9578
  var init_config2 = __esm({
9478
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
9579
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/config.js"() {
9479
9580
  init_tslib_es6();
9480
9581
  init_esm();
9481
9582
  init_http();
@@ -9493,10 +9594,10 @@ var init_config2 = __esm({
9493
9594
  }
9494
9595
  });
9495
9596
 
9496
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
9597
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/node-client.js
9497
9598
  var AmplitudeNode, createInstance, node_client_default;
9498
9599
  var init_node_client = __esm({
9499
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
9600
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/node-client.js"() {
9500
9601
  init_tslib_es6();
9501
9602
  init_esm();
9502
9603
  init_context2();
@@ -9570,7 +9671,7 @@ var init_node_client = __esm({
9570
9671
  }
9571
9672
  });
9572
9673
 
9573
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/types.js
9674
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/types.js
9574
9675
  var types_exports = {};
9575
9676
  __export(types_exports, {
9576
9677
  IdentifyOperation: () => IdentifyOperation,
@@ -9581,12 +9682,12 @@ __export(types_exports, {
9581
9682
  SpecialEventType: () => SpecialEventType
9582
9683
  });
9583
9684
  var init_types4 = __esm({
9584
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
9685
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/types.js"() {
9585
9686
  init_esm();
9586
9687
  }
9587
9688
  });
9588
9689
 
9589
- // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/index.js
9690
+ // ../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/index.js
9590
9691
  var esm_exports = {};
9591
9692
  __export(esm_exports, {
9592
9693
  Identify: () => Identify,
@@ -9607,7 +9708,7 @@ __export(esm_exports, {
9607
9708
  });
9608
9709
  var add, groupIdentify, identify, init, logEvent, remove, revenue, setGroup, setOptOut, track, flush;
9609
9710
  var init_esm2 = __esm({
9610
- "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.31/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
9711
+ "../../node_modules/.pnpm/@amplitude+analytics-node@1.5.34/node_modules/@amplitude/analytics-node/lib/esm/index.js"() {
9611
9712
  init_node_client();
9612
9713
  init_node_client();
9613
9714
  init_esm();