@kubb/react-fabric 0.11.3 → 0.11.5

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 (45) hide show
  1. package/dist/{Fabric-DbJhvsCq.d.ts → Fabric-8pppnIg0.d.ts} +1 -1
  2. package/dist/Renderer-7rMwyODQ.cjs +4 -0
  3. package/dist/{reactPlugin-B8F6jVb5.cjs → Renderer-CRT9gs-h.cjs} +131 -604
  4. package/dist/Renderer-CRT9gs-h.cjs.map +1 -0
  5. package/dist/{reactPlugin-CAtVV84d.js → Renderer-CgXqdVqV.js} +124 -590
  6. package/dist/Renderer-CgXqdVqV.js.map +1 -0
  7. package/dist/Renderer-D_r5OSso.js +4 -0
  8. package/dist/{TreeNode-tc-jO4rk.d.ts → TreeNode-B5YhdIi1.d.ts} +2 -2
  9. package/dist/devtools-Cz49mTX5.js +102 -0
  10. package/dist/devtools-Cz49mTX5.js.map +1 -0
  11. package/dist/devtools-msRXXQfJ.cjs +109 -0
  12. package/dist/devtools-msRXXQfJ.cjs.map +1 -0
  13. package/dist/devtools.cjs +1 -1
  14. package/dist/devtools.js +1 -1
  15. package/dist/globals.d.ts +2 -2
  16. package/dist/index.cjs +3 -2
  17. package/dist/index.cjs.map +1 -1
  18. package/dist/index.d.ts +3 -3
  19. package/dist/index.js +3 -2
  20. package/dist/index.js.map +1 -1
  21. package/dist/jsx-dev-runtime.d.cts +2 -2
  22. package/dist/jsx-dev-runtime.d.ts +5 -5
  23. package/dist/{jsx-namespace-bLrscF7g.d.ts → jsx-namespace-CfIw-cgT.d.ts} +2 -2
  24. package/dist/jsx-runtime.d.cts +2 -2
  25. package/dist/jsx-runtime.d.ts +5 -5
  26. package/dist/parsers.d.ts +1 -1
  27. package/dist/plugins.cjs +2 -1
  28. package/dist/plugins.d.ts +2 -2
  29. package/dist/plugins.js +2 -1
  30. package/dist/{reactPlugin-BHE3X6-B.d.ts → reactPlugin-0E3yLJvd.d.ts} +2 -2
  31. package/dist/reactPlugin-BJ_35CCS.cjs +499 -0
  32. package/dist/reactPlugin-BJ_35CCS.cjs.map +1 -0
  33. package/dist/reactPlugin-E8nSWNDp.js +469 -0
  34. package/dist/reactPlugin-E8nSWNDp.js.map +1 -0
  35. package/dist/{types-BKXB0ewg.d.ts → types-BKiEQWrZ.d.ts} +3 -3
  36. package/dist/types.d.ts +2 -2
  37. package/package.json +2 -2
  38. package/src/Runtime.tsx +0 -6
  39. package/src/devtools.ts +91 -69
  40. package/dist/devtools-8_UKWDTl.js +0 -93
  41. package/dist/devtools-8_UKWDTl.js.map +0 -1
  42. package/dist/devtools-BOpUJhc_.cjs +0 -100
  43. package/dist/devtools-BOpUJhc_.cjs.map +0 -1
  44. package/dist/reactPlugin-B8F6jVb5.cjs.map +0 -1
  45. package/dist/reactPlugin-CAtVV84d.js.map +0 -1
@@ -1,11 +1,5 @@
1
1
  import { r as __toESM, t as __commonJSMin } from "./chunk-BCPZiDLE.js";
2
2
  import { t as require_react } from "./react-DfIUVisP.js";
3
- import { n as jsx } from "./jsx-runtime-Isgf9orn.js";
4
- import { NodeTreeContext, RootContext, TreeNode, provide } from "@kubb/fabric-core";
5
- import { onExit } from "signal-exit";
6
- import { definePlugin } from "@kubb/fabric-core/plugins";
7
- import process$1 from "node:process";
8
- import { createExport, createImport, print } from "@kubb/fabric-core/parsers/typescript";
9
3
 
10
4
  //#region ../../node_modules/.pnpm/react-reconciler@0.32.0_react@19.2.1/node_modules/react-reconciler/cjs/react-reconciler-constants.production.js
11
5
  /**
@@ -45,87 +39,6 @@ var require_constants = /* @__PURE__ */ __commonJSMin(((exports, module) => {
45
39
  else module.exports = require_react_reconciler_constants_development();
46
40
  }));
47
41
 
48
- //#endregion
49
- //#region \0@oxc-project+runtime@0.103.0/helpers/typeof.js
50
- function _typeof(o) {
51
- "@babel/helpers - typeof";
52
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
53
- return typeof o$1;
54
- } : function(o$1) {
55
- return o$1 && "function" == typeof Symbol && o$1.constructor === Symbol && o$1 !== Symbol.prototype ? "symbol" : typeof o$1;
56
- }, _typeof(o);
57
- }
58
-
59
- //#endregion
60
- //#region \0@oxc-project+runtime@0.103.0/helpers/toPrimitive.js
61
- function toPrimitive(t, r) {
62
- if ("object" != _typeof(t) || !t) return t;
63
- var e = t[Symbol.toPrimitive];
64
- if (void 0 !== e) {
65
- var i = e.call(t, r || "default");
66
- if ("object" != _typeof(i)) return i;
67
- throw new TypeError("@@toPrimitive must return a primitive value.");
68
- }
69
- return ("string" === r ? String : Number)(t);
70
- }
71
-
72
- //#endregion
73
- //#region \0@oxc-project+runtime@0.103.0/helpers/toPropertyKey.js
74
- function toPropertyKey(t) {
75
- var i = toPrimitive(t, "string");
76
- return "symbol" == _typeof(i) ? i : i + "";
77
- }
78
-
79
- //#endregion
80
- //#region \0@oxc-project+runtime@0.103.0/helpers/defineProperty.js
81
- function _defineProperty(e, r, t) {
82
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
83
- value: t,
84
- enumerable: !0,
85
- configurable: !0,
86
- writable: !0
87
- }) : e[r] = t, e;
88
- }
89
-
90
- //#endregion
91
- //#region src/components/Root.tsx
92
- var import_react = /* @__PURE__ */ __toESM(require_react());
93
- var ErrorBoundary = class extends import_react.Component {
94
- constructor(..._args) {
95
- super(..._args);
96
- _defineProperty(this, "state", { hasError: false });
97
- }
98
- static getDerivedStateFromError(_error) {
99
- return { hasError: true };
100
- }
101
- componentDidCatch(error) {
102
- if (error) this.props.onError(error);
103
- }
104
- render() {
105
- if (this.state.hasError) return null;
106
- return this.props.children;
107
- }
108
- };
109
- _defineProperty(ErrorBoundary, "displayName", "KubbErrorBoundary");
110
- /**
111
- * This component provides the root behavior for the Fabric runtime.
112
- */
113
- function Root({ onError, onExit: onExit$1, treeNode, fileManager, children }) {
114
- provide(RootContext, {
115
- exit: onExit$1,
116
- treeNode,
117
- fileManager
118
- });
119
- provide(NodeTreeContext, treeNode);
120
- return /* @__PURE__ */ jsx(ErrorBoundary, {
121
- onError: (error) => {
122
- onError(error);
123
- },
124
- children
125
- });
126
- }
127
- Root.displayName = "KubbRoot";
128
-
129
42
  //#endregion
130
43
  //#region src/dom.ts
131
44
  const createNode = (nodeName) => {
@@ -1897,7 +1810,7 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
1897
1810
  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) if (!objectIs(nextDeps[i], prevDeps[i])) return !1;
1898
1811
  return !0;
1899
1812
  }
1900
- function renderWithHooks(current, workInProgress$1, Component$1, props, secondArg, nextRenderLanes) {
1813
+ function renderWithHooks(current, workInProgress$1, Component, props, secondArg, nextRenderLanes) {
1901
1814
  renderLanes = nextRenderLanes;
1902
1815
  currentlyRenderingFiber = workInProgress$1;
1903
1816
  workInProgress$1.memoizedState = null;
@@ -1905,9 +1818,9 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
1905
1818
  workInProgress$1.lanes = 0;
1906
1819
  ReactSharedInternals.H = null === current || null === current.memoizedState ? HooksDispatcherOnMount : HooksDispatcherOnUpdate;
1907
1820
  shouldDoubleInvokeUserFnsInHooksDEV = !1;
1908
- nextRenderLanes = Component$1(props, secondArg);
1821
+ nextRenderLanes = Component(props, secondArg);
1909
1822
  shouldDoubleInvokeUserFnsInHooksDEV = !1;
1910
- didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain(workInProgress$1, Component$1, props, secondArg));
1823
+ didScheduleRenderPhaseUpdateDuringThisPass && (nextRenderLanes = renderWithHooksAgain(workInProgress$1, Component, props, secondArg));
1911
1824
  finishRenderingHooks(current);
1912
1825
  return nextRenderLanes;
1913
1826
  }
@@ -1922,7 +1835,7 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
1922
1835
  if (didRenderTooFewHooks) throw Error(formatProdErrorMessage(300));
1923
1836
  null === current || didReceiveUpdate || (current = current.dependencies, null !== current && checkIfContextChanged(current) && (didReceiveUpdate = !0));
1924
1837
  }
1925
- function renderWithHooksAgain(workInProgress$1, Component$1, props, secondArg) {
1838
+ function renderWithHooksAgain(workInProgress$1, Component, props, secondArg) {
1926
1839
  currentlyRenderingFiber = workInProgress$1;
1927
1840
  var numberOfReRenders = 0;
1928
1841
  do {
@@ -1940,7 +1853,7 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
1940
1853
  null != children.memoCache && (children.memoCache.index = 0);
1941
1854
  }
1942
1855
  ReactSharedInternals.H = HooksDispatcherOnRerender;
1943
- children = Component$1(props, secondArg);
1856
+ children = Component(props, secondArg);
1944
1857
  } while (didScheduleRenderPhaseUpdateDuringThisPass);
1945
1858
  return children;
1946
1859
  }
@@ -2985,15 +2898,15 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
2985
2898
  "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
2986
2899
  instance.state !== workInProgress$1 && classComponentUpdater.enqueueReplaceState(instance, instance.state, null);
2987
2900
  }
