@tokemak/constants 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +137 -0
  2. package/dist/index.js +2161 -0
  3. package/package.json +23 -0
package/dist/index.js ADDED
@@ -0,0 +1,2161 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __export = (target, all) => {
12
+ for (var name in all)
13
+ __defProp(target, name, { get: all[name], enumerable: true });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
+
33
+ // ../../node_modules/react/cjs/react-jsx-runtime.production.js
34
+ var require_react_jsx_runtime_production = __commonJS({
35
+ "../../node_modules/react/cjs/react-jsx-runtime.production.js"(exports) {
36
+ "use strict";
37
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
38
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
39
+ function jsxProd(type, config, maybeKey) {
40
+ var key = null;
41
+ void 0 !== maybeKey && (key = "" + maybeKey);
42
+ void 0 !== config.key && (key = "" + config.key);
43
+ if ("key" in config) {
44
+ maybeKey = {};
45
+ for (var propName in config)
46
+ "key" !== propName && (maybeKey[propName] = config[propName]);
47
+ } else
48
+ maybeKey = config;
49
+ config = maybeKey.ref;
50
+ return {
51
+ $$typeof: REACT_ELEMENT_TYPE,
52
+ type,
53
+ key,
54
+ ref: void 0 !== config ? config : null,
55
+ props: maybeKey
56
+ };
57
+ }
58
+ exports.Fragment = REACT_FRAGMENT_TYPE;
59
+ exports.jsx = jsxProd;
60
+ exports.jsxs = jsxProd;
61
+ }
62
+ });
63
+
64
+ // ../../node_modules/react/cjs/react.production.js
65
+ var require_react_production = __commonJS({
66
+ "../../node_modules/react/cjs/react.production.js"(exports) {
67
+ "use strict";
68
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
69
+ var REACT_PORTAL_TYPE = Symbol.for("react.portal");
70
+ var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
71
+ var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
72
+ var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
73
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer");
74
+ var REACT_CONTEXT_TYPE = Symbol.for("react.context");
75
+ var REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref");
76
+ var REACT_SUSPENSE_TYPE = Symbol.for("react.suspense");
77
+ var REACT_MEMO_TYPE = Symbol.for("react.memo");
78
+ var REACT_LAZY_TYPE = Symbol.for("react.lazy");
79
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
80
+ function getIteratorFn(maybeIterable) {
81
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
82
+ return null;
83
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
84
+ return "function" === typeof maybeIterable ? maybeIterable : null;
85
+ }
86
+ var ReactNoopUpdateQueue = {
87
+ isMounted: function() {
88
+ return false;
89
+ },
90
+ enqueueForceUpdate: function() {
91
+ },
92
+ enqueueReplaceState: function() {
93
+ },
94
+ enqueueSetState: function() {
95
+ }
96
+ };
97
+ var assign = Object.assign;
98
+ var emptyObject = {};
99
+ function Component(props, context, updater) {
100
+ this.props = props;
101
+ this.context = context;
102
+ this.refs = emptyObject;
103
+ this.updater = updater || ReactNoopUpdateQueue;
104
+ }
105
+ Component.prototype.isReactComponent = {};
106
+ Component.prototype.setState = function(partialState, callback) {
107
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
108
+ throw Error(
109
+ "takes an object of state variables to update or a function which returns an object of state variables."
110
+ );
111
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
112
+ };
113
+ Component.prototype.forceUpdate = function(callback) {
114
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
115
+ };
116
+ function ComponentDummy() {
117
+ }
118
+ ComponentDummy.prototype = Component.prototype;
119
+ function PureComponent(props, context, updater) {
120
+ this.props = props;
121
+ this.context = context;
122
+ this.refs = emptyObject;
123
+ this.updater = updater || ReactNoopUpdateQueue;
124
+ }
125
+ var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
126
+ pureComponentPrototype.constructor = PureComponent;
127
+ assign(pureComponentPrototype, Component.prototype);
128
+ pureComponentPrototype.isPureReactComponent = true;
129
+ var isArrayImpl = Array.isArray;
130
+ var ReactSharedInternals = { H: null, A: null, T: null, S: null, V: null };
131
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
132
+ function ReactElement(type, key, self, source, owner, props) {
133
+ self = props.ref;
134
+ return {
135
+ $$typeof: REACT_ELEMENT_TYPE,
136
+ type,
137
+ key,
138
+ ref: void 0 !== self ? self : null,
139
+ props
140
+ };
141
+ }
142
+ function cloneAndReplaceKey(oldElement, newKey) {
143
+ return ReactElement(
144
+ oldElement.type,
145
+ newKey,
146
+ void 0,
147
+ void 0,
148
+ void 0,
149
+ oldElement.props
150
+ );
151
+ }
152
+ function isValidElement(object) {
153
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
154
+ }
155
+ function escape(key) {
156
+ var escaperLookup = { "=": "=0", ":": "=2" };
157
+ return "$" + key.replace(/[=:]/g, function(match) {
158
+ return escaperLookup[match];
159
+ });
160
+ }
161
+ var userProvidedKeyEscapeRegex = /\/+/g;
162
+ function getElementKey(element, index) {
163
+ return "object" === typeof element && null !== element && null != element.key ? escape("" + element.key) : index.toString(36);
164
+ }
165
+ function noop$1() {
166
+ }
167
+ function resolveThenable(thenable) {
168
+ switch (thenable.status) {
169
+ case "fulfilled":
170
+ return thenable.value;
171
+ case "rejected":
172
+ throw thenable.reason;
173
+ default:
174
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
175
+ function(fulfilledValue) {
176
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
177
+ },
178
+ function(error) {
179
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
180
+ }
181
+ )), thenable.status) {
182
+ case "fulfilled":
183
+ return thenable.value;
184
+ case "rejected":
185
+ throw thenable.reason;
186
+ }
187
+ }
188
+ throw thenable;
189
+ }
190
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
191
+ var type = typeof children;
192
+ if ("undefined" === type || "boolean" === type)
193
+ children = null;
194
+ var invokeCallback = false;
195
+ if (null === children)
196
+ invokeCallback = true;
197
+ else
198
+ switch (type) {
199
+ case "bigint":
200
+ case "string":
201
+ case "number":
202
+ invokeCallback = true;
203
+ break;
204
+ case "object":
205
+ switch (children.$$typeof) {
206
+ case REACT_ELEMENT_TYPE:
207
+ case REACT_PORTAL_TYPE:
208
+ invokeCallback = true;
209
+ break;
210
+ case REACT_LAZY_TYPE:
211
+ return invokeCallback = children._init, mapIntoArray(
212
+ invokeCallback(children._payload),
213
+ array,
214
+ escapedPrefix,
215
+ nameSoFar,
216
+ callback
217
+ );
218
+ }
219
+ }
220
+ if (invokeCallback)
221
+ 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) {
222
+ return c;
223
+ })) : null != callback && (isValidElement(callback) && (callback = cloneAndReplaceKey(
224
+ callback,
225
+ escapedPrefix + (null == callback.key || children && children.key === callback.key ? "" : ("" + callback.key).replace(
226
+ userProvidedKeyEscapeRegex,
227
+ "$&/"
228
+ ) + "/") + invokeCallback
229
+ )), array.push(callback)), 1;
230
+ invokeCallback = 0;
231
+ var nextNamePrefix = "" === nameSoFar ? "." : nameSoFar + ":";
232
+ if (isArrayImpl(children))
233
+ for (var i = 0; i < children.length; i++)
234
+ nameSoFar = children[i], type = nextNamePrefix + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
235
+ nameSoFar,
236
+ array,
237
+ escapedPrefix,
238
+ type,
239
+ callback
240
+ );
241
+ else if (i = getIteratorFn(children), "function" === typeof i)
242
+ for (children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
243
+ nameSoFar = nameSoFar.value, type = nextNamePrefix + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
244
+ nameSoFar,
245
+ array,
246
+ escapedPrefix,
247
+ type,
248
+ callback
249
+ );
250
+ else if ("object" === type) {
251
+ if ("function" === typeof children.then)
252
+ return mapIntoArray(
253
+ resolveThenable(children),
254
+ array,
255
+ escapedPrefix,
256
+ nameSoFar,
257
+ callback
258
+ );
259
+ array = String(children);
260
+ throw Error(
261
+ "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."
262
+ );
263
+ }
264
+ return invokeCallback;
265
+ }
266
+ function mapChildren(children, func, context) {
267
+ if (null == children)
268
+ return children;
269
+ var result = [], count = 0;
270
+ mapIntoArray(children, result, "", "", function(child) {
271
+ return func.call(context, child, count++);
272
+ });
273
+ return result;
274
+ }
275
+ function lazyInitializer(payload) {
276
+ if (-1 === payload._status) {
277
+ var ctor = payload._result;
278
+ ctor = ctor();
279
+ ctor.then(
280
+ function(moduleObject) {
281
+ if (0 === payload._status || -1 === payload._status)
282
+ payload._status = 1, payload._result = moduleObject;
283
+ },
284
+ function(error) {
285
+ if (0 === payload._status || -1 === payload._status)
286
+ payload._status = 2, payload._result = error;
287
+ }
288
+ );
289
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
290
+ }
291
+ if (1 === payload._status)
292
+ return payload._result.default;
293
+ throw payload._result;
294
+ }
295
+ var reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
296
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
297
+ var event = new window.ErrorEvent("error", {
298
+ bubbles: true,
299
+ cancelable: true,
300
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
301
+ error
302
+ });
303
+ if (!window.dispatchEvent(event))
304
+ return;
305
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
306
+ process.emit("uncaughtException", error);
307
+ return;
308
+ }
309
+ console.error(error);
310
+ };
311
+ function noop() {
312
+ }
313
+ exports.Children = {
314
+ map: mapChildren,
315
+ forEach: function(children, forEachFunc, forEachContext) {
316
+ mapChildren(
317
+ children,
318
+ function() {
319
+ forEachFunc.apply(this, arguments);
320
+ },
321
+ forEachContext
322
+ );
323
+ },
324
+ count: function(children) {
325
+ var n = 0;
326
+ mapChildren(children, function() {
327
+ n++;
328
+ });
329
+ return n;
330
+ },
331
+ toArray: function(children) {
332
+ return mapChildren(children, function(child) {
333
+ return child;
334
+ }) || [];
335
+ },
336
+ only: function(children) {
337
+ if (!isValidElement(children))
338
+ throw Error(
339
+ "React.Children.only expected to receive a single React element child."
340
+ );
341
+ return children;
342
+ }
343
+ };
344
+ exports.Component = Component;
345
+ exports.Fragment = REACT_FRAGMENT_TYPE;
346
+ exports.Profiler = REACT_PROFILER_TYPE;
347
+ exports.PureComponent = PureComponent;
348
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
349
+ exports.Suspense = REACT_SUSPENSE_TYPE;
350
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
351
+ exports.__COMPILER_RUNTIME = {
352
+ __proto__: null,
353
+ c: function(size) {
354
+ return ReactSharedInternals.H.useMemoCache(size);
355
+ }
356
+ };
357
+ exports.cache = function(fn) {
358
+ return function() {
359
+ return fn.apply(null, arguments);
360
+ };
361
+ };
362
+ exports.cloneElement = function(element, config, children) {
363
+ if (null === element || void 0 === element)
364
+ throw Error(
365
+ "The argument must be a React element, but you passed " + element + "."
366
+ );
367
+ var props = assign({}, element.props), key = element.key, owner = void 0;
368
+ if (null != config)
369
+ for (propName in void 0 !== config.ref && (owner = void 0), void 0 !== config.key && (key = "" + config.key), config)
370
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
371
+ var propName = arguments.length - 2;
372
+ if (1 === propName)
373
+ props.children = children;
374
+ else if (1 < propName) {
375
+ for (var childArray = Array(propName), i = 0; i < propName; i++)
376
+ childArray[i] = arguments[i + 2];
377
+ props.children = childArray;
378
+ }
379
+ return ReactElement(element.type, key, void 0, void 0, owner, props);
380
+ };
381
+ exports.createContext = function(defaultValue) {
382
+ defaultValue = {
383
+ $$typeof: REACT_CONTEXT_TYPE,
384
+ _currentValue: defaultValue,
385
+ _currentValue2: defaultValue,
386
+ _threadCount: 0,
387
+ Provider: null,
388
+ Consumer: null
389
+ };
390
+ defaultValue.Provider = defaultValue;
391
+ defaultValue.Consumer = {
392
+ $$typeof: REACT_CONSUMER_TYPE,
393
+ _context: defaultValue
394
+ };
395
+ return defaultValue;
396
+ };
397
+ exports.createElement = function(type, config, children) {
398
+ var propName, props = {}, key = null;
399
+ if (null != config)
400
+ for (propName in void 0 !== config.key && (key = "" + config.key), config)
401
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (props[propName] = config[propName]);
402
+ var childrenLength = arguments.length - 2;
403
+ if (1 === childrenLength)
404
+ props.children = children;
405
+ else if (1 < childrenLength) {
406
+ for (var childArray = Array(childrenLength), i = 0; i < childrenLength; i++)
407
+ childArray[i] = arguments[i + 2];
408
+ props.children = childArray;
409
+ }
410
+ if (type && type.defaultProps)
411
+ for (propName in childrenLength = type.defaultProps, childrenLength)
412
+ void 0 === props[propName] && (props[propName] = childrenLength[propName]);
413
+ return ReactElement(type, key, void 0, void 0, null, props);
414
+ };
415
+ exports.createRef = function() {
416
+ return { current: null };
417
+ };
418
+ exports.forwardRef = function(render) {
419
+ return { $$typeof: REACT_FORWARD_REF_TYPE, render };
420
+ };
421
+ exports.isValidElement = isValidElement;
422
+ exports.lazy = function(ctor) {
423
+ return {
424
+ $$typeof: REACT_LAZY_TYPE,
425
+ _payload: { _status: -1, _result: ctor },
426
+ _init: lazyInitializer
427
+ };
428
+ };
429
+ exports.memo = function(type, compare) {
430
+ return {
431
+ $$typeof: REACT_MEMO_TYPE,
432
+ type,
433
+ compare: void 0 === compare ? null : compare
434
+ };
435
+ };
436
+ exports.startTransition = function(scope) {
437
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
438
+ ReactSharedInternals.T = currentTransition;
439
+ try {
440
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
441
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
442
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
443
+ } catch (error) {
444
+ reportGlobalError(error);
445
+ } finally {
446
+ ReactSharedInternals.T = prevTransition;
447
+ }
448
+ };
449
+ exports.unstable_useCacheRefresh = function() {
450
+ return ReactSharedInternals.H.useCacheRefresh();
451
+ };
452
+ exports.use = function(usable) {
453
+ return ReactSharedInternals.H.use(usable);
454
+ };
455
+ exports.useActionState = function(action, initialState, permalink) {
456
+ return ReactSharedInternals.H.useActionState(action, initialState, permalink);
457
+ };
458
+ exports.useCallback = function(callback, deps) {
459
+ return ReactSharedInternals.H.useCallback(callback, deps);
460
+ };
461
+ exports.useContext = function(Context) {
462
+ return ReactSharedInternals.H.useContext(Context);
463
+ };
464
+ exports.useDebugValue = function() {
465
+ };
466
+ exports.useDeferredValue = function(value, initialValue) {
467
+ return ReactSharedInternals.H.useDeferredValue(value, initialValue);
468
+ };
469
+ exports.useEffect = function(create, createDeps, update) {
470
+ var dispatcher = ReactSharedInternals.H;
471
+ if ("function" === typeof update)
472
+ throw Error(
473
+ "useEffect CRUD overload is not enabled in this build of React."
474
+ );
475
+ return dispatcher.useEffect(create, createDeps);
476
+ };
477
+ exports.useId = function() {
478
+ return ReactSharedInternals.H.useId();
479
+ };
480
+ exports.useImperativeHandle = function(ref, create, deps) {
481
+ return ReactSharedInternals.H.useImperativeHandle(ref, create, deps);
482
+ };
483
+ exports.useInsertionEffect = function(create, deps) {
484
+ return ReactSharedInternals.H.useInsertionEffect(create, deps);
485
+ };
486
+ exports.useLayoutEffect = function(create, deps) {
487
+ return ReactSharedInternals.H.useLayoutEffect(create, deps);
488
+ };
489
+ exports.useMemo = function(create, deps) {
490
+ return ReactSharedInternals.H.useMemo(create, deps);
491
+ };
492
+ exports.useOptimistic = function(passthrough, reducer) {
493
+ return ReactSharedInternals.H.useOptimistic(passthrough, reducer);
494
+ };
495
+ exports.useReducer = function(reducer, initialArg, init) {
496
+ return ReactSharedInternals.H.useReducer(reducer, initialArg, init);
497
+ };
498
+ exports.useRef = function(initialValue) {
499
+ return ReactSharedInternals.H.useRef(initialValue);
500
+ };
501
+ exports.useState = function(initialState) {
502
+ return ReactSharedInternals.H.useState(initialState);
503
+ };
504
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
505
+ return ReactSharedInternals.H.useSyncExternalStore(
506
+ subscribe,
507
+ getSnapshot,
508
+ getServerSnapshot
509
+ );
510
+ };
511
+ exports.useTransition = function() {
512
+ return ReactSharedInternals.H.useTransition();
513
+ };
514
+ exports.version = "19.1.0";
515
+ }
516
+ });
517
+
518
+ // ../../node_modules/react/cjs/react.development.js
519
+ var require_react_development = __commonJS({
520
+ "../../node_modules/react/cjs/react.development.js"(exports, module2) {
521
+ "use strict";
522
+ "production" !== process.env.NODE_ENV && function() {
523
+ function defineDeprecationWarning(methodName, info) {
524
+ Object.defineProperty(Component.prototype, methodName, {
525
+ get: function() {
526
+ console.warn(
527
+ "%s(...) is deprecated in plain JavaScript React classes. %s",
528
+ info[0],
529
+ info[1]
530
+ );
531
+ }
532
+ });
533
+ }
534
+ function getIteratorFn(maybeIterable) {
535
+ if (null === maybeIterable || "object" !== typeof maybeIterable)
536
+ return null;
537
+ maybeIterable = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable["@@iterator"];
538
+ return "function" === typeof maybeIterable ? maybeIterable : null;
539
+ }
540
+ function warnNoop(publicInstance, callerName) {
541
+ publicInstance = (publicInstance = publicInstance.constructor) && (publicInstance.displayName || publicInstance.name) || "ReactClass";
542
+ var warningKey = publicInstance + "." + callerName;
543
+ didWarnStateUpdateForUnmountedComponent[warningKey] || (console.error(
544
+ "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.",
545
+ callerName,
546
+ publicInstance
547
+ ), didWarnStateUpdateForUnmountedComponent[warningKey] = true);
548
+ }
549
+ function Component(props, context, updater) {
550
+ this.props = props;
551
+ this.context = context;
552
+ this.refs = emptyObject;
553
+ this.updater = updater || ReactNoopUpdateQueue;
554
+ }
555
+ function ComponentDummy() {
556
+ }
557
+ function PureComponent(props, context, updater) {
558
+ this.props = props;
559
+ this.context = context;
560
+ this.refs = emptyObject;
561
+ this.updater = updater || ReactNoopUpdateQueue;
562
+ }
563
+ function testStringCoercion(value) {
564
+ return "" + value;
565
+ }
566
+ function checkKeyStringCoercion(value) {
567
+ try {
568
+ testStringCoercion(value);
569
+ var JSCompiler_inline_result = false;
570
+ } catch (e) {
571
+ JSCompiler_inline_result = true;
572
+ }
573
+ if (JSCompiler_inline_result) {
574
+ JSCompiler_inline_result = console;
575
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
576
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
577
+ JSCompiler_temp_const.call(
578
+ JSCompiler_inline_result,
579
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
580
+ JSCompiler_inline_result$jscomp$0
581
+ );
582
+ return testStringCoercion(value);
583
+ }
584
+ }
585
+ function getComponentNameFromType(type) {
586
+ if (null == type)
587
+ return null;
588
+ if ("function" === typeof type)
589
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
590
+ if ("string" === typeof type)
591
+ return type;
592
+ switch (type) {
593
+ case REACT_FRAGMENT_TYPE:
594
+ return "Fragment";
595
+ case REACT_PROFILER_TYPE:
596
+ return "Profiler";
597
+ case REACT_STRICT_MODE_TYPE:
598
+ return "StrictMode";
599
+ case REACT_SUSPENSE_TYPE:
600
+ return "Suspense";
601
+ case REACT_SUSPENSE_LIST_TYPE:
602
+ return "SuspenseList";
603
+ case REACT_ACTIVITY_TYPE:
604
+ return "Activity";
605
+ }
606
+ if ("object" === typeof type)
607
+ switch ("number" === typeof type.tag && console.error(
608
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
609
+ ), type.$$typeof) {
610
+ case REACT_PORTAL_TYPE:
611
+ return "Portal";
612
+ case REACT_CONTEXT_TYPE:
613
+ return (type.displayName || "Context") + ".Provider";
614
+ case REACT_CONSUMER_TYPE:
615
+ return (type._context.displayName || "Context") + ".Consumer";
616
+ case REACT_FORWARD_REF_TYPE:
617
+ var innerType = type.render;
618
+ type = type.displayName;
619
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
620
+ return type;
621
+ case REACT_MEMO_TYPE:
622
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
623
+ case REACT_LAZY_TYPE:
624
+ innerType = type._payload;
625
+ type = type._init;
626
+ try {
627
+ return getComponentNameFromType(type(innerType));
628
+ } catch (x) {
629
+ }
630
+ }
631
+ return null;
632
+ }
633
+ function getTaskName(type) {
634
+ if (type === REACT_FRAGMENT_TYPE)
635
+ return "<>";
636
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
637
+ return "<...>";
638
+ try {
639
+ var name = getComponentNameFromType(type);
640
+ return name ? "<" + name + ">" : "<...>";
641
+ } catch (x) {
642
+ return "<...>";
643
+ }
644
+ }
645
+ function getOwner() {
646
+ var dispatcher = ReactSharedInternals.A;
647
+ return null === dispatcher ? null : dispatcher.getOwner();
648
+ }
649
+ function UnknownOwner() {
650
+ return Error("react-stack-top-frame");
651
+ }
652
+ function hasValidKey(config) {
653
+ if (hasOwnProperty.call(config, "key")) {
654
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
655
+ if (getter && getter.isReactWarning)
656
+ return false;
657
+ }
658
+ return void 0 !== config.key;
659
+ }
660
+ function defineKeyPropWarningGetter(props, displayName) {
661
+ function warnAboutAccessingKey() {
662
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
663
+ "%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)",
664
+ displayName
665
+ ));
666
+ }
667
+ warnAboutAccessingKey.isReactWarning = true;
668
+ Object.defineProperty(props, "key", {
669
+ get: warnAboutAccessingKey,
670
+ configurable: true
671
+ });
672
+ }
673
+ function elementRefGetterWithDeprecationWarning() {
674
+ var componentName = getComponentNameFromType(this.type);
675
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
676
+ "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."
677
+ ));
678
+ componentName = this.props.ref;
679
+ return void 0 !== componentName ? componentName : null;
680
+ }
681
+ function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
682
+ self = props.ref;
683
+ type = {
684
+ $$typeof: REACT_ELEMENT_TYPE,
685
+ type,
686
+ key,
687
+ props,
688
+ _owner: owner
689
+ };
690
+ null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
691
+ enumerable: false,
692
+ get: elementRefGetterWithDeprecationWarning
693
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
694
+ type._store = {};
695
+ Object.defineProperty(type._store, "validated", {
696
+ configurable: false,
697
+ enumerable: false,
698
+ writable: true,
699
+ value: 0
700
+ });
701
+ Object.defineProperty(type, "_debugInfo", {
702
+ configurable: false,
703
+ enumerable: false,
704
+ writable: true,
705
+ value: null
706
+ });
707
+ Object.defineProperty(type, "_debugStack", {
708
+ configurable: false,
709
+ enumerable: false,
710
+ writable: true,
711
+ value: debugStack
712
+ });
713
+ Object.defineProperty(type, "_debugTask", {
714
+ configurable: false,
715
+ enumerable: false,
716
+ writable: true,
717
+ value: debugTask
718
+ });
719
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
720
+ return type;
721
+ }
722
+ function cloneAndReplaceKey(oldElement, newKey) {
723
+ newKey = ReactElement(
724
+ oldElement.type,
725
+ newKey,
726
+ void 0,
727
+ void 0,
728
+ oldElement._owner,
729
+ oldElement.props,
730
+ oldElement._debugStack,
731
+ oldElement._debugTask
732
+ );
733
+ oldElement._store && (newKey._store.validated = oldElement._store.validated);
734
+ return newKey;
735
+ }
736
+ function isValidElement(object) {
737
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
738
+ }
739
+ function escape(key) {
740
+ var escaperLookup = { "=": "=0", ":": "=2" };
741
+ return "$" + key.replace(/[=:]/g, function(match) {
742
+ return escaperLookup[match];
743
+ });
744
+ }
745
+ function getElementKey(element, index) {
746
+ return "object" === typeof element && null !== element && null != element.key ? (checkKeyStringCoercion(element.key), escape("" + element.key)) : index.toString(36);
747
+ }
748
+ function noop$1() {
749
+ }
750
+ function resolveThenable(thenable) {
751
+ switch (thenable.status) {
752
+ case "fulfilled":
753
+ return thenable.value;
754
+ case "rejected":
755
+ throw thenable.reason;
756
+ default:
757
+ switch ("string" === typeof thenable.status ? thenable.then(noop$1, noop$1) : (thenable.status = "pending", thenable.then(
758
+ function(fulfilledValue) {
759
+ "pending" === thenable.status && (thenable.status = "fulfilled", thenable.value = fulfilledValue);
760
+ },
761
+ function(error) {
762
+ "pending" === thenable.status && (thenable.status = "rejected", thenable.reason = error);
763
+ }
764
+ )), thenable.status) {
765
+ case "fulfilled":
766
+ return thenable.value;
767
+ case "rejected":
768
+ throw thenable.reason;
769
+ }
770
+ }
771
+ throw thenable;
772
+ }
773
+ function mapIntoArray(children, array, escapedPrefix, nameSoFar, callback) {
774
+ var type = typeof children;
775
+ if ("undefined" === type || "boolean" === type)
776
+ children = null;
777
+ var invokeCallback = false;
778
+ if (null === children)
779
+ invokeCallback = true;
780
+ else
781
+ switch (type) {
782
+ case "bigint":
783
+ case "string":
784
+ case "number":
785
+ invokeCallback = true;
786
+ break;
787
+ case "object":
788
+ switch (children.$$typeof) {
789
+ case REACT_ELEMENT_TYPE:
790
+ case REACT_PORTAL_TYPE:
791
+ invokeCallback = true;
792
+ break;
793
+ case REACT_LAZY_TYPE:
794
+ return invokeCallback = children._init, mapIntoArray(
795
+ invokeCallback(children._payload),
796
+ array,
797
+ escapedPrefix,
798
+ nameSoFar,
799
+ callback
800
+ );
801
+ }
802
+ }
803
+ if (invokeCallback) {
804
+ invokeCallback = children;
805
+ callback = callback(invokeCallback);
806
+ var childKey = "" === nameSoFar ? "." + getElementKey(invokeCallback, 0) : nameSoFar;
807
+ isArrayImpl(callback) ? (escapedPrefix = "", null != childKey && (escapedPrefix = childKey.replace(userProvidedKeyEscapeRegex, "$&/") + "/"), mapIntoArray(callback, array, escapedPrefix, "", function(c) {
808
+ return c;
809
+ })) : null != callback && (isValidElement(callback) && (null != callback.key && (invokeCallback && invokeCallback.key === callback.key || checkKeyStringCoercion(callback.key)), escapedPrefix = cloneAndReplaceKey(
810
+ callback,
811
+ escapedPrefix + (null == callback.key || invokeCallback && invokeCallback.key === callback.key ? "" : ("" + callback.key).replace(
812
+ userProvidedKeyEscapeRegex,
813
+ "$&/"
814
+ ) + "/") + childKey
815
+ ), "" !== nameSoFar && null != invokeCallback && isValidElement(invokeCallback) && null == invokeCallback.key && invokeCallback._store && !invokeCallback._store.validated && (escapedPrefix._store.validated = 2), callback = escapedPrefix), array.push(callback));
816
+ return 1;
817
+ }
818
+ invokeCallback = 0;
819
+ childKey = "" === nameSoFar ? "." : nameSoFar + ":";
820
+ if (isArrayImpl(children))
821
+ for (var i = 0; i < children.length; i++)
822
+ nameSoFar = children[i], type = childKey + getElementKey(nameSoFar, i), invokeCallback += mapIntoArray(
823
+ nameSoFar,
824
+ array,
825
+ escapedPrefix,
826
+ type,
827
+ callback
828
+ );
829
+ else if (i = getIteratorFn(children), "function" === typeof i)
830
+ for (i === children.entries && (didWarnAboutMaps || console.warn(
831
+ "Using Maps as children is not supported. Use an array of keyed ReactElements instead."
832
+ ), didWarnAboutMaps = true), children = i.call(children), i = 0; !(nameSoFar = children.next()).done; )
833
+ nameSoFar = nameSoFar.value, type = childKey + getElementKey(nameSoFar, i++), invokeCallback += mapIntoArray(
834
+ nameSoFar,
835
+ array,
836
+ escapedPrefix,
837
+ type,
838
+ callback
839
+ );
840
+ else if ("object" === type) {
841
+ if ("function" === typeof children.then)
842
+ return mapIntoArray(
843
+ resolveThenable(children),
844
+ array,
845
+ escapedPrefix,
846
+ nameSoFar,
847
+ callback
848
+ );
849
+ array = String(children);
850
+ throw Error(
851
+ "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."
852
+ );
853
+ }
854
+ return invokeCallback;
855
+ }
856
+ function mapChildren(children, func, context) {
857
+ if (null == children)
858
+ return children;
859
+ var result = [], count = 0;
860
+ mapIntoArray(children, result, "", "", function(child) {
861
+ return func.call(context, child, count++);
862
+ });
863
+ return result;
864
+ }
865
+ function lazyInitializer(payload) {
866
+ if (-1 === payload._status) {
867
+ var ctor = payload._result;
868
+ ctor = ctor();
869
+ ctor.then(
870
+ function(moduleObject) {
871
+ if (0 === payload._status || -1 === payload._status)
872
+ payload._status = 1, payload._result = moduleObject;
873
+ },
874
+ function(error) {
875
+ if (0 === payload._status || -1 === payload._status)
876
+ payload._status = 2, payload._result = error;
877
+ }
878
+ );
879
+ -1 === payload._status && (payload._status = 0, payload._result = ctor);
880
+ }
881
+ if (1 === payload._status)
882
+ return ctor = payload._result, void 0 === ctor && console.error(
883
+ "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?",
884
+ ctor
885
+ ), "default" in ctor || console.error(
886
+ "lazy: Expected the result of a dynamic import() call. Instead received: %s\n\nYour code should look like: \n const MyComponent = lazy(() => import('./MyComponent'))",
887
+ ctor
888
+ ), ctor.default;
889
+ throw payload._result;
890
+ }
891
+ function resolveDispatcher() {
892
+ var dispatcher = ReactSharedInternals.H;
893
+ null === dispatcher && console.error(
894
+ "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."
895
+ );
896
+ return dispatcher;
897
+ }
898
+ function noop() {
899
+ }
900
+ function enqueueTask(task) {
901
+ if (null === enqueueTaskImpl)
902
+ try {
903
+ var requireString = ("require" + Math.random()).slice(0, 7);
904
+ enqueueTaskImpl = (module2 && module2[requireString]).call(
905
+ module2,
906
+ "timers"
907
+ ).setImmediate;
908
+ } catch (_err) {
909
+ enqueueTaskImpl = function(callback) {
910
+ false === didWarnAboutMessageChannel && (didWarnAboutMessageChannel = true, "undefined" === typeof MessageChannel && console.error(
911
+ "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."
912
+ ));
913
+ var channel = new MessageChannel();
914
+ channel.port1.onmessage = callback;
915
+ channel.port2.postMessage(void 0);
916
+ };
917
+ }
918
+ return enqueueTaskImpl(task);
919
+ }
920
+ function aggregateErrors(errors) {
921
+ return 1 < errors.length && "function" === typeof AggregateError ? new AggregateError(errors) : errors[0];
922
+ }
923
+ function popActScope(prevActQueue, prevActScopeDepth) {
924
+ prevActScopeDepth !== actScopeDepth - 1 && console.error(
925
+ "You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "
926
+ );
927
+ actScopeDepth = prevActScopeDepth;
928
+ }
929
+ function recursivelyFlushAsyncActWork(returnValue, resolve, reject) {
930
+ var queue = ReactSharedInternals.actQueue;
931
+ if (null !== queue)
932
+ if (0 !== queue.length)
933
+ try {
934
+ flushActQueue(queue);
935
+ enqueueTask(function() {
936
+ return recursivelyFlushAsyncActWork(returnValue, resolve, reject);
937
+ });
938
+ return;
939
+ } catch (error) {
940
+ ReactSharedInternals.thrownErrors.push(error);
941
+ }
942
+ else
943
+ ReactSharedInternals.actQueue = null;
944
+ 0 < ReactSharedInternals.thrownErrors.length ? (queue = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, reject(queue)) : resolve(returnValue);
945
+ }
946
+ function flushActQueue(queue) {
947
+ if (!isFlushing) {
948
+ isFlushing = true;
949
+ var i = 0;
950
+ try {
951
+ for (; i < queue.length; i++) {
952
+ var callback = queue[i];
953
+ do {
954
+ ReactSharedInternals.didUsePromise = false;
955
+ var continuation = callback(false);
956
+ if (null !== continuation) {
957
+ if (ReactSharedInternals.didUsePromise) {
958
+ queue[i] = callback;
959
+ queue.splice(0, i);
960
+ return;
961
+ }
962
+ callback = continuation;
963
+ } else
964
+ break;
965
+ } while (1);
966
+ }
967
+ queue.length = 0;
968
+ } catch (error) {
969
+ queue.splice(0, i + 1), ReactSharedInternals.thrownErrors.push(error);
970
+ } finally {
971
+ isFlushing = false;
972
+ }
973
+ }
974
+ }
975
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
976
+ 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");
977
+ Symbol.for("react.provider");
978
+ var 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 = {
979
+ isMounted: function() {
980
+ return false;
981
+ },
982
+ enqueueForceUpdate: function(publicInstance) {
983
+ warnNoop(publicInstance, "forceUpdate");
984
+ },
985
+ enqueueReplaceState: function(publicInstance) {
986
+ warnNoop(publicInstance, "replaceState");
987
+ },
988
+ enqueueSetState: function(publicInstance) {
989
+ warnNoop(publicInstance, "setState");
990
+ }
991
+ }, assign = Object.assign, emptyObject = {};
992
+ Object.freeze(emptyObject);
993
+ Component.prototype.isReactComponent = {};
994
+ Component.prototype.setState = function(partialState, callback) {
995
+ if ("object" !== typeof partialState && "function" !== typeof partialState && null != partialState)
996
+ throw Error(
997
+ "takes an object of state variables to update or a function which returns an object of state variables."
998
+ );
999
+ this.updater.enqueueSetState(this, partialState, callback, "setState");
1000
+ };
1001
+ Component.prototype.forceUpdate = function(callback) {
1002
+ this.updater.enqueueForceUpdate(this, callback, "forceUpdate");
1003
+ };
1004
+ var deprecatedAPIs = {
1005
+ isMounted: [
1006
+ "isMounted",
1007
+ "Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."
1008
+ ],
1009
+ replaceState: [
1010
+ "replaceState",
1011
+ "Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."
1012
+ ]
1013
+ }, fnName;
1014
+ for (fnName in deprecatedAPIs)
1015
+ deprecatedAPIs.hasOwnProperty(fnName) && defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
1016
+ ComponentDummy.prototype = Component.prototype;
1017
+ deprecatedAPIs = PureComponent.prototype = new ComponentDummy();
1018
+ deprecatedAPIs.constructor = PureComponent;
1019
+ assign(deprecatedAPIs, Component.prototype);
1020
+ deprecatedAPIs.isPureReactComponent = true;
1021
+ var isArrayImpl = Array.isArray, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = {
1022
+ H: null,
1023
+ A: null,
1024
+ T: null,
1025
+ S: null,
1026
+ V: null,
1027
+ actQueue: null,
1028
+ isBatchingLegacy: false,
1029
+ didScheduleLegacyUpdate: false,
1030
+ didUsePromise: false,
1031
+ thrownErrors: [],
1032
+ getCurrentStack: null,
1033
+ recentlyCreatedOwnerStacks: 0
1034
+ }, hasOwnProperty = Object.prototype.hasOwnProperty, createTask = console.createTask ? console.createTask : function() {
1035
+ return null;
1036
+ };
1037
+ deprecatedAPIs = {
1038
+ "react-stack-bottom-frame": function(callStackForError) {
1039
+ return callStackForError();
1040
+ }
1041
+ };
1042
+ var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
1043
+ var didWarnAboutElementRef = {};
1044
+ var unknownOwnerDebugStack = deprecatedAPIs["react-stack-bottom-frame"].bind(deprecatedAPIs, UnknownOwner)();
1045
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1046
+ var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
1047
+ if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
1048
+ var event = new window.ErrorEvent("error", {
1049
+ bubbles: true,
1050
+ cancelable: true,
1051
+ message: "object" === typeof error && null !== error && "string" === typeof error.message ? String(error.message) : String(error),
1052
+ error
1053
+ });
1054
+ if (!window.dispatchEvent(event))
1055
+ return;
1056
+ } else if ("object" === typeof process && "function" === typeof process.emit) {
1057
+ process.emit("uncaughtException", error);
1058
+ return;
1059
+ }
1060
+ console.error(error);
1061
+ }, didWarnAboutMessageChannel = false, enqueueTaskImpl = null, actScopeDepth = 0, didWarnNoAwaitAct = false, isFlushing = false, queueSeveralMicrotasks = "function" === typeof queueMicrotask ? function(callback) {
1062
+ queueMicrotask(function() {
1063
+ return queueMicrotask(callback);
1064
+ });
1065
+ } : enqueueTask;
1066
+ deprecatedAPIs = Object.freeze({
1067
+ __proto__: null,
1068
+ c: function(size) {
1069
+ return resolveDispatcher().useMemoCache(size);
1070
+ }
1071
+ });
1072
+ exports.Children = {
1073
+ map: mapChildren,
1074
+ forEach: function(children, forEachFunc, forEachContext) {
1075
+ mapChildren(
1076
+ children,
1077
+ function() {
1078
+ forEachFunc.apply(this, arguments);
1079
+ },
1080
+ forEachContext
1081
+ );
1082
+ },
1083
+ count: function(children) {
1084
+ var n = 0;
1085
+ mapChildren(children, function() {
1086
+ n++;
1087
+ });
1088
+ return n;
1089
+ },
1090
+ toArray: function(children) {
1091
+ return mapChildren(children, function(child) {
1092
+ return child;
1093
+ }) || [];
1094
+ },
1095
+ only: function(children) {
1096
+ if (!isValidElement(children))
1097
+ throw Error(
1098
+ "React.Children.only expected to receive a single React element child."
1099
+ );
1100
+ return children;
1101
+ }
1102
+ };
1103
+ exports.Component = Component;
1104
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1105
+ exports.Profiler = REACT_PROFILER_TYPE;
1106
+ exports.PureComponent = PureComponent;
1107
+ exports.StrictMode = REACT_STRICT_MODE_TYPE;
1108
+ exports.Suspense = REACT_SUSPENSE_TYPE;
1109
+ exports.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE = ReactSharedInternals;
1110
+ exports.__COMPILER_RUNTIME = deprecatedAPIs;
1111
+ exports.act = function(callback) {
1112
+ var prevActQueue = ReactSharedInternals.actQueue, prevActScopeDepth = actScopeDepth;
1113
+ actScopeDepth++;
1114
+ var queue = ReactSharedInternals.actQueue = null !== prevActQueue ? prevActQueue : [], didAwaitActCall = false;
1115
+ try {
1116
+ var result = callback();
1117
+ } catch (error) {
1118
+ ReactSharedInternals.thrownErrors.push(error);
1119
+ }
1120
+ if (0 < ReactSharedInternals.thrownErrors.length)
1121
+ throw popActScope(prevActQueue, prevActScopeDepth), callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1122
+ if (null !== result && "object" === typeof result && "function" === typeof result.then) {
1123
+ var thenable = result;
1124
+ queueSeveralMicrotasks(function() {
1125
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1126
+ "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 () => ...);"
1127
+ ));
1128
+ });
1129
+ return {
1130
+ then: function(resolve, reject) {
1131
+ didAwaitActCall = true;
1132
+ thenable.then(
1133
+ function(returnValue) {
1134
+ popActScope(prevActQueue, prevActScopeDepth);
1135
+ if (0 === prevActScopeDepth) {
1136
+ try {
1137
+ flushActQueue(queue), enqueueTask(function() {
1138
+ return recursivelyFlushAsyncActWork(
1139
+ returnValue,
1140
+ resolve,
1141
+ reject
1142
+ );
1143
+ });
1144
+ } catch (error$0) {
1145
+ ReactSharedInternals.thrownErrors.push(error$0);
1146
+ }
1147
+ if (0 < ReactSharedInternals.thrownErrors.length) {
1148
+ var _thrownError = aggregateErrors(
1149
+ ReactSharedInternals.thrownErrors
1150
+ );
1151
+ ReactSharedInternals.thrownErrors.length = 0;
1152
+ reject(_thrownError);
1153
+ }
1154
+ } else
1155
+ resolve(returnValue);
1156
+ },
1157
+ function(error) {
1158
+ popActScope(prevActQueue, prevActScopeDepth);
1159
+ 0 < ReactSharedInternals.thrownErrors.length ? (error = aggregateErrors(
1160
+ ReactSharedInternals.thrownErrors
1161
+ ), ReactSharedInternals.thrownErrors.length = 0, reject(error)) : reject(error);
1162
+ }
1163
+ );
1164
+ }
1165
+ };
1166
+ }
1167
+ var returnValue$jscomp$0 = result;
1168
+ popActScope(prevActQueue, prevActScopeDepth);
1169
+ 0 === prevActScopeDepth && (flushActQueue(queue), 0 !== queue.length && queueSeveralMicrotasks(function() {
1170
+ didAwaitActCall || didWarnNoAwaitAct || (didWarnNoAwaitAct = true, console.error(
1171
+ "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(() => ...)"
1172
+ ));
1173
+ }), ReactSharedInternals.actQueue = null);
1174
+ if (0 < ReactSharedInternals.thrownErrors.length)
1175
+ throw callback = aggregateErrors(ReactSharedInternals.thrownErrors), ReactSharedInternals.thrownErrors.length = 0, callback;
1176
+ return {
1177
+ then: function(resolve, reject) {
1178
+ didAwaitActCall = true;
1179
+ 0 === prevActScopeDepth ? (ReactSharedInternals.actQueue = queue, enqueueTask(function() {
1180
+ return recursivelyFlushAsyncActWork(
1181
+ returnValue$jscomp$0,
1182
+ resolve,
1183
+ reject
1184
+ );
1185
+ })) : resolve(returnValue$jscomp$0);
1186
+ }
1187
+ };
1188
+ };
1189
+ exports.cache = function(fn) {
1190
+ return function() {
1191
+ return fn.apply(null, arguments);
1192
+ };
1193
+ };
1194
+ exports.captureOwnerStack = function() {
1195
+ var getCurrentStack = ReactSharedInternals.getCurrentStack;
1196
+ return null === getCurrentStack ? null : getCurrentStack();
1197
+ };
1198
+ exports.cloneElement = function(element, config, children) {
1199
+ if (null === element || void 0 === element)
1200
+ throw Error(
1201
+ "The argument must be a React element, but you passed " + element + "."
1202
+ );
1203
+ var props = assign({}, element.props), key = element.key, owner = element._owner;
1204
+ if (null != config) {
1205
+ var JSCompiler_inline_result;
1206
+ a: {
1207
+ if (hasOwnProperty.call(config, "ref") && (JSCompiler_inline_result = Object.getOwnPropertyDescriptor(
1208
+ config,
1209
+ "ref"
1210
+ ).get) && JSCompiler_inline_result.isReactWarning) {
1211
+ JSCompiler_inline_result = false;
1212
+ break a;
1213
+ }
1214
+ JSCompiler_inline_result = void 0 !== config.ref;
1215
+ }
1216
+ JSCompiler_inline_result && (owner = getOwner());
1217
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), key = "" + config.key);
1218
+ for (propName in config)
1219
+ !hasOwnProperty.call(config, propName) || "key" === propName || "__self" === propName || "__source" === propName || "ref" === propName && void 0 === config.ref || (props[propName] = config[propName]);
1220
+ }
1221
+ var propName = arguments.length - 2;
1222
+ if (1 === propName)
1223
+ props.children = children;
1224
+ else if (1 < propName) {
1225
+ JSCompiler_inline_result = Array(propName);
1226
+ for (var i = 0; i < propName; i++)
1227
+ JSCompiler_inline_result[i] = arguments[i + 2];
1228
+ props.children = JSCompiler_inline_result;
1229
+ }
1230
+ props = ReactElement(
1231
+ element.type,
1232
+ key,
1233
+ void 0,
1234
+ void 0,
1235
+ owner,
1236
+ props,
1237
+ element._debugStack,
1238
+ element._debugTask
1239
+ );
1240
+ for (key = 2; key < arguments.length; key++)
1241
+ owner = arguments[key], isValidElement(owner) && owner._store && (owner._store.validated = 1);
1242
+ return props;
1243
+ };
1244
+ exports.createContext = function(defaultValue) {
1245
+ defaultValue = {
1246
+ $$typeof: REACT_CONTEXT_TYPE,
1247
+ _currentValue: defaultValue,
1248
+ _currentValue2: defaultValue,
1249
+ _threadCount: 0,
1250
+ Provider: null,
1251
+ Consumer: null
1252
+ };
1253
+ defaultValue.Provider = defaultValue;
1254
+ defaultValue.Consumer = {
1255
+ $$typeof: REACT_CONSUMER_TYPE,
1256
+ _context: defaultValue
1257
+ };
1258
+ defaultValue._currentRenderer = null;
1259
+ defaultValue._currentRenderer2 = null;
1260
+ return defaultValue;
1261
+ };
1262
+ exports.createElement = function(type, config, children) {
1263
+ for (var i = 2; i < arguments.length; i++) {
1264
+ var node = arguments[i];
1265
+ isValidElement(node) && node._store && (node._store.validated = 1);
1266
+ }
1267
+ i = {};
1268
+ node = null;
1269
+ if (null != config)
1270
+ for (propName in didWarnAboutOldJSXRuntime || !("__self" in config) || "key" in config || (didWarnAboutOldJSXRuntime = true, console.warn(
1271
+ "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"
1272
+ )), hasValidKey(config) && (checkKeyStringCoercion(config.key), node = "" + config.key), config)
1273
+ hasOwnProperty.call(config, propName) && "key" !== propName && "__self" !== propName && "__source" !== propName && (i[propName] = config[propName]);
1274
+ var childrenLength = arguments.length - 2;
1275
+ if (1 === childrenLength)
1276
+ i.children = children;
1277
+ else if (1 < childrenLength) {
1278
+ for (var childArray = Array(childrenLength), _i = 0; _i < childrenLength; _i++)
1279
+ childArray[_i] = arguments[_i + 2];
1280
+ Object.freeze && Object.freeze(childArray);
1281
+ i.children = childArray;
1282
+ }
1283
+ if (type && type.defaultProps)
1284
+ for (propName in childrenLength = type.defaultProps, childrenLength)
1285
+ void 0 === i[propName] && (i[propName] = childrenLength[propName]);
1286
+ node && defineKeyPropWarningGetter(
1287
+ i,
1288
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1289
+ );
1290
+ var propName = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1291
+ return ReactElement(
1292
+ type,
1293
+ node,
1294
+ void 0,
1295
+ void 0,
1296
+ getOwner(),
1297
+ i,
1298
+ propName ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1299
+ propName ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1300
+ );
1301
+ };
1302
+ exports.createRef = function() {
1303
+ var refObject = { current: null };
1304
+ Object.seal(refObject);
1305
+ return refObject;
1306
+ };
1307
+ exports.forwardRef = function(render) {
1308
+ null != render && render.$$typeof === REACT_MEMO_TYPE ? console.error(
1309
+ "forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."
1310
+ ) : "function" !== typeof render ? console.error(
1311
+ "forwardRef requires a render function but was given %s.",
1312
+ null === render ? "null" : typeof render
1313
+ ) : 0 !== render.length && 2 !== render.length && console.error(
1314
+ "forwardRef render functions accept exactly two parameters: props and ref. %s",
1315
+ 1 === render.length ? "Did you forget to use the ref parameter?" : "Any additional parameter will be undefined."
1316
+ );
1317
+ null != render && null != render.defaultProps && console.error(
1318
+ "forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?"
1319
+ );
1320
+ var elementType = { $$typeof: REACT_FORWARD_REF_TYPE, render }, ownName;
1321
+ Object.defineProperty(elementType, "displayName", {
1322
+ enumerable: false,
1323
+ configurable: true,
1324
+ get: function() {
1325
+ return ownName;
1326
+ },
1327
+ set: function(name) {
1328
+ ownName = name;
1329
+ render.name || render.displayName || (Object.defineProperty(render, "name", { value: name }), render.displayName = name);
1330
+ }
1331
+ });
1332
+ return elementType;
1333
+ };
1334
+ exports.isValidElement = isValidElement;
1335
+ exports.lazy = function(ctor) {
1336
+ return {
1337
+ $$typeof: REACT_LAZY_TYPE,
1338
+ _payload: { _status: -1, _result: ctor },
1339
+ _init: lazyInitializer
1340
+ };
1341
+ };
1342
+ exports.memo = function(type, compare) {
1343
+ null == type && console.error(
1344
+ "memo: The first argument must be a component. Instead received: %s",
1345
+ null === type ? "null" : typeof type
1346
+ );
1347
+ compare = {
1348
+ $$typeof: REACT_MEMO_TYPE,
1349
+ type,
1350
+ compare: void 0 === compare ? null : compare
1351
+ };
1352
+ var ownName;
1353
+ Object.defineProperty(compare, "displayName", {
1354
+ enumerable: false,
1355
+ configurable: true,
1356
+ get: function() {
1357
+ return ownName;
1358
+ },
1359
+ set: function(name) {
1360
+ ownName = name;
1361
+ type.name || type.displayName || (Object.defineProperty(type, "name", { value: name }), type.displayName = name);
1362
+ }
1363
+ });
1364
+ return compare;
1365
+ };
1366
+ exports.startTransition = function(scope) {
1367
+ var prevTransition = ReactSharedInternals.T, currentTransition = {};
1368
+ ReactSharedInternals.T = currentTransition;
1369
+ currentTransition._updatedFibers = /* @__PURE__ */ new Set();
1370
+ try {
1371
+ var returnValue = scope(), onStartTransitionFinish = ReactSharedInternals.S;
1372
+ null !== onStartTransitionFinish && onStartTransitionFinish(currentTransition, returnValue);
1373
+ "object" === typeof returnValue && null !== returnValue && "function" === typeof returnValue.then && returnValue.then(noop, reportGlobalError);
1374
+ } catch (error) {
1375
+ reportGlobalError(error);
1376
+ } finally {
1377
+ null === prevTransition && currentTransition._updatedFibers && (scope = currentTransition._updatedFibers.size, currentTransition._updatedFibers.clear(), 10 < scope && console.warn(
1378
+ "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."
1379
+ )), ReactSharedInternals.T = prevTransition;
1380
+ }
1381
+ };
1382
+ exports.unstable_useCacheRefresh = function() {
1383
+ return resolveDispatcher().useCacheRefresh();
1384
+ };
1385
+ exports.use = function(usable) {
1386
+ return resolveDispatcher().use(usable);
1387
+ };
1388
+ exports.useActionState = function(action, initialState, permalink) {
1389
+ return resolveDispatcher().useActionState(
1390
+ action,
1391
+ initialState,
1392
+ permalink
1393
+ );
1394
+ };
1395
+ exports.useCallback = function(callback, deps) {
1396
+ return resolveDispatcher().useCallback(callback, deps);
1397
+ };
1398
+ exports.useContext = function(Context) {
1399
+ var dispatcher = resolveDispatcher();
1400
+ Context.$$typeof === REACT_CONSUMER_TYPE && console.error(
1401
+ "Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"
1402
+ );
1403
+ return dispatcher.useContext(Context);
1404
+ };
1405
+ exports.useDebugValue = function(value, formatterFn) {
1406
+ return resolveDispatcher().useDebugValue(value, formatterFn);
1407
+ };
1408
+ exports.useDeferredValue = function(value, initialValue) {
1409
+ return resolveDispatcher().useDeferredValue(value, initialValue);
1410
+ };
1411
+ exports.useEffect = function(create, createDeps, update) {
1412
+ null == create && console.warn(
1413
+ "React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1414
+ );
1415
+ var dispatcher = resolveDispatcher();
1416
+ if ("function" === typeof update)
1417
+ throw Error(
1418
+ "useEffect CRUD overload is not enabled in this build of React."
1419
+ );
1420
+ return dispatcher.useEffect(create, createDeps);
1421
+ };
1422
+ exports.useId = function() {
1423
+ return resolveDispatcher().useId();
1424
+ };
1425
+ exports.useImperativeHandle = function(ref, create, deps) {
1426
+ return resolveDispatcher().useImperativeHandle(ref, create, deps);
1427
+ };
1428
+ exports.useInsertionEffect = function(create, deps) {
1429
+ null == create && console.warn(
1430
+ "React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1431
+ );
1432
+ return resolveDispatcher().useInsertionEffect(create, deps);
1433
+ };
1434
+ exports.useLayoutEffect = function(create, deps) {
1435
+ null == create && console.warn(
1436
+ "React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"
1437
+ );
1438
+ return resolveDispatcher().useLayoutEffect(create, deps);
1439
+ };
1440
+ exports.useMemo = function(create, deps) {
1441
+ return resolveDispatcher().useMemo(create, deps);
1442
+ };
1443
+ exports.useOptimistic = function(passthrough, reducer) {
1444
+ return resolveDispatcher().useOptimistic(passthrough, reducer);
1445
+ };
1446
+ exports.useReducer = function(reducer, initialArg, init) {
1447
+ return resolveDispatcher().useReducer(reducer, initialArg, init);
1448
+ };
1449
+ exports.useRef = function(initialValue) {
1450
+ return resolveDispatcher().useRef(initialValue);
1451
+ };
1452
+ exports.useState = function(initialState) {
1453
+ return resolveDispatcher().useState(initialState);
1454
+ };
1455
+ exports.useSyncExternalStore = function(subscribe, getSnapshot, getServerSnapshot) {
1456
+ return resolveDispatcher().useSyncExternalStore(
1457
+ subscribe,
1458
+ getSnapshot,
1459
+ getServerSnapshot
1460
+ );
1461
+ };
1462
+ exports.useTransition = function() {
1463
+ return resolveDispatcher().useTransition();
1464
+ };
1465
+ exports.version = "19.1.0";
1466
+ "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1467
+ }();
1468
+ }
1469
+ });
1470
+
1471
+ // ../../node_modules/react/index.js
1472
+ var require_react = __commonJS({
1473
+ "../../node_modules/react/index.js"(exports, module2) {
1474
+ "use strict";
1475
+ if (process.env.NODE_ENV === "production") {
1476
+ module2.exports = require_react_production();
1477
+ } else {
1478
+ module2.exports = require_react_development();
1479
+ }
1480
+ }
1481
+ });
1482
+
1483
+ // ../../node_modules/react/cjs/react-jsx-runtime.development.js
1484
+ var require_react_jsx_runtime_development = __commonJS({
1485
+ "../../node_modules/react/cjs/react-jsx-runtime.development.js"(exports) {
1486
+ "use strict";
1487
+ "production" !== process.env.NODE_ENV && function() {
1488
+ function getComponentNameFromType(type) {
1489
+ if (null == type)
1490
+ return null;
1491
+ if ("function" === typeof type)
1492
+ return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
1493
+ if ("string" === typeof type)
1494
+ return type;
1495
+ switch (type) {
1496
+ case REACT_FRAGMENT_TYPE:
1497
+ return "Fragment";
1498
+ case REACT_PROFILER_TYPE:
1499
+ return "Profiler";
1500
+ case REACT_STRICT_MODE_TYPE:
1501
+ return "StrictMode";
1502
+ case REACT_SUSPENSE_TYPE:
1503
+ return "Suspense";
1504
+ case REACT_SUSPENSE_LIST_TYPE:
1505
+ return "SuspenseList";
1506
+ case REACT_ACTIVITY_TYPE:
1507
+ return "Activity";
1508
+ }
1509
+ if ("object" === typeof type)
1510
+ switch ("number" === typeof type.tag && console.error(
1511
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
1512
+ ), type.$$typeof) {
1513
+ case REACT_PORTAL_TYPE:
1514
+ return "Portal";
1515
+ case REACT_CONTEXT_TYPE:
1516
+ return (type.displayName || "Context") + ".Provider";
1517
+ case REACT_CONSUMER_TYPE:
1518
+ return (type._context.displayName || "Context") + ".Consumer";
1519
+ case REACT_FORWARD_REF_TYPE:
1520
+ var innerType = type.render;
1521
+ type = type.displayName;
1522
+ type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
1523
+ return type;
1524
+ case REACT_MEMO_TYPE:
1525
+ return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
1526
+ case REACT_LAZY_TYPE:
1527
+ innerType = type._payload;
1528
+ type = type._init;
1529
+ try {
1530
+ return getComponentNameFromType(type(innerType));
1531
+ } catch (x) {
1532
+ }
1533
+ }
1534
+ return null;
1535
+ }
1536
+ function testStringCoercion(value) {
1537
+ return "" + value;
1538
+ }
1539
+ function checkKeyStringCoercion(value) {
1540
+ try {
1541
+ testStringCoercion(value);
1542
+ var JSCompiler_inline_result = false;
1543
+ } catch (e) {
1544
+ JSCompiler_inline_result = true;
1545
+ }
1546
+ if (JSCompiler_inline_result) {
1547
+ JSCompiler_inline_result = console;
1548
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
1549
+ var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
1550
+ JSCompiler_temp_const.call(
1551
+ JSCompiler_inline_result,
1552
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
1553
+ JSCompiler_inline_result$jscomp$0
1554
+ );
1555
+ return testStringCoercion(value);
1556
+ }
1557
+ }
1558
+ function getTaskName(type) {
1559
+ if (type === REACT_FRAGMENT_TYPE)
1560
+ return "<>";
1561
+ if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
1562
+ return "<...>";
1563
+ try {
1564
+ var name = getComponentNameFromType(type);
1565
+ return name ? "<" + name + ">" : "<...>";
1566
+ } catch (x) {
1567
+ return "<...>";
1568
+ }
1569
+ }
1570
+ function getOwner() {
1571
+ var dispatcher = ReactSharedInternals.A;
1572
+ return null === dispatcher ? null : dispatcher.getOwner();
1573
+ }
1574
+ function UnknownOwner() {
1575
+ return Error("react-stack-top-frame");
1576
+ }
1577
+ function hasValidKey(config) {
1578
+ if (hasOwnProperty.call(config, "key")) {
1579
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
1580
+ if (getter && getter.isReactWarning)
1581
+ return false;
1582
+ }
1583
+ return void 0 !== config.key;
1584
+ }
1585
+ function defineKeyPropWarningGetter(props, displayName) {
1586
+ function warnAboutAccessingKey() {
1587
+ specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
1588
+ "%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)",
1589
+ displayName
1590
+ ));
1591
+ }
1592
+ warnAboutAccessingKey.isReactWarning = true;
1593
+ Object.defineProperty(props, "key", {
1594
+ get: warnAboutAccessingKey,
1595
+ configurable: true
1596
+ });
1597
+ }
1598
+ function elementRefGetterWithDeprecationWarning() {
1599
+ var componentName = getComponentNameFromType(this.type);
1600
+ didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
1601
+ "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."
1602
+ ));
1603
+ componentName = this.props.ref;
1604
+ return void 0 !== componentName ? componentName : null;
1605
+ }
1606
+ function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
1607
+ self = props.ref;
1608
+ type = {
1609
+ $$typeof: REACT_ELEMENT_TYPE,
1610
+ type,
1611
+ key,
1612
+ props,
1613
+ _owner: owner
1614
+ };
1615
+ null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
1616
+ enumerable: false,
1617
+ get: elementRefGetterWithDeprecationWarning
1618
+ }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
1619
+ type._store = {};
1620
+ Object.defineProperty(type._store, "validated", {
1621
+ configurable: false,
1622
+ enumerable: false,
1623
+ writable: true,
1624
+ value: 0
1625
+ });
1626
+ Object.defineProperty(type, "_debugInfo", {
1627
+ configurable: false,
1628
+ enumerable: false,
1629
+ writable: true,
1630
+ value: null
1631
+ });
1632
+ Object.defineProperty(type, "_debugStack", {
1633
+ configurable: false,
1634
+ enumerable: false,
1635
+ writable: true,
1636
+ value: debugStack
1637
+ });
1638
+ Object.defineProperty(type, "_debugTask", {
1639
+ configurable: false,
1640
+ enumerable: false,
1641
+ writable: true,
1642
+ value: debugTask
1643
+ });
1644
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
1645
+ return type;
1646
+ }
1647
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
1648
+ var children = config.children;
1649
+ if (void 0 !== children)
1650
+ if (isStaticChildren)
1651
+ if (isArrayImpl(children)) {
1652
+ for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
1653
+ validateChildKeys(children[isStaticChildren]);
1654
+ Object.freeze && Object.freeze(children);
1655
+ } else
1656
+ console.error(
1657
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
1658
+ );
1659
+ else
1660
+ validateChildKeys(children);
1661
+ if (hasOwnProperty.call(config, "key")) {
1662
+ children = getComponentNameFromType(type);
1663
+ var keys = Object.keys(config).filter(function(k) {
1664
+ return "key" !== k;
1665
+ });
1666
+ isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
1667
+ didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
1668
+ '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} />',
1669
+ isStaticChildren,
1670
+ children,
1671
+ keys,
1672
+ children
1673
+ ), didWarnAboutKeySpread[children + isStaticChildren] = true);
1674
+ }
1675
+ children = null;
1676
+ void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
1677
+ hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
1678
+ if ("key" in config) {
1679
+ maybeKey = {};
1680
+ for (var propName in config)
1681
+ "key" !== propName && (maybeKey[propName] = config[propName]);
1682
+ } else
1683
+ maybeKey = config;
1684
+ children && defineKeyPropWarningGetter(
1685
+ maybeKey,
1686
+ "function" === typeof type ? type.displayName || type.name || "Unknown" : type
1687
+ );
1688
+ return ReactElement(
1689
+ type,
1690
+ children,
1691
+ self,
1692
+ source,
1693
+ getOwner(),
1694
+ maybeKey,
1695
+ debugStack,
1696
+ debugTask
1697
+ );
1698
+ }
1699
+ function validateChildKeys(node) {
1700
+ "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
1701
+ }
1702
+ 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");
1703
+ Symbol.for("react.provider");
1704
+ var 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() {
1705
+ return null;
1706
+ };
1707
+ React = {
1708
+ "react-stack-bottom-frame": function(callStackForError) {
1709
+ return callStackForError();
1710
+ }
1711
+ };
1712
+ var specialPropKeyWarningShown;
1713
+ var didWarnAboutElementRef = {};
1714
+ var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
1715
+ React,
1716
+ UnknownOwner
1717
+ )();
1718
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
1719
+ var didWarnAboutKeySpread = {};
1720
+ exports.Fragment = REACT_FRAGMENT_TYPE;
1721
+ exports.jsx = function(type, config, maybeKey, source, self) {
1722
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1723
+ return jsxDEVImpl(
1724
+ type,
1725
+ config,
1726
+ maybeKey,
1727
+ false,
1728
+ source,
1729
+ self,
1730
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1731
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1732
+ );
1733
+ };
1734
+ exports.jsxs = function(type, config, maybeKey, source, self) {
1735
+ var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
1736
+ return jsxDEVImpl(
1737
+ type,
1738
+ config,
1739
+ maybeKey,
1740
+ true,
1741
+ source,
1742
+ self,
1743
+ trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
1744
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
1745
+ );
1746
+ };
1747
+ }();
1748
+ }
1749
+ });
1750
+
1751
+ // ../../node_modules/react/jsx-runtime.js
1752
+ var require_jsx_runtime = __commonJS({
1753
+ "../../node_modules/react/jsx-runtime.js"(exports, module2) {
1754
+ "use strict";
1755
+ if (process.env.NODE_ENV === "production") {
1756
+ module2.exports = require_react_jsx_runtime_production();
1757
+ } else {
1758
+ module2.exports = require_react_jsx_runtime_development();
1759
+ }
1760
+ }
1761
+ });
1762
+
1763
+ // src/index.ts
1764
+ var src_exports = {};
1765
+ __export(src_exports, {
1766
+ ACCTOKE_DOCS_LINK: () => ACCTOKE_DOCS_LINK,
1767
+ AUDITS_LINK: () => AUDITS_LINK,
1768
+ BASESCAN_LINK: () => BASESCAN_LINK,
1769
+ BASE_GAS_COSTS_FALLBACK: () => BASE_GAS_COSTS_FALLBACK,
1770
+ BLOG_WEBSITE_LINK: () => BLOG_WEBSITE_LINK,
1771
+ BUG_BOUNTY_LINK: () => BUG_BOUNTY_LINK,
1772
+ CAREERS_LINK: () => CAREERS_LINK,
1773
+ CERTORA_LINK: () => CERTORA_LINK,
1774
+ COINGECKO_LINK: () => COINGECKO_LINK,
1775
+ CONVEX_CLAIM_LINK: () => CONVEX_CLAIM_LINK,
1776
+ CONVEX_STAKE_LINK: () => CONVEX_STAKE_LINK,
1777
+ COW_SWAP_LINK: () => COW_SWAP_LINK,
1778
+ CURVE_API_URL: () => CURVE_API_URL,
1779
+ CURVE_LP_LINK: () => CURVE_LP_LINK,
1780
+ CURVE_POOL_LINK: () => CURVE_POOL_LINK,
1781
+ DISCORD_LINK: () => DISCORD_LINK,
1782
+ ETHERSCAN_LINK: () => ETHERSCAN_LINK,
1783
+ GITBOOK_LINK_V1: () => GITBOOK_LINK_V1,
1784
+ GITBOOK_LINK_V2: () => GITBOOK_LINK_V2,
1785
+ GITHUB_LINK: () => GITHUB_LINK,
1786
+ GOVERNANCE_LINK: () => GOVERNANCE_LINK,
1787
+ HALBORN_LINK: () => HALBORN_LINK,
1788
+ HEXENS_LINK: () => HEXENS_LINK,
1789
+ IMMUNEFI_LINK: () => IMMUNEFI_LINK,
1790
+ INCH_SWAP_LINK: () => INCH_SWAP_LINK,
1791
+ LLAMASWAP_LINK: () => LLAMASWAP_LINK,
1792
+ LOCK_FAQS: () => LOCK_FAQS,
1793
+ MAX_STOKE_MONTHS: () => MAX_STOKE_MONTHS,
1794
+ MEDIUM_LINK: () => MEDIUM_LINK,
1795
+ MIN_STOKE_MONTHS: () => MIN_STOKE_MONTHS,
1796
+ RADIO_LINK: () => RADIO_LINK,
1797
+ SHERLOCK_LINK: () => SHERLOCK_LINK,
1798
+ SPLASH_WEBSITE_LINK: () => SPLASH_WEBSITE_LINK,
1799
+ SUPPORTED_CHAINS: () => SUPPORTED_CHAINS,
1800
+ SUPPORTED_DEV_CHAINS: () => SUPPORTED_DEV_CHAINS,
1801
+ SUPPORTED_PROD_CHAINS: () => SUPPORTED_PROD_CHAINS,
1802
+ SUPPORTED_STOKE_CHAINS: () => SUPPORTED_STOKE_CHAINS,
1803
+ SUPPORTED_STOKE_DEV_CHAINS: () => SUPPORTED_STOKE_DEV_CHAINS,
1804
+ SUPPORTED_STOKE_PROD_CHAINS: () => SUPPORTED_STOKE_PROD_CHAINS,
1805
+ SUPPORTED_TOKE_CHAINS: () => SUPPORTED_TOKE_CHAINS,
1806
+ SUSHI_LP_LINK: () => SUSHI_LP_LINK,
1807
+ SUSHI_SWAP_LINK: () => SUSHI_SWAP_LINK,
1808
+ TALLY_LINK: () => TALLY_LINK,
1809
+ TERMS_OF_SERVICE_LINK: () => TERMS_OF_SERVICE_LINK,
1810
+ TOKEBASE_LINK: () => TOKEBASE_LINK,
1811
+ TOKEMAK_ACCTOKE_SUBGRAPH_URL: () => TOKEMAK_ACCTOKE_SUBGRAPH_URL,
1812
+ TOKEMAK_DYNAMIC_SWAP_ROUTES_URL: () => TOKEMAK_DYNAMIC_SWAP_ROUTES_URL,
1813
+ TOKEMAK_GENSTRAT_APRS_API_URL: () => TOKEMAK_GENSTRAT_APRS_API_URL,
1814
+ TOKEMAK_LAUNCH_TIMESTAMP: () => TOKEMAK_LAUNCH_TIMESTAMP,
1815
+ TOKEMAK_LAUNCH_TIMESTAMP_1_DAY_BEFORE: () => TOKEMAK_LAUNCH_TIMESTAMP_1_DAY_BEFORE,
1816
+ TOKEMAK_PRICES_STAGING_URL: () => TOKEMAK_PRICES_STAGING_URL,
1817
+ TOKEMAK_PROD_REWARDS_URL: () => TOKEMAK_PROD_REWARDS_URL,
1818
+ TOKEMAK_RADIO_LINK: () => TOKEMAK_RADIO_LINK,
1819
+ TOKEMAK_SWAP_PRICING_URL: () => TOKEMAK_SWAP_PRICING_URL,
1820
+ TOKEMAK_SWAP_QUOTE_URL: () => TOKEMAK_SWAP_QUOTE_URL,
1821
+ TOKEMERCH_LINK: () => TOKEMERCH_LINK,
1822
+ TOKE_CURVE_POOL_ID: () => TOKE_CURVE_POOL_ID,
1823
+ TOOLTIPS: () => TOOLTIPS,
1824
+ TWITTER_LINK: () => TWITTER_LINK,
1825
+ V1_APP_LINK: () => V1_APP_LINK,
1826
+ V1_SPLASH_LINK: () => V1_SPLASH_LINK,
1827
+ V2_ANNOUNCEMENT_ARTICLE_LINK: () => V2_ANNOUNCEMENT_ARTICLE_LINK,
1828
+ V2_APP_LINK: () => V2_APP_LINK,
1829
+ V2_MARKETPLACE_LINK: () => V2_MARKETPLACE_LINK,
1830
+ V2_TOUR_LINK: () => V2_TOUR_LINK,
1831
+ layerzeroScan: () => layerzeroScan
1832
+ });
1833
+ module.exports = __toCommonJS(src_exports);
1834
+
1835
+ // src/baseGasCosts.ts
1836
+ var BASE_GAS_COSTS_FALLBACK = {
1837
+ lock: 123638n,
1838
+ approve: 46540n,
1839
+ approveAndLock: 123638n + 46540n,
1840
+ unlock: 104187n,
1841
+ requestUnlock: 119186n,
1842
+ migrate: 242753n,
1843
+ stake: 115339n,
1844
+ approveAndStake: 115339n + 46540n,
1845
+ unstake: 147611n,
1846
+ requestUnstake: 102938n,
1847
+ // with staking
1848
+ depositStake: 250464n,
1849
+ wethApproveDepositStake: 46040n + 256120n,
1850
+ wethDepositStake: 256120n,
1851
+ swapDepositStake: 548180n,
1852
+ swapApproveDepositStake: 40221n + 548180n,
1853
+ unstakeAutoEth: 127426n,
1854
+ stakeAutoEth: 149541n,
1855
+ // no staking
1856
+ deposit: 166233n,
1857
+ wethDeposit: 171870n,
1858
+ wethApproveDeposit: 46040n + 171870n,
1859
+ swapDeposit: 440117n,
1860
+ swapApproveDeposit: 40221n + 440117n,
1861
+ withdraw: 190628n,
1862
+ withdrawWeth: 168630n,
1863
+ swapWithdraw: 445664n
1864
+ };
1865
+
1866
+ // src/curve.ts
1867
+ var CURVE_API_URL = "https://api.curve.finance/api/getPools/ethereum/factory-crypto";
1868
+ var TOKE_CURVE_POOL_ID = "factory-crypto-55";
1869
+
1870
+ // src/links.ts
1871
+ var GITBOOK_LINK_V1 = "https://docs.tokemak.xyz/";
1872
+ var GITBOOK_LINK_V2 = "https://docs.tokemak.xyz/";
1873
+ var GITHUB_LINK = "https://github.com/Tokemak";
1874
+ var TWITTER_LINK = "https://x.com/tokemakxyz";
1875
+ var MEDIUM_LINK = "https://medium.com/tokemak";
1876
+ var DISCORD_LINK = "http://discord.gg/tokemak";
1877
+ var TOKEMAK_RADIO_LINK = "https://www.tokemak.radio/";
1878
+ var COINGECKO_LINK = "https://www.coingecko.com/en/coins/tokemak";
1879
+ var TOKEMERCH_LINK = "https://tokemerch.xyz/";
1880
+ var TOKEBASE_LINK = "https://tokebase.xyz/";
1881
+ var RADIO_LINK = "https://www.tokemak.radio/";
1882
+ var GOVERNANCE_LINK = "https://snapshot.tokemak.xyz/#/";
1883
+ var CAREERS_LINK = "https://app.smartmatchjobs.com/job_searches/jobs_board?job_search_client_uuid=f99544ab-25a8-4242-a46e-57440c5342bd";
1884
+ var AUDITS_LINK = "https://docs.tokemak.xyz/developer-docs/security-and-audits";
1885
+ var BUG_BOUNTY_LINK = "https://r.xyz/bug-bounty/programs/tokemak";
1886
+ var SPLASH_WEBSITE_LINK = "https://www.tokemak.xyz/";
1887
+ var V1_SPLASH_LINK = "https://v1.tokemak.xyz/";
1888
+ var V1_APP_LINK = "https://v1.tokemak.xyz/";
1889
+ var V2_APP_LINK = "https://app.tokemak.xyz/";
1890
+ var V2_MARKETPLACE_LINK = "https://marketplace.tokemak.xyz/";
1891
+ var BLOG_WEBSITE_LINK = "https://blog.tokemak.xyz/";
1892
+ var TERMS_OF_SERVICE_LINK = "https://app.tokemak.xyz/terms";
1893
+ var TALLY_LINK = "tally.so";
1894
+ var V2_ANNOUNCEMENT_ARTICLE_LINK = `${BLOG_WEBSITE_LINK}post/autopilot-guarded-launch-announcement`;
1895
+ var ACCTOKE_DOCS_LINK = "https://docs.tokemak.xyz/toke/acctoke";
1896
+ var V2_TOUR_LINK = "https://www.figma.com/proto/XXveJKkpeZSBpKwCY1yKWD/Diagrams-and-Explainers?page-id=308%3A144&type=design&node-id=310-3938&viewport=895%2C546%2C0.04&scaling=min-zoom&starting-point-node-id=310%3A2153";
1897
+ var HALBORN_LINK = "https://www.halborn.com/";
1898
+ var IMMUNEFI_LINK = "https://immunefi.com/";
1899
+ var SHERLOCK_LINK = "https://sherlock.xyz/";
1900
+ var CERTORA_LINK = "https://www.certora.com/";
1901
+ var ETHERSCAN_LINK = "https://etherscan.io/";
1902
+ var BASESCAN_LINK = "https://basescan.org/";
1903
+ var HEXENS_LINK = "https://hexens.io/";
1904
+ var CURVE_POOL_LINK = "https://curve.finance/#/ethereum/pools/factory-crypto-55/swap";
1905
+ var SUSHI_SWAP_LINK = "https://www.sushi.com/swap?chainId=1&token0=NATIVE&token1=0x2e9d63788249371f1DFC918a52f8d799F4a38C94&swapAmount=";
1906
+ var INCH_SWAP_LINK = "https://app.1inch.io/#/1/simple/swap/ETH/TOKE";
1907
+ var COW_SWAP_LINK = "https://swap.cow.fi/#/1/swap/ETH/TOKE";
1908
+ var LLAMASWAP_LINK = "https://swap.defillama.com/?chain=ethereum&from=0x0000000000000000000000000000000000000000&to=0x2e9d63788249371f1dfc918a52f8d799f4a38c94";
1909
+ var SUSHI_LP_LINK = "https://www.sushi.com/ethereum/pool/v2/0xd4e7a6e2d03e4e48dfc27dd3f46df1c176647e38/add";
1910
+ var CURVE_LP_LINK = "https://curve.finance/#/ethereum/pools/factory-crypto-55/deposit";
1911
+ var CONVEX_STAKE_LINK = "https://curve.convexfinance.com/stake/ethereum/99";
1912
+ var CONVEX_CLAIM_LINK = "https://curve.convexfinance.com/claim";
1913
+
1914
+ // src/tokemak.ts
1915
+ var TOKEMAK_PROD_REWARDS_URL = "https://auto-rewards-prod-bucket-pool-stats-api-tokemakxyz.s3.amazonaws.com/current.json";
1916
+ var TOKEMAK_ACCTOKE_SUBGRAPH_URL = "https://subgraph.satsuma-prod.com/ba2506a7b20f/tokemak/AccToke/api";
1917
+ var TOKEMAK_LAUNCH_TIMESTAMP = 1726491784;
1918
+ var TOKEMAK_LAUNCH_TIMESTAMP_1_DAY_BEFORE = 1726420573;
1919
+ var TOKEMAK_SWAP_PRICING_URL = "https://swaps-pricing.tokemaklabs.com/price";
1920
+ var TOKEMAK_PRICES_STAGING_URL = "https://generic-swaps-prices-infra-staging-v2.tokemak.workers.dev/prices";
1921
+ var TOKEMAK_SWAP_QUOTE_URL = "https://swaps-pricing.tokemaklabs.com/swap-quote-v2";
1922
+ var TOKEMAK_GENSTRAT_APRS_API_URL = "https://genstrat-aprs.tokemaklabs.com/api/aprs";
1923
+ var TOKEMAK_DYNAMIC_SWAP_ROUTES_URL = "https://dynamic-swap-routes.tokemaklabs.com";
1924
+
1925
+ // src/faqs.tsx
1926
+ var import_jsx_runtime = __toESM(require_jsx_runtime());
1927
+ var LOCK_FAQS = [
1928
+ {
1929
+ question: "What is autoETH?",
1930
+ answer: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1931
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("b", { children: "autoETH is the receipt token for ETH deposited into an autoPool. " }),
1932
+ "As a share of the pool autoETH represents a share of the underlying deployed assets and is reward-bearing.",
1933
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
1934
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
1935
+ "The rewards are 50% of protocol owned assets (POA) revenue plus rewards accrued during the guarded launch."
1936
+ ] })
1937
+ },
1938
+ {
1939
+ question: "I have accTOKE, what do I need to do?",
1940
+ answer: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1941
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("b", { children: "No actions are necessary if you currently have accTOKE and want to partake in Tokemak\u2019s guarded launch of Autopilot." }),
1942
+ " ",
1943
+ "You will automatically start accruing rewards in the form of autoETH as the guarded launch goes live."
1944
+ ] })
1945
+ },
1946
+ {
1947
+ question: "I have staked TOKE (LD), what do I need to do?",
1948
+ answer: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
1949
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("b", { children: "Migrate your TOKE to earn autoETH rewards." }),
1950
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("br", {}),
1951
+ "The mechanics follow the same logic you are accustomed to from LDing in v1, user has to be staked for a full week before they begin earning rewards."
1952
+ ] })
1953
+ },
1954
+ {
1955
+ question: "How can I claim my accrued rewards?",
1956
+ answer: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "Users will be able to withdraw their rewards after the guarded phase has been completed." })
1957
+ },
1958
+ {
1959
+ question: "I do not see rewards accruing?",
1960
+ answer: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "Once TOKE is locked it begins earning autoETH rewards, which will begin to accrue to your reward balance the following Wednesday." })
1961
+ },
1962
+ {
1963
+ question: "What is the difference between accTOKE and locked TOKE?",
1964
+ answer: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: "accTOKE is the non-transferable accounting token for locked TOKE." })
1965
+ },
1966
+ {
1967
+ question: "What happened to Tokemak cycles?",
1968
+ answer: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: 'In the context of the Tokemak protocol updates, "cycles" have been replaced with a weekly timeframe for simplicity. This change streamlines the process for managing and understanding reward distributions, locking periods, and other protocol operations that previously operated on a cycle basis.' })
1969
+ }
1970
+ ];
1971
+
1972
+ // src/tooltips.ts
1973
+ var TOOLTIPS = {
1974
+ // HOME PAGE
1975
+ AUTO_REBALANCED: "Rebalances automatically optimized by Autopilot",
1976
+ AUTO_COMPOUNDED: "Returns are auto-compounded into Autopool",
1977
+ OPTIMIZED_YIELD: "Autopilot aims to optimize across included deployments and long-term outperform manual rebalances",
1978
+ LEVERAGE_FREE: "Free from liquidation risks",
1979
+ TRANSPARENT: "No black box - execution parameter constraints controlled fully on-chain, and full transparency of the Autopool's exposure.",
1980
+ AUDITED: "Codebase has undergone multiple rigorous audits from top blockchain security firms.",
1981
+ PARTIAL_SYSTEM_ACTIVE: "During guarded launch, Autopool is deploying to a limited amount of pools to test system stability and performance",
1982
+ TOTAL_ETH: "Total amount of ETH in the system",
1983
+ NAV_PER_SHARE: "Net asset value in ETH per Autopool share",
1984
+ IDLE_ETH: "Not deployed yet, but still held by the Autopool. In addition, the system keeps an idle amount to reduce gas costs for small withdrawals.",
1985
+ // ACCTOKE
1986
+ TVL: "Total value in USD of TOKE locked",
1987
+ TOTAL_TOKE: "Total amount of TOKE locked",
1988
+ TOTAL_EMISSIONS_PER_DAY: "Total amount of autoETH rewards distributed to accTOKE holders per day",
1989
+ TOTAL_AUTOETH_DISTRIBUTED: "Total amount of autoETH rewards distributed to accTOKE holders",
1990
+ UNLOCK_REQUEST_PERIOD: "Period while your TOKE can be requested to be unlocked. This period lasts for 7 days and reoccurs monthly. Once requested, TOKE will be withdrawable within 7 days.",
1991
+ MINIMUM_LOCK_DURATION: "The minimum amount of time your TOKE can be locked. Locks automatically renew every 4 weeks.",
1992
+ NEXT_UNLOCK_REQUEST_PERIOD: "Next time when your TOKE can be requested to be unlocked. This period lasts for 7 days and reoccurs monthly.",
1993
+ STARTS_EARNING_AUTOETH: "You begin earning autoETH once the accTOKE accounting system starts tracking your locked TOKE",
1994
+ AVAILABLE_TO_UNLOCK: "Time until your TOKE will be available to be withdrawn",
1995
+ ACC_TOKE: "",
1996
+ APR: "APR of autoETH rewards distributed to accTOKE holders",
1997
+ CURRENT_AUTO_RELOCK: "Current interval for your TOKE to be relocked. New recommended interval is 4 weeks to earn the maximum amount of autoETH rewards.",
1998
+ NEW_AUTO_RELOCK: "New interval at which your TOKE will be automatically relocked.",
1999
+ GAS_FEE: "The fee paid to the network to process your transaction. The fee is paid in ETH.",
2000
+ // TOKE/ETH LP
2001
+ CONVEX_TO_EARN: "Stake your TOKE Curve LP on Convex to earn rewards.",
2002
+ STARTS_EARNING_TOKE: "You begin earning TOKE once the accounting system starts tracking your staked TOKE SUSHI LP.",
2003
+ AVAILABLE_TO_UNSTAKE: "Time until your TOKE SUSHI LP will be available for unstaking"
2004
+ };
2005
+
2006
+ // src/multichain.ts
2007
+ var import_tokenlist = require("@tokemak/tokenlist");
2008
+ var layerzeroScan = "https://layerzeroscan.com/";
2009
+ var SUPPORTED_TOKE_CHAINS = [
2010
+ import_tokenlist.ETHEREUM_NETWORK,
2011
+ import_tokenlist.BASE_NETWORK,
2012
+ import_tokenlist.SONIC_NETWORK
2013
+ ];
2014
+
2015
+ // src/stoke.ts
2016
+ var import_tokenlist2 = require("@tokemak/tokenlist");
2017
+ var MIN_STOKE_MONTHS = 1;
2018
+ var MAX_STOKE_MONTHS = 4;
2019
+ var SUPPORTED_STOKE_PROD_CHAINS = [import_tokenlist2.ETHEREUM_NETWORK];
2020
+ var SUPPORTED_STOKE_DEV_CHAINS = [import_tokenlist2.ETHEREUM_NETWORK, import_tokenlist2.BASE_NETWORK];
2021
+ var SUPPORTED_STOKE_CHAINS = Array.from(
2022
+ /* @__PURE__ */ new Set([...SUPPORTED_STOKE_PROD_CHAINS, ...SUPPORTED_STOKE_DEV_CHAINS])
2023
+ );
2024
+
2025
+ // src/chains.ts
2026
+ var import_tokenlist3 = require("@tokemak/tokenlist");
2027
+ var import_config = require("@tokemak/config");
2028
+ var SUPPORTED_PROD_CHAINS = import_config.SUPPORTED_PROD_NETWORKS_IDS.map((chainId) => {
2029
+ const network = import_tokenlist3.ALL_NETWORKS.find((network2) => network2.chainId === chainId);
2030
+ return {
2031
+ ...network,
2032
+ chainId
2033
+ };
2034
+ });
2035
+ var SUPPORTED_DEV_CHAINS = import_config.SUPPORTED_DEV_NETWORKS_IDS.map(
2036
+ (chainId) => {
2037
+ const network = import_tokenlist3.ALL_NETWORKS.find((network2) => network2.chainId === chainId);
2038
+ return {
2039
+ ...network,
2040
+ chainId
2041
+ };
2042
+ }
2043
+ );
2044
+ var SUPPORTED_CHAINS = Array.from(
2045
+ /* @__PURE__ */ new Set([...SUPPORTED_PROD_CHAINS, ...SUPPORTED_DEV_CHAINS])
2046
+ );
2047
+ // Annotate the CommonJS export names for ESM import in node:
2048
+ 0 && (module.exports = {
2049
+ ACCTOKE_DOCS_LINK,
2050
+ AUDITS_LINK,
2051
+ BASESCAN_LINK,
2052
+ BASE_GAS_COSTS_FALLBACK,
2053
+ BLOG_WEBSITE_LINK,
2054
+ BUG_BOUNTY_LINK,
2055
+ CAREERS_LINK,
2056
+ CERTORA_LINK,
2057
+ COINGECKO_LINK,
2058
+ CONVEX_CLAIM_LINK,
2059
+ CONVEX_STAKE_LINK,
2060
+ COW_SWAP_LINK,
2061
+ CURVE_API_URL,
2062
+ CURVE_LP_LINK,
2063
+ CURVE_POOL_LINK,
2064
+ DISCORD_LINK,
2065
+ ETHERSCAN_LINK,
2066
+ GITBOOK_LINK_V1,
2067
+ GITBOOK_LINK_V2,
2068
+ GITHUB_LINK,
2069
+ GOVERNANCE_LINK,
2070
+ HALBORN_LINK,
2071
+ HEXENS_LINK,
2072
+ IMMUNEFI_LINK,
2073
+ INCH_SWAP_LINK,
2074
+ LLAMASWAP_LINK,
2075
+ LOCK_FAQS,
2076
+ MAX_STOKE_MONTHS,
2077
+ MEDIUM_LINK,
2078
+ MIN_STOKE_MONTHS,
2079
+ RADIO_LINK,
2080
+ SHERLOCK_LINK,
2081
+ SPLASH_WEBSITE_LINK,
2082
+ SUPPORTED_CHAINS,
2083
+ SUPPORTED_DEV_CHAINS,
2084
+ SUPPORTED_PROD_CHAINS,
2085
+ SUPPORTED_STOKE_CHAINS,
2086
+ SUPPORTED_STOKE_DEV_CHAINS,
2087
+ SUPPORTED_STOKE_PROD_CHAINS,
2088
+ SUPPORTED_TOKE_CHAINS,
2089
+ SUSHI_LP_LINK,
2090
+ SUSHI_SWAP_LINK,
2091
+ TALLY_LINK,
2092
+ TERMS_OF_SERVICE_LINK,
2093
+ TOKEBASE_LINK,
2094
+ TOKEMAK_ACCTOKE_SUBGRAPH_URL,
2095
+ TOKEMAK_DYNAMIC_SWAP_ROUTES_URL,
2096
+ TOKEMAK_GENSTRAT_APRS_API_URL,
2097
+ TOKEMAK_LAUNCH_TIMESTAMP,
2098
+ TOKEMAK_LAUNCH_TIMESTAMP_1_DAY_BEFORE,
2099
+ TOKEMAK_PRICES_STAGING_URL,
2100
+ TOKEMAK_PROD_REWARDS_URL,
2101
+ TOKEMAK_RADIO_LINK,
2102
+ TOKEMAK_SWAP_PRICING_URL,
2103
+ TOKEMAK_SWAP_QUOTE_URL,
2104
+ TOKEMERCH_LINK,
2105
+ TOKE_CURVE_POOL_ID,
2106
+ TOOLTIPS,
2107
+ TWITTER_LINK,
2108
+ V1_APP_LINK,
2109
+ V1_SPLASH_LINK,
2110
+ V2_ANNOUNCEMENT_ARTICLE_LINK,
2111
+ V2_APP_LINK,
2112
+ V2_MARKETPLACE_LINK,
2113
+ V2_TOUR_LINK,
2114
+ layerzeroScan
2115
+ });
2116
+ /*! Bundled license information:
2117
+
2118
+ react/cjs/react-jsx-runtime.production.js:
2119
+ (**
2120
+ * @license React
2121
+ * react-jsx-runtime.production.js
2122
+ *
2123
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2124
+ *
2125
+ * This source code is licensed under the MIT license found in the
2126
+ * LICENSE file in the root directory of this source tree.
2127
+ *)
2128
+
2129
+ react/cjs/react.production.js:
2130
+ (**
2131
+ * @license React
2132
+ * react.production.js
2133
+ *
2134
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2135
+ *
2136
+ * This source code is licensed under the MIT license found in the
2137
+ * LICENSE file in the root directory of this source tree.
2138
+ *)
2139
+
2140
+ react/cjs/react.development.js:
2141
+ (**
2142
+ * @license React
2143
+ * react.development.js
2144
+ *
2145
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2146
+ *
2147
+ * This source code is licensed under the MIT license found in the
2148
+ * LICENSE file in the root directory of this source tree.
2149
+ *)
2150
+
2151
+ react/cjs/react-jsx-runtime.development.js:
2152
+ (**
2153
+ * @license React
2154
+ * react-jsx-runtime.development.js
2155
+ *
2156
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
2157
+ *
2158
+ * This source code is licensed under the MIT license found in the
2159
+ * LICENSE file in the root directory of this source tree.
2160
+ *)
2161
+ */