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/posthog.js CHANGED
@@ -41,11 +41,11 @@ function normalizeWindowsPath(path) {
41
41
  return path.replace(/^[A-Z]:/, "").replace(/\\/g, "/");
42
42
  }
43
43
  var init_module_node = __esm({
44
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
44
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/module.node.mjs"() {
45
45
  }
46
46
  });
47
47
 
48
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs
48
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/featureFlagUtils.mjs
49
49
  function getFlagDetailFromFlagAndPayload(key, value, payload) {
50
50
  return {
51
51
  key,
@@ -62,7 +62,7 @@ function getFlagDetailFromFlagAndPayload(key, value, payload) {
62
62
  }
63
63
  var normalizeFlagsResponse, getFlagValuesFromFlags, getPayloadsFromFlags, getFeatureFlagValue, parsePayload;
64
64
  var init_featureFlagUtils = __esm({
65
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
65
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/featureFlagUtils.mjs"() {
66
66
  normalizeFlagsResponse = (flagsResponse) => {
67
67
  if ("flags" in flagsResponse) {
68
68
  const featureFlags = getFlagValuesFromFlags(flagsResponse.flags);
@@ -120,10 +120,10 @@ var init_featureFlagUtils = __esm({
120
120
  }
121
121
  });
122
122
 
123
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
123
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/vendor/uuidv7.mjs
124
124
  var DIGITS, UUID, V7Generator, getDefaultRandom, defaultGenerator, uuidv7, uuidv7obj;
125
125
  var init_uuidv7 = __esm({
126
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
126
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/vendor/uuidv7.mjs"() {
127
127
  DIGITS = "0123456789abcdef";
128
128
  UUID = class _UUID {
129
129
  constructor(bytes) {
@@ -284,10 +284,10 @@ var init_uuidv7 = __esm({
284
284
  }
285
285
  });
286
286
 
287
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs
287
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bot-detection.mjs
288
288
  var DEFAULT_BLOCKED_UA_STRS, isBlockedUA;
289
289
  var init_bot_detection = __esm({
290
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
290
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bot-detection.mjs"() {
291
291
  DEFAULT_BLOCKED_UA_STRS = [
292
292
  "amazonbot",
293
293
  "amazonproductbot",
@@ -378,14 +378,16 @@ var init_bot_detection = __esm({
378
378
  }
379
379
  });
380
380
 
381
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/types.mjs
382
- var types_PostHogPersistedProperty;
381
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/types.mjs
382
+ var types_PostHogPersistedProperty, FeatureFlagError;
383
383
  var init_types = __esm({
384
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/types.mjs"() {
384
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/types.mjs"() {
385
385
  types_PostHogPersistedProperty = /* @__PURE__ */ (function(PostHogPersistedProperty) {
386
386
  PostHogPersistedProperty["AnonymousId"] = "anonymous_id";
387
387
  PostHogPersistedProperty["DistinctId"] = "distinct_id";
388
388
  PostHogPersistedProperty["Props"] = "props";
389
+ PostHogPersistedProperty["EnablePersonProcessing"] = "enable_person_processing";
390
+ PostHogPersistedProperty["PersonMode"] = "person_mode";
389
391
  PostHogPersistedProperty["FeatureFlagDetails"] = "feature_flag_details";
390
392
  PostHogPersistedProperty["FeatureFlags"] = "feature_flags";
391
393
  PostHogPersistedProperty["FeatureFlagPayloads"] = "feature_flag_payloads";
@@ -410,16 +412,25 @@ var init_types = __esm({
410
412
  PostHogPersistedProperty["FlagsEndpointWasHit"] = "flags_endpoint_was_hit";
411
413
  return PostHogPersistedProperty;
412
414
  })({});
415
+ FeatureFlagError = {
416
+ ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
417
+ FLAG_MISSING: "flag_missing",
418
+ QUOTA_LIMITED: "quota_limited",
419
+ TIMEOUT: "timeout",
420
+ CONNECTION_ERROR: "connection_error",
421
+ UNKNOWN_ERROR: "unknown_error",
422
+ apiError: (status) => `api_error_${status}`
423
+ };
413
424
  }
414
425
  });
415
426
 
416
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/string-utils.mjs
427
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/string-utils.mjs
417
428
  var init_string_utils = __esm({
418
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
429
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/string-utils.mjs"() {
419
430
  }
420
431
  });
421
432
 
422
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/type-utils.mjs
433
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/type-utils.mjs
423
434
  function isPrimitive(value) {
424
435
  return null === value || "object" != typeof value;
425
436
  }
@@ -444,7 +455,7 @@ function isInstanceOf(candidate, base) {
444
455
  }
445
456
  var nativeIsArray, ObjProto, type_utils_toString, isArray, isObject, isUndefined, isString, isEmptyString, isNumber, isPlainError;
446
457
  var init_type_utils = __esm({
447
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
458
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/type-utils.mjs"() {
448
459
  init_types();
449
460
  init_string_utils();
450
461
  nativeIsArray = Array.isArray;
@@ -458,12 +469,12 @@ var init_type_utils = __esm({
458
469
  isUndefined = (x) => void 0 === x;
459
470
  isString = (x) => "[object String]" == type_utils_toString.call(x);
460
471
  isEmptyString = (x) => isString(x) && 0 === x.trim().length;
461
- isNumber = (x) => "[object Number]" == type_utils_toString.call(x);
472
+ isNumber = (x) => "[object Number]" == type_utils_toString.call(x) && x === x;
462
473
  isPlainError = (x) => x instanceof Error;
463
474
  }
464
475
  });
465
476
 
466
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/number-utils.mjs
477
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/number-utils.mjs
467
478
  function clampToRange(value, min, max, logger, fallbackValue) {
468
479
  if (min > max) {
469
480
  logger.warn("min cannot be greater than max.");
@@ -481,15 +492,15 @@ function clampToRange(value, min, max, logger, fallbackValue) {
481
492
  return clampToRange(max, min, max, logger);
482
493
  }
483
494
  var init_number_utils = __esm({
484
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
495
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/number-utils.mjs"() {
485
496
  init_type_utils();
486
497
  }
487
498
  });
488
499
 
489
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
500
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs
490
501
  var ONE_DAY_IN_MS, BucketedRateLimiter;
491
502
  var init_bucketed_rate_limiter = __esm({
492
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
503
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/bucketed-rate-limiter.mjs"() {
493
504
  init_number_utils();
494
505
  ONE_DAY_IN_MS = 864e5;
495
506
  BucketedRateLimiter = class {
@@ -533,10 +544,10 @@ var init_bucketed_rate_limiter = __esm({
533
544
  }
534
545
  });
535
546
 
536
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs
547
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/promise-queue.mjs
537
548
  var PromiseQueue;
538
549
  var init_promise_queue = __esm({
539
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
550
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/promise-queue.mjs"() {
540
551
  init_uuidv7();
541
552
  PromiseQueue = class {
542
553
  add(promise) {
@@ -567,7 +578,7 @@ var init_promise_queue = __esm({
567
578
  }
568
579
  });
569
580
 
570
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/logger.mjs
581
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/logger.mjs
571
582
  function createConsole(consoleLike = console) {
572
583
  const lockedMethods = {
573
584
  log: consoleLike.log.bind(consoleLike),
@@ -582,7 +593,7 @@ function createLogger(prefix, maybeCall = passThrough) {
582
593
  }
583
594
  var _createLogger, passThrough;
584
595
  var init_logger = __esm({
585
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/logger.mjs"() {
596
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/logger.mjs"() {
586
597
  _createLogger = (prefix, maybeCall, consoleLike) => {
587
598
  function _log(level, ...args) {
588
599
  maybeCall(() => {
@@ -611,10 +622,10 @@ var init_logger = __esm({
611
622
  }
612
623
  });
613
624
 
614
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
625
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs
615
626
  var MOBILE, TABLET, GENERIC;
616
627
  var init_user_agent_utils = __esm({
617
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
628
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/user-agent-utils.mjs"() {
618
629
  init_string_utils();
619
630
  init_type_utils();
620
631
  MOBILE = "Mobile";
@@ -625,7 +636,7 @@ var init_user_agent_utils = __esm({
625
636
  }
626
637
  });
627
638
 
628
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/index.mjs
639
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/index.mjs
629
640
  function assert(truthyValue, message) {
630
641
  if (!truthyValue || "string" != typeof truthyValue || isEmpty(truthyValue)) throw new Error(message);
631
642
  }
@@ -669,7 +680,7 @@ function allSettled(promises) {
669
680
  }
670
681
  var STRING_FORMAT, isError;
671
682
  var init_utils = __esm({
672
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/utils/index.mjs"() {
683
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/utils/index.mjs"() {
673
684
  init_bot_detection();
674
685
  init_bucketed_rate_limiter();
675
686
  init_number_utils();
@@ -683,10 +694,10 @@ var init_utils = __esm({
683
694
  }
684
695
  });
685
696
 
686
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/eventemitter.mjs
697
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/eventemitter.mjs
687
698
  var SimpleEventEmitter;
688
699
  var init_eventemitter = __esm({
689
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/eventemitter.mjs"() {
700
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/eventemitter.mjs"() {
690
701
  SimpleEventEmitter = class {
691
702
  constructor() {
692
703
  this.events = {};
@@ -707,7 +718,7 @@ var init_eventemitter = __esm({
707
718
  }
708
719
  });
709
720
 
710
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/gzip.mjs
721
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/gzip.mjs
711
722
  function isGzipSupported() {
712
723
  return "CompressionStream" in globalThis;
713
724
  }
@@ -726,11 +737,11 @@ async function gzipCompress(input, isDebug = true) {
726
737
  }
727
738
  }
728
739
  var init_gzip = __esm({
729
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/gzip.mjs"() {
740
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/gzip.mjs"() {
730
741
  }
731
742
  });
732
743
 
733
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
744
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core-stateless.mjs
734
745
  async function logFlushError(err) {
735
746
  if (err instanceof PostHogFetchHttpError) {
736
747
  let text = "";
@@ -750,7 +761,7 @@ function isPostHogFetchContentTooLargeError(err) {
750
761
  }
751
762
  var PostHogFetchHttpError, PostHogFetchNetworkError, PostHogCoreStateless;
752
763
  var init_posthog_core_stateless = __esm({
753
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
764
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core-stateless.mjs"() {
754
765
  init_eventemitter();
755
766
  init_featureFlagUtils();
756
767
  init_gzip();
@@ -806,10 +817,11 @@ var init_posthog_core_stateless = __esm({
806
817
  this.disableGeoip = options.disableGeoip ?? true;
807
818
  this.disabled = options.disabled ?? false;
808
819
  this.historicalMigration = options?.historicalMigration ?? false;
809
- this.evaluationEnvironments = options?.evaluationEnvironments;
810
820
  this._initPromise = Promise.resolve();
811
821
  this._isInitialized = true;
812
822
  this._logger = createLogger("[PostHog]", this.logMsgIfDebug.bind(this));
823
+ this.evaluationContexts = options?.evaluationContexts ?? options?.evaluationEnvironments;
824
+ if (options?.evaluationEnvironments && !options?.evaluationContexts) this._logger.warn("evaluationEnvironments is deprecated. Use evaluationContexts instead. This property will be removed in a future version.");
813
825
  this.disableCompression = !isGzipSupported() || (options?.disableCompression ?? false);
814
826
  }
815
827
  logMsgIfDebug(fn) {
@@ -984,7 +996,7 @@ var init_posthog_core_stateless = __esm({
984
996
  group_properties: groupProperties,
985
997
  ...extraPayload
986
998
  };
987
- if (this.evaluationEnvironments && this.evaluationEnvironments.length > 0) requestData.evaluation_environments = this.evaluationEnvironments;
999
+ if (this.evaluationContexts && this.evaluationContexts.length > 0) requestData.evaluation_contexts = this.evaluationContexts;
988
1000
  const fetchOptions = {
989
1001
  method: "POST",
990
1002
  headers: {
@@ -996,10 +1008,35 @@ var init_posthog_core_stateless = __esm({
996
1008
  this._logger.info("Flags URL", url);
997
1009
  return this.fetchWithRetry(url, fetchOptions, {
998
1010
  retryCount: 0
999
- }, this.featureFlagsRequestTimeoutMs).then((response) => response.json()).then((response) => normalizeFlagsResponse(response)).catch((error) => {
1011
+ }, this.featureFlagsRequestTimeoutMs).then((response) => response.json()).then((response) => ({
1012
+ success: true,
1013
+ response: normalizeFlagsResponse(response)
1014
+ })).catch((error) => {
1000
1015
  this._events.emit("error", error);
1016
+ return {
1017
+ success: false,
1018
+ error: this.categorizeRequestError(error)
1019
+ };
1001
1020
  });
1002
1021
  }
1022
+ categorizeRequestError(error) {
1023
+ if (error instanceof PostHogFetchHttpError) return {
1024
+ type: "api_error",
1025
+ statusCode: error.status
1026
+ };
1027
+ if (error instanceof PostHogFetchNetworkError) {
1028
+ const cause = error.error;
1029
+ if (cause instanceof Error && ("AbortError" === cause.name || "TimeoutError" === cause.name)) return {
1030
+ type: "timeout"
1031
+ };
1032
+ return {
1033
+ type: "connection_error"
1034
+ };
1035
+ }
1036
+ return {
1037
+ type: "unknown_error"
1038
+ };
1039
+ }
1003
1040
  async getFeatureFlagStateless(key, distinctId, groups = {}, personProperties = {}, groupProperties = {}, disableGeoip) {
1004
1041
  await this._initPromise;
1005
1042
  const flagDetailResponse = await this.getFeatureFlagDetailStateless(key, distinctId, groups, personProperties, groupProperties, disableGeoip);
@@ -1066,8 +1103,9 @@ var init_posthog_core_stateless = __esm({
1066
1103
  const extraPayload = {};
1067
1104
  if (disableGeoip ?? this.disableGeoip) extraPayload["geoip_disable"] = true;
1068
1105
  if (flagKeysToEvaluate) extraPayload["flag_keys_to_evaluate"] = flagKeysToEvaluate;
1069
- const flagsResponse = await this.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload);
1070
- if (void 0 === flagsResponse) return;
1106
+ const result = await this.getFlags(distinctId, groups, personProperties, groupProperties, extraPayload);
1107
+ if (!result.success) return;
1108
+ const flagsResponse = result.response;
1071
1109
  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");
1072
1110
  if (flagsResponse.quotaLimited?.includes("feature_flags")) {
1073
1111
  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");
@@ -1134,10 +1172,15 @@ var init_posthog_core_stateless = __esm({
1134
1172
  this.setPersistedProperty(types_PostHogPersistedProperty.Props, this.props);
1135
1173
  });
1136
1174
  }
1175
+ processBeforeEnqueue(message) {
1176
+ return message;
1177
+ }
1137
1178
  enqueue(type, _message, options) {
1138
1179
  this.wrap(() => {
1139
1180
  if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
1140
- const message = this.prepareMessage(type, _message, options);
1181
+ let message = this.prepareMessage(type, _message, options);
1182
+ message = this.processBeforeEnqueue(message);
1183
+ if (null === message) return;
1141
1184
  const queue = this.getPersistedProperty(types_PostHogPersistedProperty.Queue) || [];
1142
1185
  if (queue.length >= this.maxQueueSize) {
1143
1186
  queue.shift();
@@ -1156,10 +1199,13 @@ var init_posthog_core_stateless = __esm({
1156
1199
  if (this.disabled) return void this._logger.warn("The client is disabled");
1157
1200
  if (!this._isInitialized) await this._initPromise;
1158
1201
  if (this.optedOut) return void this._events.emit(type, "Library is disabled. Not sending event. To re-enable, call posthog.optIn()");
1202
+ let message = this.prepareMessage(type, _message, options);
1203
+ message = this.processBeforeEnqueue(message);
1204
+ if (null === message) return;
1159
1205
  const data = {
1160
1206
  api_key: this.apiKey,
1161
1207
  batch: [
1162
- this.prepareMessage(type, _message, options)
1208
+ message
1163
1209
  ],
1164
1210
  sent_at: currentISOTime()
1165
1211
  };
@@ -1368,9 +1414,9 @@ var init_posthog_core_stateless = __esm({
1368
1414
  }
1369
1415
  });
1370
1416
 
1371
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core.mjs
1417
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core.mjs
1372
1418
  var init_posthog_core = __esm({
1373
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1419
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/posthog-core.mjs"() {
1374
1420
  init_featureFlagUtils();
1375
1421
  init_types();
1376
1422
  init_posthog_core_stateless();
@@ -1379,7 +1425,7 @@ var init_posthog_core = __esm({
1379
1425
  }
1380
1426
  });
1381
1427
 
1382
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1428
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs
1383
1429
  function getFilenameToChunkIdMap(stackParser) {
1384
1430
  const chunkIdMap = globalThis._posthogChunkIds;
1385
1431
  if (!chunkIdMap) return;
@@ -1412,14 +1458,14 @@ function getFilenameToChunkIdMap(stackParser) {
1412
1458
  }
1413
1459
  var parsedStackResults, lastKeysCount, cachedFilenameChunkIds;
1414
1460
  var init_chunk_ids = __esm({
1415
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1461
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/chunk-ids.mjs"() {
1416
1462
  }
1417
1463
  });
1418
1464
 
1419
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1465
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs
1420
1466
  var MAX_CAUSE_RECURSION, ErrorPropertiesBuilder;
1421
1467
  var init_error_properties_builder = __esm({
1422
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1468
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/error-properties-builder.mjs"() {
1423
1469
  init_utils();
1424
1470
  init_chunk_ids();
1425
1471
  MAX_CAUSE_RECURSION = 4;
@@ -1533,7 +1579,7 @@ var init_error_properties_builder = __esm({
1533
1579
  }
1534
1580
  });
1535
1581
 
1536
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1582
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs
1537
1583
  function createFrame(platform, filename, func, lineno, colno) {
1538
1584
  const frame = {
1539
1585
  platform,
@@ -1547,16 +1593,16 @@ function createFrame(platform, filename, func, lineno, colno) {
1547
1593
  }
1548
1594
  var UNKNOWN_FUNCTION;
1549
1595
  var init_base = __esm({
1550
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1596
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/base.mjs"() {
1551
1597
  init_utils();
1552
1598
  UNKNOWN_FUNCTION = "?";
1553
1599
  }
1554
1600
  });
1555
1601
 
1556
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1602
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs
1557
1603
  var extractSafariExtensionDetails;
1558
1604
  var init_safari = __esm({
1559
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1605
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/safari.mjs"() {
1560
1606
  init_base();
1561
1607
  extractSafariExtensionDetails = (func, filename) => {
1562
1608
  const isSafariExtension = -1 !== func.indexOf("safari-extension");
@@ -1572,10 +1618,10 @@ var init_safari = __esm({
1572
1618
  }
1573
1619
  });
1574
1620
 
1575
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1621
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs
1576
1622
  var chromeRegexNoFnName, chromeRegex, chromeEvalRegex, chromeStackLineParser;
1577
1623
  var init_chrome = __esm({
1578
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1624
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/chrome.mjs"() {
1579
1625
  init_base();
1580
1626
  init_safari();
1581
1627
  chromeRegexNoFnName = /^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i;
@@ -1605,10 +1651,10 @@ var init_chrome = __esm({
1605
1651
  }
1606
1652
  });
1607
1653
 
1608
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1654
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs
1609
1655
  var geckoREgex, geckoEvalRegex, geckoStackLineParser;
1610
1656
  var init_gecko = __esm({
1611
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1657
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/gecko.mjs"() {
1612
1658
  init_base();
1613
1659
  init_safari();
1614
1660
  geckoREgex = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i;
@@ -1635,10 +1681,10 @@ var init_gecko = __esm({
1635
1681
  }
1636
1682
  });
1637
1683
 
1638
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1684
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs
1639
1685
  var winjsRegex, winjsStackLineParser;
1640
1686
  var init_winjs = __esm({
1641
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1687
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/winjs.mjs"() {
1642
1688
  init_base();
1643
1689
  winjsRegex = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i;
1644
1690
  winjsStackLineParser = (line, platform) => {
@@ -1648,10 +1694,10 @@ var init_winjs = __esm({
1648
1694
  }
1649
1695
  });
1650
1696
 
1651
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1697
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs
1652
1698
  var opera10Regex, opera10StackLineParser, opera11Regex, opera11StackLineParser;
1653
1699
  var init_opera = __esm({
1654
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1700
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/opera.mjs"() {
1655
1701
  init_base();
1656
1702
  opera10Regex = / line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i;
1657
1703
  opera10StackLineParser = (line, platform) => {
@@ -1666,7 +1712,7 @@ var init_opera = __esm({
1666
1712
  }
1667
1713
  });
1668
1714
 
1669
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1715
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs
1670
1716
  function filenameIsInApp(filename, isNative = false) {
1671
1717
  const isInternal = isNative || filename && !filename.startsWith("/") && !filename.match(/^[A-Z]:/) && !filename.startsWith(".") && !filename.match(/^[a-zA-Z]([a-zA-Z0-9.\-+])*:\/\//);
1672
1718
  return !isInternal && void 0 !== filename && !filename.includes("node_modules/");
@@ -1676,7 +1722,7 @@ function _parseIntOrUndefined(input) {
1676
1722
  }
1677
1723
  var FILENAME_MATCH, FULL_MATCH, nodeStackLineParser;
1678
1724
  var init_node = __esm({
1679
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1725
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/node.mjs"() {
1680
1726
  init_base();
1681
1727
  FILENAME_MATCH = /^\s*[-]{4,}$/;
1682
1728
  FULL_MATCH = /at (?:async )?(?:(.+?)\s+\()?(?:(.+):(\d+):(\d+)?|([^)]+))\)?/;
@@ -1737,7 +1783,7 @@ var init_node = __esm({
1737
1783
  }
1738
1784
  });
1739
1785
 
1740
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1786
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs
1741
1787
  function reverseAndStripFrames(stack) {
1742
1788
  if (!stack.length) return [];
1743
1789
  const localStack = Array.from(stack);
@@ -1778,7 +1824,7 @@ function createStackParser(platform, ...parsers) {
1778
1824
  }
1779
1825
  var WEBPACK_ERROR_REGEXP, STACKTRACE_FRAME_LIMIT;
1780
1826
  var init_parsers = __esm({
1781
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1827
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/parsers/index.mjs"() {
1782
1828
  init_base();
1783
1829
  init_chrome();
1784
1830
  init_gecko();
@@ -1790,10 +1836,10 @@ var init_parsers = __esm({
1790
1836
  }
1791
1837
  });
1792
1838
 
1793
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1839
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs
1794
1840
  var DOMExceptionCoercer;
1795
1841
  var init_dom_exception_coercer = __esm({
1796
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1842
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/dom-exception-coercer.mjs"() {
1797
1843
  init_utils();
1798
1844
  DOMExceptionCoercer = class {
1799
1845
  match(err) {
@@ -1827,10 +1873,10 @@ var init_dom_exception_coercer = __esm({
1827
1873
  }
1828
1874
  });
1829
1875
 
1830
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1876
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs
1831
1877
  var ErrorCoercer;
1832
1878
  var init_error_coercer = __esm({
1833
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1879
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-coercer.mjs"() {
1834
1880
  init_utils();
1835
1881
  ErrorCoercer = class {
1836
1882
  match(err) {
@@ -1860,10 +1906,10 @@ var init_error_coercer = __esm({
1860
1906
  }
1861
1907
  });
1862
1908
 
1863
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1909
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs
1864
1910
  var ErrorEventCoercer;
1865
1911
  var init_error_event_coercer = __esm({
1866
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1912
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/error-event-coercer.mjs"() {
1867
1913
  init_utils();
1868
1914
  ErrorEventCoercer = class {
1869
1915
  constructor() {
@@ -1885,10 +1931,10 @@ var init_error_event_coercer = __esm({
1885
1931
  }
1886
1932
  });
1887
1933
 
1888
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1934
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs
1889
1935
  var ERROR_TYPES_PATTERN, StringCoercer;
1890
1936
  var init_string_coercer = __esm({
1891
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1937
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/string-coercer.mjs"() {
1892
1938
  ERROR_TYPES_PATTERN = /^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;
1893
1939
  StringCoercer = class {
1894
1940
  match(input) {
@@ -1920,10 +1966,10 @@ var init_string_coercer = __esm({
1920
1966
  }
1921
1967
  });
1922
1968
 
1923
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/types.mjs
1969
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/types.mjs
1924
1970
  var severityLevels;
1925
1971
  var init_types2 = __esm({
1926
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
1972
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/types.mjs"() {
1927
1973
  severityLevels = [
1928
1974
  "fatal",
1929
1975
  "error",
@@ -1935,7 +1981,7 @@ var init_types2 = __esm({
1935
1981
  }
1936
1982
  });
1937
1983
 
1938
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
1984
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs
1939
1985
  function extractExceptionKeysForMessage(err, maxLength = 40) {
1940
1986
  const keys = Object.keys(err);
1941
1987
  keys.sort();
@@ -1950,14 +1996,14 @@ function extractExceptionKeysForMessage(err, maxLength = 40) {
1950
1996
  return "";
1951
1997
  }
1952
1998
  var init_utils2 = __esm({
1953
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
1999
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/utils.mjs"() {
1954
2000
  }
1955
2001
  });
1956
2002
 
1957
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
2003
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs
1958
2004
  var ObjectCoercer;
1959
2005
  var init_object_coercer = __esm({
1960
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
2006
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/object-coercer.mjs"() {
1961
2007
  init_utils();
1962
2008
  init_types2();
1963
2009
  init_utils2();
@@ -2011,10 +2057,10 @@ var init_object_coercer = __esm({
2011
2057
  }
2012
2058
  });
2013
2059
 
2014
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2060
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs
2015
2061
  var EventCoercer;
2016
2062
  var init_event_coercer = __esm({
2017
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2063
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/event-coercer.mjs"() {
2018
2064
  init_utils();
2019
2065
  init_utils2();
2020
2066
  EventCoercer = class {
@@ -2034,10 +2080,10 @@ var init_event_coercer = __esm({
2034
2080
  }
2035
2081
  });
2036
2082
 
2037
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2083
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs
2038
2084
  var PrimitiveCoercer;
2039
2085
  var init_primitive_coercer = __esm({
2040
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2086
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/primitive-coercer.mjs"() {
2041
2087
  init_utils();
2042
2088
  PrimitiveCoercer = class {
2043
2089
  match(candidate) {
@@ -2055,10 +2101,10 @@ var init_primitive_coercer = __esm({
2055
2101
  }
2056
2102
  });
2057
2103
 
2058
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2104
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs
2059
2105
  var PromiseRejectionEventCoercer;
2060
2106
  var init_promise_rejection_event = __esm({
2061
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2107
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/promise-rejection-event.mjs"() {
2062
2108
  init_utils();
2063
2109
  PromiseRejectionEventCoercer = class {
2064
2110
  match(err) {
@@ -2087,9 +2133,9 @@ var init_promise_rejection_event = __esm({
2087
2133
  }
2088
2134
  });
2089
2135
 
2090
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2136
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs
2091
2137
  var init_coercers = __esm({
2092
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2138
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/coercers/index.mjs"() {
2093
2139
  init_dom_exception_coercer();
2094
2140
  init_error_coercer();
2095
2141
  init_error_event_coercer();
@@ -2101,10 +2147,10 @@ var init_coercers = __esm({
2101
2147
  }
2102
2148
  });
2103
2149
 
2104
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2150
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/utils.mjs
2105
2151
  var ReduceableCache;
2106
2152
  var init_utils3 = __esm({
2107
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2153
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/utils.mjs"() {
2108
2154
  ReduceableCache = class {
2109
2155
  constructor(_maxSize) {
2110
2156
  this._maxSize = _maxSize;
@@ -2130,7 +2176,7 @@ var init_utils3 = __esm({
2130
2176
  }
2131
2177
  });
2132
2178
 
2133
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/index.mjs
2179
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/index.mjs
2134
2180
  var error_tracking_exports = {};
2135
2181
  __export(error_tracking_exports, {
2136
2182
  DOMExceptionCoercer: () => DOMExceptionCoercer,
@@ -2154,7 +2200,7 @@ __export(error_tracking_exports, {
2154
2200
  winjsStackLineParser: () => winjsStackLineParser
2155
2201
  });
2156
2202
  var init_error_tracking = __esm({
2157
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2203
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/error-tracking/index.mjs"() {
2158
2204
  init_error_properties_builder();
2159
2205
  init_parsers();
2160
2206
  init_coercers();
@@ -2162,9 +2208,9 @@ var init_error_tracking = __esm({
2162
2208
  }
2163
2209
  });
2164
2210
 
2165
- // ../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/index.mjs
2211
+ // ../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/index.mjs
2166
2212
  var init_dist = __esm({
2167
- "../../node_modules/.pnpm/@posthog+core@1.9.1/node_modules/@posthog/core/dist/index.mjs"() {
2213
+ "../../node_modules/.pnpm/@posthog+core@1.14.0/node_modules/@posthog/core/dist/index.mjs"() {
2168
2214
  init_featureFlagUtils();
2169
2215
  init_uuidv7();
2170
2216
  init_utils();
@@ -2355,7 +2401,7 @@ function snipLine(line, colno) {
2355
2401
  }
2356
2402
  var LRU_FILE_CONTENTS_CACHE, LRU_FILE_CONTENTS_FS_READ_FAILED, DEFAULT_LINES_OF_CONTEXT, MAX_CONTEXTLINES_COLNO, MAX_CONTEXTLINES_LINENO;
2357
2403
  var init_context_lines_node = __esm({
2358
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2404
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/modifiers/context-lines.node.mjs"() {
2359
2405
  init_dist();
2360
2406
  LRU_FILE_CONTENTS_CACHE = new error_tracking_exports.ReduceableCache(25);
2361
2407
  LRU_FILE_CONTENTS_FS_READ_FAILED = new error_tracking_exports.ReduceableCache(20);
@@ -2365,7 +2411,7 @@ var init_context_lines_node = __esm({
2365
2411
  }
2366
2412
  });
2367
2413
 
2368
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2414
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs
2369
2415
  function makeUncaughtExceptionHandler(captureFn, onFatalFn) {
2370
2416
  let calledFatalError = false;
2371
2417
  return Object.assign((error) => {
@@ -2397,14 +2443,14 @@ function addUnhandledRejectionListener(captureFn) {
2397
2443
  }));
2398
2444
  }
2399
2445
  var init_autocapture = __esm({
2400
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2446
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/autocapture.mjs"() {
2401
2447
  }
2402
2448
  });
2403
2449
 
2404
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2450
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs
2405
2451
  var SHUTDOWN_TIMEOUT, ErrorTracking;
2406
2452
  var init_error_tracking2 = __esm({
2407
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2453
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/error-tracking/index.mjs"() {
2408
2454
  init_autocapture();
2409
2455
  init_dist();
2410
2456
  SHUTDOWN_TIMEOUT = 2e3;
@@ -2475,19 +2521,19 @@ var init_error_tracking2 = __esm({
2475
2521
  }
2476
2522
  });
2477
2523
 
2478
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/version.mjs
2524
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/version.mjs
2479
2525
  var version;
2480
2526
  var init_version = __esm({
2481
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/version.mjs"() {
2482
- version = "5.21.0";
2527
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/version.mjs"() {
2528
+ version = "5.24.2";
2483
2529
  }
2484
2530
  });
2485
2531
 
2486
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/types.mjs
2487
- var FeatureFlagError;
2532
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/types.mjs
2533
+ var FeatureFlagError2;
2488
2534
  var init_types3 = __esm({
2489
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/types.mjs"() {
2490
- FeatureFlagError = {
2535
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/types.mjs"() {
2536
+ FeatureFlagError2 = {
2491
2537
  ERRORS_WHILE_COMPUTING: "errors_while_computing_flags",
2492
2538
  FLAG_MISSING: "flag_missing",
2493
2539
  QUOTA_LIMITED: "quota_limited",
@@ -2496,7 +2542,7 @@ var init_types3 = __esm({
2496
2542
  }
2497
2543
  });
2498
2544
 
2499
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2545
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs
2500
2546
  async function hashSHA1(text) {
2501
2547
  const subtle = globalThis.crypto?.subtle;
2502
2548
  if (!subtle) throw new Error("SubtleCrypto API not available");
@@ -2505,11 +2551,11 @@ async function hashSHA1(text) {
2505
2551
  return hashArray.map((byte) => byte.toString(16).padStart(2, "0")).join("");
2506
2552
  }
2507
2553
  var init_crypto = __esm({
2508
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2554
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/crypto.mjs"() {
2509
2555
  }
2510
2556
  });
2511
2557
 
2512
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2558
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs
2513
2559
  async function _hash(key, distinctId, salt = "") {
2514
2560
  const hashString = await hashSHA1(`${key}.${distinctId}${salt}`);
2515
2561
  return parseInt(hashString.slice(0, 15), 16) / LONG_SCALE;
@@ -2677,7 +2723,7 @@ function relativeDateParseForFeatureFlagMatching(value) {
2677
2723
  }
2678
2724
  var SIXTY_SECONDS, LONG_SCALE, NULL_VALUES_ALLOWED_OPERATORS, ClientError, InconclusiveMatchError, RequiresServerEvaluation, FeatureFlagsPoller;
2679
2725
  var init_feature_flags = __esm({
2680
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2726
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/feature-flags/feature-flags.mjs"() {
2681
2727
  init_dist();
2682
2728
  init_crypto();
2683
2729
  SIXTY_SECONDS = 6e4;
@@ -3090,10 +3136,10 @@ var init_feature_flags = __esm({
3090
3136
  }
3091
3137
  });
3092
3138
 
3093
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/storage-memory.mjs
3139
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/storage-memory.mjs
3094
3140
  var PostHogMemoryStorage;
3095
3141
  var init_storage_memory = __esm({
3096
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/storage-memory.mjs"() {
3142
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/storage-memory.mjs"() {
3097
3143
  PostHogMemoryStorage = class {
3098
3144
  getProperty(key) {
3099
3145
  return this._memoryStorage[key];
@@ -3108,10 +3154,10 @@ var init_storage_memory = __esm({
3108
3154
  }
3109
3155
  });
3110
3156
 
3111
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/client.mjs
3157
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/client.mjs
3112
3158
  var MINIMUM_POLLING_INTERVAL, THIRTY_SECONDS, MAX_CACHE_SIZE, PostHogBackendClient;
3113
3159
  var init_client = __esm({
3114
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/client.mjs"() {
3160
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/client.mjs"() {
3115
3161
  init_version();
3116
3162
  init_dist();
3117
3163
  init_types3();
@@ -3251,94 +3297,148 @@ var init_client = __esm({
3251
3297
  });
3252
3298
  });
3253
3299
  }
3254
- async getFeatureFlag(key, distinctId, options) {
3255
- if (void 0 !== this._flagOverrides && key in this._flagOverrides) return this._flagOverrides[key];
3256
- const { groups, disableGeoip } = options || {};
3257
- let { onlyEvaluateLocally, sendFeatureFlagEvents, personProperties, groupProperties } = options || {};
3300
+ async _getFeatureFlagResult(key, distinctId, options = {}, matchValue) {
3301
+ const sendFeatureFlagEvents = options.sendFeatureFlagEvents ?? true;
3302
+ if (void 0 !== this._flagOverrides && key in this._flagOverrides) {
3303
+ const overrideValue = this._flagOverrides[key];
3304
+ if (void 0 === overrideValue) return;
3305
+ const overridePayload = this._payloadOverrides?.[key];
3306
+ return {
3307
+ key,
3308
+ enabled: false !== overrideValue,
3309
+ variant: "string" == typeof overrideValue ? overrideValue : void 0,
3310
+ payload: overridePayload
3311
+ };
3312
+ }
3313
+ const { groups, disableGeoip } = options;
3314
+ let { onlyEvaluateLocally, personProperties, groupProperties } = options;
3258
3315
  const adjustedProperties = this.addLocalPersonAndGroupProperties(distinctId, groups, personProperties, groupProperties);
3259
3316
  personProperties = adjustedProperties.allPersonProperties;
3260
3317
  groupProperties = adjustedProperties.allGroupProperties;
3261
3318
  if (void 0 == onlyEvaluateLocally) onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
3262
- if (void 0 == sendFeatureFlagEvents) sendFeatureFlagEvents = this.options.sendFeatureFlagEvent ?? true;
3263
- let response = await this.featureFlagsPoller?.getFeatureFlag(key, distinctId, groups, personProperties, groupProperties);
3264
- const flagWasLocallyEvaluated = void 0 !== response;
3319
+ let result;
3320
+ let flagWasLocallyEvaluated = false;
3265
3321
  let requestId;
3266
3322
  let evaluatedAt;
3267
- let flagDetail;
3268
3323
  let featureFlagError;
3324
+ let flagId;
3325
+ let flagVersion;
3326
+ let flagReason;
3327
+ const localEvaluationEnabled = void 0 !== this.featureFlagsPoller;
3328
+ if (localEvaluationEnabled) {
3329
+ await this.featureFlagsPoller?.loadFeatureFlags();
3330
+ const flag = this.featureFlagsPoller?.featureFlagsByKey[key];
3331
+ if (flag) try {
3332
+ const localResult = await this.featureFlagsPoller?.computeFlagAndPayloadLocally(flag, distinctId, groups, personProperties, groupProperties, matchValue);
3333
+ if (localResult) {
3334
+ flagWasLocallyEvaluated = true;
3335
+ const value = localResult.value;
3336
+ flagId = flag.id;
3337
+ flagReason = "Evaluated locally";
3338
+ result = {
3339
+ key,
3340
+ enabled: false !== value,
3341
+ variant: "string" == typeof value ? value : void 0,
3342
+ payload: localResult.payload ?? void 0
3343
+ };
3344
+ }
3345
+ } catch (e) {
3346
+ if (e instanceof RequiresServerEvaluation || e instanceof InconclusiveMatchError) this._logger?.info(`${e.name} when computing flag locally: ${key}: ${e.message}`);
3347
+ else throw e;
3348
+ }
3349
+ }
3269
3350
  if (!flagWasLocallyEvaluated && !onlyEvaluateLocally) {
3270
3351
  const flagsResponse = await super.getFeatureFlagDetailsStateless(distinctId, groups, personProperties, groupProperties, disableGeoip, [
3271
3352
  key
3272
3353
  ]);
3273
- if (void 0 === flagsResponse) featureFlagError = FeatureFlagError.UNKNOWN_ERROR;
3354
+ if (void 0 === flagsResponse) featureFlagError = FeatureFlagError2.UNKNOWN_ERROR;
3274
3355
  else {
3275
3356
  requestId = flagsResponse.requestId;
3276
3357
  evaluatedAt = flagsResponse.evaluatedAt;
3277
3358
  const errors = [];
3278
- if (flagsResponse.errorsWhileComputingFlags) errors.push(FeatureFlagError.ERRORS_WHILE_COMPUTING);
3279
- if (flagsResponse.quotaLimited?.includes("feature_flags")) errors.push(FeatureFlagError.QUOTA_LIMITED);
3280
- flagDetail = flagsResponse.flags[key];
3281
- if (void 0 === flagDetail) errors.push(FeatureFlagError.FLAG_MISSING);
3359
+ if (flagsResponse.errorsWhileComputingFlags) errors.push(FeatureFlagError2.ERRORS_WHILE_COMPUTING);
3360
+ if (flagsResponse.quotaLimited?.includes("feature_flags")) errors.push(FeatureFlagError2.QUOTA_LIMITED);
3361
+ const flagDetail = flagsResponse.flags[key];
3362
+ if (void 0 === flagDetail) errors.push(FeatureFlagError2.FLAG_MISSING);
3363
+ else {
3364
+ flagId = flagDetail.metadata?.id;
3365
+ flagVersion = flagDetail.metadata?.version;
3366
+ flagReason = flagDetail.reason?.description ?? flagDetail.reason?.code;
3367
+ let parsedPayload;
3368
+ if (flagDetail.metadata?.payload !== void 0) try {
3369
+ parsedPayload = JSON.parse(flagDetail.metadata.payload);
3370
+ } catch {
3371
+ parsedPayload = flagDetail.metadata.payload;
3372
+ }
3373
+ result = {
3374
+ key,
3375
+ enabled: flagDetail.enabled,
3376
+ variant: flagDetail.variant,
3377
+ payload: parsedPayload
3378
+ };
3379
+ }
3282
3380
  if (errors.length > 0) featureFlagError = errors.join(",");
3283
- response = getFeatureFlagValue(flagDetail);
3284
3381
  }
3285
3382
  }
3286
- const featureFlagReportedKey = `${key}_${response}`;
3287
- if (sendFeatureFlagEvents && (!(distinctId in this.distinctIdHasSentFlagCalls) || !this.distinctIdHasSentFlagCalls[distinctId].includes(featureFlagReportedKey))) {
3288
- if (Object.keys(this.distinctIdHasSentFlagCalls).length >= this.maxCacheSize) this.distinctIdHasSentFlagCalls = {};
3289
- if (Array.isArray(this.distinctIdHasSentFlagCalls[distinctId])) this.distinctIdHasSentFlagCalls[distinctId].push(featureFlagReportedKey);
3290
- else this.distinctIdHasSentFlagCalls[distinctId] = [
3291
- featureFlagReportedKey
3292
- ];
3293
- const properties = {
3294
- $feature_flag: key,
3295
- $feature_flag_response: response,
3296
- $feature_flag_id: flagDetail?.metadata?.id,
3297
- $feature_flag_version: flagDetail?.metadata?.version,
3298
- $feature_flag_reason: flagDetail?.reason?.description ?? flagDetail?.reason?.code,
3299
- locally_evaluated: flagWasLocallyEvaluated,
3300
- [`$feature/${key}`]: response,
3301
- $feature_flag_request_id: requestId,
3302
- $feature_flag_evaluated_at: evaluatedAt
3303
- };
3304
- if (featureFlagError) properties.$feature_flag_error = featureFlagError;
3305
- this.capture({
3306
- distinctId,
3307
- event: "$feature_flag_called",
3308
- properties,
3309
- groups,
3310
- disableGeoip
3311
- });
3383
+ if (sendFeatureFlagEvents) {
3384
+ const response = void 0 === result ? void 0 : false === result.enabled ? false : result.variant ?? true;
3385
+ const featureFlagReportedKey = `${key}_${response}`;
3386
+ if (!(distinctId in this.distinctIdHasSentFlagCalls) || !this.distinctIdHasSentFlagCalls[distinctId].includes(featureFlagReportedKey)) {
3387
+ if (Object.keys(this.distinctIdHasSentFlagCalls).length >= this.maxCacheSize) this.distinctIdHasSentFlagCalls = {};
3388
+ if (Array.isArray(this.distinctIdHasSentFlagCalls[distinctId])) this.distinctIdHasSentFlagCalls[distinctId].push(featureFlagReportedKey);
3389
+ else this.distinctIdHasSentFlagCalls[distinctId] = [
3390
+ featureFlagReportedKey
3391
+ ];
3392
+ const properties = {
3393
+ $feature_flag: key,
3394
+ $feature_flag_response: response,
3395
+ $feature_flag_id: flagId,
3396
+ $feature_flag_version: flagVersion,
3397
+ $feature_flag_reason: flagReason,
3398
+ locally_evaluated: flagWasLocallyEvaluated,
3399
+ [`$feature/${key}`]: response,
3400
+ $feature_flag_request_id: requestId,
3401
+ $feature_flag_evaluated_at: evaluatedAt
3402
+ };
3403
+ if (featureFlagError) properties.$feature_flag_error = featureFlagError;
3404
+ this.capture({
3405
+ distinctId,
3406
+ event: "$feature_flag_called",
3407
+ properties,
3408
+ groups,
3409
+ disableGeoip
3410
+ });
3411
+ }
3312
3412
  }
3313
- return response;
3413
+ if (void 0 !== result && void 0 !== this._payloadOverrides && key in this._payloadOverrides) result = {
3414
+ ...result,
3415
+ payload: this._payloadOverrides[key]
3416
+ };
3417
+ return result;
3418
+ }
3419
+ async getFeatureFlag(key, distinctId, options) {
3420
+ const result = await this._getFeatureFlagResult(key, distinctId, {
3421
+ ...options,
3422
+ sendFeatureFlagEvents: options?.sendFeatureFlagEvents ?? this.options.sendFeatureFlagEvent ?? true
3423
+ });
3424
+ if (void 0 === result) return;
3425
+ if (false === result.enabled) return false;
3426
+ return result.variant ?? true;
3314
3427
  }
3315
3428
  async getFeatureFlagPayload(key, distinctId, matchValue, options) {
3316
3429
  if (void 0 !== this._payloadOverrides && key in this._payloadOverrides) return this._payloadOverrides[key];
3317
- const { groups, disableGeoip } = options || {};
3318
- let { onlyEvaluateLocally, personProperties, groupProperties } = options || {};
3319
- const adjustedProperties = this.addLocalPersonAndGroupProperties(distinctId, groups, personProperties, groupProperties);
3320
- personProperties = adjustedProperties.allPersonProperties;
3321
- groupProperties = adjustedProperties.allGroupProperties;
3322
- let response;
3323
- const localEvaluationEnabled = void 0 !== this.featureFlagsPoller;
3324
- if (localEvaluationEnabled) {
3325
- await this.featureFlagsPoller?.loadFeatureFlags();
3326
- const flag = this.featureFlagsPoller?.featureFlagsByKey[key];
3327
- if (flag) try {
3328
- const result = await this.featureFlagsPoller?.computeFlagAndPayloadLocally(flag, distinctId, groups, personProperties, groupProperties, matchValue);
3329
- if (result) {
3330
- matchValue = result.value;
3331
- response = result.payload;
3332
- }
3333
- } catch (e) {
3334
- if (e instanceof RequiresServerEvaluation || e instanceof InconclusiveMatchError) this._logger?.info(`${e.name} when computing flag locally: ${flag.key}: ${e.message}`);
3335
- else throw e;
3336
- }
3337
- }
3338
- if (void 0 == onlyEvaluateLocally) onlyEvaluateLocally = this.options.strictLocalEvaluation ?? false;
3339
- const payloadWasLocallyEvaluated = void 0 !== response;
3340
- if (!payloadWasLocallyEvaluated && !onlyEvaluateLocally) response = await super.getFeatureFlagPayloadStateless(key, distinctId, groups, personProperties, groupProperties, disableGeoip);
3341
- return response;
3430
+ const result = await this._getFeatureFlagResult(key, distinctId, {
3431
+ ...options,
3432
+ sendFeatureFlagEvents: false
3433
+ }, matchValue);
3434
+ if (void 0 === result) return;
3435
+ return result.payload ?? null;
3436
+ }
3437
+ async getFeatureFlagResult(key, distinctId, options) {
3438
+ return this._getFeatureFlagResult(key, distinctId, {
3439
+ ...options,
3440
+ sendFeatureFlagEvents: options?.sendFeatureFlagEvents ?? this.options.sendFeatureFlagEvent ?? true
3441
+ });
3342
3442
  }
3343
3443
  async getRemoteConfigPayload(flagKey) {
3344
3444
  if (!this.options.personalApiKey) throw new Error("Personal API key is required for remote config payload decryption");
@@ -3665,7 +3765,7 @@ var init_client = __esm({
3665
3765
  });
3666
3766
  var PostHogContext;
3667
3767
  var init_context = __esm({
3668
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
3768
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/context/context.mjs"() {
3669
3769
  PostHogContext = class {
3670
3770
  constructor() {
3671
3771
  this.storage = new AsyncLocalStorage();
@@ -3693,7 +3793,7 @@ var init_context = __esm({
3693
3793
  }
3694
3794
  });
3695
3795
 
3696
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
3796
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs
3697
3797
  function createEventProcessor(_posthog, { organization, projectId, prefix, severityAllowList = [
3698
3798
  "error"
3699
3799
  ], sendExceptionsToPostHog = true } = {}) {
@@ -3749,7 +3849,7 @@ function sentryIntegration(_posthog, options) {
3749
3849
  }
3750
3850
  var NAME, PostHogSentryIntegration;
3751
3851
  var init_sentry_integration = __esm({
3752
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
3852
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/sentry-integration.mjs"() {
3753
3853
  NAME = "posthog-node";
3754
3854
  PostHogSentryIntegration = class {
3755
3855
  static #_ = this.POSTHOG_ID_TAG = "posthog_distinct_id";
@@ -3771,7 +3871,7 @@ var init_sentry_integration = __esm({
3771
3871
  }
3772
3872
  });
3773
3873
 
3774
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/express.mjs
3874
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/express.mjs
3775
3875
  function setupExpressErrorHandler(_posthog, app) {
3776
3876
  app.use(posthogErrorHandler(_posthog));
3777
3877
  }
@@ -3803,21 +3903,22 @@ function posthogErrorHandler(posthog) {
3803
3903
  };
3804
3904
  }
3805
3905
  var init_express = __esm({
3806
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/extensions/express.mjs"() {
3906
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/extensions/express.mjs"() {
3807
3907
  init_error_tracking2();
3808
3908
  }
3809
3909
  });
3810
3910
 
3811
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/exports.mjs
3911
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/exports.mjs
3812
3912
  var init_exports = __esm({
3813
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/exports.mjs"() {
3913
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/exports.mjs"() {
3914
+ init_dist();
3814
3915
  init_sentry_integration();
3815
3916
  init_express();
3816
3917
  init_types3();
3817
3918
  }
3818
3919
  });
3819
3920
 
3820
- // ../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/entrypoints/index.node.mjs
3921
+ // ../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs
3821
3922
  var index_node_exports = {};
3822
3923
  __export(index_node_exports, {
3823
3924
  FeatureFlagError: () => FeatureFlagError,
@@ -3829,7 +3930,7 @@ __export(index_node_exports, {
3829
3930
  });
3830
3931
  var PostHog;
3831
3932
  var init_index_node = __esm({
3832
- "../../node_modules/.pnpm/posthog-node@5.21.0/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
3933
+ "../../node_modules/.pnpm/posthog-node@5.24.2/node_modules/posthog-node/dist/entrypoints/index.node.mjs"() {
3833
3934
  init_module_node();
3834
3935
  init_context_lines_node();
3835
3936
  init_error_tracking2();