2988
- function resolveClassComponentProps(Component$1, baseProps) {
2901
+ function resolveClassComponentProps(Component, baseProps) {
2989
2902
  var newProps = baseProps;
2990
2903
  if ("ref" in baseProps) {
2991
2904
  newProps = {};
2992
2905
  for (var propName in baseProps) "ref" !== propName && (newProps[propName] = baseProps[propName]);
2993
2906
  }
2994
- if (Component$1 = Component$1.defaultProps) {
2907
+ if (Component = Component.defaultProps) {
2995
2908
  newProps === baseProps && (newProps = assign({}, newProps));
2996
- for (var propName$57 in Component$1) void 0 === newProps[propName$57] && (newProps[propName$57] = Component$1[propName$57]);
2909
+ for (var propName$57 in Component) void 0 === newProps[propName$57] && (newProps[propName$57] = Component[propName$57]);
2997
2910
  }
2998
2911
  return newProps;
2999
2912
  }
@@ -3094,15 +3007,15 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
3094
3007
  function reconcileChildren(current, workInProgress$1, nextChildren, renderLanes$1) {
3095
3008
  workInProgress$1.child = null === current ? mountChildFibers(workInProgress$1, null, nextChildren, renderLanes$1) : reconcileChildFibers(workInProgress$1, current.child, nextChildren, renderLanes$1);
3096
3009
  }
3097
- function updateForwardRef(current, workInProgress$1, Component$1, nextProps, renderLanes$1) {
3098
- Component$1 = Component$1.render;
3010
+ function updateForwardRef(current, workInProgress$1, Component, nextProps, renderLanes$1) {
3011
+ Component = Component.render;
3099
3012
  var ref = workInProgress$1.ref;
3100
3013
  if ("ref" in nextProps) {
3101
3014
  var propsWithoutRef = {};
3102
3015
  for (var key in nextProps) "ref" !== key && (propsWithoutRef[key] = nextProps[key]);
3103
3016
  } else propsWithoutRef = nextProps;
3104
3017
  prepareToReadContext(workInProgress$1);
3105
- nextProps = renderWithHooks(current, workInProgress$1, Component$1, propsWithoutRef, ref, renderLanes$1);
3018
+ nextProps = renderWithHooks(current, workInProgress$1, Component, propsWithoutRef, ref, renderLanes$1);
3106
3019
  key = checkDidRenderIdHook();
3107
3020
  if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress$1, renderLanes$1), bailoutOnAlreadyFinishedWork(current, workInProgress$1, renderLanes$1);
3108
3021
  isHydrating && key && pushMaterializedTreeId(workInProgress$1);
@@ -3110,11 +3023,11 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
3110
3023
  reconcileChildren(current, workInProgress$1, nextProps, renderLanes$1);
3111
3024
  return workInProgress$1.child;
3112
3025
  }
3113
- function updateMemoComponent(current, workInProgress$1, Component$1, nextProps, renderLanes$1) {
3026
+ function updateMemoComponent(current, workInProgress$1, Component, nextProps, renderLanes$1) {
3114
3027
  if (null === current) {
3115
- var type = Component$1.type;
3116
- if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component$1.compare) return workInProgress$1.tag = 15, workInProgress$1.type = type, updateSimpleMemoComponent(current, workInProgress$1, type, nextProps, renderLanes$1);
3117
- current = createFiberFromTypeAndProps(Component$1.type, null, nextProps, workInProgress$1, workInProgress$1.mode, renderLanes$1);
3028
+ var type = Component.type;
3029
+ if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare) return workInProgress$1.tag = 15, workInProgress$1.type = type, updateSimpleMemoComponent(current, workInProgress$1, type, nextProps, renderLanes$1);
3030
+ current = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress$1, workInProgress$1.mode, renderLanes$1);
3118
3031
  current.ref = workInProgress$1.ref;
3119
3032
  current.return = workInProgress$1;
3120
3033
  return workInProgress$1.child = current;
@@ -3122,9 +3035,9 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
3122
3035
  type = current.child;
3123
3036
  if (!checkScheduledUpdateOrContext(current, renderLanes$1)) {
3124
3037
  var prevProps = type.memoizedProps;
3125
- Component$1 = Component$1.compare;
3126
- Component$1 = null !== Component$1 ? Component$1 : shallowEqual;
3127
- if (Component$1(prevProps, nextProps) && current.ref === workInProgress$1.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress$1, renderLanes$1);
3038
+ Component = Component.compare;
3039
+ Component = null !== Component ? Component : shallowEqual;
3040
+ if (Component(prevProps, nextProps) && current.ref === workInProgress$1.ref) return bailoutOnAlreadyFinishedWork(current, workInProgress$1, renderLanes$1);
3128
3041
  }
3129
3042
  workInProgress$1.flags |= 1;
3130
3043
  current = createWorkInProgress(type, nextProps);
@@ -3132,13 +3045,13 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
3132
3045
  current.return = workInProgress$1;
3133
3046
  return workInProgress$1.child = current;
3134
3047
  }
3135
- function updateSimpleMemoComponent(current, workInProgress$1, Component$1, nextProps, renderLanes$1) {
3048
+ function updateSimpleMemoComponent(current, workInProgress$1, Component, nextProps, renderLanes$1) {
3136
3049
  if (null !== current) {
3137
3050
  var prevProps = current.memoizedProps;
3138
3051
  if (shallowEqual(prevProps, nextProps) && current.ref === workInProgress$1.ref) if (didReceiveUpdate = !1, workInProgress$1.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current, renderLanes$1)) 0 !== (current.flags & 131072) && (didReceiveUpdate = !0);
3139
3052
  else return workInProgress$1.lanes = current.lanes, bailoutOnAlreadyFinishedWork(current, workInProgress$1, renderLanes$1);
3140
3053
  }
3141
- return updateFunctionComponent(current, workInProgress$1, Component$1, nextProps, renderLanes$1);
3054
+ return updateFunctionComponent(current, workInProgress$1, Component, nextProps, renderLanes$1);
3142
3055
  }
3143
3056
  function updateOffscreenComponent(current, workInProgress$1, renderLanes$1) {
3144
3057
  var nextProps = workInProgress$1.pendingProps, nextChildren = nextProps.children, prevState = null !== current ? current.memoizedState : null;
@@ -3185,34 +3098,34 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
3185
3098
  if (null === current || current.ref !== ref) workInProgress$1.flags |= 4194816;
3186
3099
  }
3187
3100
  }
3188
- function updateFunctionComponent(current, workInProgress$1, Component$1, nextProps, renderLanes$1) {
3101
+ function updateFunctionComponent(current, workInProgress$1, Component, nextProps, renderLanes$1) {
3189
3102
  prepareToReadContext(workInProgress$1);
3190
- Component$1 = renderWithHooks(current, workInProgress$1, Component$1, nextProps, void 0, renderLanes$1);
3103
+ Component = renderWithHooks(current, workInProgress$1, Component, nextProps, void 0, renderLanes$1);
3191
3104
  nextProps = checkDidRenderIdHook();
3192
3105
  if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress$1, renderLanes$1), bailoutOnAlreadyFinishedWork(current, workInProgress$1, renderLanes$1);
3193
3106
  isHydrating && nextProps && pushMaterializedTreeId(workInProgress$1);
3194
3107
  workInProgress$1.flags |= 1;
3195
- reconcileChildren(current, workInProgress$1, Component$1, renderLanes$1);
3108
+ reconcileChildren(current, workInProgress$1, Component, renderLanes$1);
3196
3109
  return workInProgress$1.child;
3197
3110
  }
3198
- function replayFunctionComponent(current, workInProgress$1, nextProps, Component$1, secondArg, renderLanes$1) {
3111
+ function replayFunctionComponent(current, workInProgress$1, nextProps, Component, secondArg, renderLanes$1) {
3199
3112
  prepareToReadContext(workInProgress$1);
3200
3113
  workInProgress$1.updateQueue = null;
3201
- nextProps = renderWithHooksAgain(workInProgress$1, Component$1, nextProps, secondArg);
3114
+ nextProps = renderWithHooksAgain(workInProgress$1, Component, nextProps, secondArg);
3202
3115
  finishRenderingHooks(current);
3203
- Component$1 = checkDidRenderIdHook();
3116
+ Component = checkDidRenderIdHook();
3204
3117
  if (null !== current && !didReceiveUpdate) return bailoutHooks(current, workInProgress$1, renderLanes$1), bailoutOnAlreadyFinishedWork(current, workInProgress$1, renderLanes$1);
3205
- isHydrating && Component$1 && pushMaterializedTreeId(workInProgress$1);
3118
+ isHydrating && Component && pushMaterializedTreeId(workInProgress$1);
3206
3119
  workInProgress$1.flags |= 1;
3207
3120
  reconcileChildren(current, workInProgress$1, nextProps, renderLanes$1);
3208
3121
  return workInProgress$1.child;
3209
3122
  }
3210
- function updateClassComponent(current, workInProgress$1, Component$1, nextProps, renderLanes$1) {
3123
+ function updateClassComponent(current, workInProgress$1, Component, nextProps, renderLanes$1) {
3211
3124
  prepareToReadContext(workInProgress$1);
3212
3125
  if (null === workInProgress$1.stateNode) {
3213
- var context = emptyContextObject, contextType = Component$1.contextType;
3126
+ var context = emptyContextObject, contextType = Component.contextType;
3214
3127
  "object" === typeof contextType && null !== contextType && (context = readContext(contextType));
3215
- context = new Component$1(nextProps, context);
3128
+ context = new Component(nextProps, context);
3216
3129
  workInProgress$1.memoizedState = null !== context.state && void 0 !== context.state ? context.state : null;
3217
3130
  context.updater = classComponentUpdater;
3218
3131
  workInProgress$1.stateNode = context;
@@ -3222,22 +3135,22 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
3222
3135
  context.state = workInProgress$1.memoizedState;
3223
3136
  context.refs = {};
3224
3137
  initializeUpdateQueue(workInProgress$1);
3225
- contextType = Component$1.contextType;
3138
+ contextType = Component.contextType;
3226
3139
  context.context = "object" === typeof contextType && null !== contextType ? readContext(contextType) : emptyContextObject;
3227
3140
  context.state = workInProgress$1.memoizedState;
3228
- contextType = Component$1.getDerivedStateFromProps;
3229
- "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress$1, Component$1, contextType, nextProps), context.state = workInProgress$1.memoizedState);
3230
- "function" === typeof Component$1.getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || (contextType = context.state, "function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress$1, nextProps, context, renderLanes$1), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress$1.memoizedState);
3141
+ contextType = Component.getDerivedStateFromProps;
3142
+ "function" === typeof contextType && (applyDerivedStateFromProps(workInProgress$1, Component, contextType, nextProps), context.state = workInProgress$1.memoizedState);
3143
+ "function" === typeof Component.getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || (contextType = context.state, "function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount(), contextType !== context.state && classComponentUpdater.enqueueReplaceState(context, context.state, null), processUpdateQueue(workInProgress$1, nextProps, context, renderLanes$1), suspendIfUpdateReadFromEntangledAsyncAction(), context.state = workInProgress$1.memoizedState);
3231
3144
  "function" === typeof context.componentDidMount && (workInProgress$1.flags |= 4194308);
3232
3145
  nextProps = !0;
3233
3146
  } else if (null === current) {
3234
3147
  context = workInProgress$1.stateNode;
3235
- var unresolvedOldProps = workInProgress$1.memoizedProps, oldProps = resolveClassComponentProps(Component$1, unresolvedOldProps);
3148
+ var unresolvedOldProps = workInProgress$1.memoizedProps, oldProps = resolveClassComponentProps(Component, unresolvedOldProps);
3236
3149
  context.props = oldProps;
3237
- var oldContext = context.context, contextType$jscomp$0 = Component$1.contextType;
3150
+ var oldContext = context.context, contextType$jscomp$0 = Component.contextType;
3238
3151
  contextType = emptyContextObject;
3239
3152
  "object" === typeof contextType$jscomp$0 && null !== contextType$jscomp$0 && (contextType = readContext(contextType$jscomp$0));
3240
- var getDerivedStateFromProps = Component$1.getDerivedStateFromProps;
3153
+ var getDerivedStateFromProps = Component.getDerivedStateFromProps;
3241
3154
  contextType$jscomp$0 = "function" === typeof getDerivedStateFromProps || "function" === typeof context.getSnapshotBeforeUpdate;
3242
3155
  unresolvedOldProps = workInProgress$1.pendingProps !== unresolvedOldProps;
3243
3156
  contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (unresolvedOldProps || oldContext !== contextType) && callComponentWillReceiveProps(workInProgress$1, context, nextProps, contextType);
@@ -3247,19 +3160,19 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
3247
3160
  processUpdateQueue(workInProgress$1, nextProps, context, renderLanes$1);
3248
3161
  suspendIfUpdateReadFromEntangledAsyncAction();
3249
3162
  oldContext = workInProgress$1.memoizedState;
3250
- unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress$1, Component$1, getDerivedStateFromProps, nextProps), oldContext = workInProgress$1.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress$1, Component$1, oldProps, nextProps, oldState, oldContext, contextType)) ? (contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || ("function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount()), "function" === typeof context.componentDidMount && (workInProgress$1.flags |= 4194308)) : ("function" === typeof context.componentDidMount && (workInProgress$1.flags |= 4194308), workInProgress$1.memoizedProps = nextProps, workInProgress$1.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : ("function" === typeof context.componentDidMount && (workInProgress$1.flags |= 4194308), nextProps = !1);
3163
+ unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof getDerivedStateFromProps && (applyDerivedStateFromProps(workInProgress$1, Component, getDerivedStateFromProps, nextProps), oldContext = workInProgress$1.memoizedState), (oldProps = hasForceUpdate || checkShouldComponentUpdate(workInProgress$1, Component, oldProps, nextProps, oldState, oldContext, contextType)) ? (contextType$jscomp$0 || "function" !== typeof context.UNSAFE_componentWillMount && "function" !== typeof context.componentWillMount || ("function" === typeof context.componentWillMount && context.componentWillMount(), "function" === typeof context.UNSAFE_componentWillMount && context.UNSAFE_componentWillMount()), "function" === typeof context.componentDidMount && (workInProgress$1.flags |= 4194308)) : ("function" === typeof context.componentDidMount && (workInProgress$1.flags |= 4194308), workInProgress$1.memoizedProps = nextProps, workInProgress$1.memoizedState = oldContext), context.props = nextProps, context.state = oldContext, context.context = contextType, nextProps = oldProps) : ("function" === typeof context.componentDidMount && (workInProgress$1.flags |= 4194308), nextProps = !1);
3251
3164
  } else {
3252
3165
  context = workInProgress$1.stateNode;
3253
3166
  cloneUpdateQueue(current, workInProgress$1);
3254
3167
  contextType = workInProgress$1.memoizedProps;
3255
- contextType$jscomp$0 = resolveClassComponentProps(Component$1, contextType);
3168
+ contextType$jscomp$0 = resolveClassComponentProps(Component, contextType);
3256
3169
  context.props = contextType$jscomp$0;
3257
3170
  getDerivedStateFromProps = workInProgress$1.pendingProps;
3258
3171
  oldState = context.context;
3259
- oldContext = Component$1.contextType;
3172
+ oldContext = Component.contextType;
3260
3173
  oldProps = emptyContextObject;
3261
3174
  "object" === typeof oldContext && null !== oldContext && (oldProps = readContext(oldContext));
3262
- unresolvedOldProps = Component$1.getDerivedStateFromProps;
3175
+ unresolvedOldProps = Component.getDerivedStateFromProps;
3263
3176
  (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof context.getSnapshotBeforeUpdate) || "function" !== typeof context.UNSAFE_componentWillReceiveProps && "function" !== typeof context.componentWillReceiveProps || (contextType !== getDerivedStateFromProps || oldState !== oldProps) && callComponentWillReceiveProps(workInProgress$1, context, nextProps, oldProps);
3264
3177
  hasForceUpdate = !1;
3265
3178
  oldState = workInProgress$1.memoizedState;
@@ -3267,12 +3180,12 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
3267
3180
  processUpdateQueue(workInProgress$1, nextProps, context, renderLanes$1);
3268
3181
  suspendIfUpdateReadFromEntangledAsyncAction();
3269
3182
  var newState = workInProgress$1.memoizedState;
3270
- contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(workInProgress$1, Component$1, unresolvedOldProps, nextProps), newState = workInProgress$1.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(workInProgress$1, Component$1, contextType$jscomp$0, nextProps, oldState, newState, oldProps) || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies)) ? (oldContext || "function" !== typeof context.UNSAFE_componentWillUpdate && "function" !== typeof context.componentWillUpdate || ("function" === typeof context.componentWillUpdate && context.componentWillUpdate(nextProps, newState, oldProps), "function" === typeof context.UNSAFE_componentWillUpdate && context.UNSAFE_componentWillUpdate(nextProps, newState, oldProps)), "function" === typeof context.componentDidUpdate && (workInProgress$1.flags |= 4), "function" === typeof context.getSnapshotBeforeUpdate && (workInProgress$1.flags |= 1024)) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress$1.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress$1.flags |= 1024), workInProgress$1.memoizedProps = nextProps, workInProgress$1.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress$1.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress$1.flags |= 1024), nextProps = !1);
3183
+ contextType !== getDerivedStateFromProps || oldState !== newState || hasForceUpdate || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(workInProgress$1, Component, unresolvedOldProps, nextProps), newState = workInProgress$1.memoizedState), (contextType$jscomp$0 = hasForceUpdate || checkShouldComponentUpdate(workInProgress$1, Component, contextType$jscomp$0, nextProps, oldState, newState, oldProps) || null !== current && null !== current.dependencies && checkIfContextChanged(current.dependencies)) ? (oldContext || "function" !== typeof context.UNSAFE_componentWillUpdate && "function" !== typeof context.componentWillUpdate || ("function" === typeof context.componentWillUpdate && context.componentWillUpdate(nextProps, newState, oldProps), "function" === typeof context.UNSAFE_componentWillUpdate && context.UNSAFE_componentWillUpdate(nextProps, newState, oldProps)), "function" === typeof context.componentDidUpdate && (workInProgress$1.flags |= 4), "function" === typeof context.getSnapshotBeforeUpdate && (workInProgress$1.flags |= 1024)) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress$1.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress$1.flags |= 1024), workInProgress$1.memoizedProps = nextProps, workInProgress$1.memoizedState = newState), context.props = nextProps, context.state = newState, context.context = oldProps, nextProps = contextType$jscomp$0) : ("function" !== typeof context.componentDidUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress$1.flags |= 4), "function" !== typeof context.getSnapshotBeforeUpdate || contextType === current.memoizedProps && oldState === current.memoizedState || (workInProgress$1.flags |= 1024), nextProps = !1);
3271
3184
  }
