@insforge/react 0.7.9 → 0.7.11-dev.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/dist/atoms.cjs +2138 -102
- package/dist/atoms.cjs.map +1 -1
- package/dist/atoms.js +2117 -96
- package/dist/atoms.js.map +1 -1
- package/dist/components.cjs +2258 -172
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +2105 -34
- package/dist/components.js.map +1 -1
- package/dist/forms.cjs +2138 -102
- package/dist/forms.cjs.map +1 -1
- package/dist/forms.js +2160 -139
- package/dist/forms.js.map +1 -1
- package/dist/hooks.cjs +0 -2
- package/dist/hooks.cjs.map +1 -1
- package/dist/hooks.js +0 -2
- package/dist/hooks.js.map +1 -1
- package/dist/index.cjs +2272 -187
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2110 -39
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,14 +1,415 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React2 from 'react';
|
|
2
|
+
import { createContext, forwardRef, useContext, useState, useMemo, useRef, useEffect, useCallback, isValidElement, cloneElement } from 'react';
|
|
2
3
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
3
4
|
import '@insforge/sdk';
|
|
4
5
|
import { InsforgeContext } from '@insforge/shared/react';
|
|
5
|
-
import '@emotion/cache';
|
|
6
|
-
import { keyframes as keyframes$1 } from '@emotion/react';
|
|
7
|
-
import styled from '@emotion/styled';
|
|
8
6
|
import { AlertTriangle, Check, EyeOff, Eye, Loader2, CircleCheck, LogOut } from 'lucide-react';
|
|
9
7
|
import { z } from 'zod';
|
|
10
8
|
|
|
11
|
-
|
|
9
|
+
var __create = Object.create;
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
12
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
13
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
16
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
17
|
+
};
|
|
18
|
+
var __copyProps = (to, from2, except, desc) => {
|
|
19
|
+
if (from2 && typeof from2 === "object" || typeof from2 === "function") {
|
|
20
|
+
for (let key of __getOwnPropNames(from2))
|
|
21
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
22
|
+
__defProp(to, key, { get: () => from2[key], enumerable: !(desc = __getOwnPropDesc(from2, key)) || desc.enumerable });
|
|
23
|
+
}
|
|
24
|
+
return to;
|
|
25
|
+
};
|
|
26
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
27
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
28
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
29
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
30
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
31
|
+
!mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
32
|
+
mod
|
|
33
|
+
));
|
|
34
|
+
|
|
35
|
+
// ../node_modules/react-is/cjs/react-is.production.min.js
|
|
36
|
+
var require_react_is_production_min = __commonJS({
|
|
37
|
+
"../node_modules/react-is/cjs/react-is.production.min.js"(exports$1) {
|
|
38
|
+
var b = "function" === typeof Symbol && Symbol.for;
|
|
39
|
+
var c = b ? Symbol.for("react.element") : 60103;
|
|
40
|
+
var d = b ? Symbol.for("react.portal") : 60106;
|
|
41
|
+
var e = b ? Symbol.for("react.fragment") : 60107;
|
|
42
|
+
var f = b ? Symbol.for("react.strict_mode") : 60108;
|
|
43
|
+
var g = b ? Symbol.for("react.profiler") : 60114;
|
|
44
|
+
var h = b ? Symbol.for("react.provider") : 60109;
|
|
45
|
+
var k = b ? Symbol.for("react.context") : 60110;
|
|
46
|
+
var l = b ? Symbol.for("react.async_mode") : 60111;
|
|
47
|
+
var m = b ? Symbol.for("react.concurrent_mode") : 60111;
|
|
48
|
+
var n = b ? Symbol.for("react.forward_ref") : 60112;
|
|
49
|
+
var p = b ? Symbol.for("react.suspense") : 60113;
|
|
50
|
+
var q = b ? Symbol.for("react.suspense_list") : 60120;
|
|
51
|
+
var r = b ? Symbol.for("react.memo") : 60115;
|
|
52
|
+
var t = b ? Symbol.for("react.lazy") : 60116;
|
|
53
|
+
var v = b ? Symbol.for("react.block") : 60121;
|
|
54
|
+
var w = b ? Symbol.for("react.fundamental") : 60117;
|
|
55
|
+
var x = b ? Symbol.for("react.responder") : 60118;
|
|
56
|
+
var y = b ? Symbol.for("react.scope") : 60119;
|
|
57
|
+
function z2(a) {
|
|
58
|
+
if ("object" === typeof a && null !== a) {
|
|
59
|
+
var u = a.$$typeof;
|
|
60
|
+
switch (u) {
|
|
61
|
+
case c:
|
|
62
|
+
switch (a = a.type, a) {
|
|
63
|
+
case l:
|
|
64
|
+
case m:
|
|
65
|
+
case e:
|
|
66
|
+
case g:
|
|
67
|
+
case f:
|
|
68
|
+
case p:
|
|
69
|
+
return a;
|
|
70
|
+
default:
|
|
71
|
+
switch (a = a && a.$$typeof, a) {
|
|
72
|
+
case k:
|
|
73
|
+
case n:
|
|
74
|
+
case t:
|
|
75
|
+
case r:
|
|
76
|
+
case h:
|
|
77
|
+
return a;
|
|
78
|
+
default:
|
|
79
|
+
return u;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
case d:
|
|
83
|
+
return u;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
function A(a) {
|
|
88
|
+
return z2(a) === m;
|
|
89
|
+
}
|
|
90
|
+
exports$1.AsyncMode = l;
|
|
91
|
+
exports$1.ConcurrentMode = m;
|
|
92
|
+
exports$1.ContextConsumer = k;
|
|
93
|
+
exports$1.ContextProvider = h;
|
|
94
|
+
exports$1.Element = c;
|
|
95
|
+
exports$1.ForwardRef = n;
|
|
96
|
+
exports$1.Fragment = e;
|
|
97
|
+
exports$1.Lazy = t;
|
|
98
|
+
exports$1.Memo = r;
|
|
99
|
+
exports$1.Portal = d;
|
|
100
|
+
exports$1.Profiler = g;
|
|
101
|
+
exports$1.StrictMode = f;
|
|
102
|
+
exports$1.Suspense = p;
|
|
103
|
+
exports$1.isAsyncMode = function(a) {
|
|
104
|
+
return A(a) || z2(a) === l;
|
|
105
|
+
};
|
|
106
|
+
exports$1.isConcurrentMode = A;
|
|
107
|
+
exports$1.isContextConsumer = function(a) {
|
|
108
|
+
return z2(a) === k;
|
|
109
|
+
};
|
|
110
|
+
exports$1.isContextProvider = function(a) {
|
|
111
|
+
return z2(a) === h;
|
|
112
|
+
};
|
|
113
|
+
exports$1.isElement = function(a) {
|
|
114
|
+
return "object" === typeof a && null !== a && a.$$typeof === c;
|
|
115
|
+
};
|
|
116
|
+
exports$1.isForwardRef = function(a) {
|
|
117
|
+
return z2(a) === n;
|
|
118
|
+
};
|
|
119
|
+
exports$1.isFragment = function(a) {
|
|
120
|
+
return z2(a) === e;
|
|
121
|
+
};
|
|
122
|
+
exports$1.isLazy = function(a) {
|
|
123
|
+
return z2(a) === t;
|
|
124
|
+
};
|
|
125
|
+
exports$1.isMemo = function(a) {
|
|
126
|
+
return z2(a) === r;
|
|
127
|
+
};
|
|
128
|
+
exports$1.isPortal = function(a) {
|
|
129
|
+
return z2(a) === d;
|
|
130
|
+
};
|
|
131
|
+
exports$1.isProfiler = function(a) {
|
|
132
|
+
return z2(a) === g;
|
|
133
|
+
};
|
|
134
|
+
exports$1.isStrictMode = function(a) {
|
|
135
|
+
return z2(a) === f;
|
|
136
|
+
};
|
|
137
|
+
exports$1.isSuspense = function(a) {
|
|
138
|
+
return z2(a) === p;
|
|
139
|
+
};
|
|
140
|
+
exports$1.isValidElementType = function(a) {
|
|
141
|
+
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
142
|
+
};
|
|
143
|
+
exports$1.typeOf = z2;
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
|
|
147
|
+
// ../node_modules/react-is/cjs/react-is.development.js
|
|
148
|
+
var require_react_is_development = __commonJS({
|
|
149
|
+
"../node_modules/react-is/cjs/react-is.development.js"(exports$1) {
|
|
150
|
+
if (process.env.NODE_ENV !== "production") {
|
|
151
|
+
(function() {
|
|
152
|
+
var hasSymbol = typeof Symbol === "function" && Symbol.for;
|
|
153
|
+
var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
|
|
154
|
+
var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
|
|
155
|
+
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
|
|
156
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
|
|
157
|
+
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
|
|
158
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
|
|
159
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
|
|
160
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
|
|
161
|
+
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
|
|
162
|
+
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
|
|
163
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
|
|
164
|
+
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
|
|
165
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
|
|
166
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
|
|
167
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
|
|
168
|
+
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
|
|
169
|
+
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
|
|
170
|
+
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
|
|
171
|
+
function isValidElementType(type) {
|
|
172
|
+
return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
173
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
174
|
+
}
|
|
175
|
+
function typeOf(object) {
|
|
176
|
+
if (typeof object === "object" && object !== null) {
|
|
177
|
+
var $$typeof = object.$$typeof;
|
|
178
|
+
switch ($$typeof) {
|
|
179
|
+
case REACT_ELEMENT_TYPE:
|
|
180
|
+
var type = object.type;
|
|
181
|
+
switch (type) {
|
|
182
|
+
case REACT_ASYNC_MODE_TYPE:
|
|
183
|
+
case REACT_CONCURRENT_MODE_TYPE:
|
|
184
|
+
case REACT_FRAGMENT_TYPE:
|
|
185
|
+
case REACT_PROFILER_TYPE:
|
|
186
|
+
case REACT_STRICT_MODE_TYPE:
|
|
187
|
+
case REACT_SUSPENSE_TYPE:
|
|
188
|
+
return type;
|
|
189
|
+
default:
|
|
190
|
+
var $$typeofType = type && type.$$typeof;
|
|
191
|
+
switch ($$typeofType) {
|
|
192
|
+
case REACT_CONTEXT_TYPE:
|
|
193
|
+
case REACT_FORWARD_REF_TYPE:
|
|
194
|
+
case REACT_LAZY_TYPE:
|
|
195
|
+
case REACT_MEMO_TYPE:
|
|
196
|
+
case REACT_PROVIDER_TYPE:
|
|
197
|
+
return $$typeofType;
|
|
198
|
+
default:
|
|
199
|
+
return $$typeof;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
case REACT_PORTAL_TYPE:
|
|
203
|
+
return $$typeof;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
return void 0;
|
|
207
|
+
}
|
|
208
|
+
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
209
|
+
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
210
|
+
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
211
|
+
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
212
|
+
var Element = REACT_ELEMENT_TYPE;
|
|
213
|
+
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
214
|
+
var Fragment9 = REACT_FRAGMENT_TYPE;
|
|
215
|
+
var Lazy = REACT_LAZY_TYPE;
|
|
216
|
+
var Memo = REACT_MEMO_TYPE;
|
|
217
|
+
var Portal = REACT_PORTAL_TYPE;
|
|
218
|
+
var Profiler = REACT_PROFILER_TYPE;
|
|
219
|
+
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
220
|
+
var Suspense = REACT_SUSPENSE_TYPE;
|
|
221
|
+
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
222
|
+
function isAsyncMode(object) {
|
|
223
|
+
{
|
|
224
|
+
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
225
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
226
|
+
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
230
|
+
}
|
|
231
|
+
function isConcurrentMode(object) {
|
|
232
|
+
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
233
|
+
}
|
|
234
|
+
function isContextConsumer(object) {
|
|
235
|
+
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
236
|
+
}
|
|
237
|
+
function isContextProvider(object) {
|
|
238
|
+
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
239
|
+
}
|
|
240
|
+
function isElement(object) {
|
|
241
|
+
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
242
|
+
}
|
|
243
|
+
function isForwardRef(object) {
|
|
244
|
+
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
245
|
+
}
|
|
246
|
+
function isFragment(object) {
|
|
247
|
+
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
248
|
+
}
|
|
249
|
+
function isLazy(object) {
|
|
250
|
+
return typeOf(object) === REACT_LAZY_TYPE;
|
|
251
|
+
}
|
|
252
|
+
function isMemo(object) {
|
|
253
|
+
return typeOf(object) === REACT_MEMO_TYPE;
|
|
254
|
+
}
|
|
255
|
+
function isPortal(object) {
|
|
256
|
+
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
257
|
+
}
|
|
258
|
+
function isProfiler(object) {
|
|
259
|
+
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
260
|
+
}
|
|
261
|
+
function isStrictMode(object) {
|
|
262
|
+
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
263
|
+
}
|
|
264
|
+
function isSuspense(object) {
|
|
265
|
+
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
266
|
+
}
|
|
267
|
+
exports$1.AsyncMode = AsyncMode;
|
|
268
|
+
exports$1.ConcurrentMode = ConcurrentMode;
|
|
269
|
+
exports$1.ContextConsumer = ContextConsumer;
|
|
270
|
+
exports$1.ContextProvider = ContextProvider;
|
|
271
|
+
exports$1.Element = Element;
|
|
272
|
+
exports$1.ForwardRef = ForwardRef;
|
|
273
|
+
exports$1.Fragment = Fragment9;
|
|
274
|
+
exports$1.Lazy = Lazy;
|
|
275
|
+
exports$1.Memo = Memo;
|
|
276
|
+
exports$1.Portal = Portal;
|
|
277
|
+
exports$1.Profiler = Profiler;
|
|
278
|
+
exports$1.StrictMode = StrictMode;
|
|
279
|
+
exports$1.Suspense = Suspense;
|
|
280
|
+
exports$1.isAsyncMode = isAsyncMode;
|
|
281
|
+
exports$1.isConcurrentMode = isConcurrentMode;
|
|
282
|
+
exports$1.isContextConsumer = isContextConsumer;
|
|
283
|
+
exports$1.isContextProvider = isContextProvider;
|
|
284
|
+
exports$1.isElement = isElement;
|
|
285
|
+
exports$1.isForwardRef = isForwardRef;
|
|
286
|
+
exports$1.isFragment = isFragment;
|
|
287
|
+
exports$1.isLazy = isLazy;
|
|
288
|
+
exports$1.isMemo = isMemo;
|
|
289
|
+
exports$1.isPortal = isPortal;
|
|
290
|
+
exports$1.isProfiler = isProfiler;
|
|
291
|
+
exports$1.isStrictMode = isStrictMode;
|
|
292
|
+
exports$1.isSuspense = isSuspense;
|
|
293
|
+
exports$1.isValidElementType = isValidElementType;
|
|
294
|
+
exports$1.typeOf = typeOf;
|
|
295
|
+
})();
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
});
|
|
299
|
+
|
|
300
|
+
// ../node_modules/react-is/index.js
|
|
301
|
+
var require_react_is = __commonJS({
|
|
302
|
+
"../node_modules/react-is/index.js"(exports$1, module) {
|
|
303
|
+
if (process.env.NODE_ENV === "production") {
|
|
304
|
+
module.exports = require_react_is_production_min();
|
|
305
|
+
} else {
|
|
306
|
+
module.exports = require_react_is_development();
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
// ../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js
|
|
312
|
+
var require_hoist_non_react_statics_cjs = __commonJS({
|
|
313
|
+
"../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js"(exports$1, module) {
|
|
314
|
+
var reactIs = require_react_is();
|
|
315
|
+
var REACT_STATICS = {
|
|
316
|
+
childContextTypes: true,
|
|
317
|
+
contextType: true,
|
|
318
|
+
contextTypes: true,
|
|
319
|
+
defaultProps: true,
|
|
320
|
+
displayName: true,
|
|
321
|
+
getDefaultProps: true,
|
|
322
|
+
getDerivedStateFromError: true,
|
|
323
|
+
getDerivedStateFromProps: true,
|
|
324
|
+
mixins: true,
|
|
325
|
+
propTypes: true,
|
|
326
|
+
type: true
|
|
327
|
+
};
|
|
328
|
+
var KNOWN_STATICS = {
|
|
329
|
+
name: true,
|
|
330
|
+
length: true,
|
|
331
|
+
prototype: true,
|
|
332
|
+
caller: true,
|
|
333
|
+
callee: true,
|
|
334
|
+
arguments: true,
|
|
335
|
+
arity: true
|
|
336
|
+
};
|
|
337
|
+
var FORWARD_REF_STATICS = {
|
|
338
|
+
"$$typeof": true,
|
|
339
|
+
render: true,
|
|
340
|
+
defaultProps: true,
|
|
341
|
+
displayName: true,
|
|
342
|
+
propTypes: true
|
|
343
|
+
};
|
|
344
|
+
var MEMO_STATICS = {
|
|
345
|
+
"$$typeof": true,
|
|
346
|
+
compare: true,
|
|
347
|
+
defaultProps: true,
|
|
348
|
+
displayName: true,
|
|
349
|
+
propTypes: true,
|
|
350
|
+
type: true
|
|
351
|
+
};
|
|
352
|
+
var TYPE_STATICS = {};
|
|
353
|
+
TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
|
|
354
|
+
TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
|
|
355
|
+
function getStatics(component) {
|
|
356
|
+
if (reactIs.isMemo(component)) {
|
|
357
|
+
return MEMO_STATICS;
|
|
358
|
+
}
|
|
359
|
+
return TYPE_STATICS[component["$$typeof"]] || REACT_STATICS;
|
|
360
|
+
}
|
|
361
|
+
var defineProperty = Object.defineProperty;
|
|
362
|
+
var getOwnPropertyNames = Object.getOwnPropertyNames;
|
|
363
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
364
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
365
|
+
var getPrototypeOf = Object.getPrototypeOf;
|
|
366
|
+
var objectPrototype = Object.prototype;
|
|
367
|
+
function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
|
|
368
|
+
if (typeof sourceComponent !== "string") {
|
|
369
|
+
if (objectPrototype) {
|
|
370
|
+
var inheritedComponent = getPrototypeOf(sourceComponent);
|
|
371
|
+
if (inheritedComponent && inheritedComponent !== objectPrototype) {
|
|
372
|
+
hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
var keys = getOwnPropertyNames(sourceComponent);
|
|
376
|
+
if (getOwnPropertySymbols) {
|
|
377
|
+
keys = keys.concat(getOwnPropertySymbols(sourceComponent));
|
|
378
|
+
}
|
|
379
|
+
var targetStatics = getStatics(targetComponent);
|
|
380
|
+
var sourceStatics = getStatics(sourceComponent);
|
|
381
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
382
|
+
var key = keys[i];
|
|
383
|
+
if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
|
|
384
|
+
var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
|
|
385
|
+
try {
|
|
386
|
+
defineProperty(targetComponent, key, descriptor);
|
|
387
|
+
} catch (e) {
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
return targetComponent;
|
|
393
|
+
}
|
|
394
|
+
module.exports = hoistNonReactStatics;
|
|
395
|
+
}
|
|
396
|
+
});
|
|
397
|
+
|
|
398
|
+
// ../node_modules/@babel/runtime/helpers/extends.js
|
|
399
|
+
var require_extends = __commonJS({
|
|
400
|
+
"../node_modules/@babel/runtime/helpers/extends.js"(exports$1, module) {
|
|
401
|
+
function _extends2() {
|
|
402
|
+
return module.exports = _extends2 = Object.assign ? Object.assign.bind() : function(n) {
|
|
403
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
404
|
+
var t = arguments[e];
|
|
405
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
406
|
+
}
|
|
407
|
+
return n;
|
|
408
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _extends2.apply(null, arguments);
|
|
409
|
+
}
|
|
410
|
+
module.exports = _extends2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
411
|
+
}
|
|
412
|
+
});
|
|
12
413
|
var NavigationContext = createContext(null);
|
|
13
414
|
function useNavigationAdapter() {
|
|
14
415
|
const adapter = useContext(NavigationContext);
|
|
@@ -26,6 +427,1314 @@ function useSearchParams() {
|
|
|
26
427
|
const adapter = useNavigationAdapter();
|
|
27
428
|
return adapter.useSearchParams();
|
|
28
429
|
}
|
|
430
|
+
function sheetForTag(tag) {
|
|
431
|
+
if (tag.sheet) {
|
|
432
|
+
return tag.sheet;
|
|
433
|
+
}
|
|
434
|
+
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
435
|
+
if (document.styleSheets[i].ownerNode === tag) {
|
|
436
|
+
return document.styleSheets[i];
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
return void 0;
|
|
440
|
+
}
|
|
441
|
+
function createStyleElement(options) {
|
|
442
|
+
var tag = document.createElement("style");
|
|
443
|
+
tag.setAttribute("data-emotion", options.key);
|
|
444
|
+
if (options.nonce !== void 0) {
|
|
445
|
+
tag.setAttribute("nonce", options.nonce);
|
|
446
|
+
}
|
|
447
|
+
tag.appendChild(document.createTextNode(""));
|
|
448
|
+
tag.setAttribute("data-s", "");
|
|
449
|
+
return tag;
|
|
450
|
+
}
|
|
451
|
+
var StyleSheet = /* @__PURE__ */ (function() {
|
|
452
|
+
function StyleSheet2(options) {
|
|
453
|
+
var _this = this;
|
|
454
|
+
this._insertTag = function(tag) {
|
|
455
|
+
var before;
|
|
456
|
+
if (_this.tags.length === 0) {
|
|
457
|
+
if (_this.insertionPoint) {
|
|
458
|
+
before = _this.insertionPoint.nextSibling;
|
|
459
|
+
} else if (_this.prepend) {
|
|
460
|
+
before = _this.container.firstChild;
|
|
461
|
+
} else {
|
|
462
|
+
before = _this.before;
|
|
463
|
+
}
|
|
464
|
+
} else {
|
|
465
|
+
before = _this.tags[_this.tags.length - 1].nextSibling;
|
|
466
|
+
}
|
|
467
|
+
_this.container.insertBefore(tag, before);
|
|
468
|
+
_this.tags.push(tag);
|
|
469
|
+
};
|
|
470
|
+
this.isSpeedy = options.speedy === void 0 ? true : options.speedy;
|
|
471
|
+
this.tags = [];
|
|
472
|
+
this.ctr = 0;
|
|
473
|
+
this.nonce = options.nonce;
|
|
474
|
+
this.key = options.key;
|
|
475
|
+
this.container = options.container;
|
|
476
|
+
this.prepend = options.prepend;
|
|
477
|
+
this.insertionPoint = options.insertionPoint;
|
|
478
|
+
this.before = null;
|
|
479
|
+
}
|
|
480
|
+
var _proto = StyleSheet2.prototype;
|
|
481
|
+
_proto.hydrate = function hydrate(nodes) {
|
|
482
|
+
nodes.forEach(this._insertTag);
|
|
483
|
+
};
|
|
484
|
+
_proto.insert = function insert(rule) {
|
|
485
|
+
if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) {
|
|
486
|
+
this._insertTag(createStyleElement(this));
|
|
487
|
+
}
|
|
488
|
+
var tag = this.tags[this.tags.length - 1];
|
|
489
|
+
if (this.isSpeedy) {
|
|
490
|
+
var sheet = sheetForTag(tag);
|
|
491
|
+
try {
|
|
492
|
+
sheet.insertRule(rule, sheet.cssRules.length);
|
|
493
|
+
} catch (e) {
|
|
494
|
+
}
|
|
495
|
+
} else {
|
|
496
|
+
tag.appendChild(document.createTextNode(rule));
|
|
497
|
+
}
|
|
498
|
+
this.ctr++;
|
|
499
|
+
};
|
|
500
|
+
_proto.flush = function flush() {
|
|
501
|
+
this.tags.forEach(function(tag) {
|
|
502
|
+
var _tag$parentNode;
|
|
503
|
+
return (_tag$parentNode = tag.parentNode) == null ? void 0 : _tag$parentNode.removeChild(tag);
|
|
504
|
+
});
|
|
505
|
+
this.tags = [];
|
|
506
|
+
this.ctr = 0;
|
|
507
|
+
};
|
|
508
|
+
return StyleSheet2;
|
|
509
|
+
})();
|
|
510
|
+
|
|
511
|
+
// ../node_modules/stylis/src/Enum.js
|
|
512
|
+
var MS = "-ms-";
|
|
513
|
+
var MOZ = "-moz-";
|
|
514
|
+
var WEBKIT = "-webkit-";
|
|
515
|
+
var COMMENT = "comm";
|
|
516
|
+
var RULESET = "rule";
|
|
517
|
+
var DECLARATION = "decl";
|
|
518
|
+
var IMPORT = "@import";
|
|
519
|
+
var KEYFRAMES = "@keyframes";
|
|
520
|
+
var LAYER = "@layer";
|
|
521
|
+
|
|
522
|
+
// ../node_modules/stylis/src/Utility.js
|
|
523
|
+
var abs = Math.abs;
|
|
524
|
+
var from = String.fromCharCode;
|
|
525
|
+
var assign = Object.assign;
|
|
526
|
+
function hash(value, length2) {
|
|
527
|
+
return charat(value, 0) ^ 45 ? (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3) : 0;
|
|
528
|
+
}
|
|
529
|
+
function trim(value) {
|
|
530
|
+
return value.trim();
|
|
531
|
+
}
|
|
532
|
+
function match(value, pattern) {
|
|
533
|
+
return (value = pattern.exec(value)) ? value[0] : value;
|
|
534
|
+
}
|
|
535
|
+
function replace(value, pattern, replacement) {
|
|
536
|
+
return value.replace(pattern, replacement);
|
|
537
|
+
}
|
|
538
|
+
function indexof(value, search) {
|
|
539
|
+
return value.indexOf(search);
|
|
540
|
+
}
|
|
541
|
+
function charat(value, index) {
|
|
542
|
+
return value.charCodeAt(index) | 0;
|
|
543
|
+
}
|
|
544
|
+
function substr(value, begin, end) {
|
|
545
|
+
return value.slice(begin, end);
|
|
546
|
+
}
|
|
547
|
+
function strlen(value) {
|
|
548
|
+
return value.length;
|
|
549
|
+
}
|
|
550
|
+
function sizeof(value) {
|
|
551
|
+
return value.length;
|
|
552
|
+
}
|
|
553
|
+
function append(value, array) {
|
|
554
|
+
return array.push(value), value;
|
|
555
|
+
}
|
|
556
|
+
function combine(array, callback) {
|
|
557
|
+
return array.map(callback).join("");
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
// ../node_modules/stylis/src/Tokenizer.js
|
|
561
|
+
var line = 1;
|
|
562
|
+
var column = 1;
|
|
563
|
+
var length = 0;
|
|
564
|
+
var position = 0;
|
|
565
|
+
var character = 0;
|
|
566
|
+
var characters = "";
|
|
567
|
+
function node(value, root, parent, type, props, children, length2) {
|
|
568
|
+
return { value, root, parent, type, props, children, line, column, length: length2, return: "" };
|
|
569
|
+
}
|
|
570
|
+
function copy(root, props) {
|
|
571
|
+
return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props);
|
|
572
|
+
}
|
|
573
|
+
function char() {
|
|
574
|
+
return character;
|
|
575
|
+
}
|
|
576
|
+
function prev() {
|
|
577
|
+
character = position > 0 ? charat(characters, --position) : 0;
|
|
578
|
+
if (column--, character === 10)
|
|
579
|
+
column = 1, line--;
|
|
580
|
+
return character;
|
|
581
|
+
}
|
|
582
|
+
function next() {
|
|
583
|
+
character = position < length ? charat(characters, position++) : 0;
|
|
584
|
+
if (column++, character === 10)
|
|
585
|
+
column = 1, line++;
|
|
586
|
+
return character;
|
|
587
|
+
}
|
|
588
|
+
function peek() {
|
|
589
|
+
return charat(characters, position);
|
|
590
|
+
}
|
|
591
|
+
function caret() {
|
|
592
|
+
return position;
|
|
593
|
+
}
|
|
594
|
+
function slice(begin, end) {
|
|
595
|
+
return substr(characters, begin, end);
|
|
596
|
+
}
|
|
597
|
+
function token(type) {
|
|
598
|
+
switch (type) {
|
|
599
|
+
// \0 \t \n \r \s whitespace token
|
|
600
|
+
case 0:
|
|
601
|
+
case 9:
|
|
602
|
+
case 10:
|
|
603
|
+
case 13:
|
|
604
|
+
case 32:
|
|
605
|
+
return 5;
|
|
606
|
+
// ! + , / > @ ~ isolate token
|
|
607
|
+
case 33:
|
|
608
|
+
case 43:
|
|
609
|
+
case 44:
|
|
610
|
+
case 47:
|
|
611
|
+
case 62:
|
|
612
|
+
case 64:
|
|
613
|
+
case 126:
|
|
614
|
+
// ; { } breakpoint token
|
|
615
|
+
case 59:
|
|
616
|
+
case 123:
|
|
617
|
+
case 125:
|
|
618
|
+
return 4;
|
|
619
|
+
// : accompanied token
|
|
620
|
+
case 58:
|
|
621
|
+
return 3;
|
|
622
|
+
// " ' ( [ opening delimit token
|
|
623
|
+
case 34:
|
|
624
|
+
case 39:
|
|
625
|
+
case 40:
|
|
626
|
+
case 91:
|
|
627
|
+
return 2;
|
|
628
|
+
// ) ] closing delimit token
|
|
629
|
+
case 41:
|
|
630
|
+
case 93:
|
|
631
|
+
return 1;
|
|
632
|
+
}
|
|
633
|
+
return 0;
|
|
634
|
+
}
|
|
635
|
+
function alloc(value) {
|
|
636
|
+
return line = column = 1, length = strlen(characters = value), position = 0, [];
|
|
637
|
+
}
|
|
638
|
+
function dealloc(value) {
|
|
639
|
+
return characters = "", value;
|
|
640
|
+
}
|
|
641
|
+
function delimit(type) {
|
|
642
|
+
return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)));
|
|
643
|
+
}
|
|
644
|
+
function whitespace(type) {
|
|
645
|
+
while (character = peek())
|
|
646
|
+
if (character < 33)
|
|
647
|
+
next();
|
|
648
|
+
else
|
|
649
|
+
break;
|
|
650
|
+
return token(type) > 2 || token(character) > 3 ? "" : " ";
|
|
651
|
+
}
|
|
652
|
+
function escaping(index, count) {
|
|
653
|
+
while (--count && next())
|
|
654
|
+
if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97)
|
|
655
|
+
break;
|
|
656
|
+
return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32));
|
|
657
|
+
}
|
|
658
|
+
function delimiter(type) {
|
|
659
|
+
while (next())
|
|
660
|
+
switch (character) {
|
|
661
|
+
// ] ) " '
|
|
662
|
+
case type:
|
|
663
|
+
return position;
|
|
664
|
+
// " '
|
|
665
|
+
case 34:
|
|
666
|
+
case 39:
|
|
667
|
+
if (type !== 34 && type !== 39)
|
|
668
|
+
delimiter(character);
|
|
669
|
+
break;
|
|
670
|
+
// (
|
|
671
|
+
case 40:
|
|
672
|
+
if (type === 41)
|
|
673
|
+
delimiter(type);
|
|
674
|
+
break;
|
|
675
|
+
// \
|
|
676
|
+
case 92:
|
|
677
|
+
next();
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
680
|
+
return position;
|
|
681
|
+
}
|
|
682
|
+
function commenter(type, index) {
|
|
683
|
+
while (next())
|
|
684
|
+
if (type + character === 47 + 10)
|
|
685
|
+
break;
|
|
686
|
+
else if (type + character === 42 + 42 && peek() === 47)
|
|
687
|
+
break;
|
|
688
|
+
return "/*" + slice(index, position - 1) + "*" + from(type === 47 ? type : next());
|
|
689
|
+
}
|
|
690
|
+
function identifier(index) {
|
|
691
|
+
while (!token(peek()))
|
|
692
|
+
next();
|
|
693
|
+
return slice(index, position);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
// ../node_modules/stylis/src/Parser.js
|
|
697
|
+
function compile(value) {
|
|
698
|
+
return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value));
|
|
699
|
+
}
|
|
700
|
+
function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
701
|
+
var index = 0;
|
|
702
|
+
var offset = 0;
|
|
703
|
+
var length2 = pseudo;
|
|
704
|
+
var atrule = 0;
|
|
705
|
+
var property = 0;
|
|
706
|
+
var previous = 0;
|
|
707
|
+
var variable = 1;
|
|
708
|
+
var scanning = 1;
|
|
709
|
+
var ampersand = 1;
|
|
710
|
+
var character2 = 0;
|
|
711
|
+
var type = "";
|
|
712
|
+
var props = rules;
|
|
713
|
+
var children = rulesets;
|
|
714
|
+
var reference = rule;
|
|
715
|
+
var characters2 = type;
|
|
716
|
+
while (scanning)
|
|
717
|
+
switch (previous = character2, character2 = next()) {
|
|
718
|
+
// (
|
|
719
|
+
case 40:
|
|
720
|
+
if (previous != 108 && charat(characters2, length2 - 1) == 58) {
|
|
721
|
+
if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1)
|
|
722
|
+
ampersand = -1;
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
725
|
+
// " ' [
|
|
726
|
+
case 34:
|
|
727
|
+
case 39:
|
|
728
|
+
case 91:
|
|
729
|
+
characters2 += delimit(character2);
|
|
730
|
+
break;
|
|
731
|
+
// \t \n \r \s
|
|
732
|
+
case 9:
|
|
733
|
+
case 10:
|
|
734
|
+
case 13:
|
|
735
|
+
case 32:
|
|
736
|
+
characters2 += whitespace(previous);
|
|
737
|
+
break;
|
|
738
|
+
// \
|
|
739
|
+
case 92:
|
|
740
|
+
characters2 += escaping(caret() - 1, 7);
|
|
741
|
+
continue;
|
|
742
|
+
// /
|
|
743
|
+
case 47:
|
|
744
|
+
switch (peek()) {
|
|
745
|
+
case 42:
|
|
746
|
+
case 47:
|
|
747
|
+
append(comment(commenter(next(), caret()), root, parent), declarations);
|
|
748
|
+
break;
|
|
749
|
+
default:
|
|
750
|
+
characters2 += "/";
|
|
751
|
+
}
|
|
752
|
+
break;
|
|
753
|
+
// {
|
|
754
|
+
case 123 * variable:
|
|
755
|
+
points[index++] = strlen(characters2) * ampersand;
|
|
756
|
+
// } ; \0
|
|
757
|
+
case 125 * variable:
|
|
758
|
+
case 59:
|
|
759
|
+
case 0:
|
|
760
|
+
switch (character2) {
|
|
761
|
+
// \0 }
|
|
762
|
+
case 0:
|
|
763
|
+
case 125:
|
|
764
|
+
scanning = 0;
|
|
765
|
+
// ;
|
|
766
|
+
case 59 + offset:
|
|
767
|
+
if (ampersand == -1) characters2 = replace(characters2, /\f/g, "");
|
|
768
|
+
if (property > 0 && strlen(characters2) - length2)
|
|
769
|
+
append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations);
|
|
770
|
+
break;
|
|
771
|
+
// @ ;
|
|
772
|
+
case 59:
|
|
773
|
+
characters2 += ";";
|
|
774
|
+
// { rule/at-rule
|
|
775
|
+
default:
|
|
776
|
+
append(reference = ruleset(characters2, root, parent, index, offset, rules, points, type, props = [], children = [], length2), rulesets);
|
|
777
|
+
if (character2 === 123)
|
|
778
|
+
if (offset === 0)
|
|
779
|
+
parse(characters2, root, reference, reference, props, rulesets, length2, points, children);
|
|
780
|
+
else
|
|
781
|
+
switch (atrule === 99 && charat(characters2, 3) === 110 ? 100 : atrule) {
|
|
782
|
+
// d l m s
|
|
783
|
+
case 100:
|
|
784
|
+
case 108:
|
|
785
|
+
case 109:
|
|
786
|
+
case 115:
|
|
787
|
+
parse(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children);
|
|
788
|
+
break;
|
|
789
|
+
default:
|
|
790
|
+
parse(characters2, reference, reference, reference, [""], children, 0, points, children);
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo;
|
|
794
|
+
break;
|
|
795
|
+
// :
|
|
796
|
+
case 58:
|
|
797
|
+
length2 = 1 + strlen(characters2), property = previous;
|
|
798
|
+
default:
|
|
799
|
+
if (variable < 1) {
|
|
800
|
+
if (character2 == 123)
|
|
801
|
+
--variable;
|
|
802
|
+
else if (character2 == 125 && variable++ == 0 && prev() == 125)
|
|
803
|
+
continue;
|
|
804
|
+
}
|
|
805
|
+
switch (characters2 += from(character2), character2 * variable) {
|
|
806
|
+
// &
|
|
807
|
+
case 38:
|
|
808
|
+
ampersand = offset > 0 ? 1 : (characters2 += "\f", -1);
|
|
809
|
+
break;
|
|
810
|
+
// ,
|
|
811
|
+
case 44:
|
|
812
|
+
points[index++] = (strlen(characters2) - 1) * ampersand, ampersand = 1;
|
|
813
|
+
break;
|
|
814
|
+
// @
|
|
815
|
+
case 64:
|
|
816
|
+
if (peek() === 45)
|
|
817
|
+
characters2 += delimit(next());
|
|
818
|
+
atrule = peek(), offset = length2 = strlen(type = characters2 += identifier(caret())), character2++;
|
|
819
|
+
break;
|
|
820
|
+
// -
|
|
821
|
+
case 45:
|
|
822
|
+
if (previous === 45 && strlen(characters2) == 2)
|
|
823
|
+
variable = 0;
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
return rulesets;
|
|
827
|
+
}
|
|
828
|
+
function ruleset(value, root, parent, index, offset, rules, points, type, props, children, length2) {
|
|
829
|
+
var post = offset - 1;
|
|
830
|
+
var rule = offset === 0 ? rules : [""];
|
|
831
|
+
var size = sizeof(rule);
|
|
832
|
+
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
833
|
+
for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x < size; ++x)
|
|
834
|
+
if (z2 = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
835
|
+
props[k++] = z2;
|
|
836
|
+
return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length2);
|
|
837
|
+
}
|
|
838
|
+
function comment(value, root, parent) {
|
|
839
|
+
return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0);
|
|
840
|
+
}
|
|
841
|
+
function declaration(value, root, parent, length2) {
|
|
842
|
+
return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
// ../node_modules/stylis/src/Serializer.js
|
|
846
|
+
function serialize(children, callback) {
|
|
847
|
+
var output = "";
|
|
848
|
+
var length2 = sizeof(children);
|
|
849
|
+
for (var i = 0; i < length2; i++)
|
|
850
|
+
output += callback(children[i], i, children, callback) || "";
|
|
851
|
+
return output;
|
|
852
|
+
}
|
|
853
|
+
function stringify(element, index, children, callback) {
|
|
854
|
+
switch (element.type) {
|
|
855
|
+
case LAYER:
|
|
856
|
+
if (element.children.length) break;
|
|
857
|
+
case IMPORT:
|
|
858
|
+
case DECLARATION:
|
|
859
|
+
return element.return = element.return || element.value;
|
|
860
|
+
case COMMENT:
|
|
861
|
+
return "";
|
|
862
|
+
case KEYFRAMES:
|
|
863
|
+
return element.return = element.value + "{" + serialize(element.children, callback) + "}";
|
|
864
|
+
case RULESET:
|
|
865
|
+
element.value = element.props.join(",");
|
|
866
|
+
}
|
|
867
|
+
return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : "";
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
// ../node_modules/stylis/src/Middleware.js
|
|
871
|
+
function middleware(collection) {
|
|
872
|
+
var length2 = sizeof(collection);
|
|
873
|
+
return function(element, index, children, callback) {
|
|
874
|
+
var output = "";
|
|
875
|
+
for (var i = 0; i < length2; i++)
|
|
876
|
+
output += collection[i](element, index, children, callback) || "";
|
|
877
|
+
return output;
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
function rulesheet(callback) {
|
|
881
|
+
return function(element) {
|
|
882
|
+
if (!element.root) {
|
|
883
|
+
if (element = element.return)
|
|
884
|
+
callback(element);
|
|
885
|
+
}
|
|
886
|
+
};
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
// ../node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js
|
|
890
|
+
var weakMemoize = function weakMemoize2(func) {
|
|
891
|
+
var cache = /* @__PURE__ */ new WeakMap();
|
|
892
|
+
return function(arg) {
|
|
893
|
+
if (cache.has(arg)) {
|
|
894
|
+
return cache.get(arg);
|
|
895
|
+
}
|
|
896
|
+
var ret = func(arg);
|
|
897
|
+
cache.set(arg, ret);
|
|
898
|
+
return ret;
|
|
899
|
+
};
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
// ../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js
|
|
903
|
+
function memoize(fn) {
|
|
904
|
+
var cache = /* @__PURE__ */ Object.create(null);
|
|
905
|
+
return function(arg) {
|
|
906
|
+
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
|
907
|
+
return cache[arg];
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
// ../node_modules/@emotion/cache/dist/emotion-cache.esm.js
|
|
912
|
+
var isBrowser = typeof document !== "undefined";
|
|
913
|
+
var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index) {
|
|
914
|
+
var previous = 0;
|
|
915
|
+
var character2 = 0;
|
|
916
|
+
while (true) {
|
|
917
|
+
previous = character2;
|
|
918
|
+
character2 = peek();
|
|
919
|
+
if (previous === 38 && character2 === 12) {
|
|
920
|
+
points[index] = 1;
|
|
921
|
+
}
|
|
922
|
+
if (token(character2)) {
|
|
923
|
+
break;
|
|
924
|
+
}
|
|
925
|
+
next();
|
|
926
|
+
}
|
|
927
|
+
return slice(begin, position);
|
|
928
|
+
};
|
|
929
|
+
var toRules = function toRules2(parsed, points) {
|
|
930
|
+
var index = -1;
|
|
931
|
+
var character2 = 44;
|
|
932
|
+
do {
|
|
933
|
+
switch (token(character2)) {
|
|
934
|
+
case 0:
|
|
935
|
+
if (character2 === 38 && peek() === 12) {
|
|
936
|
+
points[index] = 1;
|
|
937
|
+
}
|
|
938
|
+
parsed[index] += identifierWithPointTracking(position - 1, points, index);
|
|
939
|
+
break;
|
|
940
|
+
case 2:
|
|
941
|
+
parsed[index] += delimit(character2);
|
|
942
|
+
break;
|
|
943
|
+
case 4:
|
|
944
|
+
if (character2 === 44) {
|
|
945
|
+
parsed[++index] = peek() === 58 ? "&\f" : "";
|
|
946
|
+
points[index] = parsed[index].length;
|
|
947
|
+
break;
|
|
948
|
+
}
|
|
949
|
+
// fallthrough
|
|
950
|
+
default:
|
|
951
|
+
parsed[index] += from(character2);
|
|
952
|
+
}
|
|
953
|
+
} while (character2 = next());
|
|
954
|
+
return parsed;
|
|
955
|
+
};
|
|
956
|
+
var getRules = function getRules2(value, points) {
|
|
957
|
+
return dealloc(toRules(alloc(value), points));
|
|
958
|
+
};
|
|
959
|
+
var fixedElements = /* @__PURE__ */ new WeakMap();
|
|
960
|
+
var compat = function compat2(element) {
|
|
961
|
+
if (element.type !== "rule" || !element.parent || // positive .length indicates that this rule contains pseudo
|
|
962
|
+
// negative .length indicates that this rule has been already prefixed
|
|
963
|
+
element.length < 1) {
|
|
964
|
+
return;
|
|
965
|
+
}
|
|
966
|
+
var value = element.value;
|
|
967
|
+
var parent = element.parent;
|
|
968
|
+
var isImplicitRule = element.column === parent.column && element.line === parent.line;
|
|
969
|
+
while (parent.type !== "rule") {
|
|
970
|
+
parent = parent.parent;
|
|
971
|
+
if (!parent) return;
|
|
972
|
+
}
|
|
973
|
+
if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) {
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
976
|
+
if (isImplicitRule) {
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
fixedElements.set(element, true);
|
|
980
|
+
var points = [];
|
|
981
|
+
var rules = getRules(value, points);
|
|
982
|
+
var parentRules = parent.props;
|
|
983
|
+
for (var i = 0, k = 0; i < rules.length; i++) {
|
|
984
|
+
for (var j = 0; j < parentRules.length; j++, k++) {
|
|
985
|
+
element.props[k] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i];
|
|
986
|
+
}
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
var removeLabel = function removeLabel2(element) {
|
|
990
|
+
if (element.type === "decl") {
|
|
991
|
+
var value = element.value;
|
|
992
|
+
if (
|
|
993
|
+
// charcode for l
|
|
994
|
+
value.charCodeAt(0) === 108 && // charcode for b
|
|
995
|
+
value.charCodeAt(2) === 98
|
|
996
|
+
) {
|
|
997
|
+
element["return"] = "";
|
|
998
|
+
element.value = "";
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
};
|
|
1002
|
+
function prefix(value, length2) {
|
|
1003
|
+
switch (hash(value, length2)) {
|
|
1004
|
+
// color-adjust
|
|
1005
|
+
case 5103:
|
|
1006
|
+
return WEBKIT + "print-" + value + value;
|
|
1007
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
1008
|
+
case 5737:
|
|
1009
|
+
case 4201:
|
|
1010
|
+
case 3177:
|
|
1011
|
+
case 3433:
|
|
1012
|
+
case 1641:
|
|
1013
|
+
case 4457:
|
|
1014
|
+
case 2921:
|
|
1015
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
1016
|
+
case 5572:
|
|
1017
|
+
case 6356:
|
|
1018
|
+
case 5844:
|
|
1019
|
+
case 3191:
|
|
1020
|
+
case 6645:
|
|
1021
|
+
case 3005:
|
|
1022
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
1023
|
+
case 6391:
|
|
1024
|
+
case 5879:
|
|
1025
|
+
case 5623:
|
|
1026
|
+
case 6135:
|
|
1027
|
+
case 4599:
|
|
1028
|
+
case 4855:
|
|
1029
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
1030
|
+
case 4215:
|
|
1031
|
+
case 6389:
|
|
1032
|
+
case 5109:
|
|
1033
|
+
case 5365:
|
|
1034
|
+
case 5621:
|
|
1035
|
+
case 3829:
|
|
1036
|
+
return WEBKIT + value + value;
|
|
1037
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
1038
|
+
case 5349:
|
|
1039
|
+
case 4246:
|
|
1040
|
+
case 4810:
|
|
1041
|
+
case 6968:
|
|
1042
|
+
case 2756:
|
|
1043
|
+
return WEBKIT + value + MOZ + value + MS + value + value;
|
|
1044
|
+
// flex, flex-direction
|
|
1045
|
+
case 6828:
|
|
1046
|
+
case 4268:
|
|
1047
|
+
return WEBKIT + value + MS + value + value;
|
|
1048
|
+
// order
|
|
1049
|
+
case 6165:
|
|
1050
|
+
return WEBKIT + value + MS + "flex-" + value + value;
|
|
1051
|
+
// align-items
|
|
1052
|
+
case 5187:
|
|
1053
|
+
return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value;
|
|
1054
|
+
// align-self
|
|
1055
|
+
case 5443:
|
|
1056
|
+
return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value;
|
|
1057
|
+
// align-content
|
|
1058
|
+
case 4675:
|
|
1059
|
+
return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value;
|
|
1060
|
+
// flex-shrink
|
|
1061
|
+
case 5548:
|
|
1062
|
+
return WEBKIT + value + MS + replace(value, "shrink", "negative") + value;
|
|
1063
|
+
// flex-basis
|
|
1064
|
+
case 5292:
|
|
1065
|
+
return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value;
|
|
1066
|
+
// flex-grow
|
|
1067
|
+
case 6060:
|
|
1068
|
+
return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value;
|
|
1069
|
+
// transition
|
|
1070
|
+
case 4554:
|
|
1071
|
+
return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value;
|
|
1072
|
+
// cursor
|
|
1073
|
+
case 6187:
|
|
1074
|
+
return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value;
|
|
1075
|
+
// background, background-image
|
|
1076
|
+
case 5495:
|
|
1077
|
+
case 3959:
|
|
1078
|
+
return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1");
|
|
1079
|
+
// justify-content
|
|
1080
|
+
case 4968:
|
|
1081
|
+
return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value;
|
|
1082
|
+
// (margin|padding)-inline-(start|end)
|
|
1083
|
+
case 4095:
|
|
1084
|
+
case 3583:
|
|
1085
|
+
case 4068:
|
|
1086
|
+
case 2532:
|
|
1087
|
+
return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value;
|
|
1088
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
1089
|
+
case 8116:
|
|
1090
|
+
case 7059:
|
|
1091
|
+
case 5753:
|
|
1092
|
+
case 5535:
|
|
1093
|
+
case 5445:
|
|
1094
|
+
case 5701:
|
|
1095
|
+
case 4933:
|
|
1096
|
+
case 4677:
|
|
1097
|
+
case 5533:
|
|
1098
|
+
case 5789:
|
|
1099
|
+
case 5021:
|
|
1100
|
+
case 4765:
|
|
1101
|
+
if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) {
|
|
1102
|
+
// (m)ax-content, (m)in-content
|
|
1103
|
+
case 109:
|
|
1104
|
+
if (charat(value, length2 + 4) !== 45) break;
|
|
1105
|
+
// (f)ill-available, (f)it-content
|
|
1106
|
+
case 102:
|
|
1107
|
+
return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value;
|
|
1108
|
+
// (s)tretch
|
|
1109
|
+
case 115:
|
|
1110
|
+
return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value;
|
|
1111
|
+
}
|
|
1112
|
+
break;
|
|
1113
|
+
// position: sticky
|
|
1114
|
+
case 4949:
|
|
1115
|
+
if (charat(value, length2 + 1) !== 115) break;
|
|
1116
|
+
// display: (flex|inline-flex)
|
|
1117
|
+
case 6444:
|
|
1118
|
+
switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) {
|
|
1119
|
+
// stic(k)y
|
|
1120
|
+
case 107:
|
|
1121
|
+
return replace(value, ":", ":" + WEBKIT) + value;
|
|
1122
|
+
// (inline-)?fl(e)x
|
|
1123
|
+
case 101:
|
|
1124
|
+
return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value;
|
|
1125
|
+
}
|
|
1126
|
+
break;
|
|
1127
|
+
// writing-mode
|
|
1128
|
+
case 5936:
|
|
1129
|
+
switch (charat(value, length2 + 11)) {
|
|
1130
|
+
// vertical-l(r)
|
|
1131
|
+
case 114:
|
|
1132
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value;
|
|
1133
|
+
// vertical-r(l)
|
|
1134
|
+
case 108:
|
|
1135
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value;
|
|
1136
|
+
// horizontal(-)tb
|
|
1137
|
+
case 45:
|
|
1138
|
+
return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value;
|
|
1139
|
+
}
|
|
1140
|
+
return WEBKIT + value + MS + value + value;
|
|
1141
|
+
}
|
|
1142
|
+
return value;
|
|
1143
|
+
}
|
|
1144
|
+
var prefixer = function prefixer2(element, index, children, callback) {
|
|
1145
|
+
if (element.length > -1) {
|
|
1146
|
+
if (!element["return"]) switch (element.type) {
|
|
1147
|
+
case DECLARATION:
|
|
1148
|
+
element["return"] = prefix(element.value, element.length);
|
|
1149
|
+
break;
|
|
1150
|
+
case KEYFRAMES:
|
|
1151
|
+
return serialize([copy(element, {
|
|
1152
|
+
value: replace(element.value, "@", "@" + WEBKIT)
|
|
1153
|
+
})], callback);
|
|
1154
|
+
case RULESET:
|
|
1155
|
+
if (element.length) return combine(element.props, function(value) {
|
|
1156
|
+
switch (match(value, /(::plac\w+|:read-\w+)/)) {
|
|
1157
|
+
// :read-(only|write)
|
|
1158
|
+
case ":read-only":
|
|
1159
|
+
case ":read-write":
|
|
1160
|
+
return serialize([copy(element, {
|
|
1161
|
+
props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")]
|
|
1162
|
+
})], callback);
|
|
1163
|
+
// :placeholder
|
|
1164
|
+
case "::placeholder":
|
|
1165
|
+
return serialize([copy(element, {
|
|
1166
|
+
props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")]
|
|
1167
|
+
}), copy(element, {
|
|
1168
|
+
props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")]
|
|
1169
|
+
}), copy(element, {
|
|
1170
|
+
props: [replace(value, /:(plac\w+)/, MS + "input-$1")]
|
|
1171
|
+
})], callback);
|
|
1172
|
+
}
|
|
1173
|
+
return "";
|
|
1174
|
+
});
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
};
|
|
1178
|
+
var getServerStylisCache = isBrowser ? void 0 : weakMemoize(function() {
|
|
1179
|
+
return memoize(function() {
|
|
1180
|
+
return {};
|
|
1181
|
+
});
|
|
1182
|
+
});
|
|
1183
|
+
var defaultStylisPlugins = [prefixer];
|
|
1184
|
+
var createCache = function createCache2(options) {
|
|
1185
|
+
var key = options.key;
|
|
1186
|
+
if (isBrowser && key === "css") {
|
|
1187
|
+
var ssrStyles = document.querySelectorAll("style[data-emotion]:not([data-s])");
|
|
1188
|
+
Array.prototype.forEach.call(ssrStyles, function(node2) {
|
|
1189
|
+
var dataEmotionAttribute = node2.getAttribute("data-emotion");
|
|
1190
|
+
if (dataEmotionAttribute.indexOf(" ") === -1) {
|
|
1191
|
+
return;
|
|
1192
|
+
}
|
|
1193
|
+
document.head.appendChild(node2);
|
|
1194
|
+
node2.setAttribute("data-s", "");
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
var stylisPlugins = options.stylisPlugins || defaultStylisPlugins;
|
|
1198
|
+
var inserted = {};
|
|
1199
|
+
var container;
|
|
1200
|
+
var nodesToHydrate = [];
|
|
1201
|
+
if (isBrowser) {
|
|
1202
|
+
container = options.container || document.head;
|
|
1203
|
+
Array.prototype.forEach.call(
|
|
1204
|
+
// this means we will ignore elements which don't have a space in them which
|
|
1205
|
+
// means that the style elements we're looking at are only Emotion 11 server-rendered style elements
|
|
1206
|
+
document.querySelectorAll('style[data-emotion^="' + key + ' "]'),
|
|
1207
|
+
function(node2) {
|
|
1208
|
+
var attrib = node2.getAttribute("data-emotion").split(" ");
|
|
1209
|
+
for (var i = 1; i < attrib.length; i++) {
|
|
1210
|
+
inserted[attrib[i]] = true;
|
|
1211
|
+
}
|
|
1212
|
+
nodesToHydrate.push(node2);
|
|
1213
|
+
}
|
|
1214
|
+
);
|
|
1215
|
+
}
|
|
1216
|
+
var _insert;
|
|
1217
|
+
var omnipresentPlugins = [compat, removeLabel];
|
|
1218
|
+
if (!getServerStylisCache) {
|
|
1219
|
+
var currentSheet;
|
|
1220
|
+
var finalizingPlugins = [stringify, rulesheet(function(rule) {
|
|
1221
|
+
currentSheet.insert(rule);
|
|
1222
|
+
})];
|
|
1223
|
+
var serializer = middleware(omnipresentPlugins.concat(stylisPlugins, finalizingPlugins));
|
|
1224
|
+
var stylis = function stylis2(styles) {
|
|
1225
|
+
return serialize(compile(styles), serializer);
|
|
1226
|
+
};
|
|
1227
|
+
_insert = function insert(selector, serialized, sheet, shouldCache) {
|
|
1228
|
+
currentSheet = sheet;
|
|
1229
|
+
stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
1230
|
+
if (shouldCache) {
|
|
1231
|
+
cache.inserted[serialized.name] = true;
|
|
1232
|
+
}
|
|
1233
|
+
};
|
|
1234
|
+
} else {
|
|
1235
|
+
var _finalizingPlugins = [stringify];
|
|
1236
|
+
var _serializer = middleware(omnipresentPlugins.concat(stylisPlugins, _finalizingPlugins));
|
|
1237
|
+
var _stylis = function _stylis2(styles) {
|
|
1238
|
+
return serialize(compile(styles), _serializer);
|
|
1239
|
+
};
|
|
1240
|
+
var serverStylisCache = getServerStylisCache(stylisPlugins)(key);
|
|
1241
|
+
var getRules3 = function getRules4(selector, serialized) {
|
|
1242
|
+
var name = serialized.name;
|
|
1243
|
+
if (serverStylisCache[name] === void 0) {
|
|
1244
|
+
serverStylisCache[name] = _stylis(selector ? selector + "{" + serialized.styles + "}" : serialized.styles);
|
|
1245
|
+
}
|
|
1246
|
+
return serverStylisCache[name];
|
|
1247
|
+
};
|
|
1248
|
+
_insert = function _insert2(selector, serialized, sheet, shouldCache) {
|
|
1249
|
+
var name = serialized.name;
|
|
1250
|
+
var rules = getRules3(selector, serialized);
|
|
1251
|
+
if (cache.compat === void 0) {
|
|
1252
|
+
if (shouldCache) {
|
|
1253
|
+
cache.inserted[name] = true;
|
|
1254
|
+
}
|
|
1255
|
+
return rules;
|
|
1256
|
+
} else {
|
|
1257
|
+
if (shouldCache) {
|
|
1258
|
+
cache.inserted[name] = rules;
|
|
1259
|
+
} else {
|
|
1260
|
+
return rules;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
};
|
|
1264
|
+
}
|
|
1265
|
+
var cache = {
|
|
1266
|
+
key,
|
|
1267
|
+
sheet: new StyleSheet({
|
|
1268
|
+
key,
|
|
1269
|
+
container,
|
|
1270
|
+
nonce: options.nonce,
|
|
1271
|
+
speedy: options.speedy,
|
|
1272
|
+
prepend: options.prepend,
|
|
1273
|
+
insertionPoint: options.insertionPoint
|
|
1274
|
+
}),
|
|
1275
|
+
nonce: options.nonce,
|
|
1276
|
+
inserted,
|
|
1277
|
+
registered: {},
|
|
1278
|
+
insert: _insert
|
|
1279
|
+
};
|
|
1280
|
+
cache.sheet.hydrate(nodesToHydrate);
|
|
1281
|
+
return cache;
|
|
1282
|
+
};
|
|
1283
|
+
|
|
1284
|
+
// ../node_modules/@babel/runtime/helpers/esm/extends.js
|
|
1285
|
+
function _extends() {
|
|
1286
|
+
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
1287
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
1288
|
+
var t = arguments[e];
|
|
1289
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
1290
|
+
}
|
|
1291
|
+
return n;
|
|
1292
|
+
}, _extends.apply(null, arguments);
|
|
1293
|
+
}
|
|
1294
|
+
|
|
1295
|
+
// ../node_modules/@emotion/utils/dist/emotion-utils.esm.js
|
|
1296
|
+
var isBrowser2 = typeof document !== "undefined";
|
|
1297
|
+
function getRegisteredStyles(registered, registeredStyles, classNames) {
|
|
1298
|
+
var rawClassName = "";
|
|
1299
|
+
classNames.split(" ").forEach(function(className) {
|
|
1300
|
+
if (registered[className] !== void 0) {
|
|
1301
|
+
registeredStyles.push(registered[className] + ";");
|
|
1302
|
+
} else if (className) {
|
|
1303
|
+
rawClassName += className + " ";
|
|
1304
|
+
}
|
|
1305
|
+
});
|
|
1306
|
+
return rawClassName;
|
|
1307
|
+
}
|
|
1308
|
+
var registerStyles = function registerStyles2(cache, serialized, isStringTag) {
|
|
1309
|
+
var className = cache.key + "-" + serialized.name;
|
|
1310
|
+
if (
|
|
1311
|
+
// we only need to add the styles to the registered cache if the
|
|
1312
|
+
// class name could be used further down
|
|
1313
|
+
// the tree but if it's a string tag, we know it won't
|
|
1314
|
+
// so we don't have to add it to registered cache.
|
|
1315
|
+
// this improves memory usage since we can avoid storing the whole style string
|
|
1316
|
+
(isStringTag === false || // we need to always store it if we're in compat mode and
|
|
1317
|
+
// in node since emotion-server relies on whether a style is in
|
|
1318
|
+
// the registered cache to know whether a style is global or not
|
|
1319
|
+
// also, note that this check will be dead code eliminated in the browser
|
|
1320
|
+
isBrowser2 === false && cache.compat !== void 0) && cache.registered[className] === void 0
|
|
1321
|
+
) {
|
|
1322
|
+
cache.registered[className] = serialized.styles;
|
|
1323
|
+
}
|
|
1324
|
+
};
|
|
1325
|
+
var insertStyles = function insertStyles2(cache, serialized, isStringTag) {
|
|
1326
|
+
registerStyles(cache, serialized, isStringTag);
|
|
1327
|
+
var className = cache.key + "-" + serialized.name;
|
|
1328
|
+
if (cache.inserted[serialized.name] === void 0) {
|
|
1329
|
+
var stylesForSSR = "";
|
|
1330
|
+
var current = serialized;
|
|
1331
|
+
do {
|
|
1332
|
+
var maybeStyles = cache.insert(serialized === current ? "." + className : "", current, cache.sheet, true);
|
|
1333
|
+
if (!isBrowser2 && maybeStyles !== void 0) {
|
|
1334
|
+
stylesForSSR += maybeStyles;
|
|
1335
|
+
}
|
|
1336
|
+
current = current.next;
|
|
1337
|
+
} while (current !== void 0);
|
|
1338
|
+
if (!isBrowser2 && stylesForSSR.length !== 0) {
|
|
1339
|
+
return stylesForSSR;
|
|
1340
|
+
}
|
|
1341
|
+
}
|
|
1342
|
+
};
|
|
1343
|
+
|
|
1344
|
+
// ../node_modules/@emotion/hash/dist/emotion-hash.esm.js
|
|
1345
|
+
function murmur2(str) {
|
|
1346
|
+
var h = 0;
|
|
1347
|
+
var k, i = 0, len = str.length;
|
|
1348
|
+
for (; len >= 4; ++i, len -= 4) {
|
|
1349
|
+
k = str.charCodeAt(i) & 255 | (str.charCodeAt(++i) & 255) << 8 | (str.charCodeAt(++i) & 255) << 16 | (str.charCodeAt(++i) & 255) << 24;
|
|
1350
|
+
k = /* Math.imul(k, m): */
|
|
1351
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16);
|
|
1352
|
+
k ^= /* k >>> r: */
|
|
1353
|
+
k >>> 24;
|
|
1354
|
+
h = /* Math.imul(k, m): */
|
|
1355
|
+
(k & 65535) * 1540483477 + ((k >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */
|
|
1356
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1357
|
+
}
|
|
1358
|
+
switch (len) {
|
|
1359
|
+
case 3:
|
|
1360
|
+
h ^= (str.charCodeAt(i + 2) & 255) << 16;
|
|
1361
|
+
case 2:
|
|
1362
|
+
h ^= (str.charCodeAt(i + 1) & 255) << 8;
|
|
1363
|
+
case 1:
|
|
1364
|
+
h ^= str.charCodeAt(i) & 255;
|
|
1365
|
+
h = /* Math.imul(h, m): */
|
|
1366
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1367
|
+
}
|
|
1368
|
+
h ^= h >>> 13;
|
|
1369
|
+
h = /* Math.imul(h, m): */
|
|
1370
|
+
(h & 65535) * 1540483477 + ((h >>> 16) * 59797 << 16);
|
|
1371
|
+
return ((h ^ h >>> 15) >>> 0).toString(36);
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
// ../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js
|
|
1375
|
+
var unitlessKeys = {
|
|
1376
|
+
animationIterationCount: 1,
|
|
1377
|
+
aspectRatio: 1,
|
|
1378
|
+
borderImageOutset: 1,
|
|
1379
|
+
borderImageSlice: 1,
|
|
1380
|
+
borderImageWidth: 1,
|
|
1381
|
+
boxFlex: 1,
|
|
1382
|
+
boxFlexGroup: 1,
|
|
1383
|
+
boxOrdinalGroup: 1,
|
|
1384
|
+
columnCount: 1,
|
|
1385
|
+
columns: 1,
|
|
1386
|
+
flex: 1,
|
|
1387
|
+
flexGrow: 1,
|
|
1388
|
+
flexPositive: 1,
|
|
1389
|
+
flexShrink: 1,
|
|
1390
|
+
flexNegative: 1,
|
|
1391
|
+
flexOrder: 1,
|
|
1392
|
+
gridRow: 1,
|
|
1393
|
+
gridRowEnd: 1,
|
|
1394
|
+
gridRowSpan: 1,
|
|
1395
|
+
gridRowStart: 1,
|
|
1396
|
+
gridColumn: 1,
|
|
1397
|
+
gridColumnEnd: 1,
|
|
1398
|
+
gridColumnSpan: 1,
|
|
1399
|
+
gridColumnStart: 1,
|
|
1400
|
+
msGridRow: 1,
|
|
1401
|
+
msGridRowSpan: 1,
|
|
1402
|
+
msGridColumn: 1,
|
|
1403
|
+
msGridColumnSpan: 1,
|
|
1404
|
+
fontWeight: 1,
|
|
1405
|
+
lineHeight: 1,
|
|
1406
|
+
opacity: 1,
|
|
1407
|
+
order: 1,
|
|
1408
|
+
orphans: 1,
|
|
1409
|
+
scale: 1,
|
|
1410
|
+
tabSize: 1,
|
|
1411
|
+
widows: 1,
|
|
1412
|
+
zIndex: 1,
|
|
1413
|
+
zoom: 1,
|
|
1414
|
+
WebkitLineClamp: 1,
|
|
1415
|
+
// SVG-related properties
|
|
1416
|
+
fillOpacity: 1,
|
|
1417
|
+
floodOpacity: 1,
|
|
1418
|
+
stopOpacity: 1,
|
|
1419
|
+
strokeDasharray: 1,
|
|
1420
|
+
strokeDashoffset: 1,
|
|
1421
|
+
strokeMiterlimit: 1,
|
|
1422
|
+
strokeOpacity: 1,
|
|
1423
|
+
strokeWidth: 1
|
|
1424
|
+
};
|
|
1425
|
+
var hyphenateRegex = /[A-Z]|^ms/g;
|
|
1426
|
+
var animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;
|
|
1427
|
+
var isCustomProperty = function isCustomProperty2(property) {
|
|
1428
|
+
return property.charCodeAt(1) === 45;
|
|
1429
|
+
};
|
|
1430
|
+
var isProcessableValue = function isProcessableValue2(value) {
|
|
1431
|
+
return value != null && typeof value !== "boolean";
|
|
1432
|
+
};
|
|
1433
|
+
var processStyleName = /* @__PURE__ */ memoize(function(styleName) {
|
|
1434
|
+
return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, "-$&").toLowerCase();
|
|
1435
|
+
});
|
|
1436
|
+
var processStyleValue = function processStyleValue2(key, value) {
|
|
1437
|
+
switch (key) {
|
|
1438
|
+
case "animation":
|
|
1439
|
+
case "animationName": {
|
|
1440
|
+
if (typeof value === "string") {
|
|
1441
|
+
return value.replace(animationRegex, function(match2, p1, p2) {
|
|
1442
|
+
cursor = {
|
|
1443
|
+
name: p1,
|
|
1444
|
+
styles: p2,
|
|
1445
|
+
next: cursor
|
|
1446
|
+
};
|
|
1447
|
+
return p1;
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
if (unitlessKeys[key] !== 1 && !isCustomProperty(key) && typeof value === "number" && value !== 0) {
|
|
1453
|
+
return value + "px";
|
|
1454
|
+
}
|
|
1455
|
+
return value;
|
|
1456
|
+
};
|
|
1457
|
+
function handleInterpolation(mergedProps, registered, interpolation) {
|
|
1458
|
+
if (interpolation == null) {
|
|
1459
|
+
return "";
|
|
1460
|
+
}
|
|
1461
|
+
var componentSelector = interpolation;
|
|
1462
|
+
if (componentSelector.__emotion_styles !== void 0) {
|
|
1463
|
+
return componentSelector;
|
|
1464
|
+
}
|
|
1465
|
+
switch (typeof interpolation) {
|
|
1466
|
+
case "boolean": {
|
|
1467
|
+
return "";
|
|
1468
|
+
}
|
|
1469
|
+
case "object": {
|
|
1470
|
+
var keyframes3 = interpolation;
|
|
1471
|
+
if (keyframes3.anim === 1) {
|
|
1472
|
+
cursor = {
|
|
1473
|
+
name: keyframes3.name,
|
|
1474
|
+
styles: keyframes3.styles,
|
|
1475
|
+
next: cursor
|
|
1476
|
+
};
|
|
1477
|
+
return keyframes3.name;
|
|
1478
|
+
}
|
|
1479
|
+
var serializedStyles = interpolation;
|
|
1480
|
+
if (serializedStyles.styles !== void 0) {
|
|
1481
|
+
var next2 = serializedStyles.next;
|
|
1482
|
+
if (next2 !== void 0) {
|
|
1483
|
+
while (next2 !== void 0) {
|
|
1484
|
+
cursor = {
|
|
1485
|
+
name: next2.name,
|
|
1486
|
+
styles: next2.styles,
|
|
1487
|
+
next: cursor
|
|
1488
|
+
};
|
|
1489
|
+
next2 = next2.next;
|
|
1490
|
+
}
|
|
1491
|
+
}
|
|
1492
|
+
var styles = serializedStyles.styles + ";";
|
|
1493
|
+
return styles;
|
|
1494
|
+
}
|
|
1495
|
+
return createStringFromObject(mergedProps, registered, interpolation);
|
|
1496
|
+
}
|
|
1497
|
+
case "function": {
|
|
1498
|
+
if (mergedProps !== void 0) {
|
|
1499
|
+
var previousCursor = cursor;
|
|
1500
|
+
var result = interpolation(mergedProps);
|
|
1501
|
+
cursor = previousCursor;
|
|
1502
|
+
return handleInterpolation(mergedProps, registered, result);
|
|
1503
|
+
}
|
|
1504
|
+
break;
|
|
1505
|
+
}
|
|
1506
|
+
}
|
|
1507
|
+
var asString = interpolation;
|
|
1508
|
+
if (registered == null) {
|
|
1509
|
+
return asString;
|
|
1510
|
+
}
|
|
1511
|
+
var cached = registered[asString];
|
|
1512
|
+
return cached !== void 0 ? cached : asString;
|
|
1513
|
+
}
|
|
1514
|
+
function createStringFromObject(mergedProps, registered, obj) {
|
|
1515
|
+
var string = "";
|
|
1516
|
+
if (Array.isArray(obj)) {
|
|
1517
|
+
for (var i = 0; i < obj.length; i++) {
|
|
1518
|
+
string += handleInterpolation(mergedProps, registered, obj[i]) + ";";
|
|
1519
|
+
}
|
|
1520
|
+
} else {
|
|
1521
|
+
for (var key in obj) {
|
|
1522
|
+
var value = obj[key];
|
|
1523
|
+
if (typeof value !== "object") {
|
|
1524
|
+
var asString = value;
|
|
1525
|
+
if (registered != null && registered[asString] !== void 0) {
|
|
1526
|
+
string += key + "{" + registered[asString] + "}";
|
|
1527
|
+
} else if (isProcessableValue(asString)) {
|
|
1528
|
+
string += processStyleName(key) + ":" + processStyleValue(key, asString) + ";";
|
|
1529
|
+
}
|
|
1530
|
+
} else {
|
|
1531
|
+
if (Array.isArray(value) && typeof value[0] === "string" && (registered == null || registered[value[0]] === void 0)) {
|
|
1532
|
+
for (var _i = 0; _i < value.length; _i++) {
|
|
1533
|
+
if (isProcessableValue(value[_i])) {
|
|
1534
|
+
string += processStyleName(key) + ":" + processStyleValue(key, value[_i]) + ";";
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
} else {
|
|
1538
|
+
var interpolated = handleInterpolation(mergedProps, registered, value);
|
|
1539
|
+
switch (key) {
|
|
1540
|
+
case "animation":
|
|
1541
|
+
case "animationName": {
|
|
1542
|
+
string += processStyleName(key) + ":" + interpolated + ";";
|
|
1543
|
+
break;
|
|
1544
|
+
}
|
|
1545
|
+
default: {
|
|
1546
|
+
string += key + "{" + interpolated + "}";
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
return string;
|
|
1554
|
+
}
|
|
1555
|
+
var labelPattern = /label:\s*([^\s;{]+)\s*(;|$)/g;
|
|
1556
|
+
var cursor;
|
|
1557
|
+
function serializeStyles(args, registered, mergedProps) {
|
|
1558
|
+
if (args.length === 1 && typeof args[0] === "object" && args[0] !== null && args[0].styles !== void 0) {
|
|
1559
|
+
return args[0];
|
|
1560
|
+
}
|
|
1561
|
+
var stringMode = true;
|
|
1562
|
+
var styles = "";
|
|
1563
|
+
cursor = void 0;
|
|
1564
|
+
var strings = args[0];
|
|
1565
|
+
if (strings == null || strings.raw === void 0) {
|
|
1566
|
+
stringMode = false;
|
|
1567
|
+
styles += handleInterpolation(mergedProps, registered, strings);
|
|
1568
|
+
} else {
|
|
1569
|
+
var asTemplateStringsArr = strings;
|
|
1570
|
+
styles += asTemplateStringsArr[0];
|
|
1571
|
+
}
|
|
1572
|
+
for (var i = 1; i < args.length; i++) {
|
|
1573
|
+
styles += handleInterpolation(mergedProps, registered, args[i]);
|
|
1574
|
+
if (stringMode) {
|
|
1575
|
+
var templateStringsArr = strings;
|
|
1576
|
+
styles += templateStringsArr[i];
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
labelPattern.lastIndex = 0;
|
|
1580
|
+
var identifierName = "";
|
|
1581
|
+
var match2;
|
|
1582
|
+
while ((match2 = labelPattern.exec(styles)) !== null) {
|
|
1583
|
+
identifierName += "-" + match2[1];
|
|
1584
|
+
}
|
|
1585
|
+
var name = murmur2(styles) + identifierName;
|
|
1586
|
+
return {
|
|
1587
|
+
name,
|
|
1588
|
+
styles,
|
|
1589
|
+
next: cursor
|
|
1590
|
+
};
|
|
1591
|
+
}
|
|
1592
|
+
var isBrowser3 = typeof document !== "undefined";
|
|
1593
|
+
var syncFallback = function syncFallback2(create) {
|
|
1594
|
+
return create();
|
|
1595
|
+
};
|
|
1596
|
+
var useInsertionEffect2 = React2["useInsertionEffect"] ? React2["useInsertionEffect"] : false;
|
|
1597
|
+
var useInsertionEffectAlwaysWithSyncFallback = !isBrowser3 ? syncFallback : useInsertionEffect2 || syncFallback;
|
|
1598
|
+
var isBrowser4 = typeof document !== "undefined";
|
|
1599
|
+
var EmotionCacheContext = /* @__PURE__ */ React2.createContext(
|
|
1600
|
+
// we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
1601
|
+
// because this module is primarily intended for the browser and node
|
|
1602
|
+
// but it's also required in react native and similar environments sometimes
|
|
1603
|
+
// and we could have a special build just for that
|
|
1604
|
+
// but this is much easier and the native packages
|
|
1605
|
+
// might use a different theme context in the future anyway
|
|
1606
|
+
typeof HTMLElement !== "undefined" ? /* @__PURE__ */ createCache({
|
|
1607
|
+
key: "css"
|
|
1608
|
+
}) : null
|
|
1609
|
+
);
|
|
1610
|
+
EmotionCacheContext.Provider;
|
|
1611
|
+
var withEmotionCache = function withEmotionCache2(func) {
|
|
1612
|
+
return /* @__PURE__ */ forwardRef(function(props, ref) {
|
|
1613
|
+
var cache = useContext(EmotionCacheContext);
|
|
1614
|
+
return func(props, cache, ref);
|
|
1615
|
+
});
|
|
1616
|
+
};
|
|
1617
|
+
if (!isBrowser4) {
|
|
1618
|
+
withEmotionCache = function withEmotionCache3(func) {
|
|
1619
|
+
return function(props) {
|
|
1620
|
+
var cache = useContext(EmotionCacheContext);
|
|
1621
|
+
if (cache === null) {
|
|
1622
|
+
cache = createCache({
|
|
1623
|
+
key: "css"
|
|
1624
|
+
});
|
|
1625
|
+
return /* @__PURE__ */ React2.createElement(EmotionCacheContext.Provider, {
|
|
1626
|
+
value: cache
|
|
1627
|
+
}, func(props, cache));
|
|
1628
|
+
} else {
|
|
1629
|
+
return func(props, cache);
|
|
1630
|
+
}
|
|
1631
|
+
};
|
|
1632
|
+
};
|
|
1633
|
+
}
|
|
1634
|
+
var ThemeContext = /* @__PURE__ */ React2.createContext({});
|
|
1635
|
+
var hasOwn = {}.hasOwnProperty;
|
|
1636
|
+
var typePropName = "__EMOTION_TYPE_PLEASE_DO_NOT_USE__";
|
|
1637
|
+
var createEmotionProps = function createEmotionProps2(type, props) {
|
|
1638
|
+
var newProps = {};
|
|
1639
|
+
for (var _key in props) {
|
|
1640
|
+
if (hasOwn.call(props, _key)) {
|
|
1641
|
+
newProps[_key] = props[_key];
|
|
1642
|
+
}
|
|
1643
|
+
}
|
|
1644
|
+
newProps[typePropName] = type;
|
|
1645
|
+
return newProps;
|
|
1646
|
+
};
|
|
1647
|
+
var Insertion = function Insertion2(_ref) {
|
|
1648
|
+
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
1649
|
+
registerStyles(cache, serialized, isStringTag);
|
|
1650
|
+
var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
1651
|
+
return insertStyles(cache, serialized, isStringTag);
|
|
1652
|
+
});
|
|
1653
|
+
if (!isBrowser4 && rules !== void 0) {
|
|
1654
|
+
var _ref2;
|
|
1655
|
+
var serializedNames = serialized.name;
|
|
1656
|
+
var next2 = serialized.next;
|
|
1657
|
+
while (next2 !== void 0) {
|
|
1658
|
+
serializedNames += " " + next2.name;
|
|
1659
|
+
next2 = next2.next;
|
|
1660
|
+
}
|
|
1661
|
+
return /* @__PURE__ */ React2.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
1662
|
+
__html: rules
|
|
1663
|
+
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
1664
|
+
}
|
|
1665
|
+
return null;
|
|
1666
|
+
};
|
|
1667
|
+
var Emotion = /* @__PURE__ */ withEmotionCache(function(props, cache, ref) {
|
|
1668
|
+
var cssProp = props.css;
|
|
1669
|
+
if (typeof cssProp === "string" && cache.registered[cssProp] !== void 0) {
|
|
1670
|
+
cssProp = cache.registered[cssProp];
|
|
1671
|
+
}
|
|
1672
|
+
var WrappedComponent = props[typePropName];
|
|
1673
|
+
var registeredStyles = [cssProp];
|
|
1674
|
+
var className = "";
|
|
1675
|
+
if (typeof props.className === "string") {
|
|
1676
|
+
className = getRegisteredStyles(cache.registered, registeredStyles, props.className);
|
|
1677
|
+
} else if (props.className != null) {
|
|
1678
|
+
className = props.className + " ";
|
|
1679
|
+
}
|
|
1680
|
+
var serialized = serializeStyles(registeredStyles, void 0, React2.useContext(ThemeContext));
|
|
1681
|
+
className += cache.key + "-" + serialized.name;
|
|
1682
|
+
var newProps = {};
|
|
1683
|
+
for (var _key2 in props) {
|
|
1684
|
+
if (hasOwn.call(props, _key2) && _key2 !== "css" && _key2 !== typePropName && true) {
|
|
1685
|
+
newProps[_key2] = props[_key2];
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
newProps.className = className;
|
|
1689
|
+
if (ref) {
|
|
1690
|
+
newProps.ref = ref;
|
|
1691
|
+
}
|
|
1692
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(Insertion, {
|
|
1693
|
+
cache,
|
|
1694
|
+
serialized,
|
|
1695
|
+
isStringTag: typeof WrappedComponent === "string"
|
|
1696
|
+
}), /* @__PURE__ */ React2.createElement(WrappedComponent, newProps));
|
|
1697
|
+
});
|
|
1698
|
+
var Emotion$1 = Emotion;
|
|
1699
|
+
__toESM(require_extends());
|
|
1700
|
+
__toESM(require_hoist_non_react_statics_cjs());
|
|
1701
|
+
var jsx3 = function jsx4(type, props) {
|
|
1702
|
+
var args = arguments;
|
|
1703
|
+
if (props == null || !hasOwn.call(props, "css")) {
|
|
1704
|
+
return React2.createElement.apply(void 0, args);
|
|
1705
|
+
}
|
|
1706
|
+
var argsLength = args.length;
|
|
1707
|
+
var createElementArgArray = new Array(argsLength);
|
|
1708
|
+
createElementArgArray[0] = Emotion$1;
|
|
1709
|
+
createElementArgArray[1] = createEmotionProps(type, props);
|
|
1710
|
+
for (var i = 2; i < argsLength; i++) {
|
|
1711
|
+
createElementArgArray[i] = args[i];
|
|
1712
|
+
}
|
|
1713
|
+
return React2.createElement.apply(null, createElementArgArray);
|
|
1714
|
+
};
|
|
1715
|
+
(function(_jsx) {
|
|
1716
|
+
var JSX;
|
|
1717
|
+
/* @__PURE__ */ (function(_JSX) {
|
|
1718
|
+
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
1719
|
+
})(jsx3 || (jsx3 = {}));
|
|
1720
|
+
function css() {
|
|
1721
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1722
|
+
args[_key] = arguments[_key];
|
|
1723
|
+
}
|
|
1724
|
+
return serializeStyles(args);
|
|
1725
|
+
}
|
|
1726
|
+
function keyframes() {
|
|
1727
|
+
var insertable = css.apply(void 0, arguments);
|
|
1728
|
+
var name = "animation-" + insertable.name;
|
|
1729
|
+
return {
|
|
1730
|
+
name,
|
|
1731
|
+
styles: "@keyframes " + name + "{" + insertable.styles + "}",
|
|
1732
|
+
anim: 1,
|
|
1733
|
+
toString: function toString() {
|
|
1734
|
+
return "_EMO_" + this.name + "_" + this.styles + "_EMO_";
|
|
1735
|
+
}
|
|
1736
|
+
};
|
|
1737
|
+
}
|
|
29
1738
|
function useInsforge() {
|
|
30
1739
|
const context = useContext(InsforgeContext);
|
|
31
1740
|
if (!context) {
|
|
@@ -74,6 +1783,294 @@ function usePublicAuthConfig() {
|
|
|
74
1783
|
return { authConfig, isLoaded };
|
|
75
1784
|
}
|
|
76
1785
|
|
|
1786
|
+
// ../node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js
|
|
1787
|
+
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/;
|
|
1788
|
+
var isPropValid = /* @__PURE__ */ memoize(
|
|
1789
|
+
function(prop) {
|
|
1790
|
+
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
|
1791
|
+
}
|
|
1792
|
+
/* Z+1 */
|
|
1793
|
+
);
|
|
1794
|
+
|
|
1795
|
+
// ../node_modules/@emotion/styled/base/dist/emotion-styled-base.esm.js
|
|
1796
|
+
var isBrowser5 = typeof document !== "undefined";
|
|
1797
|
+
var testOmitPropsOnStringTag = isPropValid;
|
|
1798
|
+
var testOmitPropsOnComponent = function testOmitPropsOnComponent2(key) {
|
|
1799
|
+
return key !== "theme";
|
|
1800
|
+
};
|
|
1801
|
+
var getDefaultShouldForwardProp = function getDefaultShouldForwardProp2(tag) {
|
|
1802
|
+
return typeof tag === "string" && // 96 is one less than the char code
|
|
1803
|
+
// for "a" so this is checking that
|
|
1804
|
+
// it's a lowercase character
|
|
1805
|
+
tag.charCodeAt(0) > 96 ? testOmitPropsOnStringTag : testOmitPropsOnComponent;
|
|
1806
|
+
};
|
|
1807
|
+
var composeShouldForwardProps = function composeShouldForwardProps2(tag, options, isReal) {
|
|
1808
|
+
var shouldForwardProp;
|
|
1809
|
+
if (options) {
|
|
1810
|
+
var optionsShouldForwardProp = options.shouldForwardProp;
|
|
1811
|
+
shouldForwardProp = tag.__emotion_forwardProp && optionsShouldForwardProp ? function(propName) {
|
|
1812
|
+
return tag.__emotion_forwardProp(propName) && optionsShouldForwardProp(propName);
|
|
1813
|
+
} : optionsShouldForwardProp;
|
|
1814
|
+
}
|
|
1815
|
+
if (typeof shouldForwardProp !== "function" && isReal) {
|
|
1816
|
+
shouldForwardProp = tag.__emotion_forwardProp;
|
|
1817
|
+
}
|
|
1818
|
+
return shouldForwardProp;
|
|
1819
|
+
};
|
|
1820
|
+
var Insertion3 = function Insertion4(_ref) {
|
|
1821
|
+
var cache = _ref.cache, serialized = _ref.serialized, isStringTag = _ref.isStringTag;
|
|
1822
|
+
registerStyles(cache, serialized, isStringTag);
|
|
1823
|
+
var rules = useInsertionEffectAlwaysWithSyncFallback(function() {
|
|
1824
|
+
return insertStyles(cache, serialized, isStringTag);
|
|
1825
|
+
});
|
|
1826
|
+
if (!isBrowser5 && rules !== void 0) {
|
|
1827
|
+
var _ref2;
|
|
1828
|
+
var serializedNames = serialized.name;
|
|
1829
|
+
var next2 = serialized.next;
|
|
1830
|
+
while (next2 !== void 0) {
|
|
1831
|
+
serializedNames += " " + next2.name;
|
|
1832
|
+
next2 = next2.next;
|
|
1833
|
+
}
|
|
1834
|
+
return /* @__PURE__ */ React2.createElement("style", (_ref2 = {}, _ref2["data-emotion"] = cache.key + " " + serializedNames, _ref2.dangerouslySetInnerHTML = {
|
|
1835
|
+
__html: rules
|
|
1836
|
+
}, _ref2.nonce = cache.sheet.nonce, _ref2));
|
|
1837
|
+
}
|
|
1838
|
+
return null;
|
|
1839
|
+
};
|
|
1840
|
+
var createStyled = function createStyled2(tag, options) {
|
|
1841
|
+
var isReal = tag.__emotion_real === tag;
|
|
1842
|
+
var baseTag = isReal && tag.__emotion_base || tag;
|
|
1843
|
+
var identifierName;
|
|
1844
|
+
var targetClassName;
|
|
1845
|
+
if (options !== void 0) {
|
|
1846
|
+
identifierName = options.label;
|
|
1847
|
+
targetClassName = options.target;
|
|
1848
|
+
}
|
|
1849
|
+
var shouldForwardProp = composeShouldForwardProps(tag, options, isReal);
|
|
1850
|
+
var defaultShouldForwardProp = shouldForwardProp || getDefaultShouldForwardProp(baseTag);
|
|
1851
|
+
var shouldUseAs = !defaultShouldForwardProp("as");
|
|
1852
|
+
return function() {
|
|
1853
|
+
var args = arguments;
|
|
1854
|
+
var styles = isReal && tag.__emotion_styles !== void 0 ? tag.__emotion_styles.slice(0) : [];
|
|
1855
|
+
if (identifierName !== void 0) {
|
|
1856
|
+
styles.push("label:" + identifierName + ";");
|
|
1857
|
+
}
|
|
1858
|
+
if (args[0] == null || args[0].raw === void 0) {
|
|
1859
|
+
styles.push.apply(styles, args);
|
|
1860
|
+
} else {
|
|
1861
|
+
var templateStringsArr = args[0];
|
|
1862
|
+
styles.push(templateStringsArr[0]);
|
|
1863
|
+
var len = args.length;
|
|
1864
|
+
var i = 1;
|
|
1865
|
+
for (; i < len; i++) {
|
|
1866
|
+
styles.push(args[i], templateStringsArr[i]);
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1869
|
+
var Styled = withEmotionCache(function(props, cache, ref) {
|
|
1870
|
+
var FinalTag = shouldUseAs && props.as || baseTag;
|
|
1871
|
+
var className = "";
|
|
1872
|
+
var classInterpolations = [];
|
|
1873
|
+
var mergedProps = props;
|
|
1874
|
+
if (props.theme == null) {
|
|
1875
|
+
mergedProps = {};
|
|
1876
|
+
for (var key in props) {
|
|
1877
|
+
mergedProps[key] = props[key];
|
|
1878
|
+
}
|
|
1879
|
+
mergedProps.theme = React2.useContext(ThemeContext);
|
|
1880
|
+
}
|
|
1881
|
+
if (typeof props.className === "string") {
|
|
1882
|
+
className = getRegisteredStyles(cache.registered, classInterpolations, props.className);
|
|
1883
|
+
} else if (props.className != null) {
|
|
1884
|
+
className = props.className + " ";
|
|
1885
|
+
}
|
|
1886
|
+
var serialized = serializeStyles(styles.concat(classInterpolations), cache.registered, mergedProps);
|
|
1887
|
+
className += cache.key + "-" + serialized.name;
|
|
1888
|
+
if (targetClassName !== void 0) {
|
|
1889
|
+
className += " " + targetClassName;
|
|
1890
|
+
}
|
|
1891
|
+
var finalShouldForwardProp = shouldUseAs && shouldForwardProp === void 0 ? getDefaultShouldForwardProp(FinalTag) : defaultShouldForwardProp;
|
|
1892
|
+
var newProps = {};
|
|
1893
|
+
for (var _key in props) {
|
|
1894
|
+
if (shouldUseAs && _key === "as") continue;
|
|
1895
|
+
if (finalShouldForwardProp(_key)) {
|
|
1896
|
+
newProps[_key] = props[_key];
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
newProps.className = className;
|
|
1900
|
+
if (ref) {
|
|
1901
|
+
newProps.ref = ref;
|
|
1902
|
+
}
|
|
1903
|
+
return /* @__PURE__ */ React2.createElement(React2.Fragment, null, /* @__PURE__ */ React2.createElement(Insertion3, {
|
|
1904
|
+
cache,
|
|
1905
|
+
serialized,
|
|
1906
|
+
isStringTag: typeof FinalTag === "string"
|
|
1907
|
+
}), /* @__PURE__ */ React2.createElement(FinalTag, newProps));
|
|
1908
|
+
});
|
|
1909
|
+
Styled.displayName = identifierName !== void 0 ? identifierName : "Styled(" + (typeof baseTag === "string" ? baseTag : baseTag.displayName || baseTag.name || "Component") + ")";
|
|
1910
|
+
Styled.defaultProps = tag.defaultProps;
|
|
1911
|
+
Styled.__emotion_real = Styled;
|
|
1912
|
+
Styled.__emotion_base = baseTag;
|
|
1913
|
+
Styled.__emotion_styles = styles;
|
|
1914
|
+
Styled.__emotion_forwardProp = shouldForwardProp;
|
|
1915
|
+
Object.defineProperty(Styled, "toString", {
|
|
1916
|
+
value: function value() {
|
|
1917
|
+
return "." + targetClassName;
|
|
1918
|
+
}
|
|
1919
|
+
});
|
|
1920
|
+
Styled.withComponent = function(nextTag, nextOptions) {
|
|
1921
|
+
var newStyled = createStyled2(nextTag, _extends({}, options, nextOptions, {
|
|
1922
|
+
shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
|
|
1923
|
+
}));
|
|
1924
|
+
return newStyled.apply(void 0, styles);
|
|
1925
|
+
};
|
|
1926
|
+
return Styled;
|
|
1927
|
+
};
|
|
1928
|
+
};
|
|
1929
|
+
|
|
1930
|
+
// ../node_modules/@emotion/styled/dist/emotion-styled.esm.js
|
|
1931
|
+
__toESM(require_extends());
|
|
1932
|
+
var tags = [
|
|
1933
|
+
"a",
|
|
1934
|
+
"abbr",
|
|
1935
|
+
"address",
|
|
1936
|
+
"area",
|
|
1937
|
+
"article",
|
|
1938
|
+
"aside",
|
|
1939
|
+
"audio",
|
|
1940
|
+
"b",
|
|
1941
|
+
"base",
|
|
1942
|
+
"bdi",
|
|
1943
|
+
"bdo",
|
|
1944
|
+
"big",
|
|
1945
|
+
"blockquote",
|
|
1946
|
+
"body",
|
|
1947
|
+
"br",
|
|
1948
|
+
"button",
|
|
1949
|
+
"canvas",
|
|
1950
|
+
"caption",
|
|
1951
|
+
"cite",
|
|
1952
|
+
"code",
|
|
1953
|
+
"col",
|
|
1954
|
+
"colgroup",
|
|
1955
|
+
"data",
|
|
1956
|
+
"datalist",
|
|
1957
|
+
"dd",
|
|
1958
|
+
"del",
|
|
1959
|
+
"details",
|
|
1960
|
+
"dfn",
|
|
1961
|
+
"dialog",
|
|
1962
|
+
"div",
|
|
1963
|
+
"dl",
|
|
1964
|
+
"dt",
|
|
1965
|
+
"em",
|
|
1966
|
+
"embed",
|
|
1967
|
+
"fieldset",
|
|
1968
|
+
"figcaption",
|
|
1969
|
+
"figure",
|
|
1970
|
+
"footer",
|
|
1971
|
+
"form",
|
|
1972
|
+
"h1",
|
|
1973
|
+
"h2",
|
|
1974
|
+
"h3",
|
|
1975
|
+
"h4",
|
|
1976
|
+
"h5",
|
|
1977
|
+
"h6",
|
|
1978
|
+
"head",
|
|
1979
|
+
"header",
|
|
1980
|
+
"hgroup",
|
|
1981
|
+
"hr",
|
|
1982
|
+
"html",
|
|
1983
|
+
"i",
|
|
1984
|
+
"iframe",
|
|
1985
|
+
"img",
|
|
1986
|
+
"input",
|
|
1987
|
+
"ins",
|
|
1988
|
+
"kbd",
|
|
1989
|
+
"keygen",
|
|
1990
|
+
"label",
|
|
1991
|
+
"legend",
|
|
1992
|
+
"li",
|
|
1993
|
+
"link",
|
|
1994
|
+
"main",
|
|
1995
|
+
"map",
|
|
1996
|
+
"mark",
|
|
1997
|
+
"marquee",
|
|
1998
|
+
"menu",
|
|
1999
|
+
"menuitem",
|
|
2000
|
+
"meta",
|
|
2001
|
+
"meter",
|
|
2002
|
+
"nav",
|
|
2003
|
+
"noscript",
|
|
2004
|
+
"object",
|
|
2005
|
+
"ol",
|
|
2006
|
+
"optgroup",
|
|
2007
|
+
"option",
|
|
2008
|
+
"output",
|
|
2009
|
+
"p",
|
|
2010
|
+
"param",
|
|
2011
|
+
"picture",
|
|
2012
|
+
"pre",
|
|
2013
|
+
"progress",
|
|
2014
|
+
"q",
|
|
2015
|
+
"rp",
|
|
2016
|
+
"rt",
|
|
2017
|
+
"ruby",
|
|
2018
|
+
"s",
|
|
2019
|
+
"samp",
|
|
2020
|
+
"script",
|
|
2021
|
+
"section",
|
|
2022
|
+
"select",
|
|
2023
|
+
"small",
|
|
2024
|
+
"source",
|
|
2025
|
+
"span",
|
|
2026
|
+
"strong",
|
|
2027
|
+
"style",
|
|
2028
|
+
"sub",
|
|
2029
|
+
"summary",
|
|
2030
|
+
"sup",
|
|
2031
|
+
"table",
|
|
2032
|
+
"tbody",
|
|
2033
|
+
"td",
|
|
2034
|
+
"textarea",
|
|
2035
|
+
"tfoot",
|
|
2036
|
+
"th",
|
|
2037
|
+
"thead",
|
|
2038
|
+
"time",
|
|
2039
|
+
"title",
|
|
2040
|
+
"tr",
|
|
2041
|
+
"track",
|
|
2042
|
+
"u",
|
|
2043
|
+
"ul",
|
|
2044
|
+
"var",
|
|
2045
|
+
"video",
|
|
2046
|
+
"wbr",
|
|
2047
|
+
// SVG
|
|
2048
|
+
"circle",
|
|
2049
|
+
"clipPath",
|
|
2050
|
+
"defs",
|
|
2051
|
+
"ellipse",
|
|
2052
|
+
"foreignObject",
|
|
2053
|
+
"g",
|
|
2054
|
+
"image",
|
|
2055
|
+
"line",
|
|
2056
|
+
"linearGradient",
|
|
2057
|
+
"mask",
|
|
2058
|
+
"path",
|
|
2059
|
+
"pattern",
|
|
2060
|
+
"polygon",
|
|
2061
|
+
"polyline",
|
|
2062
|
+
"radialGradient",
|
|
2063
|
+
"rect",
|
|
2064
|
+
"stop",
|
|
2065
|
+
"svg",
|
|
2066
|
+
"text",
|
|
2067
|
+
"tspan"
|
|
2068
|
+
];
|
|
2069
|
+
var styled = createStyled.bind(null);
|
|
2070
|
+
tags.forEach(function(tagName) {
|
|
2071
|
+
styled[tagName] = styled(tagName);
|
|
2072
|
+
});
|
|
2073
|
+
|
|
77
2074
|
// src/styles/theme.ts
|
|
78
2075
|
var theme = {
|
|
79
2076
|
colors: {
|
|
@@ -182,7 +2179,7 @@ var theme = {
|
|
|
182
2179
|
// 32px
|
|
183
2180
|
}
|
|
184
2181
|
};
|
|
185
|
-
var
|
|
2182
|
+
var keyframes2 = {
|
|
186
2183
|
spin: `
|
|
187
2184
|
from {
|
|
188
2185
|
transform: rotate(0deg);
|
|
@@ -194,7 +2191,7 @@ var keyframes = {
|
|
|
194
2191
|
};
|
|
195
2192
|
|
|
196
2193
|
// src/components/atoms/styled.ts
|
|
197
|
-
var spinAnimation = keyframes
|
|
2194
|
+
var spinAnimation = keyframes`${keyframes2.spin}`;
|
|
198
2195
|
var AuthContainerWrapper = styled.div`
|
|
199
2196
|
width: 100%;
|
|
200
2197
|
max-width: 400px;
|
|
@@ -1101,7 +3098,7 @@ function AuthOAuthProviders({
|
|
|
1101
3098
|
);
|
|
1102
3099
|
}
|
|
1103
3100
|
function AuthVerificationCodeInput({
|
|
1104
|
-
length = 6,
|
|
3101
|
+
length: length2 = 6,
|
|
1105
3102
|
value,
|
|
1106
3103
|
onChange,
|
|
1107
3104
|
disabled = false,
|
|
@@ -1119,10 +3116,10 @@ function AuthVerificationCodeInput({
|
|
|
1119
3116
|
newValue[index] = digit;
|
|
1120
3117
|
const updatedValue = newValue.join("");
|
|
1121
3118
|
onChange(updatedValue);
|
|
1122
|
-
if (digit && index <
|
|
3119
|
+
if (digit && index < length2 - 1) {
|
|
1123
3120
|
inputRefs.current[index + 1]?.focus();
|
|
1124
3121
|
}
|
|
1125
|
-
if (digit && index ===
|
|
3122
|
+
if (digit && index === length2 - 1 && updatedValue.length === length2 && onComplete) {
|
|
1126
3123
|
onComplete(updatedValue);
|
|
1127
3124
|
}
|
|
1128
3125
|
};
|
|
@@ -1135,22 +3132,22 @@ function AuthVerificationCodeInput({
|
|
|
1135
3132
|
}
|
|
1136
3133
|
} else if (e.key === "ArrowLeft" && index > 0) {
|
|
1137
3134
|
inputRefs.current[index - 1]?.focus();
|
|
1138
|
-
} else if (e.key === "ArrowRight" && index <
|
|
3135
|
+
} else if (e.key === "ArrowRight" && index < length2 - 1) {
|
|
1139
3136
|
inputRefs.current[index + 1]?.focus();
|
|
1140
3137
|
}
|
|
1141
3138
|
};
|
|
1142
3139
|
const handlePaste = (e) => {
|
|
1143
3140
|
e.preventDefault();
|
|
1144
3141
|
const pastedData = e.clipboardData.getData("text/plain").trim();
|
|
1145
|
-
if (/^\d+$/.test(pastedData) && pastedData.length ===
|
|
3142
|
+
if (/^\d+$/.test(pastedData) && pastedData.length === length2) {
|
|
1146
3143
|
onChange(pastedData);
|
|
1147
|
-
inputRefs.current[
|
|
3144
|
+
inputRefs.current[length2 - 1]?.focus();
|
|
1148
3145
|
if (onComplete) {
|
|
1149
3146
|
onComplete(pastedData);
|
|
1150
3147
|
}
|
|
1151
3148
|
}
|
|
1152
3149
|
};
|
|
1153
|
-
return /* @__PURE__ */ jsx(VerificationCodeInputContainer, { children: Array.from({ length }).map((_, index) => /* @__PURE__ */ jsx(
|
|
3150
|
+
return /* @__PURE__ */ jsx(VerificationCodeInputContainer, { children: Array.from({ length: length2 }).map((_, index) => /* @__PURE__ */ jsx(
|
|
1154
3151
|
VerificationCodeInput,
|
|
1155
3152
|
{
|
|
1156
3153
|
ref: (el) => {
|
|
@@ -1169,6 +3166,8 @@ function AuthVerificationCodeInput({
|
|
|
1169
3166
|
index
|
|
1170
3167
|
)) });
|
|
1171
3168
|
}
|
|
3169
|
+
|
|
3170
|
+
// src/components/forms/styled.ts
|
|
1172
3171
|
styled.form`
|
|
1173
3172
|
display: flex;
|
|
1174
3173
|
flex-direction: column;
|
|
@@ -1335,12 +3334,12 @@ function AuthEmailVerificationStep({
|
|
|
1335
3334
|
useEffect(() => {
|
|
1336
3335
|
if (resendDisabled && resendCountdown > 0) {
|
|
1337
3336
|
const timer = setInterval(() => {
|
|
1338
|
-
setResendCountdown((
|
|
1339
|
-
if (
|
|
3337
|
+
setResendCountdown((prev2) => {
|
|
3338
|
+
if (prev2 <= 1) {
|
|
1340
3339
|
setResendDisabled(false);
|
|
1341
3340
|
return 0;
|
|
1342
3341
|
}
|
|
1343
|
-
return
|
|
3342
|
+
return prev2 - 1;
|
|
1344
3343
|
});
|
|
1345
3344
|
}, 1e3);
|
|
1346
3345
|
return () => clearInterval(timer);
|
|
@@ -1439,12 +3438,12 @@ function AuthResetPasswordVerificationStep({
|
|
|
1439
3438
|
useEffect(() => {
|
|
1440
3439
|
if (resendCountdown > 0) {
|
|
1441
3440
|
const timer = setInterval(() => {
|
|
1442
|
-
setResendCountdown((
|
|
1443
|
-
if (
|
|
3441
|
+
setResendCountdown((prev2) => {
|
|
3442
|
+
if (prev2 <= 1) {
|
|
1444
3443
|
setResendDisabled(false);
|
|
1445
3444
|
return 0;
|
|
1446
3445
|
}
|
|
1447
|
-
return
|
|
3446
|
+
return prev2 - 1;
|
|
1448
3447
|
});
|
|
1449
3448
|
}, 1e3);
|
|
1450
3449
|
return () => clearInterval(timer);
|
|
@@ -2261,7 +4260,7 @@ function ForgotPassword({ onError, ...uiProps }) {
|
|
|
2261
4260
|
}
|
|
2262
4261
|
function ResetPassword({ onError, ...uiProps }) {
|
|
2263
4262
|
const searchParams = useSearchParams();
|
|
2264
|
-
const
|
|
4263
|
+
const token2 = searchParams.get("token");
|
|
2265
4264
|
const { resetPassword } = useInsforge();
|
|
2266
4265
|
const { authConfig } = usePublicAuthConfig();
|
|
2267
4266
|
const [newPassword, setNewPassword] = useState("");
|
|
@@ -2283,7 +4282,7 @@ function ResetPassword({ onError, ...uiProps }) {
|
|
|
2283
4282
|
setLoading(false);
|
|
2284
4283
|
return;
|
|
2285
4284
|
}
|
|
2286
|
-
if (!
|
|
4285
|
+
if (!token2) {
|
|
2287
4286
|
setError("Reset token is missing");
|
|
2288
4287
|
setLoading(false);
|
|
2289
4288
|
return;
|
|
@@ -2303,7 +4302,7 @@ function ResetPassword({ onError, ...uiProps }) {
|
|
|
2303
4302
|
return;
|
|
2304
4303
|
}
|
|
2305
4304
|
try {
|
|
2306
|
-
const result = await resetPassword(
|
|
4305
|
+
const result = await resetPassword(token2, newPassword);
|
|
2307
4306
|
if (result?.message) {
|
|
2308
4307
|
setSuccess(true);
|
|
2309
4308
|
} else {
|
|
@@ -2326,7 +4325,7 @@ function ResetPassword({ onError, ...uiProps }) {
|
|
|
2326
4325
|
if (!authConfig) {
|
|
2327
4326
|
return null;
|
|
2328
4327
|
}
|
|
2329
|
-
if (!
|
|
4328
|
+
if (!token2) {
|
|
2330
4329
|
return /* @__PURE__ */ jsxs(AuthContainer, { children: [
|
|
2331
4330
|
/* @__PURE__ */ jsx(AuthHeader, { title: "Invalid Reset Link", subtitle: "" }),
|
|
2332
4331
|
/* @__PURE__ */ jsx(
|
|
@@ -2474,13 +4473,13 @@ function VerifyEmailStatus({
|
|
|
2474
4473
|
/* @__PURE__ */ jsx(VerifyStatusTextCenter, { style: { color: theme.colors.textSecondary }, children: successMessage })
|
|
2475
4474
|
] }) }) });
|
|
2476
4475
|
}
|
|
2477
|
-
function VerifyEmail({ token, onSuccess, onError, ...uiProps }) {
|
|
4476
|
+
function VerifyEmail({ token: token2, onSuccess, onError, ...uiProps }) {
|
|
2478
4477
|
const { verifyEmail } = useInsforge();
|
|
2479
4478
|
const [status, setStatus] = useState("verifying");
|
|
2480
4479
|
const [error, setError] = useState("");
|
|
2481
4480
|
useEffect(() => {
|
|
2482
4481
|
const verifyEmailFn = async () => {
|
|
2483
|
-
if (!
|
|
4482
|
+
if (!token2) {
|
|
2484
4483
|
const errorMessage = "Invalid verification link. Missing required token.";
|
|
2485
4484
|
setError(errorMessage);
|
|
2486
4485
|
setStatus("error");
|
|
@@ -2490,7 +4489,7 @@ function VerifyEmail({ token, onSuccess, onError, ...uiProps }) {
|
|
|
2490
4489
|
return;
|
|
2491
4490
|
}
|
|
2492
4491
|
try {
|
|
2493
|
-
const result = await verifyEmail(
|
|
4492
|
+
const result = await verifyEmail(token2);
|
|
2494
4493
|
if (!result?.accessToken) {
|
|
2495
4494
|
const errorMessage = result ? "Verification succeeded but no access token received" : "Email verification failed";
|
|
2496
4495
|
setError(errorMessage);
|
|
@@ -2518,7 +4517,7 @@ function VerifyEmail({ token, onSuccess, onError, ...uiProps }) {
|
|
|
2518
4517
|
}
|
|
2519
4518
|
};
|
|
2520
4519
|
void verifyEmailFn();
|
|
2521
|
-
}, [
|
|
4520
|
+
}, [token2, verifyEmail, onSuccess, onError]);
|
|
2522
4521
|
return /* @__PURE__ */ jsx(VerifyEmailStatus, { status, error, ...uiProps });
|
|
2523
4522
|
}
|
|
2524
4523
|
function SignOutButton({ children, className, afterSignOutUrl = "/" }) {
|
|
@@ -2540,6 +4539,8 @@ function SignOutButton({ children, className, afterSignOutUrl = "/" }) {
|
|
|
2540
4539
|
}
|
|
2541
4540
|
return /* @__PURE__ */ jsx("button", { type: "button", className, onClick: () => void handleClick(), children: children || "Sign out" });
|
|
2542
4541
|
}
|
|
4542
|
+
|
|
4543
|
+
// src/components/styled.ts
|
|
2543
4544
|
var UserButtonContainer = styled.div`
|
|
2544
4545
|
position: relative;
|
|
2545
4546
|
display: inline-block;
|
|
@@ -2613,7 +4614,17 @@ var UserButtonEmail = styled.div`
|
|
|
2613
4614
|
`;
|
|
2614
4615
|
var UserButtonMenu = styled.div`
|
|
2615
4616
|
position: absolute;
|
|
2616
|
-
|
|
4617
|
+
${(props) => props.$openUpward ? `
|
|
4618
|
+
bottom: 100%;
|
|
4619
|
+
margin-bottom: ${theme.spacing[2]};
|
|
4620
|
+
` : `
|
|
4621
|
+
top: 100%;
|
|
4622
|
+
margin-top: ${theme.spacing[2]};
|
|
4623
|
+
`}
|
|
4624
|
+
left: 0;
|
|
4625
|
+
${(props) => props.$horizontalOffset ? `
|
|
4626
|
+
transform: translateX(${props.$horizontalOffset}px);
|
|
4627
|
+
` : ""}
|
|
2617
4628
|
background-color: ${theme.colors.bgWhite};
|
|
2618
4629
|
border: 1px solid ${theme.colors.border};
|
|
2619
4630
|
border-radius: ${theme.radius.md};
|
|
@@ -2654,11 +4665,14 @@ var UserButtonMenuItemIcon = styled.div`
|
|
|
2654
4665
|
height: 100%;
|
|
2655
4666
|
}
|
|
2656
4667
|
`;
|
|
2657
|
-
function UserButton({ afterSignOutUrl = "/", mode = "
|
|
4668
|
+
function UserButton({ afterSignOutUrl = "/", mode = "simple" }) {
|
|
2658
4669
|
const { user } = useInsforge();
|
|
2659
4670
|
const [isOpen, setIsOpen] = useState(false);
|
|
2660
4671
|
const [imageError, setImageError] = useState(false);
|
|
4672
|
+
const [openUpward, setOpenUpward] = useState(false);
|
|
4673
|
+
const [horizontalOffset, setHorizontalOffset] = useState(0);
|
|
2661
4674
|
const dropdownRef = useRef(null);
|
|
4675
|
+
const menuRef = useRef(null);
|
|
2662
4676
|
useEffect(() => {
|
|
2663
4677
|
setImageError(false);
|
|
2664
4678
|
const avatarUrl = user?.avatarUrl;
|
|
@@ -2683,6 +4697,33 @@ function UserButton({ afterSignOutUrl = "/", mode = "detailed" }) {
|
|
|
2683
4697
|
};
|
|
2684
4698
|
void checkImageUrl();
|
|
2685
4699
|
}, [user?.avatarUrl]);
|
|
4700
|
+
useEffect(() => {
|
|
4701
|
+
if (isOpen && dropdownRef.current) {
|
|
4702
|
+
const buttonRect = dropdownRef.current.getBoundingClientRect();
|
|
4703
|
+
const viewportHeight = window.innerHeight;
|
|
4704
|
+
const viewportWidth = window.innerWidth;
|
|
4705
|
+
const spaceBelow = viewportHeight - buttonRect.bottom;
|
|
4706
|
+
const spaceAbove = buttonRect.top;
|
|
4707
|
+
const menuHeight = 200;
|
|
4708
|
+
const shouldOpenUpward = spaceBelow < menuHeight && spaceAbove > spaceBelow;
|
|
4709
|
+
setOpenUpward(shouldOpenUpward);
|
|
4710
|
+
requestAnimationFrame(() => {
|
|
4711
|
+
if (menuRef.current) {
|
|
4712
|
+
const menuWidth = menuRef.current.offsetWidth;
|
|
4713
|
+
const menuRight = buttonRect.left + menuWidth;
|
|
4714
|
+
const viewportPadding = 16;
|
|
4715
|
+
if (menuRight > viewportWidth - viewportPadding) {
|
|
4716
|
+
const overflow = menuRight - (viewportWidth - viewportPadding);
|
|
4717
|
+
setHorizontalOffset(-overflow);
|
|
4718
|
+
} else {
|
|
4719
|
+
setHorizontalOffset(0);
|
|
4720
|
+
}
|
|
4721
|
+
}
|
|
4722
|
+
});
|
|
4723
|
+
} else {
|
|
4724
|
+
setHorizontalOffset(0);
|
|
4725
|
+
}
|
|
4726
|
+
}, [isOpen]);
|
|
2686
4727
|
useEffect(() => {
|
|
2687
4728
|
function handleClickOutside(event) {
|
|
2688
4729
|
if (dropdownRef.current && !dropdownRef.current.contains(event.target)) {
|
|
@@ -2724,10 +4765,18 @@ function UserButton({ afterSignOutUrl = "/", mode = "detailed" }) {
|
|
|
2724
4765
|
]
|
|
2725
4766
|
}
|
|
2726
4767
|
),
|
|
2727
|
-
isOpen && /* @__PURE__ */ jsx(
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
4768
|
+
isOpen && /* @__PURE__ */ jsx(
|
|
4769
|
+
UserButtonMenu,
|
|
4770
|
+
{
|
|
4771
|
+
ref: menuRef,
|
|
4772
|
+
$openUpward: openUpward,
|
|
4773
|
+
$horizontalOffset: horizontalOffset,
|
|
4774
|
+
children: /* @__PURE__ */ jsx(SignOutButton, { afterSignOutUrl, children: /* @__PURE__ */ jsxs(UserButtonMenuItem, { $signout: true, onClick: () => setIsOpen(false), children: [
|
|
4775
|
+
/* @__PURE__ */ jsx(UserButtonMenuItemIcon, { children: /* @__PURE__ */ jsx(LogOut, {}) }),
|
|
4776
|
+
"Sign out"
|
|
4777
|
+
] }) })
|
|
4778
|
+
}
|
|
4779
|
+
)
|
|
2731
4780
|
] });
|
|
2732
4781
|
}
|
|
2733
4782
|
function Protect({
|
|
@@ -2823,6 +4872,28 @@ function SignUpButton({ children, className }) {
|
|
|
2823
4872
|
}
|
|
2824
4873
|
return /* @__PURE__ */ jsx("button", { type: "button", className, onClick: handleClick, children: children || "Sign up" });
|
|
2825
4874
|
}
|
|
4875
|
+
/*! Bundled license information:
|
|
4876
|
+
|
|
4877
|
+
react-is/cjs/react-is.production.min.js:
|
|
4878
|
+
(** @license React v16.13.1
|
|
4879
|
+
* react-is.production.min.js
|
|
4880
|
+
*
|
|
4881
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4882
|
+
*
|
|
4883
|
+
* This source code is licensed under the MIT license found in the
|
|
4884
|
+
* LICENSE file in the root directory of this source tree.
|
|
4885
|
+
*)
|
|
4886
|
+
|
|
4887
|
+
react-is/cjs/react-is.development.js:
|
|
4888
|
+
(** @license React v16.13.1
|
|
4889
|
+
* react-is.development.js
|
|
4890
|
+
*
|
|
4891
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
4892
|
+
*
|
|
4893
|
+
* This source code is licensed under the MIT license found in the
|
|
4894
|
+
* LICENSE file in the root directory of this source tree.
|
|
4895
|
+
*)
|
|
4896
|
+
*/
|
|
2826
4897
|
|
|
2827
4898
|
export { AuthBranding, AuthContainer, AuthDivider, AuthEmailVerificationStep, AuthErrorBanner, AuthFormField, AuthHeader, AuthLink, AuthOAuthButton, AuthOAuthProviders, AuthPasswordField, AuthPasswordStrengthIndicator, AuthResetPasswordVerificationStep, AuthSubmitButton, AuthVerificationCodeInput, ForgotPassword, ForgotPasswordForm, Protect, ResetPassword, ResetPasswordForm, SignIn, SignInButton, SignInForm, SignOutButton, SignUp, SignUpButton, SignUpForm, SignedIn, SignedOut, UserButton, VerifyEmail, VerifyEmailStatus };
|
|
2828
4899
|
//# sourceMappingURL=components.js.map
|