@vxrn/vendor 1.2.47 → 1.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/react/cjs/react-compiler-runtime.development.js +9 -9
- package/react/cjs/react-compiler-runtime.production.js +4 -4
- package/react/cjs/react-compiler-runtime.profiling.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.development.js +271 -320
- package/react/cjs/react-jsx-dev-runtime.production.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.profiling.js +4 -4
- package/react/cjs/react-jsx-dev-runtime.react-server.development.js +277 -326
- package/react/cjs/react-jsx-dev-runtime.react-server.production.js +19 -19
- package/react/cjs/react-jsx-runtime.development.js +272 -314
- package/react/cjs/react-jsx-runtime.production.js +16 -16
- package/react/cjs/react-jsx-runtime.profiling.js +16 -16
- package/react/cjs/react-jsx-runtime.react-server.development.js +277 -326
- package/react/cjs/react-jsx-runtime.react-server.production.js +19 -19
- package/react/cjs/react.development.js +657 -734
- package/react/cjs/react.production.js +258 -301
- package/react/cjs/react.react-server.development.js +475 -535
- package/react/cjs/react.react-server.production.js +195 -229
- package/react/compiler-runtime.js +9 -9
- package/react/index.js +3 -3
- package/react/jsx-dev-runtime.js +3 -3
- package/react/jsx-dev-runtime.react-server.js +3 -3
- package/react/jsx-runtime.js +3 -3
- package/react/jsx-runtime.react-server.js +3 -3
- package/react/react.react-server.js +3 -3
- package/react-dom/cjs/react-dom-client.development.js +10301 -12280
- package/react-dom/cjs/react-dom-client.production.js +6275 -7412
- package/react-dom/cjs/react-dom-profiling.development.js +10463 -12479
- package/react-dom/cjs/react-dom-profiling.profiling.js +6611 -7839
- package/react-dom/cjs/react-dom-server-legacy.browser.development.js +4015 -4567
- package/react-dom/cjs/react-dom-server-legacy.browser.production.js +2598 -2934
- package/react-dom/cjs/react-dom-server-legacy.node.development.js +4015 -4567
- package/react-dom/cjs/react-dom-server-legacy.node.production.js +2627 -2961
- package/react-dom/cjs/react-dom-server.browser.development.js +4132 -4771
- package/react-dom/cjs/react-dom-server.browser.production.js +2725 -3092
- package/react-dom/cjs/react-dom-server.bun.development.js +4000 -4466
- package/react-dom/cjs/react-dom-server.bun.production.js +2629 -2967
- package/react-dom/cjs/react-dom-server.edge.development.js +4137 -4780
- package/react-dom/cjs/react-dom-server.edge.production.js +2760 -3123
- package/react-dom/cjs/react-dom-server.node.development.js +4102 -4707
- package/react-dom/cjs/react-dom-server.node.production.js +2739 -3092
- package/react-dom/cjs/react-dom-test-utils.development.js +9 -9
- package/react-dom/cjs/react-dom-test-utils.production.js +7 -7
- package/react-dom/cjs/react-dom.development.js +185 -225
- package/react-dom/cjs/react-dom.production.js +88 -111
- package/react-dom/cjs/react-dom.react-server.development.js +145 -180
- package/react-dom/cjs/react-dom.react-server.production.js +60 -79
- package/react-dom/client.js +8 -8
- package/react-dom/client.react-server.js +2 -4
- package/react-dom/index.js +8 -8
- package/react-dom/profiling.js +8 -8
- package/react-dom/profiling.react-server.js +2 -4
- package/react-dom/react-dom.react-server.js +3 -3
- package/react-dom/server.browser.js +11 -11
- package/react-dom/server.bun.js +12 -12
- package/react-dom/server.edge.js +12 -12
- package/react-dom/server.js +2 -2
- package/react-dom/server.node.js +11 -11
- package/react-dom/server.react-server.js +2 -4
- package/react-dom/static.browser.js +7 -7
- package/react-dom/static.edge.js +7 -7
- package/react-dom/static.js +2 -2
- package/react-dom/static.node.js +7 -7
- package/react-dom/static.react-server.js +2 -4
- package/react-dom/test-utils.js +3 -3
|
@@ -8,136 +8,128 @@
|
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
var ReactSharedInternals = { H: null, A: null }
|
|
11
|
+
'use strict'
|
|
12
|
+
var ReactSharedInternals = { H: null, A: null }
|
|
13
13
|
function formatProdErrorMessage(code) {
|
|
14
|
-
var url =
|
|
14
|
+
var url = 'https://react.dev/errors/' + code
|
|
15
15
|
if (1 < arguments.length) {
|
|
16
|
-
url +=
|
|
16
|
+
url += '?args[]=' + encodeURIComponent(arguments[1])
|
|
17
17
|
for (var i = 2; i < arguments.length; i++)
|
|
18
|
-
url +=
|
|
18
|
+
url += '&args[]=' + encodeURIComponent(arguments[i])
|
|
19
19
|
}
|
|
20
20
|
return (
|
|
21
|
-
|
|
21
|
+
'Minified React error #' +
|
|
22
22
|
code +
|
|
23
|
-
|
|
23
|
+
'; visit ' +
|
|
24
24
|
url +
|
|
25
|
-
|
|
26
|
-
)
|
|
25
|
+
' for the full message or use the non-minified dev environment for full errors and additional helpful warnings.'
|
|
26
|
+
)
|
|
27
27
|
}
|
|
28
28
|
var isArrayImpl = Array.isArray,
|
|
29
|
-
REACT_ELEMENT_TYPE = Symbol.for(
|
|
30
|
-
REACT_PORTAL_TYPE = Symbol.for(
|
|
31
|
-
REACT_FRAGMENT_TYPE = Symbol.for(
|
|
32
|
-
REACT_STRICT_MODE_TYPE = Symbol.for(
|
|
33
|
-
REACT_PROFILER_TYPE = Symbol.for(
|
|
34
|
-
REACT_FORWARD_REF_TYPE = Symbol.for(
|
|
35
|
-
REACT_SUSPENSE_TYPE = Symbol.for(
|
|
36
|
-
REACT_MEMO_TYPE = Symbol.for(
|
|
37
|
-
REACT_LAZY_TYPE = Symbol.for(
|
|
38
|
-
MAYBE_ITERATOR_SYMBOL = Symbol.iterator
|
|
29
|
+
REACT_ELEMENT_TYPE = Symbol.for('react.transitional.element'),
|
|
30
|
+
REACT_PORTAL_TYPE = Symbol.for('react.portal'),
|
|
31
|
+
REACT_FRAGMENT_TYPE = Symbol.for('react.fragment'),
|
|
32
|
+
REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode'),
|
|
33
|
+
REACT_PROFILER_TYPE = Symbol.for('react.profiler'),
|
|
34
|
+
REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref'),
|
|
35
|
+
REACT_SUSPENSE_TYPE = Symbol.for('react.suspense'),
|
|
36
|
+
REACT_MEMO_TYPE = Symbol.for('react.memo'),
|
|
37
|
+
REACT_LAZY_TYPE = Symbol.for('react.lazy'),
|
|
38
|
+
MAYBE_ITERATOR_SYMBOL = Symbol.iterator
|
|
39
39
|
function getIteratorFn(maybeIterable) {
|
|
40
|
-
if (null === maybeIterable ||
|
|
40
|
+
if (null === maybeIterable || 'object' !== typeof maybeIterable) return null
|
|
41
41
|
maybeIterable =
|
|
42
42
|
(MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL]) ||
|
|
43
|
-
maybeIterable[
|
|
44
|
-
return
|
|
43
|
+
maybeIterable['@@iterator']
|
|
44
|
+
return 'function' === typeof maybeIterable ? maybeIterable : null
|
|
45
45
|
}
|
|
46
46
|
var hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
47
|
-
assign = Object.assign
|
|
47
|
+
assign = Object.assign
|
|
48
48
|
function ReactElement(type, key, self, source, owner, props) {
|
|
49
|
-
self = props.ref
|
|
49
|
+
self = props.ref
|
|
50
50
|
return {
|
|
51
51
|
$$typeof: REACT_ELEMENT_TYPE,
|
|
52
52
|
type: type,
|
|
53
53
|
key: key,
|
|
54
54
|
ref: void 0 !== self ? self : null,
|
|
55
|
-
props: props
|
|
56
|
-
}
|
|
55
|
+
props: props,
|
|
56
|
+
}
|
|
57
57
|
}
|
|
58
58
|
function cloneAndReplaceKey(oldElement, newKey) {
|
|
59
|
-
return ReactElement(
|
|
60
|
-
oldElement.type,
|
|
61
|
-
newKey,
|
|
62
|
-
void 0,
|
|
63
|
-
void 0,
|
|
64
|
-
void 0,
|
|
65
|
-
oldElement.props
|
|
66
|
-
);
|
|
59
|
+
return ReactElement(oldElement.type, newKey, void 0, void 0, void 0, oldElement.props)
|
|
67
60
|
}
|
|
68
61
|
function isValidElement(object) {
|
|
69
62
|
return (
|
|
70
|
-
|
|
63
|
+
'object' === typeof object &&
|
|
71
64
|
null !== object &&
|
|
72
65
|
object.$$typeof === REACT_ELEMENT_TYPE
|
|
73
|
-
)
|
|
66
|
+
)
|
|
74
67
|
}
|
|
75
68
|
function escape(key) {
|
|
76
|
-
var escaperLookup = {
|
|
69
|
+
var escaperLookup = { '=': '=0', ':': '=2' }
|
|
77
70
|
return (
|
|
78
|
-
|
|
71
|
+
'$' +
|
|
79
72
|
key.replace(/[=:]/g, function (match) {
|
|
80
|
-
return escaperLookup[match]
|
|
73
|
+
return escaperLookup[match]
|
|
81
74
|
})
|
|
82
|
-
)
|
|
75
|
+
)
|
|
83
76
|
}
|
|
84
|
-
var userProvidedKeyEscapeRegex = /\/+/g
|
|
77
|
+
var userProvidedKeyEscapeRegex = /\/+/g
|
|
85
78
|
function getElementKey(element, index) {
|
|
86
|
-
return
|
|
87
|
-
? escape(
|
|
88
|
-
: index.toString(36)
|
|
79
|
+
return 'object' === typeof element && null !== element && null != element.key
|
|
80
|
+
? escape('' + element.key)
|
|
81
|
+
: index.toString(36)
|
|
89
82
|
}
|
|
90
83
|
function noop() {}
|
|
91
84
|
function resolveThenable(thenable) {
|
|
92
85
|
switch (thenable.status) {
|
|
93
|
-
case
|
|
94
|
-
return thenable.value
|
|
95
|
-
case
|
|
96
|
-
throw thenable.reason
|
|
86
|
+
case 'fulfilled':
|
|
87
|
+
return thenable.value
|
|
88
|
+
case 'rejected':
|
|
89
|
+
throw thenable.reason
|
|
97
90
|
default:
|
|
98
91
|
switch (
|
|
99
|
-
(
|
|
92
|
+
('string' === typeof thenable.status
|
|
100
93
|
? thenable.then(noop, noop)
|
|
101
|
-
: ((thenable.status =
|
|
94
|
+
: ((thenable.status = 'pending'),
|
|
102
95
|
thenable.then(
|
|
103
96
|
function (fulfilledValue) {
|
|
104
|
-
|
|
105
|
-
((thenable.status =
|
|
106
|
-
(thenable.value = fulfilledValue));
|
|
97
|
+
'pending' === thenable.status &&
|
|
98
|
+
((thenable.status = 'fulfilled'), (thenable.value = fulfilledValue))
|
|
107
99
|
},
|
|
108
100
|
function (error) {
|
|
109
|
-
|
|
110
|
-
((thenable.status =
|
|
101
|
+
'pending' === thenable.status &&
|
|
102
|
+
((thenable.status = 'rejected'), (thenable.reason = error))
|
|
111
103
|
}
|
|
112
104
|
)),
|
|
113
105
|
thenable.status)
|
|
114
106
|
) {
|
|
115
|
-
case
|
|
116
|
-
return thenable.value
|
|
117
|
-
case
|
|
118
|
-
throw thenable.reason
|
|
107
|
+
case 'fulfilled':
|
|
108
|
+
return thenable.value
|
|
109
|
+
case 'rejected':
|
|
110
|
+
throw thenable.reason
|
|
119
111
|
}
|
|
120
112
|
}
|
|
121
|
-
throw thenable
|
|
113
|
+
throw thenable
|
|
122
114
|
}
|
|
123
115
|
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
124
|
-
var type = typeof children
|
|
125
|
-
if (
|
|
126
|
-
var invokeCallback = !1
|
|
127
|
-
if (null === children) invokeCallback = !0
|
|
116
|
+
var type = typeof children
|
|
117
|
+
if ('undefined' === type || 'boolean' === type) children = null
|
|
118
|
+
var invokeCallback = !1
|
|
119
|
+
if (null === children) invokeCallback = !0
|
|
128
120
|
else
|
|
129
121
|
switch (type) {
|
|
130
|
-
case
|
|
131
|
-
case
|
|
132
|
-
case
|
|
133
|
-
invokeCallback = !0
|
|
134
|
-
break
|
|
135
|
-
case
|
|
122
|
+
case 'bigint':
|
|
123
|
+
case 'string':
|
|
124
|
+
case 'number':
|
|
125
|
+
invokeCallback = !0
|
|
126
|
+
break
|
|
127
|
+
case 'object':
|
|
136
128
|
switch (children.$$typeof) {
|
|
137
129
|
case REACT_ELEMENT_TYPE:
|
|
138
130
|
case REACT_PORTAL_TYPE:
|
|
139
|
-
invokeCallback = !0
|
|
140
|
-
break
|
|
131
|
+
invokeCallback = !0
|
|
132
|
+
break
|
|
141
133
|
case REACT_LAZY_TYPE:
|
|
142
134
|
return (
|
|
143
135
|
(invokeCallback = children._init),
|
|
@@ -148,121 +140,101 @@ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
|
148
140
|
nameSoFar,
|
|
149
141
|
callback
|
|
150
142
|
)
|
|
151
|
-
)
|
|
143
|
+
)
|
|
152
144
|
}
|
|
153
145
|
}
|
|
154
146
|
if (invokeCallback)
|
|
155
147
|
return (
|
|
156
148
|
(callback = callback(children)),
|
|
157
|
-
(invokeCallback =
|
|
158
|
-
"" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar),
|
|
149
|
+
(invokeCallback = '' === nameSoFar ? '.' + getElementKey(children, 0) : nameSoFar),
|
|
159
150
|
isArrayImpl(callback)
|
|
160
|
-
? ((escapedPrefix =
|
|
151
|
+
? ((escapedPrefix = ''),
|
|
161
152
|
null != invokeCallback &&
|
|
162
153
|
(escapedPrefix =
|
|
163
|
-
invokeCallback.replace(userProvidedKeyEscapeRegex,
|
|
164
|
-
mapIntoArray(callback, array, escapedPrefix,
|
|
165
|
-
return c
|
|
154
|
+
invokeCallback.replace(userProvidedKeyEscapeRegex, '$&/') + '/'),
|
|
155
|
+
mapIntoArray(callback, array, escapedPrefix, '', function (c) {
|
|
156
|
+
return c
|
|
166
157
|
}))
|
|
167
158
|
: null != callback &&
|
|
168
159
|
(isValidElement(callback) &&
|
|
169
160
|
(callback = cloneAndReplaceKey(
|
|
170
161
|
callback,
|
|
171
162
|
escapedPrefix +
|
|
172
|
-
(null == callback.key ||
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
userProvidedKeyEscapeRegex,
|
|
177
|
-
"$&/"
|
|
178
|
-
) + "/") +
|
|
163
|
+
(null == callback.key || (children && children.key === callback.key)
|
|
164
|
+
? ''
|
|
165
|
+
: ('' + callback.key).replace(userProvidedKeyEscapeRegex, '$&/') +
|
|
166
|
+
'/') +
|
|
179
167
|
invokeCallback
|
|
180
168
|
)),
|
|
181
169
|
array.push(callback)),
|
|
182
170
|
1
|
|
183
|
-
)
|
|
184
|
-
invokeCallback = 0
|
|
185
|
-
var nextNamePrefix =
|
|
171
|
+
)
|
|
172
|
+
invokeCallback = 0
|
|
173
|
+
var nextNamePrefix = '' === nameSoFar ? '.' : nameSoFar + ':'
|
|
186
174
|
if (isArrayImpl(children))
|
|
187
175
|
for (var i = 0; i < children.length; i++)
|
|
188
|
-
(nameSoFar = children[i]),
|
|
176
|
+
((nameSoFar = children[i]),
|
|
189
177
|
(type = nextNamePrefix + getElementKey(nameSoFar, i)),
|
|
190
|
-
(invokeCallback += mapIntoArray(
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
type,
|
|
195
|
-
callback
|
|
196
|
-
));
|
|
197
|
-
else if (((i = getIteratorFn(children)), "function" === typeof i))
|
|
198
|
-
for (
|
|
199
|
-
children = i.call(children), i = 0;
|
|
200
|
-
!(nameSoFar = children.next()).done;
|
|
201
|
-
|
|
202
|
-
)
|
|
203
|
-
(nameSoFar = nameSoFar.value),
|
|
178
|
+
(invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback)))
|
|
179
|
+
else if (((i = getIteratorFn(children)), 'function' === typeof i))
|
|
180
|
+
for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
|
|
181
|
+
((nameSoFar = nameSoFar.value),
|
|
204
182
|
(type = nextNamePrefix + getElementKey(nameSoFar, i++)),
|
|
205
|
-
(invokeCallback += mapIntoArray(
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
escapedPrefix,
|
|
209
|
-
type,
|
|
210
|
-
callback
|
|
211
|
-
));
|
|
212
|
-
else if ("object" === type) {
|
|
213
|
-
if ("function" === typeof children.then)
|
|
183
|
+
(invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback)))
|
|
184
|
+
else if ('object' === type) {
|
|
185
|
+
if ('function' === typeof children.then)
|
|
214
186
|
return mapIntoArray(
|
|
215
187
|
resolveThenable(children),
|
|
216
188
|
array,
|
|
217
189
|
escapedPrefix,
|
|
218
190
|
nameSoFar,
|
|
219
191
|
callback
|
|
220
|
-
)
|
|
221
|
-
array = String(children)
|
|
192
|
+
)
|
|
193
|
+
array = String(children)
|
|
222
194
|
throw Error(
|
|
223
195
|
formatProdErrorMessage(
|
|
224
196
|
31,
|
|
225
|
-
|
|
226
|
-
?
|
|
197
|
+
'[object Object]' === array
|
|
198
|
+
? 'object with keys {' + Object.keys(children).join(', ') + '}'
|
|
227
199
|
: array
|
|
228
200
|
)
|
|
229
|
-
)
|
|
201
|
+
)
|
|
230
202
|
}
|
|
231
|
-
return invokeCallback
|
|
203
|
+
return invokeCallback
|
|
232
204
|
}
|
|
233
205
|
function mapChildren(children, func, context) {
|
|
234
|
-
if (null == children) return children
|
|
206
|
+
if (null == children) return children
|
|
235
207
|
var result = [],
|
|
236
|
-
count = 0
|
|
237
|
-
mapIntoArray(children, result,
|
|
238
|
-
return func.call(context, child, count++)
|
|
239
|
-
})
|
|
240
|
-
return result
|
|
208
|
+
count = 0
|
|
209
|
+
mapIntoArray(children, result, '', '', function (child) {
|
|
210
|
+
return func.call(context, child, count++)
|
|
211
|
+
})
|
|
212
|
+
return result
|
|
241
213
|
}
|
|
242
214
|
function lazyInitializer(payload) {
|
|
243
215
|
if (-1 === payload._status) {
|
|
244
|
-
var ctor = payload._result
|
|
245
|
-
ctor = ctor()
|
|
216
|
+
var ctor = payload._result
|
|
217
|
+
ctor = ctor()
|
|
246
218
|
ctor.then(
|
|
247
219
|
function (moduleObject) {
|
|
248
220
|
if (0 === payload._status || -1 === payload._status)
|
|
249
|
-
(payload._status = 1), (payload._result = moduleObject)
|
|
221
|
+
((payload._status = 1), (payload._result = moduleObject))
|
|
250
222
|
},
|
|
251
223
|
function (error) {
|
|
252
224
|
if (0 === payload._status || -1 === payload._status)
|
|
253
|
-
(payload._status = 2), (payload._result = error)
|
|
225
|
+
((payload._status = 2), (payload._result = error))
|
|
254
226
|
}
|
|
255
|
-
)
|
|
256
|
-
|
|
227
|
+
)
|
|
228
|
+
;-1 === payload._status && ((payload._status = 0), (payload._result = ctor))
|
|
257
229
|
}
|
|
258
|
-
if (1 === payload._status) return payload._result.default
|
|
259
|
-
throw payload._result
|
|
230
|
+
if (1 === payload._status) return payload._result.default
|
|
231
|
+
throw payload._result
|
|
260
232
|
}
|
|
261
233
|
function createCacheRoot() {
|
|
262
|
-
return new WeakMap()
|
|
234
|
+
return new WeakMap()
|
|
263
235
|
}
|
|
264
236
|
function createCacheNode() {
|
|
265
|
-
return { s: 0, v: void 0, o: null, p: null }
|
|
237
|
+
return { s: 0, v: void 0, o: null, p: null }
|
|
266
238
|
}
|
|
267
239
|
exports.Children = {
|
|
268
240
|
map: mapChildren,
|
|
@@ -270,157 +242,151 @@ exports.Children = {
|
|
|
270
242
|
mapChildren(
|
|
271
243
|
children,
|
|
272
244
|
function () {
|
|
273
|
-
forEachFunc.apply(this, arguments)
|
|
245
|
+
forEachFunc.apply(this, arguments)
|
|
274
246
|
},
|
|
275
247
|
forEachContext
|
|
276
|
-
)
|
|
248
|
+
)
|
|
277
249
|
},
|
|
278
250
|
count: function (children) {
|
|
279
|
-
var n = 0
|
|
251
|
+
var n = 0
|
|
280
252
|
mapChildren(children, function () {
|
|
281
|
-
n
|
|
282
|
-
})
|
|
283
|
-
return n
|
|
253
|
+
n++
|
|
254
|
+
})
|
|
255
|
+
return n
|
|
284
256
|
},
|
|
285
257
|
toArray: function (children) {
|
|
286
258
|
return (
|
|
287
259
|
mapChildren(children, function (child) {
|
|
288
|
-
return child
|
|
260
|
+
return child
|
|
289
261
|
}) || []
|
|
290
|
-
)
|
|
262
|
+
)
|
|
291
263
|
},
|
|
292
264
|
only: function (children) {
|
|
293
|
-
if (!isValidElement(children)) throw Error(formatProdErrorMessage(143))
|
|
294
|
-
return children
|
|
295
|
-
}
|
|
296
|
-
}
|
|
297
|
-
exports.Fragment = REACT_FRAGMENT_TYPE
|
|
298
|
-
exports.Profiler = REACT_PROFILER_TYPE
|
|
299
|
-
exports.StrictMode = REACT_STRICT_MODE_TYPE
|
|
300
|
-
exports.Suspense = REACT_SUSPENSE_TYPE
|
|
265
|
+
if (!isValidElement(children)) throw Error(formatProdErrorMessage(143))
|
|
266
|
+
return children
|
|
267
|
+
},
|
|
268
|
+
}
|
|
269
|
+
exports.Fragment = REACT_FRAGMENT_TYPE
|
|
270
|
+
exports.Profiler = REACT_PROFILER_TYPE
|
|
271
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE
|
|
272
|
+
exports.Suspense = REACT_SUSPENSE_TYPE
|
|
301
273
|
exports.__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
|
|
302
|
-
ReactSharedInternals
|
|
274
|
+
ReactSharedInternals
|
|
303
275
|
exports.cache = function (fn) {
|
|
304
276
|
return function () {
|
|
305
|
-
var dispatcher = ReactSharedInternals.A
|
|
306
|
-
if (!dispatcher) return fn.apply(null, arguments)
|
|
307
|
-
var fnMap = dispatcher.getCacheForType(createCacheRoot)
|
|
308
|
-
dispatcher = fnMap.get(fn)
|
|
309
|
-
void 0 === dispatcher &&
|
|
310
|
-
|
|
311
|
-
fnMap = 0;
|
|
277
|
+
var dispatcher = ReactSharedInternals.A
|
|
278
|
+
if (!dispatcher) return fn.apply(null, arguments)
|
|
279
|
+
var fnMap = dispatcher.getCacheForType(createCacheRoot)
|
|
280
|
+
dispatcher = fnMap.get(fn)
|
|
281
|
+
void 0 === dispatcher && ((dispatcher = createCacheNode()), fnMap.set(fn, dispatcher))
|
|
282
|
+
fnMap = 0
|
|
312
283
|
for (var l = arguments.length; fnMap < l; fnMap++) {
|
|
313
|
-
var arg = arguments[fnMap]
|
|
314
|
-
if (
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
var objectCache = dispatcher.o;
|
|
319
|
-
null === objectCache && (dispatcher.o = objectCache = new WeakMap());
|
|
320
|
-
dispatcher = objectCache.get(arg);
|
|
284
|
+
var arg = arguments[fnMap]
|
|
285
|
+
if ('function' === typeof arg || ('object' === typeof arg && null !== arg)) {
|
|
286
|
+
var objectCache = dispatcher.o
|
|
287
|
+
null === objectCache && (dispatcher.o = objectCache = new WeakMap())
|
|
288
|
+
dispatcher = objectCache.get(arg)
|
|
321
289
|
void 0 === dispatcher &&
|
|
322
|
-
((dispatcher = createCacheNode()), objectCache.set(arg, dispatcher))
|
|
290
|
+
((dispatcher = createCacheNode()), objectCache.set(arg, dispatcher))
|
|
323
291
|
} else
|
|
324
|
-
(objectCache = dispatcher.p),
|
|
292
|
+
((objectCache = dispatcher.p),
|
|
325
293
|
null === objectCache && (dispatcher.p = objectCache = new Map()),
|
|
326
294
|
(dispatcher = objectCache.get(arg)),
|
|
327
295
|
void 0 === dispatcher &&
|
|
328
|
-
((dispatcher = createCacheNode()),
|
|
329
|
-
objectCache.set(arg, dispatcher));
|
|
296
|
+
((dispatcher = createCacheNode()), objectCache.set(arg, dispatcher)))
|
|
330
297
|
}
|
|
331
|
-
if (1 === dispatcher.s) return dispatcher.v
|
|
332
|
-
if (2 === dispatcher.s) throw dispatcher.v
|
|
298
|
+
if (1 === dispatcher.s) return dispatcher.v
|
|
299
|
+
if (2 === dispatcher.s) throw dispatcher.v
|
|
333
300
|
try {
|
|
334
|
-
var result = fn.apply(null, arguments)
|
|
335
|
-
fnMap = dispatcher
|
|
336
|
-
fnMap.s = 1
|
|
337
|
-
return (fnMap.v = result)
|
|
301
|
+
var result = fn.apply(null, arguments)
|
|
302
|
+
fnMap = dispatcher
|
|
303
|
+
fnMap.s = 1
|
|
304
|
+
return (fnMap.v = result)
|
|
338
305
|
} catch (error) {
|
|
339
|
-
throw ((result = dispatcher), (result.s = 2), (result.v = error), error)
|
|
306
|
+
throw ((result = dispatcher), (result.s = 2), (result.v = error), error)
|
|
340
307
|
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
308
|
+
}
|
|
309
|
+
}
|
|
343
310
|
exports.cloneElement = function (element, config, children) {
|
|
344
311
|
if (null === element || void 0 === element)
|
|
345
|
-
throw Error(formatProdErrorMessage(267, element))
|
|
312
|
+
throw Error(formatProdErrorMessage(267, element))
|
|
346
313
|
var props = assign({}, element.props),
|
|
347
314
|
key = element.key,
|
|
348
|
-
owner = void 0
|
|
315
|
+
owner = void 0
|
|
349
316
|
if (null != config)
|
|
350
317
|
for (propName in (void 0 !== config.ref && (owner = void 0),
|
|
351
|
-
void 0 !== config.key && (key =
|
|
318
|
+
void 0 !== config.key && (key = '' + config.key),
|
|
352
319
|
config))
|
|
353
320
|
!hasOwnProperty.call(config, propName) ||
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
(
|
|
358
|
-
(props[propName] = config[propName])
|
|
359
|
-
var propName = arguments.length - 2
|
|
360
|
-
if (1 === propName) props.children = children
|
|
321
|
+
'key' === propName ||
|
|
322
|
+
'__self' === propName ||
|
|
323
|
+
'__source' === propName ||
|
|
324
|
+
('ref' === propName && void 0 === config.ref) ||
|
|
325
|
+
(props[propName] = config[propName])
|
|
326
|
+
var propName = arguments.length - 2
|
|
327
|
+
if (1 === propName) props.children = children
|
|
361
328
|
else if (1 < propName) {
|
|
362
329
|
for (var childArray = Array(propName), i = 0; i < propName; i++)
|
|
363
|
-
childArray[i] = arguments[i + 2]
|
|
364
|
-
props.children = childArray
|
|
330
|
+
childArray[i] = arguments[i + 2]
|
|
331
|
+
props.children = childArray
|
|
365
332
|
}
|
|
366
|
-
return ReactElement(element.type, key, void 0, void 0, owner, props)
|
|
367
|
-
}
|
|
333
|
+
return ReactElement(element.type, key, void 0, void 0, owner, props)
|
|
334
|
+
}
|
|
368
335
|
exports.createElement = function (type, config, children) {
|
|
369
336
|
var propName,
|
|
370
337
|
props = {},
|
|
371
|
-
key = null
|
|
338
|
+
key = null
|
|
372
339
|
if (null != config)
|
|
373
|
-
for (propName in (void 0 !== config.key && (key =
|
|
340
|
+
for (propName in (void 0 !== config.key && (key = '' + config.key), config))
|
|
374
341
|
hasOwnProperty.call(config, propName) &&
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
(props[propName] = config[propName])
|
|
379
|
-
var childrenLength = arguments.length - 2
|
|
380
|
-
if (1 === childrenLength) props.children = children
|
|
342
|
+
'key' !== propName &&
|
|
343
|
+
'__self' !== propName &&
|
|
344
|
+
'__source' !== propName &&
|
|
345
|
+
(props[propName] = config[propName])
|
|
346
|
+
var childrenLength = arguments.length - 2
|
|
347
|
+
if (1 === childrenLength) props.children = children
|
|
381
348
|
else if (1 < childrenLength) {
|
|
382
349
|
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
|
|
383
|
-
childArray[i] = arguments[i + 2]
|
|
384
|
-
props.children = childArray
|
|
350
|
+
childArray[i] = arguments[i + 2]
|
|
351
|
+
props.children = childArray
|
|
385
352
|
}
|
|
386
353
|
if (type && type.defaultProps)
|
|
387
354
|
for (propName in ((childrenLength = type.defaultProps), childrenLength))
|
|
388
|
-
void 0 === props[propName] &&
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
};
|
|
355
|
+
void 0 === props[propName] && (props[propName] = childrenLength[propName])
|
|
356
|
+
return ReactElement(type, key, void 0, void 0, null, props)
|
|
357
|
+
}
|
|
392
358
|
exports.createRef = function () {
|
|
393
|
-
return { current: null }
|
|
394
|
-
}
|
|
359
|
+
return { current: null }
|
|
360
|
+
}
|
|
395
361
|
exports.forwardRef = function (render) {
|
|
396
|
-
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }
|
|
397
|
-
}
|
|
398
|
-
exports.isValidElement = isValidElement
|
|
362
|
+
return { $$typeof: REACT_FORWARD_REF_TYPE, render: render }
|
|
363
|
+
}
|
|
364
|
+
exports.isValidElement = isValidElement
|
|
399
365
|
exports.lazy = function (ctor) {
|
|
400
366
|
return {
|
|
401
367
|
$$typeof: REACT_LAZY_TYPE,
|
|
402
368
|
_payload: { _status: -1, _result: ctor },
|
|
403
|
-
_init: lazyInitializer
|
|
404
|
-
}
|
|
405
|
-
}
|
|
369
|
+
_init: lazyInitializer,
|
|
370
|
+
}
|
|
371
|
+
}
|
|
406
372
|
exports.memo = function (type, compare) {
|
|
407
373
|
return {
|
|
408
374
|
$$typeof: REACT_MEMO_TYPE,
|
|
409
375
|
type: type,
|
|
410
|
-
compare: void 0 === compare ? null : compare
|
|
411
|
-
}
|
|
412
|
-
}
|
|
376
|
+
compare: void 0 === compare ? null : compare,
|
|
377
|
+
}
|
|
378
|
+
}
|
|
413
379
|
exports.use = function (usable) {
|
|
414
|
-
return ReactSharedInternals.H.use(usable)
|
|
415
|
-
}
|
|
380
|
+
return ReactSharedInternals.H.use(usable)
|
|
381
|
+
}
|
|
416
382
|
exports.useCallback = function (callback, deps) {
|
|
417
|
-
return ReactSharedInternals.H.useCallback(callback, deps)
|
|
418
|
-
}
|
|
419
|
-
exports.useDebugValue = function () {}
|
|
383
|
+
return ReactSharedInternals.H.useCallback(callback, deps)
|
|
384
|
+
}
|
|
385
|
+
exports.useDebugValue = function () {}
|
|
420
386
|
exports.useId = function () {
|
|
421
|
-
return ReactSharedInternals.H.useId()
|
|
422
|
-
}
|
|
387
|
+
return ReactSharedInternals.H.useId()
|
|
388
|
+
}
|
|
423
389
|
exports.useMemo = function (create, deps) {
|
|
424
|
-
return ReactSharedInternals.H.useMemo(create, deps)
|
|
425
|
-
}
|
|
426
|
-
exports.version =
|
|
390
|
+
return ReactSharedInternals.H.useMemo(create, deps)
|
|
391
|
+
}
|
|
392
|
+
exports.version = '19.0.0'
|
|
@@ -5,25 +5,25 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
'use strict'
|
|
8
|
+
'use strict'
|
|
9
9
|
|
|
10
10
|
// @nate: i just inlined things here since it wasnt bundling the require()
|
|
11
11
|
|
|
12
12
|
if (process.env.NODE_ENV === 'production') {
|
|
13
13
|
var ReactSharedInternals =
|
|
14
|
-
|
|
14
|
+
require('react').__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
|
|
15
15
|
exports.c = function (size) {
|
|
16
|
-
return ReactSharedInternals.H.useMemoCache(size)
|
|
16
|
+
return ReactSharedInternals.H.useMemoCache(size)
|
|
17
17
|
}
|
|
18
18
|
} else {
|
|
19
19
|
var ReactSharedInternals =
|
|
20
|
-
require(
|
|
20
|
+
require('react').__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE
|
|
21
21
|
exports.c = function (size) {
|
|
22
|
-
var dispatcher = ReactSharedInternals.H
|
|
22
|
+
var dispatcher = ReactSharedInternals.H
|
|
23
23
|
null === dispatcher &&
|
|
24
24
|
console.error(
|
|
25
|
-
|
|
26
|
-
)
|
|
27
|
-
return dispatcher.useMemoCache(size)
|
|
28
|
-
}
|
|
25
|
+
'Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.'
|
|
26
|
+
)
|
|
27
|
+
return dispatcher.useMemoCache(size)
|
|
28
|
+
}
|
|
29
29
|
}
|
package/react/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
'use strict'
|
|
1
|
+
'use strict'
|
|
2
2
|
|
|
3
3
|
if (process.env.NODE_ENV === 'production') {
|
|
4
|
-
module.exports = require('./cjs/react.production.js')
|
|
4
|
+
module.exports = require('./cjs/react.production.js')
|
|
5
5
|
} else {
|
|
6
|
-
module.exports = require('./cjs/react.development.js')
|
|
6
|
+
module.exports = require('./cjs/react.development.js')
|
|
7
7
|
}
|