3272
3185
  context = nextProps;
3273
3186
  markRef(current, workInProgress$1);
3274
3187
  nextProps = 0 !== (workInProgress$1.flags & 128);
3275
- context || nextProps ? (context = workInProgress$1.stateNode, Component$1 = nextProps && "function" !== typeof Component$1.getDerivedStateFromError ? null : context.render(), workInProgress$1.flags |= 1, null !== current && nextProps ? (workInProgress$1.child = reconcileChildFibers(workInProgress$1, current.child, null, renderLanes$1), workInProgress$1.child = reconcileChildFibers(workInProgress$1, null, Component$1, renderLanes$1)) : reconcileChildren(current, workInProgress$1, Component$1, renderLanes$1), workInProgress$1.memoizedState = context.state, current = workInProgress$1.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress$1, renderLanes$1);
3188
+ context || nextProps ? (context = workInProgress$1.stateNode, Component = nextProps && "function" !== typeof Component.getDerivedStateFromError ? null : context.render(), workInProgress$1.flags |= 1, null !== current && nextProps ? (workInProgress$1.child = reconcileChildFibers(workInProgress$1, current.child, null, renderLanes$1), workInProgress$1.child = reconcileChildFibers(workInProgress$1, null, Component, renderLanes$1)) : reconcileChildren(current, workInProgress$1, Component, renderLanes$1), workInProgress$1.memoizedState = context.state, current = workInProgress$1.child) : current = bailoutOnAlreadyFinishedWork(current, workInProgress$1, renderLanes$1);
3276
3189
  return current;
3277
3190
  }
