next-tinacms-azure 0.0.0-ed3db71-20250205054832
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/LICENSE +176 -0
- package/README.md +165 -0
- package/dist/auth.d.ts +3 -0
- package/dist/auth.js +3567 -0
- package/dist/azure-media-store.d.ts +15 -0
- package/dist/azure-tina-cloud-media-store.d.ts +28 -0
- package/dist/delivery-handlers.d.ts +11 -0
- package/dist/delivery-handlers.js +1854 -0
- package/dist/errors.d.ts +21 -0
- package/dist/handlers.d.ts +13 -0
- package/dist/handlers.js +1833 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +149 -0
- package/dist/index.mjs +146 -0
- package/dist/types.d.ts +6 -0
- package/package.json +59 -0
package/dist/auth.js
ADDED
|
@@ -0,0 +1,3567 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
8
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
9
|
+
};
|
|
10
|
+
var __export = (target, all) => {
|
|
11
|
+
for (var name in all)
|
|
12
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from))
|
|
17
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
18
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
30
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
31
|
+
|
|
32
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js
|
|
33
|
+
var require_cookies = __commonJS({
|
|
34
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/compiled/@edge-runtime/cookies/index.js"(exports2, module2) {
|
|
35
|
+
"use strict";
|
|
36
|
+
var __defProp2 = Object.defineProperty;
|
|
37
|
+
var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
|
|
38
|
+
var __getOwnPropNames2 = Object.getOwnPropertyNames;
|
|
39
|
+
var __hasOwnProp2 = Object.prototype.hasOwnProperty;
|
|
40
|
+
var __export2 = (target, all) => {
|
|
41
|
+
for (var name in all)
|
|
42
|
+
__defProp2(target, name, { get: all[name], enumerable: true });
|
|
43
|
+
};
|
|
44
|
+
var __copyProps2 = (to, from, except, desc) => {
|
|
45
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
46
|
+
for (let key of __getOwnPropNames2(from))
|
|
47
|
+
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
48
|
+
__defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
|
|
49
|
+
}
|
|
50
|
+
return to;
|
|
51
|
+
};
|
|
52
|
+
var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
|
|
53
|
+
var src_exports = {};
|
|
54
|
+
__export2(src_exports, {
|
|
55
|
+
RequestCookies: () => RequestCookies,
|
|
56
|
+
ResponseCookies: () => ResponseCookies,
|
|
57
|
+
parseCookie: () => parseCookie,
|
|
58
|
+
parseSetCookie: () => parseSetCookie,
|
|
59
|
+
stringifyCookie: () => stringifyCookie
|
|
60
|
+
});
|
|
61
|
+
module2.exports = __toCommonJS2(src_exports);
|
|
62
|
+
function stringifyCookie(c) {
|
|
63
|
+
var _a;
|
|
64
|
+
const attrs = [
|
|
65
|
+
"path" in c && c.path && `Path=${c.path}`,
|
|
66
|
+
"expires" in c && (c.expires || c.expires === 0) && `Expires=${(typeof c.expires === "number" ? new Date(c.expires) : c.expires).toUTCString()}`,
|
|
67
|
+
"maxAge" in c && typeof c.maxAge === "number" && `Max-Age=${c.maxAge}`,
|
|
68
|
+
"domain" in c && c.domain && `Domain=${c.domain}`,
|
|
69
|
+
"secure" in c && c.secure && "Secure",
|
|
70
|
+
"httpOnly" in c && c.httpOnly && "HttpOnly",
|
|
71
|
+
"sameSite" in c && c.sameSite && `SameSite=${c.sameSite}`,
|
|
72
|
+
"partitioned" in c && c.partitioned && "Partitioned",
|
|
73
|
+
"priority" in c && c.priority && `Priority=${c.priority}`
|
|
74
|
+
].filter(Boolean);
|
|
75
|
+
const stringified = `${c.name}=${encodeURIComponent((_a = c.value) != null ? _a : "")}`;
|
|
76
|
+
return attrs.length === 0 ? stringified : `${stringified}; ${attrs.join("; ")}`;
|
|
77
|
+
}
|
|
78
|
+
function parseCookie(cookie) {
|
|
79
|
+
const map = /* @__PURE__ */ new Map();
|
|
80
|
+
for (const pair of cookie.split(/; */)) {
|
|
81
|
+
if (!pair)
|
|
82
|
+
continue;
|
|
83
|
+
const splitAt = pair.indexOf("=");
|
|
84
|
+
if (splitAt === -1) {
|
|
85
|
+
map.set(pair, "true");
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
const [key, value] = [pair.slice(0, splitAt), pair.slice(splitAt + 1)];
|
|
89
|
+
try {
|
|
90
|
+
map.set(key, decodeURIComponent(value != null ? value : "true"));
|
|
91
|
+
} catch {
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return map;
|
|
95
|
+
}
|
|
96
|
+
function parseSetCookie(setCookie) {
|
|
97
|
+
if (!setCookie) {
|
|
98
|
+
return void 0;
|
|
99
|
+
}
|
|
100
|
+
const [[name, value], ...attributes] = parseCookie(setCookie);
|
|
101
|
+
const {
|
|
102
|
+
domain,
|
|
103
|
+
expires,
|
|
104
|
+
httponly,
|
|
105
|
+
maxage,
|
|
106
|
+
path,
|
|
107
|
+
samesite,
|
|
108
|
+
secure,
|
|
109
|
+
partitioned,
|
|
110
|
+
priority
|
|
111
|
+
} = Object.fromEntries(
|
|
112
|
+
attributes.map(([key, value2]) => [key.toLowerCase(), value2])
|
|
113
|
+
);
|
|
114
|
+
const cookie = {
|
|
115
|
+
name,
|
|
116
|
+
value: decodeURIComponent(value),
|
|
117
|
+
domain,
|
|
118
|
+
...expires && { expires: new Date(expires) },
|
|
119
|
+
...httponly && { httpOnly: true },
|
|
120
|
+
...typeof maxage === "string" && { maxAge: Number(maxage) },
|
|
121
|
+
path,
|
|
122
|
+
...samesite && { sameSite: parseSameSite(samesite) },
|
|
123
|
+
...secure && { secure: true },
|
|
124
|
+
...priority && { priority: parsePriority(priority) },
|
|
125
|
+
...partitioned && { partitioned: true }
|
|
126
|
+
};
|
|
127
|
+
return compact(cookie);
|
|
128
|
+
}
|
|
129
|
+
function compact(t) {
|
|
130
|
+
const newT = {};
|
|
131
|
+
for (const key in t) {
|
|
132
|
+
if (t[key]) {
|
|
133
|
+
newT[key] = t[key];
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
return newT;
|
|
137
|
+
}
|
|
138
|
+
var SAME_SITE = ["strict", "lax", "none"];
|
|
139
|
+
function parseSameSite(string) {
|
|
140
|
+
string = string.toLowerCase();
|
|
141
|
+
return SAME_SITE.includes(string) ? string : void 0;
|
|
142
|
+
}
|
|
143
|
+
var PRIORITY = ["low", "medium", "high"];
|
|
144
|
+
function parsePriority(string) {
|
|
145
|
+
string = string.toLowerCase();
|
|
146
|
+
return PRIORITY.includes(string) ? string : void 0;
|
|
147
|
+
}
|
|
148
|
+
function splitCookiesString(cookiesString) {
|
|
149
|
+
if (!cookiesString)
|
|
150
|
+
return [];
|
|
151
|
+
var cookiesStrings = [];
|
|
152
|
+
var pos = 0;
|
|
153
|
+
var start;
|
|
154
|
+
var ch;
|
|
155
|
+
var lastComma;
|
|
156
|
+
var nextStart;
|
|
157
|
+
var cookiesSeparatorFound;
|
|
158
|
+
function skipWhitespace() {
|
|
159
|
+
while (pos < cookiesString.length && /\s/.test(cookiesString.charAt(pos))) {
|
|
160
|
+
pos += 1;
|
|
161
|
+
}
|
|
162
|
+
return pos < cookiesString.length;
|
|
163
|
+
}
|
|
164
|
+
function notSpecialChar() {
|
|
165
|
+
ch = cookiesString.charAt(pos);
|
|
166
|
+
return ch !== "=" && ch !== ";" && ch !== ",";
|
|
167
|
+
}
|
|
168
|
+
while (pos < cookiesString.length) {
|
|
169
|
+
start = pos;
|
|
170
|
+
cookiesSeparatorFound = false;
|
|
171
|
+
while (skipWhitespace()) {
|
|
172
|
+
ch = cookiesString.charAt(pos);
|
|
173
|
+
if (ch === ",") {
|
|
174
|
+
lastComma = pos;
|
|
175
|
+
pos += 1;
|
|
176
|
+
skipWhitespace();
|
|
177
|
+
nextStart = pos;
|
|
178
|
+
while (pos < cookiesString.length && notSpecialChar()) {
|
|
179
|
+
pos += 1;
|
|
180
|
+
}
|
|
181
|
+
if (pos < cookiesString.length && cookiesString.charAt(pos) === "=") {
|
|
182
|
+
cookiesSeparatorFound = true;
|
|
183
|
+
pos = nextStart;
|
|
184
|
+
cookiesStrings.push(cookiesString.substring(start, lastComma));
|
|
185
|
+
start = pos;
|
|
186
|
+
} else {
|
|
187
|
+
pos = lastComma + 1;
|
|
188
|
+
}
|
|
189
|
+
} else {
|
|
190
|
+
pos += 1;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
if (!cookiesSeparatorFound || pos >= cookiesString.length) {
|
|
194
|
+
cookiesStrings.push(cookiesString.substring(start, cookiesString.length));
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return cookiesStrings;
|
|
198
|
+
}
|
|
199
|
+
var RequestCookies = class {
|
|
200
|
+
constructor(requestHeaders) {
|
|
201
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
202
|
+
this._headers = requestHeaders;
|
|
203
|
+
const header = requestHeaders.get("cookie");
|
|
204
|
+
if (header) {
|
|
205
|
+
const parsed = parseCookie(header);
|
|
206
|
+
for (const [name, value] of parsed) {
|
|
207
|
+
this._parsed.set(name, { name, value });
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
[Symbol.iterator]() {
|
|
212
|
+
return this._parsed[Symbol.iterator]();
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* The amount of cookies received from the client
|
|
216
|
+
*/
|
|
217
|
+
get size() {
|
|
218
|
+
return this._parsed.size;
|
|
219
|
+
}
|
|
220
|
+
get(...args) {
|
|
221
|
+
const name = typeof args[0] === "string" ? args[0] : args[0].name;
|
|
222
|
+
return this._parsed.get(name);
|
|
223
|
+
}
|
|
224
|
+
getAll(...args) {
|
|
225
|
+
var _a;
|
|
226
|
+
const all = Array.from(this._parsed);
|
|
227
|
+
if (!args.length) {
|
|
228
|
+
return all.map(([_, value]) => value);
|
|
229
|
+
}
|
|
230
|
+
const name = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
|
|
231
|
+
return all.filter(([n]) => n === name).map(([_, value]) => value);
|
|
232
|
+
}
|
|
233
|
+
has(name) {
|
|
234
|
+
return this._parsed.has(name);
|
|
235
|
+
}
|
|
236
|
+
set(...args) {
|
|
237
|
+
const [name, value] = args.length === 1 ? [args[0].name, args[0].value] : args;
|
|
238
|
+
const map = this._parsed;
|
|
239
|
+
map.set(name, { name, value });
|
|
240
|
+
this._headers.set(
|
|
241
|
+
"cookie",
|
|
242
|
+
Array.from(map).map(([_, value2]) => stringifyCookie(value2)).join("; ")
|
|
243
|
+
);
|
|
244
|
+
return this;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Delete the cookies matching the passed name or names in the request.
|
|
248
|
+
*/
|
|
249
|
+
delete(names) {
|
|
250
|
+
const map = this._parsed;
|
|
251
|
+
const result = !Array.isArray(names) ? map.delete(names) : names.map((name) => map.delete(name));
|
|
252
|
+
this._headers.set(
|
|
253
|
+
"cookie",
|
|
254
|
+
Array.from(map).map(([_, value]) => stringifyCookie(value)).join("; ")
|
|
255
|
+
);
|
|
256
|
+
return result;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Delete all the cookies in the cookies in the request.
|
|
260
|
+
*/
|
|
261
|
+
clear() {
|
|
262
|
+
this.delete(Array.from(this._parsed.keys()));
|
|
263
|
+
return this;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Format the cookies in the request as a string for logging
|
|
267
|
+
*/
|
|
268
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
269
|
+
return `RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
270
|
+
}
|
|
271
|
+
toString() {
|
|
272
|
+
return [...this._parsed.values()].map((v) => `${v.name}=${encodeURIComponent(v.value)}`).join("; ");
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
var ResponseCookies = class {
|
|
276
|
+
constructor(responseHeaders) {
|
|
277
|
+
this._parsed = /* @__PURE__ */ new Map();
|
|
278
|
+
var _a, _b, _c;
|
|
279
|
+
this._headers = responseHeaders;
|
|
280
|
+
const setCookie = (_c = (_b = (_a = responseHeaders.getSetCookie) == null ? void 0 : _a.call(responseHeaders)) != null ? _b : responseHeaders.get("set-cookie")) != null ? _c : [];
|
|
281
|
+
const cookieStrings = Array.isArray(setCookie) ? setCookie : splitCookiesString(setCookie);
|
|
282
|
+
for (const cookieString of cookieStrings) {
|
|
283
|
+
const parsed = parseSetCookie(cookieString);
|
|
284
|
+
if (parsed)
|
|
285
|
+
this._parsed.set(parsed.name, parsed);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-get CookieStore#get} without the Promise.
|
|
290
|
+
*/
|
|
291
|
+
get(...args) {
|
|
292
|
+
const key = typeof args[0] === "string" ? args[0] : args[0].name;
|
|
293
|
+
return this._parsed.get(key);
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-getAll CookieStore#getAll} without the Promise.
|
|
297
|
+
*/
|
|
298
|
+
getAll(...args) {
|
|
299
|
+
var _a;
|
|
300
|
+
const all = Array.from(this._parsed.values());
|
|
301
|
+
if (!args.length) {
|
|
302
|
+
return all;
|
|
303
|
+
}
|
|
304
|
+
const key = typeof args[0] === "string" ? args[0] : (_a = args[0]) == null ? void 0 : _a.name;
|
|
305
|
+
return all.filter((c) => c.name === key);
|
|
306
|
+
}
|
|
307
|
+
has(name) {
|
|
308
|
+
return this._parsed.has(name);
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-set CookieStore#set} without the Promise.
|
|
312
|
+
*/
|
|
313
|
+
set(...args) {
|
|
314
|
+
const [name, value, cookie] = args.length === 1 ? [args[0].name, args[0].value, args[0]] : args;
|
|
315
|
+
const map = this._parsed;
|
|
316
|
+
map.set(name, normalizeCookie({ name, value, ...cookie }));
|
|
317
|
+
replace(map, this._headers);
|
|
318
|
+
return this;
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* {@link https://wicg.github.io/cookie-store/#CookieStore-delete CookieStore#delete} without the Promise.
|
|
322
|
+
*/
|
|
323
|
+
delete(...args) {
|
|
324
|
+
const [name, path, domain] = typeof args[0] === "string" ? [args[0]] : [args[0].name, args[0].path, args[0].domain];
|
|
325
|
+
return this.set({ name, path, domain, value: "", expires: /* @__PURE__ */ new Date(0) });
|
|
326
|
+
}
|
|
327
|
+
[Symbol.for("edge-runtime.inspect.custom")]() {
|
|
328
|
+
return `ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`;
|
|
329
|
+
}
|
|
330
|
+
toString() {
|
|
331
|
+
return [...this._parsed.values()].map(stringifyCookie).join("; ");
|
|
332
|
+
}
|
|
333
|
+
};
|
|
334
|
+
function replace(bag, headers2) {
|
|
335
|
+
headers2.delete("set-cookie");
|
|
336
|
+
for (const [, value] of bag) {
|
|
337
|
+
const serialized = stringifyCookie(value);
|
|
338
|
+
headers2.append("set-cookie", serialized);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
function normalizeCookie(cookie = { name: "", value: "" }) {
|
|
342
|
+
if (typeof cookie.expires === "number") {
|
|
343
|
+
cookie.expires = new Date(cookie.expires);
|
|
344
|
+
}
|
|
345
|
+
if (cookie.maxAge) {
|
|
346
|
+
cookie.expires = new Date(Date.now() + cookie.maxAge * 1e3);
|
|
347
|
+
}
|
|
348
|
+
if (cookie.path === null || cookie.path === void 0) {
|
|
349
|
+
cookie.path = "/";
|
|
350
|
+
}
|
|
351
|
+
return cookie;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/web/spec-extension/cookies.js
|
|
357
|
+
var require_cookies2 = __commonJS({
|
|
358
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/web/spec-extension/cookies.js"(exports2) {
|
|
359
|
+
"use strict";
|
|
360
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
361
|
+
value: true
|
|
362
|
+
});
|
|
363
|
+
function _export(target, all) {
|
|
364
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
365
|
+
enumerable: true,
|
|
366
|
+
get: all[name]
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
_export(exports2, {
|
|
370
|
+
RequestCookies: function() {
|
|
371
|
+
return _cookies.RequestCookies;
|
|
372
|
+
},
|
|
373
|
+
ResponseCookies: function() {
|
|
374
|
+
return _cookies.ResponseCookies;
|
|
375
|
+
},
|
|
376
|
+
stringifyCookie: function() {
|
|
377
|
+
return _cookies.stringifyCookie;
|
|
378
|
+
}
|
|
379
|
+
});
|
|
380
|
+
var _cookies = require_cookies();
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
|
|
384
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js
|
|
385
|
+
var require_reflect = __commonJS({
|
|
386
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/web/spec-extension/adapters/reflect.js"(exports2) {
|
|
387
|
+
"use strict";
|
|
388
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
389
|
+
value: true
|
|
390
|
+
});
|
|
391
|
+
Object.defineProperty(exports2, "ReflectAdapter", {
|
|
392
|
+
enumerable: true,
|
|
393
|
+
get: function() {
|
|
394
|
+
return ReflectAdapter;
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
var ReflectAdapter = class {
|
|
398
|
+
static get(target, prop, receiver) {
|
|
399
|
+
const value = Reflect.get(target, prop, receiver);
|
|
400
|
+
if (typeof value === "function") {
|
|
401
|
+
return value.bind(target);
|
|
402
|
+
}
|
|
403
|
+
return value;
|
|
404
|
+
}
|
|
405
|
+
static set(target, prop, value, receiver) {
|
|
406
|
+
return Reflect.set(target, prop, value, receiver);
|
|
407
|
+
}
|
|
408
|
+
static has(target, prop) {
|
|
409
|
+
return Reflect.has(target, prop);
|
|
410
|
+
}
|
|
411
|
+
static deleteProperty(target, prop) {
|
|
412
|
+
return Reflect.deleteProperty(target, prop);
|
|
413
|
+
}
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/async-local-storage.js
|
|
419
|
+
var require_async_local_storage = __commonJS({
|
|
420
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/async-local-storage.js"(exports2, module2) {
|
|
421
|
+
"use strict";
|
|
422
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
423
|
+
value: true
|
|
424
|
+
});
|
|
425
|
+
Object.defineProperty(exports2, "createAsyncLocalStorage", {
|
|
426
|
+
enumerable: true,
|
|
427
|
+
get: function() {
|
|
428
|
+
return createAsyncLocalStorage;
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
var sharedAsyncLocalStorageNotAvailableError = new Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available");
|
|
432
|
+
var FakeAsyncLocalStorage = class {
|
|
433
|
+
disable() {
|
|
434
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
435
|
+
}
|
|
436
|
+
getStore() {
|
|
437
|
+
return void 0;
|
|
438
|
+
}
|
|
439
|
+
run() {
|
|
440
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
441
|
+
}
|
|
442
|
+
exit() {
|
|
443
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
444
|
+
}
|
|
445
|
+
enterWith() {
|
|
446
|
+
throw sharedAsyncLocalStorageNotAvailableError;
|
|
447
|
+
}
|
|
448
|
+
};
|
|
449
|
+
var maybeGlobalAsyncLocalStorage = globalThis.AsyncLocalStorage;
|
|
450
|
+
function createAsyncLocalStorage() {
|
|
451
|
+
if (maybeGlobalAsyncLocalStorage) {
|
|
452
|
+
return new maybeGlobalAsyncLocalStorage();
|
|
453
|
+
}
|
|
454
|
+
return new FakeAsyncLocalStorage();
|
|
455
|
+
}
|
|
456
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
457
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
458
|
+
Object.assign(exports2.default, exports2);
|
|
459
|
+
module2.exports = exports2.default;
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
|
|
464
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/static-generation-async-storage-instance.js
|
|
465
|
+
var require_static_generation_async_storage_instance = __commonJS({
|
|
466
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/static-generation-async-storage-instance.js"(exports2, module2) {
|
|
467
|
+
"use strict";
|
|
468
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
469
|
+
value: true
|
|
470
|
+
});
|
|
471
|
+
Object.defineProperty(exports2, "staticGenerationAsyncStorage", {
|
|
472
|
+
enumerable: true,
|
|
473
|
+
get: function() {
|
|
474
|
+
return staticGenerationAsyncStorage;
|
|
475
|
+
}
|
|
476
|
+
});
|
|
477
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
478
|
+
var staticGenerationAsyncStorage = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
479
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
480
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
481
|
+
Object.assign(exports2.default, exports2);
|
|
482
|
+
module2.exports = exports2.default;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
});
|
|
486
|
+
|
|
487
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/static-generation-async-storage.external.js
|
|
488
|
+
var require_static_generation_async_storage_external = __commonJS({
|
|
489
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/static-generation-async-storage.external.js"(exports2, module2) {
|
|
490
|
+
"TURBOPACK { transition: next-shared }";
|
|
491
|
+
"use strict";
|
|
492
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
493
|
+
value: true
|
|
494
|
+
});
|
|
495
|
+
Object.defineProperty(exports2, "staticGenerationAsyncStorage", {
|
|
496
|
+
enumerable: true,
|
|
497
|
+
get: function() {
|
|
498
|
+
return _staticgenerationasyncstorageinstance.staticGenerationAsyncStorage;
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
var _staticgenerationasyncstorageinstance = require_static_generation_async_storage_instance();
|
|
502
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
503
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
504
|
+
Object.assign(exports2.default, exports2);
|
|
505
|
+
module2.exports = exports2.default;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
|
|
510
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js
|
|
511
|
+
var require_request_cookies = __commonJS({
|
|
512
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/web/spec-extension/adapters/request-cookies.js"(exports2) {
|
|
513
|
+
"use strict";
|
|
514
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
515
|
+
value: true
|
|
516
|
+
});
|
|
517
|
+
function _export(target, all) {
|
|
518
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
519
|
+
enumerable: true,
|
|
520
|
+
get: all[name]
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
_export(exports2, {
|
|
524
|
+
MutableRequestCookiesAdapter: function() {
|
|
525
|
+
return MutableRequestCookiesAdapter;
|
|
526
|
+
},
|
|
527
|
+
ReadonlyRequestCookiesError: function() {
|
|
528
|
+
return ReadonlyRequestCookiesError;
|
|
529
|
+
},
|
|
530
|
+
RequestCookiesAdapter: function() {
|
|
531
|
+
return RequestCookiesAdapter;
|
|
532
|
+
},
|
|
533
|
+
appendMutableCookies: function() {
|
|
534
|
+
return appendMutableCookies;
|
|
535
|
+
},
|
|
536
|
+
getModifiedCookieValues: function() {
|
|
537
|
+
return getModifiedCookieValues;
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
var _cookies = require_cookies2();
|
|
541
|
+
var _reflect = require_reflect();
|
|
542
|
+
var _staticgenerationasyncstorageexternal = require_static_generation_async_storage_external();
|
|
543
|
+
var ReadonlyRequestCookiesError = class _ReadonlyRequestCookiesError extends Error {
|
|
544
|
+
constructor() {
|
|
545
|
+
super("Cookies can only be modified in a Server Action or Route Handler. Read more: https://nextjs.org/docs/app/api-reference/functions/cookies#cookiessetname-value-options");
|
|
546
|
+
}
|
|
547
|
+
static callable() {
|
|
548
|
+
throw new _ReadonlyRequestCookiesError();
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
var RequestCookiesAdapter = class {
|
|
552
|
+
static seal(cookies) {
|
|
553
|
+
return new Proxy(cookies, {
|
|
554
|
+
get(target, prop, receiver) {
|
|
555
|
+
switch (prop) {
|
|
556
|
+
case "clear":
|
|
557
|
+
case "delete":
|
|
558
|
+
case "set":
|
|
559
|
+
return ReadonlyRequestCookiesError.callable;
|
|
560
|
+
default:
|
|
561
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
};
|
|
567
|
+
var SYMBOL_MODIFY_COOKIE_VALUES = Symbol.for("next.mutated.cookies");
|
|
568
|
+
function getModifiedCookieValues(cookies) {
|
|
569
|
+
const modified = cookies[SYMBOL_MODIFY_COOKIE_VALUES];
|
|
570
|
+
if (!modified || !Array.isArray(modified) || modified.length === 0) {
|
|
571
|
+
return [];
|
|
572
|
+
}
|
|
573
|
+
return modified;
|
|
574
|
+
}
|
|
575
|
+
function appendMutableCookies(headers2, mutableCookies) {
|
|
576
|
+
const modifiedCookieValues = getModifiedCookieValues(mutableCookies);
|
|
577
|
+
if (modifiedCookieValues.length === 0) {
|
|
578
|
+
return false;
|
|
579
|
+
}
|
|
580
|
+
const resCookies = new _cookies.ResponseCookies(headers2);
|
|
581
|
+
const returnedCookies = resCookies.getAll();
|
|
582
|
+
for (const cookie of modifiedCookieValues) {
|
|
583
|
+
resCookies.set(cookie);
|
|
584
|
+
}
|
|
585
|
+
for (const cookie of returnedCookies) {
|
|
586
|
+
resCookies.set(cookie);
|
|
587
|
+
}
|
|
588
|
+
return true;
|
|
589
|
+
}
|
|
590
|
+
var MutableRequestCookiesAdapter = class {
|
|
591
|
+
static wrap(cookies, onUpdateCookies) {
|
|
592
|
+
const responseCookies = new _cookies.ResponseCookies(new Headers());
|
|
593
|
+
for (const cookie of cookies.getAll()) {
|
|
594
|
+
responseCookies.set(cookie);
|
|
595
|
+
}
|
|
596
|
+
let modifiedValues = [];
|
|
597
|
+
const modifiedCookies = /* @__PURE__ */ new Set();
|
|
598
|
+
const updateResponseCookies = () => {
|
|
599
|
+
const staticGenerationAsyncStore = _staticgenerationasyncstorageexternal.staticGenerationAsyncStorage.getStore();
|
|
600
|
+
if (staticGenerationAsyncStore) {
|
|
601
|
+
staticGenerationAsyncStore.pathWasRevalidated = true;
|
|
602
|
+
}
|
|
603
|
+
const allCookies = responseCookies.getAll();
|
|
604
|
+
modifiedValues = allCookies.filter((c) => modifiedCookies.has(c.name));
|
|
605
|
+
if (onUpdateCookies) {
|
|
606
|
+
const serializedCookies = [];
|
|
607
|
+
for (const cookie of modifiedValues) {
|
|
608
|
+
const tempCookies = new _cookies.ResponseCookies(new Headers());
|
|
609
|
+
tempCookies.set(cookie);
|
|
610
|
+
serializedCookies.push(tempCookies.toString());
|
|
611
|
+
}
|
|
612
|
+
onUpdateCookies(serializedCookies);
|
|
613
|
+
}
|
|
614
|
+
};
|
|
615
|
+
return new Proxy(responseCookies, {
|
|
616
|
+
get(target, prop, receiver) {
|
|
617
|
+
switch (prop) {
|
|
618
|
+
// A special symbol to get the modified cookie values
|
|
619
|
+
case SYMBOL_MODIFY_COOKIE_VALUES:
|
|
620
|
+
return modifiedValues;
|
|
621
|
+
// TODO: Throw error if trying to set a cookie after the response
|
|
622
|
+
// headers have been set.
|
|
623
|
+
case "delete":
|
|
624
|
+
return function(...args) {
|
|
625
|
+
modifiedCookies.add(typeof args[0] === "string" ? args[0] : args[0].name);
|
|
626
|
+
try {
|
|
627
|
+
target.delete(...args);
|
|
628
|
+
} finally {
|
|
629
|
+
updateResponseCookies();
|
|
630
|
+
}
|
|
631
|
+
};
|
|
632
|
+
case "set":
|
|
633
|
+
return function(...args) {
|
|
634
|
+
modifiedCookies.add(typeof args[0] === "string" ? args[0] : args[0].name);
|
|
635
|
+
try {
|
|
636
|
+
return target.set(...args);
|
|
637
|
+
} finally {
|
|
638
|
+
updateResponseCookies();
|
|
639
|
+
}
|
|
640
|
+
};
|
|
641
|
+
default:
|
|
642
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
});
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
|
|
651
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/web/spec-extension/adapters/headers.js
|
|
652
|
+
var require_headers = __commonJS({
|
|
653
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/web/spec-extension/adapters/headers.js"(exports2) {
|
|
654
|
+
"use strict";
|
|
655
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
656
|
+
value: true
|
|
657
|
+
});
|
|
658
|
+
function _export(target, all) {
|
|
659
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
660
|
+
enumerable: true,
|
|
661
|
+
get: all[name]
|
|
662
|
+
});
|
|
663
|
+
}
|
|
664
|
+
_export(exports2, {
|
|
665
|
+
HeadersAdapter: function() {
|
|
666
|
+
return HeadersAdapter;
|
|
667
|
+
},
|
|
668
|
+
ReadonlyHeadersError: function() {
|
|
669
|
+
return ReadonlyHeadersError;
|
|
670
|
+
}
|
|
671
|
+
});
|
|
672
|
+
var _reflect = require_reflect();
|
|
673
|
+
var ReadonlyHeadersError = class _ReadonlyHeadersError extends Error {
|
|
674
|
+
constructor() {
|
|
675
|
+
super("Headers cannot be modified. Read more: https://nextjs.org/docs/app/api-reference/functions/headers");
|
|
676
|
+
}
|
|
677
|
+
static callable() {
|
|
678
|
+
throw new _ReadonlyHeadersError();
|
|
679
|
+
}
|
|
680
|
+
};
|
|
681
|
+
var HeadersAdapter = class _HeadersAdapter extends Headers {
|
|
682
|
+
constructor(headers2) {
|
|
683
|
+
super();
|
|
684
|
+
this.headers = new Proxy(headers2, {
|
|
685
|
+
get(target, prop, receiver) {
|
|
686
|
+
if (typeof prop === "symbol") {
|
|
687
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
688
|
+
}
|
|
689
|
+
const lowercased = prop.toLowerCase();
|
|
690
|
+
const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
|
|
691
|
+
if (typeof original === "undefined") return;
|
|
692
|
+
return _reflect.ReflectAdapter.get(target, original, receiver);
|
|
693
|
+
},
|
|
694
|
+
set(target, prop, value, receiver) {
|
|
695
|
+
if (typeof prop === "symbol") {
|
|
696
|
+
return _reflect.ReflectAdapter.set(target, prop, value, receiver);
|
|
697
|
+
}
|
|
698
|
+
const lowercased = prop.toLowerCase();
|
|
699
|
+
const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
|
|
700
|
+
return _reflect.ReflectAdapter.set(target, original != null ? original : prop, value, receiver);
|
|
701
|
+
},
|
|
702
|
+
has(target, prop) {
|
|
703
|
+
if (typeof prop === "symbol") return _reflect.ReflectAdapter.has(target, prop);
|
|
704
|
+
const lowercased = prop.toLowerCase();
|
|
705
|
+
const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
|
|
706
|
+
if (typeof original === "undefined") return false;
|
|
707
|
+
return _reflect.ReflectAdapter.has(target, original);
|
|
708
|
+
},
|
|
709
|
+
deleteProperty(target, prop) {
|
|
710
|
+
if (typeof prop === "symbol") return _reflect.ReflectAdapter.deleteProperty(target, prop);
|
|
711
|
+
const lowercased = prop.toLowerCase();
|
|
712
|
+
const original = Object.keys(headers2).find((o) => o.toLowerCase() === lowercased);
|
|
713
|
+
if (typeof original === "undefined") return true;
|
|
714
|
+
return _reflect.ReflectAdapter.deleteProperty(target, original);
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Seals a Headers instance to prevent modification by throwing an error when
|
|
720
|
+
* any mutating method is called.
|
|
721
|
+
*/
|
|
722
|
+
static seal(headers2) {
|
|
723
|
+
return new Proxy(headers2, {
|
|
724
|
+
get(target, prop, receiver) {
|
|
725
|
+
switch (prop) {
|
|
726
|
+
case "append":
|
|
727
|
+
case "delete":
|
|
728
|
+
case "set":
|
|
729
|
+
return ReadonlyHeadersError.callable;
|
|
730
|
+
default:
|
|
731
|
+
return _reflect.ReflectAdapter.get(target, prop, receiver);
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
});
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Merges a header value into a string. This stores multiple values as an
|
|
738
|
+
* array, so we need to merge them into a string.
|
|
739
|
+
*
|
|
740
|
+
* @param value a header value
|
|
741
|
+
* @returns a merged header value (a string)
|
|
742
|
+
*/
|
|
743
|
+
merge(value) {
|
|
744
|
+
if (Array.isArray(value)) return value.join(", ");
|
|
745
|
+
return value;
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Creates a Headers instance from a plain object or a Headers instance.
|
|
749
|
+
*
|
|
750
|
+
* @param headers a plain object or a Headers instance
|
|
751
|
+
* @returns a headers instance
|
|
752
|
+
*/
|
|
753
|
+
static from(headers2) {
|
|
754
|
+
if (headers2 instanceof Headers) return headers2;
|
|
755
|
+
return new _HeadersAdapter(headers2);
|
|
756
|
+
}
|
|
757
|
+
append(name, value) {
|
|
758
|
+
const existing = this.headers[name];
|
|
759
|
+
if (typeof existing === "string") {
|
|
760
|
+
this.headers[name] = [
|
|
761
|
+
existing,
|
|
762
|
+
value
|
|
763
|
+
];
|
|
764
|
+
} else if (Array.isArray(existing)) {
|
|
765
|
+
existing.push(value);
|
|
766
|
+
} else {
|
|
767
|
+
this.headers[name] = value;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
770
|
+
delete(name) {
|
|
771
|
+
delete this.headers[name];
|
|
772
|
+
}
|
|
773
|
+
get(name) {
|
|
774
|
+
const value = this.headers[name];
|
|
775
|
+
if (typeof value !== "undefined") return this.merge(value);
|
|
776
|
+
return null;
|
|
777
|
+
}
|
|
778
|
+
has(name) {
|
|
779
|
+
return typeof this.headers[name] !== "undefined";
|
|
780
|
+
}
|
|
781
|
+
set(name, value) {
|
|
782
|
+
this.headers[name] = value;
|
|
783
|
+
}
|
|
784
|
+
forEach(callbackfn, thisArg) {
|
|
785
|
+
for (const [name, value] of this.entries()) {
|
|
786
|
+
callbackfn.call(thisArg, value, name, this);
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
*entries() {
|
|
790
|
+
for (const key of Object.keys(this.headers)) {
|
|
791
|
+
const name = key.toLowerCase();
|
|
792
|
+
const value = this.get(name);
|
|
793
|
+
yield [
|
|
794
|
+
name,
|
|
795
|
+
value
|
|
796
|
+
];
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
*keys() {
|
|
800
|
+
for (const key of Object.keys(this.headers)) {
|
|
801
|
+
const name = key.toLowerCase();
|
|
802
|
+
yield name;
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
*values() {
|
|
806
|
+
for (const key of Object.keys(this.headers)) {
|
|
807
|
+
const value = this.get(key);
|
|
808
|
+
yield value;
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
[Symbol.iterator]() {
|
|
812
|
+
return this.entries();
|
|
813
|
+
}
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
});
|
|
817
|
+
|
|
818
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/action-async-storage-instance.js
|
|
819
|
+
var require_action_async_storage_instance = __commonJS({
|
|
820
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/action-async-storage-instance.js"(exports2, module2) {
|
|
821
|
+
"use strict";
|
|
822
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
823
|
+
value: true
|
|
824
|
+
});
|
|
825
|
+
Object.defineProperty(exports2, "actionAsyncStorage", {
|
|
826
|
+
enumerable: true,
|
|
827
|
+
get: function() {
|
|
828
|
+
return actionAsyncStorage;
|
|
829
|
+
}
|
|
830
|
+
});
|
|
831
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
832
|
+
var actionAsyncStorage = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
833
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
834
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
835
|
+
Object.assign(exports2.default, exports2);
|
|
836
|
+
module2.exports = exports2.default;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
});
|
|
840
|
+
|
|
841
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/action-async-storage.external.js
|
|
842
|
+
var require_action_async_storage_external = __commonJS({
|
|
843
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/action-async-storage.external.js"(exports2, module2) {
|
|
844
|
+
"TURBOPACK { transition: next-shared }";
|
|
845
|
+
"use strict";
|
|
846
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
847
|
+
value: true
|
|
848
|
+
});
|
|
849
|
+
Object.defineProperty(exports2, "actionAsyncStorage", {
|
|
850
|
+
enumerable: true,
|
|
851
|
+
get: function() {
|
|
852
|
+
return _actionasyncstorageinstance.actionAsyncStorage;
|
|
853
|
+
}
|
|
854
|
+
});
|
|
855
|
+
var _actionasyncstorageinstance = require_action_async_storage_instance();
|
|
856
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
857
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
858
|
+
Object.assign(exports2.default, exports2);
|
|
859
|
+
module2.exports = exports2.default;
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
|
|
864
|
+
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js
|
|
865
|
+
var require_react_production_min = __commonJS({
|
|
866
|
+
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.production.min.js"(exports2) {
|
|
867
|
+
"use strict";
|
|
868
|
+
var l = Symbol.for("react.element");
|
|
869
|
+
var n = Symbol.for("react.portal");
|
|
870
|
+
var p = Symbol.for("react.fragment");
|
|
871
|
+
var q = Symbol.for("react.strict_mode");
|
|
872
|
+
var r = Symbol.for("react.profiler");
|
|
873
|
+
var t = Symbol.for("react.provider");
|
|
874
|
+
var u = Symbol.for("react.context");
|
|
875
|
+
var v = Symbol.for("react.forward_ref");
|
|
876
|
+
var w = Symbol.for("react.suspense");
|
|
877
|
+
var x = Symbol.for("react.memo");
|
|
878
|
+
var y = Symbol.for("react.lazy");
|
|
879
|
+
var z = Symbol.iterator;
|
|
880
|
+
function A(a) {
|
|
881
|
+
if (null === a || "object" !== typeof a) return null;
|
|
882
|
+
a = z && a[z] || a["@@iterator"];
|
|
883
|
+
return "function" === typeof a ? a : null;
|
|
884
|
+
}
|
|
885
|
+
var B = { isMounted: function() {
|
|
886
|
+
return false;
|
|
887
|
+
}, enqueueForceUpdate: function() {
|
|
888
|
+
}, enqueueReplaceState: function() {
|
|
889
|
+
}, enqueueSetState: function() {
|
|
890
|
+
} };
|
|
891
|
+
var C = Object.assign;
|
|
892
|
+
var D = {};
|
|
893
|
+
function E(a, b, e) {
|
|
894
|
+
this.props = a;
|
|
895
|
+
this.context = b;
|
|
896
|
+
this.refs = D;
|
|
897
|
+
this.updater = e || B;
|
|
898
|
+
}
|
|
899
|
+
E.prototype.isReactComponent = {};
|
|
900
|
+
E.prototype.setState = function(a, b) {
|
|
901
|
+
if ("object" !== typeof a && "function" !== typeof a && null != a) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
902
|
+
this.updater.enqueueSetState(this, a, b, "setState");
|
|
903
|
+
};
|
|
904
|
+
E.prototype.forceUpdate = function(a) {
|
|
905
|
+
this.updater.enqueueForceUpdate(this, a, "forceUpdate");
|
|
906
|
+
};
|
|
907
|
+
function F() {
|
|
908
|
+
}
|
|
909
|
+
F.prototype = E.prototype;
|
|
910
|
+
function G(a, b, e) {
|
|
911
|
+
this.props = a;
|
|
912
|
+
this.context = b;
|
|
913
|
+
this.refs = D;
|
|
914
|
+
this.updater = e || B;
|
|
915
|
+
}
|
|
916
|
+
var H = G.prototype = new F();
|
|
917
|
+
H.constructor = G;
|
|
918
|
+
C(H, E.prototype);
|
|
919
|
+
H.isPureReactComponent = true;
|
|
920
|
+
var I = Array.isArray;
|
|
921
|
+
var J = Object.prototype.hasOwnProperty;
|
|
922
|
+
var K = { current: null };
|
|
923
|
+
var L = { key: true, ref: true, __self: true, __source: true };
|
|
924
|
+
function M(a, b, e) {
|
|
925
|
+
var d, c = {}, k = null, h = null;
|
|
926
|
+
if (null != b) for (d in void 0 !== b.ref && (h = b.ref), void 0 !== b.key && (k = "" + b.key), b) J.call(b, d) && !L.hasOwnProperty(d) && (c[d] = b[d]);
|
|
927
|
+
var g = arguments.length - 2;
|
|
928
|
+
if (1 === g) c.children = e;
|
|
929
|
+
else if (1 < g) {
|
|
930
|
+
for (var f = Array(g), m = 0; m < g; m++) f[m] = arguments[m + 2];
|
|
931
|
+
c.children = f;
|
|
932
|
+
}
|
|
933
|
+
if (a && a.defaultProps) for (d in g = a.defaultProps, g) void 0 === c[d] && (c[d] = g[d]);
|
|
934
|
+
return { $$typeof: l, type: a, key: k, ref: h, props: c, _owner: K.current };
|
|
935
|
+
}
|
|
936
|
+
function N(a, b) {
|
|
937
|
+
return { $$typeof: l, type: a.type, key: b, ref: a.ref, props: a.props, _owner: a._owner };
|
|
938
|
+
}
|
|
939
|
+
function O(a) {
|
|
940
|
+
return "object" === typeof a && null !== a && a.$$typeof === l;
|
|
941
|
+
}
|
|
942
|
+
function escape(a) {
|
|
943
|
+
var b = { "=": "=0", ":": "=2" };
|
|
944
|
+
return "$" + a.replace(/[=:]/g, function(a2) {
|
|
945
|
+
return b[a2];
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
var P = /\/+/g;
|
|
949
|
+
function Q(a, b) {
|
|
950
|
+
return "object" === typeof a && null !== a && null != a.key ? escape("" + a.key) : b.toString(36);
|
|
951
|
+
}
|
|
952
|
+
function R(a, b, e, d, c) {
|
|
953
|
+
var k = typeof a;
|
|
954
|
+
if ("undefined" === k || "boolean" === k) a = null;
|
|
955
|
+
var h = false;
|
|
956
|
+
if (null === a) h = true;
|
|
957
|
+
else switch (k) {
|
|
958
|
+
case "string":
|
|
959
|
+
case "number":
|
|
960
|
+
h = true;
|
|
961
|
+
break;
|
|
962
|
+
case "object":
|
|
963
|
+
switch (a.$$typeof) {
|
|
964
|
+
case l:
|
|
965
|
+
case n:
|
|
966
|
+
h = true;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
if (h) return h = a, c = c(h), a = "" === d ? "." + Q(h, 0) : d, I(c) ? (e = "", null != a && (e = a.replace(P, "$&/") + "/"), R(c, b, e, "", function(a2) {
|
|
970
|
+
return a2;
|
|
971
|
+
})) : null != c && (O(c) && (c = N(c, e + (!c.key || h && h.key === c.key ? "" : ("" + c.key).replace(P, "$&/") + "/") + a)), b.push(c)), 1;
|
|
972
|
+
h = 0;
|
|
973
|
+
d = "" === d ? "." : d + ":";
|
|
974
|
+
if (I(a)) for (var g = 0; g < a.length; g++) {
|
|
975
|
+
k = a[g];
|
|
976
|
+
var f = d + Q(k, g);
|
|
977
|
+
h += R(k, b, e, f, c);
|
|
978
|
+
}
|
|
979
|
+
else if (f = A(a), "function" === typeof f) for (a = f.call(a), g = 0; !(k = a.next()).done; ) k = k.value, f = d + Q(k, g++), h += R(k, b, e, f, c);
|
|
980
|
+
else if ("object" === k) throw b = String(a), Error("Objects are not valid as a React child (found: " + ("[object Object]" === b ? "object with keys {" + Object.keys(a).join(", ") + "}" : b) + "). If you meant to render a collection of children, use an array instead.");
|
|
981
|
+
return h;
|
|
982
|
+
}
|
|
983
|
+
function S(a, b, e) {
|
|
984
|
+
if (null == a) return a;
|
|
985
|
+
var d = [], c = 0;
|
|
986
|
+
R(a, d, "", "", function(a2) {
|
|
987
|
+
return b.call(e, a2, c++);
|
|
988
|
+
});
|
|
989
|
+
return d;
|
|
990
|
+
}
|
|
991
|
+
function T(a) {
|
|
992
|
+
if (-1 === a._status) {
|
|
993
|
+
var b = a._result;
|
|
994
|
+
b = b();
|
|
995
|
+
b.then(function(b2) {
|
|
996
|
+
if (0 === a._status || -1 === a._status) a._status = 1, a._result = b2;
|
|
997
|
+
}, function(b2) {
|
|
998
|
+
if (0 === a._status || -1 === a._status) a._status = 2, a._result = b2;
|
|
999
|
+
});
|
|
1000
|
+
-1 === a._status && (a._status = 0, a._result = b);
|
|
1001
|
+
}
|
|
1002
|
+
if (1 === a._status) return a._result.default;
|
|
1003
|
+
throw a._result;
|
|
1004
|
+
}
|
|
1005
|
+
var U = { current: null };
|
|
1006
|
+
var V = { transition: null };
|
|
1007
|
+
var W = { ReactCurrentDispatcher: U, ReactCurrentBatchConfig: V, ReactCurrentOwner: K };
|
|
1008
|
+
function X() {
|
|
1009
|
+
throw Error("act(...) is not supported in production builds of React.");
|
|
1010
|
+
}
|
|
1011
|
+
exports2.Children = { map: S, forEach: function(a, b, e) {
|
|
1012
|
+
S(a, function() {
|
|
1013
|
+
b.apply(this, arguments);
|
|
1014
|
+
}, e);
|
|
1015
|
+
}, count: function(a) {
|
|
1016
|
+
var b = 0;
|
|
1017
|
+
S(a, function() {
|
|
1018
|
+
b++;
|
|
1019
|
+
});
|
|
1020
|
+
return b;
|
|
1021
|
+
}, toArray: function(a) {
|
|
1022
|
+
return S(a, function(a2) {
|
|
1023
|
+
return a2;
|
|
1024
|
+
}) || [];
|
|
1025
|
+
}, only: function(a) {
|
|
1026
|
+
if (!O(a)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
1027
|
+
return a;
|
|
1028
|
+
} };
|
|
1029
|
+
exports2.Component = E;
|
|
1030
|
+
exports2.Fragment = p;
|
|
1031
|
+
exports2.Profiler = r;
|
|
1032
|
+
exports2.PureComponent = G;
|
|
1033
|
+
exports2.StrictMode = q;
|
|
1034
|
+
exports2.Suspense = w;
|
|
1035
|
+
exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = W;
|
|
1036
|
+
exports2.act = X;
|
|
1037
|
+
exports2.cloneElement = function(a, b, e) {
|
|
1038
|
+
if (null === a || void 0 === a) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + a + ".");
|
|
1039
|
+
var d = C({}, a.props), c = a.key, k = a.ref, h = a._owner;
|
|
1040
|
+
if (null != b) {
|
|
1041
|
+
void 0 !== b.ref && (k = b.ref, h = K.current);
|
|
1042
|
+
void 0 !== b.key && (c = "" + b.key);
|
|
1043
|
+
if (a.type && a.type.defaultProps) var g = a.type.defaultProps;
|
|
1044
|
+
for (f in b) J.call(b, f) && !L.hasOwnProperty(f) && (d[f] = void 0 === b[f] && void 0 !== g ? g[f] : b[f]);
|
|
1045
|
+
}
|
|
1046
|
+
var f = arguments.length - 2;
|
|
1047
|
+
if (1 === f) d.children = e;
|
|
1048
|
+
else if (1 < f) {
|
|
1049
|
+
g = Array(f);
|
|
1050
|
+
for (var m = 0; m < f; m++) g[m] = arguments[m + 2];
|
|
1051
|
+
d.children = g;
|
|
1052
|
+
}
|
|
1053
|
+
return { $$typeof: l, type: a.type, key: c, ref: k, props: d, _owner: h };
|
|
1054
|
+
};
|
|
1055
|
+
exports2.createContext = function(a) {
|
|
1056
|
+
a = { $$typeof: u, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null, _defaultValue: null, _globalName: null };
|
|
1057
|
+
a.Provider = { $$typeof: t, _context: a };
|
|
1058
|
+
return a.Consumer = a;
|
|
1059
|
+
};
|
|
1060
|
+
exports2.createElement = M;
|
|
1061
|
+
exports2.createFactory = function(a) {
|
|
1062
|
+
var b = M.bind(null, a);
|
|
1063
|
+
b.type = a;
|
|
1064
|
+
return b;
|
|
1065
|
+
};
|
|
1066
|
+
exports2.createRef = function() {
|
|
1067
|
+
return { current: null };
|
|
1068
|
+
};
|
|
1069
|
+
exports2.forwardRef = function(a) {
|
|
1070
|
+
return { $$typeof: v, render: a };
|
|
1071
|
+
};
|
|
1072
|
+
exports2.isValidElement = O;
|
|
1073
|
+
exports2.lazy = function(a) {
|
|
1074
|
+
return { $$typeof: y, _payload: { _status: -1, _result: a }, _init: T };
|
|
1075
|
+
};
|
|
1076
|
+
exports2.memo = function(a, b) {
|
|
1077
|
+
return { $$typeof: x, type: a, compare: void 0 === b ? null : b };
|
|
1078
|
+
};
|
|
1079
|
+
exports2.startTransition = function(a) {
|
|
1080
|
+
var b = V.transition;
|
|
1081
|
+
V.transition = {};
|
|
1082
|
+
try {
|
|
1083
|
+
a();
|
|
1084
|
+
} finally {
|
|
1085
|
+
V.transition = b;
|
|
1086
|
+
}
|
|
1087
|
+
};
|
|
1088
|
+
exports2.unstable_act = X;
|
|
1089
|
+
exports2.useCallback = function(a, b) {
|
|
1090
|
+
return U.current.useCallback(a, b);
|
|
1091
|
+
};
|
|
1092
|
+
exports2.useContext = function(a) {
|
|
1093
|
+
return U.current.useContext(a);
|
|
1094
|
+
};
|
|
1095
|
+
exports2.useDebugValue = function() {
|
|
1096
|
+
};
|
|
1097
|
+
exports2.useDeferredValue = function(a) {
|
|
1098
|
+
return U.current.useDeferredValue(a);
|
|
1099
|
+
};
|
|
1100
|
+
exports2.useEffect = function(a, b) {
|
|
1101
|
+
return U.current.useEffect(a, b);
|
|
1102
|
+
};
|
|
1103
|
+
exports2.useId = function() {
|
|
1104
|
+
return U.current.useId();
|
|
1105
|
+
};
|
|
1106
|
+
exports2.useImperativeHandle = function(a, b, e) {
|
|
1107
|
+
return U.current.useImperativeHandle(a, b, e);
|
|
1108
|
+
};
|
|
1109
|
+
exports2.useInsertionEffect = function(a, b) {
|
|
1110
|
+
return U.current.useInsertionEffect(a, b);
|
|
1111
|
+
};
|
|
1112
|
+
exports2.useLayoutEffect = function(a, b) {
|
|
1113
|
+
return U.current.useLayoutEffect(a, b);
|
|
1114
|
+
};
|
|
1115
|
+
exports2.useMemo = function(a, b) {
|
|
1116
|
+
return U.current.useMemo(a, b);
|
|
1117
|
+
};
|
|
1118
|
+
exports2.useReducer = function(a, b, e) {
|
|
1119
|
+
return U.current.useReducer(a, b, e);
|
|
1120
|
+
};
|
|
1121
|
+
exports2.useRef = function(a) {
|
|
1122
|
+
return U.current.useRef(a);
|
|
1123
|
+
};
|
|
1124
|
+
exports2.useState = function(a) {
|
|
1125
|
+
return U.current.useState(a);
|
|
1126
|
+
};
|
|
1127
|
+
exports2.useSyncExternalStore = function(a, b, e) {
|
|
1128
|
+
return U.current.useSyncExternalStore(a, b, e);
|
|
1129
|
+
};
|
|
1130
|
+
exports2.useTransition = function() {
|
|
1131
|
+
return U.current.useTransition();
|
|
1132
|
+
};
|
|
1133
|
+
exports2.version = "18.3.1";
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
|
|
1137
|
+
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js
|
|
1138
|
+
var require_react_development = __commonJS({
|
|
1139
|
+
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react.development.js"(exports2, module2) {
|
|
1140
|
+
"use strict";
|
|
1141
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1142
|
+
(function() {
|
|
1143
|
+
"use strict";
|
|
1144
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart === "function") {
|
|
1145
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
|
|
1146
|
+
}
|
|
1147
|
+
var ReactVersion = "18.3.1";
|
|
1148
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.element");
|
|
1149
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
1150
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
1151
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
1152
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
1153
|
+
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
1154
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
1155
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
1156
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
1157
|
+
var REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list");
|
|
1158
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
1159
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
1160
|
+
var REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen");
|
|
1161
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
1162
|
+
var FAUX_ITERATOR_SYMBOL = "@@iterator";
|
|
1163
|
+
function getIteratorFn(maybeIterable) {
|
|
1164
|
+
if (maybeIterable === null || typeof maybeIterable !== "object") {
|
|
1165
|
+
return null;
|
|
1166
|
+
}
|
|
1167
|
+
var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
|
|
1168
|
+
if (typeof maybeIterator === "function") {
|
|
1169
|
+
return maybeIterator;
|
|
1170
|
+
}
|
|
1171
|
+
return null;
|
|
1172
|
+
}
|
|
1173
|
+
var ReactCurrentDispatcher = {
|
|
1174
|
+
/**
|
|
1175
|
+
* @internal
|
|
1176
|
+
* @type {ReactComponent}
|
|
1177
|
+
*/
|
|
1178
|
+
current: null
|
|
1179
|
+
};
|
|
1180
|
+
var ReactCurrentBatchConfig = {
|
|
1181
|
+
transition: null
|
|
1182
|
+
};
|
|
1183
|
+
var ReactCurrentActQueue = {
|
|
1184
|
+
current: null,
|
|
1185
|
+
// Used to reproduce behavior of `batchedUpdates` in legacy mode.
|
|
1186
|
+
isBatchingLegacy: false,
|
|
1187
|
+
didScheduleLegacyUpdate: false
|
|
1188
|
+
};
|
|
1189
|
+
var ReactCurrentOwner = {
|
|
1190
|
+
/**
|
|
1191
|
+
* @internal
|
|
1192
|
+
* @type {ReactComponent}
|
|
1193
|
+
*/
|
|
1194
|
+
current: null
|
|
1195
|
+
};
|
|
1196
|
+
var ReactDebugCurrentFrame = {};
|
|
1197
|
+
var currentExtraStackFrame = null;
|
|
1198
|
+
function setExtraStackFrame(stack) {
|
|
1199
|
+
{
|
|
1200
|
+
currentExtraStackFrame = stack;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
{
|
|
1204
|
+
ReactDebugCurrentFrame.setExtraStackFrame = function(stack) {
|
|
1205
|
+
{
|
|
1206
|
+
currentExtraStackFrame = stack;
|
|
1207
|
+
}
|
|
1208
|
+
};
|
|
1209
|
+
ReactDebugCurrentFrame.getCurrentStack = null;
|
|
1210
|
+
ReactDebugCurrentFrame.getStackAddendum = function() {
|
|
1211
|
+
var stack = "";
|
|
1212
|
+
if (currentExtraStackFrame) {
|
|
1213
|
+
stack += currentExtraStackFrame;
|
|
1214
|
+
}
|
|
1215
|
+
var impl = ReactDebugCurrentFrame.getCurrentStack;
|
|
1216
|
+
if (impl) {
|
|
1217
|
+
stack += impl() || "";
|
|
1218
|
+
}
|
|
1219
|
+
return stack;
|
|
1220
|
+
};
|
|
1221
|
+
}
|
|
1222
|
+
var enableScopeAPI = false;
|
|
1223
|
+
var enableCacheElement = false;
|
|
1224
|
+
var enableTransitionTracing = false;
|
|
1225
|
+
var enableLegacyHidden = false;
|
|
1226
|
+
var enableDebugTracing = false;
|
|
1227
|
+
var ReactSharedInternals = {
|
|
1228
|
+
ReactCurrentDispatcher,
|
|
1229
|
+
ReactCurrentBatchConfig,
|
|
1230
|
+
ReactCurrentOwner
|
|
1231
|
+
};
|
|
1232
|
+
{
|
|
1233
|
+
ReactSharedInternals.ReactDebugCurrentFrame = ReactDebugCurrentFrame;
|
|
1234
|
+
ReactSharedInternals.ReactCurrentActQueue = ReactCurrentActQueue;
|
|
1235
|
+
}
|
|
1236
|
+
function warn(format) {
|
|
1237
|
+
{
|
|
1238
|
+
{
|
|
1239
|
+
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
1240
|
+
args[_key - 1] = arguments[_key];
|
|
1241
|
+
}
|
|
1242
|
+
printWarning("warn", format, args);
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
}
|
|
1246
|
+
function error(format) {
|
|
1247
|
+
{
|
|
1248
|
+
{
|
|
1249
|
+
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
1250
|
+
args[_key2 - 1] = arguments[_key2];
|
|
1251
|
+
}
|
|
1252
|
+
printWarning("error", format, args);
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
function printWarning(level, format, args) {
|
|
1257
|
+
{
|
|
1258
|
+
var ReactDebugCurrentFrame2 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
1259
|
+
var stack = ReactDebugCurrentFrame2.getStackAddendum();
|
|
1260
|
+
if (stack !== "") {
|
|
1261
|
+
format += "%s";
|
|
1262
|
+
args = args.concat([stack]);
|
|
1263
|
+
}
|
|
1264
|
+
var argsWithFormat = args.map(function(item) {
|
|
1265
|
+
return String(item);
|
|
1266
|
+
});
|
|
1267
|
+
argsWithFormat.unshift("Warning: " + format);
|
|
1268
|
+
Function.prototype.apply.call(console[level], console, argsWithFormat);
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1271
|
+
var didWarnStateUpdateForUnmountedComponent = {};
|
|
1272
|
+
function warnNoop(publicInstance, callerName) {
|
|
1273
|
+
{
|
|
1274
|
+
var _constructor = publicInstance.constructor;
|
|
1275
|
+
var componentName = _constructor && (_constructor.displayName || _constructor.name) || "ReactClass";
|
|
1276
|
+
var warningKey = componentName + "." + callerName;
|
|
1277
|
+
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
1278
|
+
return;
|
|
1279
|
+
}
|
|
1280
|
+
error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, componentName);
|
|
1281
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] = true;
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
var ReactNoopUpdateQueue = {
|
|
1285
|
+
/**
|
|
1286
|
+
* Checks whether or not this composite component is mounted.
|
|
1287
|
+
* @param {ReactClass} publicInstance The instance we want to test.
|
|
1288
|
+
* @return {boolean} True if mounted, false otherwise.
|
|
1289
|
+
* @protected
|
|
1290
|
+
* @final
|
|
1291
|
+
*/
|
|
1292
|
+
isMounted: function(publicInstance) {
|
|
1293
|
+
return false;
|
|
1294
|
+
},
|
|
1295
|
+
/**
|
|
1296
|
+
* Forces an update. This should only be invoked when it is known with
|
|
1297
|
+
* certainty that we are **not** in a DOM transaction.
|
|
1298
|
+
*
|
|
1299
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
1300
|
+
* component's state has changed but `setState` was not called.
|
|
1301
|
+
*
|
|
1302
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
1303
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
1304
|
+
*
|
|
1305
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1306
|
+
* @param {?function} callback Called after component is updated.
|
|
1307
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
1308
|
+
* @internal
|
|
1309
|
+
*/
|
|
1310
|
+
enqueueForceUpdate: function(publicInstance, callback, callerName) {
|
|
1311
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
1312
|
+
},
|
|
1313
|
+
/**
|
|
1314
|
+
* Replaces all of the state. Always use this or `setState` to mutate state.
|
|
1315
|
+
* You should treat `this.state` as immutable.
|
|
1316
|
+
*
|
|
1317
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
1318
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
1319
|
+
*
|
|
1320
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1321
|
+
* @param {object} completeState Next state.
|
|
1322
|
+
* @param {?function} callback Called after component is updated.
|
|
1323
|
+
* @param {?string} callerName name of the calling function in the public API.
|
|
1324
|
+
* @internal
|
|
1325
|
+
*/
|
|
1326
|
+
enqueueReplaceState: function(publicInstance, completeState, callback, callerName) {
|
|
1327
|
+
warnNoop(publicInstance, "replaceState");
|
|
1328
|
+
},
|
|
1329
|
+
/**
|
|
1330
|
+
* Sets a subset of the state. This only exists because _pendingState is
|
|
1331
|
+
* internal. This provides a merging strategy that is not available to deep
|
|
1332
|
+
* properties which is confusing. TODO: Expose pendingState or don't use it
|
|
1333
|
+
* during the merge.
|
|
1334
|
+
*
|
|
1335
|
+
* @param {ReactClass} publicInstance The instance that should rerender.
|
|
1336
|
+
* @param {object} partialState Next partial state to be merged with state.
|
|
1337
|
+
* @param {?function} callback Called after component is updated.
|
|
1338
|
+
* @param {?string} Name of the calling function in the public API.
|
|
1339
|
+
* @internal
|
|
1340
|
+
*/
|
|
1341
|
+
enqueueSetState: function(publicInstance, partialState, callback, callerName) {
|
|
1342
|
+
warnNoop(publicInstance, "setState");
|
|
1343
|
+
}
|
|
1344
|
+
};
|
|
1345
|
+
var assign = Object.assign;
|
|
1346
|
+
var emptyObject = {};
|
|
1347
|
+
{
|
|
1348
|
+
Object.freeze(emptyObject);
|
|
1349
|
+
}
|
|
1350
|
+
function Component(props, context, updater) {
|
|
1351
|
+
this.props = props;
|
|
1352
|
+
this.context = context;
|
|
1353
|
+
this.refs = emptyObject;
|
|
1354
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
1355
|
+
}
|
|
1356
|
+
Component.prototype.isReactComponent = {};
|
|
1357
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
1358
|
+
if (typeof partialState !== "object" && typeof partialState !== "function" && partialState != null) {
|
|
1359
|
+
throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
1360
|
+
}
|
|
1361
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
1362
|
+
};
|
|
1363
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
1364
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
1365
|
+
};
|
|
1366
|
+
{
|
|
1367
|
+
var deprecatedAPIs = {
|
|
1368
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
1369
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
1370
|
+
};
|
|
1371
|
+
var defineDeprecationWarning = function(methodName, info) {
|
|
1372
|
+
Object.defineProperty(Component.prototype, methodName, {
|
|
1373
|
+
get: function() {
|
|
1374
|
+
warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
1375
|
+
return void 0;
|
|
1376
|
+
}
|
|
1377
|
+
});
|
|
1378
|
+
};
|
|
1379
|
+
for (var fnName in deprecatedAPIs) {
|
|
1380
|
+
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
1381
|
+
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
}
|
|
1385
|
+
function ComponentDummy() {
|
|
1386
|
+
}
|
|
1387
|
+
ComponentDummy.prototype = Component.prototype;
|
|
1388
|
+
function PureComponent(props, context, updater) {
|
|
1389
|
+
this.props = props;
|
|
1390
|
+
this.context = context;
|
|
1391
|
+
this.refs = emptyObject;
|
|
1392
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
1393
|
+
}
|
|
1394
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
1395
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
1396
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
1397
|
+
pureComponentPrototype.isPureReactComponent = true;
|
|
1398
|
+
function createRef() {
|
|
1399
|
+
var refObject = {
|
|
1400
|
+
current: null
|
|
1401
|
+
};
|
|
1402
|
+
{
|
|
1403
|
+
Object.seal(refObject);
|
|
1404
|
+
}
|
|
1405
|
+
return refObject;
|
|
1406
|
+
}
|
|
1407
|
+
var isArrayImpl = Array.isArray;
|
|
1408
|
+
function isArray(a) {
|
|
1409
|
+
return isArrayImpl(a);
|
|
1410
|
+
}
|
|
1411
|
+
function typeName(value) {
|
|
1412
|
+
{
|
|
1413
|
+
var hasToStringTag = typeof Symbol === "function" && Symbol.toStringTag;
|
|
1414
|
+
var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1415
|
+
return type;
|
|
1416
|
+
}
|
|
1417
|
+
}
|
|
1418
|
+
function willCoercionThrow(value) {
|
|
1419
|
+
{
|
|
1420
|
+
try {
|
|
1421
|
+
testStringCoercion(value);
|
|
1422
|
+
return false;
|
|
1423
|
+
} catch (e) {
|
|
1424
|
+
return true;
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
function testStringCoercion(value) {
|
|
1429
|
+
return "" + value;
|
|
1430
|
+
}
|
|
1431
|
+
function checkKeyStringCoercion(value) {
|
|
1432
|
+
{
|
|
1433
|
+
if (willCoercionThrow(value)) {
|
|
1434
|
+
error("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", typeName(value));
|
|
1435
|
+
return testStringCoercion(value);
|
|
1436
|
+
}
|
|
1437
|
+
}
|
|
1438
|
+
}
|
|
1439
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
1440
|
+
var displayName = outerType.displayName;
|
|
1441
|
+
if (displayName) {
|
|
1442
|
+
return displayName;
|
|
1443
|
+
}
|
|
1444
|
+
var functionName = innerType.displayName || innerType.name || "";
|
|
1445
|
+
return functionName !== "" ? wrapperName + "(" + functionName + ")" : wrapperName;
|
|
1446
|
+
}
|
|
1447
|
+
function getContextName(type) {
|
|
1448
|
+
return type.displayName || "Context";
|
|
1449
|
+
}
|
|
1450
|
+
function getComponentNameFromType(type) {
|
|
1451
|
+
if (type == null) {
|
|
1452
|
+
return null;
|
|
1453
|
+
}
|
|
1454
|
+
{
|
|
1455
|
+
if (typeof type.tag === "number") {
|
|
1456
|
+
error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.");
|
|
1457
|
+
}
|
|
1458
|
+
}
|
|
1459
|
+
if (typeof type === "function") {
|
|
1460
|
+
return type.displayName || type.name || null;
|
|
1461
|
+
}
|
|
1462
|
+
if (typeof type === "string") {
|
|
1463
|
+
return type;
|
|
1464
|
+
}
|
|
1465
|
+
switch (type) {
|
|
1466
|
+
case REACT_FRAGMENT_TYPE:
|
|
1467
|
+
return "Fragment";
|
|
1468
|
+
case REACT_PORTAL_TYPE:
|
|
1469
|
+
return "Portal";
|
|
1470
|
+
case REACT_PROFILER_TYPE:
|
|
1471
|
+
return "Profiler";
|
|
1472
|
+
case REACT_STRICT_MODE_TYPE:
|
|
1473
|
+
return "StrictMode";
|
|
1474
|
+
case REACT_SUSPENSE_TYPE:
|
|
1475
|
+
return "Suspense";
|
|
1476
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
1477
|
+
return "SuspenseList";
|
|
1478
|
+
}
|
|
1479
|
+
if (typeof type === "object") {
|
|
1480
|
+
switch (type.$$typeof) {
|
|
1481
|
+
case REACT_CONTEXT_TYPE:
|
|
1482
|
+
var context = type;
|
|
1483
|
+
return getContextName(context) + ".Consumer";
|
|
1484
|
+
case REACT_PROVIDER_TYPE:
|
|
1485
|
+
var provider = type;
|
|
1486
|
+
return getContextName(provider._context) + ".Provider";
|
|
1487
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1488
|
+
return getWrappedName(type, type.render, "ForwardRef");
|
|
1489
|
+
case REACT_MEMO_TYPE:
|
|
1490
|
+
var outerName = type.displayName || null;
|
|
1491
|
+
if (outerName !== null) {
|
|
1492
|
+
return outerName;
|
|
1493
|
+
}
|
|
1494
|
+
return getComponentNameFromType(type.type) || "Memo";
|
|
1495
|
+
case REACT_LAZY_TYPE: {
|
|
1496
|
+
var lazyComponent = type;
|
|
1497
|
+
var payload = lazyComponent._payload;
|
|
1498
|
+
var init = lazyComponent._init;
|
|
1499
|
+
try {
|
|
1500
|
+
return getComponentNameFromType(init(payload));
|
|
1501
|
+
} catch (x) {
|
|
1502
|
+
return null;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
return null;
|
|
1508
|
+
}
|
|
1509
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1510
|
+
var RESERVED_PROPS = {
|
|
1511
|
+
key: true,
|
|
1512
|
+
ref: true,
|
|
1513
|
+
__self: true,
|
|
1514
|
+
__source: true
|
|
1515
|
+
};
|
|
1516
|
+
var specialPropKeyWarningShown, specialPropRefWarningShown, didWarnAboutStringRefs;
|
|
1517
|
+
{
|
|
1518
|
+
didWarnAboutStringRefs = {};
|
|
1519
|
+
}
|
|
1520
|
+
function hasValidRef(config) {
|
|
1521
|
+
{
|
|
1522
|
+
if (hasOwnProperty.call(config, "ref")) {
|
|
1523
|
+
var getter = Object.getOwnPropertyDescriptor(config, "ref").get;
|
|
1524
|
+
if (getter && getter.isReactWarning) {
|
|
1525
|
+
return false;
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
return config.ref !== void 0;
|
|
1530
|
+
}
|
|
1531
|
+
function hasValidKey(config) {
|
|
1532
|
+
{
|
|
1533
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1534
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1535
|
+
if (getter && getter.isReactWarning) {
|
|
1536
|
+
return false;
|
|
1537
|
+
}
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
return config.key !== void 0;
|
|
1541
|
+
}
|
|
1542
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
1543
|
+
var warnAboutAccessingKey = function() {
|
|
1544
|
+
{
|
|
1545
|
+
if (!specialPropKeyWarningShown) {
|
|
1546
|
+
specialPropKeyWarningShown = true;
|
|
1547
|
+
error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
};
|
|
1551
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
1552
|
+
Object.defineProperty(props, "key", {
|
|
1553
|
+
get: warnAboutAccessingKey,
|
|
1554
|
+
configurable: true
|
|
1555
|
+
});
|
|
1556
|
+
}
|
|
1557
|
+
function defineRefPropWarningGetter(props, displayName) {
|
|
1558
|
+
var warnAboutAccessingRef = function() {
|
|
1559
|
+
{
|
|
1560
|
+
if (!specialPropRefWarningShown) {
|
|
1561
|
+
specialPropRefWarningShown = true;
|
|
1562
|
+
error("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", displayName);
|
|
1563
|
+
}
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1566
|
+
warnAboutAccessingRef.isReactWarning = true;
|
|
1567
|
+
Object.defineProperty(props, "ref", {
|
|
1568
|
+
get: warnAboutAccessingRef,
|
|
1569
|
+
configurable: true
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
function warnIfStringRefCannotBeAutoConverted(config) {
|
|
1573
|
+
{
|
|
1574
|
+
if (typeof config.ref === "string" && ReactCurrentOwner.current && config.__self && ReactCurrentOwner.current.stateNode !== config.__self) {
|
|
1575
|
+
var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
1576
|
+
if (!didWarnAboutStringRefs[componentName]) {
|
|
1577
|
+
error('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', componentName, config.ref);
|
|
1578
|
+
didWarnAboutStringRefs[componentName] = true;
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
var ReactElement = function(type, key, ref, self, source, owner, props) {
|
|
1584
|
+
var element = {
|
|
1585
|
+
// This tag allows us to uniquely identify this as a React Element
|
|
1586
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1587
|
+
// Built-in properties that belong on the element
|
|
1588
|
+
type,
|
|
1589
|
+
key,
|
|
1590
|
+
ref,
|
|
1591
|
+
props,
|
|
1592
|
+
// Record the component responsible for creating this element.
|
|
1593
|
+
_owner: owner
|
|
1594
|
+
};
|
|
1595
|
+
{
|
|
1596
|
+
element._store = {};
|
|
1597
|
+
Object.defineProperty(element._store, "validated", {
|
|
1598
|
+
configurable: false,
|
|
1599
|
+
enumerable: false,
|
|
1600
|
+
writable: true,
|
|
1601
|
+
value: false
|
|
1602
|
+
});
|
|
1603
|
+
Object.defineProperty(element, "_self", {
|
|
1604
|
+
configurable: false,
|
|
1605
|
+
enumerable: false,
|
|
1606
|
+
writable: false,
|
|
1607
|
+
value: self
|
|
1608
|
+
});
|
|
1609
|
+
Object.defineProperty(element, "_source", {
|
|
1610
|
+
configurable: false,
|
|
1611
|
+
enumerable: false,
|
|
1612
|
+
writable: false,
|
|
1613
|
+
value: source
|
|
1614
|
+
});
|
|
1615
|
+
if (Object.freeze) {
|
|
1616
|
+
Object.freeze(element.props);
|
|
1617
|
+
Object.freeze(element);
|
|
1618
|
+
}
|
|
1619
|
+
}
|
|
1620
|
+
return element;
|
|
1621
|
+
};
|
|
1622
|
+
function createElement(type, config, children) {
|
|
1623
|
+
var propName;
|
|
1624
|
+
var props = {};
|
|
1625
|
+
var key = null;
|
|
1626
|
+
var ref = null;
|
|
1627
|
+
var self = null;
|
|
1628
|
+
var source = null;
|
|
1629
|
+
if (config != null) {
|
|
1630
|
+
if (hasValidRef(config)) {
|
|
1631
|
+
ref = config.ref;
|
|
1632
|
+
{
|
|
1633
|
+
warnIfStringRefCannotBeAutoConverted(config);
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
if (hasValidKey(config)) {
|
|
1637
|
+
{
|
|
1638
|
+
checkKeyStringCoercion(config.key);
|
|
1639
|
+
}
|
|
1640
|
+
key = "" + config.key;
|
|
1641
|
+
}
|
|
1642
|
+
self = config.__self === void 0 ? null : config.__self;
|
|
1643
|
+
source = config.__source === void 0 ? null : config.__source;
|
|
1644
|
+
for (propName in config) {
|
|
1645
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
1646
|
+
props[propName] = config[propName];
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
var childrenLength = arguments.length - 2;
|
|
1651
|
+
if (childrenLength === 1) {
|
|
1652
|
+
props.children = children;
|
|
1653
|
+
} else if (childrenLength > 1) {
|
|
1654
|
+
var childArray = Array(childrenLength);
|
|
1655
|
+
for (var i = 0; i < childrenLength; i++) {
|
|
1656
|
+
childArray[i] = arguments[i + 2];
|
|
1657
|
+
}
|
|
1658
|
+
{
|
|
1659
|
+
if (Object.freeze) {
|
|
1660
|
+
Object.freeze(childArray);
|
|
1661
|
+
}
|
|
1662
|
+
}
|
|
1663
|
+
props.children = childArray;
|
|
1664
|
+
}
|
|
1665
|
+
if (type && type.defaultProps) {
|
|
1666
|
+
var defaultProps = type.defaultProps;
|
|
1667
|
+
for (propName in defaultProps) {
|
|
1668
|
+
if (props[propName] === void 0) {
|
|
1669
|
+
props[propName] = defaultProps[propName];
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
{
|
|
1674
|
+
if (key || ref) {
|
|
1675
|
+
var displayName = typeof type === "function" ? type.displayName || type.name || "Unknown" : type;
|
|
1676
|
+
if (key) {
|
|
1677
|
+
defineKeyPropWarningGetter(props, displayName);
|
|
1678
|
+
}
|
|
1679
|
+
if (ref) {
|
|
1680
|
+
defineRefPropWarningGetter(props, displayName);
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
|
|
1685
|
+
}
|
|
1686
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
1687
|
+
var newElement = ReactElement(oldElement.type, newKey, oldElement.ref, oldElement._self, oldElement._source, oldElement._owner, oldElement.props);
|
|
1688
|
+
return newElement;
|
|
1689
|
+
}
|
|
1690
|
+
function cloneElement(element, config, children) {
|
|
1691
|
+
if (element === null || element === void 0) {
|
|
1692
|
+
throw new Error("React.cloneElement(...): The argument must be a React element, but you passed " + element + ".");
|
|
1693
|
+
}
|
|
1694
|
+
var propName;
|
|
1695
|
+
var props = assign({}, element.props);
|
|
1696
|
+
var key = element.key;
|
|
1697
|
+
var ref = element.ref;
|
|
1698
|
+
var self = element._self;
|
|
1699
|
+
var source = element._source;
|
|
1700
|
+
var owner = element._owner;
|
|
1701
|
+
if (config != null) {
|
|
1702
|
+
if (hasValidRef(config)) {
|
|
1703
|
+
ref = config.ref;
|
|
1704
|
+
owner = ReactCurrentOwner.current;
|
|
1705
|
+
}
|
|
1706
|
+
if (hasValidKey(config)) {
|
|
1707
|
+
{
|
|
1708
|
+
checkKeyStringCoercion(config.key);
|
|
1709
|
+
}
|
|
1710
|
+
key = "" + config.key;
|
|
1711
|
+
}
|
|
1712
|
+
var defaultProps;
|
|
1713
|
+
if (element.type && element.type.defaultProps) {
|
|
1714
|
+
defaultProps = element.type.defaultProps;
|
|
1715
|
+
}
|
|
1716
|
+
for (propName in config) {
|
|
1717
|
+
if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
|
|
1718
|
+
if (config[propName] === void 0 && defaultProps !== void 0) {
|
|
1719
|
+
props[propName] = defaultProps[propName];
|
|
1720
|
+
} else {
|
|
1721
|
+
props[propName] = config[propName];
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1724
|
+
}
|
|
1725
|
+
}
|
|
1726
|
+
var childrenLength = arguments.length - 2;
|
|
1727
|
+
if (childrenLength === 1) {
|
|
1728
|
+
props.children = children;
|
|
1729
|
+
} else if (childrenLength > 1) {
|
|
1730
|
+
var childArray = Array(childrenLength);
|
|
1731
|
+
for (var i = 0; i < childrenLength; i++) {
|
|
1732
|
+
childArray[i] = arguments[i + 2];
|
|
1733
|
+
}
|
|
1734
|
+
props.children = childArray;
|
|
1735
|
+
}
|
|
1736
|
+
return ReactElement(element.type, key, ref, self, source, owner, props);
|
|
1737
|
+
}
|
|
1738
|
+
function isValidElement(object) {
|
|
1739
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1740
|
+
}
|
|
1741
|
+
var SEPARATOR = ".";
|
|
1742
|
+
var SUBSEPARATOR = ":";
|
|
1743
|
+
function escape(key) {
|
|
1744
|
+
var escapeRegex = /[=:]/g;
|
|
1745
|
+
var escaperLookup = {
|
|
1746
|
+
"=": "=0",
|
|
1747
|
+
":": "=2"
|
|
1748
|
+
};
|
|
1749
|
+
var escapedString = key.replace(escapeRegex, function(match) {
|
|
1750
|
+
return escaperLookup[match];
|
|
1751
|
+
});
|
|
1752
|
+
return "$" + escapedString;
|
|
1753
|
+
}
|
|
1754
|
+
var didWarnAboutMaps = false;
|
|
1755
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
1756
|
+
function escapeUserProvidedKey(text) {
|
|
1757
|
+
return text.replace(userProvidedKeyEscapeRegex, "$&/");
|
|
1758
|
+
}
|
|
1759
|
+
function getElementKey(element, index) {
|
|
1760
|
+
if (typeof element === "object" && element !== null && element.key != null) {
|
|
1761
|
+
{
|
|
1762
|
+
checkKeyStringCoercion(element.key);
|
|
1763
|
+
}
|
|
1764
|
+
return escape("" + element.key);
|
|
1765
|
+
}
|
|
1766
|
+
return index.toString(36);
|
|
1767
|
+
}
|
|
1768
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
1769
|
+
var type = typeof children;
|
|
1770
|
+
if (type === "undefined" || type === "boolean") {
|
|
1771
|
+
children = null;
|
|
1772
|
+
}
|
|
1773
|
+
var invokeCallback = false;
|
|
1774
|
+
if (children === null) {
|
|
1775
|
+
invokeCallback = true;
|
|
1776
|
+
} else {
|
|
1777
|
+
switch (type) {
|
|
1778
|
+
case "string":
|
|
1779
|
+
case "number":
|
|
1780
|
+
invokeCallback = true;
|
|
1781
|
+
break;
|
|
1782
|
+
case "object":
|
|
1783
|
+
switch (children.$$typeof) {
|
|
1784
|
+
case REACT_ELEMENT_TYPE:
|
|
1785
|
+
case REACT_PORTAL_TYPE:
|
|
1786
|
+
invokeCallback = true;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
if (invokeCallback) {
|
|
1791
|
+
var _child = children;
|
|
1792
|
+
var mappedChild = callback(_child);
|
|
1793
|
+
var childKey = nameSoFar === "" ? SEPARATOR + getElementKey(_child, 0) : nameSoFar;
|
|
1794
|
+
if (isArray(mappedChild)) {
|
|
1795
|
+
var escapedChildKey = "";
|
|
1796
|
+
if (childKey != null) {
|
|
1797
|
+
escapedChildKey = escapeUserProvidedKey(childKey) + "/";
|
|
1798
|
+
}
|
|
1799
|
+
mapIntoArray(mappedChild, array, escapedChildKey, "", function(c) {
|
|
1800
|
+
return c;
|
|
1801
|
+
});
|
|
1802
|
+
} else if (mappedChild != null) {
|
|
1803
|
+
if (isValidElement(mappedChild)) {
|
|
1804
|
+
{
|
|
1805
|
+
if (mappedChild.key && (!_child || _child.key !== mappedChild.key)) {
|
|
1806
|
+
checkKeyStringCoercion(mappedChild.key);
|
|
1807
|
+
}
|
|
1808
|
+
}
|
|
1809
|
+
mappedChild = cloneAndReplaceKey(
|
|
1810
|
+
mappedChild,
|
|
1811
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
1812
|
+
// traverseAllChildren used to do for objects as children
|
|
1813
|
+
escapedPrefix + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
1814
|
+
(mappedChild.key && (!_child || _child.key !== mappedChild.key) ? (
|
|
1815
|
+
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
1816
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
1817
|
+
escapeUserProvidedKey("" + mappedChild.key) + "/"
|
|
1818
|
+
) : "") + childKey
|
|
1819
|
+
);
|
|
1820
|
+
}
|
|
1821
|
+
array.push(mappedChild);
|
|
1822
|
+
}
|
|
1823
|
+
return 1;
|
|
1824
|
+
}
|
|
1825
|
+
var child;
|
|
1826
|
+
var nextName;
|
|
1827
|
+
var subtreeCount = 0;
|
|
1828
|
+
var nextNamePrefix = nameSoFar === "" ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1829
|
+
if (isArray(children)) {
|
|
1830
|
+
for (var i = 0; i < children.length; i++) {
|
|
1831
|
+
child = children[i];
|
|
1832
|
+
nextName = nextNamePrefix + getElementKey(child, i);
|
|
1833
|
+
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1834
|
+
}
|
|
1835
|
+
} else {
|
|
1836
|
+
var iteratorFn = getIteratorFn(children);
|
|
1837
|
+
if (typeof iteratorFn === "function") {
|
|
1838
|
+
var iterableChildren = children;
|
|
1839
|
+
{
|
|
1840
|
+
if (iteratorFn === iterableChildren.entries) {
|
|
1841
|
+
if (!didWarnAboutMaps) {
|
|
1842
|
+
warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead.");
|
|
1843
|
+
}
|
|
1844
|
+
didWarnAboutMaps = true;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
var iterator = iteratorFn.call(iterableChildren);
|
|
1848
|
+
var step;
|
|
1849
|
+
var ii = 0;
|
|
1850
|
+
while (!(step = iterator.next()).done) {
|
|
1851
|
+
child = step.value;
|
|
1852
|
+
nextName = nextNamePrefix + getElementKey(child, ii++);
|
|
1853
|
+
subtreeCount += mapIntoArray(child, array, escapedPrefix, nextName, callback);
|
|
1854
|
+
}
|
|
1855
|
+
} else if (type === "object") {
|
|
1856
|
+
var childrenString = String(children);
|
|
1857
|
+
throw new Error("Objects are not valid as a React child (found: " + (childrenString === "[object Object]" ? "object with keys {" + Object.keys(children).join(", ") + "}" : childrenString) + "). If you meant to render a collection of children, use an array instead.");
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
return subtreeCount;
|
|
1861
|
+
}
|
|
1862
|
+
function mapChildren(children, func, context) {
|
|
1863
|
+
if (children == null) {
|
|
1864
|
+
return children;
|
|
1865
|
+
}
|
|
1866
|
+
var result = [];
|
|
1867
|
+
var count = 0;
|
|
1868
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
1869
|
+
return func.call(context, child, count++);
|
|
1870
|
+
});
|
|
1871
|
+
return result;
|
|
1872
|
+
}
|
|
1873
|
+
function countChildren(children) {
|
|
1874
|
+
var n = 0;
|
|
1875
|
+
mapChildren(children, function() {
|
|
1876
|
+
n++;
|
|
1877
|
+
});
|
|
1878
|
+
return n;
|
|
1879
|
+
}
|
|
1880
|
+
function forEachChildren(children, forEachFunc, forEachContext) {
|
|
1881
|
+
mapChildren(children, function() {
|
|
1882
|
+
forEachFunc.apply(this, arguments);
|
|
1883
|
+
}, forEachContext);
|
|
1884
|
+
}
|
|
1885
|
+
function toArray(children) {
|
|
1886
|
+
return mapChildren(children, function(child) {
|
|
1887
|
+
return child;
|
|
1888
|
+
}) || [];
|
|
1889
|
+
}
|
|
1890
|
+
function onlyChild(children) {
|
|
1891
|
+
if (!isValidElement(children)) {
|
|
1892
|
+
throw new Error("React.Children.only expected to receive a single React element child.");
|
|
1893
|
+
}
|
|
1894
|
+
return children;
|
|
1895
|
+
}
|
|
1896
|
+
function createContext(defaultValue) {
|
|
1897
|
+
var context = {
|
|
1898
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1899
|
+
// As a workaround to support multiple concurrent renderers, we categorize
|
|
1900
|
+
// some renderers as primary and others as secondary. We only expect
|
|
1901
|
+
// there to be two concurrent renderers at most: React Native (primary) and
|
|
1902
|
+
// Fabric (secondary); React DOM (primary) and React ART (secondary).
|
|
1903
|
+
// Secondary renderers store their context values on separate fields.
|
|
1904
|
+
_currentValue: defaultValue,
|
|
1905
|
+
_currentValue2: defaultValue,
|
|
1906
|
+
// Used to track how many concurrent renderers this context currently
|
|
1907
|
+
// supports within in a single renderer. Such as parallel server rendering.
|
|
1908
|
+
_threadCount: 0,
|
|
1909
|
+
// These are circular
|
|
1910
|
+
Provider: null,
|
|
1911
|
+
Consumer: null,
|
|
1912
|
+
// Add these to use same hidden class in VM as ServerContext
|
|
1913
|
+
_defaultValue: null,
|
|
1914
|
+
_globalName: null
|
|
1915
|
+
};
|
|
1916
|
+
context.Provider = {
|
|
1917
|
+
$$typeof: REACT_PROVIDER_TYPE,
|
|
1918
|
+
_context: context
|
|
1919
|
+
};
|
|
1920
|
+
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1921
|
+
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1922
|
+
var hasWarnedAboutDisplayNameOnConsumer = false;
|
|
1923
|
+
{
|
|
1924
|
+
var Consumer = {
|
|
1925
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1926
|
+
_context: context
|
|
1927
|
+
};
|
|
1928
|
+
Object.defineProperties(Consumer, {
|
|
1929
|
+
Provider: {
|
|
1930
|
+
get: function() {
|
|
1931
|
+
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1932
|
+
hasWarnedAboutUsingConsumerProvider = true;
|
|
1933
|
+
error("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?");
|
|
1934
|
+
}
|
|
1935
|
+
return context.Provider;
|
|
1936
|
+
},
|
|
1937
|
+
set: function(_Provider) {
|
|
1938
|
+
context.Provider = _Provider;
|
|
1939
|
+
}
|
|
1940
|
+
},
|
|
1941
|
+
_currentValue: {
|
|
1942
|
+
get: function() {
|
|
1943
|
+
return context._currentValue;
|
|
1944
|
+
},
|
|
1945
|
+
set: function(_currentValue) {
|
|
1946
|
+
context._currentValue = _currentValue;
|
|
1947
|
+
}
|
|
1948
|
+
},
|
|
1949
|
+
_currentValue2: {
|
|
1950
|
+
get: function() {
|
|
1951
|
+
return context._currentValue2;
|
|
1952
|
+
},
|
|
1953
|
+
set: function(_currentValue2) {
|
|
1954
|
+
context._currentValue2 = _currentValue2;
|
|
1955
|
+
}
|
|
1956
|
+
},
|
|
1957
|
+
_threadCount: {
|
|
1958
|
+
get: function() {
|
|
1959
|
+
return context._threadCount;
|
|
1960
|
+
},
|
|
1961
|
+
set: function(_threadCount) {
|
|
1962
|
+
context._threadCount = _threadCount;
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
Consumer: {
|
|
1966
|
+
get: function() {
|
|
1967
|
+
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1968
|
+
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1969
|
+
error("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?");
|
|
1970
|
+
}
|
|
1971
|
+
return context.Consumer;
|
|
1972
|
+
}
|
|
1973
|
+
},
|
|
1974
|
+
displayName: {
|
|
1975
|
+
get: function() {
|
|
1976
|
+
return context.displayName;
|
|
1977
|
+
},
|
|
1978
|
+
set: function(displayName) {
|
|
1979
|
+
if (!hasWarnedAboutDisplayNameOnConsumer) {
|
|
1980
|
+
warn("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.", displayName);
|
|
1981
|
+
hasWarnedAboutDisplayNameOnConsumer = true;
|
|
1982
|
+
}
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
});
|
|
1986
|
+
context.Consumer = Consumer;
|
|
1987
|
+
}
|
|
1988
|
+
{
|
|
1989
|
+
context._currentRenderer = null;
|
|
1990
|
+
context._currentRenderer2 = null;
|
|
1991
|
+
}
|
|
1992
|
+
return context;
|
|
1993
|
+
}
|
|
1994
|
+
var Uninitialized = -1;
|
|
1995
|
+
var Pending = 0;
|
|
1996
|
+
var Resolved = 1;
|
|
1997
|
+
var Rejected = 2;
|
|
1998
|
+
function lazyInitializer(payload) {
|
|
1999
|
+
if (payload._status === Uninitialized) {
|
|
2000
|
+
var ctor = payload._result;
|
|
2001
|
+
var thenable = ctor();
|
|
2002
|
+
thenable.then(function(moduleObject2) {
|
|
2003
|
+
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
2004
|
+
var resolved = payload;
|
|
2005
|
+
resolved._status = Resolved;
|
|
2006
|
+
resolved._result = moduleObject2;
|
|
2007
|
+
}
|
|
2008
|
+
}, function(error2) {
|
|
2009
|
+
if (payload._status === Pending || payload._status === Uninitialized) {
|
|
2010
|
+
var rejected = payload;
|
|
2011
|
+
rejected._status = Rejected;
|
|
2012
|
+
rejected._result = error2;
|
|
2013
|
+
}
|
|
2014
|
+
});
|
|
2015
|
+
if (payload._status === Uninitialized) {
|
|
2016
|
+
var pending = payload;
|
|
2017
|
+
pending._status = Pending;
|
|
2018
|
+
pending._result = thenable;
|
|
2019
|
+
}
|
|
2020
|
+
}
|
|
2021
|
+
if (payload._status === Resolved) {
|
|
2022
|
+
var moduleObject = payload._result;
|
|
2023
|
+
{
|
|
2024
|
+
if (moduleObject === void 0) {
|
|
2025
|
+
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", moduleObject);
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
{
|
|
2029
|
+
if (!("default" in moduleObject)) {
|
|
2030
|
+
error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", moduleObject);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
return moduleObject.default;
|
|
2034
|
+
} else {
|
|
2035
|
+
throw payload._result;
|
|
2036
|
+
}
|
|
2037
|
+
}
|
|
2038
|
+
function lazy(ctor) {
|
|
2039
|
+
var payload = {
|
|
2040
|
+
// We use these fields to store the result.
|
|
2041
|
+
_status: Uninitialized,
|
|
2042
|
+
_result: ctor
|
|
2043
|
+
};
|
|
2044
|
+
var lazyType = {
|
|
2045
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
2046
|
+
_payload: payload,
|
|
2047
|
+
_init: lazyInitializer
|
|
2048
|
+
};
|
|
2049
|
+
{
|
|
2050
|
+
var defaultProps;
|
|
2051
|
+
var propTypes;
|
|
2052
|
+
Object.defineProperties(lazyType, {
|
|
2053
|
+
defaultProps: {
|
|
2054
|
+
configurable: true,
|
|
2055
|
+
get: function() {
|
|
2056
|
+
return defaultProps;
|
|
2057
|
+
},
|
|
2058
|
+
set: function(newDefaultProps) {
|
|
2059
|
+
error("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
2060
|
+
defaultProps = newDefaultProps;
|
|
2061
|
+
Object.defineProperty(lazyType, "defaultProps", {
|
|
2062
|
+
enumerable: true
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
propTypes: {
|
|
2067
|
+
configurable: true,
|
|
2068
|
+
get: function() {
|
|
2069
|
+
return propTypes;
|
|
2070
|
+
},
|
|
2071
|
+
set: function(newPropTypes) {
|
|
2072
|
+
error("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it.");
|
|
2073
|
+
propTypes = newPropTypes;
|
|
2074
|
+
Object.defineProperty(lazyType, "propTypes", {
|
|
2075
|
+
enumerable: true
|
|
2076
|
+
});
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
});
|
|
2080
|
+
}
|
|
2081
|
+
return lazyType;
|
|
2082
|
+
}
|
|
2083
|
+
function forwardRef(render) {
|
|
2084
|
+
{
|
|
2085
|
+
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
2086
|
+
error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).");
|
|
2087
|
+
} else if (typeof render !== "function") {
|
|
2088
|
+
error("forwardRef requires a render function but was given %s.", render === null ? "null" : typeof render);
|
|
2089
|
+
} else {
|
|
2090
|
+
if (render.length !== 0 && render.length !== 2) {
|
|
2091
|
+
error("forwardRef render functions accept exactly two parameters: props and ref. %s", render.length === 1 ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
2092
|
+
}
|
|
2093
|
+
}
|
|
2094
|
+
if (render != null) {
|
|
2095
|
+
if (render.defaultProps != null || render.propTypes != null) {
|
|
2096
|
+
error("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
var elementType = {
|
|
2101
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
2102
|
+
render
|
|
2103
|
+
};
|
|
2104
|
+
{
|
|
2105
|
+
var ownName;
|
|
2106
|
+
Object.defineProperty(elementType, "displayName", {
|
|
2107
|
+
enumerable: false,
|
|
2108
|
+
configurable: true,
|
|
2109
|
+
get: function() {
|
|
2110
|
+
return ownName;
|
|
2111
|
+
},
|
|
2112
|
+
set: function(name) {
|
|
2113
|
+
ownName = name;
|
|
2114
|
+
if (!render.name && !render.displayName) {
|
|
2115
|
+
render.displayName = name;
|
|
2116
|
+
}
|
|
2117
|
+
}
|
|
2118
|
+
});
|
|
2119
|
+
}
|
|
2120
|
+
return elementType;
|
|
2121
|
+
}
|
|
2122
|
+
var REACT_MODULE_REFERENCE;
|
|
2123
|
+
{
|
|
2124
|
+
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
|
2125
|
+
}
|
|
2126
|
+
function isValidElementType(type) {
|
|
2127
|
+
if (typeof type === "string" || typeof type === "function") {
|
|
2128
|
+
return true;
|
|
2129
|
+
}
|
|
2130
|
+
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
2131
|
+
return true;
|
|
2132
|
+
}
|
|
2133
|
+
if (typeof type === "object" && type !== null) {
|
|
2134
|
+
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
2135
|
+
// types supported by any Flight configuration anywhere since
|
|
2136
|
+
// we don't know which Flight build this will end up being used
|
|
2137
|
+
// with.
|
|
2138
|
+
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== void 0) {
|
|
2139
|
+
return true;
|
|
2140
|
+
}
|
|
2141
|
+
}
|
|
2142
|
+
return false;
|
|
2143
|
+
}
|
|
2144
|
+
function memo(type, compare) {
|
|
2145
|
+
{
|
|
2146
|
+
if (!isValidElementType(type)) {
|
|
2147
|
+
error("memo: The first argument must be a component. Instead received: %s", type === null ? "null" : typeof type);
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
var elementType = {
|
|
2151
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
2152
|
+
type,
|
|
2153
|
+
compare: compare === void 0 ? null : compare
|
|
2154
|
+
};
|
|
2155
|
+
{
|
|
2156
|
+
var ownName;
|
|
2157
|
+
Object.defineProperty(elementType, "displayName", {
|
|
2158
|
+
enumerable: false,
|
|
2159
|
+
configurable: true,
|
|
2160
|
+
get: function() {
|
|
2161
|
+
return ownName;
|
|
2162
|
+
},
|
|
2163
|
+
set: function(name) {
|
|
2164
|
+
ownName = name;
|
|
2165
|
+
if (!type.name && !type.displayName) {
|
|
2166
|
+
type.displayName = name;
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2169
|
+
});
|
|
2170
|
+
}
|
|
2171
|
+
return elementType;
|
|
2172
|
+
}
|
|
2173
|
+
function resolveDispatcher() {
|
|
2174
|
+
var dispatcher = ReactCurrentDispatcher.current;
|
|
2175
|
+
{
|
|
2176
|
+
if (dispatcher === null) {
|
|
2177
|
+
error("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://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
return dispatcher;
|
|
2181
|
+
}
|
|
2182
|
+
function useContext(Context) {
|
|
2183
|
+
var dispatcher = resolveDispatcher();
|
|
2184
|
+
{
|
|
2185
|
+
if (Context._context !== void 0) {
|
|
2186
|
+
var realContext = Context._context;
|
|
2187
|
+
if (realContext.Consumer === Context) {
|
|
2188
|
+
error("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?");
|
|
2189
|
+
} else if (realContext.Provider === Context) {
|
|
2190
|
+
error("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?");
|
|
2191
|
+
}
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
return dispatcher.useContext(Context);
|
|
2195
|
+
}
|
|
2196
|
+
function useState(initialState) {
|
|
2197
|
+
var dispatcher = resolveDispatcher();
|
|
2198
|
+
return dispatcher.useState(initialState);
|
|
2199
|
+
}
|
|
2200
|
+
function useReducer(reducer, initialArg, init) {
|
|
2201
|
+
var dispatcher = resolveDispatcher();
|
|
2202
|
+
return dispatcher.useReducer(reducer, initialArg, init);
|
|
2203
|
+
}
|
|
2204
|
+
function useRef(initialValue) {
|
|
2205
|
+
var dispatcher = resolveDispatcher();
|
|
2206
|
+
return dispatcher.useRef(initialValue);
|
|
2207
|
+
}
|
|
2208
|
+
function useEffect(create, deps) {
|
|
2209
|
+
var dispatcher = resolveDispatcher();
|
|
2210
|
+
return dispatcher.useEffect(create, deps);
|
|
2211
|
+
}
|
|
2212
|
+
function useInsertionEffect(create, deps) {
|
|
2213
|
+
var dispatcher = resolveDispatcher();
|
|
2214
|
+
return dispatcher.useInsertionEffect(create, deps);
|
|
2215
|
+
}
|
|
2216
|
+
function useLayoutEffect(create, deps) {
|
|
2217
|
+
var dispatcher = resolveDispatcher();
|
|
2218
|
+
return dispatcher.useLayoutEffect(create, deps);
|
|
2219
|
+
}
|
|
2220
|
+
function useCallback(callback, deps) {
|
|
2221
|
+
var dispatcher = resolveDispatcher();
|
|
2222
|
+
return dispatcher.useCallback(callback, deps);
|
|
2223
|
+
}
|
|
2224
|
+
function useMemo(create, deps) {
|
|
2225
|
+
var dispatcher = resolveDispatcher();
|
|
2226
|
+
return dispatcher.useMemo(create, deps);
|
|
2227
|
+
}
|
|
2228
|
+
function useImperativeHandle(ref, create, deps) {
|
|
2229
|
+
var dispatcher = resolveDispatcher();
|
|
2230
|
+
return dispatcher.useImperativeHandle(ref, create, deps);
|
|
2231
|
+
}
|
|
2232
|
+
function useDebugValue(value, formatterFn) {
|
|
2233
|
+
{
|
|
2234
|
+
var dispatcher = resolveDispatcher();
|
|
2235
|
+
return dispatcher.useDebugValue(value, formatterFn);
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
function useTransition() {
|
|
2239
|
+
var dispatcher = resolveDispatcher();
|
|
2240
|
+
return dispatcher.useTransition();
|
|
2241
|
+
}
|
|
2242
|
+
function useDeferredValue(value) {
|
|
2243
|
+
var dispatcher = resolveDispatcher();
|
|
2244
|
+
return dispatcher.useDeferredValue(value);
|
|
2245
|
+
}
|
|
2246
|
+
function useId() {
|
|
2247
|
+
var dispatcher = resolveDispatcher();
|
|
2248
|
+
return dispatcher.useId();
|
|
2249
|
+
}
|
|
2250
|
+
function useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot) {
|
|
2251
|
+
var dispatcher = resolveDispatcher();
|
|
2252
|
+
return dispatcher.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
2253
|
+
}
|
|
2254
|
+
var disabledDepth = 0;
|
|
2255
|
+
var prevLog;
|
|
2256
|
+
var prevInfo;
|
|
2257
|
+
var prevWarn;
|
|
2258
|
+
var prevError;
|
|
2259
|
+
var prevGroup;
|
|
2260
|
+
var prevGroupCollapsed;
|
|
2261
|
+
var prevGroupEnd;
|
|
2262
|
+
function disabledLog() {
|
|
2263
|
+
}
|
|
2264
|
+
disabledLog.__reactDisabledLog = true;
|
|
2265
|
+
function disableLogs() {
|
|
2266
|
+
{
|
|
2267
|
+
if (disabledDepth === 0) {
|
|
2268
|
+
prevLog = console.log;
|
|
2269
|
+
prevInfo = console.info;
|
|
2270
|
+
prevWarn = console.warn;
|
|
2271
|
+
prevError = console.error;
|
|
2272
|
+
prevGroup = console.group;
|
|
2273
|
+
prevGroupCollapsed = console.groupCollapsed;
|
|
2274
|
+
prevGroupEnd = console.groupEnd;
|
|
2275
|
+
var props = {
|
|
2276
|
+
configurable: true,
|
|
2277
|
+
enumerable: true,
|
|
2278
|
+
value: disabledLog,
|
|
2279
|
+
writable: true
|
|
2280
|
+
};
|
|
2281
|
+
Object.defineProperties(console, {
|
|
2282
|
+
info: props,
|
|
2283
|
+
log: props,
|
|
2284
|
+
warn: props,
|
|
2285
|
+
error: props,
|
|
2286
|
+
group: props,
|
|
2287
|
+
groupCollapsed: props,
|
|
2288
|
+
groupEnd: props
|
|
2289
|
+
});
|
|
2290
|
+
}
|
|
2291
|
+
disabledDepth++;
|
|
2292
|
+
}
|
|
2293
|
+
}
|
|
2294
|
+
function reenableLogs() {
|
|
2295
|
+
{
|
|
2296
|
+
disabledDepth--;
|
|
2297
|
+
if (disabledDepth === 0) {
|
|
2298
|
+
var props = {
|
|
2299
|
+
configurable: true,
|
|
2300
|
+
enumerable: true,
|
|
2301
|
+
writable: true
|
|
2302
|
+
};
|
|
2303
|
+
Object.defineProperties(console, {
|
|
2304
|
+
log: assign({}, props, {
|
|
2305
|
+
value: prevLog
|
|
2306
|
+
}),
|
|
2307
|
+
info: assign({}, props, {
|
|
2308
|
+
value: prevInfo
|
|
2309
|
+
}),
|
|
2310
|
+
warn: assign({}, props, {
|
|
2311
|
+
value: prevWarn
|
|
2312
|
+
}),
|
|
2313
|
+
error: assign({}, props, {
|
|
2314
|
+
value: prevError
|
|
2315
|
+
}),
|
|
2316
|
+
group: assign({}, props, {
|
|
2317
|
+
value: prevGroup
|
|
2318
|
+
}),
|
|
2319
|
+
groupCollapsed: assign({}, props, {
|
|
2320
|
+
value: prevGroupCollapsed
|
|
2321
|
+
}),
|
|
2322
|
+
groupEnd: assign({}, props, {
|
|
2323
|
+
value: prevGroupEnd
|
|
2324
|
+
})
|
|
2325
|
+
});
|
|
2326
|
+
}
|
|
2327
|
+
if (disabledDepth < 0) {
|
|
2328
|
+
error("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
var ReactCurrentDispatcher$1 = ReactSharedInternals.ReactCurrentDispatcher;
|
|
2333
|
+
var prefix;
|
|
2334
|
+
function describeBuiltInComponentFrame(name, source, ownerFn) {
|
|
2335
|
+
{
|
|
2336
|
+
if (prefix === void 0) {
|
|
2337
|
+
try {
|
|
2338
|
+
throw Error();
|
|
2339
|
+
} catch (x) {
|
|
2340
|
+
var match = x.stack.trim().match(/\n( *(at )?)/);
|
|
2341
|
+
prefix = match && match[1] || "";
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
return "\n" + prefix + name;
|
|
2345
|
+
}
|
|
2346
|
+
}
|
|
2347
|
+
var reentry = false;
|
|
2348
|
+
var componentFrameCache;
|
|
2349
|
+
{
|
|
2350
|
+
var PossiblyWeakMap = typeof WeakMap === "function" ? WeakMap : Map;
|
|
2351
|
+
componentFrameCache = new PossiblyWeakMap();
|
|
2352
|
+
}
|
|
2353
|
+
function describeNativeComponentFrame(fn, construct) {
|
|
2354
|
+
if (!fn || reentry) {
|
|
2355
|
+
return "";
|
|
2356
|
+
}
|
|
2357
|
+
{
|
|
2358
|
+
var frame = componentFrameCache.get(fn);
|
|
2359
|
+
if (frame !== void 0) {
|
|
2360
|
+
return frame;
|
|
2361
|
+
}
|
|
2362
|
+
}
|
|
2363
|
+
var control;
|
|
2364
|
+
reentry = true;
|
|
2365
|
+
var previousPrepareStackTrace = Error.prepareStackTrace;
|
|
2366
|
+
Error.prepareStackTrace = void 0;
|
|
2367
|
+
var previousDispatcher;
|
|
2368
|
+
{
|
|
2369
|
+
previousDispatcher = ReactCurrentDispatcher$1.current;
|
|
2370
|
+
ReactCurrentDispatcher$1.current = null;
|
|
2371
|
+
disableLogs();
|
|
2372
|
+
}
|
|
2373
|
+
try {
|
|
2374
|
+
if (construct) {
|
|
2375
|
+
var Fake = function() {
|
|
2376
|
+
throw Error();
|
|
2377
|
+
};
|
|
2378
|
+
Object.defineProperty(Fake.prototype, "props", {
|
|
2379
|
+
set: function() {
|
|
2380
|
+
throw Error();
|
|
2381
|
+
}
|
|
2382
|
+
});
|
|
2383
|
+
if (typeof Reflect === "object" && Reflect.construct) {
|
|
2384
|
+
try {
|
|
2385
|
+
Reflect.construct(Fake, []);
|
|
2386
|
+
} catch (x) {
|
|
2387
|
+
control = x;
|
|
2388
|
+
}
|
|
2389
|
+
Reflect.construct(fn, [], Fake);
|
|
2390
|
+
} else {
|
|
2391
|
+
try {
|
|
2392
|
+
Fake.call();
|
|
2393
|
+
} catch (x) {
|
|
2394
|
+
control = x;
|
|
2395
|
+
}
|
|
2396
|
+
fn.call(Fake.prototype);
|
|
2397
|
+
}
|
|
2398
|
+
} else {
|
|
2399
|
+
try {
|
|
2400
|
+
throw Error();
|
|
2401
|
+
} catch (x) {
|
|
2402
|
+
control = x;
|
|
2403
|
+
}
|
|
2404
|
+
fn();
|
|
2405
|
+
}
|
|
2406
|
+
} catch (sample) {
|
|
2407
|
+
if (sample && control && typeof sample.stack === "string") {
|
|
2408
|
+
var sampleLines = sample.stack.split("\n");
|
|
2409
|
+
var controlLines = control.stack.split("\n");
|
|
2410
|
+
var s = sampleLines.length - 1;
|
|
2411
|
+
var c = controlLines.length - 1;
|
|
2412
|
+
while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
|
|
2413
|
+
c--;
|
|
2414
|
+
}
|
|
2415
|
+
for (; s >= 1 && c >= 0; s--, c--) {
|
|
2416
|
+
if (sampleLines[s] !== controlLines[c]) {
|
|
2417
|
+
if (s !== 1 || c !== 1) {
|
|
2418
|
+
do {
|
|
2419
|
+
s--;
|
|
2420
|
+
c--;
|
|
2421
|
+
if (c < 0 || sampleLines[s] !== controlLines[c]) {
|
|
2422
|
+
var _frame = "\n" + sampleLines[s].replace(" at new ", " at ");
|
|
2423
|
+
if (fn.displayName && _frame.includes("<anonymous>")) {
|
|
2424
|
+
_frame = _frame.replace("<anonymous>", fn.displayName);
|
|
2425
|
+
}
|
|
2426
|
+
{
|
|
2427
|
+
if (typeof fn === "function") {
|
|
2428
|
+
componentFrameCache.set(fn, _frame);
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
return _frame;
|
|
2432
|
+
}
|
|
2433
|
+
} while (s >= 1 && c >= 0);
|
|
2434
|
+
}
|
|
2435
|
+
break;
|
|
2436
|
+
}
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
} finally {
|
|
2440
|
+
reentry = false;
|
|
2441
|
+
{
|
|
2442
|
+
ReactCurrentDispatcher$1.current = previousDispatcher;
|
|
2443
|
+
reenableLogs();
|
|
2444
|
+
}
|
|
2445
|
+
Error.prepareStackTrace = previousPrepareStackTrace;
|
|
2446
|
+
}
|
|
2447
|
+
var name = fn ? fn.displayName || fn.name : "";
|
|
2448
|
+
var syntheticFrame = name ? describeBuiltInComponentFrame(name) : "";
|
|
2449
|
+
{
|
|
2450
|
+
if (typeof fn === "function") {
|
|
2451
|
+
componentFrameCache.set(fn, syntheticFrame);
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
return syntheticFrame;
|
|
2455
|
+
}
|
|
2456
|
+
function describeFunctionComponentFrame(fn, source, ownerFn) {
|
|
2457
|
+
{
|
|
2458
|
+
return describeNativeComponentFrame(fn, false);
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
function shouldConstruct(Component2) {
|
|
2462
|
+
var prototype = Component2.prototype;
|
|
2463
|
+
return !!(prototype && prototype.isReactComponent);
|
|
2464
|
+
}
|
|
2465
|
+
function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
|
|
2466
|
+
if (type == null) {
|
|
2467
|
+
return "";
|
|
2468
|
+
}
|
|
2469
|
+
if (typeof type === "function") {
|
|
2470
|
+
{
|
|
2471
|
+
return describeNativeComponentFrame(type, shouldConstruct(type));
|
|
2472
|
+
}
|
|
2473
|
+
}
|
|
2474
|
+
if (typeof type === "string") {
|
|
2475
|
+
return describeBuiltInComponentFrame(type);
|
|
2476
|
+
}
|
|
2477
|
+
switch (type) {
|
|
2478
|
+
case REACT_SUSPENSE_TYPE:
|
|
2479
|
+
return describeBuiltInComponentFrame("Suspense");
|
|
2480
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
2481
|
+
return describeBuiltInComponentFrame("SuspenseList");
|
|
2482
|
+
}
|
|
2483
|
+
if (typeof type === "object") {
|
|
2484
|
+
switch (type.$$typeof) {
|
|
2485
|
+
case REACT_FORWARD_REF_TYPE:
|
|
2486
|
+
return describeFunctionComponentFrame(type.render);
|
|
2487
|
+
case REACT_MEMO_TYPE:
|
|
2488
|
+
return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
|
|
2489
|
+
case REACT_LAZY_TYPE: {
|
|
2490
|
+
var lazyComponent = type;
|
|
2491
|
+
var payload = lazyComponent._payload;
|
|
2492
|
+
var init = lazyComponent._init;
|
|
2493
|
+
try {
|
|
2494
|
+
return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
|
|
2495
|
+
} catch (x) {
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
}
|
|
2499
|
+
}
|
|
2500
|
+
return "";
|
|
2501
|
+
}
|
|
2502
|
+
var loggedTypeFailures = {};
|
|
2503
|
+
var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
|
|
2504
|
+
function setCurrentlyValidatingElement(element) {
|
|
2505
|
+
{
|
|
2506
|
+
if (element) {
|
|
2507
|
+
var owner = element._owner;
|
|
2508
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2509
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
|
|
2510
|
+
} else {
|
|
2511
|
+
ReactDebugCurrentFrame$1.setExtraStackFrame(null);
|
|
2512
|
+
}
|
|
2513
|
+
}
|
|
2514
|
+
}
|
|
2515
|
+
function checkPropTypes(typeSpecs, values, location, componentName, element) {
|
|
2516
|
+
{
|
|
2517
|
+
var has = Function.call.bind(hasOwnProperty);
|
|
2518
|
+
for (var typeSpecName in typeSpecs) {
|
|
2519
|
+
if (has(typeSpecs, typeSpecName)) {
|
|
2520
|
+
var error$1 = void 0;
|
|
2521
|
+
try {
|
|
2522
|
+
if (typeof typeSpecs[typeSpecName] !== "function") {
|
|
2523
|
+
var err = Error((componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
2524
|
+
err.name = "Invariant Violation";
|
|
2525
|
+
throw err;
|
|
2526
|
+
}
|
|
2527
|
+
error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
2528
|
+
} catch (ex) {
|
|
2529
|
+
error$1 = ex;
|
|
2530
|
+
}
|
|
2531
|
+
if (error$1 && !(error$1 instanceof Error)) {
|
|
2532
|
+
setCurrentlyValidatingElement(element);
|
|
2533
|
+
error("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", componentName || "React class", location, typeSpecName, typeof error$1);
|
|
2534
|
+
setCurrentlyValidatingElement(null);
|
|
2535
|
+
}
|
|
2536
|
+
if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
|
|
2537
|
+
loggedTypeFailures[error$1.message] = true;
|
|
2538
|
+
setCurrentlyValidatingElement(element);
|
|
2539
|
+
error("Failed %s type: %s", location, error$1.message);
|
|
2540
|
+
setCurrentlyValidatingElement(null);
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
}
|
|
2546
|
+
function setCurrentlyValidatingElement$1(element) {
|
|
2547
|
+
{
|
|
2548
|
+
if (element) {
|
|
2549
|
+
var owner = element._owner;
|
|
2550
|
+
var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
|
|
2551
|
+
setExtraStackFrame(stack);
|
|
2552
|
+
} else {
|
|
2553
|
+
setExtraStackFrame(null);
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
var propTypesMisspellWarningShown;
|
|
2558
|
+
{
|
|
2559
|
+
propTypesMisspellWarningShown = false;
|
|
2560
|
+
}
|
|
2561
|
+
function getDeclarationErrorAddendum() {
|
|
2562
|
+
if (ReactCurrentOwner.current) {
|
|
2563
|
+
var name = getComponentNameFromType(ReactCurrentOwner.current.type);
|
|
2564
|
+
if (name) {
|
|
2565
|
+
return "\n\nCheck the render method of `" + name + "`.";
|
|
2566
|
+
}
|
|
2567
|
+
}
|
|
2568
|
+
return "";
|
|
2569
|
+
}
|
|
2570
|
+
function getSourceInfoErrorAddendum(source) {
|
|
2571
|
+
if (source !== void 0) {
|
|
2572
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, "");
|
|
2573
|
+
var lineNumber = source.lineNumber;
|
|
2574
|
+
return "\n\nCheck your code at " + fileName + ":" + lineNumber + ".";
|
|
2575
|
+
}
|
|
2576
|
+
return "";
|
|
2577
|
+
}
|
|
2578
|
+
function getSourceInfoErrorAddendumForProps(elementProps) {
|
|
2579
|
+
if (elementProps !== null && elementProps !== void 0) {
|
|
2580
|
+
return getSourceInfoErrorAddendum(elementProps.__source);
|
|
2581
|
+
}
|
|
2582
|
+
return "";
|
|
2583
|
+
}
|
|
2584
|
+
var ownerHasKeyUseWarning = {};
|
|
2585
|
+
function getCurrentComponentErrorInfo(parentType) {
|
|
2586
|
+
var info = getDeclarationErrorAddendum();
|
|
2587
|
+
if (!info) {
|
|
2588
|
+
var parentName = typeof parentType === "string" ? parentType : parentType.displayName || parentType.name;
|
|
2589
|
+
if (parentName) {
|
|
2590
|
+
info = "\n\nCheck the top-level render call using <" + parentName + ">.";
|
|
2591
|
+
}
|
|
2592
|
+
}
|
|
2593
|
+
return info;
|
|
2594
|
+
}
|
|
2595
|
+
function validateExplicitKey(element, parentType) {
|
|
2596
|
+
if (!element._store || element._store.validated || element.key != null) {
|
|
2597
|
+
return;
|
|
2598
|
+
}
|
|
2599
|
+
element._store.validated = true;
|
|
2600
|
+
var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
|
|
2601
|
+
if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
|
|
2602
|
+
return;
|
|
2603
|
+
}
|
|
2604
|
+
ownerHasKeyUseWarning[currentComponentErrorInfo] = true;
|
|
2605
|
+
var childOwner = "";
|
|
2606
|
+
if (element && element._owner && element._owner !== ReactCurrentOwner.current) {
|
|
2607
|
+
childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
|
|
2608
|
+
}
|
|
2609
|
+
{
|
|
2610
|
+
setCurrentlyValidatingElement$1(element);
|
|
2611
|
+
error('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
|
|
2612
|
+
setCurrentlyValidatingElement$1(null);
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
function validateChildKeys(node, parentType) {
|
|
2616
|
+
if (typeof node !== "object") {
|
|
2617
|
+
return;
|
|
2618
|
+
}
|
|
2619
|
+
if (isArray(node)) {
|
|
2620
|
+
for (var i = 0; i < node.length; i++) {
|
|
2621
|
+
var child = node[i];
|
|
2622
|
+
if (isValidElement(child)) {
|
|
2623
|
+
validateExplicitKey(child, parentType);
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
} else if (isValidElement(node)) {
|
|
2627
|
+
if (node._store) {
|
|
2628
|
+
node._store.validated = true;
|
|
2629
|
+
}
|
|
2630
|
+
} else if (node) {
|
|
2631
|
+
var iteratorFn = getIteratorFn(node);
|
|
2632
|
+
if (typeof iteratorFn === "function") {
|
|
2633
|
+
if (iteratorFn !== node.entries) {
|
|
2634
|
+
var iterator = iteratorFn.call(node);
|
|
2635
|
+
var step;
|
|
2636
|
+
while (!(step = iterator.next()).done) {
|
|
2637
|
+
if (isValidElement(step.value)) {
|
|
2638
|
+
validateExplicitKey(step.value, parentType);
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
function validatePropTypes(element) {
|
|
2646
|
+
{
|
|
2647
|
+
var type = element.type;
|
|
2648
|
+
if (type === null || type === void 0 || typeof type === "string") {
|
|
2649
|
+
return;
|
|
2650
|
+
}
|
|
2651
|
+
var propTypes;
|
|
2652
|
+
if (typeof type === "function") {
|
|
2653
|
+
propTypes = type.propTypes;
|
|
2654
|
+
} else if (typeof type === "object" && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
|
|
2655
|
+
// Inner props are checked in the reconciler.
|
|
2656
|
+
type.$$typeof === REACT_MEMO_TYPE)) {
|
|
2657
|
+
propTypes = type.propTypes;
|
|
2658
|
+
} else {
|
|
2659
|
+
return;
|
|
2660
|
+
}
|
|
2661
|
+
if (propTypes) {
|
|
2662
|
+
var name = getComponentNameFromType(type);
|
|
2663
|
+
checkPropTypes(propTypes, element.props, "prop", name, element);
|
|
2664
|
+
} else if (type.PropTypes !== void 0 && !propTypesMisspellWarningShown) {
|
|
2665
|
+
propTypesMisspellWarningShown = true;
|
|
2666
|
+
var _name = getComponentNameFromType(type);
|
|
2667
|
+
error("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", _name || "Unknown");
|
|
2668
|
+
}
|
|
2669
|
+
if (typeof type.getDefaultProps === "function" && !type.getDefaultProps.isReactClassApproved) {
|
|
2670
|
+
error("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
2671
|
+
}
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
function validateFragmentProps(fragment) {
|
|
2675
|
+
{
|
|
2676
|
+
var keys = Object.keys(fragment.props);
|
|
2677
|
+
for (var i = 0; i < keys.length; i++) {
|
|
2678
|
+
var key = keys[i];
|
|
2679
|
+
if (key !== "children" && key !== "key") {
|
|
2680
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
2681
|
+
error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", key);
|
|
2682
|
+
setCurrentlyValidatingElement$1(null);
|
|
2683
|
+
break;
|
|
2684
|
+
}
|
|
2685
|
+
}
|
|
2686
|
+
if (fragment.ref !== null) {
|
|
2687
|
+
setCurrentlyValidatingElement$1(fragment);
|
|
2688
|
+
error("Invalid attribute `ref` supplied to `React.Fragment`.");
|
|
2689
|
+
setCurrentlyValidatingElement$1(null);
|
|
2690
|
+
}
|
|
2691
|
+
}
|
|
2692
|
+
}
|
|
2693
|
+
function createElementWithValidation(type, props, children) {
|
|
2694
|
+
var validType = isValidElementType(type);
|
|
2695
|
+
if (!validType) {
|
|
2696
|
+
var info = "";
|
|
2697
|
+
if (type === void 0 || typeof type === "object" && type !== null && Object.keys(type).length === 0) {
|
|
2698
|
+
info += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";
|
|
2699
|
+
}
|
|
2700
|
+
var sourceInfo = getSourceInfoErrorAddendumForProps(props);
|
|
2701
|
+
if (sourceInfo) {
|
|
2702
|
+
info += sourceInfo;
|
|
2703
|
+
} else {
|
|
2704
|
+
info += getDeclarationErrorAddendum();
|
|
2705
|
+
}
|
|
2706
|
+
var typeString;
|
|
2707
|
+
if (type === null) {
|
|
2708
|
+
typeString = "null";
|
|
2709
|
+
} else if (isArray(type)) {
|
|
2710
|
+
typeString = "array";
|
|
2711
|
+
} else if (type !== void 0 && type.$$typeof === REACT_ELEMENT_TYPE) {
|
|
2712
|
+
typeString = "<" + (getComponentNameFromType(type.type) || "Unknown") + " />";
|
|
2713
|
+
info = " Did you accidentally export a JSX literal instead of a component?";
|
|
2714
|
+
} else {
|
|
2715
|
+
typeString = typeof type;
|
|
2716
|
+
}
|
|
2717
|
+
{
|
|
2718
|
+
error("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", typeString, info);
|
|
2719
|
+
}
|
|
2720
|
+
}
|
|
2721
|
+
var element = createElement.apply(this, arguments);
|
|
2722
|
+
if (element == null) {
|
|
2723
|
+
return element;
|
|
2724
|
+
}
|
|
2725
|
+
if (validType) {
|
|
2726
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
2727
|
+
validateChildKeys(arguments[i], type);
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
2731
|
+
validateFragmentProps(element);
|
|
2732
|
+
} else {
|
|
2733
|
+
validatePropTypes(element);
|
|
2734
|
+
}
|
|
2735
|
+
return element;
|
|
2736
|
+
}
|
|
2737
|
+
var didWarnAboutDeprecatedCreateFactory = false;
|
|
2738
|
+
function createFactoryWithValidation(type) {
|
|
2739
|
+
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
2740
|
+
validatedFactory.type = type;
|
|
2741
|
+
{
|
|
2742
|
+
if (!didWarnAboutDeprecatedCreateFactory) {
|
|
2743
|
+
didWarnAboutDeprecatedCreateFactory = true;
|
|
2744
|
+
warn("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.");
|
|
2745
|
+
}
|
|
2746
|
+
Object.defineProperty(validatedFactory, "type", {
|
|
2747
|
+
enumerable: false,
|
|
2748
|
+
get: function() {
|
|
2749
|
+
warn("Factory.type is deprecated. Access the class directly before passing it to createFactory.");
|
|
2750
|
+
Object.defineProperty(this, "type", {
|
|
2751
|
+
value: type
|
|
2752
|
+
});
|
|
2753
|
+
return type;
|
|
2754
|
+
}
|
|
2755
|
+
});
|
|
2756
|
+
}
|
|
2757
|
+
return validatedFactory;
|
|
2758
|
+
}
|
|
2759
|
+
function cloneElementWithValidation(element, props, children) {
|
|
2760
|
+
var newElement = cloneElement.apply(this, arguments);
|
|
2761
|
+
for (var i = 2; i < arguments.length; i++) {
|
|
2762
|
+
validateChildKeys(arguments[i], newElement.type);
|
|
2763
|
+
}
|
|
2764
|
+
validatePropTypes(newElement);
|
|
2765
|
+
return newElement;
|
|
2766
|
+
}
|
|
2767
|
+
function startTransition(scope, options) {
|
|
2768
|
+
var prevTransition = ReactCurrentBatchConfig.transition;
|
|
2769
|
+
ReactCurrentBatchConfig.transition = {};
|
|
2770
|
+
var currentTransition = ReactCurrentBatchConfig.transition;
|
|
2771
|
+
{
|
|
2772
|
+
ReactCurrentBatchConfig.transition._updatedFibers = /* @__PURE__ */ new Set();
|
|
2773
|
+
}
|
|
2774
|
+
try {
|
|
2775
|
+
scope();
|
|
2776
|
+
} finally {
|
|
2777
|
+
ReactCurrentBatchConfig.transition = prevTransition;
|
|
2778
|
+
{
|
|
2779
|
+
if (prevTransition === null && currentTransition._updatedFibers) {
|
|
2780
|
+
var updatedFibersCount = currentTransition._updatedFibers.size;
|
|
2781
|
+
if (updatedFibersCount > 10) {
|
|
2782
|
+
warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.");
|
|
2783
|
+
}
|
|
2784
|
+
currentTransition._updatedFibers.clear();
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
}
|
|
2788
|
+
}
|
|
2789
|
+
var didWarnAboutMessageChannel = false;
|
|
2790
|
+
var enqueueTaskImpl = null;
|
|
2791
|
+
function enqueueTask(task) {
|
|
2792
|
+
if (enqueueTaskImpl === null) {
|
|
2793
|
+
try {
|
|
2794
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
2795
|
+
var nodeRequire = module2 && module2[requireString];
|
|
2796
|
+
enqueueTaskImpl = nodeRequire.call(module2, "timers").setImmediate;
|
|
2797
|
+
} catch (_err) {
|
|
2798
|
+
enqueueTaskImpl = function(callback) {
|
|
2799
|
+
{
|
|
2800
|
+
if (didWarnAboutMessageChannel === false) {
|
|
2801
|
+
didWarnAboutMessageChannel = true;
|
|
2802
|
+
if (typeof MessageChannel === "undefined") {
|
|
2803
|
+
error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.");
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
var channel = new MessageChannel();
|
|
2808
|
+
channel.port1.onmessage = callback;
|
|
2809
|
+
channel.port2.postMessage(void 0);
|
|
2810
|
+
};
|
|
2811
|
+
}
|
|
2812
|
+
}
|
|
2813
|
+
return enqueueTaskImpl(task);
|
|
2814
|
+
}
|
|
2815
|
+
var actScopeDepth = 0;
|
|
2816
|
+
var didWarnNoAwaitAct = false;
|
|
2817
|
+
function act(callback) {
|
|
2818
|
+
{
|
|
2819
|
+
var prevActScopeDepth = actScopeDepth;
|
|
2820
|
+
actScopeDepth++;
|
|
2821
|
+
if (ReactCurrentActQueue.current === null) {
|
|
2822
|
+
ReactCurrentActQueue.current = [];
|
|
2823
|
+
}
|
|
2824
|
+
var prevIsBatchingLegacy = ReactCurrentActQueue.isBatchingLegacy;
|
|
2825
|
+
var result;
|
|
2826
|
+
try {
|
|
2827
|
+
ReactCurrentActQueue.isBatchingLegacy = true;
|
|
2828
|
+
result = callback();
|
|
2829
|
+
if (!prevIsBatchingLegacy && ReactCurrentActQueue.didScheduleLegacyUpdate) {
|
|
2830
|
+
var queue = ReactCurrentActQueue.current;
|
|
2831
|
+
if (queue !== null) {
|
|
2832
|
+
ReactCurrentActQueue.didScheduleLegacyUpdate = false;
|
|
2833
|
+
flushActQueue(queue);
|
|
2834
|
+
}
|
|
2835
|
+
}
|
|
2836
|
+
} catch (error2) {
|
|
2837
|
+
popActScope(prevActScopeDepth);
|
|
2838
|
+
throw error2;
|
|
2839
|
+
} finally {
|
|
2840
|
+
ReactCurrentActQueue.isBatchingLegacy = prevIsBatchingLegacy;
|
|
2841
|
+
}
|
|
2842
|
+
if (result !== null && typeof result === "object" && typeof result.then === "function") {
|
|
2843
|
+
var thenableResult = result;
|
|
2844
|
+
var wasAwaited = false;
|
|
2845
|
+
var thenable = {
|
|
2846
|
+
then: function(resolve, reject) {
|
|
2847
|
+
wasAwaited = true;
|
|
2848
|
+
thenableResult.then(function(returnValue2) {
|
|
2849
|
+
popActScope(prevActScopeDepth);
|
|
2850
|
+
if (actScopeDepth === 0) {
|
|
2851
|
+
recursivelyFlushAsyncActWork(returnValue2, resolve, reject);
|
|
2852
|
+
} else {
|
|
2853
|
+
resolve(returnValue2);
|
|
2854
|
+
}
|
|
2855
|
+
}, function(error2) {
|
|
2856
|
+
popActScope(prevActScopeDepth);
|
|
2857
|
+
reject(error2);
|
|
2858
|
+
});
|
|
2859
|
+
}
|
|
2860
|
+
};
|
|
2861
|
+
{
|
|
2862
|
+
if (!didWarnNoAwaitAct && typeof Promise !== "undefined") {
|
|
2863
|
+
Promise.resolve().then(function() {
|
|
2864
|
+
}).then(function() {
|
|
2865
|
+
if (!wasAwaited) {
|
|
2866
|
+
didWarnNoAwaitAct = true;
|
|
2867
|
+
error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);");
|
|
2868
|
+
}
|
|
2869
|
+
});
|
|
2870
|
+
}
|
|
2871
|
+
}
|
|
2872
|
+
return thenable;
|
|
2873
|
+
} else {
|
|
2874
|
+
var returnValue = result;
|
|
2875
|
+
popActScope(prevActScopeDepth);
|
|
2876
|
+
if (actScopeDepth === 0) {
|
|
2877
|
+
var _queue = ReactCurrentActQueue.current;
|
|
2878
|
+
if (_queue !== null) {
|
|
2879
|
+
flushActQueue(_queue);
|
|
2880
|
+
ReactCurrentActQueue.current = null;
|
|
2881
|
+
}
|
|
2882
|
+
var _thenable = {
|
|
2883
|
+
then: function(resolve, reject) {
|
|
2884
|
+
if (ReactCurrentActQueue.current === null) {
|
|
2885
|
+
ReactCurrentActQueue.current = [];
|
|
2886
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2887
|
+
} else {
|
|
2888
|
+
resolve(returnValue);
|
|
2889
|
+
}
|
|
2890
|
+
}
|
|
2891
|
+
};
|
|
2892
|
+
return _thenable;
|
|
2893
|
+
} else {
|
|
2894
|
+
var _thenable2 = {
|
|
2895
|
+
then: function(resolve, reject) {
|
|
2896
|
+
resolve(returnValue);
|
|
2897
|
+
}
|
|
2898
|
+
};
|
|
2899
|
+
return _thenable2;
|
|
2900
|
+
}
|
|
2901
|
+
}
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
function popActScope(prevActScopeDepth) {
|
|
2905
|
+
{
|
|
2906
|
+
if (prevActScopeDepth !== actScopeDepth - 1) {
|
|
2907
|
+
error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
2908
|
+
}
|
|
2909
|
+
actScopeDepth = prevActScopeDepth;
|
|
2910
|
+
}
|
|
2911
|
+
}
|
|
2912
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
2913
|
+
{
|
|
2914
|
+
var queue = ReactCurrentActQueue.current;
|
|
2915
|
+
if (queue !== null) {
|
|
2916
|
+
try {
|
|
2917
|
+
flushActQueue(queue);
|
|
2918
|
+
enqueueTask(function() {
|
|
2919
|
+
if (queue.length === 0) {
|
|
2920
|
+
ReactCurrentActQueue.current = null;
|
|
2921
|
+
resolve(returnValue);
|
|
2922
|
+
} else {
|
|
2923
|
+
recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
2924
|
+
}
|
|
2925
|
+
});
|
|
2926
|
+
} catch (error2) {
|
|
2927
|
+
reject(error2);
|
|
2928
|
+
}
|
|
2929
|
+
} else {
|
|
2930
|
+
resolve(returnValue);
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
var isFlushing = false;
|
|
2935
|
+
function flushActQueue(queue) {
|
|
2936
|
+
{
|
|
2937
|
+
if (!isFlushing) {
|
|
2938
|
+
isFlushing = true;
|
|
2939
|
+
var i = 0;
|
|
2940
|
+
try {
|
|
2941
|
+
for (; i < queue.length; i++) {
|
|
2942
|
+
var callback = queue[i];
|
|
2943
|
+
do {
|
|
2944
|
+
callback = callback(true);
|
|
2945
|
+
} while (callback !== null);
|
|
2946
|
+
}
|
|
2947
|
+
queue.length = 0;
|
|
2948
|
+
} catch (error2) {
|
|
2949
|
+
queue = queue.slice(i + 1);
|
|
2950
|
+
throw error2;
|
|
2951
|
+
} finally {
|
|
2952
|
+
isFlushing = false;
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
var createElement$1 = createElementWithValidation;
|
|
2958
|
+
var cloneElement$1 = cloneElementWithValidation;
|
|
2959
|
+
var createFactory = createFactoryWithValidation;
|
|
2960
|
+
var Children = {
|
|
2961
|
+
map: mapChildren,
|
|
2962
|
+
forEach: forEachChildren,
|
|
2963
|
+
count: countChildren,
|
|
2964
|
+
toArray,
|
|
2965
|
+
only: onlyChild
|
|
2966
|
+
};
|
|
2967
|
+
exports2.Children = Children;
|
|
2968
|
+
exports2.Component = Component;
|
|
2969
|
+
exports2.Fragment = REACT_FRAGMENT_TYPE;
|
|
2970
|
+
exports2.Profiler = REACT_PROFILER_TYPE;
|
|
2971
|
+
exports2.PureComponent = PureComponent;
|
|
2972
|
+
exports2.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
2973
|
+
exports2.Suspense = REACT_SUSPENSE_TYPE;
|
|
2974
|
+
exports2.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = ReactSharedInternals;
|
|
2975
|
+
exports2.act = act;
|
|
2976
|
+
exports2.cloneElement = cloneElement$1;
|
|
2977
|
+
exports2.createContext = createContext;
|
|
2978
|
+
exports2.createElement = createElement$1;
|
|
2979
|
+
exports2.createFactory = createFactory;
|
|
2980
|
+
exports2.createRef = createRef;
|
|
2981
|
+
exports2.forwardRef = forwardRef;
|
|
2982
|
+
exports2.isValidElement = isValidElement;
|
|
2983
|
+
exports2.lazy = lazy;
|
|
2984
|
+
exports2.memo = memo;
|
|
2985
|
+
exports2.startTransition = startTransition;
|
|
2986
|
+
exports2.unstable_act = act;
|
|
2987
|
+
exports2.useCallback = useCallback;
|
|
2988
|
+
exports2.useContext = useContext;
|
|
2989
|
+
exports2.useDebugValue = useDebugValue;
|
|
2990
|
+
exports2.useDeferredValue = useDeferredValue;
|
|
2991
|
+
exports2.useEffect = useEffect;
|
|
2992
|
+
exports2.useId = useId;
|
|
2993
|
+
exports2.useImperativeHandle = useImperativeHandle;
|
|
2994
|
+
exports2.useInsertionEffect = useInsertionEffect;
|
|
2995
|
+
exports2.useLayoutEffect = useLayoutEffect;
|
|
2996
|
+
exports2.useMemo = useMemo;
|
|
2997
|
+
exports2.useReducer = useReducer;
|
|
2998
|
+
exports2.useRef = useRef;
|
|
2999
|
+
exports2.useState = useState;
|
|
3000
|
+
exports2.useSyncExternalStore = useSyncExternalStore;
|
|
3001
|
+
exports2.useTransition = useTransition;
|
|
3002
|
+
exports2.version = ReactVersion;
|
|
3003
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== "undefined" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop === "function") {
|
|
3004
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
|
|
3005
|
+
}
|
|
3006
|
+
})();
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
});
|
|
3010
|
+
|
|
3011
|
+
// ../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js
|
|
3012
|
+
var require_react = __commonJS({
|
|
3013
|
+
"../../node_modules/.pnpm/react@18.3.1/node_modules/react/index.js"(exports2, module2) {
|
|
3014
|
+
"use strict";
|
|
3015
|
+
if (process.env.NODE_ENV === "production") {
|
|
3016
|
+
module2.exports = require_react_production_min();
|
|
3017
|
+
} else {
|
|
3018
|
+
module2.exports = require_react_development();
|
|
3019
|
+
}
|
|
3020
|
+
}
|
|
3021
|
+
});
|
|
3022
|
+
|
|
3023
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/hooks-server-context.js
|
|
3024
|
+
var require_hooks_server_context = __commonJS({
|
|
3025
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/hooks-server-context.js"(exports2, module2) {
|
|
3026
|
+
"use strict";
|
|
3027
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3028
|
+
value: true
|
|
3029
|
+
});
|
|
3030
|
+
function _export(target, all) {
|
|
3031
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3032
|
+
enumerable: true,
|
|
3033
|
+
get: all[name]
|
|
3034
|
+
});
|
|
3035
|
+
}
|
|
3036
|
+
_export(exports2, {
|
|
3037
|
+
DynamicServerError: function() {
|
|
3038
|
+
return DynamicServerError;
|
|
3039
|
+
},
|
|
3040
|
+
isDynamicServerError: function() {
|
|
3041
|
+
return isDynamicServerError;
|
|
3042
|
+
}
|
|
3043
|
+
});
|
|
3044
|
+
var DYNAMIC_ERROR_CODE = "DYNAMIC_SERVER_USAGE";
|
|
3045
|
+
var DynamicServerError = class extends Error {
|
|
3046
|
+
constructor(description) {
|
|
3047
|
+
super("Dynamic server usage: " + description);
|
|
3048
|
+
this.description = description;
|
|
3049
|
+
this.digest = DYNAMIC_ERROR_CODE;
|
|
3050
|
+
}
|
|
3051
|
+
};
|
|
3052
|
+
function isDynamicServerError(err) {
|
|
3053
|
+
if (typeof err !== "object" || err === null || !("digest" in err) || typeof err.digest !== "string") {
|
|
3054
|
+
return false;
|
|
3055
|
+
}
|
|
3056
|
+
return err.digest === DYNAMIC_ERROR_CODE;
|
|
3057
|
+
}
|
|
3058
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
3059
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
3060
|
+
Object.assign(exports2.default, exports2);
|
|
3061
|
+
module2.exports = exports2.default;
|
|
3062
|
+
}
|
|
3063
|
+
}
|
|
3064
|
+
});
|
|
3065
|
+
|
|
3066
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/static-generation-bailout.js
|
|
3067
|
+
var require_static_generation_bailout = __commonJS({
|
|
3068
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/static-generation-bailout.js"(exports2, module2) {
|
|
3069
|
+
"use strict";
|
|
3070
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3071
|
+
value: true
|
|
3072
|
+
});
|
|
3073
|
+
function _export(target, all) {
|
|
3074
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3075
|
+
enumerable: true,
|
|
3076
|
+
get: all[name]
|
|
3077
|
+
});
|
|
3078
|
+
}
|
|
3079
|
+
_export(exports2, {
|
|
3080
|
+
StaticGenBailoutError: function() {
|
|
3081
|
+
return StaticGenBailoutError;
|
|
3082
|
+
},
|
|
3083
|
+
isStaticGenBailoutError: function() {
|
|
3084
|
+
return isStaticGenBailoutError;
|
|
3085
|
+
}
|
|
3086
|
+
});
|
|
3087
|
+
var NEXT_STATIC_GEN_BAILOUT = "NEXT_STATIC_GEN_BAILOUT";
|
|
3088
|
+
var StaticGenBailoutError = class extends Error {
|
|
3089
|
+
constructor(...args) {
|
|
3090
|
+
super(...args);
|
|
3091
|
+
this.code = NEXT_STATIC_GEN_BAILOUT;
|
|
3092
|
+
}
|
|
3093
|
+
};
|
|
3094
|
+
function isStaticGenBailoutError(error) {
|
|
3095
|
+
if (typeof error !== "object" || error === null || !("code" in error)) {
|
|
3096
|
+
return false;
|
|
3097
|
+
}
|
|
3098
|
+
return error.code === NEXT_STATIC_GEN_BAILOUT;
|
|
3099
|
+
}
|
|
3100
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
3101
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
3102
|
+
Object.assign(exports2.default, exports2);
|
|
3103
|
+
module2.exports = exports2.default;
|
|
3104
|
+
}
|
|
3105
|
+
}
|
|
3106
|
+
});
|
|
3107
|
+
|
|
3108
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/lib/url.js
|
|
3109
|
+
var require_url = __commonJS({
|
|
3110
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/lib/url.js"(exports2) {
|
|
3111
|
+
"use strict";
|
|
3112
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3113
|
+
value: true
|
|
3114
|
+
});
|
|
3115
|
+
function _export(target, all) {
|
|
3116
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3117
|
+
enumerable: true,
|
|
3118
|
+
get: all[name]
|
|
3119
|
+
});
|
|
3120
|
+
}
|
|
3121
|
+
_export(exports2, {
|
|
3122
|
+
getPathname: function() {
|
|
3123
|
+
return getPathname;
|
|
3124
|
+
},
|
|
3125
|
+
isFullStringUrl: function() {
|
|
3126
|
+
return isFullStringUrl;
|
|
3127
|
+
},
|
|
3128
|
+
parseUrl: function() {
|
|
3129
|
+
return parseUrl;
|
|
3130
|
+
}
|
|
3131
|
+
});
|
|
3132
|
+
var DUMMY_ORIGIN = "http://n";
|
|
3133
|
+
function getUrlWithoutHost(url) {
|
|
3134
|
+
return new URL(url, DUMMY_ORIGIN);
|
|
3135
|
+
}
|
|
3136
|
+
function getPathname(url) {
|
|
3137
|
+
return getUrlWithoutHost(url).pathname;
|
|
3138
|
+
}
|
|
3139
|
+
function isFullStringUrl(url) {
|
|
3140
|
+
return /https?:\/\//.test(url);
|
|
3141
|
+
}
|
|
3142
|
+
function parseUrl(url) {
|
|
3143
|
+
let parsed = void 0;
|
|
3144
|
+
try {
|
|
3145
|
+
parsed = new URL(url, DUMMY_ORIGIN);
|
|
3146
|
+
} catch {
|
|
3147
|
+
}
|
|
3148
|
+
return parsed;
|
|
3149
|
+
}
|
|
3150
|
+
}
|
|
3151
|
+
});
|
|
3152
|
+
|
|
3153
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/app-render/dynamic-rendering.js
|
|
3154
|
+
var require_dynamic_rendering = __commonJS({
|
|
3155
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/server/app-render/dynamic-rendering.js"(exports2) {
|
|
3156
|
+
"use strict";
|
|
3157
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3158
|
+
value: true
|
|
3159
|
+
});
|
|
3160
|
+
function _export(target, all) {
|
|
3161
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3162
|
+
enumerable: true,
|
|
3163
|
+
get: all[name]
|
|
3164
|
+
});
|
|
3165
|
+
}
|
|
3166
|
+
_export(exports2, {
|
|
3167
|
+
Postpone: function() {
|
|
3168
|
+
return Postpone;
|
|
3169
|
+
},
|
|
3170
|
+
createPostponedAbortSignal: function() {
|
|
3171
|
+
return createPostponedAbortSignal;
|
|
3172
|
+
},
|
|
3173
|
+
createPrerenderState: function() {
|
|
3174
|
+
return createPrerenderState;
|
|
3175
|
+
},
|
|
3176
|
+
formatDynamicAPIAccesses: function() {
|
|
3177
|
+
return formatDynamicAPIAccesses;
|
|
3178
|
+
},
|
|
3179
|
+
markCurrentScopeAsDynamic: function() {
|
|
3180
|
+
return markCurrentScopeAsDynamic;
|
|
3181
|
+
},
|
|
3182
|
+
trackDynamicDataAccessed: function() {
|
|
3183
|
+
return trackDynamicDataAccessed;
|
|
3184
|
+
},
|
|
3185
|
+
trackDynamicFetch: function() {
|
|
3186
|
+
return trackDynamicFetch;
|
|
3187
|
+
},
|
|
3188
|
+
usedDynamicAPIs: function() {
|
|
3189
|
+
return usedDynamicAPIs;
|
|
3190
|
+
}
|
|
3191
|
+
});
|
|
3192
|
+
var _react = /* @__PURE__ */ _interop_require_default(require_react());
|
|
3193
|
+
var _hooksservercontext = require_hooks_server_context();
|
|
3194
|
+
var _staticgenerationbailout = require_static_generation_bailout();
|
|
3195
|
+
var _url = require_url();
|
|
3196
|
+
function _interop_require_default(obj) {
|
|
3197
|
+
return obj && obj.__esModule ? obj : {
|
|
3198
|
+
default: obj
|
|
3199
|
+
};
|
|
3200
|
+
}
|
|
3201
|
+
var hasPostpone = typeof _react.default.unstable_postpone === "function";
|
|
3202
|
+
function createPrerenderState(isDebugSkeleton) {
|
|
3203
|
+
return {
|
|
3204
|
+
isDebugSkeleton,
|
|
3205
|
+
dynamicAccesses: []
|
|
3206
|
+
};
|
|
3207
|
+
}
|
|
3208
|
+
function markCurrentScopeAsDynamic(store, expression) {
|
|
3209
|
+
const pathname = (0, _url.getPathname)(store.urlPathname);
|
|
3210
|
+
if (store.isUnstableCacheCallback) {
|
|
3211
|
+
return;
|
|
3212
|
+
} else if (store.dynamicShouldError) {
|
|
3213
|
+
throw new _staticgenerationbailout.StaticGenBailoutError(`Route ${pathname} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);
|
|
3214
|
+
} else if (
|
|
3215
|
+
// We are in a prerender (PPR enabled, during build)
|
|
3216
|
+
store.prerenderState
|
|
3217
|
+
) {
|
|
3218
|
+
postponeWithTracking(store.prerenderState, expression, pathname);
|
|
3219
|
+
} else {
|
|
3220
|
+
store.revalidate = 0;
|
|
3221
|
+
if (store.isStaticGeneration) {
|
|
3222
|
+
const err = new _hooksservercontext.DynamicServerError(`Route ${pathname} couldn't be rendered statically because it used ${expression}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);
|
|
3223
|
+
store.dynamicUsageDescription = expression;
|
|
3224
|
+
store.dynamicUsageStack = err.stack;
|
|
3225
|
+
throw err;
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
3229
|
+
function trackDynamicDataAccessed(store, expression) {
|
|
3230
|
+
const pathname = (0, _url.getPathname)(store.urlPathname);
|
|
3231
|
+
if (store.isUnstableCacheCallback) {
|
|
3232
|
+
throw new Error(`Route ${pathname} used "${expression}" inside a function cached with "unstable_cache(...)". Accessing Dynamic data sources inside a cache scope is not supported. If you need this data inside a cached function use "${expression}" outside of the cached function and pass the required dynamic data in as an argument. See more info here: https://nextjs.org/docs/app/api-reference/functions/unstable_cache`);
|
|
3233
|
+
} else if (store.dynamicShouldError) {
|
|
3234
|
+
throw new _staticgenerationbailout.StaticGenBailoutError(`Route ${pathname} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`);
|
|
3235
|
+
} else if (
|
|
3236
|
+
// We are in a prerender (PPR enabled, during build)
|
|
3237
|
+
store.prerenderState
|
|
3238
|
+
) {
|
|
3239
|
+
postponeWithTracking(store.prerenderState, expression, pathname);
|
|
3240
|
+
} else {
|
|
3241
|
+
store.revalidate = 0;
|
|
3242
|
+
if (store.isStaticGeneration) {
|
|
3243
|
+
const err = new _hooksservercontext.DynamicServerError(`Route ${pathname} couldn't be rendered statically because it used \`${expression}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`);
|
|
3244
|
+
store.dynamicUsageDescription = expression;
|
|
3245
|
+
store.dynamicUsageStack = err.stack;
|
|
3246
|
+
throw err;
|
|
3247
|
+
}
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
function Postpone({ reason, prerenderState, pathname }) {
|
|
3251
|
+
postponeWithTracking(prerenderState, reason, pathname);
|
|
3252
|
+
}
|
|
3253
|
+
function trackDynamicFetch(store, expression) {
|
|
3254
|
+
if (store.prerenderState) {
|
|
3255
|
+
postponeWithTracking(store.prerenderState, expression, store.urlPathname);
|
|
3256
|
+
}
|
|
3257
|
+
}
|
|
3258
|
+
function postponeWithTracking(prerenderState, expression, pathname) {
|
|
3259
|
+
assertPostpone();
|
|
3260
|
+
const reason = `Route ${pathname} needs to bail out of prerendering at this point because it used ${expression}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`;
|
|
3261
|
+
prerenderState.dynamicAccesses.push({
|
|
3262
|
+
// When we aren't debugging, we don't need to create another error for the
|
|
3263
|
+
// stack trace.
|
|
3264
|
+
stack: prerenderState.isDebugSkeleton ? new Error().stack : void 0,
|
|
3265
|
+
expression
|
|
3266
|
+
});
|
|
3267
|
+
_react.default.unstable_postpone(reason);
|
|
3268
|
+
}
|
|
3269
|
+
function usedDynamicAPIs(prerenderState) {
|
|
3270
|
+
return prerenderState.dynamicAccesses.length > 0;
|
|
3271
|
+
}
|
|
3272
|
+
function formatDynamicAPIAccesses(prerenderState) {
|
|
3273
|
+
return prerenderState.dynamicAccesses.filter((access) => typeof access.stack === "string" && access.stack.length > 0).map(({ expression, stack }) => {
|
|
3274
|
+
stack = stack.split("\n").slice(4).filter((line) => {
|
|
3275
|
+
if (line.includes("node_modules/next/")) {
|
|
3276
|
+
return false;
|
|
3277
|
+
}
|
|
3278
|
+
if (line.includes(" (<anonymous>)")) {
|
|
3279
|
+
return false;
|
|
3280
|
+
}
|
|
3281
|
+
if (line.includes(" (node:")) {
|
|
3282
|
+
return false;
|
|
3283
|
+
}
|
|
3284
|
+
return true;
|
|
3285
|
+
}).join("\n");
|
|
3286
|
+
return `Dynamic API Usage Debug - ${expression}:
|
|
3287
|
+
${stack}`;
|
|
3288
|
+
});
|
|
3289
|
+
}
|
|
3290
|
+
function assertPostpone() {
|
|
3291
|
+
if (!hasPostpone) {
|
|
3292
|
+
throw new Error(`Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js`);
|
|
3293
|
+
}
|
|
3294
|
+
}
|
|
3295
|
+
function createPostponedAbortSignal(reason) {
|
|
3296
|
+
assertPostpone();
|
|
3297
|
+
const controller = new AbortController();
|
|
3298
|
+
try {
|
|
3299
|
+
_react.default.unstable_postpone(reason);
|
|
3300
|
+
} catch (x) {
|
|
3301
|
+
controller.abort(x);
|
|
3302
|
+
}
|
|
3303
|
+
return controller.signal;
|
|
3304
|
+
}
|
|
3305
|
+
}
|
|
3306
|
+
});
|
|
3307
|
+
|
|
3308
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/draft-mode.js
|
|
3309
|
+
var require_draft_mode = __commonJS({
|
|
3310
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/draft-mode.js"(exports2, module2) {
|
|
3311
|
+
"use strict";
|
|
3312
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3313
|
+
value: true
|
|
3314
|
+
});
|
|
3315
|
+
Object.defineProperty(exports2, "DraftMode", {
|
|
3316
|
+
enumerable: true,
|
|
3317
|
+
get: function() {
|
|
3318
|
+
return DraftMode;
|
|
3319
|
+
}
|
|
3320
|
+
});
|
|
3321
|
+
var _staticgenerationasyncstorageexternal = require_static_generation_async_storage_external();
|
|
3322
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
3323
|
+
var DraftMode = class {
|
|
3324
|
+
get isEnabled() {
|
|
3325
|
+
return this._provider.isEnabled;
|
|
3326
|
+
}
|
|
3327
|
+
enable() {
|
|
3328
|
+
const store = _staticgenerationasyncstorageexternal.staticGenerationAsyncStorage.getStore();
|
|
3329
|
+
if (store) {
|
|
3330
|
+
(0, _dynamicrendering.trackDynamicDataAccessed)(store, "draftMode().enable()");
|
|
3331
|
+
}
|
|
3332
|
+
return this._provider.enable();
|
|
3333
|
+
}
|
|
3334
|
+
disable() {
|
|
3335
|
+
const store = _staticgenerationasyncstorageexternal.staticGenerationAsyncStorage.getStore();
|
|
3336
|
+
if (store) {
|
|
3337
|
+
(0, _dynamicrendering.trackDynamicDataAccessed)(store, "draftMode().disable()");
|
|
3338
|
+
}
|
|
3339
|
+
return this._provider.disable();
|
|
3340
|
+
}
|
|
3341
|
+
constructor(provider) {
|
|
3342
|
+
this._provider = provider;
|
|
3343
|
+
}
|
|
3344
|
+
};
|
|
3345
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
3346
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
3347
|
+
Object.assign(exports2.default, exports2);
|
|
3348
|
+
module2.exports = exports2.default;
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
});
|
|
3352
|
+
|
|
3353
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/request-async-storage-instance.js
|
|
3354
|
+
var require_request_async_storage_instance = __commonJS({
|
|
3355
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/request-async-storage-instance.js"(exports2, module2) {
|
|
3356
|
+
"use strict";
|
|
3357
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3358
|
+
value: true
|
|
3359
|
+
});
|
|
3360
|
+
Object.defineProperty(exports2, "requestAsyncStorage", {
|
|
3361
|
+
enumerable: true,
|
|
3362
|
+
get: function() {
|
|
3363
|
+
return requestAsyncStorage;
|
|
3364
|
+
}
|
|
3365
|
+
});
|
|
3366
|
+
var _asynclocalstorage = require_async_local_storage();
|
|
3367
|
+
var requestAsyncStorage = (0, _asynclocalstorage.createAsyncLocalStorage)();
|
|
3368
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
3369
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
3370
|
+
Object.assign(exports2.default, exports2);
|
|
3371
|
+
module2.exports = exports2.default;
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
});
|
|
3375
|
+
|
|
3376
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/request-async-storage.external.js
|
|
3377
|
+
var require_request_async_storage_external = __commonJS({
|
|
3378
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/request-async-storage.external.js"(exports2, module2) {
|
|
3379
|
+
"TURBOPACK { transition: next-shared }";
|
|
3380
|
+
"use strict";
|
|
3381
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3382
|
+
value: true
|
|
3383
|
+
});
|
|
3384
|
+
function _export(target, all) {
|
|
3385
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3386
|
+
enumerable: true,
|
|
3387
|
+
get: all[name]
|
|
3388
|
+
});
|
|
3389
|
+
}
|
|
3390
|
+
_export(exports2, {
|
|
3391
|
+
getExpectedRequestStore: function() {
|
|
3392
|
+
return getExpectedRequestStore;
|
|
3393
|
+
},
|
|
3394
|
+
requestAsyncStorage: function() {
|
|
3395
|
+
return _requestasyncstorageinstance.requestAsyncStorage;
|
|
3396
|
+
}
|
|
3397
|
+
});
|
|
3398
|
+
var _requestasyncstorageinstance = require_request_async_storage_instance();
|
|
3399
|
+
function getExpectedRequestStore(callingExpression) {
|
|
3400
|
+
const store = _requestasyncstorageinstance.requestAsyncStorage.getStore();
|
|
3401
|
+
if (store) return store;
|
|
3402
|
+
throw new Error("`" + callingExpression + "` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context");
|
|
3403
|
+
}
|
|
3404
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
3405
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
3406
|
+
Object.assign(exports2.default, exports2);
|
|
3407
|
+
module2.exports = exports2.default;
|
|
3408
|
+
}
|
|
3409
|
+
}
|
|
3410
|
+
});
|
|
3411
|
+
|
|
3412
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/headers.js
|
|
3413
|
+
var require_headers2 = __commonJS({
|
|
3414
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/dist/client/components/headers.js"(exports2, module2) {
|
|
3415
|
+
"use strict";
|
|
3416
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
3417
|
+
value: true
|
|
3418
|
+
});
|
|
3419
|
+
function _export(target, all) {
|
|
3420
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
3421
|
+
enumerable: true,
|
|
3422
|
+
get: all[name]
|
|
3423
|
+
});
|
|
3424
|
+
}
|
|
3425
|
+
_export(exports2, {
|
|
3426
|
+
cookies: function() {
|
|
3427
|
+
return cookies;
|
|
3428
|
+
},
|
|
3429
|
+
draftMode: function() {
|
|
3430
|
+
return draftMode;
|
|
3431
|
+
},
|
|
3432
|
+
headers: function() {
|
|
3433
|
+
return headers2;
|
|
3434
|
+
}
|
|
3435
|
+
});
|
|
3436
|
+
var _requestcookies = require_request_cookies();
|
|
3437
|
+
var _headers = require_headers();
|
|
3438
|
+
var _cookies = require_cookies2();
|
|
3439
|
+
var _actionasyncstorageexternal = require_action_async_storage_external();
|
|
3440
|
+
var _draftmode = require_draft_mode();
|
|
3441
|
+
var _dynamicrendering = require_dynamic_rendering();
|
|
3442
|
+
var _staticgenerationasyncstorageexternal = require_static_generation_async_storage_external();
|
|
3443
|
+
var _requestasyncstorageexternal = require_request_async_storage_external();
|
|
3444
|
+
function headers2() {
|
|
3445
|
+
const callingExpression = "headers";
|
|
3446
|
+
const staticGenerationStore = _staticgenerationasyncstorageexternal.staticGenerationAsyncStorage.getStore();
|
|
3447
|
+
if (staticGenerationStore) {
|
|
3448
|
+
if (staticGenerationStore.forceStatic) {
|
|
3449
|
+
return _headers.HeadersAdapter.seal(new Headers({}));
|
|
3450
|
+
} else {
|
|
3451
|
+
(0, _dynamicrendering.trackDynamicDataAccessed)(staticGenerationStore, callingExpression);
|
|
3452
|
+
}
|
|
3453
|
+
}
|
|
3454
|
+
return (0, _requestasyncstorageexternal.getExpectedRequestStore)(callingExpression).headers;
|
|
3455
|
+
}
|
|
3456
|
+
function cookies() {
|
|
3457
|
+
const callingExpression = "cookies";
|
|
3458
|
+
const staticGenerationStore = _staticgenerationasyncstorageexternal.staticGenerationAsyncStorage.getStore();
|
|
3459
|
+
if (staticGenerationStore) {
|
|
3460
|
+
if (staticGenerationStore.forceStatic) {
|
|
3461
|
+
return _requestcookies.RequestCookiesAdapter.seal(new _cookies.RequestCookies(new Headers({})));
|
|
3462
|
+
} else {
|
|
3463
|
+
(0, _dynamicrendering.trackDynamicDataAccessed)(staticGenerationStore, callingExpression);
|
|
3464
|
+
}
|
|
3465
|
+
}
|
|
3466
|
+
const requestStore = (0, _requestasyncstorageexternal.getExpectedRequestStore)(callingExpression);
|
|
3467
|
+
const asyncActionStore = _actionasyncstorageexternal.actionAsyncStorage.getStore();
|
|
3468
|
+
if ((asyncActionStore == null ? void 0 : asyncActionStore.isAction) || (asyncActionStore == null ? void 0 : asyncActionStore.isAppRoute)) {
|
|
3469
|
+
return requestStore.mutableCookies;
|
|
3470
|
+
}
|
|
3471
|
+
return requestStore.cookies;
|
|
3472
|
+
}
|
|
3473
|
+
function draftMode() {
|
|
3474
|
+
const callingExpression = "draftMode";
|
|
3475
|
+
const requestStore = (0, _requestasyncstorageexternal.getExpectedRequestStore)(callingExpression);
|
|
3476
|
+
return new _draftmode.DraftMode(requestStore.draftMode);
|
|
3477
|
+
}
|
|
3478
|
+
if ((typeof exports2.default === "function" || typeof exports2.default === "object" && exports2.default !== null) && typeof exports2.default.__esModule === "undefined") {
|
|
3479
|
+
Object.defineProperty(exports2.default, "__esModule", { value: true });
|
|
3480
|
+
Object.assign(exports2.default, exports2);
|
|
3481
|
+
module2.exports = exports2.default;
|
|
3482
|
+
}
|
|
3483
|
+
}
|
|
3484
|
+
});
|
|
3485
|
+
|
|
3486
|
+
// ../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/headers.js
|
|
3487
|
+
var require_headers3 = __commonJS({
|
|
3488
|
+
"../../node_modules/.pnpm/next@14.2.10_@babel+core@7.26.0_@playwright+test@1.48.2_babel-plugin-macros@3.1.0_react-dom@1_fbkcw4ulk3ham5nboqblg7go7e/node_modules/next/headers.js"(exports2, module2) {
|
|
3489
|
+
module2.exports = require_headers2();
|
|
3490
|
+
}
|
|
3491
|
+
});
|
|
3492
|
+
|
|
3493
|
+
// src/auth.ts
|
|
3494
|
+
var auth_exports = {};
|
|
3495
|
+
__export(auth_exports, {
|
|
3496
|
+
isAuthorized: () => isAuthorized
|
|
3497
|
+
});
|
|
3498
|
+
module.exports = __toCommonJS(auth_exports);
|
|
3499
|
+
var import_headers = __toESM(require_headers3());
|
|
3500
|
+
var isUserAuthorized = async (args) => {
|
|
3501
|
+
const clientID = args.clientID;
|
|
3502
|
+
const token = args.token;
|
|
3503
|
+
try {
|
|
3504
|
+
const tinaCloudRes = await fetch(
|
|
3505
|
+
`https://identity.tinajs.io/v2/apps/${clientID}/currentUser`,
|
|
3506
|
+
{
|
|
3507
|
+
headers: new Headers({
|
|
3508
|
+
"Content-Type": "application/json",
|
|
3509
|
+
authorization: token
|
|
3510
|
+
}),
|
|
3511
|
+
method: "GET"
|
|
3512
|
+
}
|
|
3513
|
+
);
|
|
3514
|
+
if (tinaCloudRes.ok) {
|
|
3515
|
+
const user = await tinaCloudRes.json();
|
|
3516
|
+
return user;
|
|
3517
|
+
}
|
|
3518
|
+
return;
|
|
3519
|
+
} catch (e) {
|
|
3520
|
+
console.error(e);
|
|
3521
|
+
throw e;
|
|
3522
|
+
}
|
|
3523
|
+
};
|
|
3524
|
+
var isAuthorized = async (req) => {
|
|
3525
|
+
const clientID = req.nextUrl.searchParams.get("clientID");
|
|
3526
|
+
const token = (await (0, import_headers.headers)()).get("authorization");
|
|
3527
|
+
if (typeof clientID === "string" && typeof token === "string") {
|
|
3528
|
+
return await isUserAuthorized({ clientID, token });
|
|
3529
|
+
}
|
|
3530
|
+
const errorMessage = (queryParam) => {
|
|
3531
|
+
return `An ${queryParam} query param is required for isAuthorized function but not found please use cms.api.tina.fetchWithToken('/api/something?clientID=YourClientID')`;
|
|
3532
|
+
};
|
|
3533
|
+
if (!clientID) console.error(errorMessage("clientID"));
|
|
3534
|
+
if (!token)
|
|
3535
|
+
console.error(
|
|
3536
|
+
"A authorization header was not found. Please use the cms.api.tina.fetchWithToken function on the frontend"
|
|
3537
|
+
);
|
|
3538
|
+
return void 0;
|
|
3539
|
+
};
|
|
3540
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3541
|
+
0 && (module.exports = {
|
|
3542
|
+
isAuthorized
|
|
3543
|
+
});
|
|
3544
|
+
/*! Bundled license information:
|
|
3545
|
+
|
|
3546
|
+
react/cjs/react.production.min.js:
|
|
3547
|
+
(**
|
|
3548
|
+
* @license React
|
|
3549
|
+
* react.production.min.js
|
|
3550
|
+
*
|
|
3551
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3552
|
+
*
|
|
3553
|
+
* This source code is licensed under the MIT license found in the
|
|
3554
|
+
* LICENSE file in the root directory of this source tree.
|
|
3555
|
+
*)
|
|
3556
|
+
|
|
3557
|
+
react/cjs/react.development.js:
|
|
3558
|
+
(**
|
|
3559
|
+
* @license React
|
|
3560
|
+
* react.development.js
|
|
3561
|
+
*
|
|
3562
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3563
|
+
*
|
|
3564
|
+
* This source code is licensed under the MIT license found in the
|
|
3565
|
+
* LICENSE file in the root directory of this source tree.
|
|
3566
|
+
*)
|
|
3567
|
+
*/
|