@vxrn/vendor 1.1.145

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 (71) hide show
  1. package/package.json +13 -0
  2. package/react/LICENSE +21 -0
  3. package/react/README.md +37 -0
  4. package/react/cjs/react-compiler-runtime.development.js +41 -0
  5. package/react/cjs/react-compiler-runtime.production.js +16 -0
  6. package/react/cjs/react-compiler-runtime.profiling.js +16 -0
  7. package/react/cjs/react-jsx-dev-runtime.development.js +677 -0
  8. package/react/cjs/react-jsx-dev-runtime.production.js +14 -0
  9. package/react/cjs/react-jsx-dev-runtime.profiling.js +14 -0
  10. package/react/cjs/react-jsx-dev-runtime.react-server.development.js +687 -0
  11. package/react/cjs/react-jsx-dev-runtime.react-server.production.js +40 -0
  12. package/react/cjs/react-jsx-runtime.development.js +673 -0
  13. package/react/cjs/react-jsx-runtime.production.js +34 -0
  14. package/react/cjs/react-jsx-runtime.profiling.js +34 -0
  15. package/react/cjs/react-jsx-runtime.react-server.development.js +687 -0
  16. package/react/cjs/react-jsx-runtime.react-server.production.js +40 -0
  17. package/react/cjs/react.development.js +1547 -0
  18. package/react/cjs/react.production.js +539 -0
  19. package/react/cjs/react.react-server.development.js +1141 -0
  20. package/react/cjs/react.react-server.production.js +427 -0
  21. package/react/compiler-runtime.js +14 -0
  22. package/react/index.js +7 -0
  23. package/react/jsx-dev-runtime.js +7 -0
  24. package/react/jsx-dev-runtime.react-server.js +7 -0
  25. package/react/jsx-runtime.js +7 -0
  26. package/react/jsx-runtime.react-server.js +7 -0
  27. package/react/package.json +51 -0
  28. package/react/react.react-server.js +7 -0
  29. package/react-dom/LICENSE +21 -0
  30. package/react-dom/README.md +60 -0
  31. package/react-dom/cjs/react-dom-client.development.js +24359 -0
  32. package/react-dom/cjs/react-dom-client.production.js +14810 -0
  33. package/react-dom/cjs/react-dom-profiling.development.js +24746 -0
  34. package/react-dom/cjs/react-dom-profiling.profiling.js +15685 -0
  35. package/react-dom/cjs/react-dom-server-legacy.browser.development.js +8370 -0
  36. package/react-dom/cjs/react-dom-server-legacy.browser.production.js +5496 -0
  37. package/react-dom/cjs/react-dom-server-legacy.node.development.js +8370 -0
  38. package/react-dom/cjs/react-dom-server-legacy.node.production.js +5578 -0
  39. package/react-dom/cjs/react-dom-server.browser.development.js +8636 -0
  40. package/react-dom/cjs/react-dom-server.browser.production.js +5861 -0
  41. package/react-dom/cjs/react-dom-server.bun.development.js +8083 -0
  42. package/react-dom/cjs/react-dom-server.bun.production.js +5562 -0
  43. package/react-dom/cjs/react-dom-server.edge.development.js +8651 -0
  44. package/react-dom/cjs/react-dom-server.edge.production.js +5953 -0
  45. package/react-dom/cjs/react-dom-server.node.development.js +8479 -0
  46. package/react-dom/cjs/react-dom-server.node.production.js +5808 -0
  47. package/react-dom/cjs/react-dom-test-utils.development.js +43 -0
  48. package/react-dom/cjs/react-dom-test-utils.production.js +21 -0
  49. package/react-dom/cjs/react-dom.development.js +440 -0
  50. package/react-dom/cjs/react-dom.production.js +209 -0
  51. package/react-dom/cjs/react-dom.react-server.development.js +358 -0
  52. package/react-dom/cjs/react-dom.react-server.production.js +154 -0
  53. package/react-dom/client.js +38 -0
  54. package/react-dom/client.react-server.js +5 -0
  55. package/react-dom/index.js +38 -0
  56. package/react-dom/package.json +117 -0
  57. package/react-dom/profiling.js +38 -0
  58. package/react-dom/profiling.react-server.js +5 -0
  59. package/react-dom/react-dom.react-server.js +7 -0
  60. package/react-dom/server.browser.js +18 -0
  61. package/react-dom/server.bun.js +19 -0
  62. package/react-dom/server.edge.js +19 -0
  63. package/react-dom/server.js +3 -0
  64. package/react-dom/server.node.js +18 -0
  65. package/react-dom/server.react-server.js +5 -0
  66. package/react-dom/static.browser.js +11 -0
  67. package/react-dom/static.edge.js +11 -0
  68. package/react-dom/static.js +3 -0
  69. package/react-dom/static.node.js +11 -0
  70. package/react-dom/static.react-server.js +5 -0
  71. package/react-dom/test-utils.js +7 -0
