@wfgraph/plugins 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +14 -0
- package/dist/client-BEcFnbOB.js +34 -0
- package/dist/client-C2NIQxhb.js +64 -0
- package/dist/client-DDDCNLId.js +58 -0
- package/dist/client-DJGI9f53.js +73 -0
- package/dist/client-DkPUX0ps.js +50 -0
- package/dist/errors-C4i6-DQE.js +77 -0
- package/dist/index.d.ts +886 -0
- package/dist/index.js +2236 -0
- package/dist/test-8wDSAiFQ.js +45 -0
- package/dist/test-B8I6nxMN.js +38 -0
- package/dist/test-DWVpiQNl.js +36 -0
- package/dist/test-Dsrib2EJ.js +32 -0
- package/dist/test-DzstoPiR.js +35 -0
- package/dist/test-S28s7Z3a.js +35 -0
- package/dist/ui.d.ts +73 -0
- package/dist/ui.js +1631 -0
- package/package.json +57 -0
package/dist/ui.js
ADDED
|
@@ -0,0 +1,1631 @@
|
|
|
1
|
+
import { Option, Schema, SchemaTransformation } from "effect";
|
|
2
|
+
import { compact } from "es-toolkit/array";
|
|
3
|
+
//#region \0rolldown/runtime.js
|
|
4
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region ../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-jsx-runtime.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
17
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
18
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
19
|
+
function jsxProd(type, config, maybeKey) {
|
|
20
|
+
var key = null;
|
|
21
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
22
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
23
|
+
if ("key" in config) {
|
|
24
|
+
maybeKey = {};
|
|
25
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
26
|
+
} else maybeKey = config;
|
|
27
|
+
config = maybeKey.ref;
|
|
28
|
+
return {
|
|
29
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
30
|
+
type,
|
|
31
|
+
key,
|
|
32
|
+
ref: void 0 !== config ? config : null,
|
|
33
|
+
props: maybeKey
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
37
|
+
exports.jsx = jsxProd;
|
|
38
|
+
exports.jsxs = jsxProd;
|
|
39
|
+
}));
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react.production.js
|
|
42
|
+
/**
|
|
43
|
+
* @license React
|
|
44
|
+
* react.production.js
|
|
45
|
+
*
|
|
46
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
47
|
+
*
|
|
48
|
+
* This source code is licensed under the MIT license found in the
|
|
49
|
+
* LICENSE file in the root directory of this source tree.
|
|
50
|
+
*/
|
|
51
|
+
var require_react_production = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
52
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
|
|
53
|
+
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
54
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
55
|
+
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
56
|
+
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
57
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
|
|
58
|
+
var REACT_CONTEXT_TYPE = Symbol.for("react.context");
|
|
59
|
+
var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
|
|
60
|
+
var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
|
|
61
|
+
var REACT_MEMO_TYPE = Symbol.for("react.memo");
|
|
62
|
+
var REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
63
|
+
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
64
|
+
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
|
|
65
|
+
function getIteratorFn(maybeIterable) {
|
|
66
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
67
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
68
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
69
|
+
}
|
|
70
|
+
var ReactNoopUpdateQueue = {
|
|
71
|
+
isMounted: function() {
|
|
72
|
+
return !1;
|
|
73
|
+
},
|
|
74
|
+
enqueueForceUpdate: function() {},
|
|
75
|
+
enqueueReplaceState: function() {},
|
|
76
|
+
enqueueSetState: function() {}
|
|
77
|
+
};
|
|
78
|
+
var assign = Object.assign;
|
|
79
|
+
var emptyObject = {};
|
|
80
|
+
function Component(props, context, updater) {
|
|
81
|
+
this.props = props;
|
|
82
|
+
this.context = context;
|
|
83
|
+
this.refs = emptyObject;
|
|
84
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
85
|
+
}
|
|
86
|
+
Component.prototype.isReactComponent = {};
|
|
87
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
88
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
89
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
90
|
+
};
|
|
91
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
92
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
93
|
+
};
|
|
94
|
+
function ComponentDummy() {}
|
|
95
|
+
ComponentDummy.prototype = Component.prototype;
|
|
96
|
+
function PureComponent(props, context, updater) {
|
|
97
|
+
this.props = props;
|
|
98
|
+
this.context = context;
|
|
99
|
+
this.refs = emptyObject;
|
|
100
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
101
|
+
}
|
|
102
|
+
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
103
|
+
pureComponentPrototype.constructor = PureComponent;
|
|
104
|
+
assign(pureComponentPrototype, Component.prototype);
|
|
105
|
+
pureComponentPrototype.isPureReactComponent = !0;
|
|
106
|
+
var isArrayImpl = Array.isArray;
|
|
107
|
+
function noop() {}
|
|
108
|
+
var ReactSharedInternals = {
|
|
109
|
+
H: null,
|
|
110
|
+
A: null,
|
|
111
|
+
T: null,
|
|
112
|
+
S: null
|
|
113
|
+
};
|
|
114
|
+
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
115
|
+
function ReactElement(type, key, props) {
|
|
116
|
+
var refProp = props.ref;
|
|
117
|
+
return {
|
|
118
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
119
|
+
type,
|
|
120
|
+
key,
|
|
121
|
+
ref: void 0 !== refProp ? refProp : null,
|
|
122
|
+
props
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
126
|
+
return ReactElement(oldElement.type, newKey, oldElement.props);
|
|
127
|
+
}
|
|
128
|
+
function isValidElement(object) {
|
|
129
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
130
|
+
}
|
|
131
|
+
function escape(key) {
|
|
132
|
+
var escaperLookup = {
|
|
133
|
+
"=": "=0",
|
|
134
|
+
":": "=2"
|
|
135
|
+
};
|
|
136
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
137
|
+
return escaperLookup[match];
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
var userProvidedKeyEscapeRegex = /\/+/g;
|
|
141
|
+
function getElementKey(element, index) {
|
|
142
|
+
return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
|
|
143
|
+
}
|
|
144
|
+
function resolveThenable(thenable) {
|
|
145
|
+
switch (thenable.status) {
|
|
146
|
+
case "fulfilled": return thenable.value;
|
|
147
|
+
case "rejected": throw thenable.reason;
|
|
148
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
149
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
150
|
+
}, function(error) {
|
|
151
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
152
|
+
})), thenable.status) {
|
|
153
|
+
case "fulfilled": return thenable.value;
|
|
154
|
+
case "rejected": throw thenable.reason;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
throw thenable;
|
|
158
|
+
}
|
|
159
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
160
|
+
var type = typeof children;
|
|
161
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
162
|
+
var invokeCallback = !1;
|
|
163
|
+
if (null === children) invokeCallback = !0;
|
|
164
|
+
else switch (type) {
|
|
165
|
+
case "bigint":
|
|
166
|
+
case "string":
|
|
167
|
+
case "number":
|
|
168
|
+
invokeCallback = !0;
|
|
169
|
+
break;
|
|
170
|
+
case "object": switch (children.$$typeof) {
|
|
171
|
+
case REACT_ELEMENT_TYPE:
|
|
172
|
+
case REACT_PORTAL_TYPE:
|
|
173
|
+
invokeCallback = !0;
|
|
174
|
+
break;
|
|
175
|
+
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
if (invokeCallback) return callback = callback(children), invokeCallback = "" === nameSoFar ? "." + getElementKey(children, 0) : nameSoFar, isArrayImpl(callback) ? (escapedPrefix = "", null != invokeCallback && (escapedPrefix = invokeCallback.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
179
|
+
return c;
|
|
180
|
+
})) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + invokeCallback)), array.push(callback)), 1;
|
|
181
|
+
invokeCallback = 0;
|
|
182
|
+
var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
183
|
+
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
184
|
+
else if (i = getIteratorFn(children), "function" === typeof i) for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
185
|
+
else if ("object" === type) {
|
|
186
|
+
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
187
|
+
array = String(children);
|
|
188
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
189
|
+
}
|
|
190
|
+
return invokeCallback;
|
|
191
|
+
}
|
|
192
|
+
function mapChildren(children, func, context) {
|
|
193
|
+
if (null == children) return children;
|
|
194
|
+
var result = [], count = 0;
|
|
195
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
196
|
+
return func.call(context, child, count++);
|
|
197
|
+
});
|
|
198
|
+
return result;
|
|
199
|
+
}
|
|
200
|
+
function lazyInitializer(payload) {
|
|
201
|
+
if (-1 === payload._status) {
|
|
202
|
+
var ctor = payload._result;
|
|
203
|
+
ctor = ctor();
|
|
204
|
+
ctor.then(function(moduleObject) {
|
|
205
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 1, payload._result = moduleObject;
|
|
206
|
+
}, function(error) {
|
|
207
|
+
if (0 === payload._status || -1 === payload._status) payload._status = 2, payload._result = error;
|
|
208
|
+
});
|
|
209
|
+
-1 === payload._status && (payload._status = 0, payload._result = ctor);
|
|
210
|
+
}
|
|
211
|
+
if (1 === payload._status) return payload._result.default;
|
|
212
|
+
throw payload._result;
|
|
213
|
+
}
|
|
214
|
+
var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
215
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
216
|
+
var event = new window.ErrorEvent("error", {
|
|
217
|
+
bubbles: !0,
|
|
218
|
+
cancelable: !0,
|
|
219
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
220
|
+
error
|
|
221
|
+
});
|
|
222
|
+
if (!window.dispatchEvent(event)) return;
|
|
223
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
224
|
+
process.emit("uncaughtException", error);
|
|
225
|
+
return;
|
|
226
|
+
}
|
|
227
|
+
console.error(error);
|
|
228
|
+
};
|
|
229
|
+
var Children = {
|
|
230
|
+
map: mapChildren,
|
|
231
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
232
|
+
mapChildren(children, function() {
|
|
233
|
+
forEachFunc.apply(this, arguments);
|
|
234
|
+
}, forEachContext);
|
|
235
|
+
},
|
|
236
|
+
count: function(children) {
|
|
237
|
+
var n = 0;
|
|
238
|
+
mapChildren(children, function() {
|
|
239
|
+
n++;
|
|
240
|
+
});
|
|
241
|
+
return n;
|
|
242
|
+
},
|
|
243
|
+
toArray: function(children) {
|
|
244
|
+
return mapChildren(children, function(child) {
|
|
245
|
+
return child;
|
|
246
|
+
}) || [];
|
|
247
|
+
},
|
|
248
|
+
only: function(children) {
|
|
249
|
+
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
250
|
+
return children;
|
|
251
|
+
}
|
|
252
|
+
};
|
|
253
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
254
|
+
exports.Children = Children;
|
|
255
|
+
exports.Component = Component;
|
|
256
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
257
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
258
|
+
exports.PureComponent = PureComponent;
|
|
259
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
260
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
261
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
262
|
+
exports.__COMPILER_RUNTIME = {
|
|
263
|
+
__proto__: null,
|
|
264
|
+
c: function(size) {
|
|
265
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
exports.cache = function(fn) {
|
|
269
|
+
return function() {
|
|
270
|
+
return fn.apply(null, arguments);
|
|
271
|
+
};
|
|
272
|
+
};
|
|
273
|
+
exports.cacheSignal = function() {
|
|
274
|
+
return null;
|
|
275
|
+
};
|
|
276
|
+
exports.cloneElement = function(element, config, children) {
|
|
277
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
278
|
+
var props = assign({}, element.props), key = element.key;
|
|
279
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
280
|
+
var propName = arguments.length - 2;
|
|
281
|
+
if (1 === propName) props.children = children;
|
|
282
|
+
else if (1 < propName) {
|
|
283
|
+
for (var childArray = Array(propName), i = 0; i < propName; i++) childArray[i] = arguments[i + 2];
|
|
284
|
+
props.children = childArray;
|
|
285
|
+
}
|
|
286
|
+
return ReactElement(element.type, key, props);
|
|
287
|
+
};
|
|
288
|
+
exports.createContext = function(defaultValue) {
|
|
289
|
+
defaultValue = {
|
|
290
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
291
|
+
_currentValue: defaultValue,
|
|
292
|
+
_currentValue2: defaultValue,
|
|
293
|
+
_threadCount: 0,
|
|
294
|
+
Provider: null,
|
|
295
|
+
Consumer: null
|
|
296
|
+
};
|
|
297
|
+
defaultValue.Provider = defaultValue;
|
|
298
|
+
defaultValue.Consumer = {
|
|
299
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
300
|
+
_context: defaultValue
|
|
301
|
+
};
|
|
302
|
+
return defaultValue;
|
|
303
|
+
};
|
|
304
|
+
exports.createElement = function(type, config, children) {
|
|
305
|
+
var propName, props = {}, key = null;
|
|
306
|
+
if (null != config) for (propName in void 0 !== config.key && (key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
|
|
307
|
+
var childrenLength = arguments.length - 2;
|
|
308
|
+
if (1 === childrenLength) props.children = children;
|
|
309
|
+
else if (1 < childrenLength) {
|
|
310
|
+
for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++) childArray[i] = arguments[i + 2];
|
|
311
|
+
props.children = childArray;
|
|
312
|
+
}
|
|
313
|
+
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === props[propName] && (props[propName] = childrenLength[propName]);
|
|
314
|
+
return ReactElement(type, key, props);
|
|
315
|
+
};
|
|
316
|
+
exports.createRef = function() {
|
|
317
|
+
return { current: null };
|
|
318
|
+
};
|
|
319
|
+
exports.forwardRef = function(render) {
|
|
320
|
+
return {
|
|
321
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
322
|
+
render
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
exports.isValidElement = isValidElement;
|
|
326
|
+
exports.lazy = function(ctor) {
|
|
327
|
+
return {
|
|
328
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
329
|
+
_payload: {
|
|
330
|
+
_status: -1,
|
|
331
|
+
_result: ctor
|
|
332
|
+
},
|
|
333
|
+
_init: lazyInitializer
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
exports.memo = function(type, compare) {
|
|
337
|
+
return {
|
|
338
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
339
|
+
type,
|
|
340
|
+
compare: void 0 === compare ? null : compare
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
exports.startTransition = function(scope) {
|
|
344
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
345
|
+
ReactSharedInternals.T = currentTransition;
|
|
346
|
+
try {
|
|
347
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
348
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
349
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
|
|
350
|
+
} catch (error) {
|
|
351
|
+
reportGlobalError(error);
|
|
352
|
+
} finally {
|
|
353
|
+
null !== prevTransition && null !== currentTransition.types && (prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
354
|
+
}
|
|
355
|
+
};
|
|
356
|
+
exports.unstable_useCacheRefresh = function() {
|
|
357
|
+
return ReactSharedInternals.H.useCacheRefresh();
|
|
358
|
+
};
|
|
359
|
+
exports.use = function(usable) {
|
|
360
|
+
return ReactSharedInternals.H.use(usable);
|
|
361
|
+
};
|
|
362
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
363
|
+
return ReactSharedInternals.H.useActionState(action, initialState, permalink);
|
|
364
|
+
};
|
|
365
|
+
exports.useCallback = function(callback, deps) {
|
|
366
|
+
return ReactSharedInternals.H.useCallback(callback, deps);
|
|
367
|
+
};
|
|
368
|
+
exports.useContext = function(Context) {
|
|
369
|
+
return ReactSharedInternals.H.useContext(Context);
|
|
370
|
+
};
|
|
371
|
+
exports.useDebugValue = function() {};
|
|
372
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
373
|
+
return ReactSharedInternals.H.useDeferredValue(value, initialValue);
|
|
374
|
+
};
|
|
375
|
+
exports.useEffect = function(create, deps) {
|
|
376
|
+
return ReactSharedInternals.H.useEffect(create, deps);
|
|
377
|
+
};
|
|
378
|
+
exports.useEffectEvent = function(callback) {
|
|
379
|
+
return ReactSharedInternals.H.useEffectEvent(callback);
|
|
380
|
+
};
|
|
381
|
+
exports.useId = function() {
|
|
382
|
+
return ReactSharedInternals.H.useId();
|
|
383
|
+
};
|
|
384
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
385
|
+
return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
|
|
386
|
+
};
|
|
387
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
388
|
+
return ReactSharedInternals.H.useInsertionEffect(create, deps);
|
|
389
|
+
};
|
|
390
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
391
|
+
return ReactSharedInternals.H.useLayoutEffect(create, deps);
|
|
392
|
+
};
|
|
393
|
+
exports.useMemo = function(create, deps) {
|
|
394
|
+
return ReactSharedInternals.H.useMemo(create, deps);
|
|
395
|
+
};
|
|
396
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
397
|
+
return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
|
|
398
|
+
};
|
|
399
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
400
|
+
return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
|
|
401
|
+
};
|
|
402
|
+
exports.useRef = function(initialValue) {
|
|
403
|
+
return ReactSharedInternals.H.useRef(initialValue);
|
|
404
|
+
};
|
|
405
|
+
exports.useState = function(initialState) {
|
|
406
|
+
return ReactSharedInternals.H.useState(initialState);
|
|
407
|
+
};
|
|
408
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
409
|
+
return ReactSharedInternals.H.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
410
|
+
};
|
|
411
|
+
exports.useTransition = function() {
|
|
412
|
+
return ReactSharedInternals.H.useTransition();
|
|
413
|
+
};
|
|
414
|
+
exports.version = "19.2.8";
|
|
415
|
+
}));
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region ../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react.development.js
|
|
418
|
+
/**
|
|
419
|
+
* @license React
|
|
420
|
+
* react.development.js
|
|
421
|
+
*
|
|
422
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
423
|
+
*
|
|
424
|
+
* This source code is licensed under the MIT license found in the
|
|
425
|
+
* LICENSE file in the root directory of this source tree.
|
|
426
|
+
*/
|
|
427
|
+
var require_react_development = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
428
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
429
|
+
function defineDeprecationWarning(methodName, info) {
|
|
430
|
+
Object.defineProperty(Component.prototype, methodName, { get: function() {
|
|
431
|
+
console.warn("%s(...) is deprecated in plain JavaScript React classes. %s", info[0], info[1]);
|
|
432
|
+
} });
|
|
433
|
+
}
|
|
434
|
+
function getIteratorFn(maybeIterable) {
|
|
435
|
+
if (null === maybeIterable || "object" !== typeof maybeIterable) return null;
|
|
436
|
+
maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
|
|
437
|
+
return "function" === typeof maybeIterable ? maybeIterable : null;
|
|
438
|
+
}
|
|
439
|
+
function warnNoop(publicInstance, callerName) {
|
|
440
|
+
publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
|
|
441
|
+
var warningKey = publicInstance + "." + callerName;
|
|
442
|
+
didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.", callerName, publicInstance), didWarnStateUpdateForUnmountedComponent[warningKey] = !0);
|
|
443
|
+
}
|
|
444
|
+
function Component(props, context, updater) {
|
|
445
|
+
this.props = props;
|
|
446
|
+
this.context = context;
|
|
447
|
+
this.refs = emptyObject;
|
|
448
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
449
|
+
}
|
|
450
|
+
function ComponentDummy() {}
|
|
451
|
+
function PureComponent(props, context, updater) {
|
|
452
|
+
this.props = props;
|
|
453
|
+
this.context = context;
|
|
454
|
+
this.refs = emptyObject;
|
|
455
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
456
|
+
}
|
|
457
|
+
function noop() {}
|
|
458
|
+
function testStringCoercion(value) {
|
|
459
|
+
return "" + value;
|
|
460
|
+
}
|
|
461
|
+
function checkKeyStringCoercion(value) {
|
|
462
|
+
try {
|
|
463
|
+
testStringCoercion(value);
|
|
464
|
+
var JSCompiler_inline_result = !1;
|
|
465
|
+
} catch (e) {
|
|
466
|
+
JSCompiler_inline_result = !0;
|
|
467
|
+
}
|
|
468
|
+
if (JSCompiler_inline_result) {
|
|
469
|
+
JSCompiler_inline_result = console;
|
|
470
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
471
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
472
|
+
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
473
|
+
return testStringCoercion(value);
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
function getComponentNameFromType(type) {
|
|
477
|
+
if (null == type) return null;
|
|
478
|
+
if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
479
|
+
if ("string" === typeof type) return type;
|
|
480
|
+
switch (type) {
|
|
481
|
+
case REACT_FRAGMENT_TYPE: return "Fragment";
|
|
482
|
+
case REACT_PROFILER_TYPE: return "Profiler";
|
|
483
|
+
case REACT_STRICT_MODE_TYPE: return "StrictMode";
|
|
484
|
+
case REACT_SUSPENSE_TYPE: return "Suspense";
|
|
485
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
486
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
487
|
+
}
|
|
488
|
+
if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
489
|
+
case REACT_PORTAL_TYPE: return "Portal";
|
|
490
|
+
case REACT_CONTEXT_TYPE: return type.displayName || "Context";
|
|
491
|
+
case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
|
|
492
|
+
case REACT_FORWARD_REF_TYPE:
|
|
493
|
+
var innerType = type.render;
|
|
494
|
+
type = type.displayName;
|
|
495
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
496
|
+
return type;
|
|
497
|
+
case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
498
|
+
case REACT_LAZY_TYPE:
|
|
499
|
+
innerType = type._payload;
|
|
500
|
+
type = type._init;
|
|
501
|
+
try {
|
|
502
|
+
return getComponentNameFromType(type(innerType));
|
|
503
|
+
} catch (x) {}
|
|
504
|
+
}
|
|
505
|
+
return null;
|
|
506
|
+
}
|
|
507
|
+
function getTaskName(type) {
|
|
508
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
509
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
|
|
510
|
+
try {
|
|
511
|
+
var name = getComponentNameFromType(type);
|
|
512
|
+
return name ? "<" + name + ">" : "<...>";
|
|
513
|
+
} catch (x) {
|
|
514
|
+
return "<...>";
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
function getOwner() {
|
|
518
|
+
var dispatcher = ReactSharedInternals.A;
|
|
519
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
520
|
+
}
|
|
521
|
+
function UnknownOwner() {
|
|
522
|
+
return Error("react-stack-top-frame");
|
|
523
|
+
}
|
|
524
|
+
function hasValidKey(config) {
|
|
525
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
526
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
527
|
+
if (getter && getter.isReactWarning) return !1;
|
|
528
|
+
}
|
|
529
|
+
return void 0 !== config.key;
|
|
530
|
+
}
|
|
531
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
532
|
+
function warnAboutAccessingKey() {
|
|
533
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
534
|
+
}
|
|
535
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
536
|
+
Object.defineProperty(props, "key", {
|
|
537
|
+
get: warnAboutAccessingKey,
|
|
538
|
+
configurable: !0
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
542
|
+
var componentName = getComponentNameFromType(this.type);
|
|
543
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
544
|
+
componentName = this.props.ref;
|
|
545
|
+
return void 0 !== componentName ? componentName : null;
|
|
546
|
+
}
|
|
547
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
548
|
+
var refProp = props.ref;
|
|
549
|
+
type = {
|
|
550
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
551
|
+
type,
|
|
552
|
+
key,
|
|
553
|
+
props,
|
|
554
|
+
_owner: owner
|
|
555
|
+
};
|
|
556
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
557
|
+
enumerable: !1,
|
|
558
|
+
get: elementRefGetterWithDeprecationWarning
|
|
559
|
+
}) : Object.defineProperty(type, "ref", {
|
|
560
|
+
enumerable: !1,
|
|
561
|
+
value: null
|
|
562
|
+
});
|
|
563
|
+
type._store = {};
|
|
564
|
+
Object.defineProperty(type._store, "validated", {
|
|
565
|
+
configurable: !1,
|
|
566
|
+
enumerable: !1,
|
|
567
|
+
writable: !0,
|
|
568
|
+
value: 0
|
|
569
|
+
});
|
|
570
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
571
|
+
configurable: !1,
|
|
572
|
+
enumerable: !1,
|
|
573
|
+
writable: !0,
|
|
574
|
+
value: null
|
|
575
|
+
});
|
|
576
|
+
Object.defineProperty(type, "_debugStack", {
|
|
577
|
+
configurable: !1,
|
|
578
|
+
enumerable: !1,
|
|
579
|
+
writable: !0,
|
|
580
|
+
value: debugStack
|
|
581
|
+
});
|
|
582
|
+
Object.defineProperty(type, "_debugTask", {
|
|
583
|
+
configurable: !1,
|
|
584
|
+
enumerable: !1,
|
|
585
|
+
writable: !0,
|
|
586
|
+
value: debugTask
|
|
587
|
+
});
|
|
588
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
589
|
+
return type;
|
|
590
|
+
}
|
|
591
|
+
function cloneAndReplaceKey(oldElement, newKey) {
|
|
592
|
+
newKey = ReactElement(oldElement.type, newKey, oldElement.props, oldElement._owner, oldElement._debugStack, oldElement._debugTask);
|
|
593
|
+
oldElement._store && (newKey._store.validated = oldElement._store.validated);
|
|
594
|
+
return newKey;
|
|
595
|
+
}
|
|
596
|
+
function validateChildKeys(node) {
|
|
597
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
598
|
+
}
|
|
599
|
+
function isValidElement(object) {
|
|
600
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
601
|
+
}
|
|
602
|
+
function escape(key) {
|
|
603
|
+
var escaperLookup = {
|
|
604
|
+
"=": "=0",
|
|
605
|
+
":": "=2"
|
|
606
|
+
};
|
|
607
|
+
return "$" + key.replace(/[=:]/g, function(match) {
|
|
608
|
+
return escaperLookup[match];
|
|
609
|
+
});
|
|
610
|
+
}
|
|
611
|
+
function getElementKey(element, index) {
|
|
612
|
+
return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
|
|
613
|
+
}
|
|
614
|
+
function resolveThenable(thenable) {
|
|
615
|
+
switch (thenable.status) {
|
|
616
|
+
case "fulfilled": return thenable.value;
|
|
617
|
+
case "rejected": throw thenable.reason;
|
|
618
|
+
default: switch ("string" === typeof thenable.status ? thenable.then(noop, noop) : (thenable.status = "pending", thenable.then(function(fulfilledValue) {
|
|
619
|
+
"pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
|
|
620
|
+
}, function(error) {
|
|
621
|
+
"pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
622
|
+
})), thenable.status) {
|
|
623
|
+
case "fulfilled": return thenable.value;
|
|
624
|
+
case "rejected": throw thenable.reason;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
throw thenable;
|
|
628
|
+
}
|
|
629
|
+
function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
|
|
630
|
+
var type = typeof children;
|
|
631
|
+
if ("undefined" === type || "boolean" === type) children = null;
|
|
632
|
+
var invokeCallback = !1;
|
|
633
|
+
if (null === children) invokeCallback = !0;
|
|
634
|
+
else switch (type) {
|
|
635
|
+
case "bigint":
|
|
636
|
+
case "string":
|
|
637
|
+
case "number":
|
|
638
|
+
invokeCallback = !0;
|
|
639
|
+
break;
|
|
640
|
+
case "object": switch (children.$$typeof) {
|
|
641
|
+
case REACT_ELEMENT_TYPE:
|
|
642
|
+
case REACT_PORTAL_TYPE:
|
|
643
|
+
invokeCallback = !0;
|
|
644
|
+
break;
|
|
645
|
+
case REACT_LAZY_TYPE: return invokeCallback = children._init, mapIntoArray(invokeCallback(children._payload), array, escapedPrefix, nameSoFar, callback);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
if (invokeCallback) {
|
|
649
|
+
invokeCallback = children;
|
|
650
|
+
callback = callback(invokeCallback);
|
|
651
|
+
var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
|
|
652
|
+
isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
|
|
653
|
+
return c;
|
|
654
|
+
})) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(callback, escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(userProvidedKeyEscapeRegex, "$&/") + "/") + childKey), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
|
|
655
|
+
return 1;
|
|
656
|
+
}
|
|
657
|
+
invokeCallback = 0;
|
|
658
|
+
childKey = "" === nameSoFar ? "." : nameSoFar + ":";
|
|
659
|
+
if (isArrayImpl(children)) for (var i = 0; i < children.length; i++) nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
660
|
+
else if (i = getIteratorFn(children), "function" === typeof i) for (i === children.entries && (didWarnAboutMaps || console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."), didWarnAboutMaps = !0), children = i.call(children), i = 0; !(nameSoFar = children.next()).done;) nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(nameSoFar, array, escapedPrefix, type, callback);
|
|
661
|
+
else if ("object" === type) {
|
|
662
|
+
if ("function" === typeof children.then) return mapIntoArray(resolveThenable(children), array, escapedPrefix, nameSoFar, callback);
|
|
663
|
+
array = String(children);
|
|
664
|
+
throw Error("Objects are not valid as a React child (found: " + ("[object Object]" === array ? "object with keys {" + Object.keys(children).join(", ") + "}" : array) + "). If you meant to render a collection of children, use an array instead.");
|
|
665
|
+
}
|
|
666
|
+
return invokeCallback;
|
|
667
|
+
}
|
|
668
|
+
function mapChildren(children, func, context) {
|
|
669
|
+
if (null == children) return children;
|
|
670
|
+
var result = [], count = 0;
|
|
671
|
+
mapIntoArray(children, result, "", "", function(child) {
|
|
672
|
+
return func.call(context, child, count++);
|
|
673
|
+
});
|
|
674
|
+
return result;
|
|
675
|
+
}
|
|
676
|
+
function lazyInitializer(payload) {
|
|
677
|
+
if (-1 === payload._status) {
|
|
678
|
+
var ioInfo = payload._ioInfo;
|
|
679
|
+
null != ioInfo && (ioInfo.start = ioInfo.end = performance.now());
|
|
680
|
+
ioInfo = payload._result;
|
|
681
|
+
var thenable = ioInfo();
|
|
682
|
+
thenable.then(function(moduleObject) {
|
|
683
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
684
|
+
payload._status = 1;
|
|
685
|
+
payload._result = moduleObject;
|
|
686
|
+
var _ioInfo = payload._ioInfo;
|
|
687
|
+
null != _ioInfo && (_ioInfo.end = performance.now());
|
|
688
|
+
void 0 === thenable.status && (thenable.status = "fulfilled", thenable.value = moduleObject);
|
|
689
|
+
}
|
|
690
|
+
}, function(error) {
|
|
691
|
+
if (0 === payload._status || -1 === payload._status) {
|
|
692
|
+
payload._status = 2;
|
|
693
|
+
payload._result = error;
|
|
694
|
+
var _ioInfo2 = payload._ioInfo;
|
|
695
|
+
null != _ioInfo2 && (_ioInfo2.end = performance.now());
|
|
696
|
+
void 0 === thenable.status && (thenable.status = "rejected", thenable.reason = error);
|
|
697
|
+
}
|
|
698
|
+
});
|
|
699
|
+
ioInfo = payload._ioInfo;
|
|
700
|
+
if (null != ioInfo) {
|
|
701
|
+
ioInfo.value = thenable;
|
|
702
|
+
var displayName = thenable.displayName;
|
|
703
|
+
"string" === typeof displayName && (ioInfo.name = displayName);
|
|
704
|
+
}
|
|
705
|
+
-1 === payload._status && (payload._status = 0, payload._result = thenable);
|
|
706
|
+
}
|
|
707
|
+
if (1 === payload._status) return ioInfo = payload._result, void 0 === ioInfo && console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))\n\nDid you accidentally put curly braces around the import?", ioInfo), "default" in ioInfo || console.error("lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))", ioInfo), ioInfo.default;
|
|
708
|
+
throw payload._result;
|
|
709
|
+
}
|
|
710
|
+
function resolveDispatcher() {
|
|
711
|
+
var dispatcher = ReactSharedInternals.H;
|
|
712
|
+
null === dispatcher && console.error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.");
|
|
713
|
+
return dispatcher;
|
|
714
|
+
}
|
|
715
|
+
function releaseAsyncTransition() {
|
|
716
|
+
ReactSharedInternals.asyncTransitions--;
|
|
717
|
+
}
|
|
718
|
+
function enqueueTask(task) {
|
|
719
|
+
if (null === enqueueTaskImpl) try {
|
|
720
|
+
var requireString = ("require" + Math.random()).slice(0, 7);
|
|
721
|
+
enqueueTaskImpl = (module && module[requireString]).call(module, "timers").setImmediate;
|
|
722
|
+
} catch (_err) {
|
|
723
|
+
enqueueTaskImpl = function(callback) {
|
|
724
|
+
!1 === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = !0, "undefined" === typeof MessageChannel && console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));
|
|
725
|
+
var channel = new MessageChannel();
|
|
726
|
+
channel.port1.onmessage = callback;
|
|
727
|
+
channel.port2.postMessage(void 0);
|
|
728
|
+
};
|
|
729
|
+
}
|
|
730
|
+
return enqueueTaskImpl(task);
|
|
731
|
+
}
|
|
732
|
+
function aggregateErrors(errors) {
|
|
733
|
+
return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
|
|
734
|
+
}
|
|
735
|
+
function popActScope(prevActQueue, prevActScopeDepth) {
|
|
736
|
+
prevActScopeDepth !== actScopeDepth - 1 && console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. ");
|
|
737
|
+
actScopeDepth = prevActScopeDepth;
|
|
738
|
+
}
|
|
739
|
+
function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
|
|
740
|
+
var queue = ReactSharedInternals.actQueue;
|
|
741
|
+
if (null !== queue) if (0 !== queue.length) try {
|
|
742
|
+
flushActQueue(queue);
|
|
743
|
+
enqueueTask(function() {
|
|
744
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
745
|
+
});
|
|
746
|
+
return;
|
|
747
|
+
} catch (error) {
|
|
748
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
749
|
+
}
|
|
750
|
+
else ReactSharedInternals.actQueue = null;
|
|
751
|
+
0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
|
|
752
|
+
}
|
|
753
|
+
function flushActQueue(queue) {
|
|
754
|
+
if (!isFlushing) {
|
|
755
|
+
isFlushing = !0;
|
|
756
|
+
var i = 0;
|
|
757
|
+
try {
|
|
758
|
+
for (; i < queue.length; i++) {
|
|
759
|
+
var callback = queue[i];
|
|
760
|
+
do {
|
|
761
|
+
ReactSharedInternals.didUsePromise = !1;
|
|
762
|
+
var continuation = callback(!1);
|
|
763
|
+
if (null !== continuation) {
|
|
764
|
+
if (ReactSharedInternals.didUsePromise) {
|
|
765
|
+
queue[i] = callback;
|
|
766
|
+
queue.splice(0, i);
|
|
767
|
+
return;
|
|
768
|
+
}
|
|
769
|
+
callback = continuation;
|
|
770
|
+
} else break;
|
|
771
|
+
} while (1);
|
|
772
|
+
}
|
|
773
|
+
queue.length = 0;
|
|
774
|
+
} catch (error) {
|
|
775
|
+
queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
|
|
776
|
+
} finally {
|
|
777
|
+
isFlushing = !1;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
782
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), MAYBE_ITERATOR_SYMBOL = Symbol.iterator, didWarnStateUpdateForUnmountedComponent = {}, ReactNoopUpdateQueue = {
|
|
783
|
+
isMounted: function() {
|
|
784
|
+
return !1;
|
|
785
|
+
},
|
|
786
|
+
enqueueForceUpdate: function(publicInstance) {
|
|
787
|
+
warnNoop(publicInstance, "forceUpdate");
|
|
788
|
+
},
|
|
789
|
+
enqueueReplaceState: function(publicInstance) {
|
|
790
|
+
warnNoop(publicInstance, "replaceState");
|
|
791
|
+
},
|
|
792
|
+
enqueueSetState: function(publicInstance) {
|
|
793
|
+
warnNoop(publicInstance, "setState");
|
|
794
|
+
}
|
|
795
|
+
}, assign = Object.assign, emptyObject = {};
|
|
796
|
+
Object.freeze(emptyObject);
|
|
797
|
+
Component.prototype.isReactComponent = {};
|
|
798
|
+
Component.prototype.setState = function(partialState, callback) {
|
|
799
|
+
if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState) throw Error("takes an object of state variables to update or a function which returns an object of state variables.");
|
|
800
|
+
this.updater.enqueueSetState(this, partialState, callback, "setState");
|
|
801
|
+
};
|
|
802
|
+
Component.prototype.forceUpdate = function(callback) {
|
|
803
|
+
this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
|
|
804
|
+
};
|
|
805
|
+
var deprecatedAPIs = {
|
|
806
|
+
isMounted: ["isMounted", "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],
|
|
807
|
+
replaceState: ["replaceState", "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]
|
|
808
|
+
};
|
|
809
|
+
for (fnName in deprecatedAPIs) deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
810
|
+
ComponentDummy.prototype = Component.prototype;
|
|
811
|
+
deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
|
|
812
|
+
deprecatedAPIs.constructor = PureComponent;
|
|
813
|
+
assign(deprecatedAPIs, Component.prototype);
|
|
814
|
+
deprecatedAPIs.isPureReactComponent = !0;
|
|
815
|
+
var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
|
|
816
|
+
H: null,
|
|
817
|
+
A: null,
|
|
818
|
+
T: null,
|
|
819
|
+
S: null,
|
|
820
|
+
actQueue: null,
|
|
821
|
+
asyncTransitions: 0,
|
|
822
|
+
isBatchingLegacy: !1,
|
|
823
|
+
didScheduleLegacyUpdate: !1,
|
|
824
|
+
didUsePromise: !1,
|
|
825
|
+
thrownErrors: [],
|
|
826
|
+
getCurrentStack: null,
|
|
827
|
+
recentlyCreatedOwnerStacks: 0
|
|
828
|
+
}, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
|
|
829
|
+
return null;
|
|
830
|
+
};
|
|
831
|
+
deprecatedAPIs = { react_stack_bottom_frame: function(callStackForError) {
|
|
832
|
+
return callStackForError();
|
|
833
|
+
} };
|
|
834
|
+
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
835
|
+
var didWarnAboutElementRef = {};
|
|
836
|
+
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(deprecatedAPIs, UnknownOwner)();
|
|
837
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
838
|
+
var didWarnAboutMaps = !1, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
839
|
+
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
840
|
+
var event = new window.ErrorEvent("error", {
|
|
841
|
+
bubbles: !0,
|
|
842
|
+
cancelable: !0,
|
|
843
|
+
message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
|
|
844
|
+
error
|
|
845
|
+
});
|
|
846
|
+
if (!window.dispatchEvent(event)) return;
|
|
847
|
+
} else if ("object" === typeof process && "function" === typeof process.emit) {
|
|
848
|
+
process.emit("uncaughtException", error);
|
|
849
|
+
return;
|
|
850
|
+
}
|
|
851
|
+
console.error(error);
|
|
852
|
+
}, didWarnAboutMessageChannel = !1, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = !1, isFlushing = !1, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
|
|
853
|
+
queueMicrotask(function() {
|
|
854
|
+
return queueMicrotask(callback);
|
|
855
|
+
});
|
|
856
|
+
} : enqueueTask;
|
|
857
|
+
deprecatedAPIs = Object.freeze({
|
|
858
|
+
__proto__: null,
|
|
859
|
+
c: function(size) {
|
|
860
|
+
return resolveDispatcher().useMemoCache(size);
|
|
861
|
+
}
|
|
862
|
+
});
|
|
863
|
+
var fnName = {
|
|
864
|
+
map: mapChildren,
|
|
865
|
+
forEach: function(children, forEachFunc, forEachContext) {
|
|
866
|
+
mapChildren(children, function() {
|
|
867
|
+
forEachFunc.apply(this, arguments);
|
|
868
|
+
}, forEachContext);
|
|
869
|
+
},
|
|
870
|
+
count: function(children) {
|
|
871
|
+
var n = 0;
|
|
872
|
+
mapChildren(children, function() {
|
|
873
|
+
n++;
|
|
874
|
+
});
|
|
875
|
+
return n;
|
|
876
|
+
},
|
|
877
|
+
toArray: function(children) {
|
|
878
|
+
return mapChildren(children, function(child) {
|
|
879
|
+
return child;
|
|
880
|
+
}) || [];
|
|
881
|
+
},
|
|
882
|
+
only: function(children) {
|
|
883
|
+
if (!isValidElement(children)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
884
|
+
return children;
|
|
885
|
+
}
|
|
886
|
+
};
|
|
887
|
+
exports.Activity = REACT_ACTIVITY_TYPE;
|
|
888
|
+
exports.Children = fnName;
|
|
889
|
+
exports.Component = Component;
|
|
890
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
891
|
+
exports.Profiler = REACT_PROFILER_TYPE;
|
|
892
|
+
exports.PureComponent = PureComponent;
|
|
893
|
+
exports.StrictMode = REACT_STRICT_MODE_TYPE;
|
|
894
|
+
exports.Suspense = REACT_SUSPENSE_TYPE;
|
|
895
|
+
exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
|
|
896
|
+
exports.__COMPILER_RUNTIME = deprecatedAPIs;
|
|
897
|
+
exports.act = function(callback) {
|
|
898
|
+
var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
|
|
899
|
+
actScopeDepth++;
|
|
900
|
+
var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = !1;
|
|
901
|
+
try {
|
|
902
|
+
var result = callback();
|
|
903
|
+
} catch (error) {
|
|
904
|
+
ReactSharedInternals.thrownErrors.push(error);
|
|
905
|
+
}
|
|
906
|
+
if (0 < ReactSharedInternals.thrownErrors.length) throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
907
|
+
if (null !== result && "object" === typeof result && "function" === typeof result.then) {
|
|
908
|
+
var thenable = result;
|
|
909
|
+
queueSeveralMicrotasks(function() {
|
|
910
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"));
|
|
911
|
+
});
|
|
912
|
+
return { then: function(resolve, reject) {
|
|
913
|
+
didAwaitActCall = !0;
|
|
914
|
+
thenable.then(function(returnValue) {
|
|
915
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
916
|
+
if (0 === prevActScopeDepth) {
|
|
917
|
+
try {
|
|
918
|
+
flushActQueue(queue), enqueueTask(function() {
|
|
919
|
+
return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
|
|
920
|
+
});
|
|
921
|
+
} catch (error$0) {
|
|
922
|
+
ReactSharedInternals.thrownErrors.push(error$0);
|
|
923
|
+
}
|
|
924
|
+
if (0 < ReactSharedInternals.thrownErrors.length) {
|
|
925
|
+
var _thrownError = aggregateErrors(ReactSharedInternals.thrownErrors);
|
|
926
|
+
ReactSharedInternals.thrownErrors.length = 0;
|
|
927
|
+
reject(_thrownError);
|
|
928
|
+
}
|
|
929
|
+
} else resolve(returnValue);
|
|
930
|
+
}, function(error) {
|
|
931
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
932
|
+
0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
|
|
933
|
+
});
|
|
934
|
+
} };
|
|
935
|
+
}
|
|
936
|
+
var returnValue$jscomp$0 = result;
|
|
937
|
+
popActScope(prevActQueue, prevActScopeDepth);
|
|
938
|
+
0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
|
|
939
|
+
didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = !0, console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"));
|
|
940
|
+
}), ReactSharedInternals.actQueue = null);
|
|
941
|
+
if (0 < ReactSharedInternals.thrownErrors.length) throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
|
|
942
|
+
return { then: function(resolve, reject) {
|
|
943
|
+
didAwaitActCall = !0;
|
|
944
|
+
0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
|
|
945
|
+
return recursivelyFlushAsyncActWork(returnValue$jscomp$0, resolve, reject);
|
|
946
|
+
})) : resolve(returnValue$jscomp$0);
|
|
947
|
+
} };
|
|
948
|
+
};
|
|
949
|
+
exports.cache = function(fn) {
|
|
950
|
+
return function() {
|
|
951
|
+
return fn.apply(null, arguments);
|
|
952
|
+
};
|
|
953
|
+
};
|
|
954
|
+
exports.cacheSignal = function() {
|
|
955
|
+
return null;
|
|
956
|
+
};
|
|
957
|
+
exports.captureOwnerStack = function() {
|
|
958
|
+
var getCurrentStack = ReactSharedInternals.getCurrentStack;
|
|
959
|
+
return null === getCurrentStack ? null : getCurrentStack();
|
|
960
|
+
};
|
|
961
|
+
exports.cloneElement = function(element, config, children) {
|
|
962
|
+
if (null === element || void 0 === element) throw Error("The argument must be a React element, but you passed " + element + ".");
|
|
963
|
+
var props = assign({}, element.props), key = element.key, owner = element._owner;
|
|
964
|
+
if (null != config) {
|
|
965
|
+
var JSCompiler_inline_result;
|
|
966
|
+
a: {
|
|
967
|
+
if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(config, "ref").get) && JSCompiler_inline_result.isReactWarning) {
|
|
968
|
+
JSCompiler_inline_result = !1;
|
|
969
|
+
break a;
|
|
970
|
+
}
|
|
971
|
+
JSCompiler_inline_result = void 0 !== config.ref;
|
|
972
|
+
}
|
|
973
|
+
JSCompiler_inline_result && (owner = getOwner());
|
|
974
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
|
|
975
|
+
for (propName in config) !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
|
|
976
|
+
}
|
|
977
|
+
var propName = arguments.length - 2;
|
|
978
|
+
if (1 === propName) props.children = children;
|
|
979
|
+
else if (1 < propName) {
|
|
980
|
+
JSCompiler_inline_result = Array(propName);
|
|
981
|
+
for (var i = 0; i < propName; i++) JSCompiler_inline_result[i] = arguments[i + 2];
|
|
982
|
+
props.children = JSCompiler_inline_result;
|
|
983
|
+
}
|
|
984
|
+
props = ReactElement(element.type, key, props, owner, element._debugStack, element._debugTask);
|
|
985
|
+
for (key = 2; key < arguments.length; key++) validateChildKeys(arguments[key]);
|
|
986
|
+
return props;
|
|
987
|
+
};
|
|
988
|
+
exports.createContext = function(defaultValue) {
|
|
989
|
+
defaultValue = {
|
|
990
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
991
|
+
_currentValue: defaultValue,
|
|
992
|
+
_currentValue2: defaultValue,
|
|
993
|
+
_threadCount: 0,
|
|
994
|
+
Provider: null,
|
|
995
|
+
Consumer: null
|
|
996
|
+
};
|
|
997
|
+
defaultValue.Provider = defaultValue;
|
|
998
|
+
defaultValue.Consumer = {
|
|
999
|
+
$$typeof: REACT_CONSUMER_TYPE,
|
|
1000
|
+
_context: defaultValue
|
|
1001
|
+
};
|
|
1002
|
+
defaultValue._currentRenderer = null;
|
|
1003
|
+
defaultValue._currentRenderer2 = null;
|
|
1004
|
+
return defaultValue;
|
|
1005
|
+
};
|
|
1006
|
+
exports.createElement = function(type, config, children) {
|
|
1007
|
+
for (var i = 2; i < arguments.length; i++) validateChildKeys(arguments[i]);
|
|
1008
|
+
i = {};
|
|
1009
|
+
var key = null;
|
|
1010
|
+
if (null != config) for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = !0, console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")), hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key), config) hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
|
|
1011
|
+
var childrenLength = arguments.length - 2;
|
|
1012
|
+
if (1 === childrenLength) i.children = children;
|
|
1013
|
+
else if (1 < childrenLength) {
|
|
1014
|
+
for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++) childArray[_i] = arguments[_i + 2];
|
|
1015
|
+
Object.freeze && Object.freeze(childArray);
|
|
1016
|
+
i.children = childArray;
|
|
1017
|
+
}
|
|
1018
|
+
if (type && type.defaultProps) for (propName in childrenLength = type.defaultProps, childrenLength) void 0 === i[propName] && (i[propName] = childrenLength[propName]);
|
|
1019
|
+
key && defineKeyPropWarningGetter(i, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
|
|
1020
|
+
var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1021
|
+
return ReactElement(type, key, i, getOwner(), propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack, propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1022
|
+
};
|
|
1023
|
+
exports.createRef = function() {
|
|
1024
|
+
var refObject = { current: null };
|
|
1025
|
+
Object.seal(refObject);
|
|
1026
|
+
return refObject;
|
|
1027
|
+
};
|
|
1028
|
+
exports.forwardRef = function(render) {
|
|
1029
|
+
null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...)).") : "function" !== typeof render ? console.error("forwardRef requires a render function but was given %s.", null === render ? "null" : typeof render) : 0 !== render.length && 2 !== render.length && console.error("forwardRef render functions accept exactly two parameters: props and ref. %s", 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined.");
|
|
1030
|
+
null != render && null != render.defaultProps && console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");
|
|
1031
|
+
var elementType = {
|
|
1032
|
+
$$typeof: REACT_FORWARD_REF_TYPE,
|
|
1033
|
+
render
|
|
1034
|
+
}, ownName;
|
|
1035
|
+
Object.defineProperty(elementType, "displayName", {
|
|
1036
|
+
enumerable: !1,
|
|
1037
|
+
configurable: !0,
|
|
1038
|
+
get: function() {
|
|
1039
|
+
return ownName;
|
|
1040
|
+
},
|
|
1041
|
+
set: function(name) {
|
|
1042
|
+
ownName = name;
|
|
1043
|
+
render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
|
|
1044
|
+
}
|
|
1045
|
+
});
|
|
1046
|
+
return elementType;
|
|
1047
|
+
};
|
|
1048
|
+
exports.isValidElement = isValidElement;
|
|
1049
|
+
exports.lazy = function(ctor) {
|
|
1050
|
+
ctor = {
|
|
1051
|
+
_status: -1,
|
|
1052
|
+
_result: ctor
|
|
1053
|
+
};
|
|
1054
|
+
var lazyType = {
|
|
1055
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1056
|
+
_payload: ctor,
|
|
1057
|
+
_init: lazyInitializer
|
|
1058
|
+
}, ioInfo = {
|
|
1059
|
+
name: "lazy",
|
|
1060
|
+
start: -1,
|
|
1061
|
+
end: -1,
|
|
1062
|
+
value: null,
|
|
1063
|
+
owner: null,
|
|
1064
|
+
debugStack: Error("react-stack-top-frame"),
|
|
1065
|
+
debugTask: console.createTask ? console.createTask("lazy()") : null
|
|
1066
|
+
};
|
|
1067
|
+
ctor._ioInfo = ioInfo;
|
|
1068
|
+
lazyType._debugInfo = [{ awaited: ioInfo }];
|
|
1069
|
+
return lazyType;
|
|
1070
|
+
};
|
|
1071
|
+
exports.memo = function(type, compare) {
|
|
1072
|
+
type ?? console.error("memo: The first argument must be a component. Instead received: %s", null === type ? "null" : typeof type);
|
|
1073
|
+
compare = {
|
|
1074
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1075
|
+
type,
|
|
1076
|
+
compare: void 0 === compare ? null : compare
|
|
1077
|
+
};
|
|
1078
|
+
var ownName;
|
|
1079
|
+
Object.defineProperty(compare, "displayName", {
|
|
1080
|
+
enumerable: !1,
|
|
1081
|
+
configurable: !0,
|
|
1082
|
+
get: function() {
|
|
1083
|
+
return ownName;
|
|
1084
|
+
},
|
|
1085
|
+
set: function(name) {
|
|
1086
|
+
ownName = name;
|
|
1087
|
+
type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
|
|
1088
|
+
}
|
|
1089
|
+
});
|
|
1090
|
+
return compare;
|
|
1091
|
+
};
|
|
1092
|
+
exports.startTransition = function(scope) {
|
|
1093
|
+
var prevTransition = ReactSharedInternals.T, currentTransition = {};
|
|
1094
|
+
currentTransition._updatedFibers = /* @__PURE__ */ new Set();
|
|
1095
|
+
ReactSharedInternals.T = currentTransition;
|
|
1096
|
+
try {
|
|
1097
|
+
var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
|
|
1098
|
+
null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
|
|
1099
|
+
"object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && (ReactSharedInternals.asyncTransitions++, returnValue.then(releaseAsyncTransition, releaseAsyncTransition), returnValue.then(noop, reportGlobalError));
|
|
1100
|
+
} catch (error) {
|
|
1101
|
+
reportGlobalError(error);
|
|
1102
|
+
} finally {
|
|
1103
|
+
null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")), null !== prevTransition && null !== currentTransition.types && (null !== prevTransition.types && prevTransition.types !== currentTransition.types && console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."), prevTransition.types = currentTransition.types), ReactSharedInternals.T = prevTransition;
|
|
1104
|
+
}
|
|
1105
|
+
};
|
|
1106
|
+
exports.unstable_useCacheRefresh = function() {
|
|
1107
|
+
return resolveDispatcher().useCacheRefresh();
|
|
1108
|
+
};
|
|
1109
|
+
exports.use = function(usable) {
|
|
1110
|
+
return resolveDispatcher().use(usable);
|
|
1111
|
+
};
|
|
1112
|
+
exports.useActionState = function(action, initialState, permalink) {
|
|
1113
|
+
return resolveDispatcher().useActionState(action, initialState, permalink);
|
|
1114
|
+
};
|
|
1115
|
+
exports.useCallback = function(callback, deps) {
|
|
1116
|
+
return resolveDispatcher().useCallback(callback, deps);
|
|
1117
|
+
};
|
|
1118
|
+
exports.useContext = function(Context) {
|
|
1119
|
+
var dispatcher = resolveDispatcher();
|
|
1120
|
+
Context.$$typeof === REACT_CONSUMER_TYPE && console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?");
|
|
1121
|
+
return dispatcher.useContext(Context);
|
|
1122
|
+
};
|
|
1123
|
+
exports.useDebugValue = function(value, formatterFn) {
|
|
1124
|
+
return resolveDispatcher().useDebugValue(value, formatterFn);
|
|
1125
|
+
};
|
|
1126
|
+
exports.useDeferredValue = function(value, initialValue) {
|
|
1127
|
+
return resolveDispatcher().useDeferredValue(value, initialValue);
|
|
1128
|
+
};
|
|
1129
|
+
exports.useEffect = function(create, deps) {
|
|
1130
|
+
create ?? console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1131
|
+
return resolveDispatcher().useEffect(create, deps);
|
|
1132
|
+
};
|
|
1133
|
+
exports.useEffectEvent = function(callback) {
|
|
1134
|
+
return resolveDispatcher().useEffectEvent(callback);
|
|
1135
|
+
};
|
|
1136
|
+
exports.useId = function() {
|
|
1137
|
+
return resolveDispatcher().useId();
|
|
1138
|
+
};
|
|
1139
|
+
exports.useImperativeHandle = function(ref, create, deps) {
|
|
1140
|
+
return resolveDispatcher().useImperativeHandle(ref, create, deps);
|
|
1141
|
+
};
|
|
1142
|
+
exports.useInsertionEffect = function(create, deps) {
|
|
1143
|
+
create ?? console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1144
|
+
return resolveDispatcher().useInsertionEffect(create, deps);
|
|
1145
|
+
};
|
|
1146
|
+
exports.useLayoutEffect = function(create, deps) {
|
|
1147
|
+
create ?? console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?");
|
|
1148
|
+
return resolveDispatcher().useLayoutEffect(create, deps);
|
|
1149
|
+
};
|
|
1150
|
+
exports.useMemo = function(create, deps) {
|
|
1151
|
+
return resolveDispatcher().useMemo(create, deps);
|
|
1152
|
+
};
|
|
1153
|
+
exports.useOptimistic = function(passthrough, reducer) {
|
|
1154
|
+
return resolveDispatcher().useOptimistic(passthrough, reducer);
|
|
1155
|
+
};
|
|
1156
|
+
exports.useReducer = function(reducer, initialArg, init) {
|
|
1157
|
+
return resolveDispatcher().useReducer(reducer, initialArg, init);
|
|
1158
|
+
};
|
|
1159
|
+
exports.useRef = function(initialValue) {
|
|
1160
|
+
return resolveDispatcher().useRef(initialValue);
|
|
1161
|
+
};
|
|
1162
|
+
exports.useState = function(initialState) {
|
|
1163
|
+
return resolveDispatcher().useState(initialState);
|
|
1164
|
+
};
|
|
1165
|
+
exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
|
|
1166
|
+
return resolveDispatcher().useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1167
|
+
};
|
|
1168
|
+
exports.useTransition = function() {
|
|
1169
|
+
return resolveDispatcher().useTransition();
|
|
1170
|
+
};
|
|
1171
|
+
exports.version = "19.2.8";
|
|
1172
|
+
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1173
|
+
})();
|
|
1174
|
+
}));
|
|
1175
|
+
//#endregion
|
|
1176
|
+
//#region ../../node_modules/.pnpm/react@19.2.8/node_modules/react/index.js
|
|
1177
|
+
var require_react = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1178
|
+
if (process.env.NODE_ENV === "production") module.exports = require_react_production();
|
|
1179
|
+
else module.exports = require_react_development();
|
|
1180
|
+
}));
|
|
1181
|
+
//#endregion
|
|
1182
|
+
//#region ../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-runtime.development.js
|
|
1183
|
+
/**
|
|
1184
|
+
* @license React
|
|
1185
|
+
* react-jsx-runtime.development.js
|
|
1186
|
+
*
|
|
1187
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
1188
|
+
*
|
|
1189
|
+
* This source code is licensed under the MIT license found in the
|
|
1190
|
+
* LICENSE file in the root directory of this source tree.
|
|
1191
|
+
*/
|
|
1192
|
+
var require_react_jsx_runtime_development = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1193
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
1194
|
+
function getComponentNameFromType(type) {
|
|
1195
|
+
if (null == type) return null;
|
|
1196
|
+
if ("function" === typeof type) return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
1197
|
+
if ("string" === typeof type) return type;
|
|
1198
|
+
switch (type) {
|
|
1199
|
+
case REACT_FRAGMENT_TYPE: return "Fragment";
|
|
1200
|
+
case REACT_PROFILER_TYPE: return "Profiler";
|
|
1201
|
+
case REACT_STRICT_MODE_TYPE: return "StrictMode";
|
|
1202
|
+
case REACT_SUSPENSE_TYPE: return "Suspense";
|
|
1203
|
+
case REACT_SUSPENSE_LIST_TYPE: return "SuspenseList";
|
|
1204
|
+
case REACT_ACTIVITY_TYPE: return "Activity";
|
|
1205
|
+
}
|
|
1206
|
+
if ("object" === typeof type) switch ("number" === typeof type.tag && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), type.$$typeof) {
|
|
1207
|
+
case REACT_PORTAL_TYPE: return "Portal";
|
|
1208
|
+
case REACT_CONTEXT_TYPE: return type.displayName || "Context";
|
|
1209
|
+
case REACT_CONSUMER_TYPE: return (type._context.displayName || "Context") + ".Consumer";
|
|
1210
|
+
case REACT_FORWARD_REF_TYPE:
|
|
1211
|
+
var innerType = type.render;
|
|
1212
|
+
type = type.displayName;
|
|
1213
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
1214
|
+
return type;
|
|
1215
|
+
case REACT_MEMO_TYPE: return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
1216
|
+
case REACT_LAZY_TYPE:
|
|
1217
|
+
innerType = type._payload;
|
|
1218
|
+
type = type._init;
|
|
1219
|
+
try {
|
|
1220
|
+
return getComponentNameFromType(type(innerType));
|
|
1221
|
+
} catch (x) {}
|
|
1222
|
+
}
|
|
1223
|
+
return null;
|
|
1224
|
+
}
|
|
1225
|
+
function testStringCoercion(value) {
|
|
1226
|
+
return "" + value;
|
|
1227
|
+
}
|
|
1228
|
+
function checkKeyStringCoercion(value) {
|
|
1229
|
+
try {
|
|
1230
|
+
testStringCoercion(value);
|
|
1231
|
+
var JSCompiler_inline_result = !1;
|
|
1232
|
+
} catch (e) {
|
|
1233
|
+
JSCompiler_inline_result = !0;
|
|
1234
|
+
}
|
|
1235
|
+
if (JSCompiler_inline_result) {
|
|
1236
|
+
JSCompiler_inline_result = console;
|
|
1237
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
1238
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
1239
|
+
JSCompiler_temp_const.call(JSCompiler_inline_result, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", JSCompiler_inline_result$jscomp$0);
|
|
1240
|
+
return testStringCoercion(value);
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
function getTaskName(type) {
|
|
1244
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
1245
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE) return "<...>";
|
|
1246
|
+
try {
|
|
1247
|
+
var name = getComponentNameFromType(type);
|
|
1248
|
+
return name ? "<" + name + ">" : "<...>";
|
|
1249
|
+
} catch (x) {
|
|
1250
|
+
return "<...>";
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
function getOwner() {
|
|
1254
|
+
var dispatcher = ReactSharedInternals.A;
|
|
1255
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
1256
|
+
}
|
|
1257
|
+
function UnknownOwner() {
|
|
1258
|
+
return Error("react-stack-top-frame");
|
|
1259
|
+
}
|
|
1260
|
+
function hasValidKey(config) {
|
|
1261
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1262
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
1263
|
+
if (getter && getter.isReactWarning) return !1;
|
|
1264
|
+
}
|
|
1265
|
+
return void 0 !== config.key;
|
|
1266
|
+
}
|
|
1267
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
1268
|
+
function warnAboutAccessingKey() {
|
|
1269
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", displayName));
|
|
1270
|
+
}
|
|
1271
|
+
warnAboutAccessingKey.isReactWarning = !0;
|
|
1272
|
+
Object.defineProperty(props, "key", {
|
|
1273
|
+
get: warnAboutAccessingKey,
|
|
1274
|
+
configurable: !0
|
|
1275
|
+
});
|
|
1276
|
+
}
|
|
1277
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
1278
|
+
var componentName = getComponentNameFromType(this.type);
|
|
1279
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."));
|
|
1280
|
+
componentName = this.props.ref;
|
|
1281
|
+
return void 0 !== componentName ? componentName : null;
|
|
1282
|
+
}
|
|
1283
|
+
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
1284
|
+
var refProp = props.ref;
|
|
1285
|
+
type = {
|
|
1286
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
1287
|
+
type,
|
|
1288
|
+
key,
|
|
1289
|
+
props,
|
|
1290
|
+
_owner: owner
|
|
1291
|
+
};
|
|
1292
|
+
null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
|
|
1293
|
+
enumerable: !1,
|
|
1294
|
+
get: elementRefGetterWithDeprecationWarning
|
|
1295
|
+
}) : Object.defineProperty(type, "ref", {
|
|
1296
|
+
enumerable: !1,
|
|
1297
|
+
value: null
|
|
1298
|
+
});
|
|
1299
|
+
type._store = {};
|
|
1300
|
+
Object.defineProperty(type._store, "validated", {
|
|
1301
|
+
configurable: !1,
|
|
1302
|
+
enumerable: !1,
|
|
1303
|
+
writable: !0,
|
|
1304
|
+
value: 0
|
|
1305
|
+
});
|
|
1306
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
1307
|
+
configurable: !1,
|
|
1308
|
+
enumerable: !1,
|
|
1309
|
+
writable: !0,
|
|
1310
|
+
value: null
|
|
1311
|
+
});
|
|
1312
|
+
Object.defineProperty(type, "_debugStack", {
|
|
1313
|
+
configurable: !1,
|
|
1314
|
+
enumerable: !1,
|
|
1315
|
+
writable: !0,
|
|
1316
|
+
value: debugStack
|
|
1317
|
+
});
|
|
1318
|
+
Object.defineProperty(type, "_debugTask", {
|
|
1319
|
+
configurable: !1,
|
|
1320
|
+
enumerable: !1,
|
|
1321
|
+
writable: !0,
|
|
1322
|
+
value: debugTask
|
|
1323
|
+
});
|
|
1324
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
1325
|
+
return type;
|
|
1326
|
+
}
|
|
1327
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
|
|
1328
|
+
var children = config.children;
|
|
1329
|
+
if (void 0 !== children) if (isStaticChildren) if (isArrayImpl(children)) {
|
|
1330
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++) validateChildKeys(children[isStaticChildren]);
|
|
1331
|
+
Object.freeze && Object.freeze(children);
|
|
1332
|
+
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
1333
|
+
else validateChildKeys(children);
|
|
1334
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
1335
|
+
children = getComponentNameFromType(type);
|
|
1336
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
1337
|
+
return "key" !== k;
|
|
1338
|
+
});
|
|
1339
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
1340
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", isStaticChildren, children, keys, children), didWarnAboutKeySpread[children + isStaticChildren] = !0);
|
|
1341
|
+
}
|
|
1342
|
+
children = null;
|
|
1343
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
1344
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
1345
|
+
if ("key" in config) {
|
|
1346
|
+
maybeKey = {};
|
|
1347
|
+
for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
|
|
1348
|
+
} else maybeKey = config;
|
|
1349
|
+
children && defineKeyPropWarningGetter(maybeKey, "function" === typeof type ? type.displayName || type.name || "Unknown" : type);
|
|
1350
|
+
return ReactElement(type, children, maybeKey, getOwner(), debugStack, debugTask);
|
|
1351
|
+
}
|
|
1352
|
+
function validateChildKeys(node) {
|
|
1353
|
+
isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
|
|
1354
|
+
}
|
|
1355
|
+
function isValidElement(object) {
|
|
1356
|
+
return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1357
|
+
}
|
|
1358
|
+
var React = require_react(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
1359
|
+
return null;
|
|
1360
|
+
};
|
|
1361
|
+
React = { react_stack_bottom_frame: function(callStackForError) {
|
|
1362
|
+
return callStackForError();
|
|
1363
|
+
} };
|
|
1364
|
+
var specialPropKeyWarningShown;
|
|
1365
|
+
var didWarnAboutElementRef = {};
|
|
1366
|
+
var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(React, UnknownOwner)();
|
|
1367
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1368
|
+
var didWarnAboutKeySpread = {};
|
|
1369
|
+
exports.Fragment = REACT_FRAGMENT_TYPE;
|
|
1370
|
+
exports.jsx = function(type, config, maybeKey) {
|
|
1371
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1372
|
+
return jsxDEVImpl(type, config, maybeKey, !1, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1373
|
+
};
|
|
1374
|
+
exports.jsxs = function(type, config, maybeKey) {
|
|
1375
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
1376
|
+
return jsxDEVImpl(type, config, maybeKey, !0, trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack, trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask);
|
|
1377
|
+
};
|
|
1378
|
+
})();
|
|
1379
|
+
}));
|
|
1380
|
+
//#endregion
|
|
1381
|
+
//#region src/acuity/icon.tsx
|
|
1382
|
+
var import_jsx_runtime = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1383
|
+
if (process.env.NODE_ENV === "production") module.exports = require_react_jsx_runtime_production();
|
|
1384
|
+
else module.exports = require_react_jsx_runtime_development();
|
|
1385
|
+
})))();
|
|
1386
|
+
function AcuityIcon({ className }) {
|
|
1387
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
1388
|
+
"aria-hidden": "true",
|
|
1389
|
+
className,
|
|
1390
|
+
fill: "none",
|
|
1391
|
+
viewBox: "0 0 24 24",
|
|
1392
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1393
|
+
children: [
|
|
1394
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("rect", {
|
|
1395
|
+
height: "17",
|
|
1396
|
+
rx: "3",
|
|
1397
|
+
stroke: "currentColor",
|
|
1398
|
+
strokeWidth: "1.8",
|
|
1399
|
+
width: "18",
|
|
1400
|
+
x: "3",
|
|
1401
|
+
y: "4"
|
|
1402
|
+
}),
|
|
1403
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1404
|
+
d: "M8 2.8v3.4M16 2.8v3.4M3.8 9.2h16.4",
|
|
1405
|
+
stroke: "currentColor",
|
|
1406
|
+
strokeLinecap: "round",
|
|
1407
|
+
strokeWidth: "1.8"
|
|
1408
|
+
}),
|
|
1409
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1410
|
+
d: "M12 13.2 10.2 16h3.6L12 13.2ZM9.4 13.2H7.9L10.6 9h2.8l2.7 4.2h-1.5",
|
|
1411
|
+
stroke: "currentColor",
|
|
1412
|
+
strokeLinecap: "round",
|
|
1413
|
+
strokeLinejoin: "round",
|
|
1414
|
+
strokeWidth: "1.5"
|
|
1415
|
+
})
|
|
1416
|
+
]
|
|
1417
|
+
});
|
|
1418
|
+
}
|
|
1419
|
+
Schema.String.pipe(Schema.decodeTo(Schema.String, SchemaTransformation.trim())).check(Schema.isMinLength(1));
|
|
1420
|
+
Schema.Record(Schema.String, Schema.Unknown);
|
|
1421
|
+
/**
|
|
1422
|
+
* Reads a value that arrived from outside the program, answering `undefined`
|
|
1423
|
+
* when it is not what `schema` describes.
|
|
1424
|
+
*
|
|
1425
|
+
* This is the repo's replacement for Zod's `.catch(undefined)`. Effect Schema
|
|
1426
|
+
* has no such combinator on a struct field, and a struct is the wrong tool for
|
|
1427
|
+
* a hostile document anyway: `Schema.Struct` looks a key up with `Object.hasOwn`,
|
|
1428
|
+
* so a member an SDK error class defines as a prototype getter is invisible to
|
|
1429
|
+
* it, and one wrong-typed field sinks the decode of every sibling beside it.
|
|
1430
|
+
* Reading one leaf at a time fixes both; `getErrorMessage` in `utils.ts` walks a
|
|
1431
|
+
* thrown value that way and finishes each walk here.
|
|
1432
|
+
*
|
|
1433
|
+
* `undefined` is this function's answer for "not what the schema describes", so
|
|
1434
|
+
* a schema that admits `undefined` as a value would make a successful read
|
|
1435
|
+
* indistinguishable from a failed one. The parameter type turns such a schema
|
|
1436
|
+
* away where it is written rather than letting the collapse happen at runtime.
|
|
1437
|
+
*/
|
|
1438
|
+
function readAs(schema) {
|
|
1439
|
+
const decode = Schema.decodeUnknownOption(schema);
|
|
1440
|
+
return (value) => Option.getOrUndefined(decode(value));
|
|
1441
|
+
}
|
|
1442
|
+
//#endregion
|
|
1443
|
+
//#region src/clerk/components/user-card.tsx
|
|
1444
|
+
const readClerkUserData = readAs(Schema.Struct({
|
|
1445
|
+
id: Schema.String,
|
|
1446
|
+
firstName: Schema.NullOr(Schema.String),
|
|
1447
|
+
lastName: Schema.NullOr(Schema.String),
|
|
1448
|
+
primaryEmailAddress: Schema.NullOr(Schema.String),
|
|
1449
|
+
createdAt: Schema.Finite
|
|
1450
|
+
}));
|
|
1451
|
+
function UserCard({ output }) {
|
|
1452
|
+
const data = readClerkUserData(output);
|
|
1453
|
+
if (!data) return null;
|
|
1454
|
+
const initials = compact([data.firstName?.[0], data.lastName?.[0]]).join("").toUpperCase();
|
|
1455
|
+
const fullName = compact([data.firstName, data.lastName]).join(" ");
|
|
1456
|
+
const createdDate = new Date(data.createdAt).toLocaleDateString();
|
|
1457
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1458
|
+
className: "flex items-center gap-4",
|
|
1459
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1460
|
+
className: "flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-violet-600 font-semibold text-lg text-white",
|
|
1461
|
+
children: initials || "?"
|
|
1462
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1463
|
+
className: "min-w-0 flex-1",
|
|
1464
|
+
children: [
|
|
1465
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1466
|
+
className: "truncate font-medium text-foreground",
|
|
1467
|
+
children: fullName || "Unknown User"
|
|
1468
|
+
}),
|
|
1469
|
+
data.primaryEmailAddress && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
1470
|
+
className: "truncate text-muted-foreground text-sm",
|
|
1471
|
+
children: data.primaryEmailAddress
|
|
1472
|
+
}),
|
|
1473
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
1474
|
+
className: "mt-0.5 font-mono text-muted-foreground text-xs",
|
|
1475
|
+
children: ["Created ", createdDate]
|
|
1476
|
+
})
|
|
1477
|
+
]
|
|
1478
|
+
})]
|
|
1479
|
+
});
|
|
1480
|
+
}
|
|
1481
|
+
//#endregion
|
|
1482
|
+
//#region src/clerk/icon.tsx
|
|
1483
|
+
function ClerkIcon({ className }) {
|
|
1484
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
1485
|
+
className,
|
|
1486
|
+
role: "img",
|
|
1487
|
+
viewBox: "0 0 128 128",
|
|
1488
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1489
|
+
children: [
|
|
1490
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
1491
|
+
cx: "64",
|
|
1492
|
+
cy: "64",
|
|
1493
|
+
fill: "currentColor",
|
|
1494
|
+
r: "20"
|
|
1495
|
+
}),
|
|
1496
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1497
|
+
d: "M99.5716 10.788C101.571 12.1272 101.742 14.9444 100.04 16.646L85.4244 31.2618C84.1035 32.5828 82.0542 32.7914 80.3915 31.9397C75.4752 29.421 69.9035 28 64 28C44.1177 28 28 44.1177 28 64C28 69.9035 29.421 75.4752 31.9397 80.3915C32.7914 82.0542 32.5828 84.1035 31.2618 85.4244L16.646 100.04C14.9444 101.742 12.1272 101.571 10.788 99.5716C3.97411 89.3989 0 77.1635 0 64C0 28.6538 28.6538 0 64 0C77.1635 0 89.3989 3.97411 99.5716 10.788Z",
|
|
1498
|
+
fill: "currentColor",
|
|
1499
|
+
fillOpacity: "0.6"
|
|
1500
|
+
}),
|
|
1501
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1502
|
+
d: "M100.04 111.354C101.742 113.056 101.571 115.873 99.5717 117.212C89.3989 124.026 77.1636 128 64 128C50.8364 128 38.6011 124.026 28.4283 117.212C26.4289 115.873 26.2581 113.056 27.9597 111.354L42.5755 96.7382C43.8965 95.4172 45.9457 95.2085 47.6084 96.0603C52.5248 98.579 58.0964 100 64 100C69.9036 100 75.4753 98.579 80.3916 96.0603C82.0543 95.2085 84.1036 95.4172 85.4245 96.7382L100.04 111.354Z",
|
|
1503
|
+
fill: "currentColor"
|
|
1504
|
+
})
|
|
1505
|
+
]
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
1508
|
+
//#endregion
|
|
1509
|
+
//#region src/linear/icon.tsx
|
|
1510
|
+
function LinearIcon({ className }) {
|
|
1511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
1512
|
+
"aria-label": "Linear",
|
|
1513
|
+
className,
|
|
1514
|
+
fill: "none",
|
|
1515
|
+
viewBox: "0 0 100 100",
|
|
1516
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1517
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", { children: "Linear" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1518
|
+
d: "M1.225 61.523c-.222-.949.908-1.546 1.597-.857l36.512 36.512c.69.69.092 1.82-.857 1.597-18.425-4.323-32.93-18.827-37.252-37.252ZM.002 46.889a.99.99 0 0 0 .29.76L52.35 99.71c.201.2.478.307.76.29 2.37-.149 4.695-.46 6.963-.927.765-.157 1.03-1.096.478-1.648L2.576 39.448c-.552-.551-1.491-.286-1.648.479a50.067 50.067 0 0 0-.926 6.962ZM4.21 29.705a.988.988 0 0 0 .208 1.1l64.776 64.776c.289.29.726.375 1.1.208a49.908 49.908 0 0 0 5.185-2.684.981.981 0 0 0 .183-1.54L8.436 24.336a.981.981 0 0 0-1.541.183 49.896 49.896 0 0 0-2.684 5.185Zm8.448-11.631a.986.986 0 0 1-.045-1.354C21.78 6.46 35.111 0 49.952 0 77.592 0 100 22.407 100 50.048c0 14.84-6.46 28.172-16.72 37.338a.986.986 0 0 1-1.354-.045L12.659 18.074Z",
|
|
1519
|
+
fill: "#5E6AD2"
|
|
1520
|
+
})]
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
//#endregion
|
|
1524
|
+
//#region src/resend/icon.tsx
|
|
1525
|
+
function ResendIcon({ className }) {
|
|
1526
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("svg", {
|
|
1527
|
+
className,
|
|
1528
|
+
fill: "currentColor",
|
|
1529
|
+
viewBox: "0 0 1800 1800",
|
|
1530
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1531
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1532
|
+
d: "M1000.46 450C1174.77 450 1278.43 553.669 1278.43 691.282C1278.43 828.896 1174.77 932.563 1000.46 932.563H912.382L1350 1350H1040.82L707.794 1033.48C683.944 1011.47 672.936 985.781 672.935 963.765C672.935 932.572 694.959 905.049 737.161 893.122L908.712 847.244C973.85 829.812 1018.81 779.353 1018.81 713.298C1018.8 632.567 952.745 585.78 871.095 585.78H450V450H1000.46Z",
|
|
1533
|
+
fill: "currentColor"
|
|
1534
|
+
})
|
|
1535
|
+
});
|
|
1536
|
+
}
|
|
1537
|
+
//#endregion
|
|
1538
|
+
//#region src/slack/icon.tsx
|
|
1539
|
+
function SlackIcon({ className }) {
|
|
1540
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
1541
|
+
"aria-label": "Slack",
|
|
1542
|
+
className,
|
|
1543
|
+
viewBox: "0 0 2447.6 2452.5",
|
|
1544
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1545
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", { children: "Slack" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", {
|
|
1546
|
+
clipRule: "evenodd",
|
|
1547
|
+
fillRule: "evenodd",
|
|
1548
|
+
children: [
|
|
1549
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1550
|
+
d: "m897.4 0c-135.3.1-244.8 109.9-244.7 245.2-.1 135.3 109.5 245.1 244.8 245.2h244.8v-245.1c.1-135.3-109.5-245.1-244.9-245.3.1 0 .1 0 0 0m0 654h-652.6c-135.3.1-244.9 109.9-244.8 245.2-.2 135.3 109.4 245.1 244.7 245.3h652.7c135.3-.1 244.9-109.9 244.8-245.2.1-135.4-109.5-245.2-244.8-245.3z",
|
|
1551
|
+
fill: "#36c5f0"
|
|
1552
|
+
}),
|
|
1553
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1554
|
+
d: "m2447.6 899.2c.1-135.3-109.5-245.1-244.8-245.2-135.3.1-244.9 109.9-244.8 245.2v245.3h244.8c135.3-.1 244.9-109.9 244.8-245.3zm-652.7 0v-654c.1-135.2-109.4-245-244.7-245.2-135.3.1-244.9 109.9-244.8 245.2v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.3z",
|
|
1555
|
+
fill: "#2eb67d"
|
|
1556
|
+
}),
|
|
1557
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1558
|
+
d: "m1550.1 2452.5c135.3-.1 244.9-109.9 244.8-245.2.1-135.3-109.5-245.1-244.8-245.2h-244.8v245.2c-.1 135.2 109.5 245 244.8 245.2zm0-654.1h652.7c135.3-.1 244.9-109.9 244.8-245.2.2-135.3-109.4-245.1-244.7-245.3h-652.7c-135.3.1-244.9 109.9-244.8 245.2-.1 135.4 109.4 245.2 244.7 245.3z",
|
|
1559
|
+
fill: "#ecb22e"
|
|
1560
|
+
}),
|
|
1561
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
|
|
1562
|
+
d: "m0 1553.2c-.1 135.3 109.5 245.1 244.8 245.2 135.3-.1 244.9-109.9 244.8-245.2v-245.2h-244.8c-135.3.1-244.9 109.9-244.8 245.2zm652.7 0v654c-.2 135.3 109.4 245.1 244.7 245.3 135.3-.1 244.9-109.9 244.8-245.2v-653.9c.2-135.3-109.4-245.1-244.7-245.3-135.4 0-244.9 109.8-244.8 245.1 0 0 0 .1 0 0",
|
|
1563
|
+
fill: "#e01e5a"
|
|
1564
|
+
})
|
|
1565
|
+
]
|
|
1566
|
+
})]
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
//#endregion
|
|
1570
|
+
//#region src/twilio/icon.tsx
|
|
1571
|
+
function TwilioIcon({ className }) {
|
|
1572
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
|
|
1573
|
+
"aria-label": "Twilio",
|
|
1574
|
+
className,
|
|
1575
|
+
fill: "none",
|
|
1576
|
+
viewBox: "0 0 24 24",
|
|
1577
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1578
|
+
children: [
|
|
1579
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", { children: "Twilio" }),
|
|
1580
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
1581
|
+
cx: "12",
|
|
1582
|
+
cy: "12",
|
|
1583
|
+
fill: "currentColor",
|
|
1584
|
+
r: "10"
|
|
1585
|
+
}),
|
|
1586
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
1587
|
+
cx: "9",
|
|
1588
|
+
cy: "9",
|
|
1589
|
+
fill: "white",
|
|
1590
|
+
r: "2"
|
|
1591
|
+
}),
|
|
1592
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
1593
|
+
cx: "15",
|
|
1594
|
+
cy: "9",
|
|
1595
|
+
fill: "white",
|
|
1596
|
+
r: "2"
|
|
1597
|
+
}),
|
|
1598
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
1599
|
+
cx: "9",
|
|
1600
|
+
cy: "15",
|
|
1601
|
+
fill: "white",
|
|
1602
|
+
r: "2"
|
|
1603
|
+
}),
|
|
1604
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", {
|
|
1605
|
+
cx: "15",
|
|
1606
|
+
cy: "15",
|
|
1607
|
+
fill: "white",
|
|
1608
|
+
r: "2"
|
|
1609
|
+
})
|
|
1610
|
+
]
|
|
1611
|
+
});
|
|
1612
|
+
}
|
|
1613
|
+
//#endregion
|
|
1614
|
+
//#region src/ui.ts
|
|
1615
|
+
const integrationUi = {
|
|
1616
|
+
acuity: { icon: AcuityIcon },
|
|
1617
|
+
clerk: {
|
|
1618
|
+
icon: ClerkIcon,
|
|
1619
|
+
outputComponents: {
|
|
1620
|
+
"get-user": UserCard,
|
|
1621
|
+
"create-user": UserCard,
|
|
1622
|
+
"update-user": UserCard
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
linear: { icon: LinearIcon },
|
|
1626
|
+
resend: { icon: ResendIcon },
|
|
1627
|
+
slack: { icon: SlackIcon },
|
|
1628
|
+
twilio: { icon: TwilioIcon }
|
|
1629
|
+
};
|
|
1630
|
+
//#endregion
|
|
1631
|
+
export { integrationUi };
|