@tachybase/module-pdf 0.23.8
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/.turbo/turbo-build.log +15 -0
- package/README.md +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/PdfInstruction.d.ts +107 -0
- package/dist/client/index.d.ts +10 -0
- package/dist/client/index.js +239 -0
- package/dist/externalVersion.js +11 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/node_modules/@babel/core/LICENSE +22 -0
- package/dist/node_modules/@babel/core/cjs-proxy.cjs +68 -0
- package/dist/node_modules/@babel/core/lib/config/cache-contexts.js +3 -0
- package/dist/node_modules/@babel/core/lib/config/caching.js +261 -0
- package/dist/node_modules/@babel/core/lib/config/config-chain.js +469 -0
- package/dist/node_modules/@babel/core/lib/config/config-descriptors.js +190 -0
- package/dist/node_modules/@babel/core/lib/config/files/configuration.js +287 -0
- package/dist/node_modules/@babel/core/lib/config/files/import.cjs +6 -0
- package/dist/node_modules/@babel/core/lib/config/files/index-browser.js +58 -0
- package/dist/node_modules/@babel/core/lib/config/files/index.js +78 -0
- package/dist/node_modules/@babel/core/lib/config/files/module-types.js +195 -0
- package/dist/node_modules/@babel/core/lib/config/files/package.js +61 -0
- package/dist/node_modules/@babel/core/lib/config/files/plugins.js +229 -0
- package/dist/node_modules/@babel/core/lib/config/files/types.js +3 -0
- package/dist/node_modules/@babel/core/lib/config/files/utils.js +36 -0
- package/dist/node_modules/@babel/core/lib/config/full.js +312 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/config-api.js +84 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/deep-array.js +23 -0
- package/dist/node_modules/@babel/core/lib/config/helpers/environment.js +12 -0
- package/dist/node_modules/@babel/core/lib/config/index.js +93 -0
- package/dist/node_modules/@babel/core/lib/config/item.js +67 -0
- package/dist/node_modules/@babel/core/lib/config/partial.js +158 -0
- package/dist/node_modules/@babel/core/lib/config/pattern-to-regex.js +38 -0
- package/dist/node_modules/@babel/core/lib/config/plugin.js +33 -0
- package/dist/node_modules/@babel/core/lib/config/printer.js +113 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets-browser.js +41 -0
- package/dist/node_modules/@babel/core/lib/config/resolve-targets.js +61 -0
- package/dist/node_modules/@babel/core/lib/config/util.js +31 -0
- package/dist/node_modules/@babel/core/lib/config/validation/option-assertions.js +277 -0
- package/dist/node_modules/@babel/core/lib/config/validation/options.js +189 -0
- package/dist/node_modules/@babel/core/lib/config/validation/plugins.js +67 -0
- package/dist/node_modules/@babel/core/lib/config/validation/removed.js +68 -0
- package/dist/node_modules/@babel/core/lib/errors/config-error.js +18 -0
- package/dist/node_modules/@babel/core/lib/errors/rewrite-stack-trace.js +98 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/async.js +90 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/fs.js +31 -0
- package/dist/node_modules/@babel/core/lib/gensync-utils/functional.js +58 -0
- package/dist/node_modules/@babel/core/lib/index.js +227 -0
- package/dist/node_modules/@babel/core/lib/parse.js +47 -0
- package/dist/node_modules/@babel/core/lib/parser/index.js +79 -0
- package/dist/node_modules/@babel/core/lib/parser/util/missing-plugin-helper.js +339 -0
- package/dist/node_modules/@babel/core/lib/tools/build-external-helpers.js +144 -0
- package/dist/node_modules/@babel/core/lib/transform-ast.js +50 -0
- package/dist/node_modules/@babel/core/lib/transform-file-browser.js +23 -0
- package/dist/node_modules/@babel/core/lib/transform-file.js +40 -0
- package/dist/node_modules/@babel/core/lib/transform.js +49 -0
- package/dist/node_modules/@babel/core/lib/transformation/block-hoist-plugin.js +84 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/babel-7-helpers.cjs +4 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/file.js +214 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/generate.js +84 -0
- package/dist/node_modules/@babel/core/lib/transformation/file/merge-map.js +37 -0
- package/dist/node_modules/@babel/core/lib/transformation/index.js +92 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-file.js +129 -0
- package/dist/node_modules/@babel/core/lib/transformation/normalize-opts.js +59 -0
- package/dist/node_modules/@babel/core/lib/transformation/plugin-pass.js +50 -0
- package/dist/node_modules/@babel/core/lib/transformation/util/clone-deep.js +36 -0
- package/dist/node_modules/@babel/core/lib/vendor/import-meta-resolve.js +1043 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/json5 +17 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/parser +17 -0
- package/dist/node_modules/@babel/core/node_modules/.bin/semver +17 -0
- package/dist/node_modules/@babel/core/package.json +1 -0
- package/dist/node_modules/@babel/core/src/config/files/index-browser.ts +113 -0
- package/dist/node_modules/@babel/core/src/config/files/index.ts +29 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets-browser.ts +40 -0
- package/dist/node_modules/@babel/core/src/config/resolve-targets.ts +56 -0
- package/dist/node_modules/@babel/core/src/transform-file-browser.ts +31 -0
- package/dist/node_modules/@babel/core/src/transform-file.ts +55 -0
- package/dist/node_modules/@react-pdf/renderer/index.d.ts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.cjs +4558 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.d.cts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.d.ts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.js +4505 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.min.cjs +10 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.min.d.cts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.min.d.ts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.browser.min.js +10 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.cjs +40 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.d.cts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.d.ts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.js +4393 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.min.cjs +10 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.min.d.cts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.min.d.ts +590 -0
- package/dist/node_modules/@react-pdf/renderer/lib/react-pdf.min.js +10 -0
- package/dist/node_modules/@react-pdf/renderer/package.json +1 -0
- package/dist/node_modules/fs-extra/LICENSE +15 -0
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +161 -0
- package/dist/node_modules/fs-extra/lib/copy/copy.js +177 -0
- package/dist/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/dist/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/dist/node_modules/fs-extra/lib/ensure/file.js +66 -0
- package/dist/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/dist/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
- package/dist/node_modules/fs-extra/lib/fs/index.js +140 -0
- package/dist/node_modules/fs-extra/lib/index.js +1 -0
- package/dist/node_modules/fs-extra/lib/json/index.js +16 -0
- package/dist/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/dist/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/dist/node_modules/fs-extra/lib/move/index.js +7 -0
- package/dist/node_modules/fs-extra/lib/move/move-sync.js +55 -0
- package/dist/node_modules/fs-extra/lib/move/move.js +59 -0
- package/dist/node_modules/fs-extra/lib/output-file/index.js +31 -0
- package/dist/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/dist/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/dist/node_modules/fs-extra/lib/util/stat.js +158 -0
- package/dist/node_modules/fs-extra/lib/util/utimes.js +36 -0
- package/dist/node_modules/fs-extra/package.json +1 -0
- package/dist/server/PdfInstruction.d.ts +10 -0
- package/dist/server/PdfInstruction.js +108 -0
- package/dist/server/index.d.ts +2 -0
- package/dist/server/index.js +53 -0
- package/dist/server/plugin.d.ts +11 -0
- package/dist/server/plugin.js +102 -0
- package/dist/server/services/font-manager.d.ts +6 -0
- package/dist/server/services/font-manager.js +199 -0
- package/package.json +32 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,4558 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var primitives = require('@react-pdf/primitives');
|
|
6
|
+
var queue = require('queue');
|
|
7
|
+
var require$$1 = require('react');
|
|
8
|
+
var FontStore = require('@react-pdf/font');
|
|
9
|
+
var renderPDF = require('@react-pdf/render');
|
|
10
|
+
var PDFDocument = require('@react-pdf/pdfkit');
|
|
11
|
+
var layoutDocument = require('@react-pdf/layout');
|
|
12
|
+
var require$$0 = require('object-assign');
|
|
13
|
+
var scheduler = require('scheduler');
|
|
14
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
15
|
+
|
|
16
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
17
|
+
|
|
18
|
+
function _interopNamespaceCompat(e) {
|
|
19
|
+
if (e && typeof e === 'object' && 'default' in e) return e;
|
|
20
|
+
var n = Object.create(null);
|
|
21
|
+
if (e) {
|
|
22
|
+
Object.keys(e).forEach(function (k) {
|
|
23
|
+
if (k !== 'default') {
|
|
24
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
25
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () { return e[k]; }
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
n.default = e;
|
|
33
|
+
return Object.freeze(n);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
var primitives__namespace = /*#__PURE__*/_interopNamespaceCompat(primitives);
|
|
37
|
+
var queue__default = /*#__PURE__*/_interopDefaultCompat(queue);
|
|
38
|
+
var require$$1__default = /*#__PURE__*/_interopDefaultCompat(require$$1);
|
|
39
|
+
var FontStore__default = /*#__PURE__*/_interopDefaultCompat(FontStore);
|
|
40
|
+
var renderPDF__default = /*#__PURE__*/_interopDefaultCompat(renderPDF);
|
|
41
|
+
var PDFDocument__default = /*#__PURE__*/_interopDefaultCompat(PDFDocument);
|
|
42
|
+
var layoutDocument__default = /*#__PURE__*/_interopDefaultCompat(layoutDocument);
|
|
43
|
+
var require$$0__default = /*#__PURE__*/_interopDefaultCompat(require$$0);
|
|
44
|
+
var scheduler__namespace = /*#__PURE__*/_interopNamespaceCompat(scheduler);
|
|
45
|
+
|
|
46
|
+
function getDefaultExportFromCjs (x) {
|
|
47
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function getAugmentedNamespace(n) {
|
|
51
|
+
if (n.__esModule) return n;
|
|
52
|
+
var f = n.default;
|
|
53
|
+
if (typeof f == "function") {
|
|
54
|
+
var a = function a () {
|
|
55
|
+
if (this instanceof a) {
|
|
56
|
+
return Reflect.construct(f, arguments, this.constructor);
|
|
57
|
+
}
|
|
58
|
+
return f.apply(this, arguments);
|
|
59
|
+
};
|
|
60
|
+
a.prototype = f.prototype;
|
|
61
|
+
} else a = {};
|
|
62
|
+
Object.defineProperty(a, '__esModule', {value: true});
|
|
63
|
+
Object.keys(n).forEach(function (k) {
|
|
64
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
65
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
get: function () {
|
|
68
|
+
return n[k];
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
return a;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var reactReconciler_production_min = {exports: {}};
|
|
76
|
+
|
|
77
|
+
var require$$2 = /*@__PURE__*/getAugmentedNamespace(scheduler__namespace);
|
|
78
|
+
|
|
79
|
+
/** @license React v0.23.0
|
|
80
|
+
* react-reconciler.production.min.js
|
|
81
|
+
*
|
|
82
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the MIT license found in the
|
|
85
|
+
* LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/
|
|
87
|
+
|
|
88
|
+
(function (module) {
|
|
89
|
+
module.exports = function $$$reconciler($$$hostConfig) {
|
|
90
|
+
|
|
91
|
+
var aa = require$$0__default.default,
|
|
92
|
+
ba = require$$1__default.default,
|
|
93
|
+
m = require$$2;
|
|
94
|
+
function n(a) {
|
|
95
|
+
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
96
|
+
return "Minified React error #" + a + "; visit " + b + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";
|
|
97
|
+
}
|
|
98
|
+
var q = ba.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
99
|
+
q.hasOwnProperty("ReactCurrentDispatcher") || (q.ReactCurrentDispatcher = {
|
|
100
|
+
current: null
|
|
101
|
+
});
|
|
102
|
+
q.hasOwnProperty("ReactCurrentBatchConfig") || (q.ReactCurrentBatchConfig = {
|
|
103
|
+
suspense: null
|
|
104
|
+
});
|
|
105
|
+
var u = "function" === typeof Symbol && Symbol.for,
|
|
106
|
+
ca = u ? Symbol.for("react.element") : 60103,
|
|
107
|
+
da = u ? Symbol.for("react.portal") : 60106,
|
|
108
|
+
ea = u ? Symbol.for("react.fragment") : 60107,
|
|
109
|
+
fa = u ? Symbol.for("react.strict_mode") : 60108,
|
|
110
|
+
ha = u ? Symbol.for("react.profiler") : 60114,
|
|
111
|
+
ia = u ? Symbol.for("react.provider") : 60109,
|
|
112
|
+
ja = u ? Symbol.for("react.context") : 60110,
|
|
113
|
+
ka = u ? Symbol.for("react.concurrent_mode") : 60111,
|
|
114
|
+
la = u ? Symbol.for("react.forward_ref") : 60112,
|
|
115
|
+
ma = u ? Symbol.for("react.suspense") : 60113,
|
|
116
|
+
na = u ? Symbol.for("react.suspense_list") : 60120,
|
|
117
|
+
oa = u ? Symbol.for("react.memo") : 60115,
|
|
118
|
+
pa = u ? Symbol.for("react.lazy") : 60116;
|
|
119
|
+
var qa = "function" === typeof Symbol && Symbol.iterator;
|
|
120
|
+
function ra(a) {
|
|
121
|
+
if (null === a || "object" !== typeof a) return null;
|
|
122
|
+
a = qa && a[qa] || a["@@iterator"];
|
|
123
|
+
return "function" === typeof a ? a : null;
|
|
124
|
+
}
|
|
125
|
+
function sa(a) {
|
|
126
|
+
if (-1 === a._status) {
|
|
127
|
+
a._status = 0;
|
|
128
|
+
var b = a._ctor;
|
|
129
|
+
b = b();
|
|
130
|
+
a._result = b;
|
|
131
|
+
b.then(function (b) {
|
|
132
|
+
0 === a._status && (b = b.default, a._status = 1, a._result = b);
|
|
133
|
+
}, function (b) {
|
|
134
|
+
0 === a._status && (a._status = 2, a._result = b);
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function ta(a) {
|
|
139
|
+
if (null == a) return null;
|
|
140
|
+
if ("function" === typeof a) return a.displayName || a.name || null;
|
|
141
|
+
if ("string" === typeof a) return a;
|
|
142
|
+
switch (a) {
|
|
143
|
+
case ea:
|
|
144
|
+
return "Fragment";
|
|
145
|
+
case da:
|
|
146
|
+
return "Portal";
|
|
147
|
+
case ha:
|
|
148
|
+
return "Profiler";
|
|
149
|
+
case fa:
|
|
150
|
+
return "StrictMode";
|
|
151
|
+
case ma:
|
|
152
|
+
return "Suspense";
|
|
153
|
+
case na:
|
|
154
|
+
return "SuspenseList";
|
|
155
|
+
}
|
|
156
|
+
if ("object" === typeof a) switch (a.$$typeof) {
|
|
157
|
+
case ja:
|
|
158
|
+
return "Context.Consumer";
|
|
159
|
+
case ia:
|
|
160
|
+
return "Context.Provider";
|
|
161
|
+
case la:
|
|
162
|
+
var b = a.render;
|
|
163
|
+
b = b.displayName || b.name || "";
|
|
164
|
+
return a.displayName || ("" !== b ? "ForwardRef(" + b + ")" : "ForwardRef");
|
|
165
|
+
case oa:
|
|
166
|
+
return ta(a.type);
|
|
167
|
+
case pa:
|
|
168
|
+
if (a = 1 === a._status ? a._result : null) return ta(a);
|
|
169
|
+
}
|
|
170
|
+
return null;
|
|
171
|
+
}
|
|
172
|
+
function ua(a) {
|
|
173
|
+
var b = a,
|
|
174
|
+
c = a;
|
|
175
|
+
if (a.alternate) for (; b.return;) b = b.return;else {
|
|
176
|
+
a = b;
|
|
177
|
+
do b = a, 0 !== (b.effectTag & 1026) && (c = b.return), a = b.return; while (a);
|
|
178
|
+
}
|
|
179
|
+
return 3 === b.tag ? c : null;
|
|
180
|
+
}
|
|
181
|
+
function va(a) {
|
|
182
|
+
if (ua(a) !== a) throw Error(n(188));
|
|
183
|
+
}
|
|
184
|
+
function wa(a) {
|
|
185
|
+
var b = a.alternate;
|
|
186
|
+
if (!b) {
|
|
187
|
+
b = ua(a);
|
|
188
|
+
if (null === b) throw Error(n(188));
|
|
189
|
+
return b !== a ? null : a;
|
|
190
|
+
}
|
|
191
|
+
for (var c = a, d = b;;) {
|
|
192
|
+
var e = c.return;
|
|
193
|
+
if (null === e) break;
|
|
194
|
+
var f = e.alternate;
|
|
195
|
+
if (null === f) {
|
|
196
|
+
d = e.return;
|
|
197
|
+
if (null !== d) {
|
|
198
|
+
c = d;
|
|
199
|
+
continue;
|
|
200
|
+
}
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
if (e.child === f.child) {
|
|
204
|
+
for (f = e.child; f;) {
|
|
205
|
+
if (f === c) return va(e), a;
|
|
206
|
+
if (f === d) return va(e), b;
|
|
207
|
+
f = f.sibling;
|
|
208
|
+
}
|
|
209
|
+
throw Error(n(188));
|
|
210
|
+
}
|
|
211
|
+
if (c.return !== d.return) c = e, d = f;else {
|
|
212
|
+
for (var g = !1, l = e.child; l;) {
|
|
213
|
+
if (l === c) {
|
|
214
|
+
g = !0;
|
|
215
|
+
c = e;
|
|
216
|
+
d = f;
|
|
217
|
+
break;
|
|
218
|
+
}
|
|
219
|
+
if (l === d) {
|
|
220
|
+
g = !0;
|
|
221
|
+
d = e;
|
|
222
|
+
c = f;
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
l = l.sibling;
|
|
226
|
+
}
|
|
227
|
+
if (!g) {
|
|
228
|
+
for (l = f.child; l;) {
|
|
229
|
+
if (l === c) {
|
|
230
|
+
g = !0;
|
|
231
|
+
c = f;
|
|
232
|
+
d = e;
|
|
233
|
+
break;
|
|
234
|
+
}
|
|
235
|
+
if (l === d) {
|
|
236
|
+
g = !0;
|
|
237
|
+
d = f;
|
|
238
|
+
c = e;
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
l = l.sibling;
|
|
242
|
+
}
|
|
243
|
+
if (!g) throw Error(n(189));
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
if (c.alternate !== d) throw Error(n(190));
|
|
247
|
+
}
|
|
248
|
+
if (3 !== c.tag) throw Error(n(188));
|
|
249
|
+
return c.stateNode.current === c ? a : b;
|
|
250
|
+
}
|
|
251
|
+
function xa(a) {
|
|
252
|
+
a = wa(a);
|
|
253
|
+
if (!a) return null;
|
|
254
|
+
for (var b = a;;) {
|
|
255
|
+
if (5 === b.tag || 6 === b.tag) return b;
|
|
256
|
+
if (b.child) b.child.return = b, b = b.child;else {
|
|
257
|
+
if (b === a) break;
|
|
258
|
+
for (; !b.sibling;) {
|
|
259
|
+
if (!b.return || b.return === a) return null;
|
|
260
|
+
b = b.return;
|
|
261
|
+
}
|
|
262
|
+
b.sibling.return = b.return;
|
|
263
|
+
b = b.sibling;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
return null;
|
|
267
|
+
}
|
|
268
|
+
function ya(a) {
|
|
269
|
+
a = wa(a);
|
|
270
|
+
if (!a) return null;
|
|
271
|
+
for (var b = a;;) {
|
|
272
|
+
if (5 === b.tag || 6 === b.tag) return b;
|
|
273
|
+
if (b.child && 4 !== b.tag) b.child.return = b, b = b.child;else {
|
|
274
|
+
if (b === a) break;
|
|
275
|
+
for (; !b.sibling;) {
|
|
276
|
+
if (!b.return || b.return === a) return null;
|
|
277
|
+
b = b.return;
|
|
278
|
+
}
|
|
279
|
+
b.sibling.return = b.return;
|
|
280
|
+
b = b.sibling;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
var za = $$$hostConfig.getPublicInstance,
|
|
286
|
+
Aa = $$$hostConfig.getRootHostContext,
|
|
287
|
+
Ba = $$$hostConfig.getChildHostContext,
|
|
288
|
+
Ca = $$$hostConfig.prepareForCommit,
|
|
289
|
+
Da = $$$hostConfig.resetAfterCommit,
|
|
290
|
+
Ea = $$$hostConfig.createInstance,
|
|
291
|
+
Fa = $$$hostConfig.appendInitialChild,
|
|
292
|
+
Ga = $$$hostConfig.finalizeInitialChildren,
|
|
293
|
+
Ia = $$$hostConfig.prepareUpdate,
|
|
294
|
+
Ja = $$$hostConfig.shouldSetTextContent,
|
|
295
|
+
Ka = $$$hostConfig.shouldDeprioritizeSubtree,
|
|
296
|
+
La = $$$hostConfig.createTextInstance,
|
|
297
|
+
Ma = $$$hostConfig.setTimeout,
|
|
298
|
+
Na = $$$hostConfig.clearTimeout,
|
|
299
|
+
Oa = $$$hostConfig.noTimeout,
|
|
300
|
+
Pa = $$$hostConfig.isPrimaryRenderer,
|
|
301
|
+
Qa = $$$hostConfig.supportsMutation,
|
|
302
|
+
Ra = $$$hostConfig.supportsPersistence,
|
|
303
|
+
Sa = $$$hostConfig.supportsHydration,
|
|
304
|
+
Ta = $$$hostConfig.appendChild,
|
|
305
|
+
Ua = $$$hostConfig.appendChildToContainer,
|
|
306
|
+
Va = $$$hostConfig.commitTextUpdate,
|
|
307
|
+
Wa = $$$hostConfig.commitMount,
|
|
308
|
+
Xa = $$$hostConfig.commitUpdate,
|
|
309
|
+
Ya = $$$hostConfig.insertBefore,
|
|
310
|
+
Za = $$$hostConfig.insertInContainerBefore,
|
|
311
|
+
$a = $$$hostConfig.removeChild,
|
|
312
|
+
ab = $$$hostConfig.removeChildFromContainer,
|
|
313
|
+
bb = $$$hostConfig.resetTextContent,
|
|
314
|
+
cb = $$$hostConfig.hideInstance,
|
|
315
|
+
db = $$$hostConfig.hideTextInstance,
|
|
316
|
+
eb = $$$hostConfig.unhideInstance,
|
|
317
|
+
fb = $$$hostConfig.unhideTextInstance,
|
|
318
|
+
gb = $$$hostConfig.cloneInstance,
|
|
319
|
+
hb = $$$hostConfig.createContainerChildSet,
|
|
320
|
+
ib = $$$hostConfig.appendChildToContainerChildSet,
|
|
321
|
+
kb = $$$hostConfig.finalizeContainerChildren,
|
|
322
|
+
lb = $$$hostConfig.replaceContainerChildren,
|
|
323
|
+
mb = $$$hostConfig.cloneHiddenInstance,
|
|
324
|
+
nb = $$$hostConfig.cloneHiddenTextInstance,
|
|
325
|
+
ob = $$$hostConfig.canHydrateInstance,
|
|
326
|
+
pb = $$$hostConfig.canHydrateTextInstance,
|
|
327
|
+
qb = $$$hostConfig.isSuspenseInstancePending,
|
|
328
|
+
rb = $$$hostConfig.isSuspenseInstanceFallback,
|
|
329
|
+
sb = $$$hostConfig.getNextHydratableSibling,
|
|
330
|
+
tb = $$$hostConfig.getFirstHydratableChild,
|
|
331
|
+
ub = $$$hostConfig.hydrateInstance,
|
|
332
|
+
vb = $$$hostConfig.hydrateTextInstance,
|
|
333
|
+
wb = $$$hostConfig.getNextHydratableInstanceAfterSuspenseInstance,
|
|
334
|
+
xb = $$$hostConfig.commitHydratedContainer,
|
|
335
|
+
yb = $$$hostConfig.commitHydratedSuspenseInstance,
|
|
336
|
+
zb = /^(.*)[\\\/]/;
|
|
337
|
+
function Ab(a) {
|
|
338
|
+
var b = "";
|
|
339
|
+
do {
|
|
340
|
+
a: switch (a.tag) {
|
|
341
|
+
case 3:
|
|
342
|
+
case 4:
|
|
343
|
+
case 6:
|
|
344
|
+
case 7:
|
|
345
|
+
case 10:
|
|
346
|
+
case 9:
|
|
347
|
+
var c = "";
|
|
348
|
+
break a;
|
|
349
|
+
default:
|
|
350
|
+
var d = a._debugOwner,
|
|
351
|
+
e = a._debugSource,
|
|
352
|
+
f = ta(a.type);
|
|
353
|
+
c = null;
|
|
354
|
+
d && (c = ta(d.type));
|
|
355
|
+
d = f;
|
|
356
|
+
f = "";
|
|
357
|
+
e ? f = " (at " + e.fileName.replace(zb, "") + ":" + e.lineNumber + ")" : c && (f = " (created by " + c + ")");
|
|
358
|
+
c = "\n in " + (d || "Unknown") + f;
|
|
359
|
+
}
|
|
360
|
+
b += c;
|
|
361
|
+
a = a.return;
|
|
362
|
+
} while (a);
|
|
363
|
+
return b;
|
|
364
|
+
}
|
|
365
|
+
var Bb = [],
|
|
366
|
+
Cb = -1;
|
|
367
|
+
function y(a) {
|
|
368
|
+
0 > Cb || (a.current = Bb[Cb], Bb[Cb] = null, Cb--);
|
|
369
|
+
}
|
|
370
|
+
function z(a, b) {
|
|
371
|
+
Cb++;
|
|
372
|
+
Bb[Cb] = a.current;
|
|
373
|
+
a.current = b;
|
|
374
|
+
}
|
|
375
|
+
var Db = {},
|
|
376
|
+
A = {
|
|
377
|
+
current: Db
|
|
378
|
+
},
|
|
379
|
+
B = {
|
|
380
|
+
current: !1
|
|
381
|
+
},
|
|
382
|
+
Eb = Db;
|
|
383
|
+
function Fb(a, b) {
|
|
384
|
+
var c = a.type.contextTypes;
|
|
385
|
+
if (!c) return Db;
|
|
386
|
+
var d = a.stateNode;
|
|
387
|
+
if (d && d.__reactInternalMemoizedUnmaskedChildContext === b) return d.__reactInternalMemoizedMaskedChildContext;
|
|
388
|
+
var e = {},
|
|
389
|
+
f;
|
|
390
|
+
for (f in c) e[f] = b[f];
|
|
391
|
+
d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = b, a.__reactInternalMemoizedMaskedChildContext = e);
|
|
392
|
+
return e;
|
|
393
|
+
}
|
|
394
|
+
function C(a) {
|
|
395
|
+
a = a.childContextTypes;
|
|
396
|
+
return null !== a && void 0 !== a;
|
|
397
|
+
}
|
|
398
|
+
function Gb(a) {
|
|
399
|
+
y(B);
|
|
400
|
+
y(A);
|
|
401
|
+
}
|
|
402
|
+
function Hb(a) {
|
|
403
|
+
y(B);
|
|
404
|
+
y(A);
|
|
405
|
+
}
|
|
406
|
+
function Ib(a, b, c) {
|
|
407
|
+
if (A.current !== Db) throw Error(n(168));
|
|
408
|
+
z(A, b);
|
|
409
|
+
z(B, c);
|
|
410
|
+
}
|
|
411
|
+
function Jb(a, b, c) {
|
|
412
|
+
var d = a.stateNode;
|
|
413
|
+
a = b.childContextTypes;
|
|
414
|
+
if ("function" !== typeof d.getChildContext) return c;
|
|
415
|
+
d = d.getChildContext();
|
|
416
|
+
for (var e in d) if (!(e in a)) throw Error(n(108, ta(b) || "Unknown", e));
|
|
417
|
+
return aa({}, c, {}, d);
|
|
418
|
+
}
|
|
419
|
+
function Kb(a) {
|
|
420
|
+
var b = a.stateNode;
|
|
421
|
+
b = b && b.__reactInternalMemoizedMergedChildContext || Db;
|
|
422
|
+
Eb = A.current;
|
|
423
|
+
z(A, b);
|
|
424
|
+
z(B, B.current);
|
|
425
|
+
return !0;
|
|
426
|
+
}
|
|
427
|
+
function Lb(a, b, c) {
|
|
428
|
+
var d = a.stateNode;
|
|
429
|
+
if (!d) throw Error(n(169));
|
|
430
|
+
c ? (b = Jb(a, b, Eb), d.__reactInternalMemoizedMergedChildContext = b, y(B), y(A), z(A, b)) : y(B);
|
|
431
|
+
z(B, c);
|
|
432
|
+
}
|
|
433
|
+
var Mb = m.unstable_runWithPriority,
|
|
434
|
+
Nb = m.unstable_scheduleCallback,
|
|
435
|
+
Ob = m.unstable_cancelCallback,
|
|
436
|
+
Pb = m.unstable_shouldYield,
|
|
437
|
+
Qb = m.unstable_requestPaint,
|
|
438
|
+
Tb = m.unstable_now,
|
|
439
|
+
Ub = m.unstable_getCurrentPriorityLevel,
|
|
440
|
+
Vb = m.unstable_ImmediatePriority,
|
|
441
|
+
Wb = m.unstable_UserBlockingPriority,
|
|
442
|
+
Xb = m.unstable_NormalPriority,
|
|
443
|
+
Yb = m.unstable_LowPriority,
|
|
444
|
+
Zb = m.unstable_IdlePriority,
|
|
445
|
+
$b = {},
|
|
446
|
+
ac = void 0 !== Qb ? Qb : function () {},
|
|
447
|
+
bc = null,
|
|
448
|
+
cc = null,
|
|
449
|
+
dc = !1,
|
|
450
|
+
ec = Tb(),
|
|
451
|
+
E = 1E4 > ec ? Tb : function () {
|
|
452
|
+
return Tb() - ec;
|
|
453
|
+
};
|
|
454
|
+
function fc() {
|
|
455
|
+
switch (Ub()) {
|
|
456
|
+
case Vb:
|
|
457
|
+
return 99;
|
|
458
|
+
case Wb:
|
|
459
|
+
return 98;
|
|
460
|
+
case Xb:
|
|
461
|
+
return 97;
|
|
462
|
+
case Yb:
|
|
463
|
+
return 96;
|
|
464
|
+
case Zb:
|
|
465
|
+
return 95;
|
|
466
|
+
default:
|
|
467
|
+
throw Error(n(332));
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
function gc(a) {
|
|
471
|
+
switch (a) {
|
|
472
|
+
case 99:
|
|
473
|
+
return Vb;
|
|
474
|
+
case 98:
|
|
475
|
+
return Wb;
|
|
476
|
+
case 97:
|
|
477
|
+
return Xb;
|
|
478
|
+
case 96:
|
|
479
|
+
return Yb;
|
|
480
|
+
case 95:
|
|
481
|
+
return Zb;
|
|
482
|
+
default:
|
|
483
|
+
throw Error(n(332));
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
function hc(a, b) {
|
|
487
|
+
a = gc(a);
|
|
488
|
+
return Mb(a, b);
|
|
489
|
+
}
|
|
490
|
+
function ic(a, b, c) {
|
|
491
|
+
a = gc(a);
|
|
492
|
+
return Nb(a, b, c);
|
|
493
|
+
}
|
|
494
|
+
function jc(a) {
|
|
495
|
+
null === bc ? (bc = [a], cc = Nb(Vb, kc)) : bc.push(a);
|
|
496
|
+
return $b;
|
|
497
|
+
}
|
|
498
|
+
function F() {
|
|
499
|
+
if (null !== cc) {
|
|
500
|
+
var a = cc;
|
|
501
|
+
cc = null;
|
|
502
|
+
Ob(a);
|
|
503
|
+
}
|
|
504
|
+
kc();
|
|
505
|
+
}
|
|
506
|
+
function kc() {
|
|
507
|
+
if (!dc && null !== bc) {
|
|
508
|
+
dc = !0;
|
|
509
|
+
var a = 0;
|
|
510
|
+
try {
|
|
511
|
+
var b = bc;
|
|
512
|
+
hc(99, function () {
|
|
513
|
+
for (; a < b.length; a++) {
|
|
514
|
+
var c = b[a];
|
|
515
|
+
do c = c(!0); while (null !== c);
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
bc = null;
|
|
519
|
+
} catch (c) {
|
|
520
|
+
throw null !== bc && (bc = bc.slice(a + 1)), Nb(Vb, F), c;
|
|
521
|
+
} finally {
|
|
522
|
+
dc = !1;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
var lc = 3;
|
|
527
|
+
function mc(a, b, c) {
|
|
528
|
+
c /= 10;
|
|
529
|
+
return 1073741821 - (((1073741821 - a + b / 10) / c | 0) + 1) * c;
|
|
530
|
+
}
|
|
531
|
+
function nc(a, b) {
|
|
532
|
+
return a === b && (0 !== a || 1 / a === 1 / b) || a !== a && b !== b;
|
|
533
|
+
}
|
|
534
|
+
var oc = "function" === typeof Object.is ? Object.is : nc,
|
|
535
|
+
pc = Object.prototype.hasOwnProperty;
|
|
536
|
+
function qc(a, b) {
|
|
537
|
+
if (oc(a, b)) return !0;
|
|
538
|
+
if ("object" !== typeof a || null === a || "object" !== typeof b || null === b) return !1;
|
|
539
|
+
var c = Object.keys(a),
|
|
540
|
+
d = Object.keys(b);
|
|
541
|
+
if (c.length !== d.length) return !1;
|
|
542
|
+
for (d = 0; d < c.length; d++) if (!pc.call(b, c[d]) || !oc(a[c[d]], b[c[d]])) return !1;
|
|
543
|
+
return !0;
|
|
544
|
+
}
|
|
545
|
+
function rc(a, b) {
|
|
546
|
+
if (a && a.defaultProps) {
|
|
547
|
+
b = aa({}, b);
|
|
548
|
+
a = a.defaultProps;
|
|
549
|
+
for (var c in a) void 0 === b[c] && (b[c] = a[c]);
|
|
550
|
+
}
|
|
551
|
+
return b;
|
|
552
|
+
}
|
|
553
|
+
var sc = {
|
|
554
|
+
current: null
|
|
555
|
+
},
|
|
556
|
+
tc = null,
|
|
557
|
+
uc = null,
|
|
558
|
+
vc = null;
|
|
559
|
+
function wc() {
|
|
560
|
+
vc = uc = tc = null;
|
|
561
|
+
}
|
|
562
|
+
function xc(a, b) {
|
|
563
|
+
var c = a.type._context;
|
|
564
|
+
Pa ? (z(sc, c._currentValue), c._currentValue = b) : (z(sc, c._currentValue2), c._currentValue2 = b);
|
|
565
|
+
}
|
|
566
|
+
function yc(a) {
|
|
567
|
+
var b = sc.current;
|
|
568
|
+
y(sc);
|
|
569
|
+
a = a.type._context;
|
|
570
|
+
Pa ? a._currentValue = b : a._currentValue2 = b;
|
|
571
|
+
}
|
|
572
|
+
function zc(a, b) {
|
|
573
|
+
for (; null !== a;) {
|
|
574
|
+
var c = a.alternate;
|
|
575
|
+
if (a.childExpirationTime < b) a.childExpirationTime = b, null !== c && c.childExpirationTime < b && (c.childExpirationTime = b);else if (null !== c && c.childExpirationTime < b) c.childExpirationTime = b;else break;
|
|
576
|
+
a = a.return;
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
function Ac(a, b) {
|
|
580
|
+
tc = a;
|
|
581
|
+
vc = uc = null;
|
|
582
|
+
a = a.dependencies;
|
|
583
|
+
null !== a && null !== a.firstContext && (a.expirationTime >= b && (Bc = !0), a.firstContext = null);
|
|
584
|
+
}
|
|
585
|
+
function Cc(a, b) {
|
|
586
|
+
if (vc !== a && !1 !== b && 0 !== b) {
|
|
587
|
+
if ("number" !== typeof b || 1073741823 === b) vc = a, b = 1073741823;
|
|
588
|
+
b = {
|
|
589
|
+
context: a,
|
|
590
|
+
observedBits: b,
|
|
591
|
+
next: null
|
|
592
|
+
};
|
|
593
|
+
if (null === uc) {
|
|
594
|
+
if (null === tc) throw Error(n(308));
|
|
595
|
+
uc = b;
|
|
596
|
+
tc.dependencies = {
|
|
597
|
+
expirationTime: 0,
|
|
598
|
+
firstContext: b,
|
|
599
|
+
responders: null
|
|
600
|
+
};
|
|
601
|
+
} else uc = uc.next = b;
|
|
602
|
+
}
|
|
603
|
+
return Pa ? a._currentValue : a._currentValue2;
|
|
604
|
+
}
|
|
605
|
+
var Dc = !1;
|
|
606
|
+
function Ec(a) {
|
|
607
|
+
return {
|
|
608
|
+
baseState: a,
|
|
609
|
+
firstUpdate: null,
|
|
610
|
+
lastUpdate: null,
|
|
611
|
+
firstCapturedUpdate: null,
|
|
612
|
+
lastCapturedUpdate: null,
|
|
613
|
+
firstEffect: null,
|
|
614
|
+
lastEffect: null,
|
|
615
|
+
firstCapturedEffect: null,
|
|
616
|
+
lastCapturedEffect: null
|
|
617
|
+
};
|
|
618
|
+
}
|
|
619
|
+
function Fc(a) {
|
|
620
|
+
return {
|
|
621
|
+
baseState: a.baseState,
|
|
622
|
+
firstUpdate: a.firstUpdate,
|
|
623
|
+
lastUpdate: a.lastUpdate,
|
|
624
|
+
firstCapturedUpdate: null,
|
|
625
|
+
lastCapturedUpdate: null,
|
|
626
|
+
firstEffect: null,
|
|
627
|
+
lastEffect: null,
|
|
628
|
+
firstCapturedEffect: null,
|
|
629
|
+
lastCapturedEffect: null
|
|
630
|
+
};
|
|
631
|
+
}
|
|
632
|
+
function Gc(a, b) {
|
|
633
|
+
return {
|
|
634
|
+
expirationTime: a,
|
|
635
|
+
suspenseConfig: b,
|
|
636
|
+
tag: 0,
|
|
637
|
+
payload: null,
|
|
638
|
+
callback: null,
|
|
639
|
+
next: null,
|
|
640
|
+
nextEffect: null
|
|
641
|
+
};
|
|
642
|
+
}
|
|
643
|
+
function Hc(a, b) {
|
|
644
|
+
null === a.lastUpdate ? a.firstUpdate = a.lastUpdate = b : (a.lastUpdate.next = b, a.lastUpdate = b);
|
|
645
|
+
}
|
|
646
|
+
function Ic(a, b) {
|
|
647
|
+
var c = a.alternate;
|
|
648
|
+
if (null === c) {
|
|
649
|
+
var d = a.updateQueue;
|
|
650
|
+
var e = null;
|
|
651
|
+
null === d && (d = a.updateQueue = Ec(a.memoizedState));
|
|
652
|
+
} else d = a.updateQueue, e = c.updateQueue, null === d ? null === e ? (d = a.updateQueue = Ec(a.memoizedState), e = c.updateQueue = Ec(c.memoizedState)) : d = a.updateQueue = Fc(e) : null === e && (e = c.updateQueue = Fc(d));
|
|
653
|
+
null === e || d === e ? Hc(d, b) : null === d.lastUpdate || null === e.lastUpdate ? (Hc(d, b), Hc(e, b)) : (Hc(d, b), e.lastUpdate = b);
|
|
654
|
+
}
|
|
655
|
+
function Jc(a, b) {
|
|
656
|
+
var c = a.updateQueue;
|
|
657
|
+
c = null === c ? a.updateQueue = Ec(a.memoizedState) : Kc(a, c);
|
|
658
|
+
null === c.lastCapturedUpdate ? c.firstCapturedUpdate = c.lastCapturedUpdate = b : (c.lastCapturedUpdate.next = b, c.lastCapturedUpdate = b);
|
|
659
|
+
}
|
|
660
|
+
function Kc(a, b) {
|
|
661
|
+
var c = a.alternate;
|
|
662
|
+
null !== c && b === c.updateQueue && (b = a.updateQueue = Fc(b));
|
|
663
|
+
return b;
|
|
664
|
+
}
|
|
665
|
+
function Lc(a, b, c, d, e, f) {
|
|
666
|
+
switch (c.tag) {
|
|
667
|
+
case 1:
|
|
668
|
+
return a = c.payload, "function" === typeof a ? a.call(f, d, e) : a;
|
|
669
|
+
case 3:
|
|
670
|
+
a.effectTag = a.effectTag & -4097 | 64;
|
|
671
|
+
case 0:
|
|
672
|
+
a = c.payload;
|
|
673
|
+
e = "function" === typeof a ? a.call(f, d, e) : a;
|
|
674
|
+
if (null === e || void 0 === e) break;
|
|
675
|
+
return aa({}, d, e);
|
|
676
|
+
case 2:
|
|
677
|
+
Dc = !0;
|
|
678
|
+
}
|
|
679
|
+
return d;
|
|
680
|
+
}
|
|
681
|
+
function Nc(a, b, c, d, e) {
|
|
682
|
+
Dc = !1;
|
|
683
|
+
b = Kc(a, b);
|
|
684
|
+
for (var f = b.baseState, g = null, l = 0, h = b.firstUpdate, k = f; null !== h;) {
|
|
685
|
+
var p = h.expirationTime;
|
|
686
|
+
p < e ? (null === g && (g = h, f = k), l < p && (l = p)) : (Oc(p, h.suspenseConfig), k = Lc(a, b, h, k, c, d), null !== h.callback && (a.effectTag |= 32, h.nextEffect = null, null === b.lastEffect ? b.firstEffect = b.lastEffect = h : (b.lastEffect.nextEffect = h, b.lastEffect = h)));
|
|
687
|
+
h = h.next;
|
|
688
|
+
}
|
|
689
|
+
p = null;
|
|
690
|
+
for (h = b.firstCapturedUpdate; null !== h;) {
|
|
691
|
+
var D = h.expirationTime;
|
|
692
|
+
D < e ? (null === p && (p = h, null === g && (f = k)), l < D && (l = D)) : (k = Lc(a, b, h, k, c, d), null !== h.callback && (a.effectTag |= 32, h.nextEffect = null, null === b.lastCapturedEffect ? b.firstCapturedEffect = b.lastCapturedEffect = h : (b.lastCapturedEffect.nextEffect = h, b.lastCapturedEffect = h)));
|
|
693
|
+
h = h.next;
|
|
694
|
+
}
|
|
695
|
+
null === g && (b.lastUpdate = null);
|
|
696
|
+
null === p ? b.lastCapturedUpdate = null : a.effectTag |= 32;
|
|
697
|
+
null === g && null === p && (f = k);
|
|
698
|
+
b.baseState = f;
|
|
699
|
+
b.firstUpdate = g;
|
|
700
|
+
b.firstCapturedUpdate = p;
|
|
701
|
+
Pc(l);
|
|
702
|
+
a.expirationTime = l;
|
|
703
|
+
a.memoizedState = k;
|
|
704
|
+
}
|
|
705
|
+
function Qc(a, b, c) {
|
|
706
|
+
null !== b.firstCapturedUpdate && (null !== b.lastUpdate && (b.lastUpdate.next = b.firstCapturedUpdate, b.lastUpdate = b.lastCapturedUpdate), b.firstCapturedUpdate = b.lastCapturedUpdate = null);
|
|
707
|
+
Rc(b.firstEffect, c);
|
|
708
|
+
b.firstEffect = b.lastEffect = null;
|
|
709
|
+
Rc(b.firstCapturedEffect, c);
|
|
710
|
+
b.firstCapturedEffect = b.lastCapturedEffect = null;
|
|
711
|
+
}
|
|
712
|
+
function Rc(a, b) {
|
|
713
|
+
for (; null !== a;) {
|
|
714
|
+
var c = a.callback;
|
|
715
|
+
if (null !== c) {
|
|
716
|
+
a.callback = null;
|
|
717
|
+
var d = b;
|
|
718
|
+
if ("function" !== typeof c) throw Error(n(191, c));
|
|
719
|
+
c.call(d);
|
|
720
|
+
}
|
|
721
|
+
a = a.nextEffect;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
var Sc = q.ReactCurrentBatchConfig,
|
|
725
|
+
Tc = new ba.Component().refs;
|
|
726
|
+
function Uc(a, b, c, d) {
|
|
727
|
+
b = a.memoizedState;
|
|
728
|
+
c = c(d, b);
|
|
729
|
+
c = null === c || void 0 === c ? b : aa({}, b, c);
|
|
730
|
+
a.memoizedState = c;
|
|
731
|
+
d = a.updateQueue;
|
|
732
|
+
null !== d && 0 === a.expirationTime && (d.baseState = c);
|
|
733
|
+
}
|
|
734
|
+
var Xc = {
|
|
735
|
+
isMounted: function (a) {
|
|
736
|
+
return (a = a._reactInternalFiber) ? ua(a) === a : !1;
|
|
737
|
+
},
|
|
738
|
+
enqueueSetState: function (a, b, c) {
|
|
739
|
+
a = a._reactInternalFiber;
|
|
740
|
+
var d = G(),
|
|
741
|
+
e = Sc.suspense;
|
|
742
|
+
d = Vc(d, a, e);
|
|
743
|
+
e = Gc(d, e);
|
|
744
|
+
e.payload = b;
|
|
745
|
+
void 0 !== c && null !== c && (e.callback = c);
|
|
746
|
+
Ic(a, e);
|
|
747
|
+
Wc(a, d);
|
|
748
|
+
},
|
|
749
|
+
enqueueReplaceState: function (a, b, c) {
|
|
750
|
+
a = a._reactInternalFiber;
|
|
751
|
+
var d = G(),
|
|
752
|
+
e = Sc.suspense;
|
|
753
|
+
d = Vc(d, a, e);
|
|
754
|
+
e = Gc(d, e);
|
|
755
|
+
e.tag = 1;
|
|
756
|
+
e.payload = b;
|
|
757
|
+
void 0 !== c && null !== c && (e.callback = c);
|
|
758
|
+
Ic(a, e);
|
|
759
|
+
Wc(a, d);
|
|
760
|
+
},
|
|
761
|
+
enqueueForceUpdate: function (a, b) {
|
|
762
|
+
a = a._reactInternalFiber;
|
|
763
|
+
var c = G(),
|
|
764
|
+
d = Sc.suspense;
|
|
765
|
+
c = Vc(c, a, d);
|
|
766
|
+
d = Gc(c, d);
|
|
767
|
+
d.tag = 2;
|
|
768
|
+
void 0 !== b && null !== b && (d.callback = b);
|
|
769
|
+
Ic(a, d);
|
|
770
|
+
Wc(a, c);
|
|
771
|
+
}
|
|
772
|
+
};
|
|
773
|
+
function Yc(a, b, c, d, e, f, g) {
|
|
774
|
+
a = a.stateNode;
|
|
775
|
+
return "function" === typeof a.shouldComponentUpdate ? a.shouldComponentUpdate(d, f, g) : b.prototype && b.prototype.isPureReactComponent ? !qc(c, d) || !qc(e, f) : !0;
|
|
776
|
+
}
|
|
777
|
+
function Zc(a, b, c) {
|
|
778
|
+
var d = !1,
|
|
779
|
+
e = Db;
|
|
780
|
+
var f = b.contextType;
|
|
781
|
+
"object" === typeof f && null !== f ? f = Cc(f) : (e = C(b) ? Eb : A.current, d = b.contextTypes, f = (d = null !== d && void 0 !== d) ? Fb(a, e) : Db);
|
|
782
|
+
b = new b(c, f);
|
|
783
|
+
a.memoizedState = null !== b.state && void 0 !== b.state ? b.state : null;
|
|
784
|
+
b.updater = Xc;
|
|
785
|
+
a.stateNode = b;
|
|
786
|
+
b._reactInternalFiber = a;
|
|
787
|
+
d && (a = a.stateNode, a.__reactInternalMemoizedUnmaskedChildContext = e, a.__reactInternalMemoizedMaskedChildContext = f);
|
|
788
|
+
return b;
|
|
789
|
+
}
|
|
790
|
+
function $c(a, b, c, d) {
|
|
791
|
+
a = b.state;
|
|
792
|
+
"function" === typeof b.componentWillReceiveProps && b.componentWillReceiveProps(c, d);
|
|
793
|
+
"function" === typeof b.UNSAFE_componentWillReceiveProps && b.UNSAFE_componentWillReceiveProps(c, d);
|
|
794
|
+
b.state !== a && Xc.enqueueReplaceState(b, b.state, null);
|
|
795
|
+
}
|
|
796
|
+
function ad(a, b, c, d) {
|
|
797
|
+
var e = a.stateNode;
|
|
798
|
+
e.props = c;
|
|
799
|
+
e.state = a.memoizedState;
|
|
800
|
+
e.refs = Tc;
|
|
801
|
+
var f = b.contextType;
|
|
802
|
+
"object" === typeof f && null !== f ? e.context = Cc(f) : (f = C(b) ? Eb : A.current, e.context = Fb(a, f));
|
|
803
|
+
f = a.updateQueue;
|
|
804
|
+
null !== f && (Nc(a, f, c, e, d), e.state = a.memoizedState);
|
|
805
|
+
f = b.getDerivedStateFromProps;
|
|
806
|
+
"function" === typeof f && (Uc(a, b, f, c), e.state = a.memoizedState);
|
|
807
|
+
"function" === typeof b.getDerivedStateFromProps || "function" === typeof e.getSnapshotBeforeUpdate || "function" !== typeof e.UNSAFE_componentWillMount && "function" !== typeof e.componentWillMount || (b = e.state, "function" === typeof e.componentWillMount && e.componentWillMount(), "function" === typeof e.UNSAFE_componentWillMount && e.UNSAFE_componentWillMount(), b !== e.state && Xc.enqueueReplaceState(e, e.state, null), f = a.updateQueue, null !== f && (Nc(a, f, c, e, d), e.state = a.memoizedState));
|
|
808
|
+
"function" === typeof e.componentDidMount && (a.effectTag |= 4);
|
|
809
|
+
}
|
|
810
|
+
var bd = Array.isArray;
|
|
811
|
+
function cd(a, b, c) {
|
|
812
|
+
a = c.ref;
|
|
813
|
+
if (null !== a && "function" !== typeof a && "object" !== typeof a) {
|
|
814
|
+
if (c._owner) {
|
|
815
|
+
c = c._owner;
|
|
816
|
+
if (c) {
|
|
817
|
+
if (1 !== c.tag) throw Error(n(309));
|
|
818
|
+
var d = c.stateNode;
|
|
819
|
+
}
|
|
820
|
+
if (!d) throw Error(n(147, a));
|
|
821
|
+
var e = "" + a;
|
|
822
|
+
if (null !== b && null !== b.ref && "function" === typeof b.ref && b.ref._stringRef === e) return b.ref;
|
|
823
|
+
b = function (b) {
|
|
824
|
+
var a = d.refs;
|
|
825
|
+
a === Tc && (a = d.refs = {});
|
|
826
|
+
null === b ? delete a[e] : a[e] = b;
|
|
827
|
+
};
|
|
828
|
+
b._stringRef = e;
|
|
829
|
+
return b;
|
|
830
|
+
}
|
|
831
|
+
if ("string" !== typeof a) throw Error(n(284));
|
|
832
|
+
if (!c._owner) throw Error(n(290, a));
|
|
833
|
+
}
|
|
834
|
+
return a;
|
|
835
|
+
}
|
|
836
|
+
function dd(a, b) {
|
|
837
|
+
if ("textarea" !== a.type) throw Error(n(31, "[object Object]" === Object.prototype.toString.call(b) ? "object with keys {" + Object.keys(b).join(", ") + "}" : b, ""));
|
|
838
|
+
}
|
|
839
|
+
function ed(a) {
|
|
840
|
+
function b(b, c) {
|
|
841
|
+
if (a) {
|
|
842
|
+
var d = b.lastEffect;
|
|
843
|
+
null !== d ? (d.nextEffect = c, b.lastEffect = c) : b.firstEffect = b.lastEffect = c;
|
|
844
|
+
c.nextEffect = null;
|
|
845
|
+
c.effectTag = 8;
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
function c(c, d) {
|
|
849
|
+
if (!a) return null;
|
|
850
|
+
for (; null !== d;) b(c, d), d = d.sibling;
|
|
851
|
+
return null;
|
|
852
|
+
}
|
|
853
|
+
function d(b, a) {
|
|
854
|
+
for (b = new Map(); null !== a;) null !== a.key ? b.set(a.key, a) : b.set(a.index, a), a = a.sibling;
|
|
855
|
+
return b;
|
|
856
|
+
}
|
|
857
|
+
function e(b, a, c) {
|
|
858
|
+
b = fd(b, a);
|
|
859
|
+
b.index = 0;
|
|
860
|
+
b.sibling = null;
|
|
861
|
+
return b;
|
|
862
|
+
}
|
|
863
|
+
function f(b, c, d) {
|
|
864
|
+
b.index = d;
|
|
865
|
+
if (!a) return c;
|
|
866
|
+
d = b.alternate;
|
|
867
|
+
if (null !== d) return d = d.index, d < c ? (b.effectTag = 2, c) : d;
|
|
868
|
+
b.effectTag = 2;
|
|
869
|
+
return c;
|
|
870
|
+
}
|
|
871
|
+
function g(b) {
|
|
872
|
+
a && null === b.alternate && (b.effectTag = 2);
|
|
873
|
+
return b;
|
|
874
|
+
}
|
|
875
|
+
function l(b, a, c, d) {
|
|
876
|
+
if (null === a || 6 !== a.tag) return a = gd(c, b.mode, d), a.return = b, a;
|
|
877
|
+
a = e(a, c);
|
|
878
|
+
a.return = b;
|
|
879
|
+
return a;
|
|
880
|
+
}
|
|
881
|
+
function h(b, a, c, d) {
|
|
882
|
+
if (null !== a && a.elementType === c.type) return d = e(a, c.props), d.ref = cd(b, a, c), d.return = b, d;
|
|
883
|
+
d = hd(c.type, c.key, c.props, null, b.mode, d);
|
|
884
|
+
d.ref = cd(b, a, c);
|
|
885
|
+
d.return = b;
|
|
886
|
+
return d;
|
|
887
|
+
}
|
|
888
|
+
function k(b, a, c, d) {
|
|
889
|
+
if (null === a || 4 !== a.tag || a.stateNode.containerInfo !== c.containerInfo || a.stateNode.implementation !== c.implementation) return a = id(c, b.mode, d), a.return = b, a;
|
|
890
|
+
a = e(a, c.children || []);
|
|
891
|
+
a.return = b;
|
|
892
|
+
return a;
|
|
893
|
+
}
|
|
894
|
+
function p(b, a, c, d, f) {
|
|
895
|
+
if (null === a || 7 !== a.tag) return a = jd(c, b.mode, d, f), a.return = b, a;
|
|
896
|
+
a = e(a, c);
|
|
897
|
+
a.return = b;
|
|
898
|
+
return a;
|
|
899
|
+
}
|
|
900
|
+
function D(b, a, c) {
|
|
901
|
+
if ("string" === typeof a || "number" === typeof a) return a = gd("" + a, b.mode, c), a.return = b, a;
|
|
902
|
+
if ("object" === typeof a && null !== a) {
|
|
903
|
+
switch (a.$$typeof) {
|
|
904
|
+
case ca:
|
|
905
|
+
return c = hd(a.type, a.key, a.props, null, b.mode, c), c.ref = cd(b, null, a), c.return = b, c;
|
|
906
|
+
case da:
|
|
907
|
+
return a = id(a, b.mode, c), a.return = b, a;
|
|
908
|
+
}
|
|
909
|
+
if (bd(a) || ra(a)) return a = jd(a, b.mode, c, null), a.return = b, a;
|
|
910
|
+
dd(b, a);
|
|
911
|
+
}
|
|
912
|
+
return null;
|
|
913
|
+
}
|
|
914
|
+
function x(b, a, c, d) {
|
|
915
|
+
var e = null !== a ? a.key : null;
|
|
916
|
+
if ("string" === typeof c || "number" === typeof c) return null !== e ? null : l(b, a, "" + c, d);
|
|
917
|
+
if ("object" === typeof c && null !== c) {
|
|
918
|
+
switch (c.$$typeof) {
|
|
919
|
+
case ca:
|
|
920
|
+
return c.key === e ? c.type === ea ? p(b, a, c.props.children, d, e) : h(b, a, c, d) : null;
|
|
921
|
+
case da:
|
|
922
|
+
return c.key === e ? k(b, a, c, d) : null;
|
|
923
|
+
}
|
|
924
|
+
if (bd(c) || ra(c)) return null !== e ? null : p(b, a, c, d, null);
|
|
925
|
+
dd(b, c);
|
|
926
|
+
}
|
|
927
|
+
return null;
|
|
928
|
+
}
|
|
929
|
+
function K(b, a, c, d, e) {
|
|
930
|
+
if ("string" === typeof d || "number" === typeof d) return b = b.get(c) || null, l(a, b, "" + d, e);
|
|
931
|
+
if ("object" === typeof d && null !== d) {
|
|
932
|
+
switch (d.$$typeof) {
|
|
933
|
+
case ca:
|
|
934
|
+
return b = b.get(null === d.key ? c : d.key) || null, d.type === ea ? p(a, b, d.props.children, e, d.key) : h(a, b, d, e);
|
|
935
|
+
case da:
|
|
936
|
+
return b = b.get(null === d.key ? c : d.key) || null, k(a, b, d, e);
|
|
937
|
+
}
|
|
938
|
+
if (bd(d) || ra(d)) return b = b.get(c) || null, p(a, b, d, e, null);
|
|
939
|
+
dd(a, d);
|
|
940
|
+
}
|
|
941
|
+
return null;
|
|
942
|
+
}
|
|
943
|
+
function Ha(e, g, h, l) {
|
|
944
|
+
for (var k = null, w = null, t = g, r = g = 0, p = null; null !== t && r < h.length; r++) {
|
|
945
|
+
t.index > r ? (p = t, t = null) : p = t.sibling;
|
|
946
|
+
var v = x(e, t, h[r], l);
|
|
947
|
+
if (null === v) {
|
|
948
|
+
null === t && (t = p);
|
|
949
|
+
break;
|
|
950
|
+
}
|
|
951
|
+
a && t && null === v.alternate && b(e, t);
|
|
952
|
+
g = f(v, g, r);
|
|
953
|
+
null === w ? k = v : w.sibling = v;
|
|
954
|
+
w = v;
|
|
955
|
+
t = p;
|
|
956
|
+
}
|
|
957
|
+
if (r === h.length) return c(e, t), k;
|
|
958
|
+
if (null === t) {
|
|
959
|
+
for (; r < h.length; r++) t = D(e, h[r], l), null !== t && (g = f(t, g, r), null === w ? k = t : w.sibling = t, w = t);
|
|
960
|
+
return k;
|
|
961
|
+
}
|
|
962
|
+
for (t = d(e, t); r < h.length; r++) p = K(t, e, r, h[r], l), null !== p && (a && null !== p.alternate && t.delete(null === p.key ? r : p.key), g = f(p, g, r), null === w ? k = p : w.sibling = p, w = p);
|
|
963
|
+
a && t.forEach(function (a) {
|
|
964
|
+
return b(e, a);
|
|
965
|
+
});
|
|
966
|
+
return k;
|
|
967
|
+
}
|
|
968
|
+
function O(e, g, h, l) {
|
|
969
|
+
var k = ra(h);
|
|
970
|
+
if ("function" !== typeof k) throw Error(n(150));
|
|
971
|
+
h = k.call(h);
|
|
972
|
+
if (null == h) throw Error(n(151));
|
|
973
|
+
for (var t = k = null, r = g, w = g = 0, p = null, v = h.next(); null !== r && !v.done; w++, v = h.next()) {
|
|
974
|
+
r.index > w ? (p = r, r = null) : p = r.sibling;
|
|
975
|
+
var N = x(e, r, v.value, l);
|
|
976
|
+
if (null === N) {
|
|
977
|
+
null === r && (r = p);
|
|
978
|
+
break;
|
|
979
|
+
}
|
|
980
|
+
a && r && null === N.alternate && b(e, r);
|
|
981
|
+
g = f(N, g, w);
|
|
982
|
+
null === t ? k = N : t.sibling = N;
|
|
983
|
+
t = N;
|
|
984
|
+
r = p;
|
|
985
|
+
}
|
|
986
|
+
if (v.done) return c(e, r), k;
|
|
987
|
+
if (null === r) {
|
|
988
|
+
for (; !v.done; w++, v = h.next()) v = D(e, v.value, l), null !== v && (g = f(v, g, w), null === t ? k = v : t.sibling = v, t = v);
|
|
989
|
+
return k;
|
|
990
|
+
}
|
|
991
|
+
for (r = d(e, r); !v.done; w++, v = h.next()) v = K(r, e, w, v.value, l), null !== v && (a && null !== v.alternate && r.delete(null === v.key ? w : v.key), g = f(v, g, w), null === t ? k = v : t.sibling = v, t = v);
|
|
992
|
+
a && r.forEach(function (a) {
|
|
993
|
+
return b(e, a);
|
|
994
|
+
});
|
|
995
|
+
return k;
|
|
996
|
+
}
|
|
997
|
+
return function (a, d, f, h) {
|
|
998
|
+
var k = "object" === typeof f && null !== f && f.type === ea && null === f.key;
|
|
999
|
+
k && (f = f.props.children);
|
|
1000
|
+
var l = "object" === typeof f && null !== f;
|
|
1001
|
+
if (l) switch (f.$$typeof) {
|
|
1002
|
+
case ca:
|
|
1003
|
+
a: {
|
|
1004
|
+
l = f.key;
|
|
1005
|
+
for (k = d; null !== k;) {
|
|
1006
|
+
if (k.key === l) {
|
|
1007
|
+
if (7 === k.tag ? f.type === ea : k.elementType === f.type) {
|
|
1008
|
+
c(a, k.sibling);
|
|
1009
|
+
d = e(k, f.type === ea ? f.props.children : f.props);
|
|
1010
|
+
d.ref = cd(a, k, f);
|
|
1011
|
+
d.return = a;
|
|
1012
|
+
a = d;
|
|
1013
|
+
break a;
|
|
1014
|
+
} else {
|
|
1015
|
+
c(a, k);
|
|
1016
|
+
break;
|
|
1017
|
+
}
|
|
1018
|
+
} else b(a, k);
|
|
1019
|
+
k = k.sibling;
|
|
1020
|
+
}
|
|
1021
|
+
f.type === ea ? (d = jd(f.props.children, a.mode, h, f.key), d.return = a, a = d) : (h = hd(f.type, f.key, f.props, null, a.mode, h), h.ref = cd(a, d, f), h.return = a, a = h);
|
|
1022
|
+
}
|
|
1023
|
+
return g(a);
|
|
1024
|
+
case da:
|
|
1025
|
+
a: {
|
|
1026
|
+
for (k = f.key; null !== d;) {
|
|
1027
|
+
if (d.key === k) {
|
|
1028
|
+
if (4 === d.tag && d.stateNode.containerInfo === f.containerInfo && d.stateNode.implementation === f.implementation) {
|
|
1029
|
+
c(a, d.sibling);
|
|
1030
|
+
d = e(d, f.children || []);
|
|
1031
|
+
d.return = a;
|
|
1032
|
+
a = d;
|
|
1033
|
+
break a;
|
|
1034
|
+
} else {
|
|
1035
|
+
c(a, d);
|
|
1036
|
+
break;
|
|
1037
|
+
}
|
|
1038
|
+
} else b(a, d);
|
|
1039
|
+
d = d.sibling;
|
|
1040
|
+
}
|
|
1041
|
+
d = id(f, a.mode, h);
|
|
1042
|
+
d.return = a;
|
|
1043
|
+
a = d;
|
|
1044
|
+
}
|
|
1045
|
+
return g(a);
|
|
1046
|
+
}
|
|
1047
|
+
if ("string" === typeof f || "number" === typeof f) return f = "" + f, null !== d && 6 === d.tag ? (c(a, d.sibling), d = e(d, f), d.return = a, a = d) : (c(a, d), d = gd(f, a.mode, h), d.return = a, a = d), g(a);
|
|
1048
|
+
if (bd(f)) return Ha(a, d, f, h);
|
|
1049
|
+
if (ra(f)) return O(a, d, f, h);
|
|
1050
|
+
l && dd(a, f);
|
|
1051
|
+
if ("undefined" === typeof f && !k) switch (a.tag) {
|
|
1052
|
+
case 1:
|
|
1053
|
+
case 0:
|
|
1054
|
+
throw a = a.type, Error(n(152, a.displayName || a.name || "Component"));
|
|
1055
|
+
}
|
|
1056
|
+
return c(a, d);
|
|
1057
|
+
};
|
|
1058
|
+
}
|
|
1059
|
+
var kd = ed(!0),
|
|
1060
|
+
ld = ed(!1),
|
|
1061
|
+
md = {},
|
|
1062
|
+
H = {
|
|
1063
|
+
current: md
|
|
1064
|
+
},
|
|
1065
|
+
nd = {
|
|
1066
|
+
current: md
|
|
1067
|
+
},
|
|
1068
|
+
od = {
|
|
1069
|
+
current: md
|
|
1070
|
+
};
|
|
1071
|
+
function pd(a) {
|
|
1072
|
+
if (a === md) throw Error(n(174));
|
|
1073
|
+
return a;
|
|
1074
|
+
}
|
|
1075
|
+
function qd(a, b) {
|
|
1076
|
+
z(od, b);
|
|
1077
|
+
z(nd, a);
|
|
1078
|
+
z(H, md);
|
|
1079
|
+
b = Aa(b);
|
|
1080
|
+
y(H);
|
|
1081
|
+
z(H, b);
|
|
1082
|
+
}
|
|
1083
|
+
function rd(a) {
|
|
1084
|
+
y(H);
|
|
1085
|
+
y(nd);
|
|
1086
|
+
y(od);
|
|
1087
|
+
}
|
|
1088
|
+
function sd(a) {
|
|
1089
|
+
var b = pd(od.current),
|
|
1090
|
+
c = pd(H.current);
|
|
1091
|
+
b = Ba(c, a.type, b);
|
|
1092
|
+
c !== b && (z(nd, a), z(H, b));
|
|
1093
|
+
}
|
|
1094
|
+
function td(a) {
|
|
1095
|
+
nd.current === a && (y(H), y(nd));
|
|
1096
|
+
}
|
|
1097
|
+
var I = {
|
|
1098
|
+
current: 0
|
|
1099
|
+
};
|
|
1100
|
+
function ud(a) {
|
|
1101
|
+
for (var b = a; null !== b;) {
|
|
1102
|
+
if (13 === b.tag) {
|
|
1103
|
+
var c = b.memoizedState;
|
|
1104
|
+
if (null !== c && (c = c.dehydrated, null === c || qb(c) || rb(c))) return b;
|
|
1105
|
+
} else if (19 === b.tag && void 0 !== b.memoizedProps.revealOrder) {
|
|
1106
|
+
if (0 !== (b.effectTag & 64)) return b;
|
|
1107
|
+
} else if (null !== b.child) {
|
|
1108
|
+
b.child.return = b;
|
|
1109
|
+
b = b.child;
|
|
1110
|
+
continue;
|
|
1111
|
+
}
|
|
1112
|
+
if (b === a) break;
|
|
1113
|
+
for (; null === b.sibling;) {
|
|
1114
|
+
if (null === b.return || b.return === a) return null;
|
|
1115
|
+
b = b.return;
|
|
1116
|
+
}
|
|
1117
|
+
b.sibling.return = b.return;
|
|
1118
|
+
b = b.sibling;
|
|
1119
|
+
}
|
|
1120
|
+
return null;
|
|
1121
|
+
}
|
|
1122
|
+
function vd(a, b) {
|
|
1123
|
+
return {
|
|
1124
|
+
responder: a,
|
|
1125
|
+
props: b
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
var wd = q.ReactCurrentDispatcher,
|
|
1129
|
+
J = q.ReactCurrentBatchConfig,
|
|
1130
|
+
xd = 0,
|
|
1131
|
+
yd = null,
|
|
1132
|
+
L = null,
|
|
1133
|
+
zd = null,
|
|
1134
|
+
Ad = null,
|
|
1135
|
+
M = null,
|
|
1136
|
+
Bd = null,
|
|
1137
|
+
Cd = 0,
|
|
1138
|
+
Dd = null,
|
|
1139
|
+
Ed = 0,
|
|
1140
|
+
Fd = !1,
|
|
1141
|
+
Gd = null,
|
|
1142
|
+
Hd = 0;
|
|
1143
|
+
function P() {
|
|
1144
|
+
throw Error(n(321));
|
|
1145
|
+
}
|
|
1146
|
+
function Id(a, b) {
|
|
1147
|
+
if (null === b) return !1;
|
|
1148
|
+
for (var c = 0; c < b.length && c < a.length; c++) if (!oc(a[c], b[c])) return !1;
|
|
1149
|
+
return !0;
|
|
1150
|
+
}
|
|
1151
|
+
function Jd(a, b, c, d, e, f) {
|
|
1152
|
+
xd = f;
|
|
1153
|
+
yd = b;
|
|
1154
|
+
zd = null !== a ? a.memoizedState : null;
|
|
1155
|
+
wd.current = null === zd ? Kd : Ld;
|
|
1156
|
+
b = c(d, e);
|
|
1157
|
+
if (Fd) {
|
|
1158
|
+
do Fd = !1, Hd += 1, zd = null !== a ? a.memoizedState : null, Bd = Ad, Dd = M = L = null, wd.current = Ld, b = c(d, e); while (Fd);
|
|
1159
|
+
Gd = null;
|
|
1160
|
+
Hd = 0;
|
|
1161
|
+
}
|
|
1162
|
+
wd.current = Md;
|
|
1163
|
+
a = yd;
|
|
1164
|
+
a.memoizedState = Ad;
|
|
1165
|
+
a.expirationTime = Cd;
|
|
1166
|
+
a.updateQueue = Dd;
|
|
1167
|
+
a.effectTag |= Ed;
|
|
1168
|
+
a = null !== L && null !== L.next;
|
|
1169
|
+
xd = 0;
|
|
1170
|
+
Bd = M = Ad = zd = L = yd = null;
|
|
1171
|
+
Cd = 0;
|
|
1172
|
+
Dd = null;
|
|
1173
|
+
Ed = 0;
|
|
1174
|
+
if (a) throw Error(n(300));
|
|
1175
|
+
return b;
|
|
1176
|
+
}
|
|
1177
|
+
function Nd() {
|
|
1178
|
+
wd.current = Md;
|
|
1179
|
+
xd = 0;
|
|
1180
|
+
Bd = M = Ad = zd = L = yd = null;
|
|
1181
|
+
Cd = 0;
|
|
1182
|
+
Dd = null;
|
|
1183
|
+
Ed = 0;
|
|
1184
|
+
Fd = !1;
|
|
1185
|
+
Gd = null;
|
|
1186
|
+
Hd = 0;
|
|
1187
|
+
}
|
|
1188
|
+
function Od() {
|
|
1189
|
+
var a = {
|
|
1190
|
+
memoizedState: null,
|
|
1191
|
+
baseState: null,
|
|
1192
|
+
queue: null,
|
|
1193
|
+
baseUpdate: null,
|
|
1194
|
+
next: null
|
|
1195
|
+
};
|
|
1196
|
+
null === M ? Ad = M = a : M = M.next = a;
|
|
1197
|
+
return M;
|
|
1198
|
+
}
|
|
1199
|
+
function Pd() {
|
|
1200
|
+
if (null !== Bd) M = Bd, Bd = M.next, L = zd, zd = null !== L ? L.next : null;else {
|
|
1201
|
+
if (null === zd) throw Error(n(310));
|
|
1202
|
+
L = zd;
|
|
1203
|
+
var a = {
|
|
1204
|
+
memoizedState: L.memoizedState,
|
|
1205
|
+
baseState: L.baseState,
|
|
1206
|
+
queue: L.queue,
|
|
1207
|
+
baseUpdate: L.baseUpdate,
|
|
1208
|
+
next: null
|
|
1209
|
+
};
|
|
1210
|
+
M = null === M ? Ad = a : M.next = a;
|
|
1211
|
+
zd = L.next;
|
|
1212
|
+
}
|
|
1213
|
+
return M;
|
|
1214
|
+
}
|
|
1215
|
+
function Qd(a, b) {
|
|
1216
|
+
return "function" === typeof b ? b(a) : b;
|
|
1217
|
+
}
|
|
1218
|
+
function Rd(a) {
|
|
1219
|
+
var b = Pd(),
|
|
1220
|
+
c = b.queue;
|
|
1221
|
+
if (null === c) throw Error(n(311));
|
|
1222
|
+
c.lastRenderedReducer = a;
|
|
1223
|
+
if (0 < Hd) {
|
|
1224
|
+
var d = c.dispatch;
|
|
1225
|
+
if (null !== Gd) {
|
|
1226
|
+
var e = Gd.get(c);
|
|
1227
|
+
if (void 0 !== e) {
|
|
1228
|
+
Gd.delete(c);
|
|
1229
|
+
var f = b.memoizedState;
|
|
1230
|
+
do f = a(f, e.action), e = e.next; while (null !== e);
|
|
1231
|
+
oc(f, b.memoizedState) || (Bc = !0);
|
|
1232
|
+
b.memoizedState = f;
|
|
1233
|
+
b.baseUpdate === c.last && (b.baseState = f);
|
|
1234
|
+
c.lastRenderedState = f;
|
|
1235
|
+
return [f, d];
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
return [b.memoizedState, d];
|
|
1239
|
+
}
|
|
1240
|
+
d = c.last;
|
|
1241
|
+
var g = b.baseUpdate;
|
|
1242
|
+
f = b.baseState;
|
|
1243
|
+
null !== g ? (null !== d && (d.next = null), d = g.next) : d = null !== d ? d.next : null;
|
|
1244
|
+
if (null !== d) {
|
|
1245
|
+
var l = e = null,
|
|
1246
|
+
h = d,
|
|
1247
|
+
k = !1;
|
|
1248
|
+
do {
|
|
1249
|
+
var p = h.expirationTime;
|
|
1250
|
+
p < xd ? (k || (k = !0, l = g, e = f), p > Cd && (Cd = p, Pc(Cd))) : (Oc(p, h.suspenseConfig), f = h.eagerReducer === a ? h.eagerState : a(f, h.action));
|
|
1251
|
+
g = h;
|
|
1252
|
+
h = h.next;
|
|
1253
|
+
} while (null !== h && h !== d);
|
|
1254
|
+
k || (l = g, e = f);
|
|
1255
|
+
oc(f, b.memoizedState) || (Bc = !0);
|
|
1256
|
+
b.memoizedState = f;
|
|
1257
|
+
b.baseUpdate = l;
|
|
1258
|
+
b.baseState = e;
|
|
1259
|
+
c.lastRenderedState = f;
|
|
1260
|
+
}
|
|
1261
|
+
return [b.memoizedState, c.dispatch];
|
|
1262
|
+
}
|
|
1263
|
+
function Sd(a) {
|
|
1264
|
+
var b = Od();
|
|
1265
|
+
"function" === typeof a && (a = a());
|
|
1266
|
+
b.memoizedState = b.baseState = a;
|
|
1267
|
+
a = b.queue = {
|
|
1268
|
+
last: null,
|
|
1269
|
+
dispatch: null,
|
|
1270
|
+
lastRenderedReducer: Qd,
|
|
1271
|
+
lastRenderedState: a
|
|
1272
|
+
};
|
|
1273
|
+
a = a.dispatch = Td.bind(null, yd, a);
|
|
1274
|
+
return [b.memoizedState, a];
|
|
1275
|
+
}
|
|
1276
|
+
function Ud(a) {
|
|
1277
|
+
return Rd(Qd);
|
|
1278
|
+
}
|
|
1279
|
+
function Vd(a, b, c, d) {
|
|
1280
|
+
a = {
|
|
1281
|
+
tag: a,
|
|
1282
|
+
create: b,
|
|
1283
|
+
destroy: c,
|
|
1284
|
+
deps: d,
|
|
1285
|
+
next: null
|
|
1286
|
+
};
|
|
1287
|
+
null === Dd ? (Dd = {
|
|
1288
|
+
lastEffect: null
|
|
1289
|
+
}, Dd.lastEffect = a.next = a) : (b = Dd.lastEffect, null === b ? Dd.lastEffect = a.next = a : (c = b.next, b.next = a, a.next = c, Dd.lastEffect = a));
|
|
1290
|
+
return a;
|
|
1291
|
+
}
|
|
1292
|
+
function Wd(a, b, c, d) {
|
|
1293
|
+
var e = Od();
|
|
1294
|
+
Ed |= a;
|
|
1295
|
+
e.memoizedState = Vd(b, c, void 0, void 0 === d ? null : d);
|
|
1296
|
+
}
|
|
1297
|
+
function Xd(a, b, c, d) {
|
|
1298
|
+
var e = Pd();
|
|
1299
|
+
d = void 0 === d ? null : d;
|
|
1300
|
+
var f = void 0;
|
|
1301
|
+
if (null !== L) {
|
|
1302
|
+
var g = L.memoizedState;
|
|
1303
|
+
f = g.destroy;
|
|
1304
|
+
if (null !== d && Id(d, g.deps)) {
|
|
1305
|
+
Vd(0, c, f, d);
|
|
1306
|
+
return;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
Ed |= a;
|
|
1310
|
+
e.memoizedState = Vd(b, c, f, d);
|
|
1311
|
+
}
|
|
1312
|
+
function Yd(a, b) {
|
|
1313
|
+
return Wd(516, 192, a, b);
|
|
1314
|
+
}
|
|
1315
|
+
function Zd(a, b) {
|
|
1316
|
+
return Xd(516, 192, a, b);
|
|
1317
|
+
}
|
|
1318
|
+
function $d(a, b) {
|
|
1319
|
+
if ("function" === typeof b) return a = a(), b(a), function () {
|
|
1320
|
+
b(null);
|
|
1321
|
+
};
|
|
1322
|
+
if (null !== b && void 0 !== b) return a = a(), b.current = a, function () {
|
|
1323
|
+
b.current = null;
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
function ae() {}
|
|
1327
|
+
function be(a, b) {
|
|
1328
|
+
Od().memoizedState = [a, void 0 === b ? null : b];
|
|
1329
|
+
return a;
|
|
1330
|
+
}
|
|
1331
|
+
function ce(a, b) {
|
|
1332
|
+
var c = Pd();
|
|
1333
|
+
b = void 0 === b ? null : b;
|
|
1334
|
+
var d = c.memoizedState;
|
|
1335
|
+
if (null !== d && null !== b && Id(b, d[1])) return d[0];
|
|
1336
|
+
c.memoizedState = [a, b];
|
|
1337
|
+
return a;
|
|
1338
|
+
}
|
|
1339
|
+
function Td(a, b, c) {
|
|
1340
|
+
if (!(25 > Hd)) throw Error(n(301));
|
|
1341
|
+
var d = a.alternate;
|
|
1342
|
+
if (a === yd || null !== d && d === yd) {
|
|
1343
|
+
if (Fd = !0, a = {
|
|
1344
|
+
expirationTime: xd,
|
|
1345
|
+
suspenseConfig: null,
|
|
1346
|
+
action: c,
|
|
1347
|
+
eagerReducer: null,
|
|
1348
|
+
eagerState: null,
|
|
1349
|
+
next: null
|
|
1350
|
+
}, null === Gd && (Gd = new Map()), c = Gd.get(b), void 0 === c) Gd.set(b, a);else {
|
|
1351
|
+
for (b = c; null !== b.next;) b = b.next;
|
|
1352
|
+
b.next = a;
|
|
1353
|
+
}
|
|
1354
|
+
} else {
|
|
1355
|
+
var e = G(),
|
|
1356
|
+
f = Sc.suspense;
|
|
1357
|
+
e = Vc(e, a, f);
|
|
1358
|
+
f = {
|
|
1359
|
+
expirationTime: e,
|
|
1360
|
+
suspenseConfig: f,
|
|
1361
|
+
action: c,
|
|
1362
|
+
eagerReducer: null,
|
|
1363
|
+
eagerState: null,
|
|
1364
|
+
next: null
|
|
1365
|
+
};
|
|
1366
|
+
var g = b.last;
|
|
1367
|
+
if (null === g) f.next = f;else {
|
|
1368
|
+
var l = g.next;
|
|
1369
|
+
null !== l && (f.next = l);
|
|
1370
|
+
g.next = f;
|
|
1371
|
+
}
|
|
1372
|
+
b.last = f;
|
|
1373
|
+
if (0 === a.expirationTime && (null === d || 0 === d.expirationTime) && (d = b.lastRenderedReducer, null !== d)) try {
|
|
1374
|
+
var h = b.lastRenderedState,
|
|
1375
|
+
k = d(h, c);
|
|
1376
|
+
f.eagerReducer = d;
|
|
1377
|
+
f.eagerState = k;
|
|
1378
|
+
if (oc(k, h)) return;
|
|
1379
|
+
} catch (p) {} finally {}
|
|
1380
|
+
Wc(a, e);
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
var Md = {
|
|
1384
|
+
readContext: Cc,
|
|
1385
|
+
useCallback: P,
|
|
1386
|
+
useContext: P,
|
|
1387
|
+
useEffect: P,
|
|
1388
|
+
useImperativeHandle: P,
|
|
1389
|
+
useLayoutEffect: P,
|
|
1390
|
+
useMemo: P,
|
|
1391
|
+
useReducer: P,
|
|
1392
|
+
useRef: P,
|
|
1393
|
+
useState: P,
|
|
1394
|
+
useDebugValue: P,
|
|
1395
|
+
useResponder: P,
|
|
1396
|
+
useDeferredValue: P,
|
|
1397
|
+
useTransition: P
|
|
1398
|
+
},
|
|
1399
|
+
Kd = {
|
|
1400
|
+
readContext: Cc,
|
|
1401
|
+
useCallback: be,
|
|
1402
|
+
useContext: Cc,
|
|
1403
|
+
useEffect: Yd,
|
|
1404
|
+
useImperativeHandle: function (a, b, c) {
|
|
1405
|
+
c = null !== c && void 0 !== c ? c.concat([a]) : null;
|
|
1406
|
+
return Wd(4, 36, $d.bind(null, b, a), c);
|
|
1407
|
+
},
|
|
1408
|
+
useLayoutEffect: function (a, b) {
|
|
1409
|
+
return Wd(4, 36, a, b);
|
|
1410
|
+
},
|
|
1411
|
+
useMemo: function (a, b) {
|
|
1412
|
+
var c = Od();
|
|
1413
|
+
b = void 0 === b ? null : b;
|
|
1414
|
+
a = a();
|
|
1415
|
+
c.memoizedState = [a, b];
|
|
1416
|
+
return a;
|
|
1417
|
+
},
|
|
1418
|
+
useReducer: function (a, b, c) {
|
|
1419
|
+
var d = Od();
|
|
1420
|
+
b = void 0 !== c ? c(b) : b;
|
|
1421
|
+
d.memoizedState = d.baseState = b;
|
|
1422
|
+
a = d.queue = {
|
|
1423
|
+
last: null,
|
|
1424
|
+
dispatch: null,
|
|
1425
|
+
lastRenderedReducer: a,
|
|
1426
|
+
lastRenderedState: b
|
|
1427
|
+
};
|
|
1428
|
+
a = a.dispatch = Td.bind(null, yd, a);
|
|
1429
|
+
return [d.memoizedState, a];
|
|
1430
|
+
},
|
|
1431
|
+
useRef: function (a) {
|
|
1432
|
+
var b = Od();
|
|
1433
|
+
a = {
|
|
1434
|
+
current: a
|
|
1435
|
+
};
|
|
1436
|
+
return b.memoizedState = a;
|
|
1437
|
+
},
|
|
1438
|
+
useState: Sd,
|
|
1439
|
+
useDebugValue: ae,
|
|
1440
|
+
useResponder: vd,
|
|
1441
|
+
useDeferredValue: function (a, b) {
|
|
1442
|
+
var c = Sd(a),
|
|
1443
|
+
d = c[0],
|
|
1444
|
+
e = c[1];
|
|
1445
|
+
Yd(function () {
|
|
1446
|
+
m.unstable_next(function () {
|
|
1447
|
+
var c = J.suspense;
|
|
1448
|
+
J.suspense = void 0 === b ? null : b;
|
|
1449
|
+
try {
|
|
1450
|
+
e(a);
|
|
1451
|
+
} finally {
|
|
1452
|
+
J.suspense = c;
|
|
1453
|
+
}
|
|
1454
|
+
});
|
|
1455
|
+
}, [a, b]);
|
|
1456
|
+
return d;
|
|
1457
|
+
},
|
|
1458
|
+
useTransition: function (a) {
|
|
1459
|
+
var b = Sd(!1),
|
|
1460
|
+
c = b[0],
|
|
1461
|
+
d = b[1];
|
|
1462
|
+
return [be(function (b) {
|
|
1463
|
+
d(!0);
|
|
1464
|
+
m.unstable_next(function () {
|
|
1465
|
+
var c = J.suspense;
|
|
1466
|
+
J.suspense = void 0 === a ? null : a;
|
|
1467
|
+
try {
|
|
1468
|
+
d(!1), b();
|
|
1469
|
+
} finally {
|
|
1470
|
+
J.suspense = c;
|
|
1471
|
+
}
|
|
1472
|
+
});
|
|
1473
|
+
}, [a, c]), c];
|
|
1474
|
+
}
|
|
1475
|
+
},
|
|
1476
|
+
Ld = {
|
|
1477
|
+
readContext: Cc,
|
|
1478
|
+
useCallback: ce,
|
|
1479
|
+
useContext: Cc,
|
|
1480
|
+
useEffect: Zd,
|
|
1481
|
+
useImperativeHandle: function (a, b, c) {
|
|
1482
|
+
c = null !== c && void 0 !== c ? c.concat([a]) : null;
|
|
1483
|
+
return Xd(4, 36, $d.bind(null, b, a), c);
|
|
1484
|
+
},
|
|
1485
|
+
useLayoutEffect: function (a, b) {
|
|
1486
|
+
return Xd(4, 36, a, b);
|
|
1487
|
+
},
|
|
1488
|
+
useMemo: function (a, b) {
|
|
1489
|
+
var c = Pd();
|
|
1490
|
+
b = void 0 === b ? null : b;
|
|
1491
|
+
var d = c.memoizedState;
|
|
1492
|
+
if (null !== d && null !== b && Id(b, d[1])) return d[0];
|
|
1493
|
+
a = a();
|
|
1494
|
+
c.memoizedState = [a, b];
|
|
1495
|
+
return a;
|
|
1496
|
+
},
|
|
1497
|
+
useReducer: Rd,
|
|
1498
|
+
useRef: function () {
|
|
1499
|
+
return Pd().memoizedState;
|
|
1500
|
+
},
|
|
1501
|
+
useState: Ud,
|
|
1502
|
+
useDebugValue: ae,
|
|
1503
|
+
useResponder: vd,
|
|
1504
|
+
useDeferredValue: function (a, b) {
|
|
1505
|
+
var c = Ud(),
|
|
1506
|
+
d = c[0],
|
|
1507
|
+
e = c[1];
|
|
1508
|
+
Zd(function () {
|
|
1509
|
+
m.unstable_next(function () {
|
|
1510
|
+
var c = J.suspense;
|
|
1511
|
+
J.suspense = void 0 === b ? null : b;
|
|
1512
|
+
try {
|
|
1513
|
+
e(a);
|
|
1514
|
+
} finally {
|
|
1515
|
+
J.suspense = c;
|
|
1516
|
+
}
|
|
1517
|
+
});
|
|
1518
|
+
}, [a, b]);
|
|
1519
|
+
return d;
|
|
1520
|
+
},
|
|
1521
|
+
useTransition: function (a) {
|
|
1522
|
+
var b = Ud(),
|
|
1523
|
+
c = b[0],
|
|
1524
|
+
d = b[1];
|
|
1525
|
+
return [ce(function (b) {
|
|
1526
|
+
d(!0);
|
|
1527
|
+
m.unstable_next(function () {
|
|
1528
|
+
var c = J.suspense;
|
|
1529
|
+
J.suspense = void 0 === a ? null : a;
|
|
1530
|
+
try {
|
|
1531
|
+
d(!1), b();
|
|
1532
|
+
} finally {
|
|
1533
|
+
J.suspense = c;
|
|
1534
|
+
}
|
|
1535
|
+
});
|
|
1536
|
+
}, [a, c]), c];
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
de = null,
|
|
1540
|
+
ee = null,
|
|
1541
|
+
fe = !1;
|
|
1542
|
+
function ge(a, b) {
|
|
1543
|
+
var c = he(5, null, null, 0);
|
|
1544
|
+
c.elementType = "DELETED";
|
|
1545
|
+
c.type = "DELETED";
|
|
1546
|
+
c.stateNode = b;
|
|
1547
|
+
c.return = a;
|
|
1548
|
+
c.effectTag = 8;
|
|
1549
|
+
null !== a.lastEffect ? (a.lastEffect.nextEffect = c, a.lastEffect = c) : a.firstEffect = a.lastEffect = c;
|
|
1550
|
+
}
|
|
1551
|
+
function ie(a, b) {
|
|
1552
|
+
switch (a.tag) {
|
|
1553
|
+
case 5:
|
|
1554
|
+
return b = ob(b, a.type, a.pendingProps), null !== b ? (a.stateNode = b, !0) : !1;
|
|
1555
|
+
case 6:
|
|
1556
|
+
return b = pb(b, a.pendingProps), null !== b ? (a.stateNode = b, !0) : !1;
|
|
1557
|
+
case 13:
|
|
1558
|
+
return !1;
|
|
1559
|
+
default:
|
|
1560
|
+
return !1;
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
function je(a) {
|
|
1564
|
+
if (fe) {
|
|
1565
|
+
var b = ee;
|
|
1566
|
+
if (b) {
|
|
1567
|
+
var c = b;
|
|
1568
|
+
if (!ie(a, b)) {
|
|
1569
|
+
b = sb(c);
|
|
1570
|
+
if (!b || !ie(a, b)) {
|
|
1571
|
+
a.effectTag = a.effectTag & -1025 | 2;
|
|
1572
|
+
fe = !1;
|
|
1573
|
+
de = a;
|
|
1574
|
+
return;
|
|
1575
|
+
}
|
|
1576
|
+
ge(de, c);
|
|
1577
|
+
}
|
|
1578
|
+
de = a;
|
|
1579
|
+
ee = tb(b);
|
|
1580
|
+
} else a.effectTag = a.effectTag & -1025 | 2, fe = !1, de = a;
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
function ke(a) {
|
|
1584
|
+
for (a = a.return; null !== a && 5 !== a.tag && 3 !== a.tag && 13 !== a.tag;) a = a.return;
|
|
1585
|
+
de = a;
|
|
1586
|
+
}
|
|
1587
|
+
function ne(a) {
|
|
1588
|
+
if (!Sa || a !== de) return !1;
|
|
1589
|
+
if (!fe) return ke(a), fe = !0, !1;
|
|
1590
|
+
var b = a.type;
|
|
1591
|
+
if (5 !== a.tag || "head" !== b && "body" !== b && !Ja(b, a.memoizedProps)) for (b = ee; b;) ge(a, b), b = sb(b);
|
|
1592
|
+
ke(a);
|
|
1593
|
+
if (13 === a.tag) {
|
|
1594
|
+
if (!Sa) throw Error(n(316));
|
|
1595
|
+
a = a.memoizedState;
|
|
1596
|
+
a = null !== a ? a.dehydrated : null;
|
|
1597
|
+
if (!a) throw Error(n(317));
|
|
1598
|
+
ee = wb(a);
|
|
1599
|
+
} else ee = de ? sb(a.stateNode) : null;
|
|
1600
|
+
return !0;
|
|
1601
|
+
}
|
|
1602
|
+
function oe() {
|
|
1603
|
+
Sa && (ee = de = null, fe = !1);
|
|
1604
|
+
}
|
|
1605
|
+
var pe = q.ReactCurrentOwner,
|
|
1606
|
+
Bc = !1;
|
|
1607
|
+
function Q(a, b, c, d) {
|
|
1608
|
+
b.child = null === a ? ld(b, null, c, d) : kd(b, a.child, c, d);
|
|
1609
|
+
}
|
|
1610
|
+
function qe(a, b, c, d, e) {
|
|
1611
|
+
c = c.render;
|
|
1612
|
+
var f = b.ref;
|
|
1613
|
+
Ac(b, e);
|
|
1614
|
+
d = Jd(a, b, c, d, f, e);
|
|
1615
|
+
if (null !== a && !Bc) return b.updateQueue = a.updateQueue, b.effectTag &= -517, a.expirationTime <= e && (a.expirationTime = 0), re(a, b, e);
|
|
1616
|
+
b.effectTag |= 1;
|
|
1617
|
+
Q(a, b, d, e);
|
|
1618
|
+
return b.child;
|
|
1619
|
+
}
|
|
1620
|
+
function se(a, b, c, d, e, f) {
|
|
1621
|
+
if (null === a) {
|
|
1622
|
+
var g = c.type;
|
|
1623
|
+
if ("function" === typeof g && !te(g) && void 0 === g.defaultProps && null === c.compare && void 0 === c.defaultProps) return b.tag = 15, b.type = g, ue(a, b, g, d, e, f);
|
|
1624
|
+
a = hd(c.type, null, d, null, b.mode, f);
|
|
1625
|
+
a.ref = b.ref;
|
|
1626
|
+
a.return = b;
|
|
1627
|
+
return b.child = a;
|
|
1628
|
+
}
|
|
1629
|
+
g = a.child;
|
|
1630
|
+
if (e < f && (e = g.memoizedProps, c = c.compare, c = null !== c ? c : qc, c(e, d) && a.ref === b.ref)) return re(a, b, f);
|
|
1631
|
+
b.effectTag |= 1;
|
|
1632
|
+
a = fd(g, d);
|
|
1633
|
+
a.ref = b.ref;
|
|
1634
|
+
a.return = b;
|
|
1635
|
+
return b.child = a;
|
|
1636
|
+
}
|
|
1637
|
+
function ue(a, b, c, d, e, f) {
|
|
1638
|
+
return null !== a && qc(a.memoizedProps, d) && a.ref === b.ref && (Bc = !1, e < f) ? re(a, b, f) : ve(a, b, c, d, f);
|
|
1639
|
+
}
|
|
1640
|
+
function we(a, b) {
|
|
1641
|
+
var c = b.ref;
|
|
1642
|
+
if (null === a && null !== c || null !== a && a.ref !== c) b.effectTag |= 128;
|
|
1643
|
+
}
|
|
1644
|
+
function ve(a, b, c, d, e) {
|
|
1645
|
+
var f = C(c) ? Eb : A.current;
|
|
1646
|
+
f = Fb(b, f);
|
|
1647
|
+
Ac(b, e);
|
|
1648
|
+
c = Jd(a, b, c, d, f, e);
|
|
1649
|
+
if (null !== a && !Bc) return b.updateQueue = a.updateQueue, b.effectTag &= -517, a.expirationTime <= e && (a.expirationTime = 0), re(a, b, e);
|
|
1650
|
+
b.effectTag |= 1;
|
|
1651
|
+
Q(a, b, c, e);
|
|
1652
|
+
return b.child;
|
|
1653
|
+
}
|
|
1654
|
+
function xe(a, b, c, d, e) {
|
|
1655
|
+
if (C(c)) {
|
|
1656
|
+
var f = !0;
|
|
1657
|
+
Kb(b);
|
|
1658
|
+
} else f = !1;
|
|
1659
|
+
Ac(b, e);
|
|
1660
|
+
if (null === b.stateNode) null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2), Zc(b, c, d), ad(b, c, d, e), d = !0;else if (null === a) {
|
|
1661
|
+
var g = b.stateNode,
|
|
1662
|
+
l = b.memoizedProps;
|
|
1663
|
+
g.props = l;
|
|
1664
|
+
var h = g.context,
|
|
1665
|
+
k = c.contextType;
|
|
1666
|
+
"object" === typeof k && null !== k ? k = Cc(k) : (k = C(c) ? Eb : A.current, k = Fb(b, k));
|
|
1667
|
+
var p = c.getDerivedStateFromProps,
|
|
1668
|
+
D = "function" === typeof p || "function" === typeof g.getSnapshotBeforeUpdate;
|
|
1669
|
+
D || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (l !== d || h !== k) && $c(b, g, d, k);
|
|
1670
|
+
Dc = !1;
|
|
1671
|
+
var x = b.memoizedState;
|
|
1672
|
+
h = g.state = x;
|
|
1673
|
+
var K = b.updateQueue;
|
|
1674
|
+
null !== K && (Nc(b, K, d, g, e), h = b.memoizedState);
|
|
1675
|
+
l !== d || x !== h || B.current || Dc ? ("function" === typeof p && (Uc(b, c, p, d), h = b.memoizedState), (l = Dc || Yc(b, c, l, d, x, h, k)) ? (D || "function" !== typeof g.UNSAFE_componentWillMount && "function" !== typeof g.componentWillMount || ("function" === typeof g.componentWillMount && g.componentWillMount(), "function" === typeof g.UNSAFE_componentWillMount && g.UNSAFE_componentWillMount()), "function" === typeof g.componentDidMount && (b.effectTag |= 4)) : ("function" === typeof g.componentDidMount && (b.effectTag |= 4), b.memoizedProps = d, b.memoizedState = h), g.props = d, g.state = h, g.context = k, d = l) : ("function" === typeof g.componentDidMount && (b.effectTag |= 4), d = !1);
|
|
1676
|
+
} else g = b.stateNode, l = b.memoizedProps, g.props = b.type === b.elementType ? l : rc(b.type, l), h = g.context, k = c.contextType, "object" === typeof k && null !== k ? k = Cc(k) : (k = C(c) ? Eb : A.current, k = Fb(b, k)), p = c.getDerivedStateFromProps, (D = "function" === typeof p || "function" === typeof g.getSnapshotBeforeUpdate) || "function" !== typeof g.UNSAFE_componentWillReceiveProps && "function" !== typeof g.componentWillReceiveProps || (l !== d || h !== k) && $c(b, g, d, k), Dc = !1, h = b.memoizedState, x = g.state = h, K = b.updateQueue, null !== K && (Nc(b, K, d, g, e), x = b.memoizedState), l !== d || h !== x || B.current || Dc ? ("function" === typeof p && (Uc(b, c, p, d), x = b.memoizedState), (p = Dc || Yc(b, c, l, d, h, x, k)) ? (D || "function" !== typeof g.UNSAFE_componentWillUpdate && "function" !== typeof g.componentWillUpdate || ("function" === typeof g.componentWillUpdate && g.componentWillUpdate(d, x, k), "function" === typeof g.UNSAFE_componentWillUpdate && g.UNSAFE_componentWillUpdate(d, x, k)), "function" === typeof g.componentDidUpdate && (b.effectTag |= 4), "function" === typeof g.getSnapshotBeforeUpdate && (b.effectTag |= 256)) : ("function" !== typeof g.componentDidUpdate || l === a.memoizedProps && h === a.memoizedState || (b.effectTag |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || l === a.memoizedProps && h === a.memoizedState || (b.effectTag |= 256), b.memoizedProps = d, b.memoizedState = x), g.props = d, g.state = x, g.context = k, d = p) : ("function" !== typeof g.componentDidUpdate || l === a.memoizedProps && h === a.memoizedState || (b.effectTag |= 4), "function" !== typeof g.getSnapshotBeforeUpdate || l === a.memoizedProps && h === a.memoizedState || (b.effectTag |= 256), d = !1);
|
|
1677
|
+
return ye(a, b, c, d, f, e);
|
|
1678
|
+
}
|
|
1679
|
+
function ye(a, b, c, d, e, f) {
|
|
1680
|
+
we(a, b);
|
|
1681
|
+
var g = 0 !== (b.effectTag & 64);
|
|
1682
|
+
if (!d && !g) return e && Lb(b, c, !1), re(a, b, f);
|
|
1683
|
+
d = b.stateNode;
|
|
1684
|
+
pe.current = b;
|
|
1685
|
+
var l = g && "function" !== typeof c.getDerivedStateFromError ? null : d.render();
|
|
1686
|
+
b.effectTag |= 1;
|
|
1687
|
+
null !== a && g ? (b.child = kd(b, a.child, null, f), b.child = kd(b, null, l, f)) : Q(a, b, l, f);
|
|
1688
|
+
b.memoizedState = d.state;
|
|
1689
|
+
e && Lb(b, c, !0);
|
|
1690
|
+
return b.child;
|
|
1691
|
+
}
|
|
1692
|
+
function ze(a) {
|
|
1693
|
+
var b = a.stateNode;
|
|
1694
|
+
b.pendingContext ? Ib(a, b.pendingContext, b.pendingContext !== b.context) : b.context && Ib(a, b.context, !1);
|
|
1695
|
+
qd(a, b.containerInfo);
|
|
1696
|
+
}
|
|
1697
|
+
var Ae = {
|
|
1698
|
+
dehydrated: null,
|
|
1699
|
+
retryTime: 0
|
|
1700
|
+
};
|
|
1701
|
+
function Be(a, b, c) {
|
|
1702
|
+
var d = b.mode,
|
|
1703
|
+
e = b.pendingProps,
|
|
1704
|
+
f = I.current,
|
|
1705
|
+
g = !1,
|
|
1706
|
+
l;
|
|
1707
|
+
(l = 0 !== (b.effectTag & 64)) || (l = 0 !== (f & 2) && (null === a || null !== a.memoizedState));
|
|
1708
|
+
l ? (g = !0, b.effectTag &= -65) : null !== a && null === a.memoizedState || void 0 === e.fallback || !0 === e.unstable_avoidThisFallback || (f |= 1);
|
|
1709
|
+
z(I, f & 1);
|
|
1710
|
+
if (null === a) {
|
|
1711
|
+
void 0 !== e.fallback && je(b);
|
|
1712
|
+
if (g) {
|
|
1713
|
+
g = e.fallback;
|
|
1714
|
+
e = jd(null, d, 0, null);
|
|
1715
|
+
e.return = b;
|
|
1716
|
+
if (0 === (b.mode & 2)) for (a = null !== b.memoizedState ? b.child.child : b.child, e.child = a; null !== a;) a.return = e, a = a.sibling;
|
|
1717
|
+
c = jd(g, d, c, null);
|
|
1718
|
+
c.return = b;
|
|
1719
|
+
e.sibling = c;
|
|
1720
|
+
b.memoizedState = Ae;
|
|
1721
|
+
b.child = e;
|
|
1722
|
+
return c;
|
|
1723
|
+
}
|
|
1724
|
+
d = e.children;
|
|
1725
|
+
b.memoizedState = null;
|
|
1726
|
+
return b.child = ld(b, null, d, c);
|
|
1727
|
+
}
|
|
1728
|
+
if (null !== a.memoizedState) {
|
|
1729
|
+
a = a.child;
|
|
1730
|
+
d = a.sibling;
|
|
1731
|
+
if (g) {
|
|
1732
|
+
e = e.fallback;
|
|
1733
|
+
c = fd(a, a.pendingProps);
|
|
1734
|
+
c.return = b;
|
|
1735
|
+
if (0 === (b.mode & 2) && (g = null !== b.memoizedState ? b.child.child : b.child, g !== a.child)) for (c.child = g; null !== g;) g.return = c, g = g.sibling;
|
|
1736
|
+
d = fd(d, e, d.expirationTime);
|
|
1737
|
+
d.return = b;
|
|
1738
|
+
c.sibling = d;
|
|
1739
|
+
c.childExpirationTime = 0;
|
|
1740
|
+
b.memoizedState = Ae;
|
|
1741
|
+
b.child = c;
|
|
1742
|
+
return d;
|
|
1743
|
+
}
|
|
1744
|
+
c = kd(b, a.child, e.children, c);
|
|
1745
|
+
b.memoizedState = null;
|
|
1746
|
+
return b.child = c;
|
|
1747
|
+
}
|
|
1748
|
+
a = a.child;
|
|
1749
|
+
if (g) {
|
|
1750
|
+
g = e.fallback;
|
|
1751
|
+
e = jd(null, d, 0, null);
|
|
1752
|
+
e.return = b;
|
|
1753
|
+
e.child = a;
|
|
1754
|
+
null !== a && (a.return = e);
|
|
1755
|
+
if (0 === (b.mode & 2)) for (a = null !== b.memoizedState ? b.child.child : b.child, e.child = a; null !== a;) a.return = e, a = a.sibling;
|
|
1756
|
+
c = jd(g, d, c, null);
|
|
1757
|
+
c.return = b;
|
|
1758
|
+
e.sibling = c;
|
|
1759
|
+
c.effectTag |= 2;
|
|
1760
|
+
e.childExpirationTime = 0;
|
|
1761
|
+
b.memoizedState = Ae;
|
|
1762
|
+
b.child = e;
|
|
1763
|
+
return c;
|
|
1764
|
+
}
|
|
1765
|
+
b.memoizedState = null;
|
|
1766
|
+
return b.child = kd(b, a, e.children, c);
|
|
1767
|
+
}
|
|
1768
|
+
function Ce(a, b) {
|
|
1769
|
+
a.expirationTime < b && (a.expirationTime = b);
|
|
1770
|
+
var c = a.alternate;
|
|
1771
|
+
null !== c && c.expirationTime < b && (c.expirationTime = b);
|
|
1772
|
+
zc(a.return, b);
|
|
1773
|
+
}
|
|
1774
|
+
function De(a, b, c, d, e, f) {
|
|
1775
|
+
var g = a.memoizedState;
|
|
1776
|
+
null === g ? a.memoizedState = {
|
|
1777
|
+
isBackwards: b,
|
|
1778
|
+
rendering: null,
|
|
1779
|
+
last: d,
|
|
1780
|
+
tail: c,
|
|
1781
|
+
tailExpiration: 0,
|
|
1782
|
+
tailMode: e,
|
|
1783
|
+
lastEffect: f
|
|
1784
|
+
} : (g.isBackwards = b, g.rendering = null, g.last = d, g.tail = c, g.tailExpiration = 0, g.tailMode = e, g.lastEffect = f);
|
|
1785
|
+
}
|
|
1786
|
+
function Ee(a, b, c) {
|
|
1787
|
+
var d = b.pendingProps,
|
|
1788
|
+
e = d.revealOrder,
|
|
1789
|
+
f = d.tail;
|
|
1790
|
+
Q(a, b, d.children, c);
|
|
1791
|
+
d = I.current;
|
|
1792
|
+
if (0 !== (d & 2)) d = d & 1 | 2, b.effectTag |= 64;else {
|
|
1793
|
+
if (null !== a && 0 !== (a.effectTag & 64)) a: for (a = b.child; null !== a;) {
|
|
1794
|
+
if (13 === a.tag) null !== a.memoizedState && Ce(a, c);else if (19 === a.tag) Ce(a, c);else if (null !== a.child) {
|
|
1795
|
+
a.child.return = a;
|
|
1796
|
+
a = a.child;
|
|
1797
|
+
continue;
|
|
1798
|
+
}
|
|
1799
|
+
if (a === b) break a;
|
|
1800
|
+
for (; null === a.sibling;) {
|
|
1801
|
+
if (null === a.return || a.return === b) break a;
|
|
1802
|
+
a = a.return;
|
|
1803
|
+
}
|
|
1804
|
+
a.sibling.return = a.return;
|
|
1805
|
+
a = a.sibling;
|
|
1806
|
+
}
|
|
1807
|
+
d &= 1;
|
|
1808
|
+
}
|
|
1809
|
+
z(I, d);
|
|
1810
|
+
if (0 === (b.mode & 2)) b.memoizedState = null;else switch (e) {
|
|
1811
|
+
case "forwards":
|
|
1812
|
+
c = b.child;
|
|
1813
|
+
for (e = null; null !== c;) a = c.alternate, null !== a && null === ud(a) && (e = c), c = c.sibling;
|
|
1814
|
+
c = e;
|
|
1815
|
+
null === c ? (e = b.child, b.child = null) : (e = c.sibling, c.sibling = null);
|
|
1816
|
+
De(b, !1, e, c, f, b.lastEffect);
|
|
1817
|
+
break;
|
|
1818
|
+
case "backwards":
|
|
1819
|
+
c = null;
|
|
1820
|
+
e = b.child;
|
|
1821
|
+
for (b.child = null; null !== e;) {
|
|
1822
|
+
a = e.alternate;
|
|
1823
|
+
if (null !== a && null === ud(a)) {
|
|
1824
|
+
b.child = e;
|
|
1825
|
+
break;
|
|
1826
|
+
}
|
|
1827
|
+
a = e.sibling;
|
|
1828
|
+
e.sibling = c;
|
|
1829
|
+
c = e;
|
|
1830
|
+
e = a;
|
|
1831
|
+
}
|
|
1832
|
+
De(b, !0, c, null, f, b.lastEffect);
|
|
1833
|
+
break;
|
|
1834
|
+
case "together":
|
|
1835
|
+
De(b, !1, null, null, void 0, b.lastEffect);
|
|
1836
|
+
break;
|
|
1837
|
+
default:
|
|
1838
|
+
b.memoizedState = null;
|
|
1839
|
+
}
|
|
1840
|
+
return b.child;
|
|
1841
|
+
}
|
|
1842
|
+
function re(a, b, c) {
|
|
1843
|
+
null !== a && (b.dependencies = a.dependencies);
|
|
1844
|
+
var d = b.expirationTime;
|
|
1845
|
+
0 !== d && Pc(d);
|
|
1846
|
+
if (b.childExpirationTime < c) return null;
|
|
1847
|
+
if (null !== a && b.child !== a.child) throw Error(n(153));
|
|
1848
|
+
if (null !== b.child) {
|
|
1849
|
+
a = b.child;
|
|
1850
|
+
c = fd(a, a.pendingProps, a.expirationTime);
|
|
1851
|
+
b.child = c;
|
|
1852
|
+
for (c.return = b; null !== a.sibling;) a = a.sibling, c = c.sibling = fd(a, a.pendingProps, a.expirationTime), c.return = b;
|
|
1853
|
+
c.sibling = null;
|
|
1854
|
+
}
|
|
1855
|
+
return b.child;
|
|
1856
|
+
}
|
|
1857
|
+
function Fe(a) {
|
|
1858
|
+
a.effectTag |= 4;
|
|
1859
|
+
}
|
|
1860
|
+
var Ge, He, Ie, Je;
|
|
1861
|
+
if (Qa) Ge = function (a, b) {
|
|
1862
|
+
for (var c = b.child; null !== c;) {
|
|
1863
|
+
if (5 === c.tag || 6 === c.tag) Fa(a, c.stateNode);else if (4 !== c.tag && null !== c.child) {
|
|
1864
|
+
c.child.return = c;
|
|
1865
|
+
c = c.child;
|
|
1866
|
+
continue;
|
|
1867
|
+
}
|
|
1868
|
+
if (c === b) break;
|
|
1869
|
+
for (; null === c.sibling;) {
|
|
1870
|
+
if (null === c.return || c.return === b) return;
|
|
1871
|
+
c = c.return;
|
|
1872
|
+
}
|
|
1873
|
+
c.sibling.return = c.return;
|
|
1874
|
+
c = c.sibling;
|
|
1875
|
+
}
|
|
1876
|
+
}, He = function () {}, Ie = function (a, b, c, d, e) {
|
|
1877
|
+
a = a.memoizedProps;
|
|
1878
|
+
if (a !== d) {
|
|
1879
|
+
var f = b.stateNode,
|
|
1880
|
+
g = pd(H.current);
|
|
1881
|
+
c = Ia(f, c, a, d, e, g);
|
|
1882
|
+
(b.updateQueue = c) && Fe(b);
|
|
1883
|
+
}
|
|
1884
|
+
}, Je = function (a, b, c, d) {
|
|
1885
|
+
c !== d && Fe(b);
|
|
1886
|
+
};else if (Ra) {
|
|
1887
|
+
Ge = function (a, b, c, d) {
|
|
1888
|
+
for (var e = b.child; null !== e;) {
|
|
1889
|
+
if (5 === e.tag) {
|
|
1890
|
+
var f = e.stateNode;
|
|
1891
|
+
c && d && (f = mb(f, e.type, e.memoizedProps, e));
|
|
1892
|
+
Fa(a, f);
|
|
1893
|
+
} else if (6 === e.tag) f = e.stateNode, c && d && (f = nb(f, e.memoizedProps, e)), Fa(a, f);else if (4 !== e.tag) {
|
|
1894
|
+
if (13 === e.tag && 0 !== (e.effectTag & 4) && (f = null !== e.memoizedState)) {
|
|
1895
|
+
var g = e.child;
|
|
1896
|
+
if (null !== g && (null !== g.child && (g.child.return = g, Ge(a, g, !0, f)), f = g.sibling, null !== f)) {
|
|
1897
|
+
f.return = e;
|
|
1898
|
+
e = f;
|
|
1899
|
+
continue;
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
if (null !== e.child) {
|
|
1903
|
+
e.child.return = e;
|
|
1904
|
+
e = e.child;
|
|
1905
|
+
continue;
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
if (e === b) break;
|
|
1909
|
+
for (; null === e.sibling;) {
|
|
1910
|
+
if (null === e.return || e.return === b) return;
|
|
1911
|
+
e = e.return;
|
|
1912
|
+
}
|
|
1913
|
+
e.sibling.return = e.return;
|
|
1914
|
+
e = e.sibling;
|
|
1915
|
+
}
|
|
1916
|
+
};
|
|
1917
|
+
var Ke = function (a, b, c, d) {
|
|
1918
|
+
for (var e = b.child; null !== e;) {
|
|
1919
|
+
if (5 === e.tag) {
|
|
1920
|
+
var f = e.stateNode;
|
|
1921
|
+
c && d && (f = mb(f, e.type, e.memoizedProps, e));
|
|
1922
|
+
ib(a, f);
|
|
1923
|
+
} else if (6 === e.tag) f = e.stateNode, c && d && (f = nb(f, e.memoizedProps, e)), ib(a, f);else if (4 !== e.tag) {
|
|
1924
|
+
if (13 === e.tag && 0 !== (e.effectTag & 4) && (f = null !== e.memoizedState)) {
|
|
1925
|
+
var g = e.child;
|
|
1926
|
+
if (null !== g && (null !== g.child && (g.child.return = g, Ke(a, g, !0, f)), f = g.sibling, null !== f)) {
|
|
1927
|
+
f.return = e;
|
|
1928
|
+
e = f;
|
|
1929
|
+
continue;
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
if (null !== e.child) {
|
|
1933
|
+
e.child.return = e;
|
|
1934
|
+
e = e.child;
|
|
1935
|
+
continue;
|
|
1936
|
+
}
|
|
1937
|
+
}
|
|
1938
|
+
if (e === b) break;
|
|
1939
|
+
for (; null === e.sibling;) {
|
|
1940
|
+
if (null === e.return || e.return === b) return;
|
|
1941
|
+
e = e.return;
|
|
1942
|
+
}
|
|
1943
|
+
e.sibling.return = e.return;
|
|
1944
|
+
e = e.sibling;
|
|
1945
|
+
}
|
|
1946
|
+
};
|
|
1947
|
+
He = function (a) {
|
|
1948
|
+
var b = a.stateNode;
|
|
1949
|
+
if (null !== a.firstEffect) {
|
|
1950
|
+
var c = b.containerInfo,
|
|
1951
|
+
d = hb(c);
|
|
1952
|
+
Ke(d, a, !1, !1);
|
|
1953
|
+
b.pendingChildren = d;
|
|
1954
|
+
Fe(a);
|
|
1955
|
+
kb(c, d);
|
|
1956
|
+
}
|
|
1957
|
+
};
|
|
1958
|
+
Ie = function (a, b, c, d, e) {
|
|
1959
|
+
var f = a.stateNode,
|
|
1960
|
+
g = a.memoizedProps;
|
|
1961
|
+
if ((a = null === b.firstEffect) && g === d) b.stateNode = f;else {
|
|
1962
|
+
var l = b.stateNode,
|
|
1963
|
+
h = pd(H.current),
|
|
1964
|
+
k = null;
|
|
1965
|
+
g !== d && (k = Ia(l, c, g, d, e, h));
|
|
1966
|
+
a && null === k ? b.stateNode = f : (f = gb(f, k, c, g, d, b, a, l), Ga(f, c, d, e, h) && Fe(b), b.stateNode = f, a ? Fe(b) : Ge(f, b, !1, !1));
|
|
1967
|
+
}
|
|
1968
|
+
};
|
|
1969
|
+
Je = function (a, b, c, d) {
|
|
1970
|
+
c !== d && (a = pd(od.current), c = pd(H.current), b.stateNode = La(d, a, c, b), Fe(b));
|
|
1971
|
+
};
|
|
1972
|
+
} else He = function () {}, Ie = function () {}, Je = function () {};
|
|
1973
|
+
function Le(a, b) {
|
|
1974
|
+
switch (a.tailMode) {
|
|
1975
|
+
case "hidden":
|
|
1976
|
+
b = a.tail;
|
|
1977
|
+
for (var c = null; null !== b;) null !== b.alternate && (c = b), b = b.sibling;
|
|
1978
|
+
null === c ? a.tail = null : c.sibling = null;
|
|
1979
|
+
break;
|
|
1980
|
+
case "collapsed":
|
|
1981
|
+
c = a.tail;
|
|
1982
|
+
for (var d = null; null !== c;) null !== c.alternate && (d = c), c = c.sibling;
|
|
1983
|
+
null === d ? b || null === a.tail ? a.tail = null : a.tail.sibling = null : d.sibling = null;
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
function Me(a) {
|
|
1987
|
+
switch (a.tag) {
|
|
1988
|
+
case 1:
|
|
1989
|
+
C(a.type) && Gb();
|
|
1990
|
+
var b = a.effectTag;
|
|
1991
|
+
return b & 4096 ? (a.effectTag = b & -4097 | 64, a) : null;
|
|
1992
|
+
case 3:
|
|
1993
|
+
rd();
|
|
1994
|
+
Hb();
|
|
1995
|
+
b = a.effectTag;
|
|
1996
|
+
if (0 !== (b & 64)) throw Error(n(285));
|
|
1997
|
+
a.effectTag = b & -4097 | 64;
|
|
1998
|
+
return a;
|
|
1999
|
+
case 5:
|
|
2000
|
+
return td(a), null;
|
|
2001
|
+
case 13:
|
|
2002
|
+
return y(I), b = a.effectTag, b & 4096 ? (a.effectTag = b & -4097 | 64, a) : null;
|
|
2003
|
+
case 19:
|
|
2004
|
+
return y(I), null;
|
|
2005
|
+
case 4:
|
|
2006
|
+
return rd(), null;
|
|
2007
|
+
case 10:
|
|
2008
|
+
return yc(a), null;
|
|
2009
|
+
default:
|
|
2010
|
+
return null;
|
|
2011
|
+
}
|
|
2012
|
+
}
|
|
2013
|
+
function Ne(a, b) {
|
|
2014
|
+
return {
|
|
2015
|
+
value: a,
|
|
2016
|
+
source: b,
|
|
2017
|
+
stack: Ab(b)
|
|
2018
|
+
};
|
|
2019
|
+
}
|
|
2020
|
+
var Oe = "function" === typeof WeakSet ? WeakSet : Set;
|
|
2021
|
+
function Pe(a, b) {
|
|
2022
|
+
var c = b.source,
|
|
2023
|
+
d = b.stack;
|
|
2024
|
+
null === d && null !== c && (d = Ab(c));
|
|
2025
|
+
null !== c && ta(c.type);
|
|
2026
|
+
b = b.value;
|
|
2027
|
+
null !== a && 1 === a.tag && ta(a.type);
|
|
2028
|
+
try {
|
|
2029
|
+
console.error(b);
|
|
2030
|
+
} catch (e) {
|
|
2031
|
+
setTimeout(function () {
|
|
2032
|
+
throw e;
|
|
2033
|
+
});
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
function Qe(a, b) {
|
|
2037
|
+
try {
|
|
2038
|
+
b.props = a.memoizedProps, b.state = a.memoizedState, b.componentWillUnmount();
|
|
2039
|
+
} catch (c) {
|
|
2040
|
+
Re(a, c);
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
2043
|
+
function Se(a) {
|
|
2044
|
+
var b = a.ref;
|
|
2045
|
+
if (null !== b) if ("function" === typeof b) try {
|
|
2046
|
+
b(null);
|
|
2047
|
+
} catch (c) {
|
|
2048
|
+
Re(a, c);
|
|
2049
|
+
} else b.current = null;
|
|
2050
|
+
}
|
|
2051
|
+
function Te(a, b) {
|
|
2052
|
+
switch (b.tag) {
|
|
2053
|
+
case 0:
|
|
2054
|
+
case 11:
|
|
2055
|
+
case 15:
|
|
2056
|
+
Ue(2, 0, b);
|
|
2057
|
+
break;
|
|
2058
|
+
case 1:
|
|
2059
|
+
if (b.effectTag & 256 && null !== a) {
|
|
2060
|
+
var c = a.memoizedProps,
|
|
2061
|
+
d = a.memoizedState;
|
|
2062
|
+
a = b.stateNode;
|
|
2063
|
+
b = a.getSnapshotBeforeUpdate(b.elementType === b.type ? c : rc(b.type, c), d);
|
|
2064
|
+
a.__reactInternalSnapshotBeforeUpdate = b;
|
|
2065
|
+
}
|
|
2066
|
+
break;
|
|
2067
|
+
case 3:
|
|
2068
|
+
case 5:
|
|
2069
|
+
case 6:
|
|
2070
|
+
case 4:
|
|
2071
|
+
case 17:
|
|
2072
|
+
break;
|
|
2073
|
+
default:
|
|
2074
|
+
throw Error(n(163));
|
|
2075
|
+
}
|
|
2076
|
+
}
|
|
2077
|
+
function Ue(a, b, c) {
|
|
2078
|
+
c = c.updateQueue;
|
|
2079
|
+
c = null !== c ? c.lastEffect : null;
|
|
2080
|
+
if (null !== c) {
|
|
2081
|
+
var d = c = c.next;
|
|
2082
|
+
do {
|
|
2083
|
+
if (0 !== (d.tag & a)) {
|
|
2084
|
+
var e = d.destroy;
|
|
2085
|
+
d.destroy = void 0;
|
|
2086
|
+
void 0 !== e && e();
|
|
2087
|
+
}
|
|
2088
|
+
0 !== (d.tag & b) && (e = d.create, d.destroy = e());
|
|
2089
|
+
d = d.next;
|
|
2090
|
+
} while (d !== c);
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
function Ve(a, b, c) {
|
|
2094
|
+
"function" === typeof We && We(b);
|
|
2095
|
+
switch (b.tag) {
|
|
2096
|
+
case 0:
|
|
2097
|
+
case 11:
|
|
2098
|
+
case 14:
|
|
2099
|
+
case 15:
|
|
2100
|
+
a = b.updateQueue;
|
|
2101
|
+
if (null !== a && (a = a.lastEffect, null !== a)) {
|
|
2102
|
+
var d = a.next;
|
|
2103
|
+
hc(97 < c ? 97 : c, function () {
|
|
2104
|
+
var a = d;
|
|
2105
|
+
do {
|
|
2106
|
+
var c = a.destroy;
|
|
2107
|
+
if (void 0 !== c) {
|
|
2108
|
+
var g = b;
|
|
2109
|
+
try {
|
|
2110
|
+
c();
|
|
2111
|
+
} catch (l) {
|
|
2112
|
+
Re(g, l);
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
a = a.next;
|
|
2116
|
+
} while (a !== d);
|
|
2117
|
+
});
|
|
2118
|
+
}
|
|
2119
|
+
break;
|
|
2120
|
+
case 1:
|
|
2121
|
+
Se(b);
|
|
2122
|
+
c = b.stateNode;
|
|
2123
|
+
"function" === typeof c.componentWillUnmount && Qe(b, c);
|
|
2124
|
+
break;
|
|
2125
|
+
case 5:
|
|
2126
|
+
Se(b);
|
|
2127
|
+
break;
|
|
2128
|
+
case 4:
|
|
2129
|
+
Qa ? Xe(a, b, c) : Ra && Ye(b);
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
2132
|
+
function Ze(a, b, c) {
|
|
2133
|
+
for (var d = b;;) if (Ve(a, d, c), null === d.child || Qa && 4 === d.tag) {
|
|
2134
|
+
if (d === b) break;
|
|
2135
|
+
for (; null === d.sibling;) {
|
|
2136
|
+
if (null === d.return || d.return === b) return;
|
|
2137
|
+
d = d.return;
|
|
2138
|
+
}
|
|
2139
|
+
d.sibling.return = d.return;
|
|
2140
|
+
d = d.sibling;
|
|
2141
|
+
} else d.child.return = d, d = d.child;
|
|
2142
|
+
}
|
|
2143
|
+
function $e(a) {
|
|
2144
|
+
var b = a.alternate;
|
|
2145
|
+
a.return = null;
|
|
2146
|
+
a.child = null;
|
|
2147
|
+
a.memoizedState = null;
|
|
2148
|
+
a.updateQueue = null;
|
|
2149
|
+
a.dependencies = null;
|
|
2150
|
+
a.alternate = null;
|
|
2151
|
+
a.firstEffect = null;
|
|
2152
|
+
a.lastEffect = null;
|
|
2153
|
+
a.pendingProps = null;
|
|
2154
|
+
a.memoizedProps = null;
|
|
2155
|
+
null !== b && $e(b);
|
|
2156
|
+
}
|
|
2157
|
+
function Ye(a) {
|
|
2158
|
+
if (Ra) {
|
|
2159
|
+
a = a.stateNode.containerInfo;
|
|
2160
|
+
var b = hb(a);
|
|
2161
|
+
lb(a, b);
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
function af(a) {
|
|
2165
|
+
return 5 === a.tag || 3 === a.tag || 4 === a.tag;
|
|
2166
|
+
}
|
|
2167
|
+
function bf(a) {
|
|
2168
|
+
if (Qa) {
|
|
2169
|
+
a: {
|
|
2170
|
+
for (var b = a.return; null !== b;) {
|
|
2171
|
+
if (af(b)) {
|
|
2172
|
+
var c = b;
|
|
2173
|
+
break a;
|
|
2174
|
+
}
|
|
2175
|
+
b = b.return;
|
|
2176
|
+
}
|
|
2177
|
+
throw Error(n(160));
|
|
2178
|
+
}
|
|
2179
|
+
b = c.stateNode;
|
|
2180
|
+
switch (c.tag) {
|
|
2181
|
+
case 5:
|
|
2182
|
+
var d = !1;
|
|
2183
|
+
break;
|
|
2184
|
+
case 3:
|
|
2185
|
+
b = b.containerInfo;
|
|
2186
|
+
d = !0;
|
|
2187
|
+
break;
|
|
2188
|
+
case 4:
|
|
2189
|
+
b = b.containerInfo;
|
|
2190
|
+
d = !0;
|
|
2191
|
+
break;
|
|
2192
|
+
default:
|
|
2193
|
+
throw Error(n(161));
|
|
2194
|
+
}
|
|
2195
|
+
c.effectTag & 16 && (bb(b), c.effectTag &= -17);
|
|
2196
|
+
a: b: for (c = a;;) {
|
|
2197
|
+
for (; null === c.sibling;) {
|
|
2198
|
+
if (null === c.return || af(c.return)) {
|
|
2199
|
+
c = null;
|
|
2200
|
+
break a;
|
|
2201
|
+
}
|
|
2202
|
+
c = c.return;
|
|
2203
|
+
}
|
|
2204
|
+
c.sibling.return = c.return;
|
|
2205
|
+
for (c = c.sibling; 5 !== c.tag && 6 !== c.tag && 18 !== c.tag;) {
|
|
2206
|
+
if (c.effectTag & 2) continue b;
|
|
2207
|
+
if (null === c.child || 4 === c.tag) continue b;else c.child.return = c, c = c.child;
|
|
2208
|
+
}
|
|
2209
|
+
if (!(c.effectTag & 2)) {
|
|
2210
|
+
c = c.stateNode;
|
|
2211
|
+
break a;
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
for (var e = a;;) {
|
|
2215
|
+
var f = 5 === e.tag || 6 === e.tag;
|
|
2216
|
+
if (f) f = f ? e.stateNode : e.stateNode.instance, c ? d ? Za(b, f, c) : Ya(b, f, c) : d ? Ua(b, f) : Ta(b, f);else if (4 !== e.tag && null !== e.child) {
|
|
2217
|
+
e.child.return = e;
|
|
2218
|
+
e = e.child;
|
|
2219
|
+
continue;
|
|
2220
|
+
}
|
|
2221
|
+
if (e === a) break;
|
|
2222
|
+
for (; null === e.sibling;) {
|
|
2223
|
+
if (null === e.return || e.return === a) return;
|
|
2224
|
+
e = e.return;
|
|
2225
|
+
}
|
|
2226
|
+
e.sibling.return = e.return;
|
|
2227
|
+
e = e.sibling;
|
|
2228
|
+
}
|
|
2229
|
+
}
|
|
2230
|
+
}
|
|
2231
|
+
function Xe(a, b, c) {
|
|
2232
|
+
for (var d = b, e = !1, f, g;;) {
|
|
2233
|
+
if (!e) {
|
|
2234
|
+
e = d.return;
|
|
2235
|
+
a: for (;;) {
|
|
2236
|
+
if (null === e) throw Error(n(160));
|
|
2237
|
+
f = e.stateNode;
|
|
2238
|
+
switch (e.tag) {
|
|
2239
|
+
case 5:
|
|
2240
|
+
g = !1;
|
|
2241
|
+
break a;
|
|
2242
|
+
case 3:
|
|
2243
|
+
f = f.containerInfo;
|
|
2244
|
+
g = !0;
|
|
2245
|
+
break a;
|
|
2246
|
+
case 4:
|
|
2247
|
+
f = f.containerInfo;
|
|
2248
|
+
g = !0;
|
|
2249
|
+
break a;
|
|
2250
|
+
}
|
|
2251
|
+
e = e.return;
|
|
2252
|
+
}
|
|
2253
|
+
e = !0;
|
|
2254
|
+
}
|
|
2255
|
+
if (5 === d.tag || 6 === d.tag) Ze(a, d, c), g ? ab(f, d.stateNode) : $a(f, d.stateNode);else if (4 === d.tag) {
|
|
2256
|
+
if (null !== d.child) {
|
|
2257
|
+
f = d.stateNode.containerInfo;
|
|
2258
|
+
g = !0;
|
|
2259
|
+
d.child.return = d;
|
|
2260
|
+
d = d.child;
|
|
2261
|
+
continue;
|
|
2262
|
+
}
|
|
2263
|
+
} else if (Ve(a, d, c), null !== d.child) {
|
|
2264
|
+
d.child.return = d;
|
|
2265
|
+
d = d.child;
|
|
2266
|
+
continue;
|
|
2267
|
+
}
|
|
2268
|
+
if (d === b) break;
|
|
2269
|
+
for (; null === d.sibling;) {
|
|
2270
|
+
if (null === d.return || d.return === b) return;
|
|
2271
|
+
d = d.return;
|
|
2272
|
+
4 === d.tag && (e = !1);
|
|
2273
|
+
}
|
|
2274
|
+
d.sibling.return = d.return;
|
|
2275
|
+
d = d.sibling;
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
function cf(a, b) {
|
|
2279
|
+
if (Qa) switch (b.tag) {
|
|
2280
|
+
case 0:
|
|
2281
|
+
case 11:
|
|
2282
|
+
case 14:
|
|
2283
|
+
case 15:
|
|
2284
|
+
Ue(4, 8, b);
|
|
2285
|
+
break;
|
|
2286
|
+
case 1:
|
|
2287
|
+
break;
|
|
2288
|
+
case 5:
|
|
2289
|
+
var c = b.stateNode;
|
|
2290
|
+
if (null != c) {
|
|
2291
|
+
var d = b.memoizedProps;
|
|
2292
|
+
a = null !== a ? a.memoizedProps : d;
|
|
2293
|
+
var e = b.type,
|
|
2294
|
+
f = b.updateQueue;
|
|
2295
|
+
b.updateQueue = null;
|
|
2296
|
+
null !== f && Xa(c, f, e, a, d, b);
|
|
2297
|
+
}
|
|
2298
|
+
break;
|
|
2299
|
+
case 6:
|
|
2300
|
+
if (null === b.stateNode) throw Error(n(162));
|
|
2301
|
+
c = b.memoizedProps;
|
|
2302
|
+
Va(b.stateNode, null !== a ? a.memoizedProps : c, c);
|
|
2303
|
+
break;
|
|
2304
|
+
case 3:
|
|
2305
|
+
Sa && (b = b.stateNode, b.hydrate && (b.hydrate = !1, xb(b.containerInfo)));
|
|
2306
|
+
break;
|
|
2307
|
+
case 12:
|
|
2308
|
+
break;
|
|
2309
|
+
case 13:
|
|
2310
|
+
df(b);
|
|
2311
|
+
ef(b);
|
|
2312
|
+
break;
|
|
2313
|
+
case 19:
|
|
2314
|
+
ef(b);
|
|
2315
|
+
break;
|
|
2316
|
+
case 17:
|
|
2317
|
+
break;
|
|
2318
|
+
case 20:
|
|
2319
|
+
break;
|
|
2320
|
+
case 21:
|
|
2321
|
+
break;
|
|
2322
|
+
default:
|
|
2323
|
+
throw Error(n(163));
|
|
2324
|
+
} else {
|
|
2325
|
+
switch (b.tag) {
|
|
2326
|
+
case 0:
|
|
2327
|
+
case 11:
|
|
2328
|
+
case 14:
|
|
2329
|
+
case 15:
|
|
2330
|
+
Ue(4, 8, b);
|
|
2331
|
+
return;
|
|
2332
|
+
case 12:
|
|
2333
|
+
return;
|
|
2334
|
+
case 13:
|
|
2335
|
+
df(b);
|
|
2336
|
+
ef(b);
|
|
2337
|
+
return;
|
|
2338
|
+
case 19:
|
|
2339
|
+
ef(b);
|
|
2340
|
+
return;
|
|
2341
|
+
case 3:
|
|
2342
|
+
Sa && (c = b.stateNode, c.hydrate && (c.hydrate = !1, xb(c.containerInfo)));
|
|
2343
|
+
}
|
|
2344
|
+
a: if (Ra) switch (b.tag) {
|
|
2345
|
+
case 1:
|
|
2346
|
+
case 5:
|
|
2347
|
+
case 6:
|
|
2348
|
+
case 20:
|
|
2349
|
+
break a;
|
|
2350
|
+
case 3:
|
|
2351
|
+
case 4:
|
|
2352
|
+
b = b.stateNode;
|
|
2353
|
+
lb(b.containerInfo, b.pendingChildren);
|
|
2354
|
+
break a;
|
|
2355
|
+
default:
|
|
2356
|
+
throw Error(n(163));
|
|
2357
|
+
}
|
|
2358
|
+
}
|
|
2359
|
+
}
|
|
2360
|
+
function df(a) {
|
|
2361
|
+
var b = a;
|
|
2362
|
+
if (null === a.memoizedState) var c = !1;else c = !0, b = a.child, ff = E();
|
|
2363
|
+
if (Qa && null !== b) a: if (a = b, Qa) for (b = a;;) {
|
|
2364
|
+
if (5 === b.tag) {
|
|
2365
|
+
var d = b.stateNode;
|
|
2366
|
+
c ? cb(d) : eb(b.stateNode, b.memoizedProps);
|
|
2367
|
+
} else if (6 === b.tag) d = b.stateNode, c ? db(d) : fb(d, b.memoizedProps);else if (13 === b.tag && null !== b.memoizedState && null === b.memoizedState.dehydrated) {
|
|
2368
|
+
d = b.child.sibling;
|
|
2369
|
+
d.return = b;
|
|
2370
|
+
b = d;
|
|
2371
|
+
continue;
|
|
2372
|
+
} else if (null !== b.child) {
|
|
2373
|
+
b.child.return = b;
|
|
2374
|
+
b = b.child;
|
|
2375
|
+
continue;
|
|
2376
|
+
}
|
|
2377
|
+
if (b === a) break a;
|
|
2378
|
+
for (; null === b.sibling;) {
|
|
2379
|
+
if (null === b.return || b.return === a) break a;
|
|
2380
|
+
b = b.return;
|
|
2381
|
+
}
|
|
2382
|
+
b.sibling.return = b.return;
|
|
2383
|
+
b = b.sibling;
|
|
2384
|
+
}
|
|
2385
|
+
}
|
|
2386
|
+
function ef(a) {
|
|
2387
|
+
var b = a.updateQueue;
|
|
2388
|
+
if (null !== b) {
|
|
2389
|
+
a.updateQueue = null;
|
|
2390
|
+
var c = a.stateNode;
|
|
2391
|
+
null === c && (c = a.stateNode = new Oe());
|
|
2392
|
+
b.forEach(function (b) {
|
|
2393
|
+
var d = gf.bind(null, a, b);
|
|
2394
|
+
c.has(b) || (c.add(b), b.then(d, d));
|
|
2395
|
+
});
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
var hf = "function" === typeof WeakMap ? WeakMap : Map;
|
|
2399
|
+
function jf(a, b, c) {
|
|
2400
|
+
c = Gc(c, null);
|
|
2401
|
+
c.tag = 3;
|
|
2402
|
+
c.payload = {
|
|
2403
|
+
element: null
|
|
2404
|
+
};
|
|
2405
|
+
var d = b.value;
|
|
2406
|
+
c.callback = function () {
|
|
2407
|
+
kf || (kf = !0, lf = d);
|
|
2408
|
+
Pe(a, b);
|
|
2409
|
+
};
|
|
2410
|
+
return c;
|
|
2411
|
+
}
|
|
2412
|
+
function mf(a, b, c) {
|
|
2413
|
+
c = Gc(c, null);
|
|
2414
|
+
c.tag = 3;
|
|
2415
|
+
var d = a.type.getDerivedStateFromError;
|
|
2416
|
+
if ("function" === typeof d) {
|
|
2417
|
+
var e = b.value;
|
|
2418
|
+
c.payload = function () {
|
|
2419
|
+
Pe(a, b);
|
|
2420
|
+
return d(e);
|
|
2421
|
+
};
|
|
2422
|
+
}
|
|
2423
|
+
var f = a.stateNode;
|
|
2424
|
+
null !== f && "function" === typeof f.componentDidCatch && (c.callback = function () {
|
|
2425
|
+
"function" !== typeof d && (null === nf ? nf = new Set([this]) : nf.add(this), Pe(a, b));
|
|
2426
|
+
var c = b.stack;
|
|
2427
|
+
this.componentDidCatch(b.value, {
|
|
2428
|
+
componentStack: null !== c ? c : ""
|
|
2429
|
+
});
|
|
2430
|
+
});
|
|
2431
|
+
return c;
|
|
2432
|
+
}
|
|
2433
|
+
var of = Math.ceil,
|
|
2434
|
+
pf = q.ReactCurrentDispatcher,
|
|
2435
|
+
qf = q.ReactCurrentOwner,
|
|
2436
|
+
R = 0,
|
|
2437
|
+
rf = 8,
|
|
2438
|
+
S = 16,
|
|
2439
|
+
sf = 32,
|
|
2440
|
+
tf = 0,
|
|
2441
|
+
uf = 1,
|
|
2442
|
+
vf = 2,
|
|
2443
|
+
wf = 3,
|
|
2444
|
+
xf = 4,
|
|
2445
|
+
yf = 5,
|
|
2446
|
+
T = R,
|
|
2447
|
+
U = null,
|
|
2448
|
+
V = null,
|
|
2449
|
+
W = 0,
|
|
2450
|
+
X = tf,
|
|
2451
|
+
zf = null,
|
|
2452
|
+
Af = 1073741823,
|
|
2453
|
+
Bf = 1073741823,
|
|
2454
|
+
Cf = null,
|
|
2455
|
+
Df = 0,
|
|
2456
|
+
Ef = !1,
|
|
2457
|
+
ff = 0,
|
|
2458
|
+
Ff = 500,
|
|
2459
|
+
Y = null,
|
|
2460
|
+
kf = !1,
|
|
2461
|
+
lf = null,
|
|
2462
|
+
nf = null,
|
|
2463
|
+
Gf = !1,
|
|
2464
|
+
Hf = null,
|
|
2465
|
+
If = 90,
|
|
2466
|
+
Jf = null,
|
|
2467
|
+
Kf = 0,
|
|
2468
|
+
Lf = null,
|
|
2469
|
+
Mf = 0;
|
|
2470
|
+
function G() {
|
|
2471
|
+
return (T & (S | sf)) !== R ? 1073741821 - (E() / 10 | 0) : 0 !== Mf ? Mf : Mf = 1073741821 - (E() / 10 | 0);
|
|
2472
|
+
}
|
|
2473
|
+
function Vc(a, b, c) {
|
|
2474
|
+
b = b.mode;
|
|
2475
|
+
if (0 === (b & 2)) return 1073741823;
|
|
2476
|
+
var d = fc();
|
|
2477
|
+
if (0 === (b & 4)) return 99 === d ? 1073741823 : 1073741822;
|
|
2478
|
+
if ((T & S) !== R) return W;
|
|
2479
|
+
if (null !== c) a = mc(a, c.timeoutMs | 0 || 5E3, 250);else switch (d) {
|
|
2480
|
+
case 99:
|
|
2481
|
+
a = 1073741823;
|
|
2482
|
+
break;
|
|
2483
|
+
case 98:
|
|
2484
|
+
a = mc(a, 150, 100);
|
|
2485
|
+
break;
|
|
2486
|
+
case 97:
|
|
2487
|
+
case 96:
|
|
2488
|
+
a = mc(a, 5E3, 250);
|
|
2489
|
+
break;
|
|
2490
|
+
case 95:
|
|
2491
|
+
a = 2;
|
|
2492
|
+
break;
|
|
2493
|
+
default:
|
|
2494
|
+
throw Error(n(326));
|
|
2495
|
+
}
|
|
2496
|
+
null !== U && a === W && --a;
|
|
2497
|
+
return a;
|
|
2498
|
+
}
|
|
2499
|
+
function Wc(a, b) {
|
|
2500
|
+
if (50 < Kf) throw Kf = 0, Lf = null, Error(n(185));
|
|
2501
|
+
a = Nf(a, b);
|
|
2502
|
+
if (null !== a) {
|
|
2503
|
+
var c = fc();
|
|
2504
|
+
1073741823 === b ? (T & rf) !== R && (T & (S | sf)) === R ? Of(a) : (Z(a), T === R && F()) : Z(a);
|
|
2505
|
+
(T & 4) === R || 98 !== c && 99 !== c || (null === Jf ? Jf = new Map([[a, b]]) : (c = Jf.get(a), (void 0 === c || c > b) && Jf.set(a, b)));
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
function Nf(a, b) {
|
|
2509
|
+
a.expirationTime < b && (a.expirationTime = b);
|
|
2510
|
+
var c = a.alternate;
|
|
2511
|
+
null !== c && c.expirationTime < b && (c.expirationTime = b);
|
|
2512
|
+
var d = a.return,
|
|
2513
|
+
e = null;
|
|
2514
|
+
if (null === d && 3 === a.tag) e = a.stateNode;else for (; null !== d;) {
|
|
2515
|
+
c = d.alternate;
|
|
2516
|
+
d.childExpirationTime < b && (d.childExpirationTime = b);
|
|
2517
|
+
null !== c && c.childExpirationTime < b && (c.childExpirationTime = b);
|
|
2518
|
+
if (null === d.return && 3 === d.tag) {
|
|
2519
|
+
e = d.stateNode;
|
|
2520
|
+
break;
|
|
2521
|
+
}
|
|
2522
|
+
d = d.return;
|
|
2523
|
+
}
|
|
2524
|
+
null !== e && (U === e && (Pc(b), X === xf && Pf(e, W)), Qf(e, b));
|
|
2525
|
+
return e;
|
|
2526
|
+
}
|
|
2527
|
+
function Rf(a) {
|
|
2528
|
+
var b = a.lastExpiredTime;
|
|
2529
|
+
if (0 !== b) return b;
|
|
2530
|
+
b = a.firstPendingTime;
|
|
2531
|
+
if (!Sf(a, b)) return b;
|
|
2532
|
+
b = a.lastPingedTime;
|
|
2533
|
+
a = a.nextKnownPendingLevel;
|
|
2534
|
+
return b > a ? b : a;
|
|
2535
|
+
}
|
|
2536
|
+
function Z(a) {
|
|
2537
|
+
if (0 !== a.lastExpiredTime) a.callbackExpirationTime = 1073741823, a.callbackPriority = 99, a.callbackNode = jc(Of.bind(null, a));else {
|
|
2538
|
+
var b = Rf(a),
|
|
2539
|
+
c = a.callbackNode;
|
|
2540
|
+
if (0 === b) null !== c && (a.callbackNode = null, a.callbackExpirationTime = 0, a.callbackPriority = 90);else {
|
|
2541
|
+
var d = G();
|
|
2542
|
+
1073741823 === b ? d = 99 : 1 === b || 2 === b ? d = 95 : (d = 10 * (1073741821 - b) - 10 * (1073741821 - d), d = 0 >= d ? 99 : 250 >= d ? 98 : 5250 >= d ? 97 : 95);
|
|
2543
|
+
if (null !== c) {
|
|
2544
|
+
var e = a.callbackPriority;
|
|
2545
|
+
if (a.callbackExpirationTime === b && e >= d) return;
|
|
2546
|
+
c !== $b && Ob(c);
|
|
2547
|
+
}
|
|
2548
|
+
a.callbackExpirationTime = b;
|
|
2549
|
+
a.callbackPriority = d;
|
|
2550
|
+
b = 1073741823 === b ? jc(Of.bind(null, a)) : ic(d, Tf.bind(null, a), {
|
|
2551
|
+
timeout: 10 * (1073741821 - b) - E()
|
|
2552
|
+
});
|
|
2553
|
+
a.callbackNode = b;
|
|
2554
|
+
}
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
function Tf(a, b) {
|
|
2558
|
+
Mf = 0;
|
|
2559
|
+
if (b) return b = G(), Uf(a, b), Z(a), null;
|
|
2560
|
+
var c = Rf(a);
|
|
2561
|
+
if (0 !== c) {
|
|
2562
|
+
b = a.callbackNode;
|
|
2563
|
+
if ((T & (S | sf)) !== R) throw Error(n(327));
|
|
2564
|
+
Vf();
|
|
2565
|
+
a === U && c === W || Wf(a, c);
|
|
2566
|
+
if (null !== V) {
|
|
2567
|
+
var d = T;
|
|
2568
|
+
T |= S;
|
|
2569
|
+
var e = Xf();
|
|
2570
|
+
do try {
|
|
2571
|
+
Yf();
|
|
2572
|
+
break;
|
|
2573
|
+
} catch (l) {
|
|
2574
|
+
Zf(a, l);
|
|
2575
|
+
} while (1);
|
|
2576
|
+
wc();
|
|
2577
|
+
T = d;
|
|
2578
|
+
pf.current = e;
|
|
2579
|
+
if (X === uf) throw b = zf, Wf(a, c), Pf(a, c), Z(a), b;
|
|
2580
|
+
if (null === V) switch (e = a.finishedWork = a.current.alternate, a.finishedExpirationTime = c, d = X, U = null, d) {
|
|
2581
|
+
case tf:
|
|
2582
|
+
case uf:
|
|
2583
|
+
throw Error(n(345));
|
|
2584
|
+
case vf:
|
|
2585
|
+
Uf(a, 2 < c ? 2 : c);
|
|
2586
|
+
break;
|
|
2587
|
+
case wf:
|
|
2588
|
+
Pf(a, c);
|
|
2589
|
+
d = a.lastSuspendedTime;
|
|
2590
|
+
c === d && (a.nextKnownPendingLevel = $f(e));
|
|
2591
|
+
if (1073741823 === Af && (e = ff + Ff - E(), 10 < e)) {
|
|
2592
|
+
if (Ef) {
|
|
2593
|
+
var f = a.lastPingedTime;
|
|
2594
|
+
if (0 === f || f >= c) {
|
|
2595
|
+
a.lastPingedTime = c;
|
|
2596
|
+
Wf(a, c);
|
|
2597
|
+
break;
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
f = Rf(a);
|
|
2601
|
+
if (0 !== f && f !== c) break;
|
|
2602
|
+
if (0 !== d && d !== c) {
|
|
2603
|
+
a.lastPingedTime = d;
|
|
2604
|
+
break;
|
|
2605
|
+
}
|
|
2606
|
+
a.timeoutHandle = Ma(ag.bind(null, a), e);
|
|
2607
|
+
break;
|
|
2608
|
+
}
|
|
2609
|
+
ag(a);
|
|
2610
|
+
break;
|
|
2611
|
+
case xf:
|
|
2612
|
+
Pf(a, c);
|
|
2613
|
+
d = a.lastSuspendedTime;
|
|
2614
|
+
c === d && (a.nextKnownPendingLevel = $f(e));
|
|
2615
|
+
if (Ef && (e = a.lastPingedTime, 0 === e || e >= c)) {
|
|
2616
|
+
a.lastPingedTime = c;
|
|
2617
|
+
Wf(a, c);
|
|
2618
|
+
break;
|
|
2619
|
+
}
|
|
2620
|
+
e = Rf(a);
|
|
2621
|
+
if (0 !== e && e !== c) break;
|
|
2622
|
+
if (0 !== d && d !== c) {
|
|
2623
|
+
a.lastPingedTime = d;
|
|
2624
|
+
break;
|
|
2625
|
+
}
|
|
2626
|
+
1073741823 !== Bf ? d = 10 * (1073741821 - Bf) - E() : 1073741823 === Af ? d = 0 : (d = 10 * (1073741821 - Af) - 5E3, e = E(), c = 10 * (1073741821 - c) - e, d = e - d, 0 > d && (d = 0), d = (120 > d ? 120 : 480 > d ? 480 : 1080 > d ? 1080 : 1920 > d ? 1920 : 3E3 > d ? 3E3 : 4320 > d ? 4320 : 1960 * of(d / 1960)) - d, c < d && (d = c));
|
|
2627
|
+
if (10 < d) {
|
|
2628
|
+
a.timeoutHandle = Ma(ag.bind(null, a), d);
|
|
2629
|
+
break;
|
|
2630
|
+
}
|
|
2631
|
+
ag(a);
|
|
2632
|
+
break;
|
|
2633
|
+
case yf:
|
|
2634
|
+
if (1073741823 !== Af && null !== Cf) {
|
|
2635
|
+
f = Af;
|
|
2636
|
+
var g = Cf;
|
|
2637
|
+
d = g.busyMinDurationMs | 0;
|
|
2638
|
+
0 >= d ? d = 0 : (e = g.busyDelayMs | 0, f = E() - (10 * (1073741821 - f) - (g.timeoutMs | 0 || 5E3)), d = f <= e ? 0 : e + d - f);
|
|
2639
|
+
if (10 < d) {
|
|
2640
|
+
Pf(a, c);
|
|
2641
|
+
a.timeoutHandle = Ma(ag.bind(null, a), d);
|
|
2642
|
+
break;
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
ag(a);
|
|
2646
|
+
break;
|
|
2647
|
+
default:
|
|
2648
|
+
throw Error(n(329));
|
|
2649
|
+
}
|
|
2650
|
+
Z(a);
|
|
2651
|
+
if (a.callbackNode === b) return Tf.bind(null, a);
|
|
2652
|
+
}
|
|
2653
|
+
}
|
|
2654
|
+
return null;
|
|
2655
|
+
}
|
|
2656
|
+
function Of(a) {
|
|
2657
|
+
var b = a.lastExpiredTime;
|
|
2658
|
+
b = 0 !== b ? b : 1073741823;
|
|
2659
|
+
if (a.finishedExpirationTime === b) ag(a);else {
|
|
2660
|
+
if ((T & (S | sf)) !== R) throw Error(n(327));
|
|
2661
|
+
Vf();
|
|
2662
|
+
a === U && b === W || Wf(a, b);
|
|
2663
|
+
if (null !== V) {
|
|
2664
|
+
var c = T;
|
|
2665
|
+
T |= S;
|
|
2666
|
+
var d = Xf();
|
|
2667
|
+
do try {
|
|
2668
|
+
bg();
|
|
2669
|
+
break;
|
|
2670
|
+
} catch (e) {
|
|
2671
|
+
Zf(a, e);
|
|
2672
|
+
} while (1);
|
|
2673
|
+
wc();
|
|
2674
|
+
T = c;
|
|
2675
|
+
pf.current = d;
|
|
2676
|
+
if (X === uf) throw c = zf, Wf(a, b), Pf(a, b), Z(a), c;
|
|
2677
|
+
if (null !== V) throw Error(n(261));
|
|
2678
|
+
a.finishedWork = a.current.alternate;
|
|
2679
|
+
a.finishedExpirationTime = b;
|
|
2680
|
+
U = null;
|
|
2681
|
+
ag(a);
|
|
2682
|
+
Z(a);
|
|
2683
|
+
}
|
|
2684
|
+
}
|
|
2685
|
+
return null;
|
|
2686
|
+
}
|
|
2687
|
+
function cg(a, b) {
|
|
2688
|
+
Uf(a, b);
|
|
2689
|
+
Z(a);
|
|
2690
|
+
(T & (S | sf)) === R && F();
|
|
2691
|
+
}
|
|
2692
|
+
function dg() {
|
|
2693
|
+
if (null !== Jf) {
|
|
2694
|
+
var a = Jf;
|
|
2695
|
+
Jf = null;
|
|
2696
|
+
a.forEach(function (a, c) {
|
|
2697
|
+
Uf(c, a);
|
|
2698
|
+
Z(c);
|
|
2699
|
+
});
|
|
2700
|
+
F();
|
|
2701
|
+
}
|
|
2702
|
+
}
|
|
2703
|
+
function eg(a, b) {
|
|
2704
|
+
if ((T & (S | sf)) !== R) throw Error(n(187));
|
|
2705
|
+
var c = T;
|
|
2706
|
+
T |= 1;
|
|
2707
|
+
try {
|
|
2708
|
+
return hc(99, a.bind(null, b));
|
|
2709
|
+
} finally {
|
|
2710
|
+
T = c, F();
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
function Wf(a, b) {
|
|
2714
|
+
a.finishedWork = null;
|
|
2715
|
+
a.finishedExpirationTime = 0;
|
|
2716
|
+
var c = a.timeoutHandle;
|
|
2717
|
+
c !== Oa && (a.timeoutHandle = Oa, Na(c));
|
|
2718
|
+
if (null !== V) for (c = V.return; null !== c;) {
|
|
2719
|
+
var d = c;
|
|
2720
|
+
switch (d.tag) {
|
|
2721
|
+
case 1:
|
|
2722
|
+
var e = d.type.childContextTypes;
|
|
2723
|
+
null !== e && void 0 !== e && Gb();
|
|
2724
|
+
break;
|
|
2725
|
+
case 3:
|
|
2726
|
+
rd();
|
|
2727
|
+
Hb();
|
|
2728
|
+
break;
|
|
2729
|
+
case 5:
|
|
2730
|
+
td(d);
|
|
2731
|
+
break;
|
|
2732
|
+
case 4:
|
|
2733
|
+
rd();
|
|
2734
|
+
break;
|
|
2735
|
+
case 13:
|
|
2736
|
+
y(I);
|
|
2737
|
+
break;
|
|
2738
|
+
case 19:
|
|
2739
|
+
y(I);
|
|
2740
|
+
break;
|
|
2741
|
+
case 10:
|
|
2742
|
+
yc(d);
|
|
2743
|
+
}
|
|
2744
|
+
c = c.return;
|
|
2745
|
+
}
|
|
2746
|
+
U = a;
|
|
2747
|
+
V = fd(a.current, null);
|
|
2748
|
+
W = b;
|
|
2749
|
+
X = tf;
|
|
2750
|
+
zf = null;
|
|
2751
|
+
Bf = Af = 1073741823;
|
|
2752
|
+
Cf = null;
|
|
2753
|
+
Df = 0;
|
|
2754
|
+
Ef = !1;
|
|
2755
|
+
}
|
|
2756
|
+
function Zf(a, b) {
|
|
2757
|
+
do {
|
|
2758
|
+
try {
|
|
2759
|
+
wc();
|
|
2760
|
+
Nd();
|
|
2761
|
+
if (null === V || null === V.return) return X = uf, zf = b, null;
|
|
2762
|
+
a: {
|
|
2763
|
+
var c = a,
|
|
2764
|
+
d = V.return,
|
|
2765
|
+
e = V,
|
|
2766
|
+
f = b;
|
|
2767
|
+
b = W;
|
|
2768
|
+
e.effectTag |= 2048;
|
|
2769
|
+
e.firstEffect = e.lastEffect = null;
|
|
2770
|
+
if (null !== f && "object" === typeof f && "function" === typeof f.then) {
|
|
2771
|
+
var g = f,
|
|
2772
|
+
l = 0 !== (I.current & 1),
|
|
2773
|
+
h = d;
|
|
2774
|
+
do {
|
|
2775
|
+
var k;
|
|
2776
|
+
if (k = 13 === h.tag) {
|
|
2777
|
+
var p = h.memoizedState;
|
|
2778
|
+
if (null !== p) k = null !== p.dehydrated ? !0 : !1;else {
|
|
2779
|
+
var D = h.memoizedProps;
|
|
2780
|
+
k = void 0 === D.fallback ? !1 : !0 !== D.unstable_avoidThisFallback ? !0 : l ? !1 : !0;
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
if (k) {
|
|
2784
|
+
var x = h.updateQueue;
|
|
2785
|
+
if (null === x) {
|
|
2786
|
+
var K = new Set();
|
|
2787
|
+
K.add(g);
|
|
2788
|
+
h.updateQueue = K;
|
|
2789
|
+
} else x.add(g);
|
|
2790
|
+
if (0 === (h.mode & 2)) {
|
|
2791
|
+
h.effectTag |= 64;
|
|
2792
|
+
e.effectTag &= -2981;
|
|
2793
|
+
if (1 === e.tag) if (null === e.alternate) e.tag = 17;else {
|
|
2794
|
+
var Ha = Gc(1073741823, null);
|
|
2795
|
+
Ha.tag = 2;
|
|
2796
|
+
Ic(e, Ha);
|
|
2797
|
+
}
|
|
2798
|
+
e.expirationTime = 1073741823;
|
|
2799
|
+
break a;
|
|
2800
|
+
}
|
|
2801
|
+
f = void 0;
|
|
2802
|
+
e = b;
|
|
2803
|
+
var O = c.pingCache;
|
|
2804
|
+
null === O ? (O = c.pingCache = new hf(), f = new Set(), O.set(g, f)) : (f = O.get(g), void 0 === f && (f = new Set(), O.set(g, f)));
|
|
2805
|
+
if (!f.has(e)) {
|
|
2806
|
+
f.add(e);
|
|
2807
|
+
var w = fg.bind(null, c, g, e);
|
|
2808
|
+
g.then(w, w);
|
|
2809
|
+
}
|
|
2810
|
+
h.effectTag |= 4096;
|
|
2811
|
+
h.expirationTime = b;
|
|
2812
|
+
break a;
|
|
2813
|
+
}
|
|
2814
|
+
h = h.return;
|
|
2815
|
+
} while (null !== h);
|
|
2816
|
+
f = Error((ta(e.type) || "A React component") + " suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display." + Ab(e));
|
|
2817
|
+
}
|
|
2818
|
+
X !== yf && (X = vf);
|
|
2819
|
+
f = Ne(f, e);
|
|
2820
|
+
h = d;
|
|
2821
|
+
do {
|
|
2822
|
+
switch (h.tag) {
|
|
2823
|
+
case 3:
|
|
2824
|
+
g = f;
|
|
2825
|
+
h.effectTag |= 4096;
|
|
2826
|
+
h.expirationTime = b;
|
|
2827
|
+
var r = jf(h, g, b);
|
|
2828
|
+
Jc(h, r);
|
|
2829
|
+
break a;
|
|
2830
|
+
case 1:
|
|
2831
|
+
g = f;
|
|
2832
|
+
var t = h.type,
|
|
2833
|
+
N = h.stateNode;
|
|
2834
|
+
if (0 === (h.effectTag & 64) && ("function" === typeof t.getDerivedStateFromError || null !== N && "function" === typeof N.componentDidCatch && (null === nf || !nf.has(N)))) {
|
|
2835
|
+
h.effectTag |= 4096;
|
|
2836
|
+
h.expirationTime = b;
|
|
2837
|
+
var Mc = mf(h, g, b);
|
|
2838
|
+
Jc(h, Mc);
|
|
2839
|
+
break a;
|
|
2840
|
+
}
|
|
2841
|
+
}
|
|
2842
|
+
h = h.return;
|
|
2843
|
+
} while (null !== h);
|
|
2844
|
+
}
|
|
2845
|
+
V = gg(V);
|
|
2846
|
+
} catch (Rb) {
|
|
2847
|
+
b = Rb;
|
|
2848
|
+
continue;
|
|
2849
|
+
}
|
|
2850
|
+
break;
|
|
2851
|
+
} while (1);
|
|
2852
|
+
}
|
|
2853
|
+
function Xf() {
|
|
2854
|
+
var a = pf.current;
|
|
2855
|
+
pf.current = Md;
|
|
2856
|
+
return null === a ? Md : a;
|
|
2857
|
+
}
|
|
2858
|
+
function Oc(a, b) {
|
|
2859
|
+
a < Af && 2 < a && (Af = a);
|
|
2860
|
+
null !== b && a < Bf && 2 < a && (Bf = a, Cf = b);
|
|
2861
|
+
}
|
|
2862
|
+
function Pc(a) {
|
|
2863
|
+
a > Df && (Df = a);
|
|
2864
|
+
}
|
|
2865
|
+
function bg() {
|
|
2866
|
+
for (; null !== V;) V = hg(V);
|
|
2867
|
+
}
|
|
2868
|
+
function Yf() {
|
|
2869
|
+
for (; null !== V && !Pb();) V = hg(V);
|
|
2870
|
+
}
|
|
2871
|
+
function hg(a) {
|
|
2872
|
+
var b = ig(a.alternate, a, W);
|
|
2873
|
+
a.memoizedProps = a.pendingProps;
|
|
2874
|
+
null === b && (b = gg(a));
|
|
2875
|
+
qf.current = null;
|
|
2876
|
+
return b;
|
|
2877
|
+
}
|
|
2878
|
+
function gg(a) {
|
|
2879
|
+
V = a;
|
|
2880
|
+
do {
|
|
2881
|
+
var b = V.alternate;
|
|
2882
|
+
a = V.return;
|
|
2883
|
+
if (0 === (V.effectTag & 2048)) {
|
|
2884
|
+
a: {
|
|
2885
|
+
var c = b;
|
|
2886
|
+
b = V;
|
|
2887
|
+
var d = W,
|
|
2888
|
+
e = b.pendingProps;
|
|
2889
|
+
switch (b.tag) {
|
|
2890
|
+
case 2:
|
|
2891
|
+
break;
|
|
2892
|
+
case 16:
|
|
2893
|
+
break;
|
|
2894
|
+
case 15:
|
|
2895
|
+
case 0:
|
|
2896
|
+
break;
|
|
2897
|
+
case 1:
|
|
2898
|
+
C(b.type) && Gb();
|
|
2899
|
+
break;
|
|
2900
|
+
case 3:
|
|
2901
|
+
rd();
|
|
2902
|
+
Hb();
|
|
2903
|
+
e = b.stateNode;
|
|
2904
|
+
e.pendingContext && (e.context = e.pendingContext, e.pendingContext = null);
|
|
2905
|
+
(null === c || null === c.child) && ne(b) && Fe(b);
|
|
2906
|
+
He(b);
|
|
2907
|
+
break;
|
|
2908
|
+
case 5:
|
|
2909
|
+
td(b);
|
|
2910
|
+
var f = pd(od.current);
|
|
2911
|
+
d = b.type;
|
|
2912
|
+
if (null !== c && null != b.stateNode) Ie(c, b, d, e, f), c.ref !== b.ref && (b.effectTag |= 128);else if (e) {
|
|
2913
|
+
c = pd(H.current);
|
|
2914
|
+
if (ne(b)) {
|
|
2915
|
+
e = b;
|
|
2916
|
+
if (!Sa) throw Error(n(175));
|
|
2917
|
+
c = ub(e.stateNode, e.type, e.memoizedProps, f, c, e);
|
|
2918
|
+
e.updateQueue = c;
|
|
2919
|
+
c = null !== c ? !0 : !1;
|
|
2920
|
+
c && Fe(b);
|
|
2921
|
+
} else {
|
|
2922
|
+
var g = Ea(d, e, f, c, b);
|
|
2923
|
+
Ge(g, b, !1, !1);
|
|
2924
|
+
b.stateNode = g;
|
|
2925
|
+
Ga(g, d, e, f, c) && Fe(b);
|
|
2926
|
+
}
|
|
2927
|
+
null !== b.ref && (b.effectTag |= 128);
|
|
2928
|
+
} else if (null === b.stateNode) throw Error(n(166));
|
|
2929
|
+
break;
|
|
2930
|
+
case 6:
|
|
2931
|
+
if (c && null != b.stateNode) Je(c, b, c.memoizedProps, e);else {
|
|
2932
|
+
if ("string" !== typeof e && null === b.stateNode) throw Error(n(166));
|
|
2933
|
+
c = pd(od.current);
|
|
2934
|
+
f = pd(H.current);
|
|
2935
|
+
if (ne(b)) {
|
|
2936
|
+
c = b;
|
|
2937
|
+
if (!Sa) throw Error(n(176));
|
|
2938
|
+
(c = vb(c.stateNode, c.memoizedProps, c)) && Fe(b);
|
|
2939
|
+
} else b.stateNode = La(e, c, f, b);
|
|
2940
|
+
}
|
|
2941
|
+
break;
|
|
2942
|
+
case 11:
|
|
2943
|
+
break;
|
|
2944
|
+
case 13:
|
|
2945
|
+
y(I);
|
|
2946
|
+
e = b.memoizedState;
|
|
2947
|
+
if (0 !== (b.effectTag & 64)) {
|
|
2948
|
+
b.expirationTime = d;
|
|
2949
|
+
break a;
|
|
2950
|
+
}
|
|
2951
|
+
e = null !== e;
|
|
2952
|
+
f = !1;
|
|
2953
|
+
null === c ? void 0 !== b.memoizedProps.fallback && ne(b) : (d = c.memoizedState, f = null !== d, e || null === d || (d = c.child.sibling, null !== d && (g = b.firstEffect, null !== g ? (b.firstEffect = d, d.nextEffect = g) : (b.firstEffect = b.lastEffect = d, d.nextEffect = null), d.effectTag = 8)));
|
|
2954
|
+
if (e && !f && 0 !== (b.mode & 2)) if (null === c && !0 !== b.memoizedProps.unstable_avoidThisFallback || 0 !== (I.current & 1)) X === tf && (X = wf);else {
|
|
2955
|
+
if (X === tf || X === wf) X = xf;
|
|
2956
|
+
0 !== Df && null !== U && (Pf(U, W), Qf(U, Df));
|
|
2957
|
+
}
|
|
2958
|
+
Ra && e && (b.effectTag |= 4);
|
|
2959
|
+
Qa && (e || f) && (b.effectTag |= 4);
|
|
2960
|
+
break;
|
|
2961
|
+
case 7:
|
|
2962
|
+
break;
|
|
2963
|
+
case 8:
|
|
2964
|
+
break;
|
|
2965
|
+
case 12:
|
|
2966
|
+
break;
|
|
2967
|
+
case 4:
|
|
2968
|
+
rd();
|
|
2969
|
+
He(b);
|
|
2970
|
+
break;
|
|
2971
|
+
case 10:
|
|
2972
|
+
yc(b);
|
|
2973
|
+
break;
|
|
2974
|
+
case 9:
|
|
2975
|
+
break;
|
|
2976
|
+
case 14:
|
|
2977
|
+
break;
|
|
2978
|
+
case 17:
|
|
2979
|
+
C(b.type) && Gb();
|
|
2980
|
+
break;
|
|
2981
|
+
case 19:
|
|
2982
|
+
y(I);
|
|
2983
|
+
e = b.memoizedState;
|
|
2984
|
+
if (null === e) break;
|
|
2985
|
+
f = 0 !== (b.effectTag & 64);
|
|
2986
|
+
g = e.rendering;
|
|
2987
|
+
if (null === g) {
|
|
2988
|
+
if (f) Le(e, !1);else {
|
|
2989
|
+
if (X !== tf || null !== c && 0 !== (c.effectTag & 64)) for (c = b.child; null !== c;) {
|
|
2990
|
+
g = ud(c);
|
|
2991
|
+
if (null !== g) {
|
|
2992
|
+
b.effectTag |= 64;
|
|
2993
|
+
Le(e, !1);
|
|
2994
|
+
c = g.updateQueue;
|
|
2995
|
+
null !== c && (b.updateQueue = c, b.effectTag |= 4);
|
|
2996
|
+
null === e.lastEffect && (b.firstEffect = null);
|
|
2997
|
+
b.lastEffect = e.lastEffect;
|
|
2998
|
+
c = d;
|
|
2999
|
+
for (e = b.child; null !== e;) f = e, d = c, f.effectTag &= 2, f.nextEffect = null, f.firstEffect = null, f.lastEffect = null, g = f.alternate, null === g ? (f.childExpirationTime = 0, f.expirationTime = d, f.child = null, f.memoizedProps = null, f.memoizedState = null, f.updateQueue = null, f.dependencies = null) : (f.childExpirationTime = g.childExpirationTime, f.expirationTime = g.expirationTime, f.child = g.child, f.memoizedProps = g.memoizedProps, f.memoizedState = g.memoizedState, f.updateQueue = g.updateQueue, d = g.dependencies, f.dependencies = null === d ? null : {
|
|
3000
|
+
expirationTime: d.expirationTime,
|
|
3001
|
+
firstContext: d.firstContext,
|
|
3002
|
+
responders: d.responders
|
|
3003
|
+
}), e = e.sibling;
|
|
3004
|
+
z(I, I.current & 1 | 2);
|
|
3005
|
+
b = b.child;
|
|
3006
|
+
break a;
|
|
3007
|
+
}
|
|
3008
|
+
c = c.sibling;
|
|
3009
|
+
}
|
|
3010
|
+
}
|
|
3011
|
+
} else {
|
|
3012
|
+
if (!f) if (c = ud(g), null !== c) {
|
|
3013
|
+
if (b.effectTag |= 64, f = !0, c = c.updateQueue, null !== c && (b.updateQueue = c, b.effectTag |= 4), Le(e, !0), null === e.tail && "hidden" === e.tailMode) {
|
|
3014
|
+
b = b.lastEffect = e.lastEffect;
|
|
3015
|
+
null !== b && (b.nextEffect = null);
|
|
3016
|
+
break;
|
|
3017
|
+
}
|
|
3018
|
+
} else E() > e.tailExpiration && 1 < d && (b.effectTag |= 64, f = !0, Le(e, !1), b.expirationTime = b.childExpirationTime = d - 1);
|
|
3019
|
+
e.isBackwards ? (g.sibling = b.child, b.child = g) : (c = e.last, null !== c ? c.sibling = g : b.child = g, e.last = g);
|
|
3020
|
+
}
|
|
3021
|
+
if (null !== e.tail) {
|
|
3022
|
+
0 === e.tailExpiration && (e.tailExpiration = E() + 500);
|
|
3023
|
+
c = e.tail;
|
|
3024
|
+
e.rendering = c;
|
|
3025
|
+
e.tail = c.sibling;
|
|
3026
|
+
e.lastEffect = b.lastEffect;
|
|
3027
|
+
c.sibling = null;
|
|
3028
|
+
e = I.current;
|
|
3029
|
+
e = f ? e & 1 | 2 : e & 1;
|
|
3030
|
+
z(I, e);
|
|
3031
|
+
b = c;
|
|
3032
|
+
break a;
|
|
3033
|
+
}
|
|
3034
|
+
break;
|
|
3035
|
+
case 20:
|
|
3036
|
+
break;
|
|
3037
|
+
case 21:
|
|
3038
|
+
break;
|
|
3039
|
+
default:
|
|
3040
|
+
throw Error(n(156, b.tag));
|
|
3041
|
+
}
|
|
3042
|
+
b = null;
|
|
3043
|
+
}
|
|
3044
|
+
c = V;
|
|
3045
|
+
if (1 === W || 1 !== c.childExpirationTime) {
|
|
3046
|
+
e = 0;
|
|
3047
|
+
for (f = c.child; null !== f;) d = f.expirationTime, g = f.childExpirationTime, d > e && (e = d), g > e && (e = g), f = f.sibling;
|
|
3048
|
+
c.childExpirationTime = e;
|
|
3049
|
+
}
|
|
3050
|
+
if (null !== b) return b;
|
|
3051
|
+
null !== a && 0 === (a.effectTag & 2048) && (null === a.firstEffect && (a.firstEffect = V.firstEffect), null !== V.lastEffect && (null !== a.lastEffect && (a.lastEffect.nextEffect = V.firstEffect), a.lastEffect = V.lastEffect), 1 < V.effectTag && (null !== a.lastEffect ? a.lastEffect.nextEffect = V : a.firstEffect = V, a.lastEffect = V));
|
|
3052
|
+
} else {
|
|
3053
|
+
b = Me(V);
|
|
3054
|
+
if (null !== b) return b.effectTag &= 2047, b;
|
|
3055
|
+
null !== a && (a.firstEffect = a.lastEffect = null, a.effectTag |= 2048);
|
|
3056
|
+
}
|
|
3057
|
+
b = V.sibling;
|
|
3058
|
+
if (null !== b) return b;
|
|
3059
|
+
V = a;
|
|
3060
|
+
} while (null !== V);
|
|
3061
|
+
X === tf && (X = yf);
|
|
3062
|
+
return null;
|
|
3063
|
+
}
|
|
3064
|
+
function $f(a) {
|
|
3065
|
+
var b = a.expirationTime;
|
|
3066
|
+
a = a.childExpirationTime;
|
|
3067
|
+
return b > a ? b : a;
|
|
3068
|
+
}
|
|
3069
|
+
function ag(a) {
|
|
3070
|
+
var b = fc();
|
|
3071
|
+
hc(99, jg.bind(null, a, b));
|
|
3072
|
+
return null;
|
|
3073
|
+
}
|
|
3074
|
+
function jg(a, b) {
|
|
3075
|
+
Vf();
|
|
3076
|
+
if ((T & (S | sf)) !== R) throw Error(n(327));
|
|
3077
|
+
var c = a.finishedWork,
|
|
3078
|
+
d = a.finishedExpirationTime;
|
|
3079
|
+
if (null === c) return null;
|
|
3080
|
+
a.finishedWork = null;
|
|
3081
|
+
a.finishedExpirationTime = 0;
|
|
3082
|
+
if (c === a.current) throw Error(n(177));
|
|
3083
|
+
a.callbackNode = null;
|
|
3084
|
+
a.callbackExpirationTime = 0;
|
|
3085
|
+
a.callbackPriority = 90;
|
|
3086
|
+
a.nextKnownPendingLevel = 0;
|
|
3087
|
+
var e = $f(c);
|
|
3088
|
+
a.firstPendingTime = e;
|
|
3089
|
+
d <= a.lastSuspendedTime ? a.firstSuspendedTime = a.lastSuspendedTime = a.nextKnownPendingLevel = 0 : d <= a.firstSuspendedTime && (a.firstSuspendedTime = d - 1);
|
|
3090
|
+
d <= a.lastPingedTime && (a.lastPingedTime = 0);
|
|
3091
|
+
d <= a.lastExpiredTime && (a.lastExpiredTime = 0);
|
|
3092
|
+
a === U && (V = U = null, W = 0);
|
|
3093
|
+
1 < c.effectTag ? null !== c.lastEffect ? (c.lastEffect.nextEffect = c, e = c.firstEffect) : e = c : e = c.firstEffect;
|
|
3094
|
+
if (null !== e) {
|
|
3095
|
+
var f = T;
|
|
3096
|
+
T |= sf;
|
|
3097
|
+
qf.current = null;
|
|
3098
|
+
Ca(a.containerInfo);
|
|
3099
|
+
Y = e;
|
|
3100
|
+
do try {
|
|
3101
|
+
kg();
|
|
3102
|
+
} catch (jb) {
|
|
3103
|
+
if (null === Y) throw Error(n(330));
|
|
3104
|
+
Re(Y, jb);
|
|
3105
|
+
Y = Y.nextEffect;
|
|
3106
|
+
} while (null !== Y);
|
|
3107
|
+
Y = e;
|
|
3108
|
+
do try {
|
|
3109
|
+
for (var g = a, l = b; null !== Y;) {
|
|
3110
|
+
var h = Y.effectTag;
|
|
3111
|
+
h & 16 && Qa && bb(Y.stateNode);
|
|
3112
|
+
if (h & 128) {
|
|
3113
|
+
var k = Y.alternate;
|
|
3114
|
+
if (null !== k) {
|
|
3115
|
+
var p = k.ref;
|
|
3116
|
+
null !== p && ("function" === typeof p ? p(null) : p.current = null);
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
switch (h & 1038) {
|
|
3120
|
+
case 2:
|
|
3121
|
+
bf(Y);
|
|
3122
|
+
Y.effectTag &= -3;
|
|
3123
|
+
break;
|
|
3124
|
+
case 6:
|
|
3125
|
+
bf(Y);
|
|
3126
|
+
Y.effectTag &= -3;
|
|
3127
|
+
cf(Y.alternate, Y);
|
|
3128
|
+
break;
|
|
3129
|
+
case 1024:
|
|
3130
|
+
Y.effectTag &= -1025;
|
|
3131
|
+
break;
|
|
3132
|
+
case 1028:
|
|
3133
|
+
Y.effectTag &= -1025;
|
|
3134
|
+
cf(Y.alternate, Y);
|
|
3135
|
+
break;
|
|
3136
|
+
case 4:
|
|
3137
|
+
cf(Y.alternate, Y);
|
|
3138
|
+
break;
|
|
3139
|
+
case 8:
|
|
3140
|
+
var D = g,
|
|
3141
|
+
x = Y,
|
|
3142
|
+
K = l;
|
|
3143
|
+
Qa ? Xe(D, x, K) : Ze(D, x, K);
|
|
3144
|
+
$e(x);
|
|
3145
|
+
}
|
|
3146
|
+
Y = Y.nextEffect;
|
|
3147
|
+
}
|
|
3148
|
+
} catch (jb) {
|
|
3149
|
+
if (null === Y) throw Error(n(330));
|
|
3150
|
+
Re(Y, jb);
|
|
3151
|
+
Y = Y.nextEffect;
|
|
3152
|
+
} while (null !== Y);
|
|
3153
|
+
Da(a.containerInfo);
|
|
3154
|
+
a.current = c;
|
|
3155
|
+
Y = e;
|
|
3156
|
+
do try {
|
|
3157
|
+
for (h = d; null !== Y;) {
|
|
3158
|
+
var Ha = Y.effectTag;
|
|
3159
|
+
if (Ha & 36) {
|
|
3160
|
+
var O = Y.alternate;
|
|
3161
|
+
k = Y;
|
|
3162
|
+
p = h;
|
|
3163
|
+
switch (k.tag) {
|
|
3164
|
+
case 0:
|
|
3165
|
+
case 11:
|
|
3166
|
+
case 15:
|
|
3167
|
+
Ue(16, 32, k);
|
|
3168
|
+
break;
|
|
3169
|
+
case 1:
|
|
3170
|
+
var w = k.stateNode;
|
|
3171
|
+
if (k.effectTag & 4) if (null === O) w.componentDidMount();else {
|
|
3172
|
+
var r = k.elementType === k.type ? O.memoizedProps : rc(k.type, O.memoizedProps);
|
|
3173
|
+
w.componentDidUpdate(r, O.memoizedState, w.__reactInternalSnapshotBeforeUpdate);
|
|
3174
|
+
}
|
|
3175
|
+
var t = k.updateQueue;
|
|
3176
|
+
null !== t && Qc(k, t, w, p);
|
|
3177
|
+
break;
|
|
3178
|
+
case 3:
|
|
3179
|
+
var N = k.updateQueue;
|
|
3180
|
+
if (null !== N) {
|
|
3181
|
+
g = null;
|
|
3182
|
+
if (null !== k.child) switch (k.child.tag) {
|
|
3183
|
+
case 5:
|
|
3184
|
+
g = za(k.child.stateNode);
|
|
3185
|
+
break;
|
|
3186
|
+
case 1:
|
|
3187
|
+
g = k.child.stateNode;
|
|
3188
|
+
}
|
|
3189
|
+
Qc(k, N, g, p);
|
|
3190
|
+
}
|
|
3191
|
+
break;
|
|
3192
|
+
case 5:
|
|
3193
|
+
var Mc = k.stateNode;
|
|
3194
|
+
null === O && k.effectTag & 4 && Wa(Mc, k.type, k.memoizedProps, k);
|
|
3195
|
+
break;
|
|
3196
|
+
case 6:
|
|
3197
|
+
break;
|
|
3198
|
+
case 4:
|
|
3199
|
+
break;
|
|
3200
|
+
case 12:
|
|
3201
|
+
break;
|
|
3202
|
+
case 13:
|
|
3203
|
+
if (Sa && null === k.memoizedState) {
|
|
3204
|
+
var Rb = k.alternate;
|
|
3205
|
+
if (null !== Rb) {
|
|
3206
|
+
var le = Rb.memoizedState;
|
|
3207
|
+
if (null !== le) {
|
|
3208
|
+
var me = le.dehydrated;
|
|
3209
|
+
null !== me && yb(me);
|
|
3210
|
+
}
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
break;
|
|
3214
|
+
case 19:
|
|
3215
|
+
case 17:
|
|
3216
|
+
case 20:
|
|
3217
|
+
case 21:
|
|
3218
|
+
break;
|
|
3219
|
+
default:
|
|
3220
|
+
throw Error(n(163));
|
|
3221
|
+
}
|
|
3222
|
+
}
|
|
3223
|
+
if (Ha & 128) {
|
|
3224
|
+
k = void 0;
|
|
3225
|
+
var Sb = Y.ref;
|
|
3226
|
+
if (null !== Sb) {
|
|
3227
|
+
var v = Y.stateNode;
|
|
3228
|
+
switch (Y.tag) {
|
|
3229
|
+
case 5:
|
|
3230
|
+
k = za(v);
|
|
3231
|
+
break;
|
|
3232
|
+
default:
|
|
3233
|
+
k = v;
|
|
3234
|
+
}
|
|
3235
|
+
"function" === typeof Sb ? Sb(k) : Sb.current = k;
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
3238
|
+
Y = Y.nextEffect;
|
|
3239
|
+
}
|
|
3240
|
+
} catch (jb) {
|
|
3241
|
+
if (null === Y) throw Error(n(330));
|
|
3242
|
+
Re(Y, jb);
|
|
3243
|
+
Y = Y.nextEffect;
|
|
3244
|
+
} while (null !== Y);
|
|
3245
|
+
Y = null;
|
|
3246
|
+
ac();
|
|
3247
|
+
T = f;
|
|
3248
|
+
} else a.current = c;
|
|
3249
|
+
if (Gf) Gf = !1, Hf = a, If = b;else for (Y = e; null !== Y;) b = Y.nextEffect, Y.nextEffect = null, Y = b;
|
|
3250
|
+
b = a.firstPendingTime;
|
|
3251
|
+
0 === b && (nf = null);
|
|
3252
|
+
1073741823 === b ? a === Lf ? Kf++ : (Kf = 0, Lf = a) : Kf = 0;
|
|
3253
|
+
"function" === typeof lg && lg(c.stateNode, d);
|
|
3254
|
+
Z(a);
|
|
3255
|
+
if (kf) throw kf = !1, a = lf, lf = null, a;
|
|
3256
|
+
if ((T & rf) !== R) return null;
|
|
3257
|
+
F();
|
|
3258
|
+
return null;
|
|
3259
|
+
}
|
|
3260
|
+
function kg() {
|
|
3261
|
+
for (; null !== Y;) {
|
|
3262
|
+
var a = Y.effectTag;
|
|
3263
|
+
0 !== (a & 256) && Te(Y.alternate, Y);
|
|
3264
|
+
0 === (a & 512) || Gf || (Gf = !0, ic(97, function () {
|
|
3265
|
+
Vf();
|
|
3266
|
+
return null;
|
|
3267
|
+
}));
|
|
3268
|
+
Y = Y.nextEffect;
|
|
3269
|
+
}
|
|
3270
|
+
}
|
|
3271
|
+
function Vf() {
|
|
3272
|
+
if (90 !== If) {
|
|
3273
|
+
var a = 97 < If ? 97 : If;
|
|
3274
|
+
If = 90;
|
|
3275
|
+
return hc(a, mg);
|
|
3276
|
+
}
|
|
3277
|
+
}
|
|
3278
|
+
function mg() {
|
|
3279
|
+
if (null === Hf) return !1;
|
|
3280
|
+
var a = Hf;
|
|
3281
|
+
Hf = null;
|
|
3282
|
+
if ((T & (S | sf)) !== R) throw Error(n(331));
|
|
3283
|
+
var b = T;
|
|
3284
|
+
T |= sf;
|
|
3285
|
+
for (a = a.current.firstEffect; null !== a;) {
|
|
3286
|
+
try {
|
|
3287
|
+
var c = a;
|
|
3288
|
+
if (0 !== (c.effectTag & 512)) switch (c.tag) {
|
|
3289
|
+
case 0:
|
|
3290
|
+
case 11:
|
|
3291
|
+
case 15:
|
|
3292
|
+
Ue(128, 0, c), Ue(0, 64, c);
|
|
3293
|
+
}
|
|
3294
|
+
} catch (d) {
|
|
3295
|
+
if (null === a) throw Error(n(330));
|
|
3296
|
+
Re(a, d);
|
|
3297
|
+
}
|
|
3298
|
+
c = a.nextEffect;
|
|
3299
|
+
a.nextEffect = null;
|
|
3300
|
+
a = c;
|
|
3301
|
+
}
|
|
3302
|
+
T = b;
|
|
3303
|
+
F();
|
|
3304
|
+
return !0;
|
|
3305
|
+
}
|
|
3306
|
+
function ng(a, b, c) {
|
|
3307
|
+
b = Ne(c, b);
|
|
3308
|
+
b = jf(a, b, 1073741823);
|
|
3309
|
+
Ic(a, b);
|
|
3310
|
+
a = Nf(a, 1073741823);
|
|
3311
|
+
null !== a && Z(a);
|
|
3312
|
+
}
|
|
3313
|
+
function Re(a, b) {
|
|
3314
|
+
if (3 === a.tag) ng(a, a, b);else for (var c = a.return; null !== c;) {
|
|
3315
|
+
if (3 === c.tag) {
|
|
3316
|
+
ng(c, a, b);
|
|
3317
|
+
break;
|
|
3318
|
+
} else if (1 === c.tag) {
|
|
3319
|
+
var d = c.stateNode;
|
|
3320
|
+
if ("function" === typeof c.type.getDerivedStateFromError || "function" === typeof d.componentDidCatch && (null === nf || !nf.has(d))) {
|
|
3321
|
+
a = Ne(b, a);
|
|
3322
|
+
a = mf(c, a, 1073741823);
|
|
3323
|
+
Ic(c, a);
|
|
3324
|
+
c = Nf(c, 1073741823);
|
|
3325
|
+
null !== c && Z(c);
|
|
3326
|
+
break;
|
|
3327
|
+
}
|
|
3328
|
+
}
|
|
3329
|
+
c = c.return;
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
function fg(a, b, c) {
|
|
3333
|
+
var d = a.pingCache;
|
|
3334
|
+
null !== d && d.delete(b);
|
|
3335
|
+
U === a && W === c ? X === xf || X === wf && 1073741823 === Af && E() - ff < Ff ? Wf(a, W) : Ef = !0 : Sf(a, c) && (b = a.lastPingedTime, 0 !== b && b < c || (a.lastPingedTime = c, a.finishedExpirationTime === c && (a.finishedExpirationTime = 0, a.finishedWork = null), Z(a)));
|
|
3336
|
+
}
|
|
3337
|
+
function gf(a, b) {
|
|
3338
|
+
var c = a.stateNode;
|
|
3339
|
+
null !== c && c.delete(b);
|
|
3340
|
+
b = 0;
|
|
3341
|
+
0 === b && (b = G(), b = Vc(b, a, null));
|
|
3342
|
+
a = Nf(a, b);
|
|
3343
|
+
null !== a && Z(a);
|
|
3344
|
+
}
|
|
3345
|
+
var ig;
|
|
3346
|
+
ig = function (a, b, c) {
|
|
3347
|
+
var d = b.expirationTime;
|
|
3348
|
+
if (null !== a) {
|
|
3349
|
+
var e = b.pendingProps;
|
|
3350
|
+
if (a.memoizedProps !== e || B.current) Bc = !0;else {
|
|
3351
|
+
if (d < c) {
|
|
3352
|
+
Bc = !1;
|
|
3353
|
+
switch (b.tag) {
|
|
3354
|
+
case 3:
|
|
3355
|
+
ze(b);
|
|
3356
|
+
oe();
|
|
3357
|
+
break;
|
|
3358
|
+
case 5:
|
|
3359
|
+
sd(b);
|
|
3360
|
+
if (b.mode & 4 && 1 !== c && Ka(b.type, e)) return b.expirationTime = b.childExpirationTime = 1, null;
|
|
3361
|
+
break;
|
|
3362
|
+
case 1:
|
|
3363
|
+
C(b.type) && Kb(b);
|
|
3364
|
+
break;
|
|
3365
|
+
case 4:
|
|
3366
|
+
qd(b, b.stateNode.containerInfo);
|
|
3367
|
+
break;
|
|
3368
|
+
case 10:
|
|
3369
|
+
xc(b, b.memoizedProps.value);
|
|
3370
|
+
break;
|
|
3371
|
+
case 13:
|
|
3372
|
+
if (null !== b.memoizedState) {
|
|
3373
|
+
d = b.child.childExpirationTime;
|
|
3374
|
+
if (0 !== d && d >= c) return Be(a, b, c);
|
|
3375
|
+
z(I, I.current & 1);
|
|
3376
|
+
b = re(a, b, c);
|
|
3377
|
+
return null !== b ? b.sibling : null;
|
|
3378
|
+
}
|
|
3379
|
+
z(I, I.current & 1);
|
|
3380
|
+
break;
|
|
3381
|
+
case 19:
|
|
3382
|
+
d = b.childExpirationTime >= c;
|
|
3383
|
+
if (0 !== (a.effectTag & 64)) {
|
|
3384
|
+
if (d) return Ee(a, b, c);
|
|
3385
|
+
b.effectTag |= 64;
|
|
3386
|
+
}
|
|
3387
|
+
e = b.memoizedState;
|
|
3388
|
+
null !== e && (e.rendering = null, e.tail = null);
|
|
3389
|
+
z(I, I.current);
|
|
3390
|
+
if (!d) return null;
|
|
3391
|
+
}
|
|
3392
|
+
return re(a, b, c);
|
|
3393
|
+
}
|
|
3394
|
+
Bc = !1;
|
|
3395
|
+
}
|
|
3396
|
+
} else Bc = !1;
|
|
3397
|
+
b.expirationTime = 0;
|
|
3398
|
+
switch (b.tag) {
|
|
3399
|
+
case 2:
|
|
3400
|
+
d = b.type;
|
|
3401
|
+
null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2);
|
|
3402
|
+
a = b.pendingProps;
|
|
3403
|
+
e = Fb(b, A.current);
|
|
3404
|
+
Ac(b, c);
|
|
3405
|
+
e = Jd(null, b, d, a, e, c);
|
|
3406
|
+
b.effectTag |= 1;
|
|
3407
|
+
if ("object" === typeof e && null !== e && "function" === typeof e.render && void 0 === e.$$typeof) {
|
|
3408
|
+
b.tag = 1;
|
|
3409
|
+
Nd();
|
|
3410
|
+
if (C(d)) {
|
|
3411
|
+
var f = !0;
|
|
3412
|
+
Kb(b);
|
|
3413
|
+
} else f = !1;
|
|
3414
|
+
b.memoizedState = null !== e.state && void 0 !== e.state ? e.state : null;
|
|
3415
|
+
var g = d.getDerivedStateFromProps;
|
|
3416
|
+
"function" === typeof g && Uc(b, d, g, a);
|
|
3417
|
+
e.updater = Xc;
|
|
3418
|
+
b.stateNode = e;
|
|
3419
|
+
e._reactInternalFiber = b;
|
|
3420
|
+
ad(b, d, a, c);
|
|
3421
|
+
b = ye(null, b, d, !0, f, c);
|
|
3422
|
+
} else b.tag = 0, Q(null, b, e, c), b = b.child;
|
|
3423
|
+
return b;
|
|
3424
|
+
case 16:
|
|
3425
|
+
e = b.elementType;
|
|
3426
|
+
null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2);
|
|
3427
|
+
a = b.pendingProps;
|
|
3428
|
+
sa(e);
|
|
3429
|
+
if (1 !== e._status) throw e._result;
|
|
3430
|
+
e = e._result;
|
|
3431
|
+
b.type = e;
|
|
3432
|
+
f = b.tag = og(e);
|
|
3433
|
+
a = rc(e, a);
|
|
3434
|
+
switch (f) {
|
|
3435
|
+
case 0:
|
|
3436
|
+
b = ve(null, b, e, a, c);
|
|
3437
|
+
break;
|
|
3438
|
+
case 1:
|
|
3439
|
+
b = xe(null, b, e, a, c);
|
|
3440
|
+
break;
|
|
3441
|
+
case 11:
|
|
3442
|
+
b = qe(null, b, e, a, c);
|
|
3443
|
+
break;
|
|
3444
|
+
case 14:
|
|
3445
|
+
b = se(null, b, e, rc(e.type, a), d, c);
|
|
3446
|
+
break;
|
|
3447
|
+
default:
|
|
3448
|
+
throw Error(n(306, e, ""));
|
|
3449
|
+
}
|
|
3450
|
+
return b;
|
|
3451
|
+
case 0:
|
|
3452
|
+
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : rc(d, e), ve(a, b, d, e, c);
|
|
3453
|
+
case 1:
|
|
3454
|
+
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : rc(d, e), xe(a, b, d, e, c);
|
|
3455
|
+
case 3:
|
|
3456
|
+
ze(b);
|
|
3457
|
+
d = b.updateQueue;
|
|
3458
|
+
if (null === d) throw Error(n(282));
|
|
3459
|
+
e = b.memoizedState;
|
|
3460
|
+
e = null !== e ? e.element : null;
|
|
3461
|
+
Nc(b, d, b.pendingProps, null, c);
|
|
3462
|
+
d = b.memoizedState.element;
|
|
3463
|
+
if (d === e) oe(), b = re(a, b, c);else {
|
|
3464
|
+
if (e = b.stateNode.hydrate) Sa ? (ee = tb(b.stateNode.containerInfo), de = b, e = fe = !0) : e = !1;
|
|
3465
|
+
if (e) for (c = ld(b, null, d, c), b.child = c; c;) c.effectTag = c.effectTag & -3 | 1024, c = c.sibling;else Q(a, b, d, c), oe();
|
|
3466
|
+
b = b.child;
|
|
3467
|
+
}
|
|
3468
|
+
return b;
|
|
3469
|
+
case 5:
|
|
3470
|
+
return sd(b), null === a && je(b), d = b.type, e = b.pendingProps, f = null !== a ? a.memoizedProps : null, g = e.children, Ja(d, e) ? g = null : null !== f && Ja(d, f) && (b.effectTag |= 16), we(a, b), b.mode & 4 && 1 !== c && Ka(d, e) ? (b.expirationTime = b.childExpirationTime = 1, b = null) : (Q(a, b, g, c), b = b.child), b;
|
|
3471
|
+
case 6:
|
|
3472
|
+
return null === a && je(b), null;
|
|
3473
|
+
case 13:
|
|
3474
|
+
return Be(a, b, c);
|
|
3475
|
+
case 4:
|
|
3476
|
+
return qd(b, b.stateNode.containerInfo), d = b.pendingProps, null === a ? b.child = kd(b, null, d, c) : Q(a, b, d, c), b.child;
|
|
3477
|
+
case 11:
|
|
3478
|
+
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : rc(d, e), qe(a, b, d, e, c);
|
|
3479
|
+
case 7:
|
|
3480
|
+
return Q(a, b, b.pendingProps, c), b.child;
|
|
3481
|
+
case 8:
|
|
3482
|
+
return Q(a, b, b.pendingProps.children, c), b.child;
|
|
3483
|
+
case 12:
|
|
3484
|
+
return Q(a, b, b.pendingProps.children, c), b.child;
|
|
3485
|
+
case 10:
|
|
3486
|
+
a: {
|
|
3487
|
+
d = b.type._context;
|
|
3488
|
+
e = b.pendingProps;
|
|
3489
|
+
g = b.memoizedProps;
|
|
3490
|
+
f = e.value;
|
|
3491
|
+
xc(b, f);
|
|
3492
|
+
if (null !== g) {
|
|
3493
|
+
var l = g.value;
|
|
3494
|
+
f = oc(l, f) ? 0 : ("function" === typeof d._calculateChangedBits ? d._calculateChangedBits(l, f) : 1073741823) | 0;
|
|
3495
|
+
if (0 === f) {
|
|
3496
|
+
if (g.children === e.children && !B.current) {
|
|
3497
|
+
b = re(a, b, c);
|
|
3498
|
+
break a;
|
|
3499
|
+
}
|
|
3500
|
+
} else for (l = b.child, null !== l && (l.return = b); null !== l;) {
|
|
3501
|
+
var h = l.dependencies;
|
|
3502
|
+
if (null !== h) {
|
|
3503
|
+
g = l.child;
|
|
3504
|
+
for (var k = h.firstContext; null !== k;) {
|
|
3505
|
+
if (k.context === d && 0 !== (k.observedBits & f)) {
|
|
3506
|
+
1 === l.tag && (k = Gc(c, null), k.tag = 2, Ic(l, k));
|
|
3507
|
+
l.expirationTime < c && (l.expirationTime = c);
|
|
3508
|
+
k = l.alternate;
|
|
3509
|
+
null !== k && k.expirationTime < c && (k.expirationTime = c);
|
|
3510
|
+
zc(l.return, c);
|
|
3511
|
+
h.expirationTime < c && (h.expirationTime = c);
|
|
3512
|
+
break;
|
|
3513
|
+
}
|
|
3514
|
+
k = k.next;
|
|
3515
|
+
}
|
|
3516
|
+
} else g = 10 === l.tag ? l.type === b.type ? null : l.child : l.child;
|
|
3517
|
+
if (null !== g) g.return = l;else for (g = l; null !== g;) {
|
|
3518
|
+
if (g === b) {
|
|
3519
|
+
g = null;
|
|
3520
|
+
break;
|
|
3521
|
+
}
|
|
3522
|
+
l = g.sibling;
|
|
3523
|
+
if (null !== l) {
|
|
3524
|
+
l.return = g.return;
|
|
3525
|
+
g = l;
|
|
3526
|
+
break;
|
|
3527
|
+
}
|
|
3528
|
+
g = g.return;
|
|
3529
|
+
}
|
|
3530
|
+
l = g;
|
|
3531
|
+
}
|
|
3532
|
+
}
|
|
3533
|
+
Q(a, b, e.children, c);
|
|
3534
|
+
b = b.child;
|
|
3535
|
+
}
|
|
3536
|
+
return b;
|
|
3537
|
+
case 9:
|
|
3538
|
+
return e = b.type, f = b.pendingProps, d = f.children, Ac(b, c), e = Cc(e, f.unstable_observedBits), d = d(e), b.effectTag |= 1, Q(a, b, d, c), b.child;
|
|
3539
|
+
case 14:
|
|
3540
|
+
return e = b.type, f = rc(e, b.pendingProps), f = rc(e.type, f), se(a, b, e, f, d, c);
|
|
3541
|
+
case 15:
|
|
3542
|
+
return ue(a, b, b.type, b.pendingProps, d, c);
|
|
3543
|
+
case 17:
|
|
3544
|
+
return d = b.type, e = b.pendingProps, e = b.elementType === d ? e : rc(d, e), null !== a && (a.alternate = null, b.alternate = null, b.effectTag |= 2), b.tag = 1, C(d) ? (a = !0, Kb(b)) : a = !1, Ac(b, c), Zc(b, d, e), ad(b, d, e, c), ye(null, b, d, !0, a, c);
|
|
3545
|
+
case 19:
|
|
3546
|
+
return Ee(a, b, c);
|
|
3547
|
+
}
|
|
3548
|
+
throw Error(n(156, b.tag));
|
|
3549
|
+
};
|
|
3550
|
+
var lg = null,
|
|
3551
|
+
We = null;
|
|
3552
|
+
function pg(a) {
|
|
3553
|
+
if ("undefined" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) return !1;
|
|
3554
|
+
var b = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
3555
|
+
if (b.isDisabled || !b.supportsFiber) return !0;
|
|
3556
|
+
try {
|
|
3557
|
+
var c = b.inject(a);
|
|
3558
|
+
lg = function (a) {
|
|
3559
|
+
try {
|
|
3560
|
+
b.onCommitFiberRoot(c, a, void 0, 64 === (a.current.effectTag & 64));
|
|
3561
|
+
} catch (e) {}
|
|
3562
|
+
};
|
|
3563
|
+
We = function (a) {
|
|
3564
|
+
try {
|
|
3565
|
+
b.onCommitFiberUnmount(c, a);
|
|
3566
|
+
} catch (e) {}
|
|
3567
|
+
};
|
|
3568
|
+
} catch (d) {}
|
|
3569
|
+
return !0;
|
|
3570
|
+
}
|
|
3571
|
+
function qg(a, b, c, d) {
|
|
3572
|
+
this.tag = a;
|
|
3573
|
+
this.key = c;
|
|
3574
|
+
this.sibling = this.child = this.return = this.stateNode = this.type = this.elementType = null;
|
|
3575
|
+
this.index = 0;
|
|
3576
|
+
this.ref = null;
|
|
3577
|
+
this.pendingProps = b;
|
|
3578
|
+
this.dependencies = this.memoizedState = this.updateQueue = this.memoizedProps = null;
|
|
3579
|
+
this.mode = d;
|
|
3580
|
+
this.effectTag = 0;
|
|
3581
|
+
this.lastEffect = this.firstEffect = this.nextEffect = null;
|
|
3582
|
+
this.childExpirationTime = this.expirationTime = 0;
|
|
3583
|
+
this.alternate = null;
|
|
3584
|
+
}
|
|
3585
|
+
function he(a, b, c, d) {
|
|
3586
|
+
return new qg(a, b, c, d);
|
|
3587
|
+
}
|
|
3588
|
+
function te(a) {
|
|
3589
|
+
a = a.prototype;
|
|
3590
|
+
return !(!a || !a.isReactComponent);
|
|
3591
|
+
}
|
|
3592
|
+
function og(a) {
|
|
3593
|
+
if ("function" === typeof a) return te(a) ? 1 : 0;
|
|
3594
|
+
if (void 0 !== a && null !== a) {
|
|
3595
|
+
a = a.$$typeof;
|
|
3596
|
+
if (a === la) return 11;
|
|
3597
|
+
if (a === oa) return 14;
|
|
3598
|
+
}
|
|
3599
|
+
return 2;
|
|
3600
|
+
}
|
|
3601
|
+
function fd(a, b) {
|
|
3602
|
+
var c = a.alternate;
|
|
3603
|
+
null === c ? (c = he(a.tag, b, a.key, a.mode), c.elementType = a.elementType, c.type = a.type, c.stateNode = a.stateNode, c.alternate = a, a.alternate = c) : (c.pendingProps = b, c.effectTag = 0, c.nextEffect = null, c.firstEffect = null, c.lastEffect = null);
|
|
3604
|
+
c.childExpirationTime = a.childExpirationTime;
|
|
3605
|
+
c.expirationTime = a.expirationTime;
|
|
3606
|
+
c.child = a.child;
|
|
3607
|
+
c.memoizedProps = a.memoizedProps;
|
|
3608
|
+
c.memoizedState = a.memoizedState;
|
|
3609
|
+
c.updateQueue = a.updateQueue;
|
|
3610
|
+
b = a.dependencies;
|
|
3611
|
+
c.dependencies = null === b ? null : {
|
|
3612
|
+
expirationTime: b.expirationTime,
|
|
3613
|
+
firstContext: b.firstContext,
|
|
3614
|
+
responders: b.responders
|
|
3615
|
+
};
|
|
3616
|
+
c.sibling = a.sibling;
|
|
3617
|
+
c.index = a.index;
|
|
3618
|
+
c.ref = a.ref;
|
|
3619
|
+
return c;
|
|
3620
|
+
}
|
|
3621
|
+
function hd(a, b, c, d, e, f) {
|
|
3622
|
+
var g = 2;
|
|
3623
|
+
d = a;
|
|
3624
|
+
if ("function" === typeof a) te(a) && (g = 1);else if ("string" === typeof a) g = 5;else a: switch (a) {
|
|
3625
|
+
case ea:
|
|
3626
|
+
return jd(c.children, e, f, b);
|
|
3627
|
+
case ka:
|
|
3628
|
+
g = 8;
|
|
3629
|
+
e |= 7;
|
|
3630
|
+
break;
|
|
3631
|
+
case fa:
|
|
3632
|
+
g = 8;
|
|
3633
|
+
e |= 1;
|
|
3634
|
+
break;
|
|
3635
|
+
case ha:
|
|
3636
|
+
return a = he(12, c, b, e | 8), a.elementType = ha, a.type = ha, a.expirationTime = f, a;
|
|
3637
|
+
case ma:
|
|
3638
|
+
return a = he(13, c, b, e), a.type = ma, a.elementType = ma, a.expirationTime = f, a;
|
|
3639
|
+
case na:
|
|
3640
|
+
return a = he(19, c, b, e), a.elementType = na, a.expirationTime = f, a;
|
|
3641
|
+
default:
|
|
3642
|
+
if ("object" === typeof a && null !== a) switch (a.$$typeof) {
|
|
3643
|
+
case ia:
|
|
3644
|
+
g = 10;
|
|
3645
|
+
break a;
|
|
3646
|
+
case ja:
|
|
3647
|
+
g = 9;
|
|
3648
|
+
break a;
|
|
3649
|
+
case la:
|
|
3650
|
+
g = 11;
|
|
3651
|
+
break a;
|
|
3652
|
+
case oa:
|
|
3653
|
+
g = 14;
|
|
3654
|
+
break a;
|
|
3655
|
+
case pa:
|
|
3656
|
+
g = 16;
|
|
3657
|
+
d = null;
|
|
3658
|
+
break a;
|
|
3659
|
+
}
|
|
3660
|
+
throw Error(n(130, null == a ? a : typeof a, ""));
|
|
3661
|
+
}
|
|
3662
|
+
b = he(g, c, b, e);
|
|
3663
|
+
b.elementType = a;
|
|
3664
|
+
b.type = d;
|
|
3665
|
+
b.expirationTime = f;
|
|
3666
|
+
return b;
|
|
3667
|
+
}
|
|
3668
|
+
function jd(a, b, c, d) {
|
|
3669
|
+
a = he(7, a, d, b);
|
|
3670
|
+
a.expirationTime = c;
|
|
3671
|
+
return a;
|
|
3672
|
+
}
|
|
3673
|
+
function gd(a, b, c) {
|
|
3674
|
+
a = he(6, a, null, b);
|
|
3675
|
+
a.expirationTime = c;
|
|
3676
|
+
return a;
|
|
3677
|
+
}
|
|
3678
|
+
function id(a, b, c) {
|
|
3679
|
+
b = he(4, null !== a.children ? a.children : [], a.key, b);
|
|
3680
|
+
b.expirationTime = c;
|
|
3681
|
+
b.stateNode = {
|
|
3682
|
+
containerInfo: a.containerInfo,
|
|
3683
|
+
pendingChildren: null,
|
|
3684
|
+
implementation: a.implementation
|
|
3685
|
+
};
|
|
3686
|
+
return b;
|
|
3687
|
+
}
|
|
3688
|
+
function rg(a, b, c) {
|
|
3689
|
+
this.tag = b;
|
|
3690
|
+
this.current = null;
|
|
3691
|
+
this.containerInfo = a;
|
|
3692
|
+
this.pingCache = this.pendingChildren = null;
|
|
3693
|
+
this.finishedExpirationTime = 0;
|
|
3694
|
+
this.finishedWork = null;
|
|
3695
|
+
this.timeoutHandle = Oa;
|
|
3696
|
+
this.pendingContext = this.context = null;
|
|
3697
|
+
this.hydrate = c;
|
|
3698
|
+
this.callbackNode = null;
|
|
3699
|
+
this.callbackPriority = 90;
|
|
3700
|
+
this.lastExpiredTime = this.lastPingedTime = this.nextKnownPendingLevel = this.lastSuspendedTime = this.firstSuspendedTime = this.firstPendingTime = 0;
|
|
3701
|
+
}
|
|
3702
|
+
function Sf(a, b) {
|
|
3703
|
+
var c = a.firstSuspendedTime;
|
|
3704
|
+
a = a.lastSuspendedTime;
|
|
3705
|
+
return 0 !== c && c >= b && a <= b;
|
|
3706
|
+
}
|
|
3707
|
+
function Pf(a, b) {
|
|
3708
|
+
var c = a.firstSuspendedTime,
|
|
3709
|
+
d = a.lastSuspendedTime;
|
|
3710
|
+
c < b && (a.firstSuspendedTime = b);
|
|
3711
|
+
if (d > b || 0 === c) a.lastSuspendedTime = b;
|
|
3712
|
+
b <= a.lastPingedTime && (a.lastPingedTime = 0);
|
|
3713
|
+
b <= a.lastExpiredTime && (a.lastExpiredTime = 0);
|
|
3714
|
+
}
|
|
3715
|
+
function Qf(a, b) {
|
|
3716
|
+
b > a.firstPendingTime && (a.firstPendingTime = b);
|
|
3717
|
+
var c = a.firstSuspendedTime;
|
|
3718
|
+
0 !== c && (b >= c ? a.firstSuspendedTime = a.lastSuspendedTime = a.nextKnownPendingLevel = 0 : b >= a.lastSuspendedTime && (a.lastSuspendedTime = b + 1), b > a.nextKnownPendingLevel && (a.nextKnownPendingLevel = b));
|
|
3719
|
+
}
|
|
3720
|
+
function Uf(a, b) {
|
|
3721
|
+
var c = a.lastExpiredTime;
|
|
3722
|
+
if (0 === c || c > b) a.lastExpiredTime = b;
|
|
3723
|
+
}
|
|
3724
|
+
function sg(a) {
|
|
3725
|
+
var b = a._reactInternalFiber;
|
|
3726
|
+
if (void 0 === b) {
|
|
3727
|
+
if ("function" === typeof a.render) throw Error(n(188));
|
|
3728
|
+
throw Error(n(268, Object.keys(a)));
|
|
3729
|
+
}
|
|
3730
|
+
a = xa(b);
|
|
3731
|
+
return null === a ? null : a.stateNode;
|
|
3732
|
+
}
|
|
3733
|
+
function tg(a, b) {
|
|
3734
|
+
a = a.memoizedState;
|
|
3735
|
+
null !== a && null !== a.dehydrated && a.retryTime < b && (a.retryTime = b);
|
|
3736
|
+
}
|
|
3737
|
+
function ug(a, b) {
|
|
3738
|
+
tg(a, b);
|
|
3739
|
+
(a = a.alternate) && tg(a, b);
|
|
3740
|
+
}
|
|
3741
|
+
var vg = {
|
|
3742
|
+
createContainer: function (a, b, c) {
|
|
3743
|
+
a = new rg(a, b, c);
|
|
3744
|
+
b = he(3, null, null, 2 === b ? 7 : 1 === b ? 3 : 0);
|
|
3745
|
+
a.current = b;
|
|
3746
|
+
return b.stateNode = a;
|
|
3747
|
+
},
|
|
3748
|
+
updateContainer: function (a, b, c, d) {
|
|
3749
|
+
var e = b.current,
|
|
3750
|
+
f = G(),
|
|
3751
|
+
g = Sc.suspense;
|
|
3752
|
+
f = Vc(f, e, g);
|
|
3753
|
+
a: if (c) {
|
|
3754
|
+
c = c._reactInternalFiber;
|
|
3755
|
+
b: {
|
|
3756
|
+
if (ua(c) !== c || 1 !== c.tag) throw Error(n(170));
|
|
3757
|
+
var l = c;
|
|
3758
|
+
do {
|
|
3759
|
+
switch (l.tag) {
|
|
3760
|
+
case 3:
|
|
3761
|
+
l = l.stateNode.context;
|
|
3762
|
+
break b;
|
|
3763
|
+
case 1:
|
|
3764
|
+
if (C(l.type)) {
|
|
3765
|
+
l = l.stateNode.__reactInternalMemoizedMergedChildContext;
|
|
3766
|
+
break b;
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
3769
|
+
l = l.return;
|
|
3770
|
+
} while (null !== l);
|
|
3771
|
+
throw Error(n(171));
|
|
3772
|
+
}
|
|
3773
|
+
if (1 === c.tag) {
|
|
3774
|
+
var h = c.type;
|
|
3775
|
+
if (C(h)) {
|
|
3776
|
+
c = Jb(c, h, l);
|
|
3777
|
+
break a;
|
|
3778
|
+
}
|
|
3779
|
+
}
|
|
3780
|
+
c = l;
|
|
3781
|
+
} else c = Db;
|
|
3782
|
+
null === b.context ? b.context = c : b.pendingContext = c;
|
|
3783
|
+
b = Gc(f, g);
|
|
3784
|
+
b.payload = {
|
|
3785
|
+
element: a
|
|
3786
|
+
};
|
|
3787
|
+
d = void 0 === d ? null : d;
|
|
3788
|
+
null !== d && (b.callback = d);
|
|
3789
|
+
Ic(e, b);
|
|
3790
|
+
Wc(e, f);
|
|
3791
|
+
return f;
|
|
3792
|
+
},
|
|
3793
|
+
batchedEventUpdates: function (a, b) {
|
|
3794
|
+
var c = T;
|
|
3795
|
+
T |= 2;
|
|
3796
|
+
try {
|
|
3797
|
+
return a(b);
|
|
3798
|
+
} finally {
|
|
3799
|
+
T = c, T === R && F();
|
|
3800
|
+
}
|
|
3801
|
+
},
|
|
3802
|
+
batchedUpdates: function (a, b) {
|
|
3803
|
+
var c = T;
|
|
3804
|
+
T |= 1;
|
|
3805
|
+
try {
|
|
3806
|
+
return a(b);
|
|
3807
|
+
} finally {
|
|
3808
|
+
T = c, T === R && F();
|
|
3809
|
+
}
|
|
3810
|
+
},
|
|
3811
|
+
unbatchedUpdates: function (a, b) {
|
|
3812
|
+
var c = T;
|
|
3813
|
+
T &= -2;
|
|
3814
|
+
T |= rf;
|
|
3815
|
+
try {
|
|
3816
|
+
return a(b);
|
|
3817
|
+
} finally {
|
|
3818
|
+
T = c, T === R && F();
|
|
3819
|
+
}
|
|
3820
|
+
},
|
|
3821
|
+
deferredUpdates: function (a) {
|
|
3822
|
+
return hc(97, a);
|
|
3823
|
+
},
|
|
3824
|
+
syncUpdates: function (a, b, c, d) {
|
|
3825
|
+
return hc(99, a.bind(null, b, c, d));
|
|
3826
|
+
},
|
|
3827
|
+
discreteUpdates: function (a, b, c, d) {
|
|
3828
|
+
var e = T;
|
|
3829
|
+
T |= 4;
|
|
3830
|
+
try {
|
|
3831
|
+
return hc(98, a.bind(null, b, c, d));
|
|
3832
|
+
} finally {
|
|
3833
|
+
T = e, T === R && F();
|
|
3834
|
+
}
|
|
3835
|
+
},
|
|
3836
|
+
flushDiscreteUpdates: function () {
|
|
3837
|
+
(T & (1 | S | sf)) === R && (dg(), Vf());
|
|
3838
|
+
},
|
|
3839
|
+
flushControlled: function (a) {
|
|
3840
|
+
var b = T;
|
|
3841
|
+
T |= 1;
|
|
3842
|
+
try {
|
|
3843
|
+
hc(99, a);
|
|
3844
|
+
} finally {
|
|
3845
|
+
T = b, T === R && F();
|
|
3846
|
+
}
|
|
3847
|
+
},
|
|
3848
|
+
flushSync: eg,
|
|
3849
|
+
flushPassiveEffects: Vf,
|
|
3850
|
+
IsThisRendererActing: {
|
|
3851
|
+
current: !1
|
|
3852
|
+
},
|
|
3853
|
+
getPublicRootInstance: function (a) {
|
|
3854
|
+
a = a.current;
|
|
3855
|
+
if (!a.child) return null;
|
|
3856
|
+
switch (a.child.tag) {
|
|
3857
|
+
case 5:
|
|
3858
|
+
return za(a.child.stateNode);
|
|
3859
|
+
default:
|
|
3860
|
+
return a.child.stateNode;
|
|
3861
|
+
}
|
|
3862
|
+
},
|
|
3863
|
+
attemptSynchronousHydration: function (a) {
|
|
3864
|
+
switch (a.tag) {
|
|
3865
|
+
case 3:
|
|
3866
|
+
var b = a.stateNode;
|
|
3867
|
+
b.hydrate && cg(b, b.firstPendingTime);
|
|
3868
|
+
break;
|
|
3869
|
+
case 13:
|
|
3870
|
+
eg(function () {
|
|
3871
|
+
return Wc(a, 1073741823);
|
|
3872
|
+
}), b = mc(G(), 150, 100), ug(a, b);
|
|
3873
|
+
}
|
|
3874
|
+
},
|
|
3875
|
+
attemptUserBlockingHydration: function (a) {
|
|
3876
|
+
if (13 === a.tag) {
|
|
3877
|
+
var b = mc(G(), 150, 100);
|
|
3878
|
+
Wc(a, b);
|
|
3879
|
+
ug(a, b);
|
|
3880
|
+
}
|
|
3881
|
+
},
|
|
3882
|
+
attemptContinuousHydration: function (a) {
|
|
3883
|
+
if (13 === a.tag) {
|
|
3884
|
+
G();
|
|
3885
|
+
var b = lc++;
|
|
3886
|
+
Wc(a, b);
|
|
3887
|
+
ug(a, b);
|
|
3888
|
+
}
|
|
3889
|
+
},
|
|
3890
|
+
attemptHydrationAtCurrentPriority: function (a) {
|
|
3891
|
+
if (13 === a.tag) {
|
|
3892
|
+
var b = G();
|
|
3893
|
+
b = Vc(b, a, null);
|
|
3894
|
+
Wc(a, b);
|
|
3895
|
+
ug(a, b);
|
|
3896
|
+
}
|
|
3897
|
+
},
|
|
3898
|
+
findHostInstance: sg,
|
|
3899
|
+
findHostInstanceWithWarning: function (a) {
|
|
3900
|
+
return sg(a);
|
|
3901
|
+
},
|
|
3902
|
+
findHostInstanceWithNoPortals: function (a) {
|
|
3903
|
+
a = ya(a);
|
|
3904
|
+
return null === a ? null : 20 === a.tag ? a.stateNode.instance : a.stateNode;
|
|
3905
|
+
},
|
|
3906
|
+
shouldSuspend: function () {
|
|
3907
|
+
return !1;
|
|
3908
|
+
},
|
|
3909
|
+
injectIntoDevTools: function (a) {
|
|
3910
|
+
var b = a.findFiberByHostInstance;
|
|
3911
|
+
return pg(aa({}, a, {
|
|
3912
|
+
overrideHookState: null,
|
|
3913
|
+
overrideProps: null,
|
|
3914
|
+
setSuspenseHandler: null,
|
|
3915
|
+
scheduleUpdate: null,
|
|
3916
|
+
currentDispatcherRef: q.ReactCurrentDispatcher,
|
|
3917
|
+
findHostInstanceByFiber: function (a) {
|
|
3918
|
+
a = xa(a);
|
|
3919
|
+
return null === a ? null : a.stateNode;
|
|
3920
|
+
},
|
|
3921
|
+
findFiberByHostInstance: function (a) {
|
|
3922
|
+
return b ? b(a) : null;
|
|
3923
|
+
},
|
|
3924
|
+
findHostInstancesForRefresh: null,
|
|
3925
|
+
scheduleRefresh: null,
|
|
3926
|
+
scheduleRoot: null,
|
|
3927
|
+
setRefreshHandler: null,
|
|
3928
|
+
getCurrentFiber: null
|
|
3929
|
+
}));
|
|
3930
|
+
}
|
|
3931
|
+
};
|
|
3932
|
+
module.exports = vg.default || vg;
|
|
3933
|
+
var $$$renderer = module.exports;
|
|
3934
|
+
module.exports = $$$reconciler;
|
|
3935
|
+
return $$$renderer;
|
|
3936
|
+
};
|
|
3937
|
+
} (reactReconciler_production_min));
|
|
3938
|
+
|
|
3939
|
+
var reactReconciler_production_minExports = reactReconciler_production_min.exports;
|
|
3940
|
+
var ReactFiberReconciler = /*@__PURE__*/getDefaultExportFromCjs(reactReconciler_production_minExports);
|
|
3941
|
+
|
|
3942
|
+
/* eslint-disable no-continue */
|
|
3943
|
+
|
|
3944
|
+
/**
|
|
3945
|
+
* Checks if two sets of props are equal (recursively)
|
|
3946
|
+
*
|
|
3947
|
+
* @param {Object} a props A
|
|
3948
|
+
* @param {Object} b props B
|
|
3949
|
+
* @returns {boolean} props equals?
|
|
3950
|
+
*
|
|
3951
|
+
*/
|
|
3952
|
+
const propsEqual = (a, b) => {
|
|
3953
|
+
const oldPropsKeys = Object.keys(a);
|
|
3954
|
+
const newPropsKeys = Object.keys(b);
|
|
3955
|
+
if (oldPropsKeys.length !== newPropsKeys.length) {
|
|
3956
|
+
return false;
|
|
3957
|
+
}
|
|
3958
|
+
for (let i = 0; i < oldPropsKeys.length; i += 1) {
|
|
3959
|
+
const propName = oldPropsKeys[i];
|
|
3960
|
+
if (propName === 'render' && !a[propName] !== !b[propName]) {
|
|
3961
|
+
return false;
|
|
3962
|
+
}
|
|
3963
|
+
if (propName !== 'children' && a[propName] !== b[propName]) {
|
|
3964
|
+
if (typeof a[propName] === 'object' && typeof b[propName] === 'object' && propsEqual(a[propName], b[propName])) {
|
|
3965
|
+
continue;
|
|
3966
|
+
}
|
|
3967
|
+
return false;
|
|
3968
|
+
}
|
|
3969
|
+
if (propName === 'children' && (typeof a[propName] === 'string' || typeof b[propName] === 'string')) {
|
|
3970
|
+
return a[propName] === b[propName];
|
|
3971
|
+
}
|
|
3972
|
+
}
|
|
3973
|
+
return true;
|
|
3974
|
+
};
|
|
3975
|
+
|
|
3976
|
+
/* eslint-disable import/no-extraneous-dependencies */
|
|
3977
|
+
/* eslint-disable no-unused-vars */
|
|
3978
|
+
/* eslint-disable no-param-reassign */
|
|
3979
|
+
|
|
3980
|
+
const emptyObject = {};
|
|
3981
|
+
const appendChild = (parentInstance, child) => {
|
|
3982
|
+
const isParentText = parentInstance.type === 'TEXT' || parentInstance.type === 'LINK' || parentInstance.type === 'TSPAN';
|
|
3983
|
+
const isChildTextInstance = child.type === 'TEXT_INSTANCE';
|
|
3984
|
+
const isOrphanTextInstance = isChildTextInstance && !isParentText;
|
|
3985
|
+
|
|
3986
|
+
// Ignore orphan text instances.
|
|
3987
|
+
// Caused by cases such as <>{name && <Text>{name}</Text>}</>
|
|
3988
|
+
if (isOrphanTextInstance) {
|
|
3989
|
+
console.warn("Invalid '" + child.value + "' string child outside <Text> component");
|
|
3990
|
+
return;
|
|
3991
|
+
}
|
|
3992
|
+
parentInstance.children.push(child);
|
|
3993
|
+
};
|
|
3994
|
+
const createRenderer = _ref => {
|
|
3995
|
+
let {
|
|
3996
|
+
onChange = () => {}
|
|
3997
|
+
} = _ref;
|
|
3998
|
+
return ReactFiberReconciler({
|
|
3999
|
+
schedulePassiveEffects: scheduler__namespace.unstable_scheduleCallback,
|
|
4000
|
+
cancelPassiveEffects: scheduler__namespace.unstable_cancelCallback,
|
|
4001
|
+
supportsMutation: true,
|
|
4002
|
+
isPrimaryRenderer: false,
|
|
4003
|
+
warnsIfNotActing: false,
|
|
4004
|
+
appendInitialChild: appendChild,
|
|
4005
|
+
createInstance(type, _ref2) {
|
|
4006
|
+
let {
|
|
4007
|
+
style,
|
|
4008
|
+
children,
|
|
4009
|
+
...props
|
|
4010
|
+
} = _ref2;
|
|
4011
|
+
return {
|
|
4012
|
+
type,
|
|
4013
|
+
box: {},
|
|
4014
|
+
style: style || {},
|
|
4015
|
+
props: props || {},
|
|
4016
|
+
children: []
|
|
4017
|
+
};
|
|
4018
|
+
},
|
|
4019
|
+
createTextInstance(text, rootContainerInstance) {
|
|
4020
|
+
return {
|
|
4021
|
+
type: 'TEXT_INSTANCE',
|
|
4022
|
+
value: text
|
|
4023
|
+
};
|
|
4024
|
+
},
|
|
4025
|
+
finalizeInitialChildren(element, type, props) {
|
|
4026
|
+
return false;
|
|
4027
|
+
},
|
|
4028
|
+
getPublicInstance(instance) {
|
|
4029
|
+
return instance;
|
|
4030
|
+
},
|
|
4031
|
+
prepareForCommit() {
|
|
4032
|
+
// Noop
|
|
4033
|
+
},
|
|
4034
|
+
clearContainer() {
|
|
4035
|
+
// Noop
|
|
4036
|
+
},
|
|
4037
|
+
prepareUpdate(element, type, oldProps, newProps) {
|
|
4038
|
+
return !propsEqual(oldProps, newProps);
|
|
4039
|
+
},
|
|
4040
|
+
resetAfterCommit: onChange,
|
|
4041
|
+
resetTextContent(element) {
|
|
4042
|
+
// Noop
|
|
4043
|
+
},
|
|
4044
|
+
getRootHostContext() {
|
|
4045
|
+
return emptyObject;
|
|
4046
|
+
},
|
|
4047
|
+
getChildHostContext() {
|
|
4048
|
+
return emptyObject;
|
|
4049
|
+
},
|
|
4050
|
+
shouldSetTextContent(type, props) {
|
|
4051
|
+
return false;
|
|
4052
|
+
},
|
|
4053
|
+
now: Date.now,
|
|
4054
|
+
useSyncScheduling: true,
|
|
4055
|
+
appendChild,
|
|
4056
|
+
appendChildToContainer(parentInstance, child) {
|
|
4057
|
+
if (parentInstance.type === 'ROOT') {
|
|
4058
|
+
parentInstance.document = child;
|
|
4059
|
+
} else {
|
|
4060
|
+
appendChild(parentInstance, child);
|
|
4061
|
+
}
|
|
4062
|
+
},
|
|
4063
|
+
insertBefore(parentInstance, child, beforeChild) {
|
|
4064
|
+
var _parentInstance$child;
|
|
4065
|
+
const index = (_parentInstance$child = parentInstance.children) === null || _parentInstance$child === void 0 ? void 0 : _parentInstance$child.indexOf(beforeChild);
|
|
4066
|
+
if (index === undefined) return;
|
|
4067
|
+
if (index !== -1 && child) parentInstance.children.splice(index, 0, child);
|
|
4068
|
+
},
|
|
4069
|
+
removeChild(parentInstance, child) {
|
|
4070
|
+
var _parentInstance$child2;
|
|
4071
|
+
const index = (_parentInstance$child2 = parentInstance.children) === null || _parentInstance$child2 === void 0 ? void 0 : _parentInstance$child2.indexOf(child);
|
|
4072
|
+
if (index === undefined) return;
|
|
4073
|
+
if (index !== -1) parentInstance.children.splice(index, 1);
|
|
4074
|
+
},
|
|
4075
|
+
removeChildFromContainer(parentInstance, child) {
|
|
4076
|
+
var _parentInstance$child3;
|
|
4077
|
+
const index = (_parentInstance$child3 = parentInstance.children) === null || _parentInstance$child3 === void 0 ? void 0 : _parentInstance$child3.indexOf(child);
|
|
4078
|
+
if (index === undefined) return;
|
|
4079
|
+
if (index !== -1) parentInstance.children.splice(index, 1);
|
|
4080
|
+
},
|
|
4081
|
+
commitTextUpdate(textInstance, oldText, newText) {
|
|
4082
|
+
textInstance.value = newText;
|
|
4083
|
+
},
|
|
4084
|
+
commitUpdate(instance, updatePayload, type, oldProps, newProps) {
|
|
4085
|
+
const {
|
|
4086
|
+
style,
|
|
4087
|
+
...props
|
|
4088
|
+
} = newProps;
|
|
4089
|
+
instance.props = props;
|
|
4090
|
+
instance.style = style;
|
|
4091
|
+
}
|
|
4092
|
+
});
|
|
4093
|
+
};
|
|
4094
|
+
|
|
4095
|
+
var name = "@react-pdf/renderer";
|
|
4096
|
+
var version$1 = "3.4.5";
|
|
4097
|
+
var license = "MIT";
|
|
4098
|
+
var description = "Create PDF files on the browser and server";
|
|
4099
|
+
var author = "Diego Muracciole <diegomuracciole@gmail.com>";
|
|
4100
|
+
var homepage = "https://github.com/diegomura/react-pdf#readme";
|
|
4101
|
+
var type = "module";
|
|
4102
|
+
var main = "./lib/react-pdf.cjs";
|
|
4103
|
+
var module$1 = "./lib/react-pdf.js";
|
|
4104
|
+
var browser = {
|
|
4105
|
+
"./lib/react-pdf.js": "./lib/react-pdf.browser.js",
|
|
4106
|
+
"./lib/react-pdf.cjs": "./lib/react-pdf.browser.cjs"
|
|
4107
|
+
};
|
|
4108
|
+
var exports$1 = {
|
|
4109
|
+
".": {
|
|
4110
|
+
"import": "./lib/react-pdf.js",
|
|
4111
|
+
require: "./lib/react-pdf.cjs",
|
|
4112
|
+
"default": "./lib/react-pdf.js"
|
|
4113
|
+
}
|
|
4114
|
+
};
|
|
4115
|
+
var repository = {
|
|
4116
|
+
type: "git",
|
|
4117
|
+
url: "https://github.com/diegomura/react-pdf.git",
|
|
4118
|
+
directory: "packages/renderer"
|
|
4119
|
+
};
|
|
4120
|
+
var scripts = {
|
|
4121
|
+
build: "rimraf ./lib && rollup -c",
|
|
4122
|
+
watch: "rimraf ./lib && rollup -c -w",
|
|
4123
|
+
size: "size-limit",
|
|
4124
|
+
lint: "eslint src",
|
|
4125
|
+
test: "vitest && vitest --config vitest.browser.config.js"
|
|
4126
|
+
};
|
|
4127
|
+
var dependencies = {
|
|
4128
|
+
"@babel/runtime": "^7.20.13",
|
|
4129
|
+
"@react-pdf/font": "^2.5.2",
|
|
4130
|
+
"@react-pdf/layout": "^3.13.0",
|
|
4131
|
+
"@react-pdf/pdfkit": "^3.2.0",
|
|
4132
|
+
"@react-pdf/primitives": "^3.1.1",
|
|
4133
|
+
"@react-pdf/render": "^3.5.0",
|
|
4134
|
+
"@react-pdf/types": "^2.6.0",
|
|
4135
|
+
events: "^3.3.0",
|
|
4136
|
+
"object-assign": "^4.1.1",
|
|
4137
|
+
"prop-types": "^15.6.2",
|
|
4138
|
+
queue: "^6.0.1",
|
|
4139
|
+
scheduler: "^0.17.0"
|
|
4140
|
+
};
|
|
4141
|
+
var peerDependencies = {
|
|
4142
|
+
react: "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
4143
|
+
};
|
|
4144
|
+
var files = [
|
|
4145
|
+
"lib",
|
|
4146
|
+
"index.d.ts"
|
|
4147
|
+
];
|
|
4148
|
+
var collective = {
|
|
4149
|
+
type: "opencollective",
|
|
4150
|
+
url: "https://opencollective.com/react-pdf",
|
|
4151
|
+
logo: "https://opencollective.com/opencollective/logo.txt"
|
|
4152
|
+
};
|
|
4153
|
+
var devDependencies = {
|
|
4154
|
+
"@size-limit/preset-big-lib": "^11.0.1",
|
|
4155
|
+
assert: "^2.0.0",
|
|
4156
|
+
"browserify-zlib": "^0.2.0",
|
|
4157
|
+
buffer: "^6.0.3",
|
|
4158
|
+
process: "^0.11.10",
|
|
4159
|
+
"react-reconciler": "0.23.0",
|
|
4160
|
+
"size-limit": "^11.0.1",
|
|
4161
|
+
util: "^0.12.4"
|
|
4162
|
+
};
|
|
4163
|
+
var packageJson = {
|
|
4164
|
+
name: name,
|
|
4165
|
+
version: version$1,
|
|
4166
|
+
license: license,
|
|
4167
|
+
description: description,
|
|
4168
|
+
author: author,
|
|
4169
|
+
homepage: homepage,
|
|
4170
|
+
type: type,
|
|
4171
|
+
main: main,
|
|
4172
|
+
module: module$1,
|
|
4173
|
+
browser: browser,
|
|
4174
|
+
exports: exports$1,
|
|
4175
|
+
repository: repository,
|
|
4176
|
+
scripts: scripts,
|
|
4177
|
+
dependencies: dependencies,
|
|
4178
|
+
peerDependencies: peerDependencies,
|
|
4179
|
+
"lint-staged": {
|
|
4180
|
+
"*.js": [
|
|
4181
|
+
"yarn lint",
|
|
4182
|
+
"prettier --write"
|
|
4183
|
+
]
|
|
4184
|
+
},
|
|
4185
|
+
files: files,
|
|
4186
|
+
collective: collective,
|
|
4187
|
+
devDependencies: devDependencies
|
|
4188
|
+
};
|
|
4189
|
+
|
|
4190
|
+
const {
|
|
4191
|
+
version
|
|
4192
|
+
} = packageJson;
|
|
4193
|
+
const fontStore = new FontStore__default.default();
|
|
4194
|
+
|
|
4195
|
+
// We must keep a single renderer instance, otherwise React will complain
|
|
4196
|
+
let renderer;
|
|
4197
|
+
|
|
4198
|
+
// The pdf instance acts as an event emitter for DOM usage.
|
|
4199
|
+
// We only want to trigger an update when PDF content changes
|
|
4200
|
+
const events = {};
|
|
4201
|
+
const pdf = initialValue => {
|
|
4202
|
+
const onChange = () => {
|
|
4203
|
+
var _events$change;
|
|
4204
|
+
const listeners = ((_events$change = events.change) === null || _events$change === void 0 ? void 0 : _events$change.slice()) || [];
|
|
4205
|
+
for (let i = 0; i < listeners.length; i += 1) listeners[i]();
|
|
4206
|
+
};
|
|
4207
|
+
const container = {
|
|
4208
|
+
type: 'ROOT',
|
|
4209
|
+
document: null
|
|
4210
|
+
};
|
|
4211
|
+
renderer = renderer || createRenderer({
|
|
4212
|
+
onChange
|
|
4213
|
+
});
|
|
4214
|
+
const mountNode = renderer.createContainer(container);
|
|
4215
|
+
const updateContainer = (doc, callback) => {
|
|
4216
|
+
renderer.updateContainer(doc, mountNode, null, callback);
|
|
4217
|
+
};
|
|
4218
|
+
if (initialValue) updateContainer(initialValue);
|
|
4219
|
+
const render = async function (compress) {
|
|
4220
|
+
if (compress === void 0) {
|
|
4221
|
+
compress = true;
|
|
4222
|
+
}
|
|
4223
|
+
const props = container.document.props || {};
|
|
4224
|
+
const {
|
|
4225
|
+
pdfVersion,
|
|
4226
|
+
language,
|
|
4227
|
+
pageLayout,
|
|
4228
|
+
pageMode
|
|
4229
|
+
} = props;
|
|
4230
|
+
const ctx = new PDFDocument__default.default({
|
|
4231
|
+
compress,
|
|
4232
|
+
pdfVersion,
|
|
4233
|
+
lang: language,
|
|
4234
|
+
displayTitle: true,
|
|
4235
|
+
autoFirstPage: false,
|
|
4236
|
+
pageLayout,
|
|
4237
|
+
pageMode
|
|
4238
|
+
});
|
|
4239
|
+
const layout = await layoutDocument__default.default(container.document, fontStore);
|
|
4240
|
+
const fileStream = renderPDF__default.default(ctx, layout);
|
|
4241
|
+
return {
|
|
4242
|
+
layout,
|
|
4243
|
+
fileStream
|
|
4244
|
+
};
|
|
4245
|
+
};
|
|
4246
|
+
const callOnRender = function (params) {
|
|
4247
|
+
if (params === void 0) {
|
|
4248
|
+
params = {};
|
|
4249
|
+
}
|
|
4250
|
+
if (container.document.props.onRender) {
|
|
4251
|
+
container.document.props.onRender(params);
|
|
4252
|
+
}
|
|
4253
|
+
};
|
|
4254
|
+
const toBlob = async () => {
|
|
4255
|
+
const chunks = [];
|
|
4256
|
+
const {
|
|
4257
|
+
layout: _INTERNAL__LAYOUT__DATA_,
|
|
4258
|
+
fileStream: instance
|
|
4259
|
+
} = await render();
|
|
4260
|
+
return new Promise((resolve, reject) => {
|
|
4261
|
+
instance.on('data', chunk => {
|
|
4262
|
+
chunks.push(chunk instanceof Uint8Array ? chunk : new Uint8Array(chunk));
|
|
4263
|
+
});
|
|
4264
|
+
instance.on('end', () => {
|
|
4265
|
+
try {
|
|
4266
|
+
const blob = new Blob(chunks, {
|
|
4267
|
+
type: 'application/pdf'
|
|
4268
|
+
});
|
|
4269
|
+
callOnRender({
|
|
4270
|
+
blob,
|
|
4271
|
+
_INTERNAL__LAYOUT__DATA_
|
|
4272
|
+
});
|
|
4273
|
+
resolve(blob);
|
|
4274
|
+
} catch (error) {
|
|
4275
|
+
reject(error);
|
|
4276
|
+
}
|
|
4277
|
+
});
|
|
4278
|
+
});
|
|
4279
|
+
};
|
|
4280
|
+
|
|
4281
|
+
// TODO: rename this method to `toStream` in next major release, because it return stream not a buffer
|
|
4282
|
+
const toBuffer = async () => {
|
|
4283
|
+
const {
|
|
4284
|
+
layout: _INTERNAL__LAYOUT__DATA_,
|
|
4285
|
+
fileStream
|
|
4286
|
+
} = await render();
|
|
4287
|
+
callOnRender({
|
|
4288
|
+
_INTERNAL__LAYOUT__DATA_
|
|
4289
|
+
});
|
|
4290
|
+
return fileStream;
|
|
4291
|
+
};
|
|
4292
|
+
|
|
4293
|
+
/*
|
|
4294
|
+
* TODO: remove this method in next major release. it is buggy
|
|
4295
|
+
* see
|
|
4296
|
+
* - https://github.com/diegomura/react-pdf/issues/2112
|
|
4297
|
+
* - https://github.com/diegomura/react-pdf/issues/2095
|
|
4298
|
+
*/
|
|
4299
|
+
const toString = async () => {
|
|
4300
|
+
if (process.env.NODE_ENV === 'development') {
|
|
4301
|
+
console.warn('`toString` is deprecated and will be removed in next major release');
|
|
4302
|
+
}
|
|
4303
|
+
let result = '';
|
|
4304
|
+
const {
|
|
4305
|
+
fileStream: instance
|
|
4306
|
+
} = await render(false); // For some reason, when rendering to string if compress=true the document is blank
|
|
4307
|
+
|
|
4308
|
+
return new Promise((resolve, reject) => {
|
|
4309
|
+
try {
|
|
4310
|
+
instance.on('data', buffer => {
|
|
4311
|
+
result += buffer;
|
|
4312
|
+
});
|
|
4313
|
+
instance.on('end', () => {
|
|
4314
|
+
callOnRender();
|
|
4315
|
+
resolve(result);
|
|
4316
|
+
});
|
|
4317
|
+
} catch (error) {
|
|
4318
|
+
reject(error);
|
|
4319
|
+
}
|
|
4320
|
+
});
|
|
4321
|
+
};
|
|
4322
|
+
const on = (event, listener) => {
|
|
4323
|
+
if (!events[event]) events[event] = [];
|
|
4324
|
+
events[event].push(listener);
|
|
4325
|
+
};
|
|
4326
|
+
const removeListener = (event, listener) => {
|
|
4327
|
+
if (!events[event]) return;
|
|
4328
|
+
const idx = events[event].indexOf(listener);
|
|
4329
|
+
if (idx > -1) events[event].splice(idx, 1);
|
|
4330
|
+
};
|
|
4331
|
+
return {
|
|
4332
|
+
on,
|
|
4333
|
+
container,
|
|
4334
|
+
toBlob,
|
|
4335
|
+
toBuffer,
|
|
4336
|
+
toString,
|
|
4337
|
+
removeListener,
|
|
4338
|
+
updateContainer
|
|
4339
|
+
};
|
|
4340
|
+
};
|
|
4341
|
+
const Font = fontStore;
|
|
4342
|
+
const StyleSheet = {
|
|
4343
|
+
create: s => s
|
|
4344
|
+
};
|
|
4345
|
+
|
|
4346
|
+
/* eslint-disable no-console */
|
|
4347
|
+
|
|
4348
|
+
|
|
4349
|
+
/**
|
|
4350
|
+
* PDF hook
|
|
4351
|
+
*
|
|
4352
|
+
* @param {Object} [options] hook options
|
|
4353
|
+
* @returns {[Object, Function]} pdf state and update function
|
|
4354
|
+
*/
|
|
4355
|
+
const usePDF = function (_temp) {
|
|
4356
|
+
let {
|
|
4357
|
+
document
|
|
4358
|
+
} = _temp === void 0 ? {} : _temp;
|
|
4359
|
+
const pdfInstance = require$$1.useRef(null);
|
|
4360
|
+
const [state, setState] = require$$1.useState({
|
|
4361
|
+
url: null,
|
|
4362
|
+
blob: null,
|
|
4363
|
+
error: null,
|
|
4364
|
+
loading: !!document
|
|
4365
|
+
});
|
|
4366
|
+
|
|
4367
|
+
// Setup rendering queue
|
|
4368
|
+
require$$1.useEffect(() => {
|
|
4369
|
+
const renderQueue = queue__default.default({
|
|
4370
|
+
autostart: true,
|
|
4371
|
+
concurrency: 1
|
|
4372
|
+
});
|
|
4373
|
+
const queueDocumentRender = () => {
|
|
4374
|
+
setState(prev => ({
|
|
4375
|
+
...prev,
|
|
4376
|
+
loading: true
|
|
4377
|
+
}));
|
|
4378
|
+
renderQueue.splice(0, renderQueue.length, () => state.error ? Promise.resolve() : pdfInstance.current.toBlob());
|
|
4379
|
+
};
|
|
4380
|
+
const onRenderFailed = error => {
|
|
4381
|
+
console.error(error);
|
|
4382
|
+
setState(prev => ({
|
|
4383
|
+
...prev,
|
|
4384
|
+
loading: false,
|
|
4385
|
+
error
|
|
4386
|
+
}));
|
|
4387
|
+
};
|
|
4388
|
+
const onRenderSuccessful = blob => {
|
|
4389
|
+
setState({
|
|
4390
|
+
blob,
|
|
4391
|
+
error: null,
|
|
4392
|
+
loading: false,
|
|
4393
|
+
url: URL.createObjectURL(blob)
|
|
4394
|
+
});
|
|
4395
|
+
};
|
|
4396
|
+
pdfInstance.current = pdf();
|
|
4397
|
+
pdfInstance.current.on('change', queueDocumentRender);
|
|
4398
|
+
if (document) {
|
|
4399
|
+
pdfInstance.current.updateContainer(document);
|
|
4400
|
+
}
|
|
4401
|
+
renderQueue.on('error', onRenderFailed);
|
|
4402
|
+
renderQueue.on('success', onRenderSuccessful);
|
|
4403
|
+
return () => {
|
|
4404
|
+
renderQueue.end();
|
|
4405
|
+
pdfInstance.current.removeListener('change', queueDocumentRender);
|
|
4406
|
+
};
|
|
4407
|
+
}, []);
|
|
4408
|
+
|
|
4409
|
+
// Revoke old unused url instances
|
|
4410
|
+
require$$1.useEffect(() => {
|
|
4411
|
+
return () => {
|
|
4412
|
+
if (state.url) {
|
|
4413
|
+
URL.revokeObjectURL(state.url);
|
|
4414
|
+
}
|
|
4415
|
+
};
|
|
4416
|
+
}, [state.url]);
|
|
4417
|
+
const update = require$$1.useCallback(newDoc => {
|
|
4418
|
+
pdfInstance.current.updateContainer(newDoc);
|
|
4419
|
+
}, []);
|
|
4420
|
+
return [state, update];
|
|
4421
|
+
};
|
|
4422
|
+
|
|
4423
|
+
/* eslint-disable no-console */
|
|
4424
|
+
/* eslint-disable react/jsx-props-no-spreading */
|
|
4425
|
+
|
|
4426
|
+
const PDFViewer = _ref => {
|
|
4427
|
+
let {
|
|
4428
|
+
title,
|
|
4429
|
+
style,
|
|
4430
|
+
className,
|
|
4431
|
+
children,
|
|
4432
|
+
innerRef,
|
|
4433
|
+
showToolbar = true,
|
|
4434
|
+
...props
|
|
4435
|
+
} = _ref;
|
|
4436
|
+
const [instance, updateInstance] = usePDF();
|
|
4437
|
+
require$$1.useEffect(() => updateInstance(children), [children]);
|
|
4438
|
+
const src = instance.url ? instance.url + "#toolbar=" + (showToolbar ? 1 : 0) : null;
|
|
4439
|
+
return /*#__PURE__*/jsxRuntime.jsx("iframe", {
|
|
4440
|
+
src: src,
|
|
4441
|
+
title: title,
|
|
4442
|
+
ref: innerRef,
|
|
4443
|
+
style: style,
|
|
4444
|
+
className: className,
|
|
4445
|
+
...props
|
|
4446
|
+
});
|
|
4447
|
+
};
|
|
4448
|
+
|
|
4449
|
+
/* eslint-disable no-console */
|
|
4450
|
+
|
|
4451
|
+
const BlobProvider = _ref => {
|
|
4452
|
+
let {
|
|
4453
|
+
document: doc,
|
|
4454
|
+
children
|
|
4455
|
+
} = _ref;
|
|
4456
|
+
const [instance, updateInstance] = usePDF();
|
|
4457
|
+
require$$1.useEffect(() => updateInstance(doc), [doc]);
|
|
4458
|
+
if (!doc) {
|
|
4459
|
+
console.warn('You should pass a valid document to BlobProvider');
|
|
4460
|
+
return null;
|
|
4461
|
+
}
|
|
4462
|
+
return children(instance);
|
|
4463
|
+
};
|
|
4464
|
+
|
|
4465
|
+
/* eslint-disable no-console */
|
|
4466
|
+
|
|
4467
|
+
const PDFDownloadLink = _ref => {
|
|
4468
|
+
let {
|
|
4469
|
+
fileName = 'document.pdf',
|
|
4470
|
+
document: doc,
|
|
4471
|
+
children,
|
|
4472
|
+
onClick,
|
|
4473
|
+
href: _filteredOutHref,
|
|
4474
|
+
...rest
|
|
4475
|
+
} = _ref;
|
|
4476
|
+
const [instance, updateInstance] = usePDF();
|
|
4477
|
+
require$$1.useEffect(() => updateInstance(doc), [doc]);
|
|
4478
|
+
if (!doc) {
|
|
4479
|
+
console.warn('You should pass a valid document to PDFDownloadLink');
|
|
4480
|
+
return null;
|
|
4481
|
+
}
|
|
4482
|
+
const handleDownloadIE = () => {
|
|
4483
|
+
if (instance && window.navigator.msSaveBlob) {
|
|
4484
|
+
// IE
|
|
4485
|
+
window.navigator.msSaveBlob(instance.blob, fileName);
|
|
4486
|
+
}
|
|
4487
|
+
};
|
|
4488
|
+
const handleClick = event => {
|
|
4489
|
+
handleDownloadIE();
|
|
4490
|
+
if (typeof onClick === 'function') onClick(event, instance);
|
|
4491
|
+
};
|
|
4492
|
+
return /*#__PURE__*/jsxRuntime.jsx("a", {
|
|
4493
|
+
href: instance.url,
|
|
4494
|
+
download: fileName,
|
|
4495
|
+
onClick: handleClick,
|
|
4496
|
+
...rest,
|
|
4497
|
+
children: typeof children === 'function' ? children(instance) : children
|
|
4498
|
+
});
|
|
4499
|
+
};
|
|
4500
|
+
|
|
4501
|
+
const throwEnvironmentError = name => {
|
|
4502
|
+
throw new Error(name + " is a Node specific API. You're either using this method in a browser, or your bundler is not loading react-pdf from the appropriate web build.");
|
|
4503
|
+
};
|
|
4504
|
+
const renderToStream = () => {
|
|
4505
|
+
throwEnvironmentError('renderToStream');
|
|
4506
|
+
};
|
|
4507
|
+
const renderToBuffer = () => {
|
|
4508
|
+
throwEnvironmentError('renderToBuffer');
|
|
4509
|
+
};
|
|
4510
|
+
const renderToString = () => {
|
|
4511
|
+
throwEnvironmentError('renderToString');
|
|
4512
|
+
};
|
|
4513
|
+
const renderToFile = () => {
|
|
4514
|
+
throwEnvironmentError('renderToFile');
|
|
4515
|
+
};
|
|
4516
|
+
const render = () => {
|
|
4517
|
+
throwEnvironmentError('render');
|
|
4518
|
+
};
|
|
4519
|
+
|
|
4520
|
+
// TODO: remove this default export in next major release because it breaks tree-shacking
|
|
4521
|
+
var index = {
|
|
4522
|
+
pdf,
|
|
4523
|
+
usePDF,
|
|
4524
|
+
Font,
|
|
4525
|
+
version,
|
|
4526
|
+
StyleSheet,
|
|
4527
|
+
PDFViewer,
|
|
4528
|
+
BlobProvider,
|
|
4529
|
+
PDFDownloadLink,
|
|
4530
|
+
renderToStream,
|
|
4531
|
+
renderToString,
|
|
4532
|
+
renderToFile,
|
|
4533
|
+
render,
|
|
4534
|
+
...primitives__namespace
|
|
4535
|
+
};
|
|
4536
|
+
|
|
4537
|
+
exports.BlobProvider = BlobProvider;
|
|
4538
|
+
exports.Font = Font;
|
|
4539
|
+
exports.PDFDownloadLink = PDFDownloadLink;
|
|
4540
|
+
exports.PDFViewer = PDFViewer;
|
|
4541
|
+
exports.StyleSheet = StyleSheet;
|
|
4542
|
+
exports.createRenderer = createRenderer;
|
|
4543
|
+
exports.default = index;
|
|
4544
|
+
exports.pdf = pdf;
|
|
4545
|
+
exports.render = render;
|
|
4546
|
+
exports.renderToBuffer = renderToBuffer;
|
|
4547
|
+
exports.renderToFile = renderToFile;
|
|
4548
|
+
exports.renderToStream = renderToStream;
|
|
4549
|
+
exports.renderToString = renderToString;
|
|
4550
|
+
exports.usePDF = usePDF;
|
|
4551
|
+
exports.version = version;
|
|
4552
|
+
Object.keys(primitives).forEach(function (k) {
|
|
4553
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
4554
|
+
enumerable: true,
|
|
4555
|
+
get: function () { return primitives[k]; }
|
|
4556
|
+
});
|
|
4557
|
+
});
|
|
4558
|
+
//# sourceMappingURL=react-pdf.browser.cjs.map
|