@@ -0,0 +1,209 @@
1
+ /**
2
+ * @license React
3
+ * react-dom.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ function formatProdErrorMessage(code) {
13
+ var url = "https://react.dev/errors/" + code;
14
+ if (1 < arguments.length) {
15
+ url += "?args[]=" + encodeURIComponent(arguments[1]);
16
+ for (var i = 2; i < arguments.length; i++)
17
+ url += "&args[]=" + encodeURIComponent(arguments[i]);
18
+ }
19
+ return (
20
+ "Minified React error #" +
21
+ code +
22
+ "; visit " +
23
+ url +
24
+ " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."
25
+ );
26
+ }
27
+ var ReactSharedInternals =
28
+ require("react").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
29
+ function noop() {}
30
+ var Internals = {
31
+ d: {
32
+ f: noop,
33
+ r: function () {
34
+ throw Error(formatProdErrorMessage(522));
35
+ },
36
+ D: noop,
37
+ C: noop,
38
+ L: noop,
39
+ m: noop,
40
+ X: noop,
41
+ S: noop,
42
+ M: noop
43
+ },
44
+ p: 0,
45
+ findDOMNode: null
46
+ },
47
+ REACT_PORTAL_TYPE = Symbol.for("react.portal");
48
+ function createPortal$1(children, containerInfo, implementation) {
49
+ var key =
50
+ 3 < arguments.length && void 0 !== arguments[3] ? arguments[3] : null;
51
+ return {
52
+ $$typeof: REACT_PORTAL_TYPE,
53
+ key: null == key ? null : "" + key,
54
+ children: children,
55
+ containerInfo: containerInfo,
56
+ implementation: implementation
57
+ };
58
+ }
59
+ function getCrossOriginStringAs(as, input) {
60
+ if ("font" === as) return "";
61
+ if ("string" === typeof input)
62
+ return "use-credentials" === input ? input : "";
63
+ }
64
+ exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
65
+ Internals;
66
+ exports.createPortal = function (children, container) {
67
+ var key =
68
+ 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : null;
69
+ if (
70
+ !container ||
71
+ (1 !== container.nodeType &&
72
+ 9 !== container.nodeType &&
73
+ 11 !== container.nodeType)
74
+ )
75
+ throw Error(formatProdErrorMessage(299));
76
+ return createPortal$1(children, container, null, key);
77
+ };
78
+ exports.flushSync = function (fn) {
79
+ var previousTransition = ReactSharedInternals.T,
80
+ previousUpdatePriority = Internals.p;
81
+ try {
82
+ if (((ReactSharedInternals.T = null), (Internals.p = 2), fn)) return fn();
83
+ } finally {
84
+ (ReactSharedInternals.T = previousTransition),
85
+ (Internals.p = previousUpdatePriority),
86
+ Internals.d.f();
87
+ }
88
+ };
89
+ exports.preconnect = function (href, options) {
90
+ "string" === typeof href &&
91
+ (options
92
+ ? ((options = options.crossOrigin),
93
+ (options =
94
+ "string" === typeof options
95
+ ? "use-credentials" === options
96
+ ? options
97
+ : ""
98
+ : void 0))
99
+ : (options = null),
100
+ Internals.d.C(href, options));
101
+ };
102
+ exports.prefetchDNS = function (href) {
103
+ "string" === typeof href && Internals.d.D(href);
104
+ };
105
+ exports.preinit = function (href, options) {
106
+ if ("string" === typeof href && options && "string" === typeof options.as) {
107
+ var as = options.as,
108
+ crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
109
+ integrity =
110
+ "string" === typeof options.integrity ? options.integrity : void 0,
111
+ fetchPriority =
112
+ "string" === typeof options.fetchPriority
113
+ ? options.fetchPriority
114
+ : void 0;
115
+ "style" === as
116
+ ? Internals.d.S(
117
+ href,
118
+ "string" === typeof options.precedence ? options.precedence : void 0,
119
+ {
120
+ crossOrigin: crossOrigin,
121
+ integrity: integrity,
122
+ fetchPriority: fetchPriority
123
+ }
124
+ )
125
+ : "script" === as &&
126
+ Internals.d.X(href, {
127
+ crossOrigin: crossOrigin,
128
+ integrity: integrity,
129
+ fetchPriority: fetchPriority,
130
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0
131
+ });
132
+ }
133
+ };
134
+ exports.preinitModule = function (href, options) {
135
+ if ("string" === typeof href)
136
+ if ("object" === typeof options && null !== options) {
137
+ if (null == options.as || "script" === options.as) {
138
+ var crossOrigin = getCrossOriginStringAs(
139
+ options.as,
140
+ options.crossOrigin
141
+ );
142
+ Internals.d.M(href, {
143
+ crossOrigin: crossOrigin,
144
+ integrity:
145
+ "string" === typeof options.integrity ? options.integrity : void 0,
146
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0
147
+ });
148
+ }
149
+ } else null == options && Internals.d.M(href);
150
+ };
151
+ exports.preload = function (href, options) {
152
+ if (
153
+ "string" === typeof href &&
154
+ "object" === typeof options &&
155
+ null !== options &&
156
+ "string" === typeof options.as
157
+ ) {
158
+ var as = options.as,
159
+ crossOrigin = getCrossOriginStringAs(as, options.crossOrigin);
160
+ Internals.d.L(href, as, {
161
+ crossOrigin: crossOrigin,
162
+ integrity:
163
+ "string" === typeof options.integrity ? options.integrity : void 0,
164
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0,
165
+ type: "string" === typeof options.type ? options.type : void 0,
166
+ fetchPriority:
167
+ "string" === typeof options.fetchPriority
168
+ ? options.fetchPriority
169
+ : void 0,
170
+ referrerPolicy:
171
+ "string" === typeof options.referrerPolicy
172
+ ? options.referrerPolicy
173
+ : void 0,
174
+ imageSrcSet:
175
+ "string" === typeof options.imageSrcSet ? options.imageSrcSet : void 0,
176
+ imageSizes:
177
+ "string" === typeof options.imageSizes ? options.imageSizes : void 0,
178
+ media: "string" === typeof options.media ? options.media : void 0
179
+ });
180
+ }
181
+ };
182
+ exports.preloadModule = function (href, options) {
183
+ if ("string" === typeof href)
184
+ if (options) {
185
+ var crossOrigin = getCrossOriginStringAs(options.as, options.crossOrigin);
186
+ Internals.d.m(href, {
187
+ as:
188
+ "string" === typeof options.as && "script" !== options.as
189
+ ? options.as
190
+ : void 0,
191
+ crossOrigin: crossOrigin,
192
+ integrity:
193
+ "string" === typeof options.integrity ? options.integrity : void 0
194
+ });
195
+ } else Internals.d.m(href);
196
+ };
197
+ exports.requestFormReset = function (form) {
198
+ Internals.d.r(form);
199
+ };
200
+ exports.unstable_batchedUpdates = function (fn, a) {
201
+ return fn(a);
202
+ };
203
+ exports.useFormState = function (action, initialState, permalink) {
204
+ return ReactSharedInternals.H.useFormState(action, initialState, permalink);
205
+ };
206
+ exports.useFormStatus = function () {
207
+ return ReactSharedInternals.H.useHostTransitionStatus();
208
+ };
209
+ exports.version = "19.0.0-rc-fb9a90fa48-20240614";
@@ -0,0 +1,358 @@
1
+ /**
2
+ * @license React
3
+ * react-dom.react-server.development.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */
10
+
11
+ "use strict";
12
+ "production" !== process.env.NODE_ENV &&
13
+ (function () {
14
+ function error(format) {
15
+ for (
16
+ var _len2 = arguments.length,
17
+ args = Array(1 < _len2 ? _len2 - 1 : 0),
18
+ _key2 = 1;
19
+ _key2 < _len2;
20
+ _key2++
21
+ )
22
+ args[_key2 - 1] = arguments[_key2];
23
+ _len2 = format;
24
+ _key2 = Error("react-stack-top-frame");
25
+ ReactSharedInternalsServer.getCurrentStack &&
26
+ ((_key2 = ReactSharedInternalsServer.getCurrentStack(_key2)),
27
+ "" !== _key2 && ((_len2 += "%s"), (args = args.concat([_key2]))));
28
+ args.unshift(_len2);
29
+ Function.prototype.apply.call(console.error, console, args);
30
+ }
31
+ function noop() {}
32
+ function getCrossOriginStringAs(as, input) {
33
+ if ("font" === as) return "";
34
+ if ("string" === typeof input)
35
+ return "use-credentials" === input ? input : "";
36
+ }
37
+ function getValueDescriptorExpectingObjectForWarning(thing) {
38
+ return null === thing
39
+ ? "`null`"
40
+ : void 0 === thing
41
+ ? "`undefined`"
42
+ : "" === thing
43
+ ? "an empty string"
44
+ : 'something with type "' + typeof thing + '"';
45
+ }
46
+ function getValueDescriptorExpectingEnumForWarning(thing) {
47
+ return null === thing
48
+ ? "`null`"
49
+ : void 0 === thing
50
+ ? "`undefined`"
51
+ : "" === thing
52
+ ? "an empty string"
53
+ : "string" === typeof thing
54
+ ? JSON.stringify(thing)
55
+ : "number" === typeof thing
56
+ ? "`" + thing + "`"
57
+ : 'something with type "' + typeof thing + '"';
58
+ }
59
+ var ReactSharedInternalsServer =
60
+ require("react").__SERVER_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
61
+ if (!ReactSharedInternalsServer)
62
+ throw Error(
63
+ 'The "react" package in this environment is not configured correctly. The "react-server" condition must be enabled in any environment that runs React Server Components.'
64
+ );
65
+ var Internals = {
66
+ d: {
67
+ f: noop,
68
+ r: function () {
69
+ throw Error(
70
+ "Invalid form element. requestFormReset must be passed a form that was rendered by React."
71
+ );
72
+ },
73
+ D: noop,
74
+ C: noop,
75
+ L: noop,
76
+ m: noop,
77
+ X: noop,
78
+ S: noop,
79
+ M: noop
80
+ },
81
+ p: 0,
82
+ findDOMNode: null
83
+ };
84
+ ("function" === typeof Map &&
85
+ null != Map.prototype &&
86
+ "function" === typeof Map.prototype.forEach &&
87
+ "function" === typeof Set &&
88
+ null != Set.prototype &&
89
+ "function" === typeof Set.prototype.clear &&
90
+ "function" === typeof Set.prototype.forEach) ||
91
+ error(
92
+ "React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"
93
+ );
94
+ exports.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE =
95
+ Internals;
96
+ exports.preconnect = function (href, options) {
97
+ "string" === typeof href && href
98
+ ? null != options && "object" !== typeof options
99
+ ? error(
100
+ "ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",
101
+ getValueDescriptorExpectingEnumForWarning(options)
102
+ )
103
+ : null != options &&
104
+ "string" !== typeof options.crossOrigin &&
105
+ error(
106
+ "ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",
107
+ getValueDescriptorExpectingObjectForWarning(options.crossOrigin)
108
+ )
109
+ : error(
110
+ "ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
111
+ getValueDescriptorExpectingObjectForWarning(href)
112
+ );
113
+ "string" === typeof href &&
114
+ (options
115
+ ? ((options = options.crossOrigin),
116
+ (options =
117
+ "string" === typeof options
118
+ ? "use-credentials" === options
119
+ ? options
120
+ : ""
121
+ : void 0))
122
+ : (options = null),
123
+ Internals.d.C(href, options));
124
+ };
125
+ exports.prefetchDNS = function (href) {
126
+ if ("string" !== typeof href || !href)
127
+ error(
128
+ "ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
129
+ getValueDescriptorExpectingObjectForWarning(href)
130
+ );
131
+ else if (1 < arguments.length) {
132
+ var options = arguments[1];
133
+ "object" === typeof options && options.hasOwnProperty("crossOrigin")
134
+ ? error(
135
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
136
+ getValueDescriptorExpectingEnumForWarning(options)
137
+ )
138
+ : error(
139
+ "ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",
140
+ getValueDescriptorExpectingEnumForWarning(options)
141
+ );
142
+ }
143
+ "string" === typeof href && Internals.d.D(href);
144
+ };
145
+ exports.preinit = function (href, options) {
146
+ "string" === typeof href && href
147
+ ? null == options || "object" !== typeof options
148
+ ? error(
149
+ "ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",
150
+ getValueDescriptorExpectingEnumForWarning(options)
151
+ )
152
+ : "style" !== options.as &&
153
+ "script" !== options.as &&
154
+ error(
155
+ 'ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',
156
+ getValueDescriptorExpectingEnumForWarning(options.as)
157
+ )
158
+ : error(
159
+ "ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",
160
+ getValueDescriptorExpectingObjectForWarning(href)
161
+ );
162
+ if (
163
+ "string" === typeof href &&
164
+ options &&
165
+ "string" === typeof options.as
166
+ ) {
167
+ var as = options.as,
168
+ crossOrigin = getCrossOriginStringAs(as, options.crossOrigin),
169
+ integrity =
170
+ "string" === typeof options.integrity ? options.integrity : void 0,
171
+ fetchPriority =
172
+ "string" === typeof options.fetchPriority
173
+ ? options.fetchPriority
174
+ : void 0;
175
+ "style" === as
176
+ ? Internals.d.S(
177
+ href,
178
+ "string" === typeof options.precedence
179
+ ? options.precedence
180
+ : void 0,
181
+ {
182
+ crossOrigin: crossOrigin,
183
+ integrity: integrity,
184
+ fetchPriority: fetchPriority
185
+ }
186
+ )
187
+ : "script" === as &&
188
+ Internals.d.X(href, {
189
+ crossOrigin: crossOrigin,
190
+ integrity: integrity,
191
+ fetchPriority: fetchPriority,
192
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0
193
+ });
194
+ }
195
+ };
196
+ exports.preinitModule = function (href, options) {
197
+ var encountered = "";
198
+ ("string" === typeof href && href) ||
199
+ (encountered +=
200
+ " The `href` argument encountered was " +
201
+ getValueDescriptorExpectingObjectForWarning(href) +
202
+ ".");
203
+ void 0 !== options && "object" !== typeof options
204
+ ? (encountered +=
205
+ " The `options` argument encountered was " +
206
+ getValueDescriptorExpectingObjectForWarning(options) +
207
+ ".")
208
+ : options &&
209
+ "as" in options &&
210
+ "script" !== options.as &&
211
+ (encountered +=
212
+ " The `as` option encountered was " +
213
+ getValueDescriptorExpectingEnumForWarning(options.as) +
214
+ ".");
215
+ if (encountered)
216
+ error(
217
+ "ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",
218
+ encountered
219
+ );
220
+ else
221
+ switch (
222
+ ((encountered =
223
+ options && "string" === typeof options.as ? options.as : "script"),
224
+ encountered)
225
+ ) {
226
+ case "script":
227
+ break;
228
+ default:
229
+ (encountered =
230
+ getValueDescriptorExpectingEnumForWarning(encountered)),
231
+ error(
232
+ 'ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',
233
+ encountered,
234
+ href
235
+ );
236
+ }
237
+ if ("string" === typeof href)
238
+ if ("object" === typeof options && null !== options) {
239
+ if (null == options.as || "script" === options.as)
240
+ (encountered = getCrossOriginStringAs(
241
+ options.as,
242
+ options.crossOrigin
243
+ )),
244
+ Internals.d.M(href, {
245
+ crossOrigin: encountered,
246
+ integrity:
247
+ "string" === typeof options.integrity
248
+ ? options.integrity
249
+ : void 0,
250
+ nonce:
251
+ "string" === typeof options.nonce ? options.nonce : void 0
252
+ });
253
+ } else null == options && Internals.d.M(href);
254
+ };
255
+ exports.preload = function (href, options) {
256
+ var encountered = "";
257
+ ("string" === typeof href && href) ||
258
+ (encountered +=
259
+ " The `href` argument encountered was " +
260
+ getValueDescriptorExpectingObjectForWarning(href) +
261
+ ".");
262
+ null == options || "object" !== typeof options
263
+ ? (encountered +=
264
+ " The `options` argument encountered was " +
265
+ getValueDescriptorExpectingObjectForWarning(options) +
266
+ ".")
267
+ : ("string" === typeof options.as && options.as) ||
268
+ (encountered +=
269
+ " The `as` option encountered was " +
270
+ getValueDescriptorExpectingObjectForWarning(options.as) +
271
+ ".");
272
+ encountered &&
273
+ error(
274
+ 'ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',
275
+ encountered
276
+ );
277
+ if (
278
+ "string" === typeof href &&
279
+ "object" === typeof options &&
280
+ null !== options &&
281
+ "string" === typeof options.as
282
+ ) {
283
+ encountered = options.as;
284
+ var crossOrigin = getCrossOriginStringAs(
285
+ encountered,
286
+ options.crossOrigin
287
+ );
288
+ Internals.d.L(href, encountered, {
289
+ crossOrigin: crossOrigin,
290
+ integrity:
291
+ "string" === typeof options.integrity ? options.integrity : void 0,
292
+ nonce: "string" === typeof options.nonce ? options.nonce : void 0,
293
+ type: "string" === typeof options.type ? options.type : void 0,
294
+ fetchPriority:
295
+ "string" === typeof options.fetchPriority
296
+ ? options.fetchPriority
297
+ : void 0,
298
+ referrerPolicy:
299
+ "string" === typeof options.referrerPolicy
300
+ ? options.referrerPolicy
301
+ : void 0,
302
+ imageSrcSet:
303
+ "string" === typeof options.imageSrcSet
304
+ ? options.imageSrcSet
305
+ : void 0,
306
+ imageSizes:
307
+ "string" === typeof options.imageSizes
308
+ ? options.imageSizes
309
+ : void 0,
310
+ media: "string" === typeof options.media ? options.media : void 0
311
+ });
312
+ }
313
+ };
314
+ exports.preloadModule = function (href, options) {
315
+ var encountered = "";
316
+ ("string" === typeof href && href) ||
317
+ (encountered +=
318
+ " The `href` argument encountered was " +
319
+ getValueDescriptorExpectingObjectForWarning(href) +
320
+ ".");
321
+ void 0 !== options && "object" !== typeof options
322
+ ? (encountered +=
323
+ " The `options` argument encountered was " +
324
+ getValueDescriptorExpectingObjectForWarning(options) +
325
+ ".")
326
+ : options &&
327
+ "as" in options &&
328
+ "string" !== typeof options.as &&
329
+ (encountered +=
330
+ " The `as` option encountered was " +
331
+ getValueDescriptorExpectingObjectForWarning(options.as) +
332
+ ".");
333
+ encountered &&
334
+ error(
335
+ 'ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',
336
+ encountered
337
+ );
338
+ "string" === typeof href &&
339
+ (options
340
+ ? ((encountered = getCrossOriginStringAs(
341
+ options.as,
342
+ options.crossOrigin
343
+ )),
344
+ Internals.d.m(href, {
345
+ as:
346
+ "string" === typeof options.as && "script" !== options.as
347
+ ? options.as
348
+ : void 0,
349
+ crossOrigin: encountered,
350
+ integrity:
351
+ "string" === typeof options.integrity
352
+ ? options.integrity
353
+ : void 0
354
+ }))
355
+ : Internals.d.m(href));
356
+ };
357
+ exports.version = "19.0.0-rc-fb9a90fa48-20240614";
358
+ })();