3278
3191
  function mountHostRootWithoutHydrating(current, workInProgress$1, nextChildren, renderLanes$1) {
@@ -5784,9 +5697,9 @@ var require_react_reconciler_production = /* @__PURE__ */ __commonJSMin(((export
5784
5697
  this.childLanes = this.lanes = 0;
5785
5698
  this.alternate = null;
5786
5699
  }
5787
- function shouldConstruct(Component$1) {
5788
- Component$1 = Component$1.prototype;
5789
- return !(!Component$1 || !Component$1.isReactComponent);
5700
+ function shouldConstruct(Component) {
5701
+ Component = Component.prototype;
5702
+ return !(!Component || !Component.isReactComponent);
5790
5703
  }
5791
5704
  function createWorkInProgress(current, pendingProps) {
5792
5705
  var workInProgress$1 = current.alternate;
@@ -8510,25 +8423,25 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
8510
8423
  for (var i = 0; i < prevDeps.length && i < nextDeps.length; i++) if (!objectIs(nextDeps[i], prevDeps[i])) return !1;
8511
8424
  return !0;
8512
8425
  }
8513
- function renderWithHooks(current$1, workInProgress$1, Component$1, props, secondArg, nextRenderLanes) {
8426
+ function renderWithHooks(current$1, workInProgress$1, Component, props, secondArg, nextRenderLanes) {
8514
8427
  renderLanes = nextRenderLanes;
8515
8428
  currentlyRenderingFiber = workInProgress$1;
8516
8429
  hookTypesDev = null !== current$1 ? current$1._debugHookTypes : null;
8517
8430
  hookTypesUpdateIndexDev = -1;
8518
8431
  ignorePreviousDependencies = null !== current$1 && current$1.type !== workInProgress$1.type;
8519
- if ("[object AsyncFunction]" === Object.prototype.toString.call(Component$1) || "[object AsyncGeneratorFunction]" === Object.prototype.toString.call(Component$1)) nextRenderLanes = getComponentNameFromFiber(currentlyRenderingFiber), didWarnAboutAsyncClientComponent.has(nextRenderLanes) || (didWarnAboutAsyncClientComponent.add(nextRenderLanes), console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.", null === nextRenderLanes ? "An unknown Component" : "<" + nextRenderLanes + ">"));
8432
+ if ("[object AsyncFunction]" === Object.prototype.toString.call(Component) || "[object AsyncGeneratorFunction]" === Object.prototype.toString.call(Component)) nextRenderLanes = getComponentNameFromFiber(currentlyRenderingFiber), didWarnAboutAsyncClientComponent.has(nextRenderLanes) || (didWarnAboutAsyncClientComponent.add(nextRenderLanes), console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.", null === nextRenderLanes ? "An unknown Component" : "<" + nextRenderLanes + ">"));
8520
8433
  workInProgress$1.memoizedState = null;
8521
8434
  workInProgress$1.updateQueue = null;
8522
8435
  workInProgress$1.lanes = 0;
8523
8436
  ReactSharedInternals.H = null !== current$1 && null !== current$1.memoizedState ? HooksDispatcherOnUpdateInDEV : null !== hookTypesDev ? HooksDispatcherOnMountWithHookTypesInDEV : HooksDispatcherOnMountInDEV;
8524
8437
  shouldDoubleInvokeUserFnsInHooksDEV = nextRenderLanes = (workInProgress$1.mode & 8) !== NoMode;
8525
- var children = callComponentInDEV(Component$1, props, secondArg);
8438
+ var children = callComponentInDEV(Component, props, secondArg);
8526
8439
  shouldDoubleInvokeUserFnsInHooksDEV = !1;
8527
- didScheduleRenderPhaseUpdateDuringThisPass && (children = renderWithHooksAgain(workInProgress$1, Component$1, props, secondArg));
8440
+ didScheduleRenderPhaseUpdateDuringThisPass && (children = renderWithHooksAgain(workInProgress$1, Component, props, secondArg));
8528
8441
  if (nextRenderLanes) {
8529
8442
  setIsStrictModeForDevtools(!0);
8530
8443
  try {
8531
- children = renderWithHooksAgain(workInProgress$1, Component$1, props, secondArg);
8444
+ children = renderWithHooksAgain(workInProgress$1, Component, props, secondArg);
8532
8445
  } finally {
8533
8446
  setIsStrictModeForDevtools(!1);
8534
8447
  }
@@ -8557,7 +8470,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
8557
8470
  needsToResetSuspendedThenableDEV ? (needsToResetSuspendedThenableDEV = !1, current$1 = !0) : current$1 = !1;
8558
8471
  current$1 && (workInProgress$1 = getComponentNameFromFiber(workInProgress$1) || "Unknown", didWarnAboutUseWrappedInTryCatch.has(workInProgress$1) || didWarnAboutAsyncClientComponent.has(workInProgress$1) || (didWarnAboutUseWrappedInTryCatch.add(workInProgress$1), console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")));
8559
8472
  }
8560
- function renderWithHooksAgain(workInProgress$1, Component$1, props, secondArg) {
8473
+ function renderWithHooksAgain(workInProgress$1, Component, props, secondArg) {
8561
8474
  currentlyRenderingFiber = workInProgress$1;
8562
8475
  var numberOfReRenders = 0;
8563
8476
  do {
@@ -8577,7 +8490,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
8577
8490
  }
8578
8491
  hookTypesUpdateIndexDev = -1;
8579
8492
  ReactSharedInternals.H = HooksDispatcherOnRerenderInDEV;
8580
- children = callComponentInDEV(Component$1, props, secondArg);
8493
+ children = callComponentInDEV(Component, props, secondArg);
8581
8494
  } while (didScheduleRenderPhaseUpdateDuringThisPass);
8582
8495
  return children;
8583
8496
  }
@@ -9912,15 +9825,15 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
9912
9825
  "function" === typeof instance.UNSAFE_componentWillReceiveProps && instance.UNSAFE_componentWillReceiveProps(newProps, nextContext);
9913
9826
  instance.state !== oldState && (workInProgress$1 = getComponentNameFromFiber(workInProgress$1) || "Component", didWarnAboutStateAssignmentForComponent.has(workInProgress$1) || (didWarnAboutStateAssignmentForComponent.add(workInProgress$1), console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", workInProgress$1)), classComponentUpdater.enqueueReplaceState(instance, instance.state, null));
9914
9827
  }
9915
- function resolveClassComponentProps(Component$1, baseProps) {
9828
+ function resolveClassComponentProps(Component, baseProps) {
9916
9829
  var newProps = baseProps;
9917
9830
  if ("ref" in baseProps) {
9918
9831
  newProps = {};
9919
9832
  for (var propName in baseProps) "ref" !== propName && (newProps[propName] = baseProps[propName]);
9920
9833
  }
9921
- if (Component$1 = Component$1.defaultProps) {
9834
+ if (Component = Component.defaultProps) {
9922
9835
  newProps === baseProps && (newProps = assign({}, newProps));
9923
- for (var _propName in Component$1) void 0 === newProps[_propName] && (newProps[_propName] = Component$1[_propName]);
9836
+ for (var _propName in Component) void 0 === newProps[_propName] && (newProps[_propName] = Component[_propName]);
9924
9837
  }
9925
9838
  return newProps;
9926
9839
  }
@@ -10032,8 +9945,8 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10032
9945
  function reconcileChildren(current$1, workInProgress$1, nextChildren, renderLanes$1) {
10033
9946
  workInProgress$1.child = null === current$1 ? mountChildFibers(workInProgress$1, null, nextChildren, renderLanes$1) : reconcileChildFibers(workInProgress$1, current$1.child, nextChildren, renderLanes$1);
10034
9947
  }
10035
- function updateForwardRef(current$1, workInProgress$1, Component$1, nextProps, renderLanes$1) {
10036
- Component$1 = Component$1.render;
9948
+ function updateForwardRef(current$1, workInProgress$1, Component, nextProps, renderLanes$1) {
9949
+ Component = Component.render;
10037
9950
  var ref = workInProgress$1.ref;
10038
9951
  if ("ref" in nextProps) {
10039
9952
  var propsWithoutRef = {};
@@ -10041,7 +9954,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10041
9954
  } else propsWithoutRef = nextProps;
10042
9955
  prepareToReadContext(workInProgress$1);
10043
9956
  markComponentRenderStarted(workInProgress$1);
10044
- nextProps = renderWithHooks(current$1, workInProgress$1, Component$1, propsWithoutRef, ref, renderLanes$1);
9957
+ nextProps = renderWithHooks(current$1, workInProgress$1, Component, propsWithoutRef, ref, renderLanes$1);
10045
9958
  key = checkDidRenderIdHook();
10046
9959
  markComponentRenderStopped();
10047
9960
  if (null !== current$1 && !didReceiveUpdate) return bailoutHooks(current$1, workInProgress$1, renderLanes$1), bailoutOnAlreadyFinishedWork(current$1, workInProgress$1, renderLanes$1);
@@ -10050,11 +9963,11 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10050
9963
  reconcileChildren(current$1, workInProgress$1, nextProps, renderLanes$1);
10051
9964
  return workInProgress$1.child;
10052
9965
  }
10053
- function updateMemoComponent(current$1, workInProgress$1, Component$1, nextProps, renderLanes$1) {
9966
+ function updateMemoComponent(current$1, workInProgress$1, Component, nextProps, renderLanes$1) {
10054
9967
  if (null === current$1) {
10055
- var type = Component$1.type;
10056
- if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component$1.compare) return Component$1 = resolveFunctionForHotReloading(type), workInProgress$1.tag = 15, workInProgress$1.type = Component$1, validateFunctionComponentInDev(workInProgress$1, type), updateSimpleMemoComponent(current$1, workInProgress$1, Component$1, nextProps, renderLanes$1);
10057
- current$1 = createFiberFromTypeAndProps(Component$1.type, null, nextProps, workInProgress$1, workInProgress$1.mode, renderLanes$1);
9968
+ var type = Component.type;
9969
+ if ("function" === typeof type && !shouldConstruct(type) && void 0 === type.defaultProps && null === Component.compare) return Component = resolveFunctionForHotReloading(type), workInProgress$1.tag = 15, workInProgress$1.type = Component, validateFunctionComponentInDev(workInProgress$1, type), updateSimpleMemoComponent(current$1, workInProgress$1, Component, nextProps, renderLanes$1);
9970
+ current$1 = createFiberFromTypeAndProps(Component.type, null, nextProps, workInProgress$1, workInProgress$1.mode, renderLanes$1);
10058
9971
  current$1.ref = workInProgress$1.ref;
10059
9972
  current$1.return = workInProgress$1;
10060
9973
  return workInProgress$1.child = current$1;
@@ -10062,9 +9975,9 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10062
9975
  type = current$1.child;
10063
9976
  if (!checkScheduledUpdateOrContext(current$1, renderLanes$1)) {
10064
9977
  var prevProps = type.memoizedProps;
10065
- Component$1 = Component$1.compare;
10066
- Component$1 = null !== Component$1 ? Component$1 : shallowEqual;
10067
- if (Component$1(prevProps, nextProps) && current$1.ref === workInProgress$1.ref) return bailoutOnAlreadyFinishedWork(current$1, workInProgress$1, renderLanes$1);
9978
+ Component = Component.compare;
9979
+ Component = null !== Component ? Component : shallowEqual;
9980
+ if (Component(prevProps, nextProps) && current$1.ref === workInProgress$1.ref) return bailoutOnAlreadyFinishedWork(current$1, workInProgress$1, renderLanes$1);
10068
9981
  }
10069
9982
  workInProgress$1.flags |= 1;
10070
9983
  current$1 = createWorkInProgress(type, nextProps);
@@ -10072,13 +9985,13 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10072
9985
  current$1.return = workInProgress$1;
10073
9986
  return workInProgress$1.child = current$1;
10074
9987
  }
10075
- function updateSimpleMemoComponent(current$1, workInProgress$1, Component$1, nextProps, renderLanes$1) {
9988
+ function updateSimpleMemoComponent(current$1, workInProgress$1, Component, nextProps, renderLanes$1) {
10076
9989
  if (null !== current$1) {
10077
9990
  var prevProps = current$1.memoizedProps;
10078
9991
  if (shallowEqual(prevProps, nextProps) && current$1.ref === workInProgress$1.ref && workInProgress$1.type === current$1.type) if (didReceiveUpdate = !1, workInProgress$1.pendingProps = nextProps = prevProps, checkScheduledUpdateOrContext(current$1, renderLanes$1)) 0 !== (current$1.flags & 131072) && (didReceiveUpdate = !0);
10079
9992
  else return workInProgress$1.lanes = current$1.lanes, bailoutOnAlreadyFinishedWork(current$1, workInProgress$1, renderLanes$1);
10080
9993
  }
10081
- return updateFunctionComponent(current$1, workInProgress$1, Component$1, nextProps, renderLanes$1);
9994
+ return updateFunctionComponent(current$1, workInProgress$1, Component, nextProps, renderLanes$1);
10082
9995
  }
10083
9996
  function updateOffscreenComponent(current$1, workInProgress$1, renderLanes$1) {
10084
9997
  var nextProps = workInProgress$1.pendingProps, nextChildren = nextProps.children, prevState = null !== current$1 ? current$1.memoizedState : null;
@@ -10125,41 +10038,41 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10125
10038
  if (null === current$1 || current$1.ref !== ref) workInProgress$1.flags |= 4194816;
10126
10039
  }
10127
10040
  }
10128
- function updateFunctionComponent(current$1, workInProgress$1, Component$1, nextProps, renderLanes$1) {
10129
- if (Component$1.prototype && "function" === typeof Component$1.prototype.render) {
10130
- var componentName$1 = getComponentNameFromType(Component$1) || "Unknown";
10041
+ function updateFunctionComponent(current$1, workInProgress$1, Component, nextProps, renderLanes$1) {
10042
+ if (Component.prototype && "function" === typeof Component.prototype.render) {
10043
+ var componentName$1 = getComponentNameFromType(Component) || "Unknown";
10131
10044
  didWarnAboutBadClass[componentName$1] || (console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.", componentName$1, componentName$1), didWarnAboutBadClass[componentName$1] = !0);
10132
10045
  }
10133
10046
  workInProgress$1.mode & 8 && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress$1, null);
10134
- null === current$1 && (validateFunctionComponentInDev(workInProgress$1, workInProgress$1.type), Component$1.contextTypes && (componentName$1 = getComponentNameFromType(Component$1) || "Unknown", didWarnAboutContextTypes[componentName$1] || (didWarnAboutContextTypes[componentName$1] = !0, console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)", componentName$1))));
10047
+ null === current$1 && (validateFunctionComponentInDev(workInProgress$1, workInProgress$1.type), Component.contextTypes && (componentName$1 = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypes[componentName$1] || (didWarnAboutContextTypes[componentName$1] = !0, console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)", componentName$1))));
10135
10048
  prepareToReadContext(workInProgress$1);
10136
10049
  markComponentRenderStarted(workInProgress$1);
10137
- Component$1 = renderWithHooks(current$1, workInProgress$1, Component$1, nextProps, void 0, renderLanes$1);
10050
+ Component = renderWithHooks(current$1, workInProgress$1, Component, nextProps, void 0, renderLanes$1);
10138
10051
  nextProps = checkDidRenderIdHook();
10139
10052
  markComponentRenderStopped();
10140
10053
  if (null !== current$1 && !didReceiveUpdate) return bailoutHooks(current$1, workInProgress$1, renderLanes$1), bailoutOnAlreadyFinishedWork(current$1, workInProgress$1, renderLanes$1);
10141
10054
  isHydrating && nextProps && pushMaterializedTreeId(workInProgress$1);
10142
10055
  workInProgress$1.flags |= 1;
10143
- reconcileChildren(current$1, workInProgress$1, Component$1, renderLanes$1);
10056
+ reconcileChildren(current$1, workInProgress$1, Component, renderLanes$1);
10144
10057
  return workInProgress$1.child;
10145
10058
  }
10146
- function replayFunctionComponent(current$1, workInProgress$1, nextProps, Component$1, secondArg, renderLanes$1) {
10059
+ function replayFunctionComponent(current$1, workInProgress$1, nextProps, Component, secondArg, renderLanes$1) {
10147
10060
  prepareToReadContext(workInProgress$1);
10148
10061
  markComponentRenderStarted(workInProgress$1);
10149
10062
  hookTypesUpdateIndexDev = -1;
10150
10063
  ignorePreviousDependencies = null !== current$1 && current$1.type !== workInProgress$1.type;
10151
10064
  workInProgress$1.updateQueue = null;
10152
- nextProps = renderWithHooksAgain(workInProgress$1, Component$1, nextProps, secondArg);
10065
+ nextProps = renderWithHooksAgain(workInProgress$1, Component, nextProps, secondArg);
10153
10066
  finishRenderingHooks(current$1, workInProgress$1);
10154
- Component$1 = checkDidRenderIdHook();
10067
+ Component = checkDidRenderIdHook();
10155
10068
  markComponentRenderStopped();
10156
10069
  if (null !== current$1 && !didReceiveUpdate) return bailoutHooks(current$1, workInProgress$1, renderLanes$1), bailoutOnAlreadyFinishedWork(current$1, workInProgress$1, renderLanes$1);
10157
- isHydrating && Component$1 && pushMaterializedTreeId(workInProgress$1);
10070
+ isHydrating && Component && pushMaterializedTreeId(workInProgress$1);
10158
10071
  workInProgress$1.flags |= 1;
10159
10072
  reconcileChildren(current$1, workInProgress$1, nextProps, renderLanes$1);
10160
10073
  return workInProgress$1.child;
10161
10074
  }
10162
- function updateClassComponent(current$1, workInProgress$1, Component$1, nextProps, renderLanes$1) {
10075
+ function updateClassComponent(current$1, workInProgress$1, Component, nextProps, renderLanes$1) {
10163
10076
  switch (shouldErrorImpl(workInProgress$1)) {
10164
10077
  case !1:
10165
10078
  var _instance = workInProgress$1.stateNode, state = new workInProgress$1.type(workInProgress$1.memoizedProps, _instance.context).state;
@@ -10180,14 +10093,14 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10180
10093
  prepareToReadContext(workInProgress$1);
10181
10094
  if (null === workInProgress$1.stateNode) {
10182
10095
  state = emptyContextObject;
10183
- _instance = Component$1.contextType;
10184
- "contextType" in Component$1 && null !== _instance && (void 0 === _instance || _instance.$$typeof !== REACT_CONTEXT_TYPE) && !didWarnAboutInvalidateContextType.has(Component$1) && (didWarnAboutInvalidateContextType.add(Component$1), lane = void 0 === _instance ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : "object" !== typeof _instance ? " However, it is set to a " + typeof _instance + "." : _instance.$$typeof === REACT_CONSUMER_TYPE ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(_instance).join(", ") + "}.", console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(Component$1) || "Component", lane));
10096
+ _instance = Component.contextType;
10097
+ "contextType" in Component && null !== _instance && (void 0 === _instance || _instance.$$typeof !== REACT_CONTEXT_TYPE) && !didWarnAboutInvalidateContextType.has(Component) && (didWarnAboutInvalidateContextType.add(Component), lane = void 0 === _instance ? " However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file." : "object" !== typeof _instance ? " However, it is set to a " + typeof _instance + "." : _instance.$$typeof === REACT_CONSUMER_TYPE ? " Did you accidentally pass the Context.Consumer instead?" : " However, it is set to an object with keys {" + Object.keys(_instance).join(", ") + "}.", console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s", getComponentNameFromType(Component) || "Component", lane));
10185
10098
  "object" === typeof _instance && null !== _instance && (state = readContext(_instance));
10186
- _instance = new Component$1(nextProps, state);
10099
+ _instance = new Component(nextProps, state);
10187
10100
  if (workInProgress$1.mode & 8) {
10188
10101
  setIsStrictModeForDevtools(!0);
10189
10102
  try {
10190
- _instance = new Component$1(nextProps, state);
10103
+ _instance = new Component(nextProps, state);
10191
10104
  } finally {
10192
10105
  setIsStrictModeForDevtools(!1);
10193
10106
  }
@@ -10197,28 +10110,28 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10197
10110
  workInProgress$1.stateNode = _instance;
10198
10111
  _instance._reactInternals = workInProgress$1;
10199
10112
  _instance._reactInternalInstance = fakeInternalInstance;
10200
- "function" === typeof Component$1.getDerivedStateFromProps && null === state && (state = getComponentNameFromType(Component$1) || "Component", didWarnAboutUninitializedState.has(state) || (didWarnAboutUninitializedState.add(state), console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", state, null === _instance.state ? "null" : "undefined", state)));
10201
- if ("function" === typeof Component$1.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate) {
10113
+ "function" === typeof Component.getDerivedStateFromProps && null === state && (state = getComponentNameFromType(Component) || "Component", didWarnAboutUninitializedState.has(state) || (didWarnAboutUninitializedState.add(state), console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.", state, null === _instance.state ? "null" : "undefined", state)));
10114
+ if ("function" === typeof Component.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate) {
10202
10115
  var foundWillUpdateName = lane = state = null;
10203
10116
  "function" === typeof _instance.componentWillMount && !0 !== _instance.componentWillMount.__suppressDeprecationWarning ? state = "componentWillMount" : "function" === typeof _instance.UNSAFE_componentWillMount && (state = "UNSAFE_componentWillMount");
10204
10117
  "function" === typeof _instance.componentWillReceiveProps && !0 !== _instance.componentWillReceiveProps.__suppressDeprecationWarning ? lane = "componentWillReceiveProps" : "function" === typeof _instance.UNSAFE_componentWillReceiveProps && (lane = "UNSAFE_componentWillReceiveProps");
10205
10118
  "function" === typeof _instance.componentWillUpdate && !0 !== _instance.componentWillUpdate.__suppressDeprecationWarning ? foundWillUpdateName = "componentWillUpdate" : "function" === typeof _instance.UNSAFE_componentWillUpdate && (foundWillUpdateName = "UNSAFE_componentWillUpdate");
10206
10119
  if (null !== state || null !== lane || null !== foundWillUpdateName) {
10207
- _instance = getComponentNameFromType(Component$1) || "Component";
10208
- var newApiName = "function" === typeof Component$1.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
10120
+ _instance = getComponentNameFromType(Component) || "Component";
10121
+ var newApiName = "function" === typeof Component.getDerivedStateFromProps ? "getDerivedStateFromProps()" : "getSnapshotBeforeUpdate()";
10209
10122
  didWarnAboutLegacyLifecyclesAndDerivedState.has(_instance) || (didWarnAboutLegacyLifecyclesAndDerivedState.add(_instance), console.error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n%s uses %s but also contains the following legacy lifecycles:%s%s%s\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://react.dev/link/unsafe-component-lifecycles", _instance, newApiName, null !== state ? "\n " + state : "", null !== lane ? "\n " + lane : "", null !== foundWillUpdateName ? "\n " + foundWillUpdateName : ""));
10210
10123
  }
10211
10124
  }
10212
10125
  _instance = workInProgress$1.stateNode;
10213
- state = getComponentNameFromType(Component$1) || "Component";
10214
- _instance.render || (Component$1.prototype && "function" === typeof Component$1.prototype.render ? console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?", state) : console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.", state));
10126
+ state = getComponentNameFromType(Component) || "Component";
10127
+ _instance.render || (Component.prototype && "function" === typeof Component.prototype.render ? console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?", state) : console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.", state));
10215
10128
  !_instance.getInitialState || _instance.getInitialState.isReactClassApproved || _instance.state || console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?", state);
10216
10129
  _instance.getDefaultProps && !_instance.getDefaultProps.isReactClassApproved && console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.", state);
10217
10130
  _instance.contextType && console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.", state);
10218
- Component$1.childContextTypes && !didWarnAboutChildContextTypes.has(Component$1) && (didWarnAboutChildContextTypes.add(Component$1), console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", state));
10219
- Component$1.contextTypes && !didWarnAboutContextTypes$1.has(Component$1) && (didWarnAboutContextTypes$1.add(Component$1), console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", state));
10131
+ Component.childContextTypes && !didWarnAboutChildContextTypes.has(Component) && (didWarnAboutChildContextTypes.add(Component), console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)", state));
10132
+ Component.contextTypes && !didWarnAboutContextTypes$1.has(Component) && (didWarnAboutContextTypes$1.add(Component), console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)", state));
10220
10133
  "function" === typeof _instance.componentShouldUpdate && console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.", state);
10221
- Component$1.prototype && Component$1.prototype.isPureReactComponent && "undefined" !== typeof _instance.shouldComponentUpdate && console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(Component$1) || "A pure component");
10134
+ Component.prototype && Component.prototype.isPureReactComponent && "undefined" !== typeof _instance.shouldComponentUpdate && console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.", getComponentNameFromType(Component) || "A pure component");
10222
10135
  "function" === typeof _instance.componentDidUnmount && console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?", state);
10223
10136
  "function" === typeof _instance.componentDidReceiveProps && console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().", state);
10224
10137
  "function" === typeof _instance.componentWillRecieveProps && console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?", state);
@@ -10226,39 +10139,39 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10226
10139
  lane = _instance.props !== nextProps;
10227
10140
  void 0 !== _instance.props && lane && console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.", state);
10228
10141
  _instance.defaultProps && console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.", state, state);
10229
- "function" !== typeof _instance.getSnapshotBeforeUpdate || "function" === typeof _instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(Component$1) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(Component$1), console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(Component$1)));
10142
+ "function" !== typeof _instance.getSnapshotBeforeUpdate || "function" === typeof _instance.componentDidUpdate || didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.has(Component) || (didWarnAboutGetSnapshotBeforeUpdateWithoutDidUpdate.add(Component), console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.", getComponentNameFromType(Component)));
10230
10143
  "function" === typeof _instance.getDerivedStateFromProps && console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.", state);
10231
10144
  "function" === typeof _instance.getDerivedStateFromError && console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.", state);
10232
- "function" === typeof Component$1.getSnapshotBeforeUpdate && console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", state);
10145
+ "function" === typeof Component.getSnapshotBeforeUpdate && console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.", state);
10233
10146
  (lane = _instance.state) && ("object" !== typeof lane || isArrayImpl(lane)) && console.error("%s.state: must be set to an object or null", state);
10234
- "function" === typeof _instance.getChildContext && "object" !== typeof Component$1.childContextTypes && console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", state);
10147
+ "function" === typeof _instance.getChildContext && "object" !== typeof Component.childContextTypes && console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().", state);
10235
10148
  _instance = workInProgress$1.stateNode;
10236
10149
  _instance.props = nextProps;
10237
10150
  _instance.state = workInProgress$1.memoizedState;
10238
10151
  _instance.refs = {};
10239
10152
  initializeUpdateQueue(workInProgress$1);
10240
- state = Component$1.contextType;
10153
+ state = Component.contextType;
10241
10154
  _instance.context = "object" === typeof state && null !== state ? readContext(state) : emptyContextObject;
10242
- _instance.state === nextProps && (state = getComponentNameFromType(Component$1) || "Component", didWarnAboutDirectlyAssigningPropsToState.has(state) || (didWarnAboutDirectlyAssigningPropsToState.add(state), console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", state)));
10155
+ _instance.state === nextProps && (state = getComponentNameFromType(Component) || "Component", didWarnAboutDirectlyAssigningPropsToState.has(state) || (didWarnAboutDirectlyAssigningPropsToState.add(state), console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.", state)));
10243
10156
  workInProgress$1.mode & 8 && ReactStrictModeWarnings.recordLegacyContextWarning(workInProgress$1, _instance);
10244
10157
  ReactStrictModeWarnings.recordUnsafeLifecycleWarnings(workInProgress$1, _instance);
10245
10158
  _instance.state = workInProgress$1.memoizedState;
10246
- state = Component$1.getDerivedStateFromProps;
10247
- "function" === typeof state && (applyDerivedStateFromProps(workInProgress$1, Component$1, state, nextProps), _instance.state = workInProgress$1.memoizedState);
10248
- "function" === typeof Component$1.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || (state = _instance.state, "function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount(), state !== _instance.state && (console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentNameFromFiber(workInProgress$1) || "Component"), classComponentUpdater.enqueueReplaceState(_instance, _instance.state, null)), processUpdateQueue(workInProgress$1, nextProps, _instance, renderLanes$1), suspendIfUpdateReadFromEntangledAsyncAction(), _instance.state = workInProgress$1.memoizedState);
10159
+ state = Component.getDerivedStateFromProps;
10160
+ "function" === typeof state && (applyDerivedStateFromProps(workInProgress$1, Component, state, nextProps), _instance.state = workInProgress$1.memoizedState);
10161
+ "function" === typeof Component.getDerivedStateFromProps || "function" === typeof _instance.getSnapshotBeforeUpdate || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || (state = _instance.state, "function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount(), state !== _instance.state && (console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.", getComponentNameFromFiber(workInProgress$1) || "Component"), classComponentUpdater.enqueueReplaceState(_instance, _instance.state, null)), processUpdateQueue(workInProgress$1, nextProps, _instance, renderLanes$1), suspendIfUpdateReadFromEntangledAsyncAction(), _instance.state = workInProgress$1.memoizedState);
10249
10162
  "function" === typeof _instance.componentDidMount && (workInProgress$1.flags |= 4194308);
10250
10163
  (workInProgress$1.mode & 16) !== NoMode && (workInProgress$1.flags |= 134217728);
10251
10164
  _instance = !0;
10252
10165
  } else if (null === current$1) {
10253
10166
  _instance = workInProgress$1.stateNode;
10254
10167
  var unresolvedOldProps = workInProgress$1.memoizedProps;
10255
- lane = resolveClassComponentProps(Component$1, unresolvedOldProps);
10168
+ lane = resolveClassComponentProps(Component, unresolvedOldProps);
10256
10169
  _instance.props = lane;
10257
10170
  var oldContext = _instance.context;
10258
- foundWillUpdateName = Component$1.contextType;
10171
+ foundWillUpdateName = Component.contextType;
10259
10172
  state = emptyContextObject;
10260
10173
  "object" === typeof foundWillUpdateName && null !== foundWillUpdateName && (state = readContext(foundWillUpdateName));
10261
- newApiName = Component$1.getDerivedStateFromProps;
10174
+ newApiName = Component.getDerivedStateFromProps;
10262
10175
  foundWillUpdateName = "function" === typeof newApiName || "function" === typeof _instance.getSnapshotBeforeUpdate;
10263
10176
  unresolvedOldProps = workInProgress$1.pendingProps !== unresolvedOldProps;
10264
10177
  foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (unresolvedOldProps || oldContext !== state) && callComponentWillReceiveProps(workInProgress$1, _instance, nextProps, state);
@@ -10268,19 +10181,19 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10268
10181
  processUpdateQueue(workInProgress$1, nextProps, _instance, renderLanes$1);
10269
10182
  suspendIfUpdateReadFromEntangledAsyncAction();
10270
10183
  oldContext = workInProgress$1.memoizedState;
10271
- unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof newApiName && (applyDerivedStateFromProps(workInProgress$1, Component$1, newApiName, nextProps), oldContext = workInProgress$1.memoizedState), (lane = hasForceUpdate || checkShouldComponentUpdate(workInProgress$1, Component$1, lane, nextProps, oldState, oldContext, state)) ? (foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || ("function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount()), "function" === typeof _instance.componentDidMount && (workInProgress$1.flags |= 4194308), (workInProgress$1.mode & 16) !== NoMode && (workInProgress$1.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress$1.flags |= 4194308), (workInProgress$1.mode & 16) !== NoMode && (workInProgress$1.flags |= 134217728), workInProgress$1.memoizedProps = nextProps, workInProgress$1.memoizedState = oldContext), _instance.props = nextProps, _instance.state = oldContext, _instance.context = state, _instance = lane) : ("function" === typeof _instance.componentDidMount && (workInProgress$1.flags |= 4194308), (workInProgress$1.mode & 16) !== NoMode && (workInProgress$1.flags |= 134217728), _instance = !1);
10184
+ unresolvedOldProps || oldState !== oldContext || hasForceUpdate ? ("function" === typeof newApiName && (applyDerivedStateFromProps(workInProgress$1, Component, newApiName, nextProps), oldContext = workInProgress$1.memoizedState), (lane = hasForceUpdate || checkShouldComponentUpdate(workInProgress$1, Component, lane, nextProps, oldState, oldContext, state)) ? (foundWillUpdateName || "function" !== typeof _instance.UNSAFE_componentWillMount && "function" !== typeof _instance.componentWillMount || ("function" === typeof _instance.componentWillMount && _instance.componentWillMount(), "function" === typeof _instance.UNSAFE_componentWillMount && _instance.UNSAFE_componentWillMount()), "function" === typeof _instance.componentDidMount && (workInProgress$1.flags |= 4194308), (workInProgress$1.mode & 16) !== NoMode && (workInProgress$1.flags |= 134217728)) : ("function" === typeof _instance.componentDidMount && (workInProgress$1.flags |= 4194308), (workInProgress$1.mode & 16) !== NoMode && (workInProgress$1.flags |= 134217728), workInProgress$1.memoizedProps = nextProps, workInProgress$1.memoizedState = oldContext), _instance.props = nextProps, _instance.state = oldContext, _instance.context = state, _instance = lane) : ("function" === typeof _instance.componentDidMount && (workInProgress$1.flags |= 4194308), (workInProgress$1.mode & 16) !== NoMode && (workInProgress$1.flags |= 134217728), _instance = !1);
10272
10185
  } else {
10273
10186
  _instance = workInProgress$1.stateNode;
10274
10187
  cloneUpdateQueue(current$1, workInProgress$1);
10275
10188
  state = workInProgress$1.memoizedProps;
10276
- foundWillUpdateName = resolveClassComponentProps(Component$1, state);
10189
+ foundWillUpdateName = resolveClassComponentProps(Component, state);
10277
10190
  _instance.props = foundWillUpdateName;
10278
10191
  newApiName = workInProgress$1.pendingProps;
10279
10192
  oldState = _instance.context;
10280
- oldContext = Component$1.contextType;
10193
+ oldContext = Component.contextType;
10281
10194
  lane = emptyContextObject;
10282
10195
  "object" === typeof oldContext && null !== oldContext && (lane = readContext(oldContext));
10283
- unresolvedOldProps = Component$1.getDerivedStateFromProps;
10196
+ unresolvedOldProps = Component.getDerivedStateFromProps;
10284
10197
  (oldContext = "function" === typeof unresolvedOldProps || "function" === typeof _instance.getSnapshotBeforeUpdate) || "function" !== typeof _instance.UNSAFE_componentWillReceiveProps && "function" !== typeof _instance.componentWillReceiveProps || (state !== newApiName || oldState !== lane) && callComponentWillReceiveProps(workInProgress$1, _instance, nextProps, lane);
10285
10198
  hasForceUpdate = !1;
10286
10199
  oldState = workInProgress$1.memoizedState;
@@ -10288,7 +10201,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10288
10201
  processUpdateQueue(workInProgress$1, nextProps, _instance, renderLanes$1);
10289
10202
  suspendIfUpdateReadFromEntangledAsyncAction();
10290
10203
  var newState = workInProgress$1.memoizedState;
10291
- state !== newApiName || oldState !== newState || hasForceUpdate || null !== current$1 && null !== current$1.dependencies && checkIfContextChanged(current$1.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(workInProgress$1, Component$1, unresolvedOldProps, nextProps), newState = workInProgress$1.memoizedState), (foundWillUpdateName = hasForceUpdate || checkShouldComponentUpdate(workInProgress$1, Component$1, foundWillUpdateName, nextProps, oldState, newState, lane) || null !== current$1 && null !== current$1.dependencies && checkIfContextChanged(current$1.dependencies)) ? (oldContext || "function" !== typeof _instance.UNSAFE_componentWillUpdate && "function" !== typeof _instance.componentWillUpdate || ("function" === typeof _instance.componentWillUpdate && _instance.componentWillUpdate(nextProps, newState, lane), "function" === typeof _instance.UNSAFE_componentWillUpdate && _instance.UNSAFE_componentWillUpdate(nextProps, newState, lane)), "function" === typeof _instance.componentDidUpdate && (workInProgress$1.flags |= 4), "function" === typeof _instance.getSnapshotBeforeUpdate && (workInProgress$1.flags |= 1024)) : ("function" !== typeof _instance.componentDidUpdate || state === current$1.memoizedProps && oldState === current$1.memoizedState || (workInProgress$1.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current$1.memoizedProps && oldState === current$1.memoizedState || (workInProgress$1.flags |= 1024), workInProgress$1.memoizedProps = nextProps, workInProgress$1.memoizedState = newState), _instance.props = nextProps, _instance.state = newState, _instance.context = lane, _instance = foundWillUpdateName) : ("function" !== typeof _instance.componentDidUpdate || state === current$1.memoizedProps && oldState === current$1.memoizedState || (workInProgress$1.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current$1.memoizedProps && oldState === current$1.memoizedState || (workInProgress$1.flags |= 1024), _instance = !1);
10204
+ state !== newApiName || oldState !== newState || hasForceUpdate || null !== current$1 && null !== current$1.dependencies && checkIfContextChanged(current$1.dependencies) ? ("function" === typeof unresolvedOldProps && (applyDerivedStateFromProps(workInProgress$1, Component, unresolvedOldProps, nextProps), newState = workInProgress$1.memoizedState), (foundWillUpdateName = hasForceUpdate || checkShouldComponentUpdate(workInProgress$1, Component, foundWillUpdateName, nextProps, oldState, newState, lane) || null !== current$1 && null !== current$1.dependencies && checkIfContextChanged(current$1.dependencies)) ? (oldContext || "function" !== typeof _instance.UNSAFE_componentWillUpdate && "function" !== typeof _instance.componentWillUpdate || ("function" === typeof _instance.componentWillUpdate && _instance.componentWillUpdate(nextProps, newState, lane), "function" === typeof _instance.UNSAFE_componentWillUpdate && _instance.UNSAFE_componentWillUpdate(nextProps, newState, lane)), "function" === typeof _instance.componentDidUpdate && (workInProgress$1.flags |= 4), "function" === typeof _instance.getSnapshotBeforeUpdate && (workInProgress$1.flags |= 1024)) : ("function" !== typeof _instance.componentDidUpdate || state === current$1.memoizedProps && oldState === current$1.memoizedState || (workInProgress$1.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current$1.memoizedProps && oldState === current$1.memoizedState || (workInProgress$1.flags |= 1024), workInProgress$1.memoizedProps = nextProps, workInProgress$1.memoizedState = newState), _instance.props = nextProps, _instance.state = newState, _instance.context = lane, _instance = foundWillUpdateName) : ("function" !== typeof _instance.componentDidUpdate || state === current$1.memoizedProps && oldState === current$1.memoizedState || (workInProgress$1.flags |= 4), "function" !== typeof _instance.getSnapshotBeforeUpdate || state === current$1.memoizedProps && oldState === current$1.memoizedState || (workInProgress$1.flags |= 1024), _instance = !1);
10292
10205
  }
10293
10206
  lane = _instance;
10294
10207
  markRef(current$1, workInProgress$1);
@@ -10296,10 +10209,10 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10296
10209
  if (lane || state) {
10297
10210
  lane = workInProgress$1.stateNode;
10298
10211
  setCurrentFiber(workInProgress$1);
10299
- if (state && "function" !== typeof Component$1.getDerivedStateFromError) Component$1 = null, profilerStartTime = -1;
10212
+ if (state && "function" !== typeof Component.getDerivedStateFromError) Component = null, profilerStartTime = -1;
10300
10213
  else {
10301
10214
  markComponentRenderStarted(workInProgress$1);
10302
- Component$1 = callRenderInDEV(lane);
10215
+ Component = callRenderInDEV(lane);
10303
10216
  if (workInProgress$1.mode & 8) {
10304
10217
  setIsStrictModeForDevtools(!0);
10305
10218
  try {
@@ -10311,7 +10224,7 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10311
10224
  markComponentRenderStopped();
10312
10225
  }
10313
10226
  workInProgress$1.flags |= 1;
10314
- null !== current$1 && state ? (workInProgress$1.child = reconcileChildFibers(workInProgress$1, current$1.child, null, renderLanes$1), workInProgress$1.child = reconcileChildFibers(workInProgress$1, null, Component$1, renderLanes$1)) : reconcileChildren(current$1, workInProgress$1, Component$1, renderLanes$1);
10227
+ null !== current$1 && state ? (workInProgress$1.child = reconcileChildFibers(workInProgress$1, current$1.child, null, renderLanes$1), workInProgress$1.child = reconcileChildFibers(workInProgress$1, null, Component, renderLanes$1)) : reconcileChildren(current$1, workInProgress$1, Component, renderLanes$1);
10315
10228
  workInProgress$1.memoizedState = lane.state;
10316
10229
  current$1 = workInProgress$1.child;
10317
10230
  } else current$1 = bailoutOnAlreadyFinishedWork(current$1, workInProgress$1, renderLanes$1);
@@ -10325,10 +10238,10 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
10325
10238
  reconcileChildren(current$1, workInProgress$1, nextChildren, renderLanes$1);
10326
10239
  return workInProgress$1.child;
10327
10240
  }
10328
- function validateFunctionComponentInDev(workInProgress$1, Component$1) {
10329
- Component$1 && Component$1.childContextTypes && console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...", Component$1.displayName || Component$1.name || "Component");
10330
- "function" === typeof Component$1.getDerivedStateFromProps && (workInProgress$1 = getComponentNameFromType(Component$1) || "Unknown", didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress$1] || (console.error("%s: Function components do not support getDerivedStateFromProps.", workInProgress$1), didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress$1] = !0));
10331
- "object" === typeof Component$1.contextType && null !== Component$1.contextType && (Component$1 = getComponentNameFromType(Component$1) || "Unknown", didWarnAboutContextTypeOnFunctionComponent[Component$1] || (console.error("%s: Function components do not support contextType.", Component$1), didWarnAboutContextTypeOnFunctionComponent[Component$1] = !0));
10241
+ function validateFunctionComponentInDev(workInProgress$1, Component) {
10242
+ Component && Component.childContextTypes && console.error("childContextTypes cannot be defined on a function component.\n %s.childContextTypes = ...", Component.displayName || Component.name || "Component");
10243
+ "function" === typeof Component.getDerivedStateFromProps && (workInProgress$1 = getComponentNameFromType(Component) || "Unknown", didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress$1] || (console.error("%s: Function components do not support getDerivedStateFromProps.", workInProgress$1), didWarnAboutGetDerivedStateOnFunctionComponent[workInProgress$1] = !0));
10244
+ "object" === typeof Component.contextType && null !== Component.contextType && (Component = getComponentNameFromType(Component) || "Unknown", didWarnAboutContextTypeOnFunctionComponent[Component] || (console.error("%s: Function components do not support contextType.", Component), didWarnAboutContextTypeOnFunctionComponent[Component] = !0));
10332
10245
  }
10333
10246
  function mountSuspenseOffscreenState(renderLanes$1) {
10334
10247
  return {
@@ -13204,9 +13117,9 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
13204
13117
  this._debugHookTypes = null;
13205
13118
  hasBadMapPolyfill || "function" !== typeof Object.preventExtensions || Object.preventExtensions(this);
13206
13119
  }
13207
- function shouldConstruct(Component$1) {
13208
- Component$1 = Component$1.prototype;
13209
- return !(!Component$1 || !Component$1.isReactComponent);
13120
+ function shouldConstruct(Component) {
13121
+ Component = Component.prototype;
13122
+ return !(!Component || !Component.isReactComponent);
13210
13123
  }
13211
13124
  function createWorkInProgress(current$1, pendingProps) {
13212
13125
  var workInProgress$1 = current$1.alternate;
@@ -14566,11 +14479,11 @@ var require_react_reconciler_development = /* @__PURE__ */ __commonJSMin(((expor
14566
14479
  return updateWorkInProgressHook().memoizedState;
14567
14480
  }
14568
14481
  };
14569
- var callComponent = { "react-stack-bottom-frame": function(Component$1, props, secondArg) {
14482
+ var callComponent = { "react-stack-bottom-frame": function(Component, props, secondArg) {
14570
14483
  var wasRendering = isRendering;
14571
14484
  isRendering = !0;
14572
14485
  try {
14573
- return Component$1(props, secondArg);
14486
+ return Component(props, secondArg);
14574
14487
  } finally {
14575
14488
  isRendering = wasRendering;
14576
14489
  }
@@ -15118,6 +15031,7 @@ var require_react_reconciler = /* @__PURE__ */ __commonJSMin(((exports, module)
15118
15031
 
15119
15032
  //#endregion
15120
15033
  //#region src/Renderer.ts
15034
+ var import_react = /* @__PURE__ */ __toESM(require_react(), 1);
15121
15035
  var import_react_reconciler = /* @__PURE__ */ __toESM(require_react_reconciler(), 1);
15122
15036
  var import_constants = require_constants();
15123
15037
  let currentUpdatePriority = import_constants.NoEventPriority;
@@ -15175,7 +15089,7 @@ const Renderer = (0, import_react_reconciler.default)({
15175
15089
  appendInitialChild: appendChildNode,
15176
15090
  appendChild: appendChildNode,
15177
15091
  insertBefore: insertBeforeNode,
15178
- finalizeInitialChildren(_node, _type, _props, _rootNode$1) {
15092
+ finalizeInitialChildren(_node, _type, _props, _rootNode) {
15179
15093
  return false;
15180
15094
  },
15181
15095
  supportsMutation: true,
@@ -15243,385 +15157,5 @@ const Renderer = (0, import_react_reconciler.default)({
15243
15157
  });
15244
15158
 
15245
15159
  //#endregion
15246
- //#region src/utils/squashExportNodes.ts
15247
- function squashExportNodes(node) {
15248
- const exports$1 = /* @__PURE__ */ new Set();
15249
- const walk = (current) => {
15250
- for (const child of current.childNodes) {
15251
- if (!child) continue;
15252
- if (child.nodeName !== "#text" && nodeNames.has(child.nodeName)) walk(child);
15253
- if (child.nodeName === "kubb-export") {
15254
- var _child$attributes$get, _child$attributes$get2;
15255
- exports$1.add({
15256
- name: child.attributes.get("name"),
15257
- path: child.attributes.get("path"),
15258
- isTypeOnly: (_child$attributes$get = child.attributes.get("isTypeOnly")) !== null && _child$attributes$get !== void 0 ? _child$attributes$get : false,
15259
- asAlias: (_child$attributes$get2 = child.attributes.get("asAlias")) !== null && _child$attributes$get2 !== void 0 ? _child$attributes$get2 : false
15260
- });
15261
- }
15262
- }
15263
- };
15264
- walk(node);
15265
- return exports$1;
15266
- }
15267
-
15268
- //#endregion
15269
- //#region src/utils/squashImportNodes.ts
15270
- function squashImportNodes(node) {
15271
- const imports = /* @__PURE__ */ new Set();
15272
- const walk = (current) => {
15273
- for (const child of current.childNodes) {
15274
- if (!child) continue;
15275
- if (child.nodeName !== "#text" && nodeNames.has(child.nodeName)) walk(child);
15276
- if (child.nodeName === "kubb-import") {
15277
- var _child$attributes$get, _child$attributes$get2;
15278
- imports.add({
15279
- name: child.attributes.get("name"),
15280
- path: child.attributes.get("path"),
15281
- root: child.attributes.get("root"),
15282
- isTypeOnly: (_child$attributes$get = child.attributes.get("isTypeOnly")) !== null && _child$attributes$get !== void 0 ? _child$attributes$get : false,
15283
- isNameSpace: (_child$attributes$get2 = child.attributes.get("isNameSpace")) !== null && _child$attributes$get2 !== void 0 ? _child$attributes$get2 : false
15284
- });
15285
- }
15286
- }
15287
- };
15288
- walk(node);
15289
- return imports;
15290
- }
15291
-
15292
- //#endregion
15293
- //#region src/utils/squashTextNodes.ts
15294
- function squashTextNodes(node) {
15295
- let text = "";
15296
- const walk = (current) => {
15297
- let content = "";
15298
- for (const child of current.childNodes) {
15299
- if (!child) continue;
15300
- let nodeText = "";
15301
- const getPrintText = (text$1) => {
15302
- switch (child.nodeName) {
15303
- case "kubb-import": return print(createImport({
15304
- name: child.attributes.get("name"),
15305
- path: child.attributes.get("path"),
15306
- root: child.attributes.get("root"),
15307
- isTypeOnly: child.attributes.get("isTypeOnly"),
15308
- isNameSpace: child.attributes.get("isNameSpace")
15309
- }));
15310
- case "kubb-export":
15311
- if (child.attributes.has("path")) return print(createExport({
15312
- name: child.attributes.get("name"),
15313
- path: child.attributes.get("path"),
15314
- isTypeOnly: child.attributes.get("isTypeOnly"),
15315
- asAlias: child.attributes.get("asAlias")
15316
- }));
15317
- return "";
15318
- case "kubb-source": return text$1;
15319
- default: return text$1;
15320
- }
15321
- };
15322
- if (child.nodeName === "#text") nodeText = child.nodeValue;
15323
- else {
15324
- if (child.nodeName === "kubb-text" || child.nodeName === "kubb-file" || child.nodeName === "kubb-source") nodeText = walk(child);
15325
- nodeText = getPrintText(nodeText);
15326
- if (child.nodeName === "br") nodeText = "\n";
15327
- if (!nodeNames.has(child.nodeName)) {
15328
- const attributes = child.attributes;
15329
- let attrString = "";
15330
- const hasAttributes = attributes.size > 0;
15331
- for (const [key, value] of attributes) attrString += typeof value === "string" ? ` ${key}="${value}"` : ` ${key}={${String(value)}}`;
15332
- if (hasAttributes) nodeText = `<${child.nodeName}${attrString}>${walk(child)}</${child.nodeName}>`;
15333
- else nodeText = `<${child.nodeName}>${walk(child)}</${child.nodeName}>`;
15334
- }
15335
- }
15336
- content += nodeText;
15337
- }
15338
- return content;
15339
- };
15340
- text = walk(node);
15341
- return text;
15342
- }
15343
-
15344
- //#endregion
15345
- //#region src/utils/squashSourceNodes.ts
15346
- function squashSourceNodes(node, ignores) {
15347
- const ignoreSet = new Set(ignores);
15348
- const sources = /* @__PURE__ */ new Set();
15349
- const walk = (current) => {
15350
- for (const child of current.childNodes) {
15351
- if (!child) continue;
15352
- if (child.nodeName !== "#text" && ignoreSet.has(child.nodeName)) continue;
15353
- if (child.nodeName === "kubb-source") {
15354
- var _child$attributes$get, _child$attributes$get2, _child$attributes$get3;
15355
- const value = squashTextNodes(child);
15356
- sources.add({
15357
- name: child.attributes.get("name"),
15358
- isTypeOnly: (_child$attributes$get = child.attributes.get("isTypeOnly")) !== null && _child$attributes$get !== void 0 ? _child$attributes$get : false,
15359
- isExportable: (_child$attributes$get2 = child.attributes.get("isExportable")) !== null && _child$attributes$get2 !== void 0 ? _child$attributes$get2 : false,
15360
- isIndexable: (_child$attributes$get3 = child.attributes.get("isIndexable")) !== null && _child$attributes$get3 !== void 0 ? _child$attributes$get3 : false,
15361
- value: value.trim().replace(/^\s+|\s+$/g, "")
15362
- });
15363
- continue;
15364
- }
15365
- if (child.nodeName !== "#text" && nodeNames.has(child.nodeName)) walk(child);
15366
- }
15367
- };
15368
- walk(node);
15369
- return sources;
15370
- }
15371
-
15372
- //#endregion
15373
- //#region src/utils/processFiles.ts
15374
- async function processFiles(node) {
15375
- const collected = [];
15376
- async function walk(current) {
15377
- for (const child of current.childNodes) {
15378
- if (!child) continue;
15379
- if (child.nodeName !== "#text" && child.nodeName !== "kubb-file" && nodeNames.has(child.nodeName)) await walk(child);
15380
- if (child.nodeName === "kubb-file") {
15381
- if (child.attributes.has("baseName") && child.attributes.has("path")) {
15382
- const sources = squashSourceNodes(child, ["kubb-export", "kubb-import"]);
15383
- collected.push({
15384
- baseName: child.attributes.get("baseName"),
15385
- path: child.attributes.get("path"),
15386
- meta: child.attributes.get("meta") || {},
15387
- footer: child.attributes.get("footer"),
15388
- banner: child.attributes.get("banner"),
15389
- sources: [...sources],
15390
- exports: [...squashExportNodes(child)],
15391
- imports: [...squashImportNodes(child)]
15392
- });
15393
- }
15394
- }
15395
- }
15396
- }
15397
- await walk(node);
15398
- return collected;
15399
- }
15400
-
15401
- //#endregion
15402
- //#region \0@oxc-project+runtime@0.103.0/helpers/checkPrivateRedeclaration.js
15403
- function _checkPrivateRedeclaration(e, t) {
15404
- if (t.has(e)) throw new TypeError("Cannot initialize the same private elements twice on an object");
15405
- }
15406
-
15407
- //#endregion
15408
- //#region \0@oxc-project+runtime@0.103.0/helpers/classPrivateMethodInitSpec.js
15409
- function _classPrivateMethodInitSpec(e, a) {
15410
- _checkPrivateRedeclaration(e, a), a.add(e);
15411
- }
15412
-
15413
- //#endregion
15414
- //#region \0@oxc-project+runtime@0.103.0/helpers/classPrivateFieldInitSpec.js
15415
- function _classPrivateFieldInitSpec(e, t, a) {
15416
- _checkPrivateRedeclaration(e, t), t.set(e, a);
15417
- }
15418
-
15419
- //#endregion
15420
- //#region \0@oxc-project+runtime@0.103.0/helpers/assertClassBrand.js
15421
- function _assertClassBrand(e, t, n) {
15422
- if ("function" == typeof e ? e === t : e.has(t)) return arguments.length < 3 ? t : n;
15423
- throw new TypeError("Private element is not present on this object");
15424
- }
15425
-
15426
- //#endregion
15427
- //#region \0@oxc-project+runtime@0.103.0/helpers/classPrivateFieldGet2.js
15428
- function _classPrivateFieldGet2(s, a) {
15429
- return s.get(_assertClassBrand(s, a));
15430
- }
15431
-
15432
- //#endregion
15433
- //#region \0@oxc-project+runtime@0.103.0/helpers/classPrivateFieldSet2.js
15434
- function _classPrivateFieldSet2(s, a, r) {
15435
- return s.set(_assertClassBrand(s, a), r), r;
15436
- }
15437
-
15438
- //#endregion
15439
- //#region src/Runtime.tsx
15440
- var _options = /* @__PURE__ */ new WeakMap();
15441
- var _isUnmounted = /* @__PURE__ */ new WeakMap();
15442
- var _renderError = /* @__PURE__ */ new WeakMap();
15443
- var _container = /* @__PURE__ */ new WeakMap();
15444
- var _rootNode = /* @__PURE__ */ new WeakMap();
15445
- var _renderPromise = /* @__PURE__ */ new WeakMap();
15446
- var _Runtime_brand = /* @__PURE__ */ new WeakSet();
15447
- var Runtime = class {
15448
- constructor(options) {
15449
- _classPrivateMethodInitSpec(this, _Runtime_brand);
15450
- _classPrivateFieldInitSpec(this, _options, void 0);
15451
- _classPrivateFieldInitSpec(this, _isUnmounted, void 0);
15452
- _classPrivateFieldInitSpec(this, _renderError, void 0);
15453
- _defineProperty(this, "exitPromise", void 0);
15454
- _classPrivateFieldInitSpec(this, _container, void 0);
15455
- _classPrivateFieldInitSpec(this, _rootNode, void 0);
15456
- _classPrivateFieldInitSpec(this, _renderPromise, Promise.resolve());
15457
- _defineProperty(this, "resolveExitPromise", () => {});
15458
- _defineProperty(this, "rejectExitPromise", () => {});
15459
- _defineProperty(this, "unsubscribeExit", () => {});
15460
- _defineProperty(this, "onRender", () => {
15461
- const task = _classPrivateFieldGet2(_renderPromise, this).catch(() => {}).then(async () => {
15462
- var _classPrivateFieldGet2$1, _classPrivateFieldGet3, _classPrivateFieldGet4, _classPrivateFieldGet5;
15463
- if (_classPrivateFieldGet2(_isUnmounted, this)) return;
15464
- const files = await processFiles(_classPrivateFieldGet2(_rootNode, this));
15465
- await this.fileManager.add(...files);
15466
- if (!((_classPrivateFieldGet2$1 = _classPrivateFieldGet2(_options, this)) === null || _classPrivateFieldGet2$1 === void 0 ? void 0 : _classPrivateFieldGet2$1.debug) && !((_classPrivateFieldGet3 = _classPrivateFieldGet2(_options, this)) === null || _classPrivateFieldGet3 === void 0 ? void 0 : _classPrivateFieldGet3.stdout)) return;
15467
- const output = await _assertClassBrand(_Runtime_brand, this, _getOutput).call(this, _classPrivateFieldGet2(_rootNode, this));
15468
- if ((_classPrivateFieldGet4 = _classPrivateFieldGet2(_options, this)) === null || _classPrivateFieldGet4 === void 0 ? void 0 : _classPrivateFieldGet4.debug) {
15469
- console.log("Rendering:\n");
15470
- console.log(output);
15471
- }
15472
- if (((_classPrivateFieldGet5 = _classPrivateFieldGet2(_options, this)) === null || _classPrivateFieldGet5 === void 0 ? void 0 : _classPrivateFieldGet5.stdout) && process$1.env.NODE_ENV !== "test") {
15473
- _classPrivateFieldGet2(_options, this).stdout.clearLine(0);
15474
- _classPrivateFieldGet2(_options, this).stdout.cursorTo(0);
15475
- _classPrivateFieldGet2(_options, this).stdout.write(output);
15476
- }
15477
- });
15478
- _classPrivateFieldSet2(_renderPromise, this, task.catch((error) => {
15479
- this.onError(error);
15480
- }));
15481
- return _classPrivateFieldGet2(_renderPromise, this);
15482
- });
15483
- _classPrivateFieldSet2(_options, this, options);
15484
- _classPrivateFieldSet2(_rootNode, this, createNode("kubb-root"));
15485
- _classPrivateFieldGet2(_rootNode, this).onRender = this.onRender;
15486
- _classPrivateFieldGet2(_rootNode, this).onImmediateRender = this.onRender;
15487
- _classPrivateFieldSet2(_isUnmounted, this, false);
15488
- this.unmount.bind(this);
15489
- console.error = (data) => {
15490
- const message = typeof data === "string" ? data : data === null || data === void 0 ? void 0 : data.message;
15491
- if ((message === null || message === void 0 ? void 0 : message.match(/Encountered two children with the same key/gi)) || (message === null || message === void 0 ? void 0 : message.match(/React will try to recreat/gi)) || (message === null || message === void 0 ? void 0 : message.match(/Each child in a list should have a unique/gi)) || (message === null || message === void 0 ? void 0 : message.match(/The above error occurred in the <KubbErrorBoundary/gi)) || (message === null || message === void 0 ? void 0 : message.match(/A React Element from an older version of React was render/gi))) return;
15492
- console.log(data);
15493
- };
15494
- const logRecoverableError = typeof reportError === "function" ? reportError : console.error;
15495
- const rootTag = import_constants.ConcurrentRoot;
15496
- _classPrivateFieldSet2(_container, this, Renderer.createContainer(_classPrivateFieldGet2(_rootNode, this), rootTag, null, false, false, "id", logRecoverableError, logRecoverableError, logRecoverableError, null));
15497
- this.unsubscribeExit = onExit((code) => {
15498
- this.unmount(code);
15499
- }, { alwaysLast: false }).bind(this);
15500
- Renderer.injectIntoDevTools({
15501
- bundleType: 1,
15502
- version: "19.1.0",
15503
- rendererPackageName: "kubb"
15504
- });
15505
- }
15506
- get fileManager() {
15507
- return _classPrivateFieldGet2(_options, this).fileManager;
15508
- }
15509
- onError(error) {
15510
- if (process$1.env.NODE_ENV === "test") console.warn(error);
15511
- _classPrivateFieldSet2(_renderError, this, error);
15512
- }
15513
- onExit(error) {
15514
- this.unmount(error);
15515
- }
15516
- async render(node) {
15517
- const treeNode = new TreeNode({
15518
- type: "Root",
15519
- props: {}
15520
- });
15521
- const props = {
15522
- fileManager: this.fileManager,
15523
- treeNode,
15524
- onExit: this.onExit.bind(this),
15525
- onError: this.onError.bind(this)
15526
- };
15527
- treeNode.data.props = props;
15528
- const element = /* @__PURE__ */ jsx(Root, {
15529
- ...props,
15530
- children: node
15531
- });
15532
- Renderer.updateContainerSync(element, _classPrivateFieldGet2(_container, this), null, null);
15533
- Renderer.flushSyncWork();
15534
- await _classPrivateFieldGet2(_renderPromise, this);
15535
- if (_classPrivateFieldGet2(_renderError, this)) {
15536
- const error = _classPrivateFieldGet2(_renderError, this);
15537
- _classPrivateFieldSet2(_renderError, this, void 0);
15538
- throw error;
15539
- }
15540
- }
15541
- async renderToString(node) {
15542
- const treeNode = new TreeNode({
15543
- type: "Root",
15544
- props: {}
15545
- });
15546
- const props = {
15547
- fileManager: this.fileManager,
15548
- treeNode,
15549
- onExit: this.onExit.bind(this),
15550
- onError: this.onError.bind(this)
15551
- };
15552
- treeNode.data.props = props;
15553
- const element = /* @__PURE__ */ jsx(Root, {
15554
- ...props,
15555
- children: node
15556
- });
15557
- Renderer.updateContainerSync(element, _classPrivateFieldGet2(_container, this), null, null);
15558
- Renderer.flushSyncWork();
15559
- await _classPrivateFieldGet2(_renderPromise, this);
15560
- this.fileManager.clear();
15561
- if (_classPrivateFieldGet2(_renderError, this)) {
15562
- const error = _classPrivateFieldGet2(_renderError, this);
15563
- _classPrivateFieldSet2(_renderError, this, void 0);
15564
- throw error;
15565
- }
15566
- return _assertClassBrand(_Runtime_brand, this, _getOutput).call(this, _classPrivateFieldGet2(_rootNode, this));
15567
- }
15568
- unmount(error) {
15569
- var _classPrivateFieldGet6;
15570
- if (_classPrivateFieldGet2(_isUnmounted, this)) return;
15571
- if ((_classPrivateFieldGet6 = _classPrivateFieldGet2(_options, this)) === null || _classPrivateFieldGet6 === void 0 ? void 0 : _classPrivateFieldGet6.debug) console.log("Unmount", error);
15572
- this.onRender();
15573
- this.unsubscribeExit();
15574
- _classPrivateFieldSet2(_isUnmounted, this, true);
15575
- Renderer.updateContainerSync(null, _classPrivateFieldGet2(_container, this), null, null);
15576
- if (error instanceof Error) {
15577
- this.rejectExitPromise(error);
15578
- return;
15579
- }
15580
- this.resolveExitPromise();
15581
- }
15582
- async waitUntilExit() {
15583
- if (!this.exitPromise) this.exitPromise = new Promise((resolve, reject) => {
15584
- this.resolveExitPromise = resolve;
15585
- this.rejectExitPromise = reject;
15586
- });
15587
- return this.exitPromise;
15588
- }
15589
- };
15590
- async function _getOutput(node) {
15591
- const text = squashTextNodes(node);
15592
- const files = this.fileManager.files;
15593
- if (!files.length) return text;
15594
- const values = /* @__PURE__ */ new Set();
15595
- for (const file of files) for (const source of file.sources) if (source === null || source === void 0 ? void 0 : source.value) values.add(source.value);
15596
- return [...values].join("\n\n");
15597
- }
15598
-
15599
- //#endregion
15600
- //#region src/plugins/reactPlugin.ts
15601
- const reactPlugin = definePlugin({
15602
- name: "react",
15603
- install() {},
15604
- inject(ctx, options = {}) {
15605
- const runtime = new Runtime({
15606
- fileManager: ctx.fileManager,
15607
- ...options
15608
- });
15609
- return {
15610
- async render(App) {
15611
- await ctx.emit("lifecycle:start");
15612
- await runtime.render((0, import_react.createElement)(App));
15613
- },
15614
- async renderToString(App) {
15615
- await ctx.emit("lifecycle:start");
15616
- return runtime.renderToString((0, import_react.createElement)(App));
15617
- },
15618
- async waitUntilExit() {
15619
- await runtime.waitUntilExit();
15620
- }
15621
- };
15622
- }
15623
- });
15624
-
15625
- //#endregion
15626
- export { _classPrivateFieldInitSpec as a, _classPrivateFieldGet2 as i, Runtime as n, _classPrivateFieldSet2 as r, reactPlugin as t };
15627
- //# sourceMappingURL=reactPlugin-CAtVV84d.js.map
15160
+ export { require_constants as i, createNode as n, nodeNames as r, Renderer as t };
15161
+ //# sourceMappingURL=Renderer-CgXqdVqV.js.map