@epam/ai-dial-modulify-ui 0.44.0-rc.1 → 0.44.0-rc.100

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.
Files changed (2) hide show
  1. package/index.esm.js +646 -1323
  2. package/package.json +1 -1
package/index.esm.js CHANGED
@@ -108,6 +108,7 @@ function requireReact_production () {
108
108
  REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
109
109
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
110
110
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
111
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
111
112
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
112
113
  function getIteratorFn(maybeIterable) {
113
114
  if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
@@ -159,28 +160,22 @@ function requireReact_production () {
159
160
  pureComponentPrototype.constructor = PureComponent;
160
161
  assign(pureComponentPrototype, Component.prototype);
161
162
  pureComponentPrototype.isPureReactComponent = true;
162
- var isArrayImpl = Array.isArray,
163
- ReactSharedInternals = { H: null, A: null, T: null, S: null },
163
+ var isArrayImpl = Array.isArray;
164
+ function noop() {}
165
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null },
164
166
  hasOwnProperty = Object.prototype.hasOwnProperty;
165
- function ReactElement(type, key, self, source, owner, props) {
166
- self = props.ref;
167
+ function ReactElement(type, key, props) {
168
+ var refProp = props.ref;
167
169
  return {
168
170
  $$typeof: REACT_ELEMENT_TYPE,
169
171
  type: type,
170
172
  key: key,
171
- ref: void 0 !== self ? self : null,
173
+ ref: void 0 !== refProp ? refProp : null,
172
174
  props: props
173
175
  };
174
176
  }
175
177
  function cloneAndReplaceKey(oldElement, newKey) {
176
- return ReactElement(
177
- oldElement.type,
178
- newKey,
179
- void 0,
180
- void 0,
181
- void 0,
182
- oldElement.props
183
- );
178
+ return ReactElement(oldElement.type, newKey, oldElement.props);
184
179
  }
185
180
  function isValidElement(object) {
186
181
  return (
@@ -204,7 +199,6 @@ function requireReact_production () {
204
199
  ? escape("" + element.key)
205
200
  : index.toString(36);
206
201
  }
207
- function noop$1() {}
208
202
  function resolveThenable(thenable) {
209
203
  switch (thenable.status) {
210
204
  case "fulfilled":
@@ -214,7 +208,7 @@ function requireReact_production () {
214
208
  default:
215
209
  switch (
216
210
  ("string" === typeof thenable.status
217
- ? thenable.then(noop$1, noop$1)
211
+ ? thenable.then(noop, noop)
218
212
  : ((thenable.status = "pending"),
219
213
  thenable.then(
220
214
  function (fulfilledValue) {
@@ -375,68 +369,69 @@ function requireReact_production () {
375
369
  throw payload._result;
376
370
  }
377
371
  var reportGlobalError =
378
- "function" === typeof reportError
379
- ? reportError
380
- : function (error) {
381
- if (
382
- "object" === typeof window &&
383
- "function" === typeof window.ErrorEvent
384
- ) {
385
- var event = new window.ErrorEvent("error", {
386
- bubbles: true,
387
- cancelable: true,
388
- message:
389
- "object" === typeof error &&
390
- null !== error &&
391
- "string" === typeof error.message
392
- ? String(error.message)
393
- : String(error),
394
- error: error
395
- });
396
- if (!window.dispatchEvent(event)) return;
397
- } else if (
398
- "object" === typeof process &&
399
- "function" === typeof process.emit
400
- ) {
401
- process.emit("uncaughtException", error);
402
- return;
403
- }
404
- console.error(error);
405
- };
406
- function noop() {}
407
- react_production.Children = {
408
- map: mapChildren,
409
- forEach: function (children, forEachFunc, forEachContext) {
410
- mapChildren(
411
- children,
412
- function () {
413
- forEachFunc.apply(this, arguments);
414
- },
415
- forEachContext
416
- );
417
- },
418
- count: function (children) {
419
- var n = 0;
420
- mapChildren(children, function () {
421
- n++;
422
- });
423
- return n;
424
- },
425
- toArray: function (children) {
426
- return (
427
- mapChildren(children, function (child) {
428
- return child;
429
- }) || []
430
- );
431
- },
432
- only: function (children) {
433
- if (!isValidElement(children))
434
- throw Error(
435
- "React.Children.only expected to receive a single React element child."
372
+ "function" === typeof reportError
373
+ ? reportError
374
+ : function (error) {
375
+ if (
376
+ "object" === typeof window &&
377
+ "function" === typeof window.ErrorEvent
378
+ ) {
379
+ var event = new window.ErrorEvent("error", {
380
+ bubbles: true,
381
+ cancelable: true,
382
+ message:
383
+ "object" === typeof error &&
384
+ null !== error &&
385
+ "string" === typeof error.message
386
+ ? String(error.message)
387
+ : String(error),
388
+ error: error
389
+ });
390
+ if (!window.dispatchEvent(event)) return;
391
+ } else if (
392
+ "object" === typeof process &&
393
+ "function" === typeof process.emit
394
+ ) {
395
+ process.emit("uncaughtException", error);
396
+ return;
397
+ }
398
+ console.error(error);
399
+ },
400
+ Children = {
401
+ map: mapChildren,
402
+ forEach: function (children, forEachFunc, forEachContext) {
403
+ mapChildren(
404
+ children,
405
+ function () {
406
+ forEachFunc.apply(this, arguments);
407
+ },
408
+ forEachContext
436
409
  );
437
- return children;
438
- }
439
- };
410
+ },
411
+ count: function (children) {
412
+ var n = 0;
413
+ mapChildren(children, function () {
414
+ n++;
415
+ });
416
+ return n;
417
+ },
418
+ toArray: function (children) {
419
+ return (
420
+ mapChildren(children, function (child) {
421
+ return child;
422
+ }) || []
423
+ );
424
+ },
425
+ only: function (children) {
426
+ if (!isValidElement(children))
427
+ throw Error(
428
+ "React.Children.only expected to receive a single React element child."
429
+ );
430
+ return children;
431
+ }
432
+ };
433
+ react_production.Activity = REACT_ACTIVITY_TYPE;
434
+ react_production.Children = Children;
440
435
  react_production.Component = Component;
441
436
  react_production.Fragment = REACT_FRAGMENT_TYPE;
442
437
  react_production.Profiler = REACT_PROFILER_TYPE;
@@ -445,26 +440,29 @@ function requireReact_production () {
445
440
  react_production.Suspense = REACT_SUSPENSE_TYPE;
446
441
  react_production.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
447
442
  ReactSharedInternals;
448
- react_production.act = function () {
449
- throw Error("act(...) is not supported in production builds of React.");
443
+ react_production.__COMPILER_RUNTIME = {
444
+ __proto__: null,
445
+ c: function (size) {
446
+ return ReactSharedInternals.H.useMemoCache(size);
447
+ }
450
448
  };
451
449
  react_production.cache = function (fn) {
452
450
  return function () {
453
451
  return fn.apply(null, arguments);
454
452
  };
455
453
  };
454
+ react_production.cacheSignal = function () {
455
+ return null;
456
+ };
456
457
  react_production.cloneElement = function (element, config, children) {
457
458
  if (null === element || void 0 === element)
458
459
  throw Error(
459
460
  "The argument must be a React element, but you passed " + element + "."
460
461
  );
461
462
  var props = assign({}, element.props),
462
- key = element.key,
463
- owner = void 0;
463
+ key = element.key;
464
464
  if (null != config)
465
- for (propName in (void 0 !== config.ref && (owner = void 0),
466
- void 0 !== config.key && (key = "" + config.key),
467
- config))
465
+ for (propName in (void 0 !== config.key && (key = "" + config.key), config))
468
466
  !hasOwnProperty.call(config, propName) ||
469
467
  "key" === propName ||
470
468
  "__self" === propName ||
@@ -478,7 +476,7 @@ function requireReact_production () {
478
476
  childArray[i] = arguments[i + 2];
479
477
  props.children = childArray;
480
478
  }
481
- return ReactElement(element.type, key, void 0, void 0, owner, props);
479
+ return ReactElement(element.type, key, props);
482
480
  };
483
481
  react_production.createContext = function (defaultValue) {
484
482
  defaultValue = {
@@ -518,7 +516,7 @@ function requireReact_production () {
518
516
  for (propName in ((childrenLength = type.defaultProps), childrenLength))
519
517
  void 0 === props[propName] &&
520
518
  (props[propName] = childrenLength[propName]);
521
- return ReactElement(type, key, void 0, void 0, null, props);
519
+ return ReactElement(type, key, props);
522
520
  };
523
521
  react_production.createRef = function () {
524
522
  return { current: null };
@@ -557,7 +555,10 @@ function requireReact_production () {
557
555
  } catch (error) {
558
556
  reportGlobalError(error);
559
557
  } finally {
560
- ReactSharedInternals.T = prevTransition;
558
+ null !== prevTransition &&
559
+ null !== currentTransition.types &&
560
+ (prevTransition.types = currentTransition.types),
561
+ (ReactSharedInternals.T = prevTransition);
561
562
  }
562
563
  };
563
564
  react_production.unstable_useCacheRefresh = function () {
@@ -582,6 +583,9 @@ function requireReact_production () {
582
583
  react_production.useEffect = function (create, deps) {
583
584
  return ReactSharedInternals.H.useEffect(create, deps);
584
585
  };
586
+ react_production.useEffectEvent = function (callback) {
587
+ return ReactSharedInternals.H.useEffectEvent(callback);
588
+ };
585
589
  react_production.useId = function () {
586
590
  return ReactSharedInternals.H.useId();
587
591
  };
@@ -623,7 +627,7 @@ function requireReact_production () {
623
627
  react_production.useTransition = function () {
624
628
  return ReactSharedInternals.H.useTransition();
625
629
  };
626
- react_production.version = "19.0.0";
630
+ react_production.version = "19.2.4";
627
631
  return react_production;
628
632
  }
629
633
 
@@ -694,6 +698,7 @@ function requireReact_development () {
694
698
  this.refs = emptyObject;
695
699
  this.updater = updater || ReactNoopUpdateQueue;
696
700
  }
701
+ function noop() {}
697
702
  function testStringCoercion(value) {
698
703
  return "" + value;
699
704
  }
@@ -724,15 +729,13 @@ function requireReact_development () {
724
729
  function getComponentNameFromType(type) {
725
730
  if (null == type) return null;
726
731
  if ("function" === typeof type)
727
- return type.$$typeof === REACT_CLIENT_REFERENCE$2
732
+ return type.$$typeof === REACT_CLIENT_REFERENCE
728
733
  ? null
729
734
  : type.displayName || type.name || null;
730
735
  if ("string" === typeof type) return type;
731
736
  switch (type) {
732
737
  case REACT_FRAGMENT_TYPE:
733
738
  return "Fragment";
734
- case REACT_PORTAL_TYPE:
735
- return "Portal";
736
739
  case REACT_PROFILER_TYPE:
737
740
  return "Profiler";
738
741
  case REACT_STRICT_MODE_TYPE:
@@ -741,6 +744,8 @@ function requireReact_development () {
741
744
  return "Suspense";
742
745
  case REACT_SUSPENSE_LIST_TYPE:
743
746
  return "SuspenseList";
747
+ case REACT_ACTIVITY_TYPE:
748
+ return "Activity";
744
749
  }
745
750
  if ("object" === typeof type)
746
751
  switch (
@@ -750,8 +755,10 @@ function requireReact_development () {
750
755
  ),
751
756
  type.$$typeof)
752
757
  ) {
758
+ case REACT_PORTAL_TYPE:
759
+ return "Portal";
753
760
  case REACT_CONTEXT_TYPE:
754
- return (type.displayName || "Context") + ".Provider";
761
+ return type.displayName || "Context";
755
762
  case REACT_CONSUMER_TYPE:
756
763
  return (type._context.displayName || "Context") + ".Consumer";
757
764
  case REACT_FORWARD_REF_TYPE:
@@ -777,281 +784,28 @@ function requireReact_development () {
777
784
  }
778
785
  return null;
779
786
  }
780
- function isValidElementType(type) {
781
- return "string" === typeof type ||
782
- "function" === typeof type ||
783
- type === REACT_FRAGMENT_TYPE ||
784
- type === REACT_PROFILER_TYPE ||
785
- type === REACT_STRICT_MODE_TYPE ||
786
- type === REACT_SUSPENSE_TYPE ||
787
- type === REACT_SUSPENSE_LIST_TYPE ||
788
- type === REACT_OFFSCREEN_TYPE ||
789
- ("object" === typeof type &&
790
- null !== type &&
791
- (type.$$typeof === REACT_LAZY_TYPE ||
792
- type.$$typeof === REACT_MEMO_TYPE ||
793
- type.$$typeof === REACT_CONTEXT_TYPE ||
794
- type.$$typeof === REACT_CONSUMER_TYPE ||
795
- type.$$typeof === REACT_FORWARD_REF_TYPE ||
796
- type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
797
- void 0 !== type.getModuleId))
798
- ? true
799
- : false;
800
- }
801
- function disabledLog() {}
802
- function disableLogs() {
803
- if (0 === disabledDepth) {
804
- prevLog = console.log;
805
- prevInfo = console.info;
806
- prevWarn = console.warn;
807
- prevError = console.error;
808
- prevGroup = console.group;
809
- prevGroupCollapsed = console.groupCollapsed;
810
- prevGroupEnd = console.groupEnd;
811
- var props = {
812
- configurable: true,
813
- enumerable: true,
814
- value: disabledLog,
815
- writable: true
816
- };
817
- Object.defineProperties(console, {
818
- info: props,
819
- log: props,
820
- warn: props,
821
- error: props,
822
- group: props,
823
- groupCollapsed: props,
824
- groupEnd: props
825
- });
826
- }
827
- disabledDepth++;
828
- }
829
- function reenableLogs() {
830
- disabledDepth--;
831
- if (0 === disabledDepth) {
832
- var props = { configurable: true, enumerable: true, writable: true };
833
- Object.defineProperties(console, {
834
- log: assign({}, props, { value: prevLog }),
835
- info: assign({}, props, { value: prevInfo }),
836
- warn: assign({}, props, { value: prevWarn }),
837
- error: assign({}, props, { value: prevError }),
838
- group: assign({}, props, { value: prevGroup }),
839
- groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
840
- groupEnd: assign({}, props, { value: prevGroupEnd })
841
- });
842
- }
843
- 0 > disabledDepth &&
844
- console.error(
845
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
846
- );
847
- }
848
- function describeBuiltInComponentFrame(name) {
849
- if (void 0 === prefix)
850
- try {
851
- throw Error();
852
- } catch (x) {
853
- var match = x.stack.trim().match(/\n( *(at )?)/);
854
- prefix = (match && match[1]) || "";
855
- suffix =
856
- -1 < x.stack.indexOf("\n at")
857
- ? " (<anonymous>)"
858
- : -1 < x.stack.indexOf("@")
859
- ? "@unknown:0:0"
860
- : "";
861
- }
862
- return "\n" + prefix + name + suffix;
863
- }
864
- function describeNativeComponentFrame(fn, construct) {
865
- if (!fn || reentry) return "";
866
- var frame = componentFrameCache.get(fn);
867
- if (void 0 !== frame) return frame;
868
- reentry = true;
869
- frame = Error.prepareStackTrace;
870
- Error.prepareStackTrace = void 0;
871
- var previousDispatcher = null;
872
- previousDispatcher = ReactSharedInternals.H;
873
- ReactSharedInternals.H = null;
874
- disableLogs();
787
+ function getTaskName(type) {
788
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
789
+ if (
790
+ "object" === typeof type &&
791
+ null !== type &&
792
+ type.$$typeof === REACT_LAZY_TYPE
793
+ )
794
+ return "<...>";
875
795
  try {
876
- var RunInRootFrame = {
877
- DetermineComponentFrameRoot: function () {
878
- try {
879
- if (construct) {
880
- var Fake = function () {
881
- throw Error();
882
- };
883
- Object.defineProperty(Fake.prototype, "props", {
884
- set: function () {
885
- throw Error();
886
- }
887
- });
888
- if ("object" === typeof Reflect && Reflect.construct) {
889
- try {
890
- Reflect.construct(Fake, []);
891
- } catch (x) {
892
- var control = x;
893
- }
894
- Reflect.construct(fn, [], Fake);
895
- } else {
896
- try {
897
- Fake.call();
898
- } catch (x$0) {
899
- control = x$0;
900
- }
901
- fn.call(Fake.prototype);
902
- }
903
- } else {
904
- try {
905
- throw Error();
906
- } catch (x$1) {
907
- control = x$1;
908
- }
909
- (Fake = fn()) &&
910
- "function" === typeof Fake.catch &&
911
- Fake.catch(function () {});
912
- }
913
- } catch (sample) {
914
- if (sample && control && "string" === typeof sample.stack)
915
- return [sample.stack, control.stack];
916
- }
917
- return [null, null];
918
- }
919
- };
920
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
921
- "DetermineComponentFrameRoot";
922
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
923
- RunInRootFrame.DetermineComponentFrameRoot,
924
- "name"
925
- );
926
- namePropDescriptor &&
927
- namePropDescriptor.configurable &&
928
- Object.defineProperty(
929
- RunInRootFrame.DetermineComponentFrameRoot,
930
- "name",
931
- { value: "DetermineComponentFrameRoot" }
932
- );
933
- var _RunInRootFrame$Deter =
934
- RunInRootFrame.DetermineComponentFrameRoot(),
935
- sampleStack = _RunInRootFrame$Deter[0],
936
- controlStack = _RunInRootFrame$Deter[1];
937
- if (sampleStack && controlStack) {
938
- var sampleLines = sampleStack.split("\n"),
939
- controlLines = controlStack.split("\n");
940
- for (
941
- _RunInRootFrame$Deter = namePropDescriptor = 0;
942
- namePropDescriptor < sampleLines.length &&
943
- !sampleLines[namePropDescriptor].includes(
944
- "DetermineComponentFrameRoot"
945
- );
946
-
947
- )
948
- namePropDescriptor++;
949
- for (
950
- ;
951
- _RunInRootFrame$Deter < controlLines.length &&
952
- !controlLines[_RunInRootFrame$Deter].includes(
953
- "DetermineComponentFrameRoot"
954
- );
955
-
956
- )
957
- _RunInRootFrame$Deter++;
958
- if (
959
- namePropDescriptor === sampleLines.length ||
960
- _RunInRootFrame$Deter === controlLines.length
961
- )
962
- for (
963
- namePropDescriptor = sampleLines.length - 1,
964
- _RunInRootFrame$Deter = controlLines.length - 1;
965
- 1 <= namePropDescriptor &&
966
- 0 <= _RunInRootFrame$Deter &&
967
- sampleLines[namePropDescriptor] !==
968
- controlLines[_RunInRootFrame$Deter];
969
-
970
- )
971
- _RunInRootFrame$Deter--;
972
- for (
973
- ;
974
- 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
975
- namePropDescriptor--, _RunInRootFrame$Deter--
976
- )
977
- if (
978
- sampleLines[namePropDescriptor] !==
979
- controlLines[_RunInRootFrame$Deter]
980
- ) {
981
- if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
982
- do
983
- if (
984
- (namePropDescriptor--,
985
- _RunInRootFrame$Deter--,
986
- 0 > _RunInRootFrame$Deter ||
987
- sampleLines[namePropDescriptor] !==
988
- controlLines[_RunInRootFrame$Deter])
989
- ) {
990
- var _frame =
991
- "\n" +
992
- sampleLines[namePropDescriptor].replace(
993
- " at new ",
994
- " at "
995
- );
996
- fn.displayName &&
997
- _frame.includes("<anonymous>") &&
998
- (_frame = _frame.replace("<anonymous>", fn.displayName));
999
- "function" === typeof fn &&
1000
- componentFrameCache.set(fn, _frame);
1001
- return _frame;
1002
- }
1003
- while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
1004
- }
1005
- break;
1006
- }
1007
- }
1008
- } finally {
1009
- (reentry = false),
1010
- (ReactSharedInternals.H = previousDispatcher),
1011
- reenableLogs(),
1012
- (Error.prepareStackTrace = frame);
1013
- }
1014
- sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
1015
- ? describeBuiltInComponentFrame(sampleLines)
1016
- : "";
1017
- "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
1018
- return sampleLines;
1019
- }
1020
- function describeUnknownElementTypeFrameInDEV(type) {
1021
- if (null == type) return "";
1022
- if ("function" === typeof type) {
1023
- var prototype = type.prototype;
1024
- return describeNativeComponentFrame(
1025
- type,
1026
- !(!prototype || !prototype.isReactComponent)
1027
- );
1028
- }
1029
- if ("string" === typeof type) return describeBuiltInComponentFrame(type);
1030
- switch (type) {
1031
- case REACT_SUSPENSE_TYPE:
1032
- return describeBuiltInComponentFrame("Suspense");
1033
- case REACT_SUSPENSE_LIST_TYPE:
1034
- return describeBuiltInComponentFrame("SuspenseList");
796
+ var name = getComponentNameFromType(type);
797
+ return name ? "<" + name + ">" : "<...>";
798
+ } catch (x) {
799
+ return "<...>";
1035
800
  }
1036
- if ("object" === typeof type)
1037
- switch (type.$$typeof) {
1038
- case REACT_FORWARD_REF_TYPE:
1039
- return (type = describeNativeComponentFrame(type.render, false)), type;
1040
- case REACT_MEMO_TYPE:
1041
- return describeUnknownElementTypeFrameInDEV(type.type);
1042
- case REACT_LAZY_TYPE:
1043
- prototype = type._payload;
1044
- type = type._init;
1045
- try {
1046
- return describeUnknownElementTypeFrameInDEV(type(prototype));
1047
- } catch (x) {}
1048
- }
1049
- return "";
1050
801
  }
1051
802
  function getOwner() {
1052
803
  var dispatcher = ReactSharedInternals.A;
1053
804
  return null === dispatcher ? null : dispatcher.getOwner();
1054
805
  }
806
+ function UnknownOwner() {
807
+ return Error("react-stack-top-frame");
808
+ }
1055
809
  function hasValidKey(config) {
1056
810
  if (hasOwnProperty.call(config, "key")) {
1057
811
  var getter = Object.getOwnPropertyDescriptor(config, "key").get;
@@ -1084,8 +838,8 @@ function requireReact_development () {
1084
838
  componentName = this.props.ref;
1085
839
  return void 0 !== componentName ? componentName : null;
1086
840
  }
1087
- function ReactElement(type, key, self, source, owner, props) {
1088
- self = props.ref;
841
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
842
+ var refProp = props.ref;
1089
843
  type = {
1090
844
  $$typeof: REACT_ELEMENT_TYPE,
1091
845
  type: type,
@@ -1093,7 +847,7 @@ function requireReact_development () {
1093
847
  props: props,
1094
848
  _owner: owner
1095
849
  };
1096
- null !== (void 0 !== self ? self : null)
850
+ null !== (void 0 !== refProp ? refProp : null)
1097
851
  ? Object.defineProperty(type, "ref", {
1098
852
  enumerable: false,
1099
853
  get: elementRefGetterWithDeprecationWarning
@@ -1112,6 +866,18 @@ function requireReact_development () {
1112
866
  writable: true,
1113
867
  value: null
1114
868
  });
869
+ Object.defineProperty(type, "_debugStack", {
870
+ configurable: false,
871
+ enumerable: false,
872
+ writable: true,
873
+ value: debugStack
874
+ });
875
+ Object.defineProperty(type, "_debugTask", {
876
+ configurable: false,
877
+ enumerable: false,
878
+ writable: true,
879
+ value: debugTask
880
+ });
1115
881
  Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1116
882
  return type;
1117
883
  }
@@ -1119,36 +885,26 @@ function requireReact_development () {
1119
885
  newKey = ReactElement(
1120
886
  oldElement.type,
1121
887
  newKey,
1122
- void 0,
1123
- void 0,
888
+ oldElement.props,
1124
889
  oldElement._owner,
1125
- oldElement.props
890
+ oldElement._debugStack,
891
+ oldElement._debugTask
1126
892
  );
1127
- newKey._store.validated = oldElement._store.validated;
893
+ oldElement._store &&
894
+ (newKey._store.validated = oldElement._store.validated);
1128
895
  return newKey;
1129
896
  }
1130
- function validateChildKeys(node, parentType) {
1131
- if (
1132
- "object" === typeof node &&
1133
- node &&
1134
- node.$$typeof !== REACT_CLIENT_REFERENCE
1135
- )
1136
- if (isArrayImpl(node))
1137
- for (var i = 0; i < node.length; i++) {
1138
- var child = node[i];
1139
- isValidElement(child) && validateExplicitKey(child, parentType);
1140
- }
1141
- else if (isValidElement(node))
1142
- node._store && (node._store.validated = 1);
1143
- else if (
1144
- ((i = getIteratorFn(node)),
1145
- "function" === typeof i &&
1146
- i !== node.entries &&
1147
- ((i = i.call(node)), i !== node))
1148
- )
1149
- for (; !(node = i.next()).done; )
1150
- isValidElement(node.value) &&
1151
- validateExplicitKey(node.value, parentType);
897
+ function validateChildKeys(node) {
898
+ isValidElement(node)
899
+ ? node._store && (node._store.validated = 1)
900
+ : "object" === typeof node &&
901
+ null !== node &&
902
+ node.$$typeof === REACT_LAZY_TYPE &&
903
+ ("fulfilled" === node._payload.status
904
+ ? isValidElement(node._payload.value) &&
905
+ node._payload.value._store &&
906
+ (node._payload.value._store.validated = 1)
907
+ : node._store && (node._store.validated = 1));
1152
908
  }
1153
909
  function isValidElement(object) {
1154
910
  return (
@@ -1157,52 +913,6 @@ function requireReact_development () {
1157
913
  object.$$typeof === REACT_ELEMENT_TYPE
1158
914
  );
1159
915
  }
1160
- function validateExplicitKey(element, parentType) {
1161
- if (
1162
- element._store &&
1163
- !element._store.validated &&
1164
- null == element.key &&
1165
- ((element._store.validated = 1),
1166
- (parentType = getCurrentComponentErrorInfo(parentType)),
1167
- !ownerHasKeyUseWarning[parentType])
1168
- ) {
1169
- ownerHasKeyUseWarning[parentType] = true;
1170
- var childOwner = "";
1171
- element &&
1172
- null != element._owner &&
1173
- element._owner !== getOwner() &&
1174
- ((childOwner = null),
1175
- "number" === typeof element._owner.tag
1176
- ? (childOwner = getComponentNameFromType(element._owner.type))
1177
- : "string" === typeof element._owner.name &&
1178
- (childOwner = element._owner.name),
1179
- (childOwner = " It was passed a child from " + childOwner + "."));
1180
- var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
1181
- ReactSharedInternals.getCurrentStack = function () {
1182
- var stack = describeUnknownElementTypeFrameInDEV(element.type);
1183
- prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
1184
- return stack;
1185
- };
1186
- console.error(
1187
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
1188
- parentType,
1189
- childOwner
1190
- );
1191
- ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
1192
- }
1193
- }
1194
- function getCurrentComponentErrorInfo(parentType) {
1195
- var info = "",
1196
- owner = getOwner();
1197
- owner &&
1198
- (owner = getComponentNameFromType(owner.type)) &&
1199
- (info = "\n\nCheck the render method of `" + owner + "`.");
1200
- info ||
1201
- ((parentType = getComponentNameFromType(parentType)) &&
1202
- (info =
1203
- "\n\nCheck the top-level render call using <" + parentType + ">."));
1204
- return info;
1205
- }
1206
916
  function escape(key) {
1207
917
  var escaperLookup = { "=": "=0", ":": "=2" };
1208
918
  return (
@@ -1219,7 +929,6 @@ function requireReact_development () {
1219
929
  ? (checkKeyStringCoercion(element.key), escape("" + element.key))
1220
930
  : index.toString(36);
1221
931
  }
1222
- function noop$1() {}
1223
932
  function resolveThenable(thenable) {
1224
933
  switch (thenable.status) {
1225
934
  case "fulfilled":
@@ -1229,7 +938,7 @@ function requireReact_development () {
1229
938
  default:
1230
939
  switch (
1231
940
  ("string" === typeof thenable.status
1232
- ? thenable.then(noop$1, noop$1)
941
+ ? thenable.then(noop, noop)
1233
942
  : ((thenable.status = "pending"),
1234
943
  thenable.then(
1235
944
  function (fulfilledValue) {
@@ -1391,35 +1100,56 @@ function requireReact_development () {
1391
1100
  }
1392
1101
  function lazyInitializer(payload) {
1393
1102
  if (-1 === payload._status) {
1394
- var ctor = payload._result;
1395
- ctor = ctor();
1396
- ctor.then(
1103
+ var ioInfo = payload._ioInfo;
1104
+ null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
1105
+ ioInfo = payload._result;
1106
+ var thenable = ioInfo();
1107
+ thenable.then(
1397
1108
  function (moduleObject) {
1398
- if (0 === payload._status || -1 === payload._status)
1399
- (payload._status = 1), (payload._result = moduleObject);
1109
+ if (0 === payload._status || -1 === payload._status) {
1110
+ payload._status = 1;
1111
+ payload._result = moduleObject;
1112
+ var _ioInfo = payload._ioInfo;
1113
+ null != _ioInfo && (_ioInfo.end = performance.now());
1114
+ void 0 === thenable.status &&
1115
+ ((thenable.status = "fulfilled"),
1116
+ (thenable.value = moduleObject));
1117
+ }
1400
1118
  },
1401
1119
  function (error) {
1402
- if (0 === payload._status || -1 === payload._status)
1403
- (payload._status = 2), (payload._result = error);
1120
+ if (0 === payload._status || -1 === payload._status) {
1121
+ payload._status = 2;
1122
+ payload._result = error;
1123
+ var _ioInfo2 = payload._ioInfo;
1124
+ null != _ioInfo2 && (_ioInfo2.end = performance.now());
1125
+ void 0 === thenable.status &&
1126
+ ((thenable.status = "rejected"), (thenable.reason = error));
1127
+ }
1404
1128
  }
1405
1129
  );
1130
+ ioInfo = payload._ioInfo;
1131
+ if (null != ioInfo) {
1132
+ ioInfo.value = thenable;
1133
+ var displayName = thenable.displayName;
1134
+ "string" === typeof displayName && (ioInfo.name = displayName);
1135
+ }
1406
1136
  -1 === payload._status &&
1407
- ((payload._status = 0), (payload._result = ctor));
1137
+ ((payload._status = 0), (payload._result = thenable));
1408
1138
  }
1409
1139
  if (1 === payload._status)
1410
1140
  return (
1411
- (ctor = payload._result),
1412
- void 0 === ctor &&
1141
+ (ioInfo = payload._result),
1142
+ void 0 === ioInfo &&
1413
1143
  console.error(
1414
1144
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?",
1415
- ctor
1145
+ ioInfo
1416
1146
  ),
1417
- "default" in ctor ||
1147
+ "default" in ioInfo ||
1418
1148
  console.error(
1419
1149
  "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
1420
- ctor
1150
+ ioInfo
1421
1151
  ),
1422
- ctor.default
1152
+ ioInfo.default
1423
1153
  );
1424
1154
  throw payload._result;
1425
1155
  }
@@ -1431,7 +1161,9 @@ function requireReact_development () {
1431
1161
  );
1432
1162
  return dispatcher;
1433
1163
  }
1434
- function noop() {}
1164
+ function releaseAsyncTransition() {
1165
+ ReactSharedInternals.asyncTransitions--;
1166
+ }
1435
1167
  function enqueueTask(task) {
1436
1168
  if (null === enqueueTaskImpl)
1437
1169
  try {
@@ -1523,15 +1255,15 @@ function requireReact_development () {
1523
1255
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
1524
1256
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
1525
1257
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
1526
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
1527
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1258
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
1259
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
1528
1260
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
1529
1261
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
1530
1262
  REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
1531
1263
  REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
1532
1264
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
1533
1265
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
1534
- REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
1266
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
1535
1267
  MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
1536
1268
  didWarnStateUpdateForUnmountedComponent = {},
1537
1269
  ReactNoopUpdateQueue = {
@@ -1567,16 +1299,15 @@ function requireReact_development () {
1567
1299
  this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1568
1300
  };
1569
1301
  var deprecatedAPIs = {
1570
- isMounted: [
1571
- "isMounted",
1572
- "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1573
- ],
1574
- replaceState: [
1575
- "replaceState",
1576
- "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1577
- ]
1578
- },
1579
- fnName;
1302
+ isMounted: [
1303
+ "isMounted",
1304
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1305
+ ],
1306
+ replaceState: [
1307
+ "replaceState",
1308
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1309
+ ]
1310
+ };
1580
1311
  for (fnName in deprecatedAPIs)
1581
1312
  deprecatedAPIs.hasOwnProperty(fnName) &&
1582
1313
  defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
@@ -1586,42 +1317,40 @@ function requireReact_development () {
1586
1317
  assign(deprecatedAPIs, Component.prototype);
1587
1318
  deprecatedAPIs.isPureReactComponent = true;
1588
1319
  var isArrayImpl = Array.isArray,
1589
- REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
1320
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1590
1321
  ReactSharedInternals = {
1591
1322
  H: null,
1592
1323
  A: null,
1593
1324
  T: null,
1594
1325
  S: null,
1595
1326
  actQueue: null,
1327
+ asyncTransitions: 0,
1596
1328
  isBatchingLegacy: false,
1597
1329
  didScheduleLegacyUpdate: false,
1598
1330
  didUsePromise: false,
1599
1331
  thrownErrors: [],
1600
- getCurrentStack: null
1332
+ getCurrentStack: null,
1333
+ recentlyCreatedOwnerStacks: 0
1601
1334
  },
1602
1335
  hasOwnProperty = Object.prototype.hasOwnProperty,
1603
- REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
1604
- disabledDepth = 0,
1605
- prevLog,
1606
- prevInfo,
1607
- prevWarn,
1608
- prevError,
1609
- prevGroup,
1610
- prevGroupCollapsed,
1611
- prevGroupEnd;
1612
- disabledLog.__reactDisabledLog = true;
1613
- var prefix,
1614
- suffix,
1615
- reentry = false;
1616
- var componentFrameCache = new (
1617
- "function" === typeof WeakMap ? WeakMap : Map
1618
- )();
1619
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
1620
- specialPropKeyWarningShown,
1621
- didWarnAboutOldJSXRuntime;
1336
+ createTask = console.createTask
1337
+ ? console.createTask
1338
+ : function () {
1339
+ return null;
1340
+ };
1341
+ deprecatedAPIs = {
1342
+ react_stack_bottom_frame: function (callStackForError) {
1343
+ return callStackForError();
1344
+ }
1345
+ };
1346
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1622
1347
  var didWarnAboutElementRef = {};
1623
- var ownerHasKeyUseWarning = {},
1624
- didWarnAboutMaps = false,
1348
+ var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
1349
+ deprecatedAPIs,
1350
+ UnknownOwner
1351
+ )();
1352
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1353
+ var didWarnAboutMaps = false,
1625
1354
  userProvidedKeyEscapeRegex = /\/+/g,
1626
1355
  reportGlobalError =
1627
1356
  "function" === typeof reportError
@@ -1665,7 +1394,13 @@ function requireReact_development () {
1665
1394
  });
1666
1395
  }
1667
1396
  : enqueueTask;
1668
- exports$1.Children = {
1397
+ deprecatedAPIs = Object.freeze({
1398
+ __proto__: null,
1399
+ c: function (size) {
1400
+ return resolveDispatcher().useMemoCache(size);
1401
+ }
1402
+ });
1403
+ var fnName = {
1669
1404
  map: mapChildren,
1670
1405
  forEach: function (children, forEachFunc, forEachContext) {
1671
1406
  mapChildren(
@@ -1698,6 +1433,8 @@ function requireReact_development () {
1698
1433
  return children;
1699
1434
  }
1700
1435
  };
1436
+ exports$1.Activity = REACT_ACTIVITY_TYPE;
1437
+ exports$1.Children = fnName;
1701
1438
  exports$1.Component = Component;
1702
1439
  exports$1.Fragment = REACT_FRAGMENT_TYPE;
1703
1440
  exports$1.Profiler = REACT_PROFILER_TYPE;
@@ -1706,6 +1443,7 @@ function requireReact_development () {
1706
1443
  exports$1.Suspense = REACT_SUSPENSE_TYPE;
1707
1444
  exports$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
1708
1445
  ReactSharedInternals;
1446
+ exports$1.__COMPILER_RUNTIME = deprecatedAPIs;
1709
1447
  exports$1.act = function (callback) {
1710
1448
  var prevActQueue = ReactSharedInternals.actQueue,
1711
1449
  prevActScopeDepth = actScopeDepth;
@@ -1755,8 +1493,8 @@ function requireReact_development () {
1755
1493
  reject
1756
1494
  );
1757
1495
  });
1758
- } catch (error$2) {
1759
- ReactSharedInternals.thrownErrors.push(error$2);
1496
+ } catch (error$0) {
1497
+ ReactSharedInternals.thrownErrors.push(error$0);
1760
1498
  }
1761
1499
  if (0 < ReactSharedInternals.thrownErrors.length) {
1762
1500
  var _thrownError = aggregateErrors(
@@ -1822,6 +1560,13 @@ function requireReact_development () {
1822
1560
  return fn.apply(null, arguments);
1823
1561
  };
1824
1562
  };
1563
+ exports$1.cacheSignal = function () {
1564
+ return null;
1565
+ };
1566
+ exports$1.captureOwnerStack = function () {
1567
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1568
+ return null === getCurrentStack ? null : getCurrentStack();
1569
+ };
1825
1570
  exports$1.cloneElement = function (element, config, children) {
1826
1571
  if (null === element || void 0 === element)
1827
1572
  throw Error(
@@ -1867,9 +1612,16 @@ function requireReact_development () {
1867
1612
  JSCompiler_inline_result[i] = arguments[i + 2];
1868
1613
  props.children = JSCompiler_inline_result;
1869
1614
  }
1870
- props = ReactElement(element.type, key, void 0, void 0, owner, props);
1615
+ props = ReactElement(
1616
+ element.type,
1617
+ key,
1618
+ props,
1619
+ owner,
1620
+ element._debugStack,
1621
+ element._debugTask
1622
+ );
1871
1623
  for (key = 2; key < arguments.length; key++)
1872
- validateChildKeys(arguments[key], props.type);
1624
+ validateChildKeys(arguments[key]);
1873
1625
  return props;
1874
1626
  };
1875
1627
  exports$1.createContext = function (defaultValue) {
@@ -1891,40 +1643,10 @@ function requireReact_development () {
1891
1643
  return defaultValue;
1892
1644
  };
1893
1645
  exports$1.createElement = function (type, config, children) {
1894
- if (isValidElementType(type))
1895
- for (var i = 2; i < arguments.length; i++)
1896
- validateChildKeys(arguments[i], type);
1897
- else {
1898
- i = "";
1899
- if (
1900
- void 0 === type ||
1901
- ("object" === typeof type &&
1902
- null !== type &&
1903
- 0 === Object.keys(type).length)
1904
- )
1905
- i +=
1906
- " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
1907
- if (null === type) var typeString = "null";
1908
- else
1909
- isArrayImpl(type)
1910
- ? (typeString = "array")
1911
- : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
1912
- ? ((typeString =
1913
- "<" +
1914
- (getComponentNameFromType(type.type) || "Unknown") +
1915
- " />"),
1916
- (i =
1917
- " Did you accidentally export a JSX literal instead of a component?"))
1918
- : (typeString = typeof type);
1919
- console.error(
1920
- "React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
1921
- typeString,
1922
- i
1923
- );
1924
- }
1925
- var propName;
1646
+ for (var i = 2; i < arguments.length; i++)
1647
+ validateChildKeys(arguments[i]);
1926
1648
  i = {};
1927
- typeString = null;
1649
+ var key = null;
1928
1650
  if (null != config)
1929
1651
  for (propName in (didWarnAboutOldJSXRuntime ||
1930
1652
  !("__self" in config) ||
@@ -1934,7 +1656,7 @@ function requireReact_development () {
1934
1656
  "Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform"
1935
1657
  )),
1936
1658
  hasValidKey(config) &&
1937
- (checkKeyStringCoercion(config.key), (typeString = "" + config.key)),
1659
+ (checkKeyStringCoercion(config.key), (key = "" + config.key)),
1938
1660
  config))
1939
1661
  hasOwnProperty.call(config, propName) &&
1940
1662
  "key" !== propName &&
@@ -1956,14 +1678,22 @@ function requireReact_development () {
1956
1678
  if (type && type.defaultProps)
1957
1679
  for (propName in ((childrenLength = type.defaultProps), childrenLength))
1958
1680
  void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1959
- typeString &&
1681
+ key &&
1960
1682
  defineKeyPropWarningGetter(
1961
1683
  i,
1962
1684
  "function" === typeof type
1963
1685
  ? type.displayName || type.name || "Unknown"
1964
1686
  : type
1965
1687
  );
1966
- return ReactElement(type, typeString, void 0, void 0, getOwner(), i);
1688
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1689
+ return ReactElement(
1690
+ type,
1691
+ key,
1692
+ i,
1693
+ getOwner(),
1694
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1695
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1696
+ );
1967
1697
  };
1968
1698
  exports$1.createRef = function () {
1969
1699
  var refObject = { current: null };
@@ -2013,14 +1743,27 @@ function requireReact_development () {
2013
1743
  };
2014
1744
  exports$1.isValidElement = isValidElement;
2015
1745
  exports$1.lazy = function (ctor) {
2016
- return {
2017
- $$typeof: REACT_LAZY_TYPE,
2018
- _payload: { _status: -1, _result: ctor },
2019
- _init: lazyInitializer
2020
- };
1746
+ ctor = { _status: -1, _result: ctor };
1747
+ var lazyType = {
1748
+ $$typeof: REACT_LAZY_TYPE,
1749
+ _payload: ctor,
1750
+ _init: lazyInitializer
1751
+ },
1752
+ ioInfo = {
1753
+ name: "lazy",
1754
+ start: -1,
1755
+ end: -1,
1756
+ value: null,
1757
+ owner: null,
1758
+ debugStack: Error("react-stack-top-frame"),
1759
+ debugTask: console.createTask ? console.createTask("lazy()") : null
1760
+ };
1761
+ ctor._ioInfo = ioInfo;
1762
+ lazyType._debugInfo = [{ awaited: ioInfo }];
1763
+ return lazyType;
2021
1764
  };
2022
1765
  exports$1.memo = function (type, compare) {
2023
- isValidElementType(type) ||
1766
+ null == type &&
2024
1767
  console.error(
2025
1768
  "memo: The first argument must be a component. Instead received: %s",
2026
1769
  null === type ? "null" : typeof type
@@ -2050,8 +1793,8 @@ function requireReact_development () {
2050
1793
  exports$1.startTransition = function (scope) {
2051
1794
  var prevTransition = ReactSharedInternals.T,
2052
1795
  currentTransition = {};
2053
- ReactSharedInternals.T = currentTransition;
2054
1796
  currentTransition._updatedFibers = new Set();
1797
+ ReactSharedInternals.T = currentTransition;
2055
1798
  try {
2056
1799
  var returnValue = scope(),
2057
1800
  onStartTransitionFinish = ReactSharedInternals.S;
@@ -2060,7 +1803,9 @@ function requireReact_development () {
2060
1803
  "object" === typeof returnValue &&
2061
1804
  null !== returnValue &&
2062
1805
  "function" === typeof returnValue.then &&
2063
- returnValue.then(noop, reportGlobalError);
1806
+ (ReactSharedInternals.asyncTransitions++,
1807
+ returnValue.then(releaseAsyncTransition, releaseAsyncTransition),
1808
+ returnValue.then(noop, reportGlobalError));
2064
1809
  } catch (error) {
2065
1810
  reportGlobalError(error);
2066
1811
  } finally {
@@ -2072,6 +1817,14 @@ function requireReact_development () {
2072
1817
  console.warn(
2073
1818
  "Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."
2074
1819
  )),
1820
+ null !== prevTransition &&
1821
+ null !== currentTransition.types &&
1822
+ (null !== prevTransition.types &&
1823
+ prevTransition.types !== currentTransition.types &&
1824
+ console.error(
1825
+ "We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."
1826
+ ),
1827
+ (prevTransition.types = currentTransition.types)),
2075
1828
  (ReactSharedInternals.T = prevTransition);
2076
1829
  }
2077
1830
  };
@@ -2106,8 +1859,15 @@ function requireReact_development () {
2106
1859
  return resolveDispatcher().useDeferredValue(value, initialValue);
2107
1860
  };
2108
1861
  exports$1.useEffect = function (create, deps) {
1862
+ null == create &&
1863
+ console.warn(
1864
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1865
+ );
2109
1866
  return resolveDispatcher().useEffect(create, deps);
2110
1867
  };
1868
+ exports$1.useEffectEvent = function (callback) {
1869
+ return resolveDispatcher().useEffectEvent(callback);
1870
+ };
2111
1871
  exports$1.useId = function () {
2112
1872
  return resolveDispatcher().useId();
2113
1873
  };
@@ -2115,9 +1875,17 @@ function requireReact_development () {
2115
1875
  return resolveDispatcher().useImperativeHandle(ref, create, deps);
2116
1876
  };
2117
1877
  exports$1.useInsertionEffect = function (create, deps) {
1878
+ null == create &&
1879
+ console.warn(
1880
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1881
+ );
2118
1882
  return resolveDispatcher().useInsertionEffect(create, deps);
2119
1883
  };
2120
1884
  exports$1.useLayoutEffect = function (create, deps) {
1885
+ null == create &&
1886
+ console.warn(
1887
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1888
+ );
2121
1889
  return resolveDispatcher().useLayoutEffect(create, deps);
2122
1890
  };
2123
1891
  exports$1.useMemo = function (create, deps) {
@@ -2149,7 +1917,7 @@ function requireReact_development () {
2149
1917
  exports$1.useTransition = function () {
2150
1918
  return resolveDispatcher().useTransition();
2151
1919
  };
2152
- exports$1.version = "19.0.0";
1920
+ exports$1.version = "19.2.4";
2153
1921
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
2154
1922
  "function" ===
2155
1923
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -2188,15 +1956,13 @@ function requireReactJsxRuntime_development () {
2188
1956
  function getComponentNameFromType(type) {
2189
1957
  if (null == type) return null;
2190
1958
  if ("function" === typeof type)
2191
- return type.$$typeof === REACT_CLIENT_REFERENCE$2
1959
+ return type.$$typeof === REACT_CLIENT_REFERENCE
2192
1960
  ? null
2193
1961
  : type.displayName || type.name || null;
2194
1962
  if ("string" === typeof type) return type;
2195
1963
  switch (type) {
2196
1964
  case REACT_FRAGMENT_TYPE:
2197
1965
  return "Fragment";
2198
- case REACT_PORTAL_TYPE:
2199
- return "Portal";
2200
1966
  case REACT_PROFILER_TYPE:
2201
1967
  return "Profiler";
2202
1968
  case REACT_STRICT_MODE_TYPE:
@@ -2205,6 +1971,8 @@ function requireReactJsxRuntime_development () {
2205
1971
  return "Suspense";
2206
1972
  case REACT_SUSPENSE_LIST_TYPE:
2207
1973
  return "SuspenseList";
1974
+ case REACT_ACTIVITY_TYPE:
1975
+ return "Activity";
2208
1976
  }
2209
1977
  if ("object" === typeof type)
2210
1978
  switch (
@@ -2214,8 +1982,10 @@ function requireReactJsxRuntime_development () {
2214
1982
  ),
2215
1983
  type.$$typeof)
2216
1984
  ) {
1985
+ case REACT_PORTAL_TYPE:
1986
+ return "Portal";
2217
1987
  case REACT_CONTEXT_TYPE:
2218
- return (type.displayName || "Context") + ".Provider";
1988
+ return type.displayName || "Context";
2219
1989
  case REACT_CONSUMER_TYPE:
2220
1990
  return (type._context.displayName || "Context") + ".Consumer";
2221
1991
  case REACT_FORWARD_REF_TYPE:
@@ -2268,260 +2038,28 @@ function requireReactJsxRuntime_development () {
2268
2038
  return testStringCoercion(value);
2269
2039
  }
2270
2040
  }
2271
- function disabledLog() {}
2272
- function disableLogs() {
2273
- if (0 === disabledDepth) {
2274
- prevLog = console.log;
2275
- prevInfo = console.info;
2276
- prevWarn = console.warn;
2277
- prevError = console.error;
2278
- prevGroup = console.group;
2279
- prevGroupCollapsed = console.groupCollapsed;
2280
- prevGroupEnd = console.groupEnd;
2281
- var props = {
2282
- configurable: true,
2283
- enumerable: true,
2284
- value: disabledLog,
2285
- writable: true
2286
- };
2287
- Object.defineProperties(console, {
2288
- info: props,
2289
- log: props,
2290
- warn: props,
2291
- error: props,
2292
- group: props,
2293
- groupCollapsed: props,
2294
- groupEnd: props
2295
- });
2296
- }
2297
- disabledDepth++;
2298
- }
2299
- function reenableLogs() {
2300
- disabledDepth--;
2301
- if (0 === disabledDepth) {
2302
- var props = { configurable: true, enumerable: true, writable: true };
2303
- Object.defineProperties(console, {
2304
- log: assign({}, props, { value: prevLog }),
2305
- info: assign({}, props, { value: prevInfo }),
2306
- warn: assign({}, props, { value: prevWarn }),
2307
- error: assign({}, props, { value: prevError }),
2308
- group: assign({}, props, { value: prevGroup }),
2309
- groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),
2310
- groupEnd: assign({}, props, { value: prevGroupEnd })
2311
- });
2312
- }
2313
- 0 > disabledDepth &&
2314
- console.error(
2315
- "disabledDepth fell below zero. This is a bug in React. Please file an issue."
2316
- );
2317
- }
2318
- function describeBuiltInComponentFrame(name) {
2319
- if (void 0 === prefix)
2320
- try {
2321
- throw Error();
2322
- } catch (x) {
2323
- var match = x.stack.trim().match(/\n( *(at )?)/);
2324
- prefix = (match && match[1]) || "";
2325
- suffix =
2326
- -1 < x.stack.indexOf("\n at")
2327
- ? " (<anonymous>)"
2328
- : -1 < x.stack.indexOf("@")
2329
- ? "@unknown:0:0"
2330
- : "";
2331
- }
2332
- return "\n" + prefix + name + suffix;
2333
- }
2334
- function describeNativeComponentFrame(fn, construct) {
2335
- if (!fn || reentry) return "";
2336
- var frame = componentFrameCache.get(fn);
2337
- if (void 0 !== frame) return frame;
2338
- reentry = true;
2339
- frame = Error.prepareStackTrace;
2340
- Error.prepareStackTrace = void 0;
2341
- var previousDispatcher = null;
2342
- previousDispatcher = ReactSharedInternals.H;
2343
- ReactSharedInternals.H = null;
2344
- disableLogs();
2041
+ function getTaskName(type) {
2042
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
2043
+ if (
2044
+ "object" === typeof type &&
2045
+ null !== type &&
2046
+ type.$$typeof === REACT_LAZY_TYPE
2047
+ )
2048
+ return "<...>";
2345
2049
  try {
2346
- var RunInRootFrame = {
2347
- DetermineComponentFrameRoot: function () {
2348
- try {
2349
- if (construct) {
2350
- var Fake = function () {
2351
- throw Error();
2352
- };
2353
- Object.defineProperty(Fake.prototype, "props", {
2354
- set: function () {
2355
- throw Error();
2356
- }
2357
- });
2358
- if ("object" === typeof Reflect && Reflect.construct) {
2359
- try {
2360
- Reflect.construct(Fake, []);
2361
- } catch (x) {
2362
- var control = x;
2363
- }
2364
- Reflect.construct(fn, [], Fake);
2365
- } else {
2366
- try {
2367
- Fake.call();
2368
- } catch (x$0) {
2369
- control = x$0;
2370
- }
2371
- fn.call(Fake.prototype);
2372
- }
2373
- } else {
2374
- try {
2375
- throw Error();
2376
- } catch (x$1) {
2377
- control = x$1;
2378
- }
2379
- (Fake = fn()) &&
2380
- "function" === typeof Fake.catch &&
2381
- Fake.catch(function () {});
2382
- }
2383
- } catch (sample) {
2384
- if (sample && control && "string" === typeof sample.stack)
2385
- return [sample.stack, control.stack];
2386
- }
2387
- return [null, null];
2388
- }
2389
- };
2390
- RunInRootFrame.DetermineComponentFrameRoot.displayName =
2391
- "DetermineComponentFrameRoot";
2392
- var namePropDescriptor = Object.getOwnPropertyDescriptor(
2393
- RunInRootFrame.DetermineComponentFrameRoot,
2394
- "name"
2395
- );
2396
- namePropDescriptor &&
2397
- namePropDescriptor.configurable &&
2398
- Object.defineProperty(
2399
- RunInRootFrame.DetermineComponentFrameRoot,
2400
- "name",
2401
- { value: "DetermineComponentFrameRoot" }
2402
- );
2403
- var _RunInRootFrame$Deter =
2404
- RunInRootFrame.DetermineComponentFrameRoot(),
2405
- sampleStack = _RunInRootFrame$Deter[0],
2406
- controlStack = _RunInRootFrame$Deter[1];
2407
- if (sampleStack && controlStack) {
2408
- var sampleLines = sampleStack.split("\n"),
2409
- controlLines = controlStack.split("\n");
2410
- for (
2411
- _RunInRootFrame$Deter = namePropDescriptor = 0;
2412
- namePropDescriptor < sampleLines.length &&
2413
- !sampleLines[namePropDescriptor].includes(
2414
- "DetermineComponentFrameRoot"
2415
- );
2416
-
2417
- )
2418
- namePropDescriptor++;
2419
- for (
2420
- ;
2421
- _RunInRootFrame$Deter < controlLines.length &&
2422
- !controlLines[_RunInRootFrame$Deter].includes(
2423
- "DetermineComponentFrameRoot"
2424
- );
2425
-
2426
- )
2427
- _RunInRootFrame$Deter++;
2428
- if (
2429
- namePropDescriptor === sampleLines.length ||
2430
- _RunInRootFrame$Deter === controlLines.length
2431
- )
2432
- for (
2433
- namePropDescriptor = sampleLines.length - 1,
2434
- _RunInRootFrame$Deter = controlLines.length - 1;
2435
- 1 <= namePropDescriptor &&
2436
- 0 <= _RunInRootFrame$Deter &&
2437
- sampleLines[namePropDescriptor] !==
2438
- controlLines[_RunInRootFrame$Deter];
2439
-
2440
- )
2441
- _RunInRootFrame$Deter--;
2442
- for (
2443
- ;
2444
- 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;
2445
- namePropDescriptor--, _RunInRootFrame$Deter--
2446
- )
2447
- if (
2448
- sampleLines[namePropDescriptor] !==
2449
- controlLines[_RunInRootFrame$Deter]
2450
- ) {
2451
- if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {
2452
- do
2453
- if (
2454
- (namePropDescriptor--,
2455
- _RunInRootFrame$Deter--,
2456
- 0 > _RunInRootFrame$Deter ||
2457
- sampleLines[namePropDescriptor] !==
2458
- controlLines[_RunInRootFrame$Deter])
2459
- ) {
2460
- var _frame =
2461
- "\n" +
2462
- sampleLines[namePropDescriptor].replace(
2463
- " at new ",
2464
- " at "
2465
- );
2466
- fn.displayName &&
2467
- _frame.includes("<anonymous>") &&
2468
- (_frame = _frame.replace("<anonymous>", fn.displayName));
2469
- "function" === typeof fn &&
2470
- componentFrameCache.set(fn, _frame);
2471
- return _frame;
2472
- }
2473
- while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);
2474
- }
2475
- break;
2476
- }
2477
- }
2478
- } finally {
2479
- (reentry = false),
2480
- (ReactSharedInternals.H = previousDispatcher),
2481
- reenableLogs(),
2482
- (Error.prepareStackTrace = frame);
2483
- }
2484
- sampleLines = (sampleLines = fn ? fn.displayName || fn.name : "")
2485
- ? describeBuiltInComponentFrame(sampleLines)
2486
- : "";
2487
- "function" === typeof fn && componentFrameCache.set(fn, sampleLines);
2488
- return sampleLines;
2489
- }
2490
- function describeUnknownElementTypeFrameInDEV(type) {
2491
- if (null == type) return "";
2492
- if ("function" === typeof type) {
2493
- var prototype = type.prototype;
2494
- return describeNativeComponentFrame(
2495
- type,
2496
- !(!prototype || !prototype.isReactComponent)
2497
- );
2050
+ var name = getComponentNameFromType(type);
2051
+ return name ? "<" + name + ">" : "<...>";
2052
+ } catch (x) {
2053
+ return "<...>";
2498
2054
  }
2499
- if ("string" === typeof type) return describeBuiltInComponentFrame(type);
2500
- switch (type) {
2501
- case REACT_SUSPENSE_TYPE:
2502
- return describeBuiltInComponentFrame("Suspense");
2503
- case REACT_SUSPENSE_LIST_TYPE:
2504
- return describeBuiltInComponentFrame("SuspenseList");
2505
- }
2506
- if ("object" === typeof type)
2507
- switch (type.$$typeof) {
2508
- case REACT_FORWARD_REF_TYPE:
2509
- return (type = describeNativeComponentFrame(type.render, false)), type;
2510
- case REACT_MEMO_TYPE:
2511
- return describeUnknownElementTypeFrameInDEV(type.type);
2512
- case REACT_LAZY_TYPE:
2513
- prototype = type._payload;
2514
- type = type._init;
2515
- try {
2516
- return describeUnknownElementTypeFrameInDEV(type(prototype));
2517
- } catch (x) {}
2518
- }
2519
- return "";
2520
2055
  }
2521
2056
  function getOwner() {
2522
2057
  var dispatcher = ReactSharedInternals.A;
2523
2058
  return null === dispatcher ? null : dispatcher.getOwner();
2524
2059
  }
2060
+ function UnknownOwner() {
2061
+ return Error("react-stack-top-frame");
2062
+ }
2525
2063
  function hasValidKey(config) {
2526
2064
  if (hasOwnProperty.call(config, "key")) {
2527
2065
  var getter = Object.getOwnPropertyDescriptor(config, "key").get;
@@ -2554,8 +2092,8 @@ function requireReactJsxRuntime_development () {
2554
2092
  componentName = this.props.ref;
2555
2093
  return void 0 !== componentName ? componentName : null;
2556
2094
  }
2557
- function ReactElement(type, key, self, source, owner, props) {
2558
- self = props.ref;
2095
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
2096
+ var refProp = props.ref;
2559
2097
  type = {
2560
2098
  $$typeof: REACT_ELEMENT_TYPE,
2561
2099
  type: type,
@@ -2563,7 +2101,7 @@ function requireReactJsxRuntime_development () {
2563
2101
  props: props,
2564
2102
  _owner: owner
2565
2103
  };
2566
- null !== (void 0 !== self ? self : null)
2104
+ null !== (void 0 !== refProp ? refProp : null)
2567
2105
  ? Object.defineProperty(type, "ref", {
2568
2106
  enumerable: false,
2569
2107
  get: elementRefGetterWithDeprecationWarning
@@ -2582,6 +2120,18 @@ function requireReactJsxRuntime_development () {
2582
2120
  writable: true,
2583
2121
  value: null
2584
2122
  });
2123
+ Object.defineProperty(type, "_debugStack", {
2124
+ configurable: false,
2125
+ enumerable: false,
2126
+ writable: true,
2127
+ value: debugStack
2128
+ });
2129
+ Object.defineProperty(type, "_debugTask", {
2130
+ configurable: false,
2131
+ enumerable: false,
2132
+ writable: true,
2133
+ value: debugTask
2134
+ });
2585
2135
  Object.freeze && (Object.freeze(type.props), Object.freeze(type));
2586
2136
  return type;
2587
2137
  }
@@ -2590,72 +2140,25 @@ function requireReactJsxRuntime_development () {
2590
2140
  config,
2591
2141
  maybeKey,
2592
2142
  isStaticChildren,
2593
- source,
2594
- self
2143
+ debugStack,
2144
+ debugTask
2595
2145
  ) {
2596
- if (
2597
- "string" === typeof type ||
2598
- "function" === typeof type ||
2599
- type === REACT_FRAGMENT_TYPE ||
2600
- type === REACT_PROFILER_TYPE ||
2601
- type === REACT_STRICT_MODE_TYPE ||
2602
- type === REACT_SUSPENSE_TYPE ||
2603
- type === REACT_SUSPENSE_LIST_TYPE ||
2604
- type === REACT_OFFSCREEN_TYPE ||
2605
- ("object" === typeof type &&
2606
- null !== type &&
2607
- (type.$$typeof === REACT_LAZY_TYPE ||
2608
- type.$$typeof === REACT_MEMO_TYPE ||
2609
- type.$$typeof === REACT_CONTEXT_TYPE ||
2610
- type.$$typeof === REACT_CONSUMER_TYPE ||
2611
- type.$$typeof === REACT_FORWARD_REF_TYPE ||
2612
- type.$$typeof === REACT_CLIENT_REFERENCE$1 ||
2613
- void 0 !== type.getModuleId))
2614
- ) {
2615
- var children = config.children;
2616
- if (void 0 !== children)
2617
- if (isStaticChildren)
2618
- if (isArrayImpl(children)) {
2619
- for (
2620
- isStaticChildren = 0;
2621
- isStaticChildren < children.length;
2622
- isStaticChildren++
2623
- )
2624
- validateChildKeys(children[isStaticChildren], type);
2625
- Object.freeze && Object.freeze(children);
2626
- } else
2627
- console.error(
2628
- "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2629
- );
2630
- else validateChildKeys(children, type);
2631
- } else {
2632
- children = "";
2633
- if (
2634
- void 0 === type ||
2635
- ("object" === typeof type &&
2636
- null !== type &&
2637
- 0 === Object.keys(type).length)
2638
- )
2639
- children +=
2640
- " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
2641
- null === type
2642
- ? (isStaticChildren = "null")
2643
- : isArrayImpl(type)
2644
- ? (isStaticChildren = "array")
2645
- : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE
2646
- ? ((isStaticChildren =
2647
- "<" +
2648
- (getComponentNameFromType(type.type) || "Unknown") +
2649
- " />"),
2650
- (children =
2651
- " Did you accidentally export a JSX literal instead of a component?"))
2652
- : (isStaticChildren = typeof type);
2653
- console.error(
2654
- "React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",
2655
- isStaticChildren,
2656
- children
2657
- );
2658
- }
2146
+ var children = config.children;
2147
+ if (void 0 !== children)
2148
+ if (isStaticChildren)
2149
+ if (isArrayImpl(children)) {
2150
+ for (
2151
+ isStaticChildren = 0;
2152
+ isStaticChildren < children.length;
2153
+ isStaticChildren++
2154
+ )
2155
+ validateChildKeys(children[isStaticChildren]);
2156
+ Object.freeze && Object.freeze(children);
2157
+ } else
2158
+ console.error(
2159
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
2160
+ );
2161
+ else validateChildKeys(children);
2659
2162
  if (hasOwnProperty.call(config, "key")) {
2660
2163
  children = getComponentNameFromType(type);
2661
2164
  var keys = Object.keys(config).filter(function (k) {
@@ -2694,35 +2197,26 @@ function requireReactJsxRuntime_development () {
2694
2197
  ? type.displayName || type.name || "Unknown"
2695
2198
  : type
2696
2199
  );
2697
- return ReactElement(type, children, self, source, getOwner(), maybeKey);
2200
+ return ReactElement(
2201
+ type,
2202
+ children,
2203
+ maybeKey,
2204
+ getOwner(),
2205
+ debugStack,
2206
+ debugTask
2207
+ );
2698
2208
  }
2699
- function validateChildKeys(node, parentType) {
2700
- if (
2701
- "object" === typeof node &&
2702
- node &&
2703
- node.$$typeof !== REACT_CLIENT_REFERENCE
2704
- )
2705
- if (isArrayImpl(node))
2706
- for (var i = 0; i < node.length; i++) {
2707
- var child = node[i];
2708
- isValidElement(child) && validateExplicitKey(child, parentType);
2709
- }
2710
- else if (isValidElement(node))
2711
- node._store && (node._store.validated = 1);
2712
- else if (
2713
- (null === node || "object" !== typeof node
2714
- ? (i = null)
2715
- : ((i =
2716
- (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||
2717
- node["@@iterator"]),
2718
- (i = "function" === typeof i ? i : null)),
2719
- "function" === typeof i &&
2720
- i !== node.entries &&
2721
- ((i = i.call(node)), i !== node))
2722
- )
2723
- for (; !(node = i.next()).done; )
2724
- isValidElement(node.value) &&
2725
- validateExplicitKey(node.value, parentType);
2209
+ function validateChildKeys(node) {
2210
+ isValidElement(node)
2211
+ ? node._store && (node._store.validated = 1)
2212
+ : "object" === typeof node &&
2213
+ null !== node &&
2214
+ node.$$typeof === REACT_LAZY_TYPE &&
2215
+ ("fulfilled" === node._payload.status
2216
+ ? isValidElement(node._payload.value) &&
2217
+ node._payload.value._store &&
2218
+ (node._payload.value._store.validated = 1)
2219
+ : node._store && (node._store.validated = 1));
2726
2220
  }
2727
2221
  function isValidElement(object) {
2728
2222
  return (
@@ -2731,100 +2225,71 @@ function requireReactJsxRuntime_development () {
2731
2225
  object.$$typeof === REACT_ELEMENT_TYPE
2732
2226
  );
2733
2227
  }
2734
- function validateExplicitKey(element, parentType) {
2735
- if (
2736
- element._store &&
2737
- !element._store.validated &&
2738
- null == element.key &&
2739
- ((element._store.validated = 1),
2740
- (parentType = getCurrentComponentErrorInfo(parentType)),
2741
- !ownerHasKeyUseWarning[parentType])
2742
- ) {
2743
- ownerHasKeyUseWarning[parentType] = true;
2744
- var childOwner = "";
2745
- element &&
2746
- null != element._owner &&
2747
- element._owner !== getOwner() &&
2748
- ((childOwner = null),
2749
- "number" === typeof element._owner.tag
2750
- ? (childOwner = getComponentNameFromType(element._owner.type))
2751
- : "string" === typeof element._owner.name &&
2752
- (childOwner = element._owner.name),
2753
- (childOwner = " It was passed a child from " + childOwner + "."));
2754
- var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;
2755
- ReactSharedInternals.getCurrentStack = function () {
2756
- var stack = describeUnknownElementTypeFrameInDEV(element.type);
2757
- prevGetCurrentStack && (stack += prevGetCurrentStack() || "");
2758
- return stack;
2759
- };
2760
- console.error(
2761
- 'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
2762
- parentType,
2763
- childOwner
2764
- );
2765
- ReactSharedInternals.getCurrentStack = prevGetCurrentStack;
2766
- }
2767
- }
2768
- function getCurrentComponentErrorInfo(parentType) {
2769
- var info = "",
2770
- owner = getOwner();
2771
- owner &&
2772
- (owner = getComponentNameFromType(owner.type)) &&
2773
- (info = "\n\nCheck the render method of `" + owner + "`.");
2774
- info ||
2775
- ((parentType = getComponentNameFromType(parentType)) &&
2776
- (info =
2777
- "\n\nCheck the top-level render call using <" + parentType + ">."));
2778
- return info;
2779
- }
2780
2228
  var React = reactExports,
2781
2229
  REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
2782
2230
  REACT_PORTAL_TYPE = Symbol.for("react.portal"),
2783
2231
  REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
2784
2232
  REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
2785
- REACT_PROFILER_TYPE = Symbol.for("react.profiler");
2786
- var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2233
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
2234
+ REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
2787
2235
  REACT_CONTEXT_TYPE = Symbol.for("react.context"),
2788
2236
  REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
2789
2237
  REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
2790
2238
  REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
2791
2239
  REACT_MEMO_TYPE = Symbol.for("react.memo"),
2792
2240
  REACT_LAZY_TYPE = Symbol.for("react.lazy"),
2793
- REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"),
2794
- MAYBE_ITERATOR_SYMBOL = Symbol.iterator,
2795
- REACT_CLIENT_REFERENCE$2 = Symbol.for("react.client.reference"),
2241
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
2242
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2796
2243
  ReactSharedInternals =
2797
2244
  React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
2798
2245
  hasOwnProperty = Object.prototype.hasOwnProperty,
2799
- assign = Object.assign,
2800
- REACT_CLIENT_REFERENCE$1 = Symbol.for("react.client.reference"),
2801
2246
  isArrayImpl = Array.isArray,
2802
- disabledDepth = 0,
2803
- prevLog,
2804
- prevInfo,
2805
- prevWarn,
2806
- prevError,
2807
- prevGroup,
2808
- prevGroupCollapsed,
2809
- prevGroupEnd;
2810
- disabledLog.__reactDisabledLog = true;
2811
- var prefix,
2812
- suffix,
2813
- reentry = false;
2814
- var componentFrameCache = new (
2815
- "function" === typeof WeakMap ? WeakMap : Map
2816
- )();
2817
- var REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
2818
- specialPropKeyWarningShown;
2247
+ createTask = console.createTask
2248
+ ? console.createTask
2249
+ : function () {
2250
+ return null;
2251
+ };
2252
+ React = {
2253
+ react_stack_bottom_frame: function (callStackForError) {
2254
+ return callStackForError();
2255
+ }
2256
+ };
2257
+ var specialPropKeyWarningShown;
2819
2258
  var didWarnAboutElementRef = {};
2820
- var didWarnAboutKeySpread = {},
2821
- ownerHasKeyUseWarning = {};
2259
+ var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(
2260
+ React,
2261
+ UnknownOwner
2262
+ )();
2263
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
2264
+ var didWarnAboutKeySpread = {};
2822
2265
  reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
2823
- reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
2824
- return jsxDEVImpl(type, config, maybeKey, false, source, self);
2266
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
2267
+ var trackActualOwner =
2268
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2269
+ return jsxDEVImpl(
2270
+ type,
2271
+ config,
2272
+ maybeKey,
2273
+ false,
2274
+ trackActualOwner
2275
+ ? Error("react-stack-top-frame")
2276
+ : unknownOwnerDebugStack,
2277
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2278
+ );
2825
2279
  };
2826
- reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
2827
- return jsxDEVImpl(type, config, maybeKey, true, source, self);
2280
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
2281
+ var trackActualOwner =
2282
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
2283
+ return jsxDEVImpl(
2284
+ type,
2285
+ config,
2286
+ maybeKey,
2287
+ true,
2288
+ trackActualOwner
2289
+ ? Error("react-stack-top-frame")
2290
+ : unknownOwnerDebugStack,
2291
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
2292
+ );
2828
2293
  };
2829
2294
  })();
2830
2295
  return reactJsxRuntime_development;
@@ -9496,6 +8961,7 @@ class ComponentBuilder {
9496
8961
  reactExports.useEffect(() => {
9497
8962
  var _a;
9498
8963
  (_a = this.stateFn) === null || _a === void 0 ? void 0 : _a.call(this, componentState, setComponentState);
8964
+ // eslint-disable-next-line react-hooks/exhaustive-deps
9499
8965
  }, [this.stateFn]);
9500
8966
  this.useEffectsRunner(this.effectsFn, componentState, setComponentState);
9501
8967
  const reactElement = (typeof this.baseComponent === 'function'
@@ -9680,11 +9146,10 @@ function requireModernBrowserslistTarget () {
9680
9146
  if (hasRequiredModernBrowserslistTarget) return modernBrowserslistTarget;
9681
9147
  hasRequiredModernBrowserslistTarget = 1;
9682
9148
  const MODERN_BROWSERSLIST_TARGET = [
9683
- 'chrome 64',
9684
- 'edge 79',
9685
- 'firefox 67',
9686
- 'opera 51',
9687
- 'safari 12'
9149
+ 'chrome 111',
9150
+ 'edge 111',
9151
+ 'firefox 111',
9152
+ 'safari 16.4'
9688
9153
  ];
9689
9154
  modernBrowserslistTarget = MODERN_BROWSERSLIST_TARGET;
9690
9155
 
@@ -9692,6 +9157,47 @@ function requireModernBrowserslistTarget () {
9692
9157
  return modernBrowserslistTarget;
9693
9158
  }
9694
9159
 
9160
+ var entryConstants = {};
9161
+
9162
+ var hasRequiredEntryConstants;
9163
+
9164
+ function requireEntryConstants () {
9165
+ if (hasRequiredEntryConstants) return entryConstants;
9166
+ hasRequiredEntryConstants = 1;
9167
+ (function (exports$1) {
9168
+ Object.defineProperty(exports$1, "__esModule", {
9169
+ value: true
9170
+ });
9171
+ function _export(target, all) {
9172
+ for(var name in all)Object.defineProperty(target, name, {
9173
+ enumerable: true,
9174
+ get: all[name]
9175
+ });
9176
+ }
9177
+ _export(exports$1, {
9178
+ UNDERSCORE_GLOBAL_ERROR_ROUTE: function() {
9179
+ return UNDERSCORE_GLOBAL_ERROR_ROUTE;
9180
+ },
9181
+ UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY: function() {
9182
+ return UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY;
9183
+ },
9184
+ UNDERSCORE_NOT_FOUND_ROUTE: function() {
9185
+ return UNDERSCORE_NOT_FOUND_ROUTE;
9186
+ },
9187
+ UNDERSCORE_NOT_FOUND_ROUTE_ENTRY: function() {
9188
+ return UNDERSCORE_NOT_FOUND_ROUTE_ENTRY;
9189
+ }
9190
+ });
9191
+ const UNDERSCORE_NOT_FOUND_ROUTE = '/_not-found';
9192
+ const UNDERSCORE_NOT_FOUND_ROUTE_ENTRY = `${UNDERSCORE_NOT_FOUND_ROUTE}/page`;
9193
+ const UNDERSCORE_GLOBAL_ERROR_ROUTE = '/_global-error';
9194
+ const UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY = `${UNDERSCORE_GLOBAL_ERROR_ROUTE}/page`;
9195
+
9196
+
9197
+ } (entryConstants));
9198
+ return entryConstants;
9199
+ }
9200
+
9695
9201
  (function (module, exports$1) {
9696
9202
  Object.defineProperty(exports$1, "__esModule", {
9697
9203
  value: true
@@ -9703,9 +9209,6 @@ function requireModernBrowserslistTarget () {
9703
9209
  });
9704
9210
  }
9705
9211
  _export(exports$1, {
9706
- APP_BUILD_MANIFEST: function() {
9707
- return APP_BUILD_MANIFEST;
9708
- },
9709
9212
  APP_CLIENT_INTERNALS: function() {
9710
9213
  return APP_CLIENT_INTERNALS;
9711
9214
  },
@@ -9739,9 +9242,6 @@ function requireModernBrowserslistTarget () {
9739
9242
  CLIENT_STATIC_FILES_PATH: function() {
9740
9243
  return CLIENT_STATIC_FILES_PATH;
9741
9244
  },
9742
- CLIENT_STATIC_FILES_RUNTIME_AMP: function() {
9743
- return CLIENT_STATIC_FILES_RUNTIME_AMP;
9744
- },
9745
9245
  CLIENT_STATIC_FILES_RUNTIME_MAIN: function() {
9746
9246
  return CLIENT_STATIC_FILES_RUNTIME_MAIN;
9747
9247
  },
@@ -9829,6 +9329,9 @@ function requireModernBrowserslistTarget () {
9829
9329
  PAGES_MANIFEST: function() {
9830
9330
  return PAGES_MANIFEST;
9831
9331
  },
9332
+ PHASE_ANALYZE: function() {
9333
+ return PHASE_ANALYZE;
9334
+ },
9832
9335
  PHASE_DEVELOPMENT_SERVER: function() {
9833
9336
  return PHASE_DEVELOPMENT_SERVER;
9834
9337
  },
@@ -9898,11 +9401,17 @@ function requireModernBrowserslistTarget () {
9898
9401
  TURBO_TRACE_DEFAULT_MEMORY_LIMIT: function() {
9899
9402
  return TURBO_TRACE_DEFAULT_MEMORY_LIMIT;
9900
9403
  },
9404
+ UNDERSCORE_GLOBAL_ERROR_ROUTE: function() {
9405
+ return _entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE;
9406
+ },
9407
+ UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY: function() {
9408
+ return _entryconstants.UNDERSCORE_GLOBAL_ERROR_ROUTE_ENTRY;
9409
+ },
9901
9410
  UNDERSCORE_NOT_FOUND_ROUTE: function() {
9902
- return UNDERSCORE_NOT_FOUND_ROUTE;
9411
+ return _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE;
9903
9412
  },
9904
9413
  UNDERSCORE_NOT_FOUND_ROUTE_ENTRY: function() {
9905
- return UNDERSCORE_NOT_FOUND_ROUTE_ENTRY;
9414
+ return _entryconstants.UNDERSCORE_NOT_FOUND_ROUTE_ENTRY;
9906
9415
  },
9907
9416
  WEBPACK_STATS: function() {
9908
9417
  return WEBPACK_STATS;
@@ -9910,11 +9419,17 @@ function requireModernBrowserslistTarget () {
9910
9419
  });
9911
9420
  const _interop_require_default = _interop_require_default$1;
9912
9421
  const _modernbrowserslisttarget = /*#__PURE__*/ _interop_require_default._(requireModernBrowserslistTarget());
9422
+ const _entryconstants = requireEntryConstants();
9913
9423
  const COMPILER_NAMES = {
9914
9424
  client: 'client',
9915
9425
  server: 'server',
9916
9426
  edgeServer: 'edge-server'
9917
9427
  };
9428
+ const COMPILER_INDEXES = {
9429
+ [COMPILER_NAMES.client]: 0,
9430
+ [COMPILER_NAMES.server]: 1,
9431
+ [COMPILER_NAMES.edgeServer]: 2
9432
+ };
9918
9433
  var AdapterOutputType = /*#__PURE__*/ function(AdapterOutputType) {
9919
9434
  /**
9920
9435
  * `PAGES` represents all the React pages that are under `pages/`.
@@ -9942,14 +9457,8 @@ function requireModernBrowserslistTarget () {
9942
9457
  */ AdapterOutputType["MIDDLEWARE"] = "MIDDLEWARE";
9943
9458
  return AdapterOutputType;
9944
9459
  }({});
9945
- const COMPILER_INDEXES = {
9946
- [COMPILER_NAMES.client]: 0,
9947
- [COMPILER_NAMES.server]: 1,
9948
- [COMPILER_NAMES.edgeServer]: 2
9949
- };
9950
- const UNDERSCORE_NOT_FOUND_ROUTE = '/_not-found';
9951
- const UNDERSCORE_NOT_FOUND_ROUTE_ENTRY = "" + UNDERSCORE_NOT_FOUND_ROUTE + "/page";
9952
9460
  const PHASE_EXPORT = 'phase-export';
9461
+ const PHASE_ANALYZE = 'phase-analyze';
9953
9462
  const PHASE_PRODUCTION_BUILD = 'phase-production-build';
9954
9463
  const PHASE_PRODUCTION_SERVER = 'phase-production-server';
9955
9464
  const PHASE_DEVELOPMENT_SERVER = 'phase-development-server';
@@ -9960,7 +9469,6 @@ function requireModernBrowserslistTarget () {
9960
9469
  const APP_PATHS_MANIFEST = 'app-paths-manifest.json';
9961
9470
  const APP_PATH_ROUTES_MANIFEST = 'app-path-routes-manifest.json';
9962
9471
  const BUILD_MANIFEST = 'build-manifest.json';
9963
- const APP_BUILD_MANIFEST = 'app-build-manifest.json';
9964
9472
  const FUNCTIONS_CONFIG_MANIFEST = 'functions-config-manifest.json';
9965
9473
  const SUBRESOURCE_INTEGRITY_MANIFEST = 'subresource-integrity-manifest';
9966
9474
  const NEXT_FONT_MANIFEST = 'next-font-manifest';
@@ -9969,7 +9477,7 @@ function requireModernBrowserslistTarget () {
9969
9477
  const PRERENDER_MANIFEST = 'prerender-manifest.json';
9970
9478
  const ROUTES_MANIFEST = 'routes-manifest.json';
9971
9479
  const IMAGES_MANIFEST = 'images-manifest.json';
9972
- const SERVER_FILES_MANIFEST = 'required-server-files.json';
9480
+ const SERVER_FILES_MANIFEST = 'required-server-files';
9973
9481
  const DEV_CLIENT_PAGES_MANIFEST = '_devPagesManifest.json';
9974
9482
  const MIDDLEWARE_MANIFEST = 'middleware-manifest.json';
9975
9483
  const TURBOPACK_CLIENT_MIDDLEWARE_MANIFEST = '_clientMiddlewareManifest.json';
@@ -9980,7 +9488,12 @@ function requireModernBrowserslistTarget () {
9980
9488
  const CONFIG_FILES = [
9981
9489
  'next.config.js',
9982
9490
  'next.config.mjs',
9983
- 'next.config.ts'
9491
+ 'next.config.ts',
9492
+ // process.features can be undefined on Edge runtime
9493
+ // TODO: Remove `as any` once we bump @types/node to v22.10.0+
9494
+ ...process?.features?.typescript ? [
9495
+ 'next.config.mts'
9496
+ ] : []
9984
9497
  ];
9985
9498
  const BUILD_ID_FILE = 'BUILD_ID';
9986
9499
  const BLOCKED_PAGES = [
@@ -9999,12 +9512,11 @@ function requireModernBrowserslistTarget () {
9999
9512
  const MIDDLEWARE_REACT_LOADABLE_MANIFEST = 'middleware-react-loadable-manifest';
10000
9513
  const INTERCEPTION_ROUTE_REWRITE_MANIFEST = 'interception-route-rewrite-manifest';
10001
9514
  const DYNAMIC_CSS_MANIFEST = 'dynamic-css-manifest';
10002
- const CLIENT_STATIC_FILES_RUNTIME_MAIN = "main";
10003
- const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = "" + CLIENT_STATIC_FILES_RUNTIME_MAIN + "-app";
9515
+ const CLIENT_STATIC_FILES_RUNTIME_MAIN = `main`;
9516
+ const CLIENT_STATIC_FILES_RUNTIME_MAIN_APP = `${CLIENT_STATIC_FILES_RUNTIME_MAIN}-app`;
10004
9517
  const APP_CLIENT_INTERNALS = 'app-pages-internals';
10005
- const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = "react-refresh";
10006
- const CLIENT_STATIC_FILES_RUNTIME_AMP = "amp";
10007
- const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = "webpack";
9518
+ const CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH = `react-refresh`;
9519
+ const CLIENT_STATIC_FILES_RUNTIME_WEBPACK = `webpack`;
10008
9520
  const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS = 'polyfills';
10009
9521
  const CLIENT_STATIC_FILES_RUNTIME_POLYFILLS_SYMBOL = Symbol(CLIENT_STATIC_FILES_RUNTIME_POLYFILLS);
10010
9522
  const DEFAULT_RUNTIME_WEBPACK = 'webpack-runtime';
@@ -10053,7 +9565,6 @@ function requireModernBrowserslistTarget () {
10053
9565
  const SYSTEM_ENTRYPOINTS = new Set([
10054
9566
  CLIENT_STATIC_FILES_RUNTIME_MAIN,
10055
9567
  CLIENT_STATIC_FILES_RUNTIME_REACT_REFRESH,
10056
- CLIENT_STATIC_FILES_RUNTIME_AMP,
10057
9568
  CLIENT_STATIC_FILES_RUNTIME_MAIN_APP
10058
9569
  ]);
10059
9570
 
@@ -10072,7 +9583,7 @@ var getPageFiles = {};
10072
9583
 
10073
9584
  var denormalizePagePath = {};
10074
9585
 
10075
- var utils$3 = {};
9586
+ var utils$2 = {};
10076
9587
 
10077
9588
  var sortedRoutes = {};
10078
9589
 
@@ -10101,8 +9612,7 @@ var sortedRoutes = {};
10101
9612
  smoosh() {
10102
9613
  return this._smoosh();
10103
9614
  }
10104
- _smoosh(prefix) {
10105
- if (prefix === void 0) prefix = '/';
9615
+ _smoosh(prefix = '/') {
10106
9616
  const childrenPaths = [
10107
9617
  ...this.children.keys()
10108
9618
  ].sort();
@@ -10115,17 +9625,17 @@ var sortedRoutes = {};
10115
9625
  if (this.optionalRestSlugName !== null) {
10116
9626
  childrenPaths.splice(childrenPaths.indexOf('[[...]]'), 1);
10117
9627
  }
10118
- const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh("" + prefix + c + "/")).reduce((prev, curr)=>[
9628
+ const routes = childrenPaths.map((c)=>this.children.get(c)._smoosh(`${prefix}${c}/`)).reduce((prev, curr)=>[
10119
9629
  ...prev,
10120
9630
  ...curr
10121
9631
  ], []);
10122
9632
  if (this.slugName !== null) {
10123
- routes.push(...this.children.get('[]')._smoosh(prefix + "[" + this.slugName + "]/"));
9633
+ routes.push(...this.children.get('[]')._smoosh(`${prefix}[${this.slugName}]/`));
10124
9634
  }
10125
9635
  if (!this.placeholder) {
10126
9636
  const r = prefix === '/' ? '/' : prefix.slice(0, -1);
10127
9637
  if (this.optionalRestSlugName != null) {
10128
- throw Object.defineProperty(new Error('You cannot define a route with the same specificity as a optional catch-all route ("' + r + '" and "' + r + "[[..." + this.optionalRestSlugName + ']]").'), "__NEXT_ERROR_CODE", {
9638
+ throw Object.defineProperty(new Error(`You cannot define a route with the same specificity as a optional catch-all route ("${r}" and "${r}[[...${this.optionalRestSlugName}]]").`), "__NEXT_ERROR_CODE", {
10129
9639
  value: "E458",
10130
9640
  enumerable: false,
10131
9641
  configurable: true
@@ -10134,10 +9644,10 @@ var sortedRoutes = {};
10134
9644
  routes.unshift(r);
10135
9645
  }
10136
9646
  if (this.restSlugName !== null) {
10137
- routes.push(...this.children.get('[...]')._smoosh(prefix + "[..." + this.restSlugName + "]/"));
9647
+ routes.push(...this.children.get('[...]')._smoosh(`${prefix}[...${this.restSlugName}]/`));
10138
9648
  }
10139
9649
  if (this.optionalRestSlugName !== null) {
10140
- routes.push(...this.children.get('[[...]]')._smoosh(prefix + "[[..." + this.optionalRestSlugName + "]]/"));
9650
+ routes.push(...this.children.get('[[...]]')._smoosh(`${prefix}[[...${this.optionalRestSlugName}]]/`));
10141
9651
  }
10142
9652
  return routes;
10143
9653
  }
@@ -10147,7 +9657,7 @@ var sortedRoutes = {};
10147
9657
  return;
10148
9658
  }
10149
9659
  if (isCatchAll) {
10150
- throw Object.defineProperty(new Error("Catch-all must be the last part of the URL."), "__NEXT_ERROR_CODE", {
9660
+ throw Object.defineProperty(new Error(`Catch-all must be the last part of the URL.`), "__NEXT_ERROR_CODE", {
10151
9661
  value: "E392",
10152
9662
  enumerable: false,
10153
9663
  configurable: true
@@ -10166,7 +9676,7 @@ var sortedRoutes = {};
10166
9676
  isOptional = true;
10167
9677
  }
10168
9678
  if (segmentName.startsWith('…')) {
10169
- throw Object.defineProperty(new Error("Detected a three-dot character ('…') at ('" + segmentName + "'). Did you mean ('...')?"), "__NEXT_ERROR_CODE", {
9679
+ throw Object.defineProperty(new Error(`Detected a three-dot character ('…') at ('${segmentName}'). Did you mean ('...')?`), "__NEXT_ERROR_CODE", {
10170
9680
  value: "E147",
10171
9681
  enumerable: false,
10172
9682
  configurable: true
@@ -10178,14 +9688,14 @@ var sortedRoutes = {};
10178
9688
  isCatchAll = true;
10179
9689
  }
10180
9690
  if (segmentName.startsWith('[') || segmentName.endsWith(']')) {
10181
- throw Object.defineProperty(new Error("Segment names may not start or end with extra brackets ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
9691
+ throw Object.defineProperty(new Error(`Segment names may not start or end with extra brackets ('${segmentName}').`), "__NEXT_ERROR_CODE", {
10182
9692
  value: "E421",
10183
9693
  enumerable: false,
10184
9694
  configurable: true
10185
9695
  });
10186
9696
  }
10187
9697
  if (segmentName.startsWith('.')) {
10188
- throw Object.defineProperty(new Error("Segment names may not start with erroneous periods ('" + segmentName + "')."), "__NEXT_ERROR_CODE", {
9698
+ throw Object.defineProperty(new Error(`Segment names may not start with erroneous periods ('${segmentName}').`), "__NEXT_ERROR_CODE", {
10189
9699
  value: "E288",
10190
9700
  enumerable: false,
10191
9701
  configurable: true
@@ -10200,7 +9710,7 @@ var sortedRoutes = {};
10200
9710
  // Because currently multiple dynamic params on the same segment level are not supported
10201
9711
  if (previousSlug !== nextSlug) {
10202
9712
  // TODO: This error seems to be confusing for users, needs an error link, the description can be based on above comment.
10203
- throw Object.defineProperty(new Error("You cannot use different slug names for the same dynamic path ('" + previousSlug + "' !== '" + nextSlug + "')."), "__NEXT_ERROR_CODE", {
9713
+ throw Object.defineProperty(new Error(`You cannot use different slug names for the same dynamic path ('${previousSlug}' !== '${nextSlug}').`), "__NEXT_ERROR_CODE", {
10204
9714
  value: "E337",
10205
9715
  enumerable: false,
10206
9716
  configurable: true
@@ -10209,14 +9719,14 @@ var sortedRoutes = {};
10209
9719
  }
10210
9720
  slugNames.forEach((slug)=>{
10211
9721
  if (slug === nextSlug) {
10212
- throw Object.defineProperty(new Error('You cannot have the same slug name "' + nextSlug + '" repeat within a single dynamic path'), "__NEXT_ERROR_CODE", {
9722
+ throw Object.defineProperty(new Error(`You cannot have the same slug name "${nextSlug}" repeat within a single dynamic path`), "__NEXT_ERROR_CODE", {
10213
9723
  value: "E247",
10214
9724
  enumerable: false,
10215
9725
  configurable: true
10216
9726
  });
10217
9727
  }
10218
9728
  if (slug.replace(/\W/g, '') === nextSegment.replace(/\W/g, '')) {
10219
- throw Object.defineProperty(new Error('You cannot have the slug names "' + slug + '" and "' + nextSlug + '" differ only by non-word symbols within a single dynamic path'), "__NEXT_ERROR_CODE", {
9729
+ throw Object.defineProperty(new Error(`You cannot have the slug names "${slug}" and "${nextSlug}" differ only by non-word symbols within a single dynamic path`), "__NEXT_ERROR_CODE", {
10220
9730
  value: "E499",
10221
9731
  enumerable: false,
10222
9732
  configurable: true
@@ -10228,7 +9738,7 @@ var sortedRoutes = {};
10228
9738
  if (isCatchAll) {
10229
9739
  if (isOptional) {
10230
9740
  if (this.restSlugName != null) {
10231
- throw Object.defineProperty(new Error('You cannot use both an required and optional catch-all route at the same level ("[...' + this.restSlugName + ']" and "' + urlPaths[0] + '" ).'), "__NEXT_ERROR_CODE", {
9741
+ throw Object.defineProperty(new Error(`You cannot use both an required and optional catch-all route at the same level ("[...${this.restSlugName}]" and "${urlPaths[0]}" ).`), "__NEXT_ERROR_CODE", {
10232
9742
  value: "E299",
10233
9743
  enumerable: false,
10234
9744
  configurable: true
@@ -10241,7 +9751,7 @@ var sortedRoutes = {};
10241
9751
  nextSegment = '[[...]]';
10242
9752
  } else {
10243
9753
  if (this.optionalRestSlugName != null) {
10244
- throw Object.defineProperty(new Error('You cannot use both an optional and required catch-all route at the same level ("[[...' + this.optionalRestSlugName + ']]" and "' + urlPaths[0] + '").'), "__NEXT_ERROR_CODE", {
9754
+ throw Object.defineProperty(new Error(`You cannot use both an optional and required catch-all route at the same level ("[[...${this.optionalRestSlugName}]]" and "${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
10245
9755
  value: "E300",
10246
9756
  enumerable: false,
10247
9757
  configurable: true
@@ -10255,7 +9765,7 @@ var sortedRoutes = {};
10255
9765
  }
10256
9766
  } else {
10257
9767
  if (isOptional) {
10258
- throw Object.defineProperty(new Error('Optional route parameters are not yet supported ("' + urlPaths[0] + '").'), "__NEXT_ERROR_CODE", {
9768
+ throw Object.defineProperty(new Error(`Optional route parameters are not yet supported ("${urlPaths[0]}").`), "__NEXT_ERROR_CODE", {
10259
9769
  value: "E435",
10260
9770
  enumerable: false,
10261
9771
  configurable: true
@@ -10343,7 +9853,7 @@ var ensureLeadingSlash = {};
10343
9853
  }
10344
9854
  });
10345
9855
  function ensureLeadingSlash(path) {
10346
- return path.startsWith('/') ? path : "/" + path;
9856
+ return path.startsWith('/') ? path : `/${path}`;
10347
9857
  }
10348
9858
 
10349
9859
 
@@ -10365,12 +9875,24 @@ var segment = {};
10365
9875
  DEFAULT_SEGMENT_KEY: function() {
10366
9876
  return DEFAULT_SEGMENT_KEY;
10367
9877
  },
9878
+ NOT_FOUND_SEGMENT_KEY: function() {
9879
+ return NOT_FOUND_SEGMENT_KEY;
9880
+ },
10368
9881
  PAGE_SEGMENT_KEY: function() {
10369
9882
  return PAGE_SEGMENT_KEY;
10370
9883
  },
10371
9884
  addSearchParamsIfPageSegment: function() {
10372
9885
  return addSearchParamsIfPageSegment;
10373
9886
  },
9887
+ computeSelectedLayoutSegment: function() {
9888
+ return computeSelectedLayoutSegment;
9889
+ },
9890
+ getSegmentValue: function() {
9891
+ return getSegmentValue;
9892
+ },
9893
+ getSelectedLayoutSegmentPath: function() {
9894
+ return getSelectedLayoutSegmentPath;
9895
+ },
10374
9896
  isGroupSegment: function() {
10375
9897
  return isGroupSegment;
10376
9898
  },
@@ -10378,6 +9900,9 @@ var segment = {};
10378
9900
  return isParallelRouteSegment;
10379
9901
  }
10380
9902
  });
9903
+ function getSegmentValue(segment) {
9904
+ return Array.isArray(segment) ? segment[1] : segment;
9905
+ }
10381
9906
  function isGroupSegment(segment) {
10382
9907
  // Use array[0] for performant purpose
10383
9908
  return segment[0] === '(' && segment.endsWith(')');
@@ -10393,8 +9918,38 @@ var segment = {};
10393
9918
  }
10394
9919
  return segment;
10395
9920
  }
9921
+ function computeSelectedLayoutSegment(segments, parallelRouteKey) {
9922
+ if (!segments || segments.length === 0) {
9923
+ return null;
9924
+ }
9925
+ // For 'children', use first segment; for other parallel routes, use last segment
9926
+ const rawSegment = parallelRouteKey === 'children' ? segments[0] : segments[segments.length - 1];
9927
+ // If the default slot is showing, return null since it's not technically "selected" (it's a fallback)
9928
+ // Returning an internal value like `__DEFAULT__` would be confusing
9929
+ return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
9930
+ }
9931
+ function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
9932
+ let node;
9933
+ if (first) {
9934
+ // Use the provided parallel route key on the first parallel route
9935
+ node = tree[1][parallelRouteKey];
9936
+ } else {
9937
+ // After first parallel route prefer children, if there's no children pick the first parallel route.
9938
+ const parallelRoutes = tree[1];
9939
+ node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
9940
+ }
9941
+ if (!node) return segmentPath;
9942
+ const segment = node[0];
9943
+ let segmentValue = getSegmentValue(segment);
9944
+ if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) {
9945
+ return segmentPath;
9946
+ }
9947
+ segmentPath.push(segmentValue);
9948
+ return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
9949
+ }
10396
9950
  const PAGE_SEGMENT_KEY = '__PAGE__';
10397
9951
  const DEFAULT_SEGMENT_KEY = '__DEFAULT__';
9952
+ const NOT_FOUND_SEGMENT_KEY = '/_not-found';
10398
9953
 
10399
9954
 
10400
9955
  } (segment));
@@ -10437,7 +9992,7 @@ var segment = {};
10437
9992
  if ((segment === 'page' || segment === 'route') && index === segments.length - 1) {
10438
9993
  return pathname;
10439
9994
  }
10440
- return pathname + "/" + segment;
9995
+ return `${pathname}/${segment}`;
10441
9996
  }, ''));
10442
9997
  }
10443
9998
  function normalizeRscURL(url) {
@@ -10481,7 +10036,9 @@ var segment = {};
10481
10036
  return path.split('/').find((segment)=>INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m))) !== undefined;
10482
10037
  }
10483
10038
  function extractInterceptionRouteInformation(path) {
10484
- let interceptingRoute, marker, interceptedRoute;
10039
+ let interceptingRoute;
10040
+ let marker;
10041
+ let interceptedRoute;
10485
10042
  for (const segment of path.split('/')){
10486
10043
  marker = INTERCEPTION_ROUTE_MARKERS.find((m)=>segment.startsWith(m));
10487
10044
  if (marker) {
@@ -10490,7 +10047,7 @@ var segment = {};
10490
10047
  }
10491
10048
  }
10492
10049
  if (!interceptingRoute || !marker || !interceptedRoute) {
10493
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>"), "__NEXT_ERROR_CODE", {
10050
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Must be in the format /<intercepting route>/(..|...|..)(..)/<intercepted route>`), "__NEXT_ERROR_CODE", {
10494
10051
  value: "E269",
10495
10052
  enumerable: false,
10496
10053
  configurable: true
@@ -10502,7 +10059,7 @@ var segment = {};
10502
10059
  case '(.)':
10503
10060
  // (.) indicates that we should match with sibling routes, so we just need to append the intercepted route to the intercepting route
10504
10061
  if (interceptingRoute === '/') {
10505
- interceptedRoute = "/" + interceptedRoute;
10062
+ interceptedRoute = `/${interceptedRoute}`;
10506
10063
  } else {
10507
10064
  interceptedRoute = interceptingRoute + '/' + interceptedRoute;
10508
10065
  }
@@ -10510,7 +10067,7 @@ var segment = {};
10510
10067
  case '(..)':
10511
10068
  // (..) indicates that we should match at one level up, so we need to remove the last segment of the intercepting route
10512
10069
  if (interceptingRoute === '/') {
10513
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..) marker at the root level, use (.) instead."), "__NEXT_ERROR_CODE", {
10070
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..) marker at the root level, use (.) instead.`), "__NEXT_ERROR_CODE", {
10514
10071
  value: "E207",
10515
10072
  enumerable: false,
10516
10073
  configurable: true
@@ -10526,7 +10083,7 @@ var segment = {};
10526
10083
  // (..)(..) indicates that we should match at two levels up, so we need to remove the last two segments of the intercepting route
10527
10084
  const splitInterceptingRoute = interceptingRoute.split('/');
10528
10085
  if (splitInterceptingRoute.length <= 2) {
10529
- throw Object.defineProperty(new Error("Invalid interception route: " + path + ". Cannot use (..)(..) marker at the root level or one level up."), "__NEXT_ERROR_CODE", {
10086
+ throw Object.defineProperty(new Error(`Invalid interception route: ${path}. Cannot use (..)(..) marker at the root level or one level up.`), "__NEXT_ERROR_CODE", {
10530
10087
  value: "E486",
10531
10088
  enumerable: false,
10532
10089
  configurable: true
@@ -10565,8 +10122,7 @@ var segment = {};
10565
10122
  const TEST_ROUTE = /\/[^/]*\[[^/]+\][^/]*(?=\/|$)/;
10566
10123
  // Identify /[param]/ in route string
10567
10124
  const TEST_STRICT_ROUTE = /\/\[[^/]+\](?=\/|$)/;
10568
- function isDynamicRoute(route, strict) {
10569
- if (strict === void 0) strict = true;
10125
+ function isDynamicRoute(route, strict = true) {
10570
10126
  if ((0, _interceptionroutes.isInterceptionRouteAppPath)(route)) {
10571
10127
  route = (0, _interceptionroutes.extractInterceptionRouteInformation)(route).interceptedRoute;
10572
10128
  }
@@ -10604,7 +10160,7 @@ var segment = {};
10604
10160
  const _isdynamic = isDynamic;
10605
10161
 
10606
10162
 
10607
- } (utils$3));
10163
+ } (utils$2));
10608
10164
 
10609
10165
  var normalizePathSep = {};
10610
10166
 
@@ -10641,7 +10197,7 @@ var normalizePathSep = {};
10641
10197
  return denormalizePagePath;
10642
10198
  }
10643
10199
  });
10644
- const _utils = utils$3;
10200
+ const _utils = utils$2;
10645
10201
  const _normalizepathsep = normalizePathSep;
10646
10202
  function denormalizePagePath(page) {
10647
10203
  let _page = (0, _normalizepathsep.normalizePathSep)(page);
@@ -10653,7 +10209,7 @@ var normalizePathSep = {};
10653
10209
 
10654
10210
  var normalizePagePath = {};
10655
10211
 
10656
- var utils$2 = {};
10212
+ var utils$1 = {};
10657
10213
 
10658
10214
  (function (exports$1) {
10659
10215
  Object.defineProperty(exports$1, "__esModule", {
@@ -10729,10 +10285,7 @@ var utils$2 = {};
10729
10285
  function execOnce(fn) {
10730
10286
  let used = false;
10731
10287
  let result;
10732
- return function() {
10733
- for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
10734
- args[_key] = arguments[_key];
10735
- }
10288
+ return (...args)=>{
10736
10289
  if (!used) {
10737
10290
  used = true;
10738
10291
  result = fn(...args);
@@ -10746,7 +10299,7 @@ var utils$2 = {};
10746
10299
  const isAbsoluteUrl = (url)=>ABSOLUTE_URL_REGEX.test(url);
10747
10300
  function getLocationOrigin() {
10748
10301
  const { protocol, hostname, port } = window.location;
10749
- return protocol + "//" + hostname + (port ? ':' + port : '');
10302
+ return `${protocol}//${hostname}${port ? ':' + port : ''}`;
10750
10303
  }
10751
10304
  function getURL() {
10752
10305
  const { href } = window.location;
@@ -10764,13 +10317,12 @@ var utils$2 = {};
10764
10317
  const urlNoQuery = urlParts[0];
10765
10318
  return urlNoQuery// first we replace any non-encoded backslashes with forward
10766
10319
  // then normalize repeated forward slashes
10767
- .replace(/\\/g, '/').replace(/\/\/+/g, '/') + (urlParts[1] ? "?" + urlParts.slice(1).join('?') : '');
10320
+ .replace(/\\/g, '/').replace(/\/\/+/g, '/') + (urlParts[1] ? `?${urlParts.slice(1).join('?')}` : '');
10768
10321
  }
10769
10322
  async function loadGetInitialProps(App, ctx) {
10770
10323
  if (process.env.NODE_ENV !== 'production') {
10771
- var _App_prototype;
10772
- if ((_App_prototype = App.prototype) == null ? void 0 : _App_prototype.getInitialProps) {
10773
- const message = '"' + getDisplayName(App) + '.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.';
10324
+ if (App.prototype?.getInitialProps) {
10325
+ const message = `"${getDisplayName(App)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
10774
10326
  throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
10775
10327
  value: "E394",
10776
10328
  enumerable: false,
@@ -10794,7 +10346,7 @@ var utils$2 = {};
10794
10346
  return props;
10795
10347
  }
10796
10348
  if (!props) {
10797
- const message = '"' + getDisplayName(App) + '.getInitialProps()" should resolve to an object. But found "' + props + '" instead.';
10349
+ const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
10798
10350
  throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
10799
10351
  value: "E394",
10800
10352
  enumerable: false,
@@ -10803,7 +10355,7 @@ var utils$2 = {};
10803
10355
  }
10804
10356
  if (process.env.NODE_ENV !== 'production') {
10805
10357
  if (Object.keys(props).length === 0 && !ctx.ctx) {
10806
- console.warn("" + getDisplayName(App) + " returned an empty object from `getInitialProps`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps");
10358
+ console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
10807
10359
  }
10808
10360
  }
10809
10361
  return props;
@@ -10823,20 +10375,20 @@ var utils$2 = {};
10823
10375
  super();
10824
10376
  this.code = 'ENOENT';
10825
10377
  this.name = 'PageNotFoundError';
10826
- this.message = "Cannot find module for page: " + page;
10378
+ this.message = `Cannot find module for page: ${page}`;
10827
10379
  }
10828
10380
  }
10829
10381
  class MissingStaticPage extends Error {
10830
10382
  constructor(page, message){
10831
10383
  super();
10832
- this.message = "Failed to load static file for page: " + page + " " + message;
10384
+ this.message = `Failed to load static file for page: ${page} ${message}`;
10833
10385
  }
10834
10386
  }
10835
10387
  class MiddlewareNotFoundError extends Error {
10836
10388
  constructor(){
10837
10389
  super();
10838
10390
  this.code = 'ENOENT';
10839
- this.message = "Cannot find the middleware module";
10391
+ this.message = `Cannot find the middleware module`;
10840
10392
  }
10841
10393
  }
10842
10394
  function stringifyError(error) {
@@ -10847,7 +10399,7 @@ var utils$2 = {};
10847
10399
  }
10848
10400
 
10849
10401
 
10850
- } (utils$2));
10402
+ } (utils$1));
10851
10403
 
10852
10404
  (function (exports$1) {
10853
10405
  Object.defineProperty(exports$1, "__esModule", {
@@ -10860,15 +10412,15 @@ var utils$2 = {};
10860
10412
  }
10861
10413
  });
10862
10414
  const _ensureleadingslash = ensureLeadingSlash;
10863
- const _utils = utils$3;
10864
- const _utils1 = utils$2;
10415
+ const _utils = utils$2;
10416
+ const _utils1 = utils$1;
10865
10417
  function normalizePagePath(page) {
10866
- const normalized = /^\/index(\/|$)/.test(page) && !(0, _utils.isDynamicRoute)(page) ? "/index" + page : page === '/' ? '/index' : (0, _ensureleadingslash.ensureLeadingSlash)(page);
10418
+ const normalized = /^\/index(\/|$)/.test(page) && !(0, _utils.isDynamicRoute)(page) ? `/index${page}` : page === '/' ? '/index' : (0, _ensureleadingslash.ensureLeadingSlash)(page);
10867
10419
  if (process.env.NEXT_RUNTIME !== 'edge') {
10868
10420
  const { posix } = require$$3;
10869
10421
  const resolvedPage = posix.normalize(normalized);
10870
10422
  if (resolvedPage !== normalized) {
10871
- throw new _utils1.NormalizeError("Requested and resolved page mismatch: " + normalized + " " + resolvedPage);
10423
+ throw new _utils1.NormalizeError(`Requested and resolved page mismatch: ${normalized} ${resolvedPage}`);
10872
10424
  }
10873
10425
  }
10874
10426
  return normalized;
@@ -11003,10 +10555,13 @@ var isPlainObject = {};
11003
10555
  }
11004
10556
  });
11005
10557
  const _isplainobject = isPlainObject;
11006
- function isError(err) {
11007
- return typeof err === 'object' && err !== null && 'name' in err && 'message' in err;
11008
- }
11009
- function safeStringify(obj) {
10558
+ /**
10559
+ * This is a safe stringify function that handles circular references.
10560
+ * We're using a simpler version here to avoid introducing
10561
+ * the dependency `safe-stable-stringify` into production bundle.
10562
+ *
10563
+ * This helper is used both in development and production.
10564
+ */ function safeStringifyLite(obj) {
11010
10565
  const seen = new WeakSet();
11011
10566
  return JSON.stringify(obj, (_key, value)=>{
11012
10567
  // If value is an object and already seen, replace with "[Circular]"
@@ -11019,6 +10574,9 @@ var isPlainObject = {};
11019
10574
  return value;
11020
10575
  });
11021
10576
  }
10577
+ function isError(err) {
10578
+ return typeof err === 'object' && err !== null && 'name' in err && 'message' in err;
10579
+ }
11022
10580
  function getProperError(err) {
11023
10581
  if (isError(err)) {
11024
10582
  return err;
@@ -11041,7 +10599,7 @@ var isPlainObject = {};
11041
10599
  });
11042
10600
  }
11043
10601
  }
11044
- return Object.defineProperty(new Error((0, _isplainobject.isPlainObject)(err) ? safeStringify(err) : err + ''), "__NEXT_ERROR_CODE", {
10602
+ return Object.defineProperty(new Error((0, _isplainobject.isPlainObject)(err) ? safeStringifyLite(err) : err + ''), "__NEXT_ERROR_CODE", {
11045
10603
  value: "E394",
11046
10604
  enumerable: false,
11047
10605
  configurable: true
@@ -11079,7 +10637,7 @@ var htmlContext_sharedRuntime = {};
11079
10637
  function useHtmlContext() {
11080
10638
  const context = (0, _react.useContext)(HtmlContext);
11081
10639
  if (!context) {
11082
- throw Object.defineProperty(new Error("<Html> should not be imported outside of pages/_document.\n" + 'Read more: https://nextjs.org/docs/messages/no-document-import-in-page'), "__NEXT_ERROR_CODE", {
10640
+ throw Object.defineProperty(new Error(`<Html> should not be imported outside of pages/_document.\n` + 'Read more: https://nextjs.org/docs/messages/no-document-import-in-page'), "__NEXT_ERROR_CODE", {
11083
10641
  value: "E67",
11084
10642
  enumerable: false,
11085
10643
  configurable: true
@@ -11197,6 +10755,7 @@ var constants = {};
11197
10755
  }(LoadComponentsSpan || {});
11198
10756
  var NextServerSpan = /*#__PURE__*/ function(NextServerSpan) {
11199
10757
  NextServerSpan["getRequestHandler"] = "NextServer.getRequestHandler";
10758
+ NextServerSpan["getRequestHandlerWithMetadata"] = "NextServer.getRequestHandlerWithMetadata";
11200
10759
  NextServerSpan["getServer"] = "NextServer.getServer";
11201
10760
  NextServerSpan["getServerRequestHandler"] = "NextServer.getServerRequestHandler";
11202
10761
  NextServerSpan["createServer"] = "createServer.createServer";
@@ -13806,7 +13365,6 @@ function requireApi () {
13806
13365
  return context.with(remoteContext, fn);
13807
13366
  }
13808
13367
  trace(...args) {
13809
- var _trace_getSpanContext;
13810
13368
  const [type, fnOrOptions, fnOrEmpty] = args;
13811
13369
  // coerce options form overload
13812
13370
  const { fn, options } = typeof fnOrOptions === 'function' ? {
@@ -13824,13 +13382,15 @@ function requireApi () {
13824
13382
  }
13825
13383
  // Trying to get active scoped span to assign parent. If option specifies parent span manually, will try to use it.
13826
13384
  let spanContext = this.getSpanContext((options == null ? void 0 : options.parentSpan) ?? this.getActiveScopeSpan());
13827
- let isRootSpan = false;
13828
13385
  if (!spanContext) {
13829
13386
  spanContext = (context == null ? void 0 : context.active()) ?? ROOT_CONTEXT;
13830
- isRootSpan = true;
13831
- } else if ((_trace_getSpanContext = trace.getSpanContext(spanContext)) == null ? void 0 : _trace_getSpanContext.isRemote) {
13832
- isRootSpan = true;
13833
13387
  }
13388
+ // Check if there's already a root span in the store for this trace
13389
+ // We are intentionally not checking whether there is an active context
13390
+ // from outside of nextjs to ensure that we can provide the same level
13391
+ // of telemetry when using a custom server
13392
+ const existingRootSpanId = spanContext.getValue(rootSpanIdKey);
13393
+ const isRootSpan = typeof existingRootSpanId !== 'number' || !rootSpanAttributesStore.has(existingRootSpanId);
13834
13394
  const spanId = getSpanId();
13835
13395
  options.attributes = {
13836
13396
  'next.span_name': spanName,
@@ -13939,10 +13499,14 @@ function requireApi () {
13939
13499
  setRootSpanAttribute(key, value) {
13940
13500
  const spanId = context.active().getValue(rootSpanIdKey);
13941
13501
  const attributes = rootSpanAttributesStore.get(spanId);
13942
- if (attributes) {
13502
+ if (attributes && !attributes.has(key)) {
13943
13503
  attributes.set(key, value);
13944
13504
  }
13945
13505
  }
13506
+ withSpan(span, fn) {
13507
+ const spanContext = trace.setSpan(context.active(), span);
13508
+ return context.with(spanContext, fn);
13509
+ }
13946
13510
  }
13947
13511
  const getTracer = (()=>{
13948
13512
  const tracer = new NextTracerImpl();
@@ -13952,7 +13516,7 @@ function requireApi () {
13952
13516
 
13953
13517
  } (tracer));
13954
13518
 
13955
- var utils$1 = {};
13519
+ var utils = {};
13956
13520
 
13957
13521
  (function (exports$1) {
13958
13522
  Object.defineProperty(exports$1, "__esModule", {
@@ -13970,100 +13534,7 @@ var utils$1 = {};
13970
13534
  }
13971
13535
 
13972
13536
 
13973
- } (utils$1));
13974
-
13975
- var utils = {};
13976
-
13977
- var hasRequiredUtils;
13978
-
13979
- function requireUtils () {
13980
- if (hasRequiredUtils) return utils;
13981
- hasRequiredUtils = 1;
13982
- (function (exports$1) {
13983
- Object.defineProperty(exports$1, "__esModule", {
13984
- value: true
13985
- });
13986
- function _export(target, all) {
13987
- for(var name in all)Object.defineProperty(target, name, {
13988
- enumerable: true,
13989
- get: all[name]
13990
- });
13991
- }
13992
- _export(exports$1, {
13993
- cleanAmpPath: function() {
13994
- return cleanAmpPath;
13995
- },
13996
- debounce: function() {
13997
- return debounce;
13998
- },
13999
- isBlockedPage: function() {
14000
- return isBlockedPage;
14001
- }
14002
- });
14003
- const _constants = constantsExports;
14004
- function isBlockedPage(page) {
14005
- return _constants.BLOCKED_PAGES.includes(page);
14006
- }
14007
- function cleanAmpPath(pathname) {
14008
- if (pathname.match(/\?amp=(y|yes|true|1)/)) {
14009
- pathname = pathname.replace(/\?amp=(y|yes|true|1)&?/, '?');
14010
- }
14011
- if (pathname.match(/&amp=(y|yes|true|1)/)) {
14012
- pathname = pathname.replace(/&amp=(y|yes|true|1)/, '');
14013
- }
14014
- pathname = pathname.replace(/\?$/, '');
14015
- return pathname;
14016
- }
14017
- function debounce(fn, ms, maxWait = Infinity) {
14018
- let timeoutId;
14019
- // The time the debouncing function was first called during this debounce queue.
14020
- let startTime = 0;
14021
- // The time the debouncing function was last called.
14022
- let lastCall = 0;
14023
- // The arguments and this context of the last call to the debouncing function.
14024
- let args, context;
14025
- // A helper used to that either invokes the debounced function, or
14026
- // reschedules the timer if a more recent call was made.
14027
- function run() {
14028
- const now = Date.now();
14029
- const diff = lastCall + ms - now;
14030
- // If the diff is non-positive, then we've waited at least `ms`
14031
- // milliseconds since the last call. Or if we've waited for longer than the
14032
- // max wait time, we must call the debounced function.
14033
- if (diff <= 0 || startTime + maxWait >= now) {
14034
- // It's important to clear the timeout id before invoking the debounced
14035
- // function, in case the function calls the debouncing function again.
14036
- timeoutId = undefined;
14037
- fn.apply(context, args);
14038
- } else {
14039
- // Else, a new call was made after the original timer was scheduled. We
14040
- // didn't clear the timeout (doing so is very slow), so now we need to
14041
- // reschedule the timer for the time difference.
14042
- timeoutId = setTimeout(run, diff);
14043
- }
14044
- }
14045
- return function(...passedArgs) {
14046
- // The arguments and this context of the most recent call are saved so the
14047
- // debounced function can be invoked with them later.
14048
- args = passedArgs;
14049
- context = this;
14050
- // Instead of constantly clearing and scheduling a timer, we record the
14051
- // time of the last call. If a second call comes in before the timer fires,
14052
- // then we'll reschedule in the run function. Doing this is considerably
14053
- // faster.
14054
- lastCall = Date.now();
14055
- // Only schedule a new timer if we're not currently waiting.
14056
- if (timeoutId === undefined) {
14057
- startTime = lastCall;
14058
- timeoutId = setTimeout(run, ms);
14059
- }
14060
- };
14061
- }
14062
-
14063
-
14064
- } (utils));
14065
- return utils;
14066
- }
13537
+ } (utils));
14067
13538
 
14068
13539
  var prettyBytes = {};
14069
13540
 
@@ -14191,7 +13662,7 @@ function requirePrettyBytes () {
14191
13662
  const _htmlcontextsharedruntime = htmlContext_sharedRuntime;
14192
13663
  const _encodeuripath = encodeUriPath;
14193
13664
  const _tracer = tracer;
14194
- const _utils = utils$1;
13665
+ const _utils = utils;
14195
13666
  function _interop_require_default(obj) {
14196
13667
  return obj && obj.__esModule ? obj : {
14197
13668
  default: obj
@@ -14239,9 +13710,9 @@ function requirePrettyBytes () {
14239
13710
  return newObj;
14240
13711
  }
14241
13712
  /** Set of pages that have triggered a large data warning on production mode. */ const largePageDataWarnings = new Set();
14242
- function getDocumentFiles(buildManifest, pathname, inAmpMode) {
13713
+ function getDocumentFiles(buildManifest, pathname) {
14243
13714
  const sharedFiles = (0, _getpagefiles.getPageFiles)(buildManifest, '/_app');
14244
- const pageFiles = process.env.NEXT_RUNTIME !== 'edge' && inAmpMode ? [] : (0, _getpagefiles.getPageFiles)(buildManifest, pathname);
13715
+ const pageFiles = (0, _getpagefiles.getPageFiles)(buildManifest, pathname);
14245
13716
  return {
14246
13717
  sharedFiles,
14247
13718
  pageFiles,
@@ -14268,33 +13739,6 @@ function requirePrettyBytes () {
14268
13739
  function hasComponentProps(child) {
14269
13740
  return !!child && !!child.props;
14270
13741
  }
14271
- function AmpStyles({ styles }) {
14272
- if (!styles) return null;
14273
- // try to parse styles from fragment for backwards compat
14274
- const curStyles = Array.isArray(styles) ? styles : [];
14275
- if (// @ts-ignore Property 'props' does not exist on type ReactElement
14276
- styles.props && // @ts-ignore Property 'props' does not exist on type ReactElement
14277
- Array.isArray(styles.props.children)) {
14278
- const hasStyles = (el)=>{
14279
- var _el_props_dangerouslySetInnerHTML, _el_props;
14280
- return el == null ? void 0 : (_el_props = el.props) == null ? void 0 : (_el_props_dangerouslySetInnerHTML = _el_props.dangerouslySetInnerHTML) == null ? void 0 : _el_props_dangerouslySetInnerHTML.__html;
14281
- };
14282
- // @ts-ignore Property 'props' does not exist on type ReactElement
14283
- styles.props.children.forEach((child)=>{
14284
- if (Array.isArray(child)) {
14285
- child.forEach((el)=>hasStyles(el) && curStyles.push(el));
14286
- } else if (hasStyles(child)) {
14287
- curStyles.push(child);
14288
- }
14289
- });
14290
- }
14291
- /* Add custom styles before AMP styles to prevent accidental overrides */ return /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14292
- "amp-custom": "",
14293
- dangerouslySetInnerHTML: {
14294
- __html: curStyles.map((style)=>style.props.dangerouslySetInnerHTML.__html).join('').replace(/\/\*# sourceMappingURL=.*\*\//g, '').replace(/\/\*@ sourceURL=.*?\*\//g, '')
14295
- }
14296
- });
14297
- }
14298
13742
  function getDynamicChunks(context, props, files) {
14299
13743
  const { dynamicImports, assetPrefix, isDevelopment, assetQueryString, disableOptimizedLoading, crossOrigin } = context;
14300
13744
  return dynamicImports.map((file)=>{
@@ -14428,9 +13872,6 @@ function requirePrettyBytes () {
14428
13872
  const headProps = restProps;
14429
13873
  return headProps;
14430
13874
  }
14431
- function getAmpPath(ampPath, asPath) {
14432
- return ampPath || `${asPath}${asPath.includes('?') ? '&' : '?'}amp=1`;
14433
- }
14434
13875
  function getNextFontLinkTags(nextFontManifest, dangerousAsPath, assetPrefix = '') {
14435
13876
  if (!nextFontManifest) {
14436
13877
  return {
@@ -14581,7 +14022,7 @@ function requirePrettyBytes () {
14581
14022
  return getPolyfillScripts(this.context, this.props);
14582
14023
  }
14583
14024
  render() {
14584
- const { styles, ampPath, inAmpMode, hybridAmp, canonicalBase, __NEXT_DATA__, dangerousAsPath, headTags, unstable_runtimeJS, unstable_JsPreload, disableOptimizedLoading, optimizeCss, assetPrefix, nextFontManifest } = this.context;
14025
+ const { styles, __NEXT_DATA__, dangerousAsPath, headTags, unstable_runtimeJS, unstable_JsPreload, disableOptimizedLoading, optimizeCss, assetPrefix, nextFontManifest } = this.context;
14585
14026
  const disableRuntimeJS = unstable_runtimeJS === false;
14586
14027
  const disableJsPreload = unstable_JsPreload === false || !disableOptimizedLoading;
14587
14028
  this.context.docComponentsRendered.Head = true;
@@ -14621,45 +14062,7 @@ function requirePrettyBytes () {
14621
14062
  });
14622
14063
  if (this.props.crossOrigin) console.warn('Warning: `Head` attribute `crossOrigin` is deprecated. https://nextjs.org/docs/messages/doc-crossorigin-deprecated');
14623
14064
  }
14624
- let hasAmphtmlRel = false;
14625
- let hasCanonicalRel = false;
14626
- // show warning and remove conflicting amp head tags
14627
- head = _react.default.Children.map(head || [], (child)=>{
14628
- if (!child) return child;
14629
- const { type, props } = child;
14630
- if (process.env.NEXT_RUNTIME !== 'edge' && inAmpMode) {
14631
- let badProp = '';
14632
- if (type === 'meta' && props.name === 'viewport') {
14633
- badProp = 'name="viewport"';
14634
- } else if (type === 'link' && props.rel === 'canonical') {
14635
- hasCanonicalRel = true;
14636
- } else if (type === 'script') {
14637
- // only block if
14638
- // 1. it has a src and isn't pointing to ampproject's CDN
14639
- // 2. it is using dangerouslySetInnerHTML without a type or
14640
- // a type of text/javascript
14641
- if (props.src && props.src.indexOf('ampproject') < -1 || props.dangerouslySetInnerHTML && (!props.type || props.type === 'text/javascript')) {
14642
- badProp = '<script';
14643
- Object.keys(props).forEach((prop)=>{
14644
- badProp += ` ${prop}="${props[prop]}"`;
14645
- });
14646
- badProp += '/>';
14647
- }
14648
- }
14649
- if (badProp) {
14650
- console.warn(`Found conflicting amp tag "${child.type}" with conflicting prop ${badProp} in ${__NEXT_DATA__.page}. https://nextjs.org/docs/messages/conflicting-amp-tag`);
14651
- return null;
14652
- }
14653
- } else {
14654
- // non-amp mode
14655
- if (type === 'link' && props.rel === 'amphtml') {
14656
- hasAmphtmlRel = true;
14657
- }
14658
- }
14659
- return child;
14660
- // @types/react bug. Returned value from .map will not be `null` if you pass in `[null]`
14661
- });
14662
- const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page, process.env.NEXT_RUNTIME !== 'edge' && inAmpMode);
14065
+ const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page);
14663
14066
  const nextFontLinkTags = getNextFontLinkTags(nextFontManifest, dangerousAsPath, assetPrefix);
14664
14067
  const tracingMetadata = (0, _utils.getTracedMetadata)((0, _tracer.getTracer)().getTracePropagationData(), this.context.experimentalClientTraceMetadata);
14665
14068
  const traceMetaTags = (tracingMetadata || []).map(({ key, value }, index)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
@@ -14673,14 +14076,12 @@ function requirePrettyBytes () {
14673
14076
  children: [
14674
14077
  /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14675
14078
  "data-next-hide-fouc": true,
14676
- "data-ampdevmode": process.env.NEXT_RUNTIME !== 'edge' && inAmpMode ? 'true' : undefined,
14677
14079
  dangerouslySetInnerHTML: {
14678
14080
  __html: `body{display:none}`
14679
14081
  }
14680
14082
  }),
14681
14083
  /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14682
14084
  "data-next-hide-fouc": true,
14683
- "data-ampdevmode": process.env.NEXT_RUNTIME !== 'edge' && inAmpMode ? 'true' : undefined,
14684
14085
  children: /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14685
14086
  dangerouslySetInnerHTML: {
14686
14087
  __html: `body{display:block}`
@@ -14693,75 +14094,29 @@ function requirePrettyBytes () {
14693
14094
  children,
14694
14095
  nextFontLinkTags.preconnect,
14695
14096
  nextFontLinkTags.preload,
14696
- process.env.NEXT_RUNTIME !== 'edge' && inAmpMode && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14697
- children: [
14698
- /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
14699
- name: "viewport",
14700
- content: "width=device-width,minimum-scale=1,initial-scale=1"
14701
- }),
14702
- !hasCanonicalRel && /*#__PURE__*/ (0, _jsxruntime.jsx)("link", {
14703
- rel: "canonical",
14704
- href: canonicalBase + requireUtils().cleanAmpPath(dangerousAsPath)
14705
- }),
14706
- /*#__PURE__*/ (0, _jsxruntime.jsx)("link", {
14707
- rel: "preload",
14708
- as: "script",
14709
- href: "https://cdn.ampproject.org/v0.js"
14710
- }),
14711
- /*#__PURE__*/ (0, _jsxruntime.jsx)(AmpStyles, {
14712
- styles: styles
14713
- }),
14714
- /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14715
- "amp-boilerplate": "",
14716
- dangerouslySetInnerHTML: {
14717
- __html: `body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}`
14718
- }
14719
- }),
14720
- /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14721
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)("style", {
14722
- "amp-boilerplate": "",
14723
- dangerouslySetInnerHTML: {
14724
- __html: `body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}`
14725
- }
14726
- })
14727
- }),
14728
- /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
14729
- async: true,
14730
- src: "https://cdn.ampproject.org/v0.js"
14731
- })
14732
- ]
14097
+ this.getBeforeInteractiveInlineScripts(),
14098
+ !optimizeCss && this.getCssLinks(files),
14099
+ !optimizeCss && /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14100
+ "data-n-css": this.props.nonce ?? ''
14733
14101
  }),
14734
- !(process.env.NEXT_RUNTIME !== 'edge' && inAmpMode) && /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14735
- children: [
14736
- !hasAmphtmlRel && hybridAmp && /*#__PURE__*/ (0, _jsxruntime.jsx)("link", {
14737
- rel: "amphtml",
14738
- href: canonicalBase + getAmpPath(ampPath, dangerousAsPath)
14739
- }),
14740
- this.getBeforeInteractiveInlineScripts(),
14741
- !optimizeCss && this.getCssLinks(files),
14742
- !optimizeCss && /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14743
- "data-n-css": this.props.nonce ?? ''
14744
- }),
14745
- !disableRuntimeJS && !disableJsPreload && this.getPreloadDynamicChunks(),
14746
- !disableRuntimeJS && !disableJsPreload && this.getPreloadMainLinks(files),
14747
- !disableOptimizedLoading && !disableRuntimeJS && this.getPolyfillScripts(),
14748
- !disableOptimizedLoading && !disableRuntimeJS && this.getPreNextScripts(),
14749
- !disableOptimizedLoading && !disableRuntimeJS && this.getDynamicChunks(files),
14750
- !disableOptimizedLoading && !disableRuntimeJS && this.getScripts(files),
14751
- optimizeCss && this.getCssLinks(files),
14752
- optimizeCss && /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14753
- "data-n-css": this.props.nonce ?? ''
14754
- }),
14755
- this.context.isDevelopment && // this element is used to mount development styles so the
14756
- // ordering matches production
14757
- // (by default, style-loader injects at the bottom of <head />)
14758
- /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14759
- id: "__next_css__DO_NOT_USE__"
14760
- }),
14761
- traceMetaTags,
14762
- styles || null
14763
- ]
14102
+ !disableRuntimeJS && !disableJsPreload && this.getPreloadDynamicChunks(),
14103
+ !disableRuntimeJS && !disableJsPreload && this.getPreloadMainLinks(files),
14104
+ !disableOptimizedLoading && !disableRuntimeJS && this.getPolyfillScripts(),
14105
+ !disableOptimizedLoading && !disableRuntimeJS && this.getPreNextScripts(),
14106
+ !disableOptimizedLoading && !disableRuntimeJS && this.getDynamicChunks(files),
14107
+ !disableOptimizedLoading && !disableRuntimeJS && this.getScripts(files),
14108
+ optimizeCss && this.getCssLinks(files),
14109
+ optimizeCss && /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14110
+ "data-n-css": this.props.nonce ?? ''
14111
+ }),
14112
+ this.context.isDevelopment && // this element is used to mount development styles so the
14113
+ // ordering matches production
14114
+ // (by default, style-loader injects at the bottom of <head />)
14115
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("noscript", {
14116
+ id: "__next_css__DO_NOT_USE__"
14764
14117
  }),
14118
+ traceMetaTags,
14119
+ styles || null,
14765
14120
  /*#__PURE__*/ _react.default.createElement(_react.default.Fragment, {}, ...headTags || [])
14766
14121
  ]
14767
14122
  });
@@ -14857,43 +14212,13 @@ function requirePrettyBytes () {
14857
14212
  }
14858
14213
  }
14859
14214
  render() {
14860
- const { assetPrefix, inAmpMode, buildManifest, unstable_runtimeJS, docComponentsRendered, assetQueryString, disableOptimizedLoading, crossOrigin } = this.context;
14215
+ const { assetPrefix, buildManifest, unstable_runtimeJS, docComponentsRendered, assetQueryString, disableOptimizedLoading, crossOrigin } = this.context;
14861
14216
  const disableRuntimeJS = unstable_runtimeJS === false;
14862
14217
  docComponentsRendered.NextScript = true;
14863
- if (process.env.NEXT_RUNTIME !== 'edge' && inAmpMode) {
14864
- if (process.env.NODE_ENV === 'production') {
14865
- return null;
14866
- }
14867
- const ampDevFiles = [
14868
- ...buildManifest.devFiles,
14869
- ...buildManifest.polyfillFiles,
14870
- ...buildManifest.ampDevFiles
14871
- ];
14872
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14873
- children: [
14874
- disableRuntimeJS ? null : /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
14875
- id: "__NEXT_DATA__",
14876
- type: "application/json",
14877
- nonce: this.props.nonce,
14878
- crossOrigin: this.props.crossOrigin || crossOrigin,
14879
- dangerouslySetInnerHTML: {
14880
- __html: NextScript.getInlineScriptSource(this.context)
14881
- },
14882
- "data-ampdevmode": true
14883
- }),
14884
- ampDevFiles.map((file)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
14885
- src: `${assetPrefix}/_next/${(0, _encodeuripath.encodeURIPath)(file)}${assetQueryString}`,
14886
- nonce: this.props.nonce,
14887
- crossOrigin: this.props.crossOrigin || crossOrigin,
14888
- "data-ampdevmode": true
14889
- }, file))
14890
- ]
14891
- });
14892
- }
14893
14218
  if (process.env.NODE_ENV !== 'production') {
14894
14219
  if (this.props.crossOrigin) console.warn('Warning: `NextScript` attribute `crossOrigin` is deprecated. https://nextjs.org/docs/messages/doc-crossorigin-deprecated');
14895
14220
  }
14896
- const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page, process.env.NEXT_RUNTIME !== 'edge' && inAmpMode);
14221
+ const files = getDocumentFiles(this.context.buildManifest, this.context.__NEXT_DATA__.page);
14897
14222
  return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
14898
14223
  children: [
14899
14224
  !disableRuntimeJS && buildManifest.devFiles ? buildManifest.devFiles.map((file)=>/*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
@@ -14919,14 +14244,12 @@ function requirePrettyBytes () {
14919
14244
  }
14920
14245
  }
14921
14246
  function Html(props) {
14922
- const { inAmpMode, docComponentsRendered, locale, scriptLoader, __NEXT_DATA__ } = (0, _htmlcontextsharedruntime.useHtmlContext)();
14247
+ const { docComponentsRendered, locale, scriptLoader, __NEXT_DATA__ } = (0, _htmlcontextsharedruntime.useHtmlContext)();
14923
14248
  docComponentsRendered.Html = true;
14924
14249
  handleDocumentScriptLoaderItems(scriptLoader, __NEXT_DATA__, props);
14925
14250
  return /*#__PURE__*/ (0, _jsxruntime.jsx)("html", {
14926
14251
  ...props,
14927
- lang: props.lang || locale || undefined,
14928
- amp: process.env.NEXT_RUNTIME !== 'edge' && inAmpMode ? '' : undefined,
14929
- "data-ampdevmode": process.env.NEXT_RUNTIME !== 'edge' && inAmpMode && process.env.NODE_ENV !== 'production' ? '' : undefined
14252
+ lang: props.lang || locale || undefined
14930
14253
  });
14931
14254
  }
14932
14255
  function Main() {