@veripass/react-sdk 1.0.2 → 1.0.4
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/react-sdk.cjs.js +1153 -185
- package/dist/react-sdk.cjs.js.map +1 -1
- package/dist/react-sdk.esm.js +1154 -186
- package/dist/react-sdk.esm.js.map +1 -1
- package/dist/styles.css +2 -0
- package/dist/styles.css.map +1 -0
- package/package.json +1 -1
package/dist/react-sdk.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { useState, createContext, useMemo, useContext, forwardRef, Children, isValidElement, cloneElement, useEffect } from 'react';
|
|
2
|
+
import React__default, { useState, createContext, useMemo, useContext, useRef, useDebugValue, createElement, forwardRef, Children, isValidElement, cloneElement, useEffect } from 'react';
|
|
3
3
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
function _arrayLikeToArray(r, a) {
|
|
@@ -56,6 +56,14 @@ function _createClass(e, r, t) {
|
|
|
56
56
|
writable: !1
|
|
57
57
|
}), e;
|
|
58
58
|
}
|
|
59
|
+
function _defineProperty(e, r, t) {
|
|
60
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
61
|
+
value: t,
|
|
62
|
+
enumerable: !0,
|
|
63
|
+
configurable: !0,
|
|
64
|
+
writable: !0
|
|
65
|
+
}) : e[r] = t, e;
|
|
66
|
+
}
|
|
59
67
|
function _get() {
|
|
60
68
|
return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) {
|
|
61
69
|
var p = _superPropBase(e, t);
|
|
@@ -120,6 +128,27 @@ function _iterableToArrayLimit(r, l) {
|
|
|
120
128
|
function _nonIterableRest() {
|
|
121
129
|
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
122
130
|
}
|
|
131
|
+
function ownKeys(e, r) {
|
|
132
|
+
var t = Object.keys(e);
|
|
133
|
+
if (Object.getOwnPropertySymbols) {
|
|
134
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
135
|
+
r && (o = o.filter(function (r) {
|
|
136
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
137
|
+
})), t.push.apply(t, o);
|
|
138
|
+
}
|
|
139
|
+
return t;
|
|
140
|
+
}
|
|
141
|
+
function _objectSpread2(e) {
|
|
142
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
143
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
144
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
145
|
+
_defineProperty(e, r, t[r]);
|
|
146
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
147
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
return e;
|
|
151
|
+
}
|
|
123
152
|
function _possibleConstructorReturn(t, e) {
|
|
124
153
|
if (e && ("object" == typeof e || "function" == typeof e)) return e;
|
|
125
154
|
if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -438,6 +467,13 @@ function _superPropBase(t, o) {
|
|
|
438
467
|
for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t)););
|
|
439
468
|
return t;
|
|
440
469
|
}
|
|
470
|
+
function _taggedTemplateLiteral(e, t) {
|
|
471
|
+
return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {
|
|
472
|
+
raw: {
|
|
473
|
+
value: Object.freeze(t)
|
|
474
|
+
}
|
|
475
|
+
}));
|
|
476
|
+
}
|
|
441
477
|
function _toPrimitive(t, r) {
|
|
442
478
|
if ("object" != typeof t || !t) return t;
|
|
443
479
|
var e = t[Symbol.toPrimitive];
|
|
@@ -469,6 +505,130 @@ function _unsupportedIterableToArray(r, a) {
|
|
|
469
505
|
}
|
|
470
506
|
}
|
|
471
507
|
|
|
508
|
+
var useLocalStorage = function useLocalStorage(keyName, defaultValue) {
|
|
509
|
+
var _useState = useState(function () {
|
|
510
|
+
try {
|
|
511
|
+
var value = window.localStorage.getItem(keyName);
|
|
512
|
+
if (value) {
|
|
513
|
+
return JSON.parse(value);
|
|
514
|
+
} else {
|
|
515
|
+
window.localStorage.setItem(keyName, JSON.stringify(defaultValue));
|
|
516
|
+
return defaultValue;
|
|
517
|
+
}
|
|
518
|
+
} catch (err) {
|
|
519
|
+
return defaultValue;
|
|
520
|
+
}
|
|
521
|
+
}),
|
|
522
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
523
|
+
storedValue = _useState2[0],
|
|
524
|
+
setStoredValue = _useState2[1];
|
|
525
|
+
var setValue = function setValue(newValue) {
|
|
526
|
+
try {
|
|
527
|
+
window.localStorage.setItem(keyName, JSON.stringify(newValue));
|
|
528
|
+
} catch (err) {}
|
|
529
|
+
setStoredValue(newValue);
|
|
530
|
+
};
|
|
531
|
+
return [storedValue, setValue];
|
|
532
|
+
};
|
|
533
|
+
|
|
534
|
+
/**
|
|
535
|
+
* Authentication context used to provide user authentication data and functions.
|
|
536
|
+
*/
|
|
537
|
+
var AuthContext = /*#__PURE__*/createContext();
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* AuthProvider component that wraps around the application or part of it to provide authentication context.
|
|
541
|
+
* It uses local storage to persist user data and provides login, logout, and token retrieval functions.
|
|
542
|
+
*
|
|
543
|
+
* @param {object} props - The component props.
|
|
544
|
+
* @param {React.ReactNode} props.children - The children components that require access to the authentication context.
|
|
545
|
+
* @returns {JSX.Element} The provider component for AuthContext.
|
|
546
|
+
*/
|
|
547
|
+
var AuthProvider = function AuthProvider(_ref) {
|
|
548
|
+
var children = _ref.children;
|
|
549
|
+
// State to manage user data, persisted in local storage
|
|
550
|
+
var _useLocalStorage = useLocalStorage('veripass-user-data', null),
|
|
551
|
+
_useLocalStorage2 = _slicedToArray(_useLocalStorage, 2),
|
|
552
|
+
user = _useLocalStorage2[0],
|
|
553
|
+
setUser = _useLocalStorage2[1];
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Logs in the user by saving their data to local storage and navigating to the admin page.
|
|
557
|
+
*
|
|
558
|
+
* @param {object} user - The user data to be stored.
|
|
559
|
+
*/
|
|
560
|
+
var login = /*#__PURE__*/function () {
|
|
561
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
562
|
+
var user, _ref2$redirectUrl, redirectUrl;
|
|
563
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
564
|
+
while (1) switch (_context.prev = _context.next) {
|
|
565
|
+
case 0:
|
|
566
|
+
user = _ref2.user, _ref2$redirectUrl = _ref2.redirectUrl, redirectUrl = _ref2$redirectUrl === void 0 ? '' : _ref2$redirectUrl;
|
|
567
|
+
setUser(user);
|
|
568
|
+
if (redirectUrl) {
|
|
569
|
+
window.location.replace(redirectUrl);
|
|
570
|
+
}
|
|
571
|
+
case 3:
|
|
572
|
+
case "end":
|
|
573
|
+
return _context.stop();
|
|
574
|
+
}
|
|
575
|
+
}, _callee);
|
|
576
|
+
}));
|
|
577
|
+
return function login(_x) {
|
|
578
|
+
return _ref3.apply(this, arguments);
|
|
579
|
+
};
|
|
580
|
+
}();
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Logs out the current user by clearing their data from local storage.
|
|
584
|
+
*/
|
|
585
|
+
var logout = function logout() {
|
|
586
|
+
setUser(null);
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
/**
|
|
590
|
+
* Retrieves the stored user data (token) from local storage.
|
|
591
|
+
*
|
|
592
|
+
* @returns {object|null} The user data stored in local storage, or null if not found.
|
|
593
|
+
*/
|
|
594
|
+
var getToken = function getToken() {
|
|
595
|
+
var value = window.localStorage.getItem('veripass-user-data');
|
|
596
|
+
return JSON.parse(value);
|
|
597
|
+
};
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Memoized value containing the user data and authentication functions.
|
|
601
|
+
*
|
|
602
|
+
* @typedef {object} AuthContextValue
|
|
603
|
+
* @property {object|null} user - The currently authenticated user or null if not authenticated.
|
|
604
|
+
* @property {function(object): Promise<void>} login - Function to log in the user.
|
|
605
|
+
* @property {function(): void} logout - Function to log out the user.
|
|
606
|
+
* @property {function(): object|null} getToken - Function to get the current user's token.
|
|
607
|
+
*
|
|
608
|
+
* @returns {AuthContextValue} The context value with user data and authentication functions.
|
|
609
|
+
*/
|
|
610
|
+
var value = useMemo(function () {
|
|
611
|
+
return {
|
|
612
|
+
user: user,
|
|
613
|
+
login: login,
|
|
614
|
+
logout: logout,
|
|
615
|
+
getToken: getToken
|
|
616
|
+
};
|
|
617
|
+
}, [user]);
|
|
618
|
+
return /*#__PURE__*/React__default.createElement(AuthContext.Provider, {
|
|
619
|
+
value: value
|
|
620
|
+
}, children);
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Custom hook to access the authentication context.
|
|
625
|
+
*
|
|
626
|
+
* @returns {AuthContextValue} The authentication context value, including user data, login, logout, and getToken functions.
|
|
627
|
+
*/
|
|
628
|
+
var useAuth = function useAuth() {
|
|
629
|
+
return useContext(AuthContext);
|
|
630
|
+
};
|
|
631
|
+
|
|
472
632
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
473
633
|
|
|
474
634
|
function getDefaultExportFromCjs (x) {
|
|
@@ -32670,131 +32830,6 @@ function useViewTransitionState(to, opts) {
|
|
|
32670
32830
|
return matchPath(path.pathname, nextPath) != null || matchPath(path.pathname, currentPath) != null;
|
|
32671
32831
|
}
|
|
32672
32832
|
|
|
32673
|
-
var useLocalStorage = function useLocalStorage(keyName, defaultValue) {
|
|
32674
|
-
var _useState = useState(function () {
|
|
32675
|
-
try {
|
|
32676
|
-
var value = window.localStorage.getItem(keyName);
|
|
32677
|
-
if (value) {
|
|
32678
|
-
return JSON.parse(value);
|
|
32679
|
-
} else {
|
|
32680
|
-
window.localStorage.setItem(keyName, JSON.stringify(defaultValue));
|
|
32681
|
-
return defaultValue;
|
|
32682
|
-
}
|
|
32683
|
-
} catch (err) {
|
|
32684
|
-
return defaultValue;
|
|
32685
|
-
}
|
|
32686
|
-
}),
|
|
32687
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
32688
|
-
storedValue = _useState2[0],
|
|
32689
|
-
setStoredValue = _useState2[1];
|
|
32690
|
-
var setValue = function setValue(newValue) {
|
|
32691
|
-
try {
|
|
32692
|
-
window.localStorage.setItem(keyName, JSON.stringify(newValue));
|
|
32693
|
-
} catch (err) {}
|
|
32694
|
-
setStoredValue(newValue);
|
|
32695
|
-
};
|
|
32696
|
-
return [storedValue, setValue];
|
|
32697
|
-
};
|
|
32698
|
-
|
|
32699
|
-
/**
|
|
32700
|
-
* Authentication context used to provide user authentication data and functions.
|
|
32701
|
-
*/
|
|
32702
|
-
var AuthContext = /*#__PURE__*/createContext();
|
|
32703
|
-
|
|
32704
|
-
/**
|
|
32705
|
-
* AuthProvider component that wraps around the application or part of it to provide authentication context.
|
|
32706
|
-
* It uses local storage to persist user data and provides login, logout, and token retrieval functions.
|
|
32707
|
-
*
|
|
32708
|
-
* @param {object} props - The component props.
|
|
32709
|
-
* @param {React.ReactNode} props.children - The children components that require access to the authentication context.
|
|
32710
|
-
* @returns {JSX.Element} The provider component for AuthContext.
|
|
32711
|
-
*/
|
|
32712
|
-
var AuthProvider = function AuthProvider(_ref) {
|
|
32713
|
-
var children = _ref.children;
|
|
32714
|
-
// State to manage user data, persisted in local storage
|
|
32715
|
-
var _useLocalStorage = useLocalStorage('veripass-user-data', null),
|
|
32716
|
-
_useLocalStorage2 = _slicedToArray(_useLocalStorage, 2),
|
|
32717
|
-
user = _useLocalStorage2[0],
|
|
32718
|
-
setUser = _useLocalStorage2[1];
|
|
32719
|
-
var navigate = useNavigate();
|
|
32720
|
-
|
|
32721
|
-
/**
|
|
32722
|
-
* Logs in the user by saving their data to local storage and navigating to the admin page.
|
|
32723
|
-
*
|
|
32724
|
-
* @param {object} user - The user data to be stored.
|
|
32725
|
-
*/
|
|
32726
|
-
var login = /*#__PURE__*/function () {
|
|
32727
|
-
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
|
|
32728
|
-
var user, _ref2$redirectUrl, redirectUrl;
|
|
32729
|
-
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
32730
|
-
while (1) switch (_context.prev = _context.next) {
|
|
32731
|
-
case 0:
|
|
32732
|
-
user = _ref2.user, _ref2$redirectUrl = _ref2.redirectUrl, redirectUrl = _ref2$redirectUrl === void 0 ? '' : _ref2$redirectUrl;
|
|
32733
|
-
setUser(user);
|
|
32734
|
-
navigate(redirectUrl, {
|
|
32735
|
-
replace: true
|
|
32736
|
-
});
|
|
32737
|
-
case 3:
|
|
32738
|
-
case "end":
|
|
32739
|
-
return _context.stop();
|
|
32740
|
-
}
|
|
32741
|
-
}, _callee);
|
|
32742
|
-
}));
|
|
32743
|
-
return function login(_x) {
|
|
32744
|
-
return _ref3.apply(this, arguments);
|
|
32745
|
-
};
|
|
32746
|
-
}();
|
|
32747
|
-
|
|
32748
|
-
/**
|
|
32749
|
-
* Logs out the current user by clearing their data from local storage.
|
|
32750
|
-
*/
|
|
32751
|
-
var logout = function logout() {
|
|
32752
|
-
setUser(null);
|
|
32753
|
-
};
|
|
32754
|
-
|
|
32755
|
-
/**
|
|
32756
|
-
* Retrieves the stored user data (token) from local storage.
|
|
32757
|
-
*
|
|
32758
|
-
* @returns {object|null} The user data stored in local storage, or null if not found.
|
|
32759
|
-
*/
|
|
32760
|
-
var getToken = function getToken() {
|
|
32761
|
-
var value = window.localStorage.getItem('veripass-user-data');
|
|
32762
|
-
return JSON.parse(value);
|
|
32763
|
-
};
|
|
32764
|
-
|
|
32765
|
-
/**
|
|
32766
|
-
* Memoized value containing the user data and authentication functions.
|
|
32767
|
-
*
|
|
32768
|
-
* @typedef {object} AuthContextValue
|
|
32769
|
-
* @property {object|null} user - The currently authenticated user or null if not authenticated.
|
|
32770
|
-
* @property {function(object): Promise<void>} login - Function to log in the user.
|
|
32771
|
-
* @property {function(): void} logout - Function to log out the user.
|
|
32772
|
-
* @property {function(): object|null} getToken - Function to get the current user's token.
|
|
32773
|
-
*
|
|
32774
|
-
* @returns {AuthContextValue} The context value with user data and authentication functions.
|
|
32775
|
-
*/
|
|
32776
|
-
var value = useMemo(function () {
|
|
32777
|
-
return {
|
|
32778
|
-
user: user,
|
|
32779
|
-
login: login,
|
|
32780
|
-
logout: logout,
|
|
32781
|
-
getToken: getToken
|
|
32782
|
-
};
|
|
32783
|
-
}, [user]);
|
|
32784
|
-
return /*#__PURE__*/React__default.createElement(AuthContext.Provider, {
|
|
32785
|
-
value: value
|
|
32786
|
-
}, children);
|
|
32787
|
-
};
|
|
32788
|
-
|
|
32789
|
-
/**
|
|
32790
|
-
* Custom hook to access the authentication context.
|
|
32791
|
-
*
|
|
32792
|
-
* @returns {AuthContextValue} The authentication context value, including user data, login, logout, and getToken functions.
|
|
32793
|
-
*/
|
|
32794
|
-
var useAuth = function useAuth() {
|
|
32795
|
-
return useContext(AuthContext);
|
|
32796
|
-
};
|
|
32797
|
-
|
|
32798
32833
|
var sweetalert2_all = {exports: {}};
|
|
32799
32834
|
|
|
32800
32835
|
/*!
|
|
@@ -37484,6 +37519,918 @@ function requireClient () {
|
|
|
37484
37519
|
var sweetalert2ReactContent_umdExports = sweetalert2ReactContent_umd.exports;
|
|
37485
37520
|
var withReactContent = /*@__PURE__*/getDefaultExportFromCjs(sweetalert2ReactContent_umdExports);
|
|
37486
37521
|
|
|
37522
|
+
/******************************************************************************
|
|
37523
|
+
Copyright (c) Microsoft Corporation.
|
|
37524
|
+
|
|
37525
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
37526
|
+
purpose with or without fee is hereby granted.
|
|
37527
|
+
|
|
37528
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
37529
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
37530
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
37531
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
37532
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
37533
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
37534
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
37535
|
+
***************************************************************************** */
|
|
37536
|
+
/* global Reflect, Promise */
|
|
37537
|
+
|
|
37538
|
+
|
|
37539
|
+
var __assign = function() {
|
|
37540
|
+
__assign = Object.assign || function __assign(t) {
|
|
37541
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
37542
|
+
s = arguments[i];
|
|
37543
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
37544
|
+
}
|
|
37545
|
+
return t;
|
|
37546
|
+
};
|
|
37547
|
+
return __assign.apply(this, arguments);
|
|
37548
|
+
};
|
|
37549
|
+
|
|
37550
|
+
function __spreadArray(to, from, pack) {
|
|
37551
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
37552
|
+
if (ar || !(i in from)) {
|
|
37553
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37554
|
+
ar[i] = from[i];
|
|
37555
|
+
}
|
|
37556
|
+
}
|
|
37557
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
37558
|
+
}
|
|
37559
|
+
|
|
37560
|
+
function memoize$3(fn) {
|
|
37561
|
+
var cache = Object.create(null);
|
|
37562
|
+
return function (arg) {
|
|
37563
|
+
if (cache[arg] === undefined) cache[arg] = fn(arg);
|
|
37564
|
+
return cache[arg];
|
|
37565
|
+
};
|
|
37566
|
+
}
|
|
37567
|
+
|
|
37568
|
+
var reactPropsRegex$1 = /^((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|download|draggable|encType|enterKeyHint|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|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)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
|
|
37569
|
+
|
|
37570
|
+
var isPropValid$1 = /* #__PURE__ */memoize$3(function (prop) {
|
|
37571
|
+
return reactPropsRegex$1.test(prop) || prop.charCodeAt(0) === 111
|
|
37572
|
+
/* o */
|
|
37573
|
+
&& prop.charCodeAt(1) === 110
|
|
37574
|
+
/* n */
|
|
37575
|
+
&& prop.charCodeAt(2) < 91;
|
|
37576
|
+
}
|
|
37577
|
+
/* Z+1 */
|
|
37578
|
+
);
|
|
37579
|
+
|
|
37580
|
+
var MS$1 = '-ms-';
|
|
37581
|
+
var MOZ$1 = '-moz-';
|
|
37582
|
+
var WEBKIT$1 = '-webkit-';
|
|
37583
|
+
|
|
37584
|
+
var COMMENT$1 = 'comm';
|
|
37585
|
+
var RULESET$1 = 'rule';
|
|
37586
|
+
var DECLARATION$1 = 'decl';
|
|
37587
|
+
var IMPORT$1 = '@import';
|
|
37588
|
+
var KEYFRAMES$1 = '@keyframes';
|
|
37589
|
+
var LAYER$1 = '@layer';
|
|
37590
|
+
|
|
37591
|
+
/**
|
|
37592
|
+
* @param {number}
|
|
37593
|
+
* @return {number}
|
|
37594
|
+
*/
|
|
37595
|
+
var abs$1 = Math.abs;
|
|
37596
|
+
|
|
37597
|
+
/**
|
|
37598
|
+
* @param {number}
|
|
37599
|
+
* @return {string}
|
|
37600
|
+
*/
|
|
37601
|
+
var from$1 = String.fromCharCode;
|
|
37602
|
+
|
|
37603
|
+
/**
|
|
37604
|
+
* @param {object}
|
|
37605
|
+
* @return {object}
|
|
37606
|
+
*/
|
|
37607
|
+
var assign$1 = Object.assign;
|
|
37608
|
+
|
|
37609
|
+
/**
|
|
37610
|
+
* @param {string} value
|
|
37611
|
+
* @param {number} length
|
|
37612
|
+
* @return {number}
|
|
37613
|
+
*/
|
|
37614
|
+
function hash$1 (value, length) {
|
|
37615
|
+
return charat$1(value, 0) ^ 45 ? (((((((length << 2) ^ charat$1(value, 0)) << 2) ^ charat$1(value, 1)) << 2) ^ charat$1(value, 2)) << 2) ^ charat$1(value, 3) : 0
|
|
37616
|
+
}
|
|
37617
|
+
|
|
37618
|
+
/**
|
|
37619
|
+
* @param {string} value
|
|
37620
|
+
* @return {string}
|
|
37621
|
+
*/
|
|
37622
|
+
function trim$2 (value) {
|
|
37623
|
+
return value.trim()
|
|
37624
|
+
}
|
|
37625
|
+
|
|
37626
|
+
/**
|
|
37627
|
+
* @param {string} value
|
|
37628
|
+
* @param {RegExp} pattern
|
|
37629
|
+
* @return {string?}
|
|
37630
|
+
*/
|
|
37631
|
+
function match$1 (value, pattern) {
|
|
37632
|
+
return (value = pattern.exec(value)) ? value[0] : value
|
|
37633
|
+
}
|
|
37634
|
+
|
|
37635
|
+
/**
|
|
37636
|
+
* @param {string} value
|
|
37637
|
+
* @param {(string|RegExp)} pattern
|
|
37638
|
+
* @param {string} replacement
|
|
37639
|
+
* @return {string}
|
|
37640
|
+
*/
|
|
37641
|
+
function replace$1 (value, pattern, replacement) {
|
|
37642
|
+
return value.replace(pattern, replacement)
|
|
37643
|
+
}
|
|
37644
|
+
|
|
37645
|
+
/**
|
|
37646
|
+
* @param {string} value
|
|
37647
|
+
* @param {string} search
|
|
37648
|
+
* @param {number} position
|
|
37649
|
+
* @return {number}
|
|
37650
|
+
*/
|
|
37651
|
+
function indexof$1 (value, search, position) {
|
|
37652
|
+
return value.indexOf(search, position)
|
|
37653
|
+
}
|
|
37654
|
+
|
|
37655
|
+
/**
|
|
37656
|
+
* @param {string} value
|
|
37657
|
+
* @param {number} index
|
|
37658
|
+
* @return {number}
|
|
37659
|
+
*/
|
|
37660
|
+
function charat$1 (value, index) {
|
|
37661
|
+
return value.charCodeAt(index) | 0
|
|
37662
|
+
}
|
|
37663
|
+
|
|
37664
|
+
/**
|
|
37665
|
+
* @param {string} value
|
|
37666
|
+
* @param {number} begin
|
|
37667
|
+
* @param {number} end
|
|
37668
|
+
* @return {string}
|
|
37669
|
+
*/
|
|
37670
|
+
function substr$1 (value, begin, end) {
|
|
37671
|
+
return value.slice(begin, end)
|
|
37672
|
+
}
|
|
37673
|
+
|
|
37674
|
+
/**
|
|
37675
|
+
* @param {string} value
|
|
37676
|
+
* @return {number}
|
|
37677
|
+
*/
|
|
37678
|
+
function strlen$1 (value) {
|
|
37679
|
+
return value.length
|
|
37680
|
+
}
|
|
37681
|
+
|
|
37682
|
+
/**
|
|
37683
|
+
* @param {any[]} value
|
|
37684
|
+
* @return {number}
|
|
37685
|
+
*/
|
|
37686
|
+
function sizeof$1 (value) {
|
|
37687
|
+
return value.length
|
|
37688
|
+
}
|
|
37689
|
+
|
|
37690
|
+
/**
|
|
37691
|
+
* @param {any} value
|
|
37692
|
+
* @param {any[]} array
|
|
37693
|
+
* @return {any}
|
|
37694
|
+
*/
|
|
37695
|
+
function append$1 (value, array) {
|
|
37696
|
+
return array.push(value), value
|
|
37697
|
+
}
|
|
37698
|
+
|
|
37699
|
+
/**
|
|
37700
|
+
* @param {string[]} array
|
|
37701
|
+
* @param {function} callback
|
|
37702
|
+
* @return {string}
|
|
37703
|
+
*/
|
|
37704
|
+
function combine$1 (array, callback) {
|
|
37705
|
+
return array.map(callback).join('')
|
|
37706
|
+
}
|
|
37707
|
+
|
|
37708
|
+
/**
|
|
37709
|
+
* @param {string[]} array
|
|
37710
|
+
* @param {RegExp} pattern
|
|
37711
|
+
* @return {string[]}
|
|
37712
|
+
*/
|
|
37713
|
+
function filter (array, pattern) {
|
|
37714
|
+
return array.filter(function (value) { return !match$1(value, pattern) })
|
|
37715
|
+
}
|
|
37716
|
+
|
|
37717
|
+
var line$1 = 1;
|
|
37718
|
+
var column$1 = 1;
|
|
37719
|
+
var length$1 = 0;
|
|
37720
|
+
var position$1 = 0;
|
|
37721
|
+
var character$1 = 0;
|
|
37722
|
+
var characters$1 = '';
|
|
37723
|
+
|
|
37724
|
+
/**
|
|
37725
|
+
* @param {string} value
|
|
37726
|
+
* @param {object | null} root
|
|
37727
|
+
* @param {object | null} parent
|
|
37728
|
+
* @param {string} type
|
|
37729
|
+
* @param {string[] | string} props
|
|
37730
|
+
* @param {object[] | string} children
|
|
37731
|
+
* @param {object[]} siblings
|
|
37732
|
+
* @param {number} length
|
|
37733
|
+
*/
|
|
37734
|
+
function node$1 (value, root, parent, type, props, children, length, siblings) {
|
|
37735
|
+
return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line$1, column: column$1, length: length, return: '', siblings: siblings}
|
|
37736
|
+
}
|
|
37737
|
+
|
|
37738
|
+
/**
|
|
37739
|
+
* @param {object} root
|
|
37740
|
+
* @param {object} props
|
|
37741
|
+
* @return {object}
|
|
37742
|
+
*/
|
|
37743
|
+
function copy$1 (root, props) {
|
|
37744
|
+
return assign$1(node$1('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
|
|
37745
|
+
}
|
|
37746
|
+
|
|
37747
|
+
/**
|
|
37748
|
+
* @param {object} root
|
|
37749
|
+
*/
|
|
37750
|
+
function lift (root) {
|
|
37751
|
+
while (root.root)
|
|
37752
|
+
root = copy$1(root.root, {children: [root]});
|
|
37753
|
+
|
|
37754
|
+
append$1(root, root.siblings);
|
|
37755
|
+
}
|
|
37756
|
+
|
|
37757
|
+
/**
|
|
37758
|
+
* @return {number}
|
|
37759
|
+
*/
|
|
37760
|
+
function char$1 () {
|
|
37761
|
+
return character$1
|
|
37762
|
+
}
|
|
37763
|
+
|
|
37764
|
+
/**
|
|
37765
|
+
* @return {number}
|
|
37766
|
+
*/
|
|
37767
|
+
function prev$1 () {
|
|
37768
|
+
character$1 = position$1 > 0 ? charat$1(characters$1, --position$1) : 0;
|
|
37769
|
+
|
|
37770
|
+
if (column$1--, character$1 === 10)
|
|
37771
|
+
column$1 = 1, line$1--;
|
|
37772
|
+
|
|
37773
|
+
return character$1
|
|
37774
|
+
}
|
|
37775
|
+
|
|
37776
|
+
/**
|
|
37777
|
+
* @return {number}
|
|
37778
|
+
*/
|
|
37779
|
+
function next$1 () {
|
|
37780
|
+
character$1 = position$1 < length$1 ? charat$1(characters$1, position$1++) : 0;
|
|
37781
|
+
|
|
37782
|
+
if (column$1++, character$1 === 10)
|
|
37783
|
+
column$1 = 1, line$1++;
|
|
37784
|
+
|
|
37785
|
+
return character$1
|
|
37786
|
+
}
|
|
37787
|
+
|
|
37788
|
+
/**
|
|
37789
|
+
* @return {number}
|
|
37790
|
+
*/
|
|
37791
|
+
function peek$1 () {
|
|
37792
|
+
return charat$1(characters$1, position$1)
|
|
37793
|
+
}
|
|
37794
|
+
|
|
37795
|
+
/**
|
|
37796
|
+
* @return {number}
|
|
37797
|
+
*/
|
|
37798
|
+
function caret$1 () {
|
|
37799
|
+
return position$1
|
|
37800
|
+
}
|
|
37801
|
+
|
|
37802
|
+
/**
|
|
37803
|
+
* @param {number} begin
|
|
37804
|
+
* @param {number} end
|
|
37805
|
+
* @return {string}
|
|
37806
|
+
*/
|
|
37807
|
+
function slice$1 (begin, end) {
|
|
37808
|
+
return substr$1(characters$1, begin, end)
|
|
37809
|
+
}
|
|
37810
|
+
|
|
37811
|
+
/**
|
|
37812
|
+
* @param {number} type
|
|
37813
|
+
* @return {number}
|
|
37814
|
+
*/
|
|
37815
|
+
function token$1 (type) {
|
|
37816
|
+
switch (type) {
|
|
37817
|
+
// \0 \t \n \r \s whitespace token
|
|
37818
|
+
case 0: case 9: case 10: case 13: case 32:
|
|
37819
|
+
return 5
|
|
37820
|
+
// ! + , / > @ ~ isolate token
|
|
37821
|
+
case 33: case 43: case 44: case 47: case 62: case 64: case 126:
|
|
37822
|
+
// ; { } breakpoint token
|
|
37823
|
+
case 59: case 123: case 125:
|
|
37824
|
+
return 4
|
|
37825
|
+
// : accompanied token
|
|
37826
|
+
case 58:
|
|
37827
|
+
return 3
|
|
37828
|
+
// " ' ( [ opening delimit token
|
|
37829
|
+
case 34: case 39: case 40: case 91:
|
|
37830
|
+
return 2
|
|
37831
|
+
// ) ] closing delimit token
|
|
37832
|
+
case 41: case 93:
|
|
37833
|
+
return 1
|
|
37834
|
+
}
|
|
37835
|
+
|
|
37836
|
+
return 0
|
|
37837
|
+
}
|
|
37838
|
+
|
|
37839
|
+
/**
|
|
37840
|
+
* @param {string} value
|
|
37841
|
+
* @return {any[]}
|
|
37842
|
+
*/
|
|
37843
|
+
function alloc$1 (value) {
|
|
37844
|
+
return line$1 = column$1 = 1, length$1 = strlen$1(characters$1 = value), position$1 = 0, []
|
|
37845
|
+
}
|
|
37846
|
+
|
|
37847
|
+
/**
|
|
37848
|
+
* @param {any} value
|
|
37849
|
+
* @return {any}
|
|
37850
|
+
*/
|
|
37851
|
+
function dealloc$1 (value) {
|
|
37852
|
+
return characters$1 = '', value
|
|
37853
|
+
}
|
|
37854
|
+
|
|
37855
|
+
/**
|
|
37856
|
+
* @param {number} type
|
|
37857
|
+
* @return {string}
|
|
37858
|
+
*/
|
|
37859
|
+
function delimit$1 (type) {
|
|
37860
|
+
return trim$2(slice$1(position$1 - 1, delimiter$1(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
|
|
37861
|
+
}
|
|
37862
|
+
|
|
37863
|
+
/**
|
|
37864
|
+
* @param {number} type
|
|
37865
|
+
* @return {string}
|
|
37866
|
+
*/
|
|
37867
|
+
function whitespace$1 (type) {
|
|
37868
|
+
while (character$1 = peek$1())
|
|
37869
|
+
if (character$1 < 33)
|
|
37870
|
+
next$1();
|
|
37871
|
+
else
|
|
37872
|
+
break
|
|
37873
|
+
|
|
37874
|
+
return token$1(type) > 2 || token$1(character$1) > 3 ? '' : ' '
|
|
37875
|
+
}
|
|
37876
|
+
|
|
37877
|
+
/**
|
|
37878
|
+
* @param {number} index
|
|
37879
|
+
* @param {number} count
|
|
37880
|
+
* @return {string}
|
|
37881
|
+
*/
|
|
37882
|
+
function escaping$1 (index, count) {
|
|
37883
|
+
while (--count && next$1())
|
|
37884
|
+
// not 0-9 A-F a-f
|
|
37885
|
+
if (character$1 < 48 || character$1 > 102 || (character$1 > 57 && character$1 < 65) || (character$1 > 70 && character$1 < 97))
|
|
37886
|
+
break
|
|
37887
|
+
|
|
37888
|
+
return slice$1(index, caret$1() + (count < 6 && peek$1() == 32 && next$1() == 32))
|
|
37889
|
+
}
|
|
37890
|
+
|
|
37891
|
+
/**
|
|
37892
|
+
* @param {number} type
|
|
37893
|
+
* @return {number}
|
|
37894
|
+
*/
|
|
37895
|
+
function delimiter$1 (type) {
|
|
37896
|
+
while (next$1())
|
|
37897
|
+
switch (character$1) {
|
|
37898
|
+
// ] ) " '
|
|
37899
|
+
case type:
|
|
37900
|
+
return position$1
|
|
37901
|
+
// " '
|
|
37902
|
+
case 34: case 39:
|
|
37903
|
+
if (type !== 34 && type !== 39)
|
|
37904
|
+
delimiter$1(character$1);
|
|
37905
|
+
break
|
|
37906
|
+
// (
|
|
37907
|
+
case 40:
|
|
37908
|
+
if (type === 41)
|
|
37909
|
+
delimiter$1(type);
|
|
37910
|
+
break
|
|
37911
|
+
// \
|
|
37912
|
+
case 92:
|
|
37913
|
+
next$1();
|
|
37914
|
+
break
|
|
37915
|
+
}
|
|
37916
|
+
|
|
37917
|
+
return position$1
|
|
37918
|
+
}
|
|
37919
|
+
|
|
37920
|
+
/**
|
|
37921
|
+
* @param {number} type
|
|
37922
|
+
* @param {number} index
|
|
37923
|
+
* @return {number}
|
|
37924
|
+
*/
|
|
37925
|
+
function commenter$1 (type, index) {
|
|
37926
|
+
while (next$1())
|
|
37927
|
+
// //
|
|
37928
|
+
if (type + character$1 === 47 + 10)
|
|
37929
|
+
break
|
|
37930
|
+
// /*
|
|
37931
|
+
else if (type + character$1 === 42 + 42 && peek$1() === 47)
|
|
37932
|
+
break
|
|
37933
|
+
|
|
37934
|
+
return '/*' + slice$1(index, position$1 - 1) + '*' + from$1(type === 47 ? type : next$1())
|
|
37935
|
+
}
|
|
37936
|
+
|
|
37937
|
+
/**
|
|
37938
|
+
* @param {number} index
|
|
37939
|
+
* @return {string}
|
|
37940
|
+
*/
|
|
37941
|
+
function identifier$1 (index) {
|
|
37942
|
+
while (!token$1(peek$1()))
|
|
37943
|
+
next$1();
|
|
37944
|
+
|
|
37945
|
+
return slice$1(index, position$1)
|
|
37946
|
+
}
|
|
37947
|
+
|
|
37948
|
+
/**
|
|
37949
|
+
* @param {string} value
|
|
37950
|
+
* @return {object[]}
|
|
37951
|
+
*/
|
|
37952
|
+
function compile$1 (value) {
|
|
37953
|
+
return dealloc$1(parse$1('', null, null, null, [''], value = alloc$1(value), 0, [0], value))
|
|
37954
|
+
}
|
|
37955
|
+
|
|
37956
|
+
/**
|
|
37957
|
+
* @param {string} value
|
|
37958
|
+
* @param {object} root
|
|
37959
|
+
* @param {object?} parent
|
|
37960
|
+
* @param {string[]} rule
|
|
37961
|
+
* @param {string[]} rules
|
|
37962
|
+
* @param {string[]} rulesets
|
|
37963
|
+
* @param {number[]} pseudo
|
|
37964
|
+
* @param {number[]} points
|
|
37965
|
+
* @param {string[]} declarations
|
|
37966
|
+
* @return {object}
|
|
37967
|
+
*/
|
|
37968
|
+
function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
|
|
37969
|
+
var index = 0;
|
|
37970
|
+
var offset = 0;
|
|
37971
|
+
var length = pseudo;
|
|
37972
|
+
var atrule = 0;
|
|
37973
|
+
var property = 0;
|
|
37974
|
+
var previous = 0;
|
|
37975
|
+
var variable = 1;
|
|
37976
|
+
var scanning = 1;
|
|
37977
|
+
var ampersand = 1;
|
|
37978
|
+
var character = 0;
|
|
37979
|
+
var type = '';
|
|
37980
|
+
var props = rules;
|
|
37981
|
+
var children = rulesets;
|
|
37982
|
+
var reference = rule;
|
|
37983
|
+
var characters = type;
|
|
37984
|
+
|
|
37985
|
+
while (scanning)
|
|
37986
|
+
switch (previous = character, character = next$1()) {
|
|
37987
|
+
// (
|
|
37988
|
+
case 40:
|
|
37989
|
+
if (previous != 108 && charat$1(characters, length - 1) == 58) {
|
|
37990
|
+
if (indexof$1(characters += replace$1(delimit$1(character), '&', '&\f'), '&\f', abs$1(index ? points[index - 1] : 0)) != -1)
|
|
37991
|
+
ampersand = -1;
|
|
37992
|
+
break
|
|
37993
|
+
}
|
|
37994
|
+
// " ' [
|
|
37995
|
+
case 34: case 39: case 91:
|
|
37996
|
+
characters += delimit$1(character);
|
|
37997
|
+
break
|
|
37998
|
+
// \t \n \r \s
|
|
37999
|
+
case 9: case 10: case 13: case 32:
|
|
38000
|
+
characters += whitespace$1(previous);
|
|
38001
|
+
break
|
|
38002
|
+
// \
|
|
38003
|
+
case 92:
|
|
38004
|
+
characters += escaping$1(caret$1() - 1, 7);
|
|
38005
|
+
continue
|
|
38006
|
+
// /
|
|
38007
|
+
case 47:
|
|
38008
|
+
switch (peek$1()) {
|
|
38009
|
+
case 42: case 47:
|
|
38010
|
+
append$1(comment$1(commenter$1(next$1(), caret$1()), root, parent, declarations), declarations);
|
|
38011
|
+
break
|
|
38012
|
+
default:
|
|
38013
|
+
characters += '/';
|
|
38014
|
+
}
|
|
38015
|
+
break
|
|
38016
|
+
// {
|
|
38017
|
+
case 123 * variable:
|
|
38018
|
+
points[index++] = strlen$1(characters) * ampersand;
|
|
38019
|
+
// } ; \0
|
|
38020
|
+
case 125 * variable: case 59: case 0:
|
|
38021
|
+
switch (character) {
|
|
38022
|
+
// \0 }
|
|
38023
|
+
case 0: case 125: scanning = 0;
|
|
38024
|
+
// ;
|
|
38025
|
+
case 59 + offset: if (ampersand == -1) characters = replace$1(characters, /\f/g, '');
|
|
38026
|
+
if (property > 0 && (strlen$1(characters) - length))
|
|
38027
|
+
append$1(property > 32 ? declaration$1(characters + ';', rule, parent, length - 1, declarations) : declaration$1(replace$1(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
|
|
38028
|
+
break
|
|
38029
|
+
// @ ;
|
|
38030
|
+
case 59: characters += ';';
|
|
38031
|
+
// { rule/at-rule
|
|
38032
|
+
default:
|
|
38033
|
+
append$1(reference = ruleset$1(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
|
|
38034
|
+
|
|
38035
|
+
if (character === 123)
|
|
38036
|
+
if (offset === 0)
|
|
38037
|
+
parse$1(characters, root, reference, reference, props, rulesets, length, points, children);
|
|
38038
|
+
else
|
|
38039
|
+
switch (atrule === 99 && charat$1(characters, 3) === 110 ? 100 : atrule) {
|
|
38040
|
+
// d l m s
|
|
38041
|
+
case 100: case 108: case 109: case 115:
|
|
38042
|
+
parse$1(value, reference, reference, rule && append$1(ruleset$1(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
|
|
38043
|
+
break
|
|
38044
|
+
default:
|
|
38045
|
+
parse$1(characters, reference, reference, reference, [''], children, 0, points, children);
|
|
38046
|
+
}
|
|
38047
|
+
}
|
|
38048
|
+
|
|
38049
|
+
index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
|
|
38050
|
+
break
|
|
38051
|
+
// :
|
|
38052
|
+
case 58:
|
|
38053
|
+
length = 1 + strlen$1(characters), property = previous;
|
|
38054
|
+
default:
|
|
38055
|
+
if (variable < 1)
|
|
38056
|
+
if (character == 123)
|
|
38057
|
+
--variable;
|
|
38058
|
+
else if (character == 125 && variable++ == 0 && prev$1() == 125)
|
|
38059
|
+
continue
|
|
38060
|
+
|
|
38061
|
+
switch (characters += from$1(character), character * variable) {
|
|
38062
|
+
// &
|
|
38063
|
+
case 38:
|
|
38064
|
+
ampersand = offset > 0 ? 1 : (characters += '\f', -1);
|
|
38065
|
+
break
|
|
38066
|
+
// ,
|
|
38067
|
+
case 44:
|
|
38068
|
+
points[index++] = (strlen$1(characters) - 1) * ampersand, ampersand = 1;
|
|
38069
|
+
break
|
|
38070
|
+
// @
|
|
38071
|
+
case 64:
|
|
38072
|
+
// -
|
|
38073
|
+
if (peek$1() === 45)
|
|
38074
|
+
characters += delimit$1(next$1());
|
|
38075
|
+
|
|
38076
|
+
atrule = peek$1(), offset = length = strlen$1(type = characters += identifier$1(caret$1())), character++;
|
|
38077
|
+
break
|
|
38078
|
+
// -
|
|
38079
|
+
case 45:
|
|
38080
|
+
if (previous === 45 && strlen$1(characters) == 2)
|
|
38081
|
+
variable = 0;
|
|
38082
|
+
}
|
|
38083
|
+
}
|
|
38084
|
+
|
|
38085
|
+
return rulesets
|
|
38086
|
+
}
|
|
38087
|
+
|
|
38088
|
+
/**
|
|
38089
|
+
* @param {string} value
|
|
38090
|
+
* @param {object} root
|
|
38091
|
+
* @param {object?} parent
|
|
38092
|
+
* @param {number} index
|
|
38093
|
+
* @param {number} offset
|
|
38094
|
+
* @param {string[]} rules
|
|
38095
|
+
* @param {number[]} points
|
|
38096
|
+
* @param {string} type
|
|
38097
|
+
* @param {string[]} props
|
|
38098
|
+
* @param {string[]} children
|
|
38099
|
+
* @param {number} length
|
|
38100
|
+
* @param {object[]} siblings
|
|
38101
|
+
* @return {object}
|
|
38102
|
+
*/
|
|
38103
|
+
function ruleset$1 (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
|
|
38104
|
+
var post = offset - 1;
|
|
38105
|
+
var rule = offset === 0 ? rules : [''];
|
|
38106
|
+
var size = sizeof$1(rule);
|
|
38107
|
+
|
|
38108
|
+
for (var i = 0, j = 0, k = 0; i < index; ++i)
|
|
38109
|
+
for (var x = 0, y = substr$1(value, post + 1, post = abs$1(j = points[i])), z = value; x < size; ++x)
|
|
38110
|
+
if (z = trim$2(j > 0 ? rule[x] + ' ' + y : replace$1(y, /&\f/g, rule[x])))
|
|
38111
|
+
props[k++] = z;
|
|
38112
|
+
|
|
38113
|
+
return node$1(value, root, parent, offset === 0 ? RULESET$1 : type, props, children, length, siblings)
|
|
38114
|
+
}
|
|
38115
|
+
|
|
38116
|
+
/**
|
|
38117
|
+
* @param {number} value
|
|
38118
|
+
* @param {object} root
|
|
38119
|
+
* @param {object?} parent
|
|
38120
|
+
* @param {object[]} siblings
|
|
38121
|
+
* @return {object}
|
|
38122
|
+
*/
|
|
38123
|
+
function comment$1 (value, root, parent, siblings) {
|
|
38124
|
+
return node$1(value, root, parent, COMMENT$1, from$1(char$1()), substr$1(value, 2, -2), 0, siblings)
|
|
38125
|
+
}
|
|
38126
|
+
|
|
38127
|
+
/**
|
|
38128
|
+
* @param {string} value
|
|
38129
|
+
* @param {object} root
|
|
38130
|
+
* @param {object?} parent
|
|
38131
|
+
* @param {number} length
|
|
38132
|
+
* @param {object[]} siblings
|
|
38133
|
+
* @return {object}
|
|
38134
|
+
*/
|
|
38135
|
+
function declaration$1 (value, root, parent, length, siblings) {
|
|
38136
|
+
return node$1(value, root, parent, DECLARATION$1, substr$1(value, 0, length), substr$1(value, length + 1, -1), length, siblings)
|
|
38137
|
+
}
|
|
38138
|
+
|
|
38139
|
+
/**
|
|
38140
|
+
* @param {string} value
|
|
38141
|
+
* @param {number} length
|
|
38142
|
+
* @param {object[]} children
|
|
38143
|
+
* @return {string}
|
|
38144
|
+
*/
|
|
38145
|
+
function prefix$1 (value, length, children) {
|
|
38146
|
+
switch (hash$1(value, length)) {
|
|
38147
|
+
// color-adjust
|
|
38148
|
+
case 5103:
|
|
38149
|
+
return WEBKIT$1 + 'print-' + value + value
|
|
38150
|
+
// animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
|
|
38151
|
+
case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
|
|
38152
|
+
// text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
|
|
38153
|
+
case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
|
|
38154
|
+
// mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position, mask-composite,
|
|
38155
|
+
case 6391: case 5879: case 5623: case 6135: case 4599: case 4855:
|
|
38156
|
+
// background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
|
|
38157
|
+
case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
|
|
38158
|
+
return WEBKIT$1 + value + value
|
|
38159
|
+
// tab-size
|
|
38160
|
+
case 4789:
|
|
38161
|
+
return MOZ$1 + value + value
|
|
38162
|
+
// appearance, user-select, transform, hyphens, text-size-adjust
|
|
38163
|
+
case 5349: case 4246: case 4810: case 6968: case 2756:
|
|
38164
|
+
return WEBKIT$1 + value + MOZ$1 + value + MS$1 + value + value
|
|
38165
|
+
// writing-mode
|
|
38166
|
+
case 5936:
|
|
38167
|
+
switch (charat$1(value, length + 11)) {
|
|
38168
|
+
// vertical-l(r)
|
|
38169
|
+
case 114:
|
|
38170
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
|
|
38171
|
+
// vertical-r(l)
|
|
38172
|
+
case 108:
|
|
38173
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
|
|
38174
|
+
// horizontal(-)tb
|
|
38175
|
+
case 45:
|
|
38176
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
|
|
38177
|
+
// default: fallthrough to below
|
|
38178
|
+
}
|
|
38179
|
+
// flex, flex-direction, scroll-snap-type, writing-mode
|
|
38180
|
+
case 6828: case 4268: case 2903:
|
|
38181
|
+
return WEBKIT$1 + value + MS$1 + value + value
|
|
38182
|
+
// order
|
|
38183
|
+
case 6165:
|
|
38184
|
+
return WEBKIT$1 + value + MS$1 + 'flex-' + value + value
|
|
38185
|
+
// align-items
|
|
38186
|
+
case 5187:
|
|
38187
|
+
return WEBKIT$1 + value + replace$1(value, /(\w+).+(:[^]+)/, WEBKIT$1 + 'box-$1$2' + MS$1 + 'flex-$1$2') + value
|
|
38188
|
+
// align-self
|
|
38189
|
+
case 5443:
|
|
38190
|
+
return WEBKIT$1 + value + MS$1 + 'flex-item-' + replace$1(value, /flex-|-self/g, '') + (!match$1(value, /flex-|baseline/) ? MS$1 + 'grid-row-' + replace$1(value, /flex-|-self/g, '') : '') + value
|
|
38191
|
+
// align-content
|
|
38192
|
+
case 4675:
|
|
38193
|
+
return WEBKIT$1 + value + MS$1 + 'flex-line-pack' + replace$1(value, /align-content|flex-|-self/g, '') + value
|
|
38194
|
+
// flex-shrink
|
|
38195
|
+
case 5548:
|
|
38196
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, 'shrink', 'negative') + value
|
|
38197
|
+
// flex-basis
|
|
38198
|
+
case 5292:
|
|
38199
|
+
return WEBKIT$1 + value + MS$1 + replace$1(value, 'basis', 'preferred-size') + value
|
|
38200
|
+
// flex-grow
|
|
38201
|
+
case 6060:
|
|
38202
|
+
return WEBKIT$1 + 'box-' + replace$1(value, '-grow', '') + WEBKIT$1 + value + MS$1 + replace$1(value, 'grow', 'positive') + value
|
|
38203
|
+
// transition
|
|
38204
|
+
case 4554:
|
|
38205
|
+
return WEBKIT$1 + replace$1(value, /([^-])(transform)/g, '$1' + WEBKIT$1 + '$2') + value
|
|
38206
|
+
// cursor
|
|
38207
|
+
case 6187:
|
|
38208
|
+
return replace$1(replace$1(replace$1(value, /(zoom-|grab)/, WEBKIT$1 + '$1'), /(image-set)/, WEBKIT$1 + '$1'), value, '') + value
|
|
38209
|
+
// background, background-image
|
|
38210
|
+
case 5495: case 3959:
|
|
38211
|
+
return replace$1(value, /(image-set\([^]*)/, WEBKIT$1 + '$1' + '$`$1')
|
|
38212
|
+
// justify-content
|
|
38213
|
+
case 4968:
|
|
38214
|
+
return replace$1(replace$1(value, /(.+:)(flex-)?(.*)/, WEBKIT$1 + 'box-pack:$3' + MS$1 + 'flex-pack:$3'), /s.+-b[^;]+/, 'justify') + WEBKIT$1 + value + value
|
|
38215
|
+
// justify-self
|
|
38216
|
+
case 4200:
|
|
38217
|
+
if (!match$1(value, /flex-|baseline/)) return MS$1 + 'grid-column-align' + substr$1(value, length) + value
|
|
38218
|
+
break
|
|
38219
|
+
// grid-template-(columns|rows)
|
|
38220
|
+
case 2592: case 3360:
|
|
38221
|
+
return MS$1 + replace$1(value, 'template-', '') + value
|
|
38222
|
+
// grid-(row|column)-start
|
|
38223
|
+
case 4384: case 3616:
|
|
38224
|
+
if (children && children.some(function (element, index) { return length = index, match$1(element.props, /grid-\w+-end/) })) {
|
|
38225
|
+
return ~indexof$1(value + (children = children[length].value), 'span', 0) ? value : (MS$1 + replace$1(value, '-start', '') + value + MS$1 + 'grid-row-span:' + (~indexof$1(children, 'span', 0) ? match$1(children, /\d+/) : +match$1(children, /\d+/) - +match$1(value, /\d+/)) + ';')
|
|
38226
|
+
}
|
|
38227
|
+
return MS$1 + replace$1(value, '-start', '') + value
|
|
38228
|
+
// grid-(row|column)-end
|
|
38229
|
+
case 4896: case 4128:
|
|
38230
|
+
return (children && children.some(function (element) { return match$1(element.props, /grid-\w+-start/) })) ? value : MS$1 + replace$1(replace$1(value, '-end', '-span'), 'span ', '') + value
|
|
38231
|
+
// (margin|padding)-inline-(start|end)
|
|
38232
|
+
case 4095: case 3583: case 4068: case 2532:
|
|
38233
|
+
return replace$1(value, /(.+)-inline(.+)/, WEBKIT$1 + '$1$2') + value
|
|
38234
|
+
// (min|max)?(width|height|inline-size|block-size)
|
|
38235
|
+
case 8116: case 7059: case 5753: case 5535:
|
|
38236
|
+
case 5445: case 5701: case 4933: case 4677:
|
|
38237
|
+
case 5533: case 5789: case 5021: case 4765:
|
|
38238
|
+
// stretch, max-content, min-content, fill-available
|
|
38239
|
+
if (strlen$1(value) - 1 - length > 6)
|
|
38240
|
+
switch (charat$1(value, length + 1)) {
|
|
38241
|
+
// (m)ax-content, (m)in-content
|
|
38242
|
+
case 109:
|
|
38243
|
+
// -
|
|
38244
|
+
if (charat$1(value, length + 4) !== 45)
|
|
38245
|
+
break
|
|
38246
|
+
// (f)ill-available, (f)it-content
|
|
38247
|
+
case 102:
|
|
38248
|
+
return replace$1(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT$1 + '$2-$3' + '$1' + MOZ$1 + (charat$1(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
|
|
38249
|
+
// (s)tretch
|
|
38250
|
+
case 115:
|
|
38251
|
+
return ~indexof$1(value, 'stretch', 0) ? prefix$1(replace$1(value, 'stretch', 'fill-available'), length, children) + value : value
|
|
38252
|
+
}
|
|
38253
|
+
break
|
|
38254
|
+
// grid-(column|row)
|
|
38255
|
+
case 5152: case 5920:
|
|
38256
|
+
return replace$1(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS$1 + a + ':' + b + f) + (c ? (MS$1 + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
|
|
38257
|
+
// position: sticky
|
|
38258
|
+
case 4949:
|
|
38259
|
+
// stick(y)?
|
|
38260
|
+
if (charat$1(value, length + 6) === 121)
|
|
38261
|
+
return replace$1(value, ':', ':' + WEBKIT$1) + value
|
|
38262
|
+
break
|
|
38263
|
+
// display: (flex|inline-flex|grid|inline-grid)
|
|
38264
|
+
case 6444:
|
|
38265
|
+
switch (charat$1(value, charat$1(value, 14) === 45 ? 18 : 11)) {
|
|
38266
|
+
// (inline-)?fle(x)
|
|
38267
|
+
case 120:
|
|
38268
|
+
return replace$1(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT$1 + (charat$1(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT$1 + '$2$3' + '$1' + MS$1 + '$2box$3') + value
|
|
38269
|
+
// (inline-)?gri(d)
|
|
38270
|
+
case 100:
|
|
38271
|
+
return replace$1(value, ':', ':' + MS$1) + value
|
|
38272
|
+
}
|
|
38273
|
+
break
|
|
38274
|
+
// scroll-margin, scroll-margin-(top|right|bottom|left)
|
|
38275
|
+
case 5719: case 2647: case 2135: case 3927: case 2391:
|
|
38276
|
+
return replace$1(value, 'scroll-', 'scroll-snap-') + value
|
|
38277
|
+
}
|
|
38278
|
+
|
|
38279
|
+
return value
|
|
38280
|
+
}
|
|
38281
|
+
|
|
38282
|
+
/**
|
|
38283
|
+
* @param {object[]} children
|
|
38284
|
+
* @param {function} callback
|
|
38285
|
+
* @return {string}
|
|
38286
|
+
*/
|
|
38287
|
+
function serialize$1 (children, callback) {
|
|
38288
|
+
var output = '';
|
|
38289
|
+
|
|
38290
|
+
for (var i = 0; i < children.length; i++)
|
|
38291
|
+
output += callback(children[i], i, children, callback) || '';
|
|
38292
|
+
|
|
38293
|
+
return output
|
|
38294
|
+
}
|
|
38295
|
+
|
|
38296
|
+
/**
|
|
38297
|
+
* @param {object} element
|
|
38298
|
+
* @param {number} index
|
|
38299
|
+
* @param {object[]} children
|
|
38300
|
+
* @param {function} callback
|
|
38301
|
+
* @return {string}
|
|
38302
|
+
*/
|
|
38303
|
+
function stringify$1 (element, index, children, callback) {
|
|
38304
|
+
switch (element.type) {
|
|
38305
|
+
case LAYER$1: if (element.children.length) break
|
|
38306
|
+
case IMPORT$1: case DECLARATION$1: return element.return = element.return || element.value
|
|
38307
|
+
case COMMENT$1: return ''
|
|
38308
|
+
case KEYFRAMES$1: return element.return = element.value + '{' + serialize$1(element.children, callback) + '}'
|
|
38309
|
+
case RULESET$1: if (!strlen$1(element.value = element.props.join(','))) return ''
|
|
38310
|
+
}
|
|
38311
|
+
|
|
38312
|
+
return strlen$1(children = serialize$1(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
|
|
38313
|
+
}
|
|
38314
|
+
|
|
38315
|
+
/**
|
|
38316
|
+
* @param {function[]} collection
|
|
38317
|
+
* @return {function}
|
|
38318
|
+
*/
|
|
38319
|
+
function middleware$1 (collection) {
|
|
38320
|
+
var length = sizeof$1(collection);
|
|
38321
|
+
|
|
38322
|
+
return function (element, index, children, callback) {
|
|
38323
|
+
var output = '';
|
|
38324
|
+
|
|
38325
|
+
for (var i = 0; i < length; i++)
|
|
38326
|
+
output += collection[i](element, index, children, callback) || '';
|
|
38327
|
+
|
|
38328
|
+
return output
|
|
38329
|
+
}
|
|
38330
|
+
}
|
|
38331
|
+
|
|
38332
|
+
/**
|
|
38333
|
+
* @param {function} callback
|
|
38334
|
+
* @return {function}
|
|
38335
|
+
*/
|
|
38336
|
+
function rulesheet$1 (callback) {
|
|
38337
|
+
return function (element) {
|
|
38338
|
+
if (!element.root)
|
|
38339
|
+
if (element = element.return)
|
|
38340
|
+
callback(element);
|
|
38341
|
+
}
|
|
38342
|
+
}
|
|
38343
|
+
|
|
38344
|
+
/**
|
|
38345
|
+
* @param {object} element
|
|
38346
|
+
* @param {number} index
|
|
38347
|
+
* @param {object[]} children
|
|
38348
|
+
* @param {function} callback
|
|
38349
|
+
*/
|
|
38350
|
+
function prefixer$1 (element, index, children, callback) {
|
|
38351
|
+
if (element.length > -1)
|
|
38352
|
+
if (!element.return)
|
|
38353
|
+
switch (element.type) {
|
|
38354
|
+
case DECLARATION$1: element.return = prefix$1(element.value, element.length, children);
|
|
38355
|
+
return
|
|
38356
|
+
case KEYFRAMES$1:
|
|
38357
|
+
return serialize$1([copy$1(element, {value: replace$1(element.value, '@', '@' + WEBKIT$1)})], callback)
|
|
38358
|
+
case RULESET$1:
|
|
38359
|
+
if (element.length)
|
|
38360
|
+
return combine$1(children = element.props, function (value) {
|
|
38361
|
+
switch (match$1(value, callback = /(::plac\w+|:read-\w+)/)) {
|
|
38362
|
+
// :read-(only|write)
|
|
38363
|
+
case ':read-only': case ':read-write':
|
|
38364
|
+
lift(copy$1(element, {props: [replace$1(value, /:(read-\w+)/, ':' + MOZ$1 + '$1')]}));
|
|
38365
|
+
lift(copy$1(element, {props: [value]}));
|
|
38366
|
+
assign$1(element, {props: filter(children, callback)});
|
|
38367
|
+
break
|
|
38368
|
+
// :placeholder
|
|
38369
|
+
case '::placeholder':
|
|
38370
|
+
lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, ':' + WEBKIT$1 + 'input-$1')]}));
|
|
38371
|
+
lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, ':' + MOZ$1 + '$1')]}));
|
|
38372
|
+
lift(copy$1(element, {props: [replace$1(value, /:(plac\w+)/, MS$1 + 'input-$1')]}));
|
|
38373
|
+
lift(copy$1(element, {props: [value]}));
|
|
38374
|
+
assign$1(element, {props: filter(children, callback)});
|
|
38375
|
+
break
|
|
38376
|
+
}
|
|
38377
|
+
|
|
38378
|
+
return ''
|
|
38379
|
+
})
|
|
38380
|
+
}
|
|
38381
|
+
}
|
|
38382
|
+
|
|
38383
|
+
var unitlessKeys$1 = {
|
|
38384
|
+
animationIterationCount: 1,
|
|
38385
|
+
borderImageOutset: 1,
|
|
38386
|
+
borderImageSlice: 1,
|
|
38387
|
+
borderImageWidth: 1,
|
|
38388
|
+
boxFlex: 1,
|
|
38389
|
+
boxFlexGroup: 1,
|
|
38390
|
+
boxOrdinalGroup: 1,
|
|
38391
|
+
columnCount: 1,
|
|
38392
|
+
columns: 1,
|
|
38393
|
+
flex: 1,
|
|
38394
|
+
flexGrow: 1,
|
|
38395
|
+
flexPositive: 1,
|
|
38396
|
+
flexShrink: 1,
|
|
38397
|
+
flexNegative: 1,
|
|
38398
|
+
flexOrder: 1,
|
|
38399
|
+
gridRow: 1,
|
|
38400
|
+
gridRowEnd: 1,
|
|
38401
|
+
gridRowSpan: 1,
|
|
38402
|
+
gridRowStart: 1,
|
|
38403
|
+
gridColumn: 1,
|
|
38404
|
+
gridColumnEnd: 1,
|
|
38405
|
+
gridColumnSpan: 1,
|
|
38406
|
+
gridColumnStart: 1,
|
|
38407
|
+
msGridRow: 1,
|
|
38408
|
+
msGridRowSpan: 1,
|
|
38409
|
+
msGridColumn: 1,
|
|
38410
|
+
msGridColumnSpan: 1,
|
|
38411
|
+
fontWeight: 1,
|
|
38412
|
+
lineHeight: 1,
|
|
38413
|
+
opacity: 1,
|
|
38414
|
+
order: 1,
|
|
38415
|
+
orphans: 1,
|
|
38416
|
+
tabSize: 1,
|
|
38417
|
+
widows: 1,
|
|
38418
|
+
zIndex: 1,
|
|
38419
|
+
zoom: 1,
|
|
38420
|
+
WebkitLineClamp: 1,
|
|
38421
|
+
// SVG-related properties
|
|
38422
|
+
fillOpacity: 1,
|
|
38423
|
+
floodOpacity: 1,
|
|
38424
|
+
stopOpacity: 1,
|
|
38425
|
+
strokeDasharray: 1,
|
|
38426
|
+
strokeDashoffset: 1,
|
|
38427
|
+
strokeMiterlimit: 1,
|
|
38428
|
+
strokeOpacity: 1,
|
|
38429
|
+
strokeWidth: 1
|
|
38430
|
+
};
|
|
38431
|
+
|
|
38432
|
+
var f="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",m="active",y="data-styled-version",v="6.1.8",g="/*!sc*/\n",S="undefined"!=typeof window&&"HTMLElement"in window,w=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),E=/invalid hook call/i,N=new Set,P=function(t,n){if("production"!==process.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];E.test(t)?(a=!1,N.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},useRef(),a&&!N.has(s)&&(console.warn(s),N.add(s));}catch(e){E.test(e.message)&&N.delete(s);}finally{console.error=i;}}},_=Object.freeze([]),C=Object.freeze({});function I(e,t,n){return void 0===n&&(n=C),e.theme!==n.theme&&e.theme||t||n.theme}var A=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),O=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,D=/(^-|-$)/g;function R(e){return e.replace(O,"-").replace(D,"")}var T=/(a)(d)/gi,k=52,j=function(e){return String.fromCharCode(e+(e>25?39:97))};function x(e){var t,n="";for(t=Math.abs(e);t>k;t=t/k|0)n=j(t%k)+n;return (j(t%k)+n).replace(T,"$1-$2")}var V,F=5381,M=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},$=function(e){return M(F,e)};function z(e){return x($(e)>>>0)}function B(e){return "production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function L(e){return "string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var G="function"==typeof Symbol&&Symbol.for,Y=G?Symbol.for("react.memo"):60115,W=G?Symbol.for("react.forward_ref"):60112,q={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},H={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},U={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},J=((V={})[W]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},V[Y]=U,V);function X(e){return ("type"in(t=e)&&t.type.$$typeof)===Y?U:"$$typeof"in e?J[e.$$typeof]:q;var t;}var Z=Object.defineProperty,K=Object.getOwnPropertyNames,Q=Object.getOwnPropertySymbols,ee=Object.getOwnPropertyDescriptor,te=Object.getPrototypeOf,ne=Object.prototype;function oe(e,t,n){if("string"!=typeof t){if(ne){var o=te(t);o&&o!==ne&&oe(e,o,n);}var r=K(t);Q&&(r=r.concat(Q(t)));for(var s=X(e),i=X(t),a=0;a<r.length;++a){var c=r[a];if(!(c in H||n&&n[c]||i&&c in i||s&&c in s)){var l=ee(t,c);try{Z(e,c,l);}catch(e){}}}}return e}function re(e){return "function"==typeof e}function se(e){return "object"==typeof e&&"styledComponentId"in e}function ie(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ae(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=t?t+e[o]:e[o];return n}function ce(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function le(e,t,n){if(void 0===n&&(n=!1),!n&&!ce(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=le(e[o],t[o]);else if(ce(t))for(var o in t)e[o]=le(e[o],t[o]);return e}function ue(e,t){Object.defineProperty(e,"toString",{value:t});}var pe="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function de(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function he(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(de.apply(void 0,__spreadArray([pe[t]],n,!1)).trim())}var fe=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw he(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat(g);return t},e}(),me=new Map,ye=new Map,ve=1,ge=function(e){if(me.has(e))return me.get(e);for(;ye.has(ve);)ve++;var t=ve++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>1073741824))throw he(16,"".concat(t));return me.set(e,t),ye.set(t,e),t},Se=function(e,t){ve=t+1,me.set(e,t),ye.set(t,e);},we="style[".concat(f,"][").concat(y,'="').concat(v,'"]'),be=new RegExp("^".concat(f,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Ee=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},Ne=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split(g),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(be);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(Se(u,l),Ee(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}};function Pe(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var _e=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f,m),o.setAttribute(y,v);var i=Pe();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},Ce=function(){function e(e){this.element=_e(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw he(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return !1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ie=function(){function e(e){this.element=_e(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return !1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ae=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Oe=S,De={isServer:!S,useCSSOMInjection:!w},Re=function(){function e(e,n,o){void 0===e&&(e=C),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},De),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&S&&Oe&&(Oe=!1,function(e){for(var t=document.querySelectorAll(we),n=0,o=t.length;n<o;n++){var r=t[n];r&&r.getAttribute(f)!==m&&(Ne(e,r),r.parentNode&&r.parentNode.removeChild(r));}}(this)),ue(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return ye.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return "continue";var a="".concat(f,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat(g);},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return ge(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=!0),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ae(n):t?new Ce(n):new Ie(n)}(this.options),new fe(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(ge(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(ge(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(ge(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),Te=/&/g,ke=/^\s*\/\/.*$/gm;function je(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=je(e.children,t)),e})}function xe(e){var t,n,o,r=void 0===e?C:e,s=r.options,i=void 0===s?C:s,a=r.plugins,c=void 0===a?_:a,l=function(e,o,r){return r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET$1&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Te,n).replace(o,l));}),i.prefix&&u.push(prefixer$1),u.push(stringify$1);var p=function(e,r,s,a){void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(ke,""),l=compile$1(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=je(l,i.namespace));var p=[];return serialize$1(l,middleware$1(u.concat(rulesheet$1(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||he(15),M(e,t.name)},F).toString():"",p}var Ve=new Re,Fe=xe(),Me=React__default.createContext({shouldForwardProp:void 0,styleSheet:Ve,stylis:Fe});Me.Consumer;React__default.createContext(void 0);function Be(){return useContext(Me)}var Ge=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Fe);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,ue(this,function(){throw he(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Fe),this.name+e.hash},e}(),Ye=function(e){return e>="A"&&e<="Z"};function We(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;Ye(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var qe=function(e){return null==e||!1===e||""===e},He=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!qe(i)&&(Array.isArray(i)&&i.isCss||re(i)?r.push("".concat(We(s),":"),i,";"):ce(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],He(i),!1),["}"],!1)):r.push("".concat(We(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys$1||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Ue(e,t,n,o){if(qe(e))return [];if(se(e))return [".".concat(e.styledComponentId)];if(re(e)){if(!re(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Ge||ce(r)||null===r||console.error("".concat(B(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ue(r,t,n,o)}var s;return e instanceof Ge?n?(e.inject(n,o),[e.getName(o)]):[e]:ce(e)?He(e):Array.isArray(e)?Array.prototype.concat.apply(_,e.map(function(e){return Ue(e,t,n,o)})):[e.toString()]}function Je(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(re(n)&&!se(n))return !1}return !0}var Xe=$(v),Ze=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===n||n.isStatic)&&Je(e),this.componentId=t,this.baseHash=M(Xe,t),this.baseStyle=n,Re.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=ie(o,this.staticRulesId);else {var r=ae(Ue(this.rules,e,t,n)),s=x(M(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=ie(o,s),this.staticRulesId=s;}else {for(var a=M(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process.env.NODE_ENV&&(a=M(a,u));else if(u){var p=ae(Ue(u,e,t,n));a=M(a,p+l),c+=p;}}if(c){var d=x(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=ie(o,d);}}return o},e}(),Ke=React__default.createContext(void 0);Ke.Consumer;var nt={},ot=new Set;function rt(e,r,s){var i=se(e),a=e,c=!L(e),p=r.attrs,d=void 0===p?_:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":R(e);nt[n]=(nt[n]||0)+1;var o="".concat(n,"-").concat(z(v+n+nt[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return L(e)?"styled.".concat(e):"Styled(".concat(B(e),")")}(e):m,g=r.displayName&&r.componentId?"".concat(R(r.displayName),"-").concat(r.componentId):r.componentId||f,S=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,w=r.shouldForwardProp;if(i&&a.shouldForwardProp){var b=a.shouldForwardProp;if(r.shouldForwardProp){var E=r.shouldForwardProp;w=function(e,t){return b(e,t)&&E(e,t)};}else w=b;}var N=new Ze(s,g,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=React__default.useContext(Ke),m=Be(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process.env.NODE_ENV&&useDebugValue(d);var v=I(r,f,c)||C,g=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=re(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?ie(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=ie(s.className,n.className)),s}(i,r,v),S=g.as||h,w={};for(var b in g)void 0===g[b]||"$"===b[0]||"as"===b||"theme"===b&&g.theme===v||("forwardedAs"===b?w.as=g.forwardedAs:y&&!y(b,S)||(w[b]=g[b],y||"development"!==process.env.NODE_ENV||isPropValid$1(b)||ot.has(b)||!A.has(S)||(ot.add(b),console.warn('styled-components: it looks like an unknown prop "'.concat(b,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var E=function(e,t){var n=Be(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process.env.NODE_ENV&&useDebugValue(o),o}(a,g);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(E);var N=ie(p,d);return E&&(N+=" "+E),g.className&&(N+=" "+g.className),w[L(S)&&!A.has(S)?"class":"className"]=N,w.ref=s,createElement(S,w)}(D,e,r)}O.displayName=y;var D=React__default.forwardRef(O);return D.attrs=S,D.componentStyle=N,D.displayName=y,D.shouldForwardProp=w,D.foldedComponentIds=i?ie(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=g,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)le(e,r[o],!0);return e}({},a.defaultProps,e):e;}}),"production"!==process.env.NODE_ENV&&(P(y,g),D.warnTooManyClasses=function(e,t){var n={},o=!1;return function(r){if(!o&&(n[r]=!0,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,n={};}}}(y,g)),ue(D,function(){return ".".concat(D.styledComponentId)}),c&&oe(D,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),D}function st(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var it=function(e){return Object.assign(e,{isCss:!0})};function at(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(re(t)||ce(t))return it(Ue(st(_,__spreadArray([t],n,!0))));var r=t;return 0===n.length&&1===r.length&&"string"==typeof r[0]?Ue(r):it(Ue(st(r,n)))}function ct(n,o,r){if(void 0===r&&(r=C),!o)throw he(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,at.apply(void 0,__spreadArray([t],s,!1)))};return s.attrs=function(e){return ct(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ct(n,o,__assign(__assign({},r),e))},s}var lt=function(e){return ct(rt,e)},ut=lt;A.forEach(function(e){ut[e]=lt(e);});"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var vt="__sc-".concat(f,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[vt]||(window[vt]=0),1===window[vt]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[vt]+=1);
|
|
38433
|
+
|
|
37487
38434
|
const common = {
|
|
37488
38435
|
black: '#000',
|
|
37489
38436
|
white: '#fff'
|
|
@@ -57907,6 +58854,18 @@ process.env.NODE_ENV !== "production" ? TextField.propTypes /* remove-proptypes
|
|
|
57907
58854
|
} : void 0;
|
|
57908
58855
|
var TextField$1 = TextField;
|
|
57909
58856
|
|
|
58857
|
+
var VisibilityIcon = createSvgIcon( /*#__PURE__*/jsx("path", {
|
|
58858
|
+
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3"
|
|
58859
|
+
}), 'Visibility');
|
|
58860
|
+
|
|
58861
|
+
var VisibilityOffIcon = createSvgIcon( /*#__PURE__*/jsx("path", {
|
|
58862
|
+
d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"
|
|
58863
|
+
}), 'VisibilityOff');
|
|
58864
|
+
|
|
58865
|
+
var LockIcon = createSvgIcon( /*#__PURE__*/jsx("path", {
|
|
58866
|
+
d: "M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z"
|
|
58867
|
+
}), 'Lock');
|
|
58868
|
+
|
|
57910
58869
|
function bind(fn, thisArg) {
|
|
57911
58870
|
return function wrap() {
|
|
57912
58871
|
return fn.apply(thisArg, arguments);
|
|
@@ -61923,7 +62882,7 @@ var BaseApi = /*#__PURE__*/function () {
|
|
|
61923
62882
|
key: "post",
|
|
61924
62883
|
value: (function () {
|
|
61925
62884
|
var _post = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(payload, settings) {
|
|
61926
|
-
var result;
|
|
62885
|
+
var endpoint, result;
|
|
61927
62886
|
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
61928
62887
|
while (1) switch (_context5.prev = _context5.next) {
|
|
61929
62888
|
case 0:
|
|
@@ -61934,21 +62893,22 @@ var BaseApi = /*#__PURE__*/function () {
|
|
|
61934
62893
|
}
|
|
61935
62894
|
return _context5.abrupt("return", null);
|
|
61936
62895
|
case 3:
|
|
61937
|
-
|
|
61938
|
-
|
|
61939
|
-
|
|
62896
|
+
endpoint = "".concat(settings !== null && settings !== void 0 && settings.debug ? this.serviceEndpoints.baseUrlDev : this.serviceEndpoints.baseUrlProd).concat((settings === null || settings === void 0 ? void 0 : settings.endpoint) || this.serviceEndpoints.post);
|
|
62897
|
+
_context5.next = 6;
|
|
62898
|
+
return this.request().post(endpoint, payload);
|
|
62899
|
+
case 6:
|
|
61940
62900
|
result = _context5.sent;
|
|
61941
62901
|
return _context5.abrupt("return", result.data);
|
|
61942
|
-
case
|
|
61943
|
-
_context5.prev =
|
|
62902
|
+
case 10:
|
|
62903
|
+
_context5.prev = 10;
|
|
61944
62904
|
_context5.t0 = _context5["catch"](0);
|
|
61945
62905
|
console.error(_context5.t0);
|
|
61946
62906
|
return _context5.abrupt("return", _context5.t0.response.data);
|
|
61947
|
-
case
|
|
62907
|
+
case 14:
|
|
61948
62908
|
case "end":
|
|
61949
62909
|
return _context5.stop();
|
|
61950
62910
|
}
|
|
61951
|
-
}, _callee5, this, [[0,
|
|
62911
|
+
}, _callee5, this, [[0, 10]]);
|
|
61952
62912
|
}));
|
|
61953
62913
|
function post(_x5, _x6) {
|
|
61954
62914
|
return _post.apply(this, arguments);
|
|
@@ -62096,6 +63056,7 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62096
63056
|
_this.api_key = (args === null || args === void 0 ? void 0 : args.apiKey) || '';
|
|
62097
63057
|
_this.serviceEndpoints = {
|
|
62098
63058
|
baseUrlProd: undefined,
|
|
63059
|
+
baseUrlDev: undefined,
|
|
62099
63060
|
signUpWithPassword: '/security/signup/standard',
|
|
62100
63061
|
signInStandard: '/security/signin/standard',
|
|
62101
63062
|
emailRecoverPassword: '/security/password/reset/standard',
|
|
@@ -62113,10 +63074,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62113
63074
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
62114
63075
|
while (1) switch (_context.prev = _context.next) {
|
|
62115
63076
|
case 0:
|
|
62116
|
-
return _context.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
|
|
62117
|
-
endpoint: this.serviceEndpoints.signUpWithPassword
|
|
62118
|
-
|
|
62119
|
-
}));
|
|
63077
|
+
return _context.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
|
|
63078
|
+
endpoint: this.serviceEndpoints.signUpWithPassword
|
|
63079
|
+
}, this.settings)));
|
|
62120
63080
|
case 1:
|
|
62121
63081
|
case "end":
|
|
62122
63082
|
return _context.stop();
|
|
@@ -62135,10 +63095,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62135
63095
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
62136
63096
|
while (1) switch (_context2.prev = _context2.next) {
|
|
62137
63097
|
case 0:
|
|
62138
|
-
return _context2.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
|
|
62139
|
-
endpoint: this.serviceEndpoints.signInStandard
|
|
62140
|
-
|
|
62141
|
-
}));
|
|
63098
|
+
return _context2.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
|
|
63099
|
+
endpoint: this.serviceEndpoints.signInStandard
|
|
63100
|
+
}, this.settings)));
|
|
62142
63101
|
case 1:
|
|
62143
63102
|
case "end":
|
|
62144
63103
|
return _context2.stop();
|
|
@@ -62157,10 +63116,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62157
63116
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
62158
63117
|
while (1) switch (_context3.prev = _context3.next) {
|
|
62159
63118
|
case 0:
|
|
62160
|
-
return _context3.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
|
|
62161
|
-
endpoint: this.serviceEndpoints.logout
|
|
62162
|
-
|
|
62163
|
-
}));
|
|
63119
|
+
return _context3.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
|
|
63120
|
+
endpoint: this.serviceEndpoints.logout
|
|
63121
|
+
}, this.settings)));
|
|
62164
63122
|
case 1:
|
|
62165
63123
|
case "end":
|
|
62166
63124
|
return _context3.stop();
|
|
@@ -62179,10 +63137,9 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62179
63137
|
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
62180
63138
|
while (1) switch (_context4.prev = _context4.next) {
|
|
62181
63139
|
case 0:
|
|
62182
|
-
return _context4.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, {
|
|
62183
|
-
endpoint: this.serviceEndpoints.emailRecoverPassword
|
|
62184
|
-
|
|
62185
|
-
}));
|
|
63140
|
+
return _context4.abrupt("return", _get(_getPrototypeOf(SecurityService.prototype), "post", this).call(this, payload, _objectSpread2({
|
|
63141
|
+
endpoint: this.serviceEndpoints.emailRecoverPassword
|
|
63142
|
+
}, this.settings)));
|
|
62186
63143
|
case 1:
|
|
62187
63144
|
case "end":
|
|
62188
63145
|
return _context4.stop();
|
|
@@ -62216,12 +63173,16 @@ var SecurityService = /*#__PURE__*/function (_BaseApi) {
|
|
|
62216
63173
|
}]);
|
|
62217
63174
|
}(BaseApi);
|
|
62218
63175
|
|
|
63176
|
+
var _templateObject, _templateObject2;
|
|
63177
|
+
var StandarSigninContainer = ut.section(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n margin: 0 auto;\n min-width: 400px;\n\n @media (min-width: 768px) {\n max-width: 66.6667%; /* 8/12 */\n }\n\n @media (min-width: 992px) {\n max-width: 50%; /* 6/12 */\n }\n\n @media (min-width: 1200px) {\n max-width: 41.6667%; /* 5/12 */\n }\n"])));
|
|
63178
|
+
var KarlaTypography = ut(Typography$1)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-family: 'Karla', 'Roboto', sans-serif !important;\n font-weight: 600;\n"])));
|
|
62219
63179
|
var swal = withReactContent(Swal);
|
|
62220
63180
|
var statusCodeMessages = {
|
|
62221
63181
|
461: 'The data provided does not match any registered application',
|
|
62222
63182
|
462: 'Unauthorized user. After 3 failed attempts, your account will be locked for 24 hours.',
|
|
62223
63183
|
463: 'The user is not registered in this application, needs to register',
|
|
62224
63184
|
464: 'Unauthorized. After 3 failed attempts, your account will be locked for 24 hours.',
|
|
63185
|
+
465: 'API key is missing or invalid',
|
|
62225
63186
|
401: 'Error authenticating'
|
|
62226
63187
|
};
|
|
62227
63188
|
function signInStandard(_x) {
|
|
@@ -62277,7 +63238,9 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62277
63238
|
_ref2$redirectUrl = _ref2.redirectUrl,
|
|
62278
63239
|
redirectUrl = _ref2$redirectUrl === void 0 ? '' : _ref2$redirectUrl,
|
|
62279
63240
|
_ref2$debug = _ref2.debug,
|
|
62280
|
-
debug = _ref2$debug === void 0 ? false : _ref2$debug
|
|
63241
|
+
debug = _ref2$debug === void 0 ? false : _ref2$debug,
|
|
63242
|
+
_ref2$apiKey = _ref2.apiKey,
|
|
63243
|
+
apiKey = _ref2$apiKey === void 0 ? '' : _ref2$apiKey;
|
|
62281
63244
|
// Hooks
|
|
62282
63245
|
var authProvider = useAuth();
|
|
62283
63246
|
var location = useLocation();
|
|
@@ -62295,7 +63258,7 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62295
63258
|
setShowPassword = _React$useState2[1];
|
|
62296
63259
|
|
|
62297
63260
|
// Entity states
|
|
62298
|
-
var _useState3 = useState(
|
|
63261
|
+
var _useState3 = useState(''),
|
|
62299
63262
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
62300
63263
|
email = _useState4[0],
|
|
62301
63264
|
setEmail = _useState4[1];
|
|
@@ -62334,9 +63297,6 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62334
63297
|
break;
|
|
62335
63298
|
}
|
|
62336
63299
|
};
|
|
62337
|
-
var initializeComponent = function initializeComponent() {
|
|
62338
|
-
setErrors();
|
|
62339
|
-
};
|
|
62340
63300
|
var handleSubmit = /*#__PURE__*/function () {
|
|
62341
63301
|
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(event) {
|
|
62342
63302
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -62379,6 +63339,7 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62379
63339
|
},
|
|
62380
63340
|
authProvider: authProvider,
|
|
62381
63341
|
redirectUrl: redirectUrl,
|
|
63342
|
+
apiKey: apiKey,
|
|
62382
63343
|
debug: debug
|
|
62383
63344
|
});
|
|
62384
63345
|
case 13:
|
|
@@ -62402,15 +63363,13 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62402
63363
|
return _ref4.apply(this, arguments);
|
|
62403
63364
|
};
|
|
62404
63365
|
}();
|
|
63366
|
+
var initializeComponent = function initializeComponent() {
|
|
63367
|
+
setErrors();
|
|
63368
|
+
};
|
|
62405
63369
|
useEffect(function () {
|
|
62406
63370
|
initializeComponent();
|
|
62407
63371
|
}, []);
|
|
62408
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("
|
|
62409
|
-
style: {
|
|
62410
|
-
maxWidth: '600px',
|
|
62411
|
-
margin: '0 auto'
|
|
62412
|
-
}
|
|
62413
|
-
}, /*#__PURE__*/React__default.createElement("header", {
|
|
63372
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(StandarSigninContainer, null, /*#__PURE__*/React__default.createElement("header", {
|
|
62414
63373
|
style: {
|
|
62415
63374
|
textAlign: 'center'
|
|
62416
63375
|
}
|
|
@@ -62426,25 +63385,25 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62426
63385
|
}
|
|
62427
63386
|
})), /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
62428
63387
|
variant: "body2",
|
|
62429
|
-
color: "textSecondary",
|
|
62430
63388
|
style: {
|
|
62431
63389
|
marginTop: '16px',
|
|
62432
|
-
marginBottom: '24px'
|
|
63390
|
+
marginBottom: '24px',
|
|
63391
|
+
color: '#98a6ad',
|
|
63392
|
+
fontWeight: 300
|
|
62433
63393
|
}
|
|
62434
63394
|
}, organizationSlogan)), /*#__PURE__*/React__default.createElement("section", {
|
|
62435
63395
|
style: {
|
|
62436
|
-
border: '1px solid #
|
|
63396
|
+
border: '1px solid #f2f2f2',
|
|
62437
63397
|
borderRadius: '8px',
|
|
62438
|
-
padding: '16px'
|
|
63398
|
+
padding: '16px',
|
|
63399
|
+
boxShadow: '0 .75rem 6rem rgba(56, 65, 74, 0.03)'
|
|
62439
63400
|
}
|
|
62440
63401
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
62441
63402
|
style: {
|
|
62442
63403
|
textAlign: 'center',
|
|
62443
63404
|
marginBottom: '32px'
|
|
62444
63405
|
}
|
|
62445
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
62446
|
-
variant: "h6"
|
|
62447
|
-
}, "Log in using email address")), /*#__PURE__*/React__default.createElement("form", {
|
|
63406
|
+
}, /*#__PURE__*/React__default.createElement(KarlaTypography, null, "Log in using email address")), /*#__PURE__*/React__default.createElement("form", {
|
|
62448
63407
|
onSubmit: handleSubmit,
|
|
62449
63408
|
autoComplete: "off"
|
|
62450
63409
|
}, /*#__PURE__*/React__default.createElement("section", {
|
|
@@ -62492,50 +63451,59 @@ var VeripassStandardSignin = function VeripassStandardSignin(_ref2) {
|
|
|
62492
63451
|
event.preventDefault();
|
|
62493
63452
|
},
|
|
62494
63453
|
edge: "end"
|
|
62495
|
-
}, showPassword ? /*#__PURE__*/React__default.createElement(
|
|
62496
|
-
className: "fe-eye-off"
|
|
62497
|
-
}) : /*#__PURE__*/React__default.createElement("i", {
|
|
62498
|
-
className: "fe-eye"
|
|
62499
|
-
})))
|
|
63454
|
+
}, showPassword ? /*#__PURE__*/React__default.createElement(VisibilityIcon, null) : /*#__PURE__*/React__default.createElement(VisibilityOffIcon, null)))
|
|
62500
63455
|
},
|
|
62501
63456
|
InputLabelProps: {
|
|
62502
63457
|
shrink: true
|
|
62503
63458
|
}
|
|
62504
63459
|
})), /*#__PURE__*/React__default.createElement("section", {
|
|
62505
63460
|
style: {
|
|
62506
|
-
|
|
62507
|
-
|
|
62508
|
-
marginBottom: '16px'
|
|
63461
|
+
marginBottom: '16px',
|
|
63462
|
+
width: '100%'
|
|
62509
63463
|
}
|
|
62510
63464
|
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
62511
63465
|
to: "recover-password",
|
|
63466
|
+
underline: "hover",
|
|
62512
63467
|
style: {
|
|
62513
63468
|
marginLeft: '8px',
|
|
62514
|
-
color: 'gray'
|
|
63469
|
+
color: 'gray',
|
|
63470
|
+
width: '100%',
|
|
63471
|
+
display: 'flex',
|
|
63472
|
+
justifyContent: 'flex-end',
|
|
63473
|
+
textDecoration: 'none'
|
|
62515
63474
|
}
|
|
62516
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
62517
|
-
className: "fa fa-lock",
|
|
63475
|
+
}, /*#__PURE__*/React__default.createElement(LockIcon, {
|
|
62518
63476
|
style: {
|
|
62519
|
-
marginRight: '
|
|
63477
|
+
marginRight: '5px',
|
|
63478
|
+
color: '#98a6ad',
|
|
63479
|
+
fontSize: '18px'
|
|
62520
63480
|
}
|
|
62521
|
-
}),
|
|
63481
|
+
}), /*#__PURE__*/React__default.createElement(Typography$1, {
|
|
63482
|
+
variant: "body2",
|
|
63483
|
+
style: {
|
|
63484
|
+
color: '#98a6ad',
|
|
63485
|
+
fontWeight: '400'
|
|
63486
|
+
}
|
|
63487
|
+
}, "Forgot password?"))), /*#__PURE__*/React__default.createElement("footer", {
|
|
62522
63488
|
style: {
|
|
62523
63489
|
marginBottom: '16px',
|
|
62524
63490
|
display: 'flex',
|
|
62525
63491
|
justifyContent: 'center'
|
|
62526
63492
|
}
|
|
62527
63493
|
}, /*#__PURE__*/React__default.createElement(Button$1, {
|
|
62528
|
-
|
|
63494
|
+
type: "submit",
|
|
63495
|
+
variant: "contained",
|
|
62529
63496
|
disabled: isLoading,
|
|
62530
63497
|
sx: {
|
|
62531
63498
|
display: 'flex',
|
|
62532
63499
|
alignItems: 'center',
|
|
62533
63500
|
border: '2px solid #232931',
|
|
62534
|
-
backgroundColor:
|
|
62535
|
-
color:
|
|
63501
|
+
backgroundColor: '#323a46',
|
|
63502
|
+
color: '#fff',
|
|
62536
63503
|
'&:hover': {
|
|
62537
|
-
backgroundColor:
|
|
62538
|
-
}
|
|
63504
|
+
backgroundColor: '#3d4c61'
|
|
63505
|
+
},
|
|
63506
|
+
width: '100%'
|
|
62539
63507
|
}
|
|
62540
63508
|
}, isLoading && /*#__PURE__*/React__default.createElement(CircularProgress$1, {
|
|
62541
63509
|
size: 20,
|