@bigbinary/neeto-commons-frontend 2.0.39 → 2.0.41
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/README.md +1 -0
- package/configs/babel.js +14 -9
- package/cypress-commands.d.ts +2 -0
- package/cypress-utils.cjs.js +46 -5
- package/cypress-utils.d.ts +2 -0
- package/cypress-utils.js +46 -5
- package/initializers.cjs.js +18 -166
- package/initializers.js +11 -159
- package/package.json +15 -2
- package/react-utils.cjs.js +841 -2993
- package/react-utils.d.ts +3 -2
- package/react-utils.js +805 -2956
- package/utils.cjs.js +3 -84
- package/utils.d.ts +2 -0
- package/utils.js +3 -83
package/react-utils.js
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { useState, useEffect, useDebugValue, useRef, useImperativeHandle, forwardRef } from 'react';
|
|
3
|
-
import { Button, Callout, Typography, Dropdown, Input, Label, Checkbox,
|
|
3
|
+
import { Button, Callout, Typography, Dropdown, Input, Label, Checkbox, Tag, Pane, PageLoader, Table, NoData, Alert, Tooltip, Spinner, Switch, Kbd, Select, Toastr, Modal } from '@bigbinary/neetoui';
|
|
4
4
|
import i18next, { t as t$1 } from 'i18next';
|
|
5
|
-
import { mergeLeft,
|
|
5
|
+
import { mergeLeft, isNil, curryN, either as either$1, isEmpty, curry, complement as complement$1, includes, __, filter, trim, toLower, identity, without, append, prop as prop$1, toPairs, fromPairs, keys, values, last as last$1, pluck, any, uniq, intersection, difference, pick, assoc, not as not$2 } from 'ramda';
|
|
6
6
|
import { Trans, useTranslation } from 'react-i18next';
|
|
7
|
+
import { removeBy as removeBy$1, isNotEmpty, snakeToCamelCase, capitalize, noop as noop$2, findIndexBy, isPresent, isNotPresent as isNotPresent$1, slugify } from '@bigbinary/neeto-commons-frontend/pure';
|
|
7
8
|
import { Search, MenuHorizontal, Info as Info$3, Copy, Check, Close, Delete, Edit, Plus, Help, ExternalLink, Undo, MenuVertical, Clock, Facebook, Linkedin, Twitter, QrCode, ChatBubble, Keyboard, LeftArrow as LeftArrow$1, User, Settings } from '@bigbinary/neeto-icons';
|
|
8
9
|
import { Container, Header as Header$1, SubHeader, Sidebar as Sidebar$1, AppSwitcher } from '@bigbinary/neetoui/layouts';
|
|
9
10
|
import { Input as Input$1, Form as Form$2, Button as Button$1, MultiEmailInput, Select as Select$1, Checkbox as Checkbox$1 } from '@bigbinary/neetoui/formik';
|
|
10
11
|
import { Formik, Form as Form$1, FieldArray, ErrorMessage, useFormikContext } from 'formik';
|
|
11
12
|
import * as yup from 'yup';
|
|
12
|
-
import
|
|
13
|
-
import dayjs from 'dayjs';
|
|
14
|
-
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
15
|
-
import updateLocale from 'dayjs/plugin/updateLocale';
|
|
13
|
+
import { joinHyphenCase, copyToClipboard, timeFormat as timeFormat$1, buildUrl, resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils';
|
|
16
14
|
import { useQueryClient, useMutation, useQuery, QueryClient, QueryClientProvider } from 'react-query';
|
|
17
15
|
import axios$1 from 'axios';
|
|
18
16
|
import { Honeybadger, HoneybadgerErrorBoundary as HoneybadgerErrorBoundary$1 } from '@honeybadger-io/react';
|
|
19
17
|
import { manager } from '@bigbinary/neetoui/managers';
|
|
20
18
|
import { Route, Redirect, useLocation } from 'react-router-dom';
|
|
19
|
+
import dayjs from 'dayjs';
|
|
20
|
+
import relativeTime from 'dayjs/plugin/relativeTime';
|
|
21
|
+
import updateLocale from 'dayjs/plugin/updateLocale';
|
|
21
22
|
import customParseFormat from 'dayjs/plugin/customParseFormat';
|
|
22
23
|
import timezone from 'dayjs/plugin/timezone';
|
|
23
24
|
import utc from 'dayjs/plugin/utc';
|
|
@@ -1515,6 +1516,28 @@ function _extends$4() {
|
|
|
1515
1516
|
return _extends$4.apply(this, arguments);
|
|
1516
1517
|
}
|
|
1517
1518
|
|
|
1519
|
+
var getStorageValue = function getStorageValue(key, defaultValue) {
|
|
1520
|
+
if (key in localStorage) return JSON.parse(localStorage.getItem(key));
|
|
1521
|
+
return defaultValue;
|
|
1522
|
+
};
|
|
1523
|
+
var useLocalStorage = function useLocalStorage(key, defaultValue) {
|
|
1524
|
+
var _useState = useState(function () {
|
|
1525
|
+
return getStorageValue(key, defaultValue);
|
|
1526
|
+
}),
|
|
1527
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
1528
|
+
storedValue = _useState2[0],
|
|
1529
|
+
setStoredValue = _useState2[1];
|
|
1530
|
+
var setValue = function setValue(value) {
|
|
1531
|
+
if (isNil(value)) {
|
|
1532
|
+
localStorage.removeItem(key);
|
|
1533
|
+
} else {
|
|
1534
|
+
localStorage.setItem(key, JSON.stringify(value));
|
|
1535
|
+
}
|
|
1536
|
+
setStoredValue(value);
|
|
1537
|
+
};
|
|
1538
|
+
return [storedValue, setValue];
|
|
1539
|
+
};
|
|
1540
|
+
|
|
1518
1541
|
function _typeof$1(obj) {
|
|
1519
1542
|
"@babel/helpers - typeof";
|
|
1520
1543
|
|
|
@@ -1540,33 +1563,13 @@ var nullSafe = function nullSafe(func) {
|
|
|
1540
1563
|
})
|
|
1541
1564
|
);
|
|
1542
1565
|
};
|
|
1543
|
-
var noop$2 = function noop() {};
|
|
1544
1566
|
var toLabelAndValue = function toLabelAndValue(string) {
|
|
1545
1567
|
return {
|
|
1546
1568
|
label: string,
|
|
1547
1569
|
value: string
|
|
1548
1570
|
};
|
|
1549
1571
|
};
|
|
1550
|
-
var isNotEmpty = /*#__PURE__*/complement$1(isEmpty);
|
|
1551
1572
|
var isNotPresent = /*#__PURE__*/either$1(isNil, isEmpty);
|
|
1552
|
-
var isPresent = /*#__PURE__*/complement$1(isNotPresent);
|
|
1553
|
-
|
|
1554
|
-
var slugify = function slugify(string) {
|
|
1555
|
-
return string.toString().toLowerCase().replace(/\s+/g, "-") // Replace spaces with -
|
|
1556
|
-
.replace(/&/g, "-and-") // Replace & with 'and'
|
|
1557
|
-
.replace(/[^\w-]+/g, "") // Remove all non-word characters
|
|
1558
|
-
.replace(/--+/g, "-") // Replace multiple - with single -
|
|
1559
|
-
.replace(/^-+/, "") // Trim - from start of text
|
|
1560
|
-
.replace(/-+$/, "");
|
|
1561
|
-
}; // Trim - from end of text
|
|
1562
|
-
var snakeToCamelCase = function snakeToCamelCase(string) {
|
|
1563
|
-
return string.replace(/(_\w)/g, function (letter) {
|
|
1564
|
-
return letter[1].toUpperCase();
|
|
1565
|
-
});
|
|
1566
|
-
};
|
|
1567
|
-
var capitalize = function capitalize(string) {
|
|
1568
|
-
return string.charAt(0).toUpperCase() + string.slice(1);
|
|
1569
|
-
};
|
|
1570
1573
|
|
|
1571
1574
|
var matchesImpl = function matchesImpl(pattern, object) {
|
|
1572
1575
|
var __parent = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : object;
|
|
@@ -1581,32 +1584,6 @@ var matchesImpl = function matchesImpl(pattern, object) {
|
|
|
1581
1584
|
return matchesImpl(value, object[key], __parent);
|
|
1582
1585
|
});
|
|
1583
1586
|
};
|
|
1584
|
-
var transformObjectDeep = function transformObjectDeep(object, keyValueTransformer) {
|
|
1585
|
-
var objectPreProcessor = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
1586
|
-
if (objectPreProcessor && typeof objectPreProcessor === "function") {
|
|
1587
|
-
object = objectPreProcessor(object);
|
|
1588
|
-
}
|
|
1589
|
-
if (Array.isArray(object)) {
|
|
1590
|
-
return object.map(function (obj) {
|
|
1591
|
-
return transformObjectDeep(obj, keyValueTransformer, objectPreProcessor);
|
|
1592
|
-
});
|
|
1593
|
-
} else if (object === null || _typeof$1(object) !== "object") {
|
|
1594
|
-
return object;
|
|
1595
|
-
}
|
|
1596
|
-
return Object.fromEntries(Object.entries(object).map(function (_ref3) {
|
|
1597
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
1598
|
-
key = _ref4[0],
|
|
1599
|
-
value = _ref4[1];
|
|
1600
|
-
return keyValueTransformer(key, transformObjectDeep(value, keyValueTransformer, objectPreProcessor));
|
|
1601
|
-
}));
|
|
1602
|
-
};
|
|
1603
|
-
var preprocessForSerialization = function preprocessForSerialization(object) {
|
|
1604
|
-
return transformObjectDeep(object, function (key, value) {
|
|
1605
|
-
return [key, value];
|
|
1606
|
-
}, function (object) {
|
|
1607
|
-
return typeof (object === null || object === void 0 ? void 0 : object.toJSON) === "function" ? object.toJSON() : object;
|
|
1608
|
-
});
|
|
1609
|
-
};
|
|
1610
1587
|
var matches = /*#__PURE__*/curry(function (pattern, object) {
|
|
1611
1588
|
return matchesImpl(pattern, object);
|
|
1612
1589
|
});
|
|
@@ -1658,31 +1635,6 @@ function _defineProperty(obj, key, value) {
|
|
|
1658
1635
|
var removeBy = /*#__PURE__*/curry(function (pattern, array) {
|
|
1659
1636
|
return array.filter(complement$1(matches(pattern)));
|
|
1660
1637
|
});
|
|
1661
|
-
var findIndexBy = /*#__PURE__*/curry(function (pattern, array) {
|
|
1662
|
-
return array.findIndex(matches(pattern));
|
|
1663
|
-
});
|
|
1664
|
-
|
|
1665
|
-
var getStorageValue = function getStorageValue(key, defaultValue) {
|
|
1666
|
-
if (key in localStorage) return JSON.parse(localStorage.getItem(key));
|
|
1667
|
-
return defaultValue;
|
|
1668
|
-
};
|
|
1669
|
-
var useLocalStorage = function useLocalStorage(key, defaultValue) {
|
|
1670
|
-
var _useState = useState(function () {
|
|
1671
|
-
return getStorageValue(key, defaultValue);
|
|
1672
|
-
}),
|
|
1673
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
1674
|
-
storedValue = _useState2[0],
|
|
1675
|
-
setStoredValue = _useState2[1];
|
|
1676
|
-
var setValue = function setValue(value) {
|
|
1677
|
-
if (isNil(value)) {
|
|
1678
|
-
localStorage.removeItem(key);
|
|
1679
|
-
} else {
|
|
1680
|
-
localStorage.setItem(key, JSON.stringify(value));
|
|
1681
|
-
}
|
|
1682
|
-
setStoredValue(value);
|
|
1683
|
-
};
|
|
1684
|
-
return [storedValue, setValue];
|
|
1685
|
-
};
|
|
1686
1638
|
|
|
1687
1639
|
var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
|
|
1688
1640
|
return removeBy({
|
|
@@ -1740,7 +1692,7 @@ var Columns = function Columns(_ref) {
|
|
|
1740
1692
|
return setSearchTerm(value);
|
|
1741
1693
|
};
|
|
1742
1694
|
useEffect(function () {
|
|
1743
|
-
onChange(removeBy({
|
|
1695
|
+
onChange(removeBy$1({
|
|
1744
1696
|
dataIndex: includes(__, hiddenColumns)
|
|
1745
1697
|
}, columnData));
|
|
1746
1698
|
}, [columnData, hiddenColumns]);
|
|
@@ -3356,2851 +3308,385 @@ var mousetrap = {exports: {}};
|
|
|
3356
3308
|
Mousetrap.prototype.stopCallback = function(e, element) {
|
|
3357
3309
|
var self = this;
|
|
3358
3310
|
|
|
3359
|
-
// if the element has the class "mousetrap" then no need to stop
|
|
3360
|
-
if ((' ' + element.className + ' ').indexOf(' mousetrap ') > -1) {
|
|
3361
|
-
return false;
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
if (_belongsTo(element, self.target)) {
|
|
3365
|
-
return false;
|
|
3366
|
-
}
|
|
3367
|
-
|
|
3368
|
-
// Events originating from a shadow DOM are re-targetted and `e.target` is the shadow host,
|
|
3369
|
-
// not the initial event target in the shadow tree. Note that not all events cross the
|
|
3370
|
-
// shadow boundary.
|
|
3371
|
-
// For shadow trees with `mode: 'open'`, the initial event target is the first element in
|
|
3372
|
-
// the event’s composed path. For shadow trees with `mode: 'closed'`, the initial event
|
|
3373
|
-
// target cannot be obtained.
|
|
3374
|
-
if ('composedPath' in e && typeof e.composedPath === 'function') {
|
|
3375
|
-
// For open shadow trees, update `element` so that the following check works.
|
|
3376
|
-
var initialEventTarget = e.composedPath()[0];
|
|
3377
|
-
if (initialEventTarget !== e.target) {
|
|
3378
|
-
element = initialEventTarget;
|
|
3379
|
-
}
|
|
3380
|
-
}
|
|
3381
|
-
|
|
3382
|
-
// stop for input, select, and textarea
|
|
3383
|
-
return element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable;
|
|
3384
|
-
};
|
|
3385
|
-
|
|
3386
|
-
/**
|
|
3387
|
-
* exposes _handleKey publicly so it can be overwritten by extensions
|
|
3388
|
-
*/
|
|
3389
|
-
Mousetrap.prototype.handleKey = function() {
|
|
3390
|
-
var self = this;
|
|
3391
|
-
return self._handleKey.apply(self, arguments);
|
|
3392
|
-
};
|
|
3393
|
-
|
|
3394
|
-
/**
|
|
3395
|
-
* allow custom key mappings
|
|
3396
|
-
*/
|
|
3397
|
-
Mousetrap.addKeycodes = function(object) {
|
|
3398
|
-
for (var key in object) {
|
|
3399
|
-
if (object.hasOwnProperty(key)) {
|
|
3400
|
-
_MAP[key] = object[key];
|
|
3401
|
-
}
|
|
3402
|
-
}
|
|
3403
|
-
_REVERSE_MAP = null;
|
|
3404
|
-
};
|
|
3405
|
-
|
|
3406
|
-
/**
|
|
3407
|
-
* Init the global mousetrap functions
|
|
3408
|
-
*
|
|
3409
|
-
* This method is needed to allow the global mousetrap functions to work
|
|
3410
|
-
* now that mousetrap is a constructor function.
|
|
3411
|
-
*/
|
|
3412
|
-
Mousetrap.init = function() {
|
|
3413
|
-
var documentMousetrap = Mousetrap(document);
|
|
3414
|
-
for (var method in documentMousetrap) {
|
|
3415
|
-
if (method.charAt(0) !== '_') {
|
|
3416
|
-
Mousetrap[method] = (function(method) {
|
|
3417
|
-
return function() {
|
|
3418
|
-
return documentMousetrap[method].apply(documentMousetrap, arguments);
|
|
3419
|
-
};
|
|
3420
|
-
} (method));
|
|
3421
|
-
}
|
|
3422
|
-
}
|
|
3423
|
-
};
|
|
3424
|
-
|
|
3425
|
-
Mousetrap.init();
|
|
3426
|
-
|
|
3427
|
-
// expose mousetrap to the global object
|
|
3428
|
-
window.Mousetrap = Mousetrap;
|
|
3429
|
-
|
|
3430
|
-
// expose as a common js module
|
|
3431
|
-
if (module.exports) {
|
|
3432
|
-
module.exports = Mousetrap;
|
|
3433
|
-
}
|
|
3434
|
-
|
|
3435
|
-
// expose mousetrap as an AMD module
|
|
3436
|
-
if (typeof undefined$1 === 'function' && undefined$1.amd) {
|
|
3437
|
-
undefined$1(function() {
|
|
3438
|
-
return Mousetrap;
|
|
3439
|
-
});
|
|
3440
|
-
}
|
|
3441
|
-
}) (typeof window !== 'undefined' ? window : null, typeof window !== 'undefined' ? document : null);
|
|
3442
|
-
} (mousetrap));
|
|
3443
|
-
|
|
3444
|
-
var Mousetrap$1 = mousetrap.exports;
|
|
3445
|
-
|
|
3446
|
-
/**
|
|
3447
|
-
* adds a bindGlobal method to Mousetrap that allows you to
|
|
3448
|
-
* bind specific keyboard shortcuts that will still work
|
|
3449
|
-
* inside a text input field
|
|
3450
|
-
*
|
|
3451
|
-
* usage:
|
|
3452
|
-
* Mousetrap.bindGlobal('ctrl+s', _saveChanges);
|
|
3453
|
-
*/
|
|
3454
|
-
/* global Mousetrap:true */
|
|
3455
|
-
(function(Mousetrap) {
|
|
3456
|
-
var _globalCallbacks = {};
|
|
3457
|
-
var _originalStopCallback = Mousetrap.prototype.stopCallback;
|
|
3458
|
-
|
|
3459
|
-
Mousetrap.prototype.stopCallback = function(e, element, combo, sequence) {
|
|
3460
|
-
var self = this;
|
|
3461
|
-
|
|
3462
|
-
if (self.paused) {
|
|
3463
|
-
return true;
|
|
3464
|
-
}
|
|
3465
|
-
|
|
3466
|
-
if (_globalCallbacks[combo] || _globalCallbacks[sequence]) {
|
|
3467
|
-
return false;
|
|
3468
|
-
}
|
|
3469
|
-
|
|
3470
|
-
return _originalStopCallback.call(self, e, element, combo);
|
|
3471
|
-
};
|
|
3472
|
-
|
|
3473
|
-
Mousetrap.prototype.bindGlobal = function(keys, callback, action) {
|
|
3474
|
-
var self = this;
|
|
3475
|
-
self.bind(keys, callback, action);
|
|
3476
|
-
|
|
3477
|
-
if (keys instanceof Array) {
|
|
3478
|
-
for (var i = 0; i < keys.length; i++) {
|
|
3479
|
-
_globalCallbacks[keys[i]] = true;
|
|
3480
|
-
}
|
|
3481
|
-
return;
|
|
3482
|
-
}
|
|
3483
|
-
|
|
3484
|
-
_globalCallbacks[keys] = true;
|
|
3485
|
-
};
|
|
3486
|
-
|
|
3487
|
-
Mousetrap.prototype.unbindGlobal = function(keys, action) {
|
|
3488
|
-
var self = this;
|
|
3489
|
-
self.unbind(keys, action);
|
|
3490
|
-
|
|
3491
|
-
if (keys instanceof Array) {
|
|
3492
|
-
for (var i = 0; i < keys.length; i++) {
|
|
3493
|
-
_globalCallbacks[keys[i]] = false;
|
|
3494
|
-
}
|
|
3495
|
-
return;
|
|
3496
|
-
}
|
|
3497
|
-
|
|
3498
|
-
_globalCallbacks[keys] = false;
|
|
3499
|
-
};
|
|
3500
|
-
|
|
3501
|
-
Mousetrap.init();
|
|
3502
|
-
}) (Mousetrap);
|
|
3503
|
-
|
|
3504
|
-
var MAC_TO_WINDOWS_KEYS_MAP = {
|
|
3505
|
-
option: "alt",
|
|
3506
|
-
command: "ctrl",
|
|
3507
|
-
"return": "enter",
|
|
3508
|
-
"delete": "backspace"
|
|
3509
|
-
};
|
|
3510
|
-
var OS = {
|
|
3511
|
-
mac: "OS X",
|
|
3512
|
-
windows: "Windows"
|
|
3513
|
-
};
|
|
3514
|
-
|
|
3515
|
-
var convertHotkeyToUsersPlatform = function convertHotkeyToUsersPlatform(hotkey) {
|
|
3516
|
-
var _platformInfo$os, _platformInfo$os$fami;
|
|
3517
|
-
var platformInfo = platform.parse(navigator.userAgent);
|
|
3518
|
-
var isOSX = (_platformInfo$os = platformInfo.os) === null || _platformInfo$os === void 0 ? void 0 : (_platformInfo$os$fami = _platformInfo$os.family) === null || _platformInfo$os$fami === void 0 ? void 0 : _platformInfo$os$fami.includes(OS.mac);
|
|
3519
|
-
if (isOSX) return hotkey;
|
|
3520
|
-
var hotkeyForWindows = hotkey;
|
|
3521
|
-
toPairs(MAC_TO_WINDOWS_KEYS_MAP).forEach(function (_ref) {
|
|
3522
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
3523
|
-
macKey = _ref2[0],
|
|
3524
|
-
windowsKey = _ref2[1];
|
|
3525
|
-
hotkeyForWindows = hotkeyForWindows.replaceAll(macKey, windowsKey);
|
|
3526
|
-
});
|
|
3527
|
-
return hotkeyForWindows;
|
|
3528
|
-
};
|
|
3529
|
-
|
|
3530
|
-
var MODES$1 = {
|
|
3531
|
-
"default": "default",
|
|
3532
|
-
global: "global",
|
|
3533
|
-
scoped: "scoped"
|
|
3534
|
-
};
|
|
3535
|
-
var DEFAULT_CONFIG = {
|
|
3536
|
-
mode: MODES$1["default"],
|
|
3537
|
-
unbindOnUnmount: true,
|
|
3538
|
-
enabled: true
|
|
3539
|
-
};
|
|
3540
|
-
|
|
3541
|
-
var useHotKeys = function useHotKeys(hotkey, handler, userConfig) {
|
|
3542
|
-
var ref = useRef(null);
|
|
3543
|
-
var convertedHotkey = convertHotkeyToUsersPlatform(hotkey);
|
|
3544
|
-
var config = mergeLeft(userConfig, DEFAULT_CONFIG);
|
|
3545
|
-
useEffect(function () {
|
|
3546
|
-
config.enabled && bindHotKey({
|
|
3547
|
-
mode: config.mode,
|
|
3548
|
-
hotkey: convertedHotkey,
|
|
3549
|
-
handler: handler,
|
|
3550
|
-
ref: ref
|
|
3551
|
-
});
|
|
3552
|
-
return function () {
|
|
3553
|
-
config.unbindOnUnmount && unBindHotKey(config.mode, convertedHotkey);
|
|
3554
|
-
};
|
|
3555
|
-
}, [handler, config.mode, convertedHotkey, config]);
|
|
3556
|
-
return config.mode === MODES$1.scoped ? ref : null;
|
|
3557
|
-
};
|
|
3558
|
-
var bindHotKey = function bindHotKey(_ref) {
|
|
3559
|
-
var mode = _ref.mode,
|
|
3560
|
-
hotkey = _ref.hotkey,
|
|
3561
|
-
handler = _ref.handler,
|
|
3562
|
-
ref = _ref.ref;
|
|
3563
|
-
switch (mode) {
|
|
3564
|
-
case MODES$1.global:
|
|
3565
|
-
Mousetrap$1.bindGlobal(hotkey, handler);
|
|
3566
|
-
break;
|
|
3567
|
-
case MODES$1.scoped:
|
|
3568
|
-
Mousetrap$1(ref.current).bind(hotkey, handler);
|
|
3569
|
-
break;
|
|
3570
|
-
default:
|
|
3571
|
-
Mousetrap$1.bind(hotkey, handler);
|
|
3572
|
-
}
|
|
3573
|
-
};
|
|
3574
|
-
var unBindHotKey = function unBindHotKey(mode, hotkey) {
|
|
3575
|
-
return mode === MODES$1.global ? Mousetrap$1.unbindGlobal(hotkey) : Mousetrap$1.unbind(hotkey);
|
|
3576
|
-
};
|
|
3577
|
-
|
|
3578
|
-
var useForceUpdate = function useForceUpdate() {
|
|
3579
|
-
// eslint-disable-next-line react/hook-use-state
|
|
3580
|
-
var _useState = useState(0),
|
|
3581
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
3582
|
-
setValue = _useState2[1];
|
|
3583
|
-
return function () {
|
|
3584
|
-
return setValue(function (value) {
|
|
3585
|
-
return value + 1;
|
|
3586
|
-
});
|
|
3587
|
-
};
|
|
3588
|
-
};
|
|
3589
|
-
|
|
3590
|
-
var useIsElementVisibleInDom = function useIsElementVisibleInDom(target) {
|
|
3591
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
3592
|
-
var _useState = useState(false),
|
|
3593
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
3594
|
-
isIntersecting = _useState2[0],
|
|
3595
|
-
setIsIntersecting = _useState2[1];
|
|
3596
|
-
var forceUpdate = useForceUpdate();
|
|
3597
|
-
useEffect(function () {
|
|
3598
|
-
if (!target) return forceUpdate();
|
|
3599
|
-
var observer = new IntersectionObserver(function (_ref) {
|
|
3600
|
-
var _ref2 = _slicedToArray(_ref, 1),
|
|
3601
|
-
entry = _ref2[0];
|
|
3602
|
-
return setIsIntersecting(entry.isIntersecting);
|
|
3603
|
-
}, options);
|
|
3604
|
-
observer.observe(target);
|
|
3605
|
-
return function () {
|
|
3606
|
-
return observer.unobserve(target);
|
|
3607
|
-
};
|
|
3608
|
-
}, [target, options]);
|
|
3609
|
-
return isIntersecting;
|
|
3610
|
-
};
|
|
3611
|
-
|
|
3612
|
-
function shallow(objA, objB) {
|
|
3613
|
-
if (Object.is(objA, objB)) {
|
|
3614
|
-
return true;
|
|
3615
|
-
}
|
|
3616
|
-
if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
|
|
3617
|
-
return false;
|
|
3618
|
-
}
|
|
3619
|
-
if (objA instanceof Map && objB instanceof Map) {
|
|
3620
|
-
if (objA.size !== objB.size)
|
|
3621
|
-
return false;
|
|
3622
|
-
for (const [key, value] of objA) {
|
|
3623
|
-
if (!Object.is(value, objB.get(key))) {
|
|
3624
|
-
return false;
|
|
3625
|
-
}
|
|
3626
|
-
}
|
|
3627
|
-
return true;
|
|
3628
|
-
}
|
|
3629
|
-
if (objA instanceof Set && objB instanceof Set) {
|
|
3630
|
-
if (objA.size !== objB.size)
|
|
3631
|
-
return false;
|
|
3632
|
-
for (const value of objA) {
|
|
3633
|
-
if (!objB.has(value)) {
|
|
3634
|
-
return false;
|
|
3635
|
-
}
|
|
3636
|
-
}
|
|
3637
|
-
return true;
|
|
3638
|
-
}
|
|
3639
|
-
const keysA = Object.keys(objA);
|
|
3640
|
-
if (keysA.length !== Object.keys(objB).length) {
|
|
3641
|
-
return false;
|
|
3642
|
-
}
|
|
3643
|
-
for (let i = 0; i < keysA.length; i++) {
|
|
3644
|
-
if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !Object.is(objA[keysA[i]], objB[keysA[i]])) {
|
|
3645
|
-
return false;
|
|
3646
|
-
}
|
|
3647
|
-
}
|
|
3648
|
-
return true;
|
|
3649
|
-
}
|
|
3650
|
-
|
|
3651
|
-
var useKeyboardShortcutsStore = create$9(function (set) {
|
|
3652
|
-
return {
|
|
3653
|
-
isOpen: false,
|
|
3654
|
-
setIsOpen: function setIsOpen(arg) {
|
|
3655
|
-
if (typeof arg === "function") {
|
|
3656
|
-
set(function (state) {
|
|
3657
|
-
return {
|
|
3658
|
-
isOpen: arg(state.isOpen)
|
|
3659
|
-
};
|
|
3660
|
-
});
|
|
3661
|
-
} else {
|
|
3662
|
-
set({
|
|
3663
|
-
isOpen: arg
|
|
3664
|
-
});
|
|
3665
|
-
}
|
|
3666
|
-
}
|
|
3667
|
-
};
|
|
3668
|
-
});
|
|
3669
|
-
var useKeyboardShortcutsPaneState = function useKeyboardShortcutsPaneState() {
|
|
3670
|
-
return useKeyboardShortcutsStore(function (_ref) {
|
|
3671
|
-
var isOpen = _ref.isOpen,
|
|
3672
|
-
setIsOpen = _ref.setIsOpen;
|
|
3673
|
-
return [isOpen, setIsOpen];
|
|
3674
|
-
}, shallow);
|
|
3675
|
-
};
|
|
3676
|
-
|
|
3677
|
-
var useOnClickOutside = function useOnClickOutside(ref, handler) {
|
|
3678
|
-
useEffect(function () {
|
|
3679
|
-
var listener = function listener(event) {
|
|
3680
|
-
// Do nothing if clicking ref's element or descendent elements
|
|
3681
|
-
if (!ref.current || ref.current.contains(event.target)) {
|
|
3682
|
-
return;
|
|
3683
|
-
}
|
|
3684
|
-
handler(event);
|
|
3685
|
-
};
|
|
3686
|
-
document.addEventListener("mousedown", listener);
|
|
3687
|
-
document.addEventListener("touchstart", listener);
|
|
3688
|
-
return function () {
|
|
3689
|
-
document.removeEventListener("mousedown", listener);
|
|
3690
|
-
document.removeEventListener("touchstart", listener);
|
|
3691
|
-
};
|
|
3692
|
-
}, [handler]);
|
|
3693
|
-
};
|
|
3694
|
-
|
|
3695
|
-
var usePrevious = function usePrevious(value) {
|
|
3696
|
-
var ref = useRef(value);
|
|
3697
|
-
useEffect(function () {
|
|
3698
|
-
ref.current = value;
|
|
3699
|
-
}, [value]);
|
|
3700
|
-
return ref.current;
|
|
3701
|
-
};
|
|
3702
|
-
|
|
3703
|
-
var useUpdateEffect = function useUpdateEffect(callback) {
|
|
3704
|
-
var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
3705
|
-
var isInitialMount = useRef(true);
|
|
3706
|
-
useEffect(function () {
|
|
3707
|
-
if (isInitialMount.current) {
|
|
3708
|
-
isInitialMount.current = false;
|
|
3709
|
-
return;
|
|
3710
|
-
}
|
|
3711
|
-
callback();
|
|
3712
|
-
}, dependencies);
|
|
3713
|
-
};
|
|
3714
|
-
|
|
3715
|
-
var DEFAULT_STALE_TIME = 60 * 60 * 1000;
|
|
3716
|
-
var DOMAIN_QUERY_KEY = "custom-domain";
|
|
3717
|
-
var ENTITY_COUNT = {
|
|
3718
|
-
singular: 1,
|
|
3719
|
-
plural: 2
|
|
3720
|
-
};
|
|
3721
|
-
|
|
3722
|
-
var HOSTNAME_REGEX = /^(?!-)[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+/;
|
|
3723
|
-
var INITIAL_VALUES$1 = {
|
|
3724
|
-
hostname: ""
|
|
3725
|
-
};
|
|
3726
|
-
var CUSTOM_DOMAIN_VALIDATION_SCHEMA = yup.object().shape({
|
|
3727
|
-
hostname: yup.string().required(t$1("neetoCommons.customDomain.formikValidation.required")).matches(HOSTNAME_REGEX, t$1("neetoCommons.customDomain.formikValidation.valid"))
|
|
3728
|
-
});
|
|
3729
|
-
|
|
3730
|
-
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
3731
|
-
try {
|
|
3732
|
-
var info = gen[key](arg);
|
|
3733
|
-
var value = info.value;
|
|
3734
|
-
} catch (error) {
|
|
3735
|
-
reject(error);
|
|
3736
|
-
return;
|
|
3737
|
-
}
|
|
3738
|
-
if (info.done) {
|
|
3739
|
-
resolve(value);
|
|
3740
|
-
} else {
|
|
3741
|
-
Promise.resolve(value).then(_next, _throw);
|
|
3742
|
-
}
|
|
3743
|
-
}
|
|
3744
|
-
function _asyncToGenerator(fn) {
|
|
3745
|
-
return function () {
|
|
3746
|
-
var self = this,
|
|
3747
|
-
args = arguments;
|
|
3748
|
-
return new Promise(function (resolve, reject) {
|
|
3749
|
-
var gen = fn.apply(self, args);
|
|
3750
|
-
function _next(value) {
|
|
3751
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
3752
|
-
}
|
|
3753
|
-
function _throw(err) {
|
|
3754
|
-
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
3755
|
-
}
|
|
3756
|
-
_next(undefined);
|
|
3757
|
-
});
|
|
3758
|
-
};
|
|
3759
|
-
}
|
|
3760
|
-
|
|
3761
|
-
var regeneratorRuntime$1 = {exports: {}};
|
|
3762
|
-
|
|
3763
|
-
var _typeof = {exports: {}};
|
|
3764
|
-
|
|
3765
|
-
(function (module) {
|
|
3766
|
-
function _typeof(obj) {
|
|
3767
|
-
"@babel/helpers - typeof";
|
|
3768
|
-
|
|
3769
|
-
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
3770
|
-
return typeof obj;
|
|
3771
|
-
} : function (obj) {
|
|
3772
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
3773
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
3774
|
-
}
|
|
3775
|
-
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3776
|
-
} (_typeof));
|
|
3777
|
-
|
|
3778
|
-
(function (module) {
|
|
3779
|
-
var _typeof$1 = _typeof.exports["default"];
|
|
3780
|
-
function _regeneratorRuntime() {
|
|
3781
|
-
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
3782
|
-
return exports;
|
|
3783
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
3784
|
-
var exports = {},
|
|
3785
|
-
Op = Object.prototype,
|
|
3786
|
-
hasOwn = Op.hasOwnProperty,
|
|
3787
|
-
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
3788
|
-
obj[key] = desc.value;
|
|
3789
|
-
},
|
|
3790
|
-
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
3791
|
-
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
3792
|
-
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
3793
|
-
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
3794
|
-
function define(obj, key, value) {
|
|
3795
|
-
return Object.defineProperty(obj, key, {
|
|
3796
|
-
value: value,
|
|
3797
|
-
enumerable: !0,
|
|
3798
|
-
configurable: !0,
|
|
3799
|
-
writable: !0
|
|
3800
|
-
}), obj[key];
|
|
3801
|
-
}
|
|
3802
|
-
try {
|
|
3803
|
-
define({}, "");
|
|
3804
|
-
} catch (err) {
|
|
3805
|
-
define = function define(obj, key, value) {
|
|
3806
|
-
return obj[key] = value;
|
|
3807
|
-
};
|
|
3808
|
-
}
|
|
3809
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
3810
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
3811
|
-
generator = Object.create(protoGenerator.prototype),
|
|
3812
|
-
context = new Context(tryLocsList || []);
|
|
3813
|
-
return defineProperty(generator, "_invoke", {
|
|
3814
|
-
value: makeInvokeMethod(innerFn, self, context)
|
|
3815
|
-
}), generator;
|
|
3816
|
-
}
|
|
3817
|
-
function tryCatch(fn, obj, arg) {
|
|
3818
|
-
try {
|
|
3819
|
-
return {
|
|
3820
|
-
type: "normal",
|
|
3821
|
-
arg: fn.call(obj, arg)
|
|
3822
|
-
};
|
|
3823
|
-
} catch (err) {
|
|
3824
|
-
return {
|
|
3825
|
-
type: "throw",
|
|
3826
|
-
arg: err
|
|
3827
|
-
};
|
|
3828
|
-
}
|
|
3829
|
-
}
|
|
3830
|
-
exports.wrap = wrap;
|
|
3831
|
-
var ContinueSentinel = {};
|
|
3832
|
-
function Generator() {}
|
|
3833
|
-
function GeneratorFunction() {}
|
|
3834
|
-
function GeneratorFunctionPrototype() {}
|
|
3835
|
-
var IteratorPrototype = {};
|
|
3836
|
-
define(IteratorPrototype, iteratorSymbol, function () {
|
|
3837
|
-
return this;
|
|
3838
|
-
});
|
|
3839
|
-
var getProto = Object.getPrototypeOf,
|
|
3840
|
-
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
3841
|
-
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
3842
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
3843
|
-
function defineIteratorMethods(prototype) {
|
|
3844
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
3845
|
-
define(prototype, method, function (arg) {
|
|
3846
|
-
return this._invoke(method, arg);
|
|
3847
|
-
});
|
|
3848
|
-
});
|
|
3849
|
-
}
|
|
3850
|
-
function AsyncIterator(generator, PromiseImpl) {
|
|
3851
|
-
function invoke(method, arg, resolve, reject) {
|
|
3852
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
3853
|
-
if ("throw" !== record.type) {
|
|
3854
|
-
var result = record.arg,
|
|
3855
|
-
value = result.value;
|
|
3856
|
-
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
3857
|
-
invoke("next", value, resolve, reject);
|
|
3858
|
-
}, function (err) {
|
|
3859
|
-
invoke("throw", err, resolve, reject);
|
|
3860
|
-
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
3861
|
-
result.value = unwrapped, resolve(result);
|
|
3862
|
-
}, function (error) {
|
|
3863
|
-
return invoke("throw", error, resolve, reject);
|
|
3864
|
-
});
|
|
3865
|
-
}
|
|
3866
|
-
reject(record.arg);
|
|
3867
|
-
}
|
|
3868
|
-
var previousPromise;
|
|
3869
|
-
defineProperty(this, "_invoke", {
|
|
3870
|
-
value: function value(method, arg) {
|
|
3871
|
-
function callInvokeWithMethodAndArg() {
|
|
3872
|
-
return new PromiseImpl(function (resolve, reject) {
|
|
3873
|
-
invoke(method, arg, resolve, reject);
|
|
3874
|
-
});
|
|
3875
|
-
}
|
|
3876
|
-
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
3877
|
-
}
|
|
3878
|
-
});
|
|
3879
|
-
}
|
|
3880
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
3881
|
-
var state = "suspendedStart";
|
|
3882
|
-
return function (method, arg) {
|
|
3883
|
-
if ("executing" === state) throw new Error("Generator is already running");
|
|
3884
|
-
if ("completed" === state) {
|
|
3885
|
-
if ("throw" === method) throw arg;
|
|
3886
|
-
return doneResult();
|
|
3887
|
-
}
|
|
3888
|
-
for (context.method = method, context.arg = arg;;) {
|
|
3889
|
-
var delegate = context.delegate;
|
|
3890
|
-
if (delegate) {
|
|
3891
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
3892
|
-
if (delegateResult) {
|
|
3893
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
3894
|
-
return delegateResult;
|
|
3895
|
-
}
|
|
3896
|
-
}
|
|
3897
|
-
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
3898
|
-
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
3899
|
-
context.dispatchException(context.arg);
|
|
3900
|
-
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
3901
|
-
state = "executing";
|
|
3902
|
-
var record = tryCatch(innerFn, self, context);
|
|
3903
|
-
if ("normal" === record.type) {
|
|
3904
|
-
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
3905
|
-
return {
|
|
3906
|
-
value: record.arg,
|
|
3907
|
-
done: context.done
|
|
3908
|
-
};
|
|
3909
|
-
}
|
|
3910
|
-
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
3911
|
-
}
|
|
3912
|
-
};
|
|
3913
|
-
}
|
|
3914
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
3915
|
-
var methodName = context.method,
|
|
3916
|
-
method = delegate.iterator[methodName];
|
|
3917
|
-
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
3918
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
3919
|
-
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
3920
|
-
var info = record.arg;
|
|
3921
|
-
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
3922
|
-
}
|
|
3923
|
-
function pushTryEntry(locs) {
|
|
3924
|
-
var entry = {
|
|
3925
|
-
tryLoc: locs[0]
|
|
3926
|
-
};
|
|
3927
|
-
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
3928
|
-
}
|
|
3929
|
-
function resetTryEntry(entry) {
|
|
3930
|
-
var record = entry.completion || {};
|
|
3931
|
-
record.type = "normal", delete record.arg, entry.completion = record;
|
|
3932
|
-
}
|
|
3933
|
-
function Context(tryLocsList) {
|
|
3934
|
-
this.tryEntries = [{
|
|
3935
|
-
tryLoc: "root"
|
|
3936
|
-
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
3937
|
-
}
|
|
3938
|
-
function values(iterable) {
|
|
3939
|
-
if (iterable) {
|
|
3940
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
3941
|
-
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
3942
|
-
if ("function" == typeof iterable.next) return iterable;
|
|
3943
|
-
if (!isNaN(iterable.length)) {
|
|
3944
|
-
var i = -1,
|
|
3945
|
-
next = function next() {
|
|
3946
|
-
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
3947
|
-
return next.value = undefined, next.done = !0, next;
|
|
3948
|
-
};
|
|
3949
|
-
return next.next = next;
|
|
3950
|
-
}
|
|
3951
|
-
}
|
|
3952
|
-
return {
|
|
3953
|
-
next: doneResult
|
|
3954
|
-
};
|
|
3955
|
-
}
|
|
3956
|
-
function doneResult() {
|
|
3957
|
-
return {
|
|
3958
|
-
value: undefined,
|
|
3959
|
-
done: !0
|
|
3960
|
-
};
|
|
3961
|
-
}
|
|
3962
|
-
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
3963
|
-
value: GeneratorFunctionPrototype,
|
|
3964
|
-
configurable: !0
|
|
3965
|
-
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
3966
|
-
value: GeneratorFunction,
|
|
3967
|
-
configurable: !0
|
|
3968
|
-
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
3969
|
-
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
3970
|
-
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
3971
|
-
}, exports.mark = function (genFun) {
|
|
3972
|
-
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
3973
|
-
}, exports.awrap = function (arg) {
|
|
3974
|
-
return {
|
|
3975
|
-
__await: arg
|
|
3976
|
-
};
|
|
3977
|
-
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
3978
|
-
return this;
|
|
3979
|
-
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
3980
|
-
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
3981
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
3982
|
-
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
3983
|
-
return result.done ? result.value : iter.next();
|
|
3984
|
-
});
|
|
3985
|
-
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
3986
|
-
return this;
|
|
3987
|
-
}), define(Gp, "toString", function () {
|
|
3988
|
-
return "[object Generator]";
|
|
3989
|
-
}), exports.keys = function (val) {
|
|
3990
|
-
var object = Object(val),
|
|
3991
|
-
keys = [];
|
|
3992
|
-
for (var key in object) keys.push(key);
|
|
3993
|
-
return keys.reverse(), function next() {
|
|
3994
|
-
for (; keys.length;) {
|
|
3995
|
-
var key = keys.pop();
|
|
3996
|
-
if (key in object) return next.value = key, next.done = !1, next;
|
|
3997
|
-
}
|
|
3998
|
-
return next.done = !0, next;
|
|
3999
|
-
};
|
|
4000
|
-
}, exports.values = values, Context.prototype = {
|
|
4001
|
-
constructor: Context,
|
|
4002
|
-
reset: function reset(skipTempReset) {
|
|
4003
|
-
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
4004
|
-
},
|
|
4005
|
-
stop: function stop() {
|
|
4006
|
-
this.done = !0;
|
|
4007
|
-
var rootRecord = this.tryEntries[0].completion;
|
|
4008
|
-
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
4009
|
-
return this.rval;
|
|
4010
|
-
},
|
|
4011
|
-
dispatchException: function dispatchException(exception) {
|
|
4012
|
-
if (this.done) throw exception;
|
|
4013
|
-
var context = this;
|
|
4014
|
-
function handle(loc, caught) {
|
|
4015
|
-
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
4016
|
-
}
|
|
4017
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
4018
|
-
var entry = this.tryEntries[i],
|
|
4019
|
-
record = entry.completion;
|
|
4020
|
-
if ("root" === entry.tryLoc) return handle("end");
|
|
4021
|
-
if (entry.tryLoc <= this.prev) {
|
|
4022
|
-
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
4023
|
-
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
4024
|
-
if (hasCatch && hasFinally) {
|
|
4025
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
4026
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
4027
|
-
} else if (hasCatch) {
|
|
4028
|
-
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
4029
|
-
} else {
|
|
4030
|
-
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
4031
|
-
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
4032
|
-
}
|
|
4033
|
-
}
|
|
4034
|
-
}
|
|
4035
|
-
},
|
|
4036
|
-
abrupt: function abrupt(type, arg) {
|
|
4037
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
4038
|
-
var entry = this.tryEntries[i];
|
|
4039
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
4040
|
-
var finallyEntry = entry;
|
|
4041
|
-
break;
|
|
4042
|
-
}
|
|
4043
|
-
}
|
|
4044
|
-
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
4045
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
4046
|
-
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
4047
|
-
},
|
|
4048
|
-
complete: function complete(record, afterLoc) {
|
|
4049
|
-
if ("throw" === record.type) throw record.arg;
|
|
4050
|
-
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
4051
|
-
},
|
|
4052
|
-
finish: function finish(finallyLoc) {
|
|
4053
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
4054
|
-
var entry = this.tryEntries[i];
|
|
4055
|
-
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
4056
|
-
}
|
|
4057
|
-
},
|
|
4058
|
-
"catch": function _catch(tryLoc) {
|
|
4059
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
4060
|
-
var entry = this.tryEntries[i];
|
|
4061
|
-
if (entry.tryLoc === tryLoc) {
|
|
4062
|
-
var record = entry.completion;
|
|
4063
|
-
if ("throw" === record.type) {
|
|
4064
|
-
var thrown = record.arg;
|
|
4065
|
-
resetTryEntry(entry);
|
|
4066
|
-
}
|
|
4067
|
-
return thrown;
|
|
4068
|
-
}
|
|
4069
|
-
}
|
|
4070
|
-
throw new Error("illegal catch attempt");
|
|
4071
|
-
},
|
|
4072
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
4073
|
-
return this.delegate = {
|
|
4074
|
-
iterator: values(iterable),
|
|
4075
|
-
resultName: resultName,
|
|
4076
|
-
nextLoc: nextLoc
|
|
4077
|
-
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
4078
|
-
}
|
|
4079
|
-
}, exports;
|
|
4080
|
-
}
|
|
4081
|
-
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
4082
|
-
} (regeneratorRuntime$1));
|
|
4083
|
-
|
|
4084
|
-
// TODO(Babel 8): Remove this file.
|
|
4085
|
-
|
|
4086
|
-
var runtime = regeneratorRuntime$1.exports();
|
|
4087
|
-
var regenerator = runtime;
|
|
4088
|
-
|
|
4089
|
-
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
4090
|
-
try {
|
|
4091
|
-
regeneratorRuntime = runtime;
|
|
4092
|
-
} catch (accidentalStrictMode) {
|
|
4093
|
-
if (typeof globalThis === "object") {
|
|
4094
|
-
globalThis.regeneratorRuntime = runtime;
|
|
4095
|
-
} else {
|
|
4096
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
4097
|
-
}
|
|
4098
|
-
}
|
|
4099
|
-
|
|
4100
|
-
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
4101
|
-
var shams = function hasSymbols() {
|
|
4102
|
-
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
4103
|
-
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
4104
|
-
|
|
4105
|
-
var obj = {};
|
|
4106
|
-
var sym = Symbol('test');
|
|
4107
|
-
var symObj = Object(sym);
|
|
4108
|
-
if (typeof sym === 'string') { return false; }
|
|
4109
|
-
|
|
4110
|
-
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
4111
|
-
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
4112
|
-
|
|
4113
|
-
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
4114
|
-
// if (sym instanceof Symbol) { return false; }
|
|
4115
|
-
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
4116
|
-
// if (!(symObj instanceof Symbol)) { return false; }
|
|
4117
|
-
|
|
4118
|
-
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
4119
|
-
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
4120
|
-
|
|
4121
|
-
var symVal = 42;
|
|
4122
|
-
obj[sym] = symVal;
|
|
4123
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
4124
|
-
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
4125
|
-
|
|
4126
|
-
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
4127
|
-
|
|
4128
|
-
var syms = Object.getOwnPropertySymbols(obj);
|
|
4129
|
-
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
4130
|
-
|
|
4131
|
-
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
4132
|
-
|
|
4133
|
-
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
4134
|
-
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
4135
|
-
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
4136
|
-
}
|
|
4137
|
-
|
|
4138
|
-
return true;
|
|
4139
|
-
};
|
|
4140
|
-
|
|
4141
|
-
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
4142
|
-
var hasSymbolSham = shams;
|
|
4143
|
-
|
|
4144
|
-
var hasSymbols$1 = function hasNativeSymbols() {
|
|
4145
|
-
if (typeof origSymbol !== 'function') { return false; }
|
|
4146
|
-
if (typeof Symbol !== 'function') { return false; }
|
|
4147
|
-
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
4148
|
-
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
4149
|
-
|
|
4150
|
-
return hasSymbolSham();
|
|
4151
|
-
};
|
|
4152
|
-
|
|
4153
|
-
/* eslint no-invalid-this: 1 */
|
|
4154
|
-
|
|
4155
|
-
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
4156
|
-
var slice = Array.prototype.slice;
|
|
4157
|
-
var toStr$1 = Object.prototype.toString;
|
|
4158
|
-
var funcType = '[object Function]';
|
|
4159
|
-
|
|
4160
|
-
var implementation$1 = function bind(that) {
|
|
4161
|
-
var target = this;
|
|
4162
|
-
if (typeof target !== 'function' || toStr$1.call(target) !== funcType) {
|
|
4163
|
-
throw new TypeError(ERROR_MESSAGE + target);
|
|
4164
|
-
}
|
|
4165
|
-
var args = slice.call(arguments, 1);
|
|
4166
|
-
|
|
4167
|
-
var bound;
|
|
4168
|
-
var binder = function () {
|
|
4169
|
-
if (this instanceof bound) {
|
|
4170
|
-
var result = target.apply(
|
|
4171
|
-
this,
|
|
4172
|
-
args.concat(slice.call(arguments))
|
|
4173
|
-
);
|
|
4174
|
-
if (Object(result) === result) {
|
|
4175
|
-
return result;
|
|
4176
|
-
}
|
|
4177
|
-
return this;
|
|
4178
|
-
} else {
|
|
4179
|
-
return target.apply(
|
|
4180
|
-
that,
|
|
4181
|
-
args.concat(slice.call(arguments))
|
|
4182
|
-
);
|
|
4183
|
-
}
|
|
4184
|
-
};
|
|
4185
|
-
|
|
4186
|
-
var boundLength = Math.max(0, target.length - args.length);
|
|
4187
|
-
var boundArgs = [];
|
|
4188
|
-
for (var i = 0; i < boundLength; i++) {
|
|
4189
|
-
boundArgs.push('$' + i);
|
|
4190
|
-
}
|
|
4191
|
-
|
|
4192
|
-
bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
4193
|
-
|
|
4194
|
-
if (target.prototype) {
|
|
4195
|
-
var Empty = function Empty() {};
|
|
4196
|
-
Empty.prototype = target.prototype;
|
|
4197
|
-
bound.prototype = new Empty();
|
|
4198
|
-
Empty.prototype = null;
|
|
4199
|
-
}
|
|
4200
|
-
|
|
4201
|
-
return bound;
|
|
4202
|
-
};
|
|
4203
|
-
|
|
4204
|
-
var implementation = implementation$1;
|
|
4205
|
-
|
|
4206
|
-
var functionBind = Function.prototype.bind || implementation;
|
|
4207
|
-
|
|
4208
|
-
var bind$1 = functionBind;
|
|
4209
|
-
|
|
4210
|
-
var src = bind$1.call(Function.call, Object.prototype.hasOwnProperty);
|
|
4211
|
-
|
|
4212
|
-
var undefined$1;
|
|
4213
|
-
|
|
4214
|
-
var $SyntaxError = SyntaxError;
|
|
4215
|
-
var $Function = Function;
|
|
4216
|
-
var $TypeError$1 = TypeError;
|
|
4217
|
-
|
|
4218
|
-
// eslint-disable-next-line consistent-return
|
|
4219
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
4220
|
-
try {
|
|
4221
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
4222
|
-
} catch (e) {}
|
|
4223
|
-
};
|
|
4224
|
-
|
|
4225
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
4226
|
-
if ($gOPD) {
|
|
4227
|
-
try {
|
|
4228
|
-
$gOPD({}, '');
|
|
4229
|
-
} catch (e) {
|
|
4230
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
4231
|
-
}
|
|
4232
|
-
}
|
|
4233
|
-
|
|
4234
|
-
var throwTypeError = function () {
|
|
4235
|
-
throw new $TypeError$1();
|
|
4236
|
-
};
|
|
4237
|
-
var ThrowTypeError = $gOPD
|
|
4238
|
-
? (function () {
|
|
4239
|
-
try {
|
|
4240
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
4241
|
-
arguments.callee; // IE 8 does not throw here
|
|
4242
|
-
return throwTypeError;
|
|
4243
|
-
} catch (calleeThrows) {
|
|
4244
|
-
try {
|
|
4245
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
4246
|
-
return $gOPD(arguments, 'callee').get;
|
|
4247
|
-
} catch (gOPDthrows) {
|
|
4248
|
-
return throwTypeError;
|
|
4249
|
-
}
|
|
4250
|
-
}
|
|
4251
|
-
}())
|
|
4252
|
-
: throwTypeError;
|
|
4253
|
-
|
|
4254
|
-
var hasSymbols = hasSymbols$1();
|
|
4255
|
-
|
|
4256
|
-
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
4257
|
-
|
|
4258
|
-
var needsEval = {};
|
|
4259
|
-
|
|
4260
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined$1 : getProto(Uint8Array);
|
|
4261
|
-
|
|
4262
|
-
var INTRINSICS = {
|
|
4263
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
|
|
4264
|
-
'%Array%': Array,
|
|
4265
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
|
|
4266
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined$1,
|
|
4267
|
-
'%AsyncFromSyncIteratorPrototype%': undefined$1,
|
|
4268
|
-
'%AsyncFunction%': needsEval,
|
|
4269
|
-
'%AsyncGenerator%': needsEval,
|
|
4270
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
4271
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
4272
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined$1 : Atomics,
|
|
4273
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined$1 : BigInt,
|
|
4274
|
-
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined$1 : BigInt64Array,
|
|
4275
|
-
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined$1 : BigUint64Array,
|
|
4276
|
-
'%Boolean%': Boolean,
|
|
4277
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined$1 : DataView,
|
|
4278
|
-
'%Date%': Date,
|
|
4279
|
-
'%decodeURI%': decodeURI,
|
|
4280
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
4281
|
-
'%encodeURI%': encodeURI,
|
|
4282
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
4283
|
-
'%Error%': Error,
|
|
4284
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
4285
|
-
'%EvalError%': EvalError,
|
|
4286
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
|
|
4287
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
|
|
4288
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
|
|
4289
|
-
'%Function%': $Function,
|
|
4290
|
-
'%GeneratorFunction%': needsEval,
|
|
4291
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined$1 : Int8Array,
|
|
4292
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined$1 : Int16Array,
|
|
4293
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
|
|
4294
|
-
'%isFinite%': isFinite,
|
|
4295
|
-
'%isNaN%': isNaN,
|
|
4296
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
|
|
4297
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
|
|
4298
|
-
'%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
|
|
4299
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
|
|
4300
|
-
'%Math%': Math,
|
|
4301
|
-
'%Number%': Number,
|
|
4302
|
-
'%Object%': Object,
|
|
4303
|
-
'%parseFloat%': parseFloat,
|
|
4304
|
-
'%parseInt%': parseInt,
|
|
4305
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
|
|
4306
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
|
|
4307
|
-
'%RangeError%': RangeError,
|
|
4308
|
-
'%ReferenceError%': ReferenceError,
|
|
4309
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
|
|
4310
|
-
'%RegExp%': RegExp,
|
|
4311
|
-
'%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
|
|
4312
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
|
|
4313
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
|
|
4314
|
-
'%String%': String,
|
|
4315
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined$1,
|
|
4316
|
-
'%Symbol%': hasSymbols ? Symbol : undefined$1,
|
|
4317
|
-
'%SyntaxError%': $SyntaxError,
|
|
4318
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
4319
|
-
'%TypedArray%': TypedArray,
|
|
4320
|
-
'%TypeError%': $TypeError$1,
|
|
4321
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
|
|
4322
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
|
|
4323
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
|
|
4324
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
|
|
4325
|
-
'%URIError%': URIError,
|
|
4326
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
|
|
4327
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
|
|
4328
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
|
|
4329
|
-
};
|
|
4330
|
-
|
|
4331
|
-
try {
|
|
4332
|
-
null.error; // eslint-disable-line no-unused-expressions
|
|
4333
|
-
} catch (e) {
|
|
4334
|
-
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
4335
|
-
var errorProto = getProto(getProto(e));
|
|
4336
|
-
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
4337
|
-
}
|
|
4338
|
-
|
|
4339
|
-
var doEval = function doEval(name) {
|
|
4340
|
-
var value;
|
|
4341
|
-
if (name === '%AsyncFunction%') {
|
|
4342
|
-
value = getEvalledConstructor('async function () {}');
|
|
4343
|
-
} else if (name === '%GeneratorFunction%') {
|
|
4344
|
-
value = getEvalledConstructor('function* () {}');
|
|
4345
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
4346
|
-
value = getEvalledConstructor('async function* () {}');
|
|
4347
|
-
} else if (name === '%AsyncGenerator%') {
|
|
4348
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
4349
|
-
if (fn) {
|
|
4350
|
-
value = fn.prototype;
|
|
4351
|
-
}
|
|
4352
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
4353
|
-
var gen = doEval('%AsyncGenerator%');
|
|
4354
|
-
if (gen) {
|
|
4355
|
-
value = getProto(gen.prototype);
|
|
4356
|
-
}
|
|
4357
|
-
}
|
|
4358
|
-
|
|
4359
|
-
INTRINSICS[name] = value;
|
|
4360
|
-
|
|
4361
|
-
return value;
|
|
4362
|
-
};
|
|
4363
|
-
|
|
4364
|
-
var LEGACY_ALIASES = {
|
|
4365
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
4366
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
4367
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
4368
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
4369
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
4370
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
4371
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
4372
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
4373
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
4374
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
4375
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
4376
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
4377
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
4378
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
4379
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
4380
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
4381
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
4382
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
4383
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
4384
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
4385
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
4386
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
4387
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
4388
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
4389
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
4390
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
4391
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
4392
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
4393
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
4394
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
4395
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
4396
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
4397
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
4398
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
4399
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
4400
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
4401
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
4402
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
4403
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
4404
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
4405
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
4406
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
4407
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
4408
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
4409
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
4410
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
4411
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
4412
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
4413
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
4414
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
4415
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
4416
|
-
};
|
|
4417
|
-
|
|
4418
|
-
var bind = functionBind;
|
|
4419
|
-
var hasOwn$1 = src;
|
|
4420
|
-
var $concat$1 = bind.call(Function.call, Array.prototype.concat);
|
|
4421
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
4422
|
-
var $replace$1 = bind.call(Function.call, String.prototype.replace);
|
|
4423
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
4424
|
-
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
4425
|
-
|
|
4426
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
4427
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
4428
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
4429
|
-
var stringToPath = function stringToPath(string) {
|
|
4430
|
-
var first = $strSlice(string, 0, 1);
|
|
4431
|
-
var last = $strSlice(string, -1);
|
|
4432
|
-
if (first === '%' && last !== '%') {
|
|
4433
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
4434
|
-
} else if (last === '%' && first !== '%') {
|
|
4435
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
4436
|
-
}
|
|
4437
|
-
var result = [];
|
|
4438
|
-
$replace$1(string, rePropName, function (match, number, quote, subString) {
|
|
4439
|
-
result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
|
|
4440
|
-
});
|
|
4441
|
-
return result;
|
|
4442
|
-
};
|
|
4443
|
-
/* end adaptation */
|
|
4444
|
-
|
|
4445
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
4446
|
-
var intrinsicName = name;
|
|
4447
|
-
var alias;
|
|
4448
|
-
if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
|
|
4449
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
4450
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
4451
|
-
}
|
|
4452
|
-
|
|
4453
|
-
if (hasOwn$1(INTRINSICS, intrinsicName)) {
|
|
4454
|
-
var value = INTRINSICS[intrinsicName];
|
|
4455
|
-
if (value === needsEval) {
|
|
4456
|
-
value = doEval(intrinsicName);
|
|
4457
|
-
}
|
|
4458
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
4459
|
-
throw new $TypeError$1('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
4460
|
-
}
|
|
4461
|
-
|
|
4462
|
-
return {
|
|
4463
|
-
alias: alias,
|
|
4464
|
-
name: intrinsicName,
|
|
4465
|
-
value: value
|
|
4466
|
-
};
|
|
4467
|
-
}
|
|
4468
|
-
|
|
4469
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
4470
|
-
};
|
|
4471
|
-
|
|
4472
|
-
var getIntrinsic = function GetIntrinsic(name, allowMissing) {
|
|
4473
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
4474
|
-
throw new $TypeError$1('intrinsic name must be a non-empty string');
|
|
4475
|
-
}
|
|
4476
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
4477
|
-
throw new $TypeError$1('"allowMissing" argument must be a boolean');
|
|
4478
|
-
}
|
|
4479
|
-
|
|
4480
|
-
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
4481
|
-
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
4482
|
-
}
|
|
4483
|
-
var parts = stringToPath(name);
|
|
4484
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
4485
|
-
|
|
4486
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
4487
|
-
var intrinsicRealName = intrinsic.name;
|
|
4488
|
-
var value = intrinsic.value;
|
|
4489
|
-
var skipFurtherCaching = false;
|
|
4490
|
-
|
|
4491
|
-
var alias = intrinsic.alias;
|
|
4492
|
-
if (alias) {
|
|
4493
|
-
intrinsicBaseName = alias[0];
|
|
4494
|
-
$spliceApply(parts, $concat$1([0, 1], alias));
|
|
4495
|
-
}
|
|
4496
|
-
|
|
4497
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
4498
|
-
var part = parts[i];
|
|
4499
|
-
var first = $strSlice(part, 0, 1);
|
|
4500
|
-
var last = $strSlice(part, -1);
|
|
4501
|
-
if (
|
|
4502
|
-
(
|
|
4503
|
-
(first === '"' || first === "'" || first === '`')
|
|
4504
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
4505
|
-
)
|
|
4506
|
-
&& first !== last
|
|
4507
|
-
) {
|
|
4508
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
4509
|
-
}
|
|
4510
|
-
if (part === 'constructor' || !isOwn) {
|
|
4511
|
-
skipFurtherCaching = true;
|
|
4512
|
-
}
|
|
4513
|
-
|
|
4514
|
-
intrinsicBaseName += '.' + part;
|
|
4515
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
4516
|
-
|
|
4517
|
-
if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
|
|
4518
|
-
value = INTRINSICS[intrinsicRealName];
|
|
4519
|
-
} else if (value != null) {
|
|
4520
|
-
if (!(part in value)) {
|
|
4521
|
-
if (!allowMissing) {
|
|
4522
|
-
throw new $TypeError$1('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
4523
|
-
}
|
|
4524
|
-
return void undefined$1;
|
|
4525
|
-
}
|
|
4526
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
4527
|
-
var desc = $gOPD(value, part);
|
|
4528
|
-
isOwn = !!desc;
|
|
4529
|
-
|
|
4530
|
-
// By convention, when a data property is converted to an accessor
|
|
4531
|
-
// property to emulate a data property that does not suffer from
|
|
4532
|
-
// the override mistake, that accessor's getter is marked with
|
|
4533
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
4534
|
-
// uphold the illusion by pretending to see that original data
|
|
4535
|
-
// property, i.e., returning the value rather than the getter
|
|
4536
|
-
// itself.
|
|
4537
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
4538
|
-
value = desc.get;
|
|
4539
|
-
} else {
|
|
4540
|
-
value = value[part];
|
|
4541
|
-
}
|
|
4542
|
-
} else {
|
|
4543
|
-
isOwn = hasOwn$1(value, part);
|
|
4544
|
-
value = value[part];
|
|
4545
|
-
}
|
|
4546
|
-
|
|
4547
|
-
if (isOwn && !skipFurtherCaching) {
|
|
4548
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
4549
|
-
}
|
|
4550
|
-
}
|
|
4551
|
-
}
|
|
4552
|
-
return value;
|
|
4553
|
-
};
|
|
4554
|
-
|
|
4555
|
-
var callBind$1 = {exports: {}};
|
|
4556
|
-
|
|
4557
|
-
(function (module) {
|
|
4558
|
-
|
|
4559
|
-
var bind = functionBind;
|
|
4560
|
-
var GetIntrinsic = getIntrinsic;
|
|
4561
|
-
|
|
4562
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
4563
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
4564
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
4565
|
-
|
|
4566
|
-
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
4567
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
4568
|
-
var $max = GetIntrinsic('%Math.max%');
|
|
4569
|
-
|
|
4570
|
-
if ($defineProperty) {
|
|
4571
|
-
try {
|
|
4572
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
4573
|
-
} catch (e) {
|
|
4574
|
-
// IE 8 has a broken defineProperty
|
|
4575
|
-
$defineProperty = null;
|
|
4576
|
-
}
|
|
4577
|
-
}
|
|
4578
|
-
|
|
4579
|
-
module.exports = function callBind(originalFunction) {
|
|
4580
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
4581
|
-
if ($gOPD && $defineProperty) {
|
|
4582
|
-
var desc = $gOPD(func, 'length');
|
|
4583
|
-
if (desc.configurable) {
|
|
4584
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
4585
|
-
$defineProperty(
|
|
4586
|
-
func,
|
|
4587
|
-
'length',
|
|
4588
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
4589
|
-
);
|
|
4590
|
-
}
|
|
4591
|
-
}
|
|
4592
|
-
return func;
|
|
4593
|
-
};
|
|
4594
|
-
|
|
4595
|
-
var applyBind = function applyBind() {
|
|
4596
|
-
return $reflectApply(bind, $apply, arguments);
|
|
4597
|
-
};
|
|
4598
|
-
|
|
4599
|
-
if ($defineProperty) {
|
|
4600
|
-
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
4601
|
-
} else {
|
|
4602
|
-
module.exports.apply = applyBind;
|
|
4603
|
-
}
|
|
4604
|
-
} (callBind$1));
|
|
4605
|
-
|
|
4606
|
-
var GetIntrinsic$1 = getIntrinsic;
|
|
4607
|
-
|
|
4608
|
-
var callBind = callBind$1.exports;
|
|
4609
|
-
|
|
4610
|
-
var $indexOf = callBind(GetIntrinsic$1('String.prototype.indexOf'));
|
|
4611
|
-
|
|
4612
|
-
var callBound$1 = function callBoundIntrinsic(name, allowMissing) {
|
|
4613
|
-
var intrinsic = GetIntrinsic$1(name, !!allowMissing);
|
|
4614
|
-
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
4615
|
-
return callBind(intrinsic);
|
|
4616
|
-
}
|
|
4617
|
-
return intrinsic;
|
|
4618
|
-
};
|
|
4619
|
-
|
|
4620
|
-
var util_inspect = require$$0$2.inspect;
|
|
4621
|
-
|
|
4622
|
-
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
4623
|
-
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
4624
|
-
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
4625
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
4626
|
-
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
4627
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
4628
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
4629
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
4630
|
-
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
4631
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
4632
|
-
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
4633
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
4634
|
-
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
4635
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
4636
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
4637
|
-
var objectToString = Object.prototype.toString;
|
|
4638
|
-
var functionToString = Function.prototype.toString;
|
|
4639
|
-
var $match = String.prototype.match;
|
|
4640
|
-
var $slice = String.prototype.slice;
|
|
4641
|
-
var $replace = String.prototype.replace;
|
|
4642
|
-
var $toUpperCase = String.prototype.toUpperCase;
|
|
4643
|
-
var $toLowerCase = String.prototype.toLowerCase;
|
|
4644
|
-
var $test = RegExp.prototype.test;
|
|
4645
|
-
var $concat = Array.prototype.concat;
|
|
4646
|
-
var $join = Array.prototype.join;
|
|
4647
|
-
var $arrSlice = Array.prototype.slice;
|
|
4648
|
-
var $floor = Math.floor;
|
|
4649
|
-
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
4650
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
4651
|
-
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
4652
|
-
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
4653
|
-
// ie, `has-tostringtag/shams
|
|
4654
|
-
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
4655
|
-
? Symbol.toStringTag
|
|
4656
|
-
: null;
|
|
4657
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
4658
|
-
|
|
4659
|
-
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
4660
|
-
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
4661
|
-
? function (O) {
|
|
4662
|
-
return O.__proto__; // eslint-disable-line no-proto
|
|
4663
|
-
}
|
|
4664
|
-
: null
|
|
4665
|
-
);
|
|
4666
|
-
|
|
4667
|
-
function addNumericSeparator(num, str) {
|
|
4668
|
-
if (
|
|
4669
|
-
num === Infinity
|
|
4670
|
-
|| num === -Infinity
|
|
4671
|
-
|| num !== num
|
|
4672
|
-
|| (num && num > -1000 && num < 1000)
|
|
4673
|
-
|| $test.call(/e/, str)
|
|
4674
|
-
) {
|
|
4675
|
-
return str;
|
|
4676
|
-
}
|
|
4677
|
-
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
4678
|
-
if (typeof num === 'number') {
|
|
4679
|
-
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
4680
|
-
if (int !== num) {
|
|
4681
|
-
var intStr = String(int);
|
|
4682
|
-
var dec = $slice.call(str, intStr.length + 1);
|
|
4683
|
-
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
4684
|
-
}
|
|
4685
|
-
}
|
|
4686
|
-
return $replace.call(str, sepRegex, '$&_');
|
|
4687
|
-
}
|
|
4688
|
-
|
|
4689
|
-
var utilInspect = util_inspect;
|
|
4690
|
-
var inspectCustom = utilInspect.custom;
|
|
4691
|
-
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
4692
|
-
|
|
4693
|
-
var objectInspect = function inspect_(obj, options, depth, seen) {
|
|
4694
|
-
var opts = options || {};
|
|
4695
|
-
|
|
4696
|
-
if (has$3(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
4697
|
-
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
4698
|
-
}
|
|
4699
|
-
if (
|
|
4700
|
-
has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
4701
|
-
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
4702
|
-
: opts.maxStringLength !== null
|
|
4703
|
-
)
|
|
4704
|
-
) {
|
|
4705
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
4706
|
-
}
|
|
4707
|
-
var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
|
|
4708
|
-
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
4709
|
-
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
4710
|
-
}
|
|
4711
|
-
|
|
4712
|
-
if (
|
|
4713
|
-
has$3(opts, 'indent')
|
|
4714
|
-
&& opts.indent !== null
|
|
4715
|
-
&& opts.indent !== '\t'
|
|
4716
|
-
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
4717
|
-
) {
|
|
4718
|
-
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
4719
|
-
}
|
|
4720
|
-
if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
4721
|
-
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
4722
|
-
}
|
|
4723
|
-
var numericSeparator = opts.numericSeparator;
|
|
4724
|
-
|
|
4725
|
-
if (typeof obj === 'undefined') {
|
|
4726
|
-
return 'undefined';
|
|
4727
|
-
}
|
|
4728
|
-
if (obj === null) {
|
|
4729
|
-
return 'null';
|
|
4730
|
-
}
|
|
4731
|
-
if (typeof obj === 'boolean') {
|
|
4732
|
-
return obj ? 'true' : 'false';
|
|
4733
|
-
}
|
|
4734
|
-
|
|
4735
|
-
if (typeof obj === 'string') {
|
|
4736
|
-
return inspectString(obj, opts);
|
|
4737
|
-
}
|
|
4738
|
-
if (typeof obj === 'number') {
|
|
4739
|
-
if (obj === 0) {
|
|
4740
|
-
return Infinity / obj > 0 ? '0' : '-0';
|
|
4741
|
-
}
|
|
4742
|
-
var str = String(obj);
|
|
4743
|
-
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
4744
|
-
}
|
|
4745
|
-
if (typeof obj === 'bigint') {
|
|
4746
|
-
var bigIntStr = String(obj) + 'n';
|
|
4747
|
-
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
4748
|
-
}
|
|
4749
|
-
|
|
4750
|
-
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
4751
|
-
if (typeof depth === 'undefined') { depth = 0; }
|
|
4752
|
-
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
4753
|
-
return isArray$3(obj) ? '[Array]' : '[Object]';
|
|
4754
|
-
}
|
|
4755
|
-
|
|
4756
|
-
var indent = getIndent(opts, depth);
|
|
4757
|
-
|
|
4758
|
-
if (typeof seen === 'undefined') {
|
|
4759
|
-
seen = [];
|
|
4760
|
-
} else if (indexOf(seen, obj) >= 0) {
|
|
4761
|
-
return '[Circular]';
|
|
4762
|
-
}
|
|
4763
|
-
|
|
4764
|
-
function inspect(value, from, noIndent) {
|
|
4765
|
-
if (from) {
|
|
4766
|
-
seen = $arrSlice.call(seen);
|
|
4767
|
-
seen.push(from);
|
|
4768
|
-
}
|
|
4769
|
-
if (noIndent) {
|
|
4770
|
-
var newOpts = {
|
|
4771
|
-
depth: opts.depth
|
|
4772
|
-
};
|
|
4773
|
-
if (has$3(opts, 'quoteStyle')) {
|
|
4774
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
4775
|
-
}
|
|
4776
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
4777
|
-
}
|
|
4778
|
-
return inspect_(value, opts, depth + 1, seen);
|
|
4779
|
-
}
|
|
4780
|
-
|
|
4781
|
-
if (typeof obj === 'function' && !isRegExp$1(obj)) { // in older engines, regexes are callable
|
|
4782
|
-
var name = nameOf(obj);
|
|
4783
|
-
var keys = arrObjKeys(obj, inspect);
|
|
4784
|
-
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
4785
|
-
}
|
|
4786
|
-
if (isSymbol(obj)) {
|
|
4787
|
-
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
4788
|
-
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
4789
|
-
}
|
|
4790
|
-
if (isElement(obj)) {
|
|
4791
|
-
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
4792
|
-
var attrs = obj.attributes || [];
|
|
4793
|
-
for (var i = 0; i < attrs.length; i++) {
|
|
4794
|
-
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
4795
|
-
}
|
|
4796
|
-
s += '>';
|
|
4797
|
-
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
4798
|
-
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
4799
|
-
return s;
|
|
4800
|
-
}
|
|
4801
|
-
if (isArray$3(obj)) {
|
|
4802
|
-
if (obj.length === 0) { return '[]'; }
|
|
4803
|
-
var xs = arrObjKeys(obj, inspect);
|
|
4804
|
-
if (indent && !singleLineValues(xs)) {
|
|
4805
|
-
return '[' + indentedJoin(xs, indent) + ']';
|
|
4806
|
-
}
|
|
4807
|
-
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
4808
|
-
}
|
|
4809
|
-
if (isError(obj)) {
|
|
4810
|
-
var parts = arrObjKeys(obj, inspect);
|
|
4811
|
-
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
4812
|
-
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
4813
|
-
}
|
|
4814
|
-
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
4815
|
-
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
4816
|
-
}
|
|
4817
|
-
if (typeof obj === 'object' && customInspect) {
|
|
4818
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
4819
|
-
return utilInspect(obj, { depth: maxDepth - depth });
|
|
4820
|
-
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
4821
|
-
return obj.inspect();
|
|
4822
|
-
}
|
|
4823
|
-
}
|
|
4824
|
-
if (isMap(obj)) {
|
|
4825
|
-
var mapParts = [];
|
|
4826
|
-
if (mapForEach) {
|
|
4827
|
-
mapForEach.call(obj, function (value, key) {
|
|
4828
|
-
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
4829
|
-
});
|
|
4830
|
-
}
|
|
4831
|
-
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
4832
|
-
}
|
|
4833
|
-
if (isSet(obj)) {
|
|
4834
|
-
var setParts = [];
|
|
4835
|
-
if (setForEach) {
|
|
4836
|
-
setForEach.call(obj, function (value) {
|
|
4837
|
-
setParts.push(inspect(value, obj));
|
|
4838
|
-
});
|
|
4839
|
-
}
|
|
4840
|
-
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
4841
|
-
}
|
|
4842
|
-
if (isWeakMap(obj)) {
|
|
4843
|
-
return weakCollectionOf('WeakMap');
|
|
4844
|
-
}
|
|
4845
|
-
if (isWeakSet(obj)) {
|
|
4846
|
-
return weakCollectionOf('WeakSet');
|
|
4847
|
-
}
|
|
4848
|
-
if (isWeakRef(obj)) {
|
|
4849
|
-
return weakCollectionOf('WeakRef');
|
|
4850
|
-
}
|
|
4851
|
-
if (isNumber(obj)) {
|
|
4852
|
-
return markBoxed(inspect(Number(obj)));
|
|
4853
|
-
}
|
|
4854
|
-
if (isBigInt(obj)) {
|
|
4855
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
4856
|
-
}
|
|
4857
|
-
if (isBoolean(obj)) {
|
|
4858
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
4859
|
-
}
|
|
4860
|
-
if (isString(obj)) {
|
|
4861
|
-
return markBoxed(inspect(String(obj)));
|
|
4862
|
-
}
|
|
4863
|
-
if (!isDate(obj) && !isRegExp$1(obj)) {
|
|
4864
|
-
var ys = arrObjKeys(obj, inspect);
|
|
4865
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
4866
|
-
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
4867
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
4868
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
4869
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
4870
|
-
if (ys.length === 0) { return tag + '{}'; }
|
|
4871
|
-
if (indent) {
|
|
4872
|
-
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
4873
|
-
}
|
|
4874
|
-
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
4875
|
-
}
|
|
4876
|
-
return String(obj);
|
|
4877
|
-
};
|
|
4878
|
-
|
|
4879
|
-
function wrapQuotes(s, defaultStyle, opts) {
|
|
4880
|
-
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
4881
|
-
return quoteChar + s + quoteChar;
|
|
4882
|
-
}
|
|
4883
|
-
|
|
4884
|
-
function quote(s) {
|
|
4885
|
-
return $replace.call(String(s), /"/g, '"');
|
|
4886
|
-
}
|
|
4887
|
-
|
|
4888
|
-
function isArray$3(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4889
|
-
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4890
|
-
function isRegExp$1(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4891
|
-
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4892
|
-
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4893
|
-
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4894
|
-
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4895
|
-
|
|
4896
|
-
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
4897
|
-
function isSymbol(obj) {
|
|
4898
|
-
if (hasShammedSymbols) {
|
|
4899
|
-
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
4900
|
-
}
|
|
4901
|
-
if (typeof obj === 'symbol') {
|
|
4902
|
-
return true;
|
|
4903
|
-
}
|
|
4904
|
-
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
4905
|
-
return false;
|
|
4906
|
-
}
|
|
4907
|
-
try {
|
|
4908
|
-
symToString.call(obj);
|
|
4909
|
-
return true;
|
|
4910
|
-
} catch (e) {}
|
|
4911
|
-
return false;
|
|
4912
|
-
}
|
|
4913
|
-
|
|
4914
|
-
function isBigInt(obj) {
|
|
4915
|
-
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
4916
|
-
return false;
|
|
4917
|
-
}
|
|
4918
|
-
try {
|
|
4919
|
-
bigIntValueOf.call(obj);
|
|
4920
|
-
return true;
|
|
4921
|
-
} catch (e) {}
|
|
4922
|
-
return false;
|
|
4923
|
-
}
|
|
4924
|
-
|
|
4925
|
-
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
4926
|
-
function has$3(obj, key) {
|
|
4927
|
-
return hasOwn.call(obj, key);
|
|
4928
|
-
}
|
|
4929
|
-
|
|
4930
|
-
function toStr(obj) {
|
|
4931
|
-
return objectToString.call(obj);
|
|
4932
|
-
}
|
|
4933
|
-
|
|
4934
|
-
function nameOf(f) {
|
|
4935
|
-
if (f.name) { return f.name; }
|
|
4936
|
-
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
4937
|
-
if (m) { return m[1]; }
|
|
4938
|
-
return null;
|
|
4939
|
-
}
|
|
4940
|
-
|
|
4941
|
-
function indexOf(xs, x) {
|
|
4942
|
-
if (xs.indexOf) { return xs.indexOf(x); }
|
|
4943
|
-
for (var i = 0, l = xs.length; i < l; i++) {
|
|
4944
|
-
if (xs[i] === x) { return i; }
|
|
4945
|
-
}
|
|
4946
|
-
return -1;
|
|
4947
|
-
}
|
|
4948
|
-
|
|
4949
|
-
function isMap(x) {
|
|
4950
|
-
if (!mapSize || !x || typeof x !== 'object') {
|
|
4951
|
-
return false;
|
|
4952
|
-
}
|
|
4953
|
-
try {
|
|
4954
|
-
mapSize.call(x);
|
|
4955
|
-
try {
|
|
4956
|
-
setSize.call(x);
|
|
4957
|
-
} catch (s) {
|
|
4958
|
-
return true;
|
|
4959
|
-
}
|
|
4960
|
-
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
4961
|
-
} catch (e) {}
|
|
4962
|
-
return false;
|
|
4963
|
-
}
|
|
4964
|
-
|
|
4965
|
-
function isWeakMap(x) {
|
|
4966
|
-
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
4967
|
-
return false;
|
|
4968
|
-
}
|
|
4969
|
-
try {
|
|
4970
|
-
weakMapHas.call(x, weakMapHas);
|
|
4971
|
-
try {
|
|
4972
|
-
weakSetHas.call(x, weakSetHas);
|
|
4973
|
-
} catch (s) {
|
|
4974
|
-
return true;
|
|
4975
|
-
}
|
|
4976
|
-
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
4977
|
-
} catch (e) {}
|
|
4978
|
-
return false;
|
|
4979
|
-
}
|
|
4980
|
-
|
|
4981
|
-
function isWeakRef(x) {
|
|
4982
|
-
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
4983
|
-
return false;
|
|
4984
|
-
}
|
|
4985
|
-
try {
|
|
4986
|
-
weakRefDeref.call(x);
|
|
4987
|
-
return true;
|
|
4988
|
-
} catch (e) {}
|
|
4989
|
-
return false;
|
|
4990
|
-
}
|
|
4991
|
-
|
|
4992
|
-
function isSet(x) {
|
|
4993
|
-
if (!setSize || !x || typeof x !== 'object') {
|
|
4994
|
-
return false;
|
|
4995
|
-
}
|
|
4996
|
-
try {
|
|
4997
|
-
setSize.call(x);
|
|
4998
|
-
try {
|
|
4999
|
-
mapSize.call(x);
|
|
5000
|
-
} catch (m) {
|
|
5001
|
-
return true;
|
|
5002
|
-
}
|
|
5003
|
-
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
5004
|
-
} catch (e) {}
|
|
5005
|
-
return false;
|
|
5006
|
-
}
|
|
5007
|
-
|
|
5008
|
-
function isWeakSet(x) {
|
|
5009
|
-
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
5010
|
-
return false;
|
|
5011
|
-
}
|
|
5012
|
-
try {
|
|
5013
|
-
weakSetHas.call(x, weakSetHas);
|
|
5014
|
-
try {
|
|
5015
|
-
weakMapHas.call(x, weakMapHas);
|
|
5016
|
-
} catch (s) {
|
|
5017
|
-
return true;
|
|
5018
|
-
}
|
|
5019
|
-
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
5020
|
-
} catch (e) {}
|
|
5021
|
-
return false;
|
|
5022
|
-
}
|
|
5023
|
-
|
|
5024
|
-
function isElement(x) {
|
|
5025
|
-
if (!x || typeof x !== 'object') { return false; }
|
|
5026
|
-
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
5027
|
-
return true;
|
|
5028
|
-
}
|
|
5029
|
-
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
5030
|
-
}
|
|
5031
|
-
|
|
5032
|
-
function inspectString(str, opts) {
|
|
5033
|
-
if (str.length > opts.maxStringLength) {
|
|
5034
|
-
var remaining = str.length - opts.maxStringLength;
|
|
5035
|
-
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
5036
|
-
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
5037
|
-
}
|
|
5038
|
-
// eslint-disable-next-line no-control-regex
|
|
5039
|
-
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
5040
|
-
return wrapQuotes(s, 'single', opts);
|
|
5041
|
-
}
|
|
5042
|
-
|
|
5043
|
-
function lowbyte(c) {
|
|
5044
|
-
var n = c.charCodeAt(0);
|
|
5045
|
-
var x = {
|
|
5046
|
-
8: 'b',
|
|
5047
|
-
9: 't',
|
|
5048
|
-
10: 'n',
|
|
5049
|
-
12: 'f',
|
|
5050
|
-
13: 'r'
|
|
5051
|
-
}[n];
|
|
5052
|
-
if (x) { return '\\' + x; }
|
|
5053
|
-
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
5054
|
-
}
|
|
5055
|
-
|
|
5056
|
-
function markBoxed(str) {
|
|
5057
|
-
return 'Object(' + str + ')';
|
|
5058
|
-
}
|
|
5059
|
-
|
|
5060
|
-
function weakCollectionOf(type) {
|
|
5061
|
-
return type + ' { ? }';
|
|
5062
|
-
}
|
|
5063
|
-
|
|
5064
|
-
function collectionOf(type, size, entries, indent) {
|
|
5065
|
-
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
5066
|
-
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
5067
|
-
}
|
|
5068
|
-
|
|
5069
|
-
function singleLineValues(xs) {
|
|
5070
|
-
for (var i = 0; i < xs.length; i++) {
|
|
5071
|
-
if (indexOf(xs[i], '\n') >= 0) {
|
|
5072
|
-
return false;
|
|
5073
|
-
}
|
|
5074
|
-
}
|
|
5075
|
-
return true;
|
|
5076
|
-
}
|
|
5077
|
-
|
|
5078
|
-
function getIndent(opts, depth) {
|
|
5079
|
-
var baseIndent;
|
|
5080
|
-
if (opts.indent === '\t') {
|
|
5081
|
-
baseIndent = '\t';
|
|
5082
|
-
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
5083
|
-
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
5084
|
-
} else {
|
|
5085
|
-
return null;
|
|
5086
|
-
}
|
|
5087
|
-
return {
|
|
5088
|
-
base: baseIndent,
|
|
5089
|
-
prev: $join.call(Array(depth + 1), baseIndent)
|
|
5090
|
-
};
|
|
5091
|
-
}
|
|
5092
|
-
|
|
5093
|
-
function indentedJoin(xs, indent) {
|
|
5094
|
-
if (xs.length === 0) { return ''; }
|
|
5095
|
-
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
5096
|
-
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
5097
|
-
}
|
|
5098
|
-
|
|
5099
|
-
function arrObjKeys(obj, inspect) {
|
|
5100
|
-
var isArr = isArray$3(obj);
|
|
5101
|
-
var xs = [];
|
|
5102
|
-
if (isArr) {
|
|
5103
|
-
xs.length = obj.length;
|
|
5104
|
-
for (var i = 0; i < obj.length; i++) {
|
|
5105
|
-
xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
|
|
5106
|
-
}
|
|
5107
|
-
}
|
|
5108
|
-
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
5109
|
-
var symMap;
|
|
5110
|
-
if (hasShammedSymbols) {
|
|
5111
|
-
symMap = {};
|
|
5112
|
-
for (var k = 0; k < syms.length; k++) {
|
|
5113
|
-
symMap['$' + syms[k]] = syms[k];
|
|
5114
|
-
}
|
|
5115
|
-
}
|
|
5116
|
-
|
|
5117
|
-
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
5118
|
-
if (!has$3(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5119
|
-
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5120
|
-
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
5121
|
-
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
5122
|
-
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
5123
|
-
} else if ($test.call(/[^\w$]/, key)) {
|
|
5124
|
-
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
5125
|
-
} else {
|
|
5126
|
-
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
5127
|
-
}
|
|
5128
|
-
}
|
|
5129
|
-
if (typeof gOPS === 'function') {
|
|
5130
|
-
for (var j = 0; j < syms.length; j++) {
|
|
5131
|
-
if (isEnumerable.call(obj, syms[j])) {
|
|
5132
|
-
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
5133
|
-
}
|
|
5134
|
-
}
|
|
5135
|
-
}
|
|
5136
|
-
return xs;
|
|
5137
|
-
}
|
|
5138
|
-
|
|
5139
|
-
var GetIntrinsic = getIntrinsic;
|
|
5140
|
-
var callBound = callBound$1;
|
|
5141
|
-
var inspect = objectInspect;
|
|
5142
|
-
|
|
5143
|
-
var $TypeError = GetIntrinsic('%TypeError%');
|
|
5144
|
-
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
5145
|
-
var $Map = GetIntrinsic('%Map%', true);
|
|
5146
|
-
|
|
5147
|
-
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
5148
|
-
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
5149
|
-
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
5150
|
-
var $mapGet = callBound('Map.prototype.get', true);
|
|
5151
|
-
var $mapSet = callBound('Map.prototype.set', true);
|
|
5152
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
5153
|
-
|
|
5154
|
-
/*
|
|
5155
|
-
* This function traverses the list returning the node corresponding to the
|
|
5156
|
-
* given key.
|
|
5157
|
-
*
|
|
5158
|
-
* That node is also moved to the head of the list, so that if it's accessed
|
|
5159
|
-
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
5160
|
-
* used nodes can be accessed relatively quickly.
|
|
5161
|
-
*/
|
|
5162
|
-
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
5163
|
-
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
5164
|
-
if (curr.key === key) {
|
|
5165
|
-
prev.next = curr.next;
|
|
5166
|
-
curr.next = list.next;
|
|
5167
|
-
list.next = curr; // eslint-disable-line no-param-reassign
|
|
5168
|
-
return curr;
|
|
5169
|
-
}
|
|
5170
|
-
}
|
|
5171
|
-
};
|
|
5172
|
-
|
|
5173
|
-
var listGet = function (objects, key) {
|
|
5174
|
-
var node = listGetNode(objects, key);
|
|
5175
|
-
return node && node.value;
|
|
5176
|
-
};
|
|
5177
|
-
var listSet = function (objects, key, value) {
|
|
5178
|
-
var node = listGetNode(objects, key);
|
|
5179
|
-
if (node) {
|
|
5180
|
-
node.value = value;
|
|
5181
|
-
} else {
|
|
5182
|
-
// Prepend the new node to the beginning of the list
|
|
5183
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
5184
|
-
key: key,
|
|
5185
|
-
next: objects.next,
|
|
5186
|
-
value: value
|
|
5187
|
-
};
|
|
5188
|
-
}
|
|
5189
|
-
};
|
|
5190
|
-
var listHas = function (objects, key) {
|
|
5191
|
-
return !!listGetNode(objects, key);
|
|
5192
|
-
};
|
|
5193
|
-
|
|
5194
|
-
var sideChannel = function getSideChannel() {
|
|
5195
|
-
var $wm;
|
|
5196
|
-
var $m;
|
|
5197
|
-
var $o;
|
|
5198
|
-
var channel = {
|
|
5199
|
-
assert: function (key) {
|
|
5200
|
-
if (!channel.has(key)) {
|
|
5201
|
-
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
5202
|
-
}
|
|
5203
|
-
},
|
|
5204
|
-
get: function (key) { // eslint-disable-line consistent-return
|
|
5205
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5206
|
-
if ($wm) {
|
|
5207
|
-
return $weakMapGet($wm, key);
|
|
5208
|
-
}
|
|
5209
|
-
} else if ($Map) {
|
|
5210
|
-
if ($m) {
|
|
5211
|
-
return $mapGet($m, key);
|
|
5212
|
-
}
|
|
5213
|
-
} else {
|
|
5214
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
5215
|
-
return listGet($o, key);
|
|
5216
|
-
}
|
|
5217
|
-
}
|
|
5218
|
-
},
|
|
5219
|
-
has: function (key) {
|
|
5220
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5221
|
-
if ($wm) {
|
|
5222
|
-
return $weakMapHas($wm, key);
|
|
5223
|
-
}
|
|
5224
|
-
} else if ($Map) {
|
|
5225
|
-
if ($m) {
|
|
5226
|
-
return $mapHas($m, key);
|
|
5227
|
-
}
|
|
5228
|
-
} else {
|
|
5229
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
5230
|
-
return listHas($o, key);
|
|
5231
|
-
}
|
|
5232
|
-
}
|
|
5233
|
-
return false;
|
|
5234
|
-
},
|
|
5235
|
-
set: function (key, value) {
|
|
5236
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5237
|
-
if (!$wm) {
|
|
5238
|
-
$wm = new $WeakMap();
|
|
5239
|
-
}
|
|
5240
|
-
$weakMapSet($wm, key, value);
|
|
5241
|
-
} else if ($Map) {
|
|
5242
|
-
if (!$m) {
|
|
5243
|
-
$m = new $Map();
|
|
5244
|
-
}
|
|
5245
|
-
$mapSet($m, key, value);
|
|
5246
|
-
} else {
|
|
5247
|
-
if (!$o) {
|
|
5248
|
-
/*
|
|
5249
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
5250
|
-
* to special-case handling of the first node: we can always refer to
|
|
5251
|
-
* it as (previous node).next, instead of something like (list).head
|
|
5252
|
-
*/
|
|
5253
|
-
$o = { key: {}, next: null };
|
|
5254
|
-
}
|
|
5255
|
-
listSet($o, key, value);
|
|
5256
|
-
}
|
|
5257
|
-
}
|
|
5258
|
-
};
|
|
5259
|
-
return channel;
|
|
5260
|
-
};
|
|
5261
|
-
|
|
5262
|
-
var replace = String.prototype.replace;
|
|
5263
|
-
var percentTwenties = /%20/g;
|
|
5264
|
-
|
|
5265
|
-
var Format = {
|
|
5266
|
-
RFC1738: 'RFC1738',
|
|
5267
|
-
RFC3986: 'RFC3986'
|
|
5268
|
-
};
|
|
5269
|
-
|
|
5270
|
-
var formats$3 = {
|
|
5271
|
-
'default': Format.RFC3986,
|
|
5272
|
-
formatters: {
|
|
5273
|
-
RFC1738: function (value) {
|
|
5274
|
-
return replace.call(value, percentTwenties, '+');
|
|
5275
|
-
},
|
|
5276
|
-
RFC3986: function (value) {
|
|
5277
|
-
return String(value);
|
|
5278
|
-
}
|
|
5279
|
-
},
|
|
5280
|
-
RFC1738: Format.RFC1738,
|
|
5281
|
-
RFC3986: Format.RFC3986
|
|
5282
|
-
};
|
|
5283
|
-
|
|
5284
|
-
var formats$2 = formats$3;
|
|
5285
|
-
|
|
5286
|
-
var has$2 = Object.prototype.hasOwnProperty;
|
|
5287
|
-
var isArray$2 = Array.isArray;
|
|
5288
|
-
|
|
5289
|
-
var hexTable = (function () {
|
|
5290
|
-
var array = [];
|
|
5291
|
-
for (var i = 0; i < 256; ++i) {
|
|
5292
|
-
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
5293
|
-
}
|
|
5294
|
-
|
|
5295
|
-
return array;
|
|
5296
|
-
}());
|
|
5297
|
-
|
|
5298
|
-
var compactQueue = function compactQueue(queue) {
|
|
5299
|
-
while (queue.length > 1) {
|
|
5300
|
-
var item = queue.pop();
|
|
5301
|
-
var obj = item.obj[item.prop];
|
|
5302
|
-
|
|
5303
|
-
if (isArray$2(obj)) {
|
|
5304
|
-
var compacted = [];
|
|
5305
|
-
|
|
5306
|
-
for (var j = 0; j < obj.length; ++j) {
|
|
5307
|
-
if (typeof obj[j] !== 'undefined') {
|
|
5308
|
-
compacted.push(obj[j]);
|
|
5309
|
-
}
|
|
5310
|
-
}
|
|
5311
|
-
|
|
5312
|
-
item.obj[item.prop] = compacted;
|
|
5313
|
-
}
|
|
5314
|
-
}
|
|
5315
|
-
};
|
|
5316
|
-
|
|
5317
|
-
var arrayToObject = function arrayToObject(source, options) {
|
|
5318
|
-
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
5319
|
-
for (var i = 0; i < source.length; ++i) {
|
|
5320
|
-
if (typeof source[i] !== 'undefined') {
|
|
5321
|
-
obj[i] = source[i];
|
|
5322
|
-
}
|
|
5323
|
-
}
|
|
5324
|
-
|
|
5325
|
-
return obj;
|
|
5326
|
-
};
|
|
5327
|
-
|
|
5328
|
-
var merge$2 = function merge(target, source, options) {
|
|
5329
|
-
/* eslint no-param-reassign: 0 */
|
|
5330
|
-
if (!source) {
|
|
5331
|
-
return target;
|
|
5332
|
-
}
|
|
5333
|
-
|
|
5334
|
-
if (typeof source !== 'object') {
|
|
5335
|
-
if (isArray$2(target)) {
|
|
5336
|
-
target.push(source);
|
|
5337
|
-
} else if (target && typeof target === 'object') {
|
|
5338
|
-
if ((options && (options.plainObjects || options.allowPrototypes)) || !has$2.call(Object.prototype, source)) {
|
|
5339
|
-
target[source] = true;
|
|
5340
|
-
}
|
|
5341
|
-
} else {
|
|
5342
|
-
return [target, source];
|
|
5343
|
-
}
|
|
5344
|
-
|
|
5345
|
-
return target;
|
|
5346
|
-
}
|
|
5347
|
-
|
|
5348
|
-
if (!target || typeof target !== 'object') {
|
|
5349
|
-
return [target].concat(source);
|
|
5350
|
-
}
|
|
5351
|
-
|
|
5352
|
-
var mergeTarget = target;
|
|
5353
|
-
if (isArray$2(target) && !isArray$2(source)) {
|
|
5354
|
-
mergeTarget = arrayToObject(target, options);
|
|
5355
|
-
}
|
|
5356
|
-
|
|
5357
|
-
if (isArray$2(target) && isArray$2(source)) {
|
|
5358
|
-
source.forEach(function (item, i) {
|
|
5359
|
-
if (has$2.call(target, i)) {
|
|
5360
|
-
var targetItem = target[i];
|
|
5361
|
-
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
5362
|
-
target[i] = merge(targetItem, item, options);
|
|
5363
|
-
} else {
|
|
5364
|
-
target.push(item);
|
|
5365
|
-
}
|
|
5366
|
-
} else {
|
|
5367
|
-
target[i] = item;
|
|
5368
|
-
}
|
|
5369
|
-
});
|
|
5370
|
-
return target;
|
|
5371
|
-
}
|
|
5372
|
-
|
|
5373
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
5374
|
-
var value = source[key];
|
|
5375
|
-
|
|
5376
|
-
if (has$2.call(acc, key)) {
|
|
5377
|
-
acc[key] = merge(acc[key], value, options);
|
|
5378
|
-
} else {
|
|
5379
|
-
acc[key] = value;
|
|
5380
|
-
}
|
|
5381
|
-
return acc;
|
|
5382
|
-
}, mergeTarget);
|
|
5383
|
-
};
|
|
5384
|
-
|
|
5385
|
-
var assign = function assignSingleSource(target, source) {
|
|
5386
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
5387
|
-
acc[key] = source[key];
|
|
5388
|
-
return acc;
|
|
5389
|
-
}, target);
|
|
5390
|
-
};
|
|
5391
|
-
|
|
5392
|
-
var decode$1 = function (str, decoder, charset) {
|
|
5393
|
-
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
5394
|
-
if (charset === 'iso-8859-1') {
|
|
5395
|
-
// unescape never throws, no try...catch needed:
|
|
5396
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
5397
|
-
}
|
|
5398
|
-
// utf-8
|
|
5399
|
-
try {
|
|
5400
|
-
return decodeURIComponent(strWithoutPlus);
|
|
5401
|
-
} catch (e) {
|
|
5402
|
-
return strWithoutPlus;
|
|
5403
|
-
}
|
|
5404
|
-
};
|
|
5405
|
-
|
|
5406
|
-
var encode$1 = function encode(str, defaultEncoder, charset, kind, format) {
|
|
5407
|
-
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
5408
|
-
// It has been adapted here for stricter adherence to RFC 3986
|
|
5409
|
-
if (str.length === 0) {
|
|
5410
|
-
return str;
|
|
5411
|
-
}
|
|
5412
|
-
|
|
5413
|
-
var string = str;
|
|
5414
|
-
if (typeof str === 'symbol') {
|
|
5415
|
-
string = Symbol.prototype.toString.call(str);
|
|
5416
|
-
} else if (typeof str !== 'string') {
|
|
5417
|
-
string = String(str);
|
|
5418
|
-
}
|
|
5419
|
-
|
|
5420
|
-
if (charset === 'iso-8859-1') {
|
|
5421
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
5422
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
5423
|
-
});
|
|
5424
|
-
}
|
|
5425
|
-
|
|
5426
|
-
var out = '';
|
|
5427
|
-
for (var i = 0; i < string.length; ++i) {
|
|
5428
|
-
var c = string.charCodeAt(i);
|
|
5429
|
-
|
|
5430
|
-
if (
|
|
5431
|
-
c === 0x2D // -
|
|
5432
|
-
|| c === 0x2E // .
|
|
5433
|
-
|| c === 0x5F // _
|
|
5434
|
-
|| c === 0x7E // ~
|
|
5435
|
-
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
5436
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
5437
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
5438
|
-
|| (format === formats$2.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
5439
|
-
) {
|
|
5440
|
-
out += string.charAt(i);
|
|
5441
|
-
continue;
|
|
5442
|
-
}
|
|
5443
|
-
|
|
5444
|
-
if (c < 0x80) {
|
|
5445
|
-
out = out + hexTable[c];
|
|
5446
|
-
continue;
|
|
5447
|
-
}
|
|
5448
|
-
|
|
5449
|
-
if (c < 0x800) {
|
|
5450
|
-
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
5451
|
-
continue;
|
|
5452
|
-
}
|
|
5453
|
-
|
|
5454
|
-
if (c < 0xD800 || c >= 0xE000) {
|
|
5455
|
-
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
5456
|
-
continue;
|
|
5457
|
-
}
|
|
5458
|
-
|
|
5459
|
-
i += 1;
|
|
5460
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
5461
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
5462
|
-
out += hexTable[0xF0 | (c >> 18)]
|
|
5463
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
5464
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
5465
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
5466
|
-
}
|
|
5467
|
-
|
|
5468
|
-
return out;
|
|
5469
|
-
};
|
|
5470
|
-
|
|
5471
|
-
var compact = function compact(value) {
|
|
5472
|
-
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
5473
|
-
var refs = [];
|
|
5474
|
-
|
|
5475
|
-
for (var i = 0; i < queue.length; ++i) {
|
|
5476
|
-
var item = queue[i];
|
|
5477
|
-
var obj = item.obj[item.prop];
|
|
5478
|
-
|
|
5479
|
-
var keys = Object.keys(obj);
|
|
5480
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
5481
|
-
var key = keys[j];
|
|
5482
|
-
var val = obj[key];
|
|
5483
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
5484
|
-
queue.push({ obj: obj, prop: key });
|
|
5485
|
-
refs.push(val);
|
|
5486
|
-
}
|
|
5487
|
-
}
|
|
5488
|
-
}
|
|
5489
|
-
|
|
5490
|
-
compactQueue(queue);
|
|
5491
|
-
|
|
5492
|
-
return value;
|
|
5493
|
-
};
|
|
5494
|
-
|
|
5495
|
-
var isRegExp = function isRegExp(obj) {
|
|
5496
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
5497
|
-
};
|
|
5498
|
-
|
|
5499
|
-
var isBuffer = function isBuffer(obj) {
|
|
5500
|
-
if (!obj || typeof obj !== 'object') {
|
|
5501
|
-
return false;
|
|
5502
|
-
}
|
|
5503
|
-
|
|
5504
|
-
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
5505
|
-
};
|
|
5506
|
-
|
|
5507
|
-
var combine = function combine(a, b) {
|
|
5508
|
-
return [].concat(a, b);
|
|
5509
|
-
};
|
|
5510
|
-
|
|
5511
|
-
var maybeMap = function maybeMap(val, fn) {
|
|
5512
|
-
if (isArray$2(val)) {
|
|
5513
|
-
var mapped = [];
|
|
5514
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
5515
|
-
mapped.push(fn(val[i]));
|
|
5516
|
-
}
|
|
5517
|
-
return mapped;
|
|
5518
|
-
}
|
|
5519
|
-
return fn(val);
|
|
5520
|
-
};
|
|
5521
|
-
|
|
5522
|
-
var utils$2 = {
|
|
5523
|
-
arrayToObject: arrayToObject,
|
|
5524
|
-
assign: assign,
|
|
5525
|
-
combine: combine,
|
|
5526
|
-
compact: compact,
|
|
5527
|
-
decode: decode$1,
|
|
5528
|
-
encode: encode$1,
|
|
5529
|
-
isBuffer: isBuffer,
|
|
5530
|
-
isRegExp: isRegExp,
|
|
5531
|
-
maybeMap: maybeMap,
|
|
5532
|
-
merge: merge$2
|
|
5533
|
-
};
|
|
5534
|
-
|
|
5535
|
-
var getSideChannel = sideChannel;
|
|
5536
|
-
var utils$1 = utils$2;
|
|
5537
|
-
var formats$1 = formats$3;
|
|
5538
|
-
var has$1 = Object.prototype.hasOwnProperty;
|
|
5539
|
-
|
|
5540
|
-
var arrayPrefixGenerators = {
|
|
5541
|
-
brackets: function brackets(prefix) {
|
|
5542
|
-
return prefix + '[]';
|
|
5543
|
-
},
|
|
5544
|
-
comma: 'comma',
|
|
5545
|
-
indices: function indices(prefix, key) {
|
|
5546
|
-
return prefix + '[' + key + ']';
|
|
5547
|
-
},
|
|
5548
|
-
repeat: function repeat(prefix) {
|
|
5549
|
-
return prefix;
|
|
5550
|
-
}
|
|
5551
|
-
};
|
|
5552
|
-
|
|
5553
|
-
var isArray$1 = Array.isArray;
|
|
5554
|
-
var split = String.prototype.split;
|
|
5555
|
-
var push = Array.prototype.push;
|
|
5556
|
-
var pushToArray = function (arr, valueOrArray) {
|
|
5557
|
-
push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
5558
|
-
};
|
|
5559
|
-
|
|
5560
|
-
var toISO = Date.prototype.toISOString;
|
|
5561
|
-
|
|
5562
|
-
var defaultFormat = formats$1['default'];
|
|
5563
|
-
var defaults$2 = {
|
|
5564
|
-
addQueryPrefix: false,
|
|
5565
|
-
allowDots: false,
|
|
5566
|
-
charset: 'utf-8',
|
|
5567
|
-
charsetSentinel: false,
|
|
5568
|
-
delimiter: '&',
|
|
5569
|
-
encode: true,
|
|
5570
|
-
encoder: utils$1.encode,
|
|
5571
|
-
encodeValuesOnly: false,
|
|
5572
|
-
format: defaultFormat,
|
|
5573
|
-
formatter: formats$1.formatters[defaultFormat],
|
|
5574
|
-
// deprecated
|
|
5575
|
-
indices: false,
|
|
5576
|
-
serializeDate: function serializeDate(date) {
|
|
5577
|
-
return toISO.call(date);
|
|
5578
|
-
},
|
|
5579
|
-
skipNulls: false,
|
|
5580
|
-
strictNullHandling: false
|
|
5581
|
-
};
|
|
5582
|
-
|
|
5583
|
-
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
5584
|
-
return typeof v === 'string'
|
|
5585
|
-
|| typeof v === 'number'
|
|
5586
|
-
|| typeof v === 'boolean'
|
|
5587
|
-
|| typeof v === 'symbol'
|
|
5588
|
-
|| typeof v === 'bigint';
|
|
5589
|
-
};
|
|
5590
|
-
|
|
5591
|
-
var sentinel = {};
|
|
5592
|
-
|
|
5593
|
-
var stringify$4 = function stringify(
|
|
5594
|
-
object,
|
|
5595
|
-
prefix,
|
|
5596
|
-
generateArrayPrefix,
|
|
5597
|
-
commaRoundTrip,
|
|
5598
|
-
strictNullHandling,
|
|
5599
|
-
skipNulls,
|
|
5600
|
-
encoder,
|
|
5601
|
-
filter,
|
|
5602
|
-
sort,
|
|
5603
|
-
allowDots,
|
|
5604
|
-
serializeDate,
|
|
5605
|
-
format,
|
|
5606
|
-
formatter,
|
|
5607
|
-
encodeValuesOnly,
|
|
5608
|
-
charset,
|
|
5609
|
-
sideChannel
|
|
5610
|
-
) {
|
|
5611
|
-
var obj = object;
|
|
5612
|
-
|
|
5613
|
-
var tmpSc = sideChannel;
|
|
5614
|
-
var step = 0;
|
|
5615
|
-
var findFlag = false;
|
|
5616
|
-
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
5617
|
-
// Where object last appeared in the ref tree
|
|
5618
|
-
var pos = tmpSc.get(object);
|
|
5619
|
-
step += 1;
|
|
5620
|
-
if (typeof pos !== 'undefined') {
|
|
5621
|
-
if (pos === step) {
|
|
5622
|
-
throw new RangeError('Cyclic object value');
|
|
5623
|
-
} else {
|
|
5624
|
-
findFlag = true; // Break while
|
|
5625
|
-
}
|
|
5626
|
-
}
|
|
5627
|
-
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
5628
|
-
step = 0;
|
|
5629
|
-
}
|
|
5630
|
-
}
|
|
5631
|
-
|
|
5632
|
-
if (typeof filter === 'function') {
|
|
5633
|
-
obj = filter(prefix, obj);
|
|
5634
|
-
} else if (obj instanceof Date) {
|
|
5635
|
-
obj = serializeDate(obj);
|
|
5636
|
-
} else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
|
5637
|
-
obj = utils$1.maybeMap(obj, function (value) {
|
|
5638
|
-
if (value instanceof Date) {
|
|
5639
|
-
return serializeDate(value);
|
|
5640
|
-
}
|
|
5641
|
-
return value;
|
|
5642
|
-
});
|
|
5643
|
-
}
|
|
5644
|
-
|
|
5645
|
-
if (obj === null) {
|
|
5646
|
-
if (strictNullHandling) {
|
|
5647
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults$2.encoder, charset, 'key', format) : prefix;
|
|
5648
|
-
}
|
|
5649
|
-
|
|
5650
|
-
obj = '';
|
|
5651
|
-
}
|
|
5652
|
-
|
|
5653
|
-
if (isNonNullishPrimitive(obj) || utils$1.isBuffer(obj)) {
|
|
5654
|
-
if (encoder) {
|
|
5655
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$2.encoder, charset, 'key', format);
|
|
5656
|
-
if (generateArrayPrefix === 'comma' && encodeValuesOnly) {
|
|
5657
|
-
var valuesArray = split.call(String(obj), ',');
|
|
5658
|
-
var valuesJoined = '';
|
|
5659
|
-
for (var i = 0; i < valuesArray.length; ++i) {
|
|
5660
|
-
valuesJoined += (i === 0 ? '' : ',') + formatter(encoder(valuesArray[i], defaults$2.encoder, charset, 'value', format));
|
|
5661
|
-
}
|
|
5662
|
-
return [formatter(keyValue) + (commaRoundTrip && isArray$1(obj) && valuesArray.length === 1 ? '[]' : '') + '=' + valuesJoined];
|
|
5663
|
-
}
|
|
5664
|
-
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$2.encoder, charset, 'value', format))];
|
|
5665
|
-
}
|
|
5666
|
-
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
5667
|
-
}
|
|
5668
|
-
|
|
5669
|
-
var values = [];
|
|
5670
|
-
|
|
5671
|
-
if (typeof obj === 'undefined') {
|
|
5672
|
-
return values;
|
|
5673
|
-
}
|
|
5674
|
-
|
|
5675
|
-
var objKeys;
|
|
5676
|
-
if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
|
|
5677
|
-
// we need to join elements in
|
|
5678
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
5679
|
-
} else if (isArray$1(filter)) {
|
|
5680
|
-
objKeys = filter;
|
|
5681
|
-
} else {
|
|
5682
|
-
var keys = Object.keys(obj);
|
|
5683
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
5684
|
-
}
|
|
5685
|
-
|
|
5686
|
-
var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
5687
|
-
|
|
5688
|
-
for (var j = 0; j < objKeys.length; ++j) {
|
|
5689
|
-
var key = objKeys[j];
|
|
5690
|
-
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
5691
|
-
|
|
5692
|
-
if (skipNulls && value === null) {
|
|
5693
|
-
continue;
|
|
5694
|
-
}
|
|
5695
|
-
|
|
5696
|
-
var keyPrefix = isArray$1(obj)
|
|
5697
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
5698
|
-
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
5699
|
-
|
|
5700
|
-
sideChannel.set(object, step);
|
|
5701
|
-
var valueSideChannel = getSideChannel();
|
|
5702
|
-
valueSideChannel.set(sentinel, sideChannel);
|
|
5703
|
-
pushToArray(values, stringify(
|
|
5704
|
-
value,
|
|
5705
|
-
keyPrefix,
|
|
5706
|
-
generateArrayPrefix,
|
|
5707
|
-
commaRoundTrip,
|
|
5708
|
-
strictNullHandling,
|
|
5709
|
-
skipNulls,
|
|
5710
|
-
encoder,
|
|
5711
|
-
filter,
|
|
5712
|
-
sort,
|
|
5713
|
-
allowDots,
|
|
5714
|
-
serializeDate,
|
|
5715
|
-
format,
|
|
5716
|
-
formatter,
|
|
5717
|
-
encodeValuesOnly,
|
|
5718
|
-
charset,
|
|
5719
|
-
valueSideChannel
|
|
5720
|
-
));
|
|
5721
|
-
}
|
|
5722
|
-
|
|
5723
|
-
return values;
|
|
5724
|
-
};
|
|
5725
|
-
|
|
5726
|
-
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
5727
|
-
if (!opts) {
|
|
5728
|
-
return defaults$2;
|
|
5729
|
-
}
|
|
5730
|
-
|
|
5731
|
-
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
5732
|
-
throw new TypeError('Encoder has to be a function.');
|
|
5733
|
-
}
|
|
5734
|
-
|
|
5735
|
-
var charset = opts.charset || defaults$2.charset;
|
|
5736
|
-
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
5737
|
-
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
5738
|
-
}
|
|
5739
|
-
|
|
5740
|
-
var format = formats$1['default'];
|
|
5741
|
-
if (typeof opts.format !== 'undefined') {
|
|
5742
|
-
if (!has$1.call(formats$1.formatters, opts.format)) {
|
|
5743
|
-
throw new TypeError('Unknown format option provided.');
|
|
5744
|
-
}
|
|
5745
|
-
format = opts.format;
|
|
5746
|
-
}
|
|
5747
|
-
var formatter = formats$1.formatters[format];
|
|
5748
|
-
|
|
5749
|
-
var filter = defaults$2.filter;
|
|
5750
|
-
if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
|
|
5751
|
-
filter = opts.filter;
|
|
5752
|
-
}
|
|
5753
|
-
|
|
5754
|
-
return {
|
|
5755
|
-
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$2.addQueryPrefix,
|
|
5756
|
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults$2.allowDots : !!opts.allowDots,
|
|
5757
|
-
charset: charset,
|
|
5758
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$2.charsetSentinel,
|
|
5759
|
-
delimiter: typeof opts.delimiter === 'undefined' ? defaults$2.delimiter : opts.delimiter,
|
|
5760
|
-
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$2.encode,
|
|
5761
|
-
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$2.encoder,
|
|
5762
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$2.encodeValuesOnly,
|
|
5763
|
-
filter: filter,
|
|
5764
|
-
format: format,
|
|
5765
|
-
formatter: formatter,
|
|
5766
|
-
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$2.serializeDate,
|
|
5767
|
-
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$2.skipNulls,
|
|
5768
|
-
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
5769
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$2.strictNullHandling
|
|
5770
|
-
};
|
|
5771
|
-
};
|
|
3311
|
+
// if the element has the class "mousetrap" then no need to stop
|
|
3312
|
+
if ((' ' + element.className + ' ').indexOf(' mousetrap ') > -1) {
|
|
3313
|
+
return false;
|
|
3314
|
+
}
|
|
5772
3315
|
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
|
|
3316
|
+
if (_belongsTo(element, self.target)) {
|
|
3317
|
+
return false;
|
|
3318
|
+
}
|
|
5776
3319
|
|
|
5777
|
-
|
|
5778
|
-
|
|
3320
|
+
// Events originating from a shadow DOM are re-targetted and `e.target` is the shadow host,
|
|
3321
|
+
// not the initial event target in the shadow tree. Note that not all events cross the
|
|
3322
|
+
// shadow boundary.
|
|
3323
|
+
// For shadow trees with `mode: 'open'`, the initial event target is the first element in
|
|
3324
|
+
// the event’s composed path. For shadow trees with `mode: 'closed'`, the initial event
|
|
3325
|
+
// target cannot be obtained.
|
|
3326
|
+
if ('composedPath' in e && typeof e.composedPath === 'function') {
|
|
3327
|
+
// For open shadow trees, update `element` so that the following check works.
|
|
3328
|
+
var initialEventTarget = e.composedPath()[0];
|
|
3329
|
+
if (initialEventTarget !== e.target) {
|
|
3330
|
+
element = initialEventTarget;
|
|
3331
|
+
}
|
|
3332
|
+
}
|
|
5779
3333
|
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
|
|
5783
|
-
} else if (isArray$1(options.filter)) {
|
|
5784
|
-
filter = options.filter;
|
|
5785
|
-
objKeys = filter;
|
|
5786
|
-
}
|
|
3334
|
+
// stop for input, select, and textarea
|
|
3335
|
+
return element.tagName == 'INPUT' || element.tagName == 'SELECT' || element.tagName == 'TEXTAREA' || element.isContentEditable;
|
|
3336
|
+
};
|
|
5787
3337
|
|
|
5788
|
-
|
|
3338
|
+
/**
|
|
3339
|
+
* exposes _handleKey publicly so it can be overwritten by extensions
|
|
3340
|
+
*/
|
|
3341
|
+
Mousetrap.prototype.handleKey = function() {
|
|
3342
|
+
var self = this;
|
|
3343
|
+
return self._handleKey.apply(self, arguments);
|
|
3344
|
+
};
|
|
5789
3345
|
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
3346
|
+
/**
|
|
3347
|
+
* allow custom key mappings
|
|
3348
|
+
*/
|
|
3349
|
+
Mousetrap.addKeycodes = function(object) {
|
|
3350
|
+
for (var key in object) {
|
|
3351
|
+
if (object.hasOwnProperty(key)) {
|
|
3352
|
+
_MAP[key] = object[key];
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
_REVERSE_MAP = null;
|
|
3356
|
+
};
|
|
5793
3357
|
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
3358
|
+
/**
|
|
3359
|
+
* Init the global mousetrap functions
|
|
3360
|
+
*
|
|
3361
|
+
* This method is needed to allow the global mousetrap functions to work
|
|
3362
|
+
* now that mousetrap is a constructor function.
|
|
3363
|
+
*/
|
|
3364
|
+
Mousetrap.init = function() {
|
|
3365
|
+
var documentMousetrap = Mousetrap(document);
|
|
3366
|
+
for (var method in documentMousetrap) {
|
|
3367
|
+
if (method.charAt(0) !== '_') {
|
|
3368
|
+
Mousetrap[method] = (function(method) {
|
|
3369
|
+
return function() {
|
|
3370
|
+
return documentMousetrap[method].apply(documentMousetrap, arguments);
|
|
3371
|
+
};
|
|
3372
|
+
} (method));
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
};
|
|
5802
3376
|
|
|
5803
|
-
|
|
5804
|
-
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
5805
|
-
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
5806
|
-
}
|
|
5807
|
-
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
3377
|
+
Mousetrap.init();
|
|
5808
3378
|
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
}
|
|
3379
|
+
// expose mousetrap to the global object
|
|
3380
|
+
window.Mousetrap = Mousetrap;
|
|
5812
3381
|
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
3382
|
+
// expose as a common js module
|
|
3383
|
+
if (module.exports) {
|
|
3384
|
+
module.exports = Mousetrap;
|
|
3385
|
+
}
|
|
5816
3386
|
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
3387
|
+
// expose mousetrap as an AMD module
|
|
3388
|
+
if (typeof undefined$1 === 'function' && undefined$1.amd) {
|
|
3389
|
+
undefined$1(function() {
|
|
3390
|
+
return Mousetrap;
|
|
3391
|
+
});
|
|
3392
|
+
}
|
|
3393
|
+
}) (typeof window !== 'undefined' ? window : null, typeof window !== 'undefined' ? document : null);
|
|
3394
|
+
} (mousetrap));
|
|
5820
3395
|
|
|
5821
|
-
|
|
5822
|
-
continue;
|
|
5823
|
-
}
|
|
5824
|
-
pushToArray(keys, stringify$4(
|
|
5825
|
-
obj[key],
|
|
5826
|
-
key,
|
|
5827
|
-
generateArrayPrefix,
|
|
5828
|
-
commaRoundTrip,
|
|
5829
|
-
options.strictNullHandling,
|
|
5830
|
-
options.skipNulls,
|
|
5831
|
-
options.encode ? options.encoder : null,
|
|
5832
|
-
options.filter,
|
|
5833
|
-
options.sort,
|
|
5834
|
-
options.allowDots,
|
|
5835
|
-
options.serializeDate,
|
|
5836
|
-
options.format,
|
|
5837
|
-
options.formatter,
|
|
5838
|
-
options.encodeValuesOnly,
|
|
5839
|
-
options.charset,
|
|
5840
|
-
sideChannel
|
|
5841
|
-
));
|
|
5842
|
-
}
|
|
3396
|
+
var Mousetrap$1 = mousetrap.exports;
|
|
5843
3397
|
|
|
5844
|
-
|
|
5845
|
-
|
|
3398
|
+
/**
|
|
3399
|
+
* adds a bindGlobal method to Mousetrap that allows you to
|
|
3400
|
+
* bind specific keyboard shortcuts that will still work
|
|
3401
|
+
* inside a text input field
|
|
3402
|
+
*
|
|
3403
|
+
* usage:
|
|
3404
|
+
* Mousetrap.bindGlobal('ctrl+s', _saveChanges);
|
|
3405
|
+
*/
|
|
3406
|
+
/* global Mousetrap:true */
|
|
3407
|
+
(function(Mousetrap) {
|
|
3408
|
+
var _globalCallbacks = {};
|
|
3409
|
+
var _originalStopCallback = Mousetrap.prototype.stopCallback;
|
|
3410
|
+
|
|
3411
|
+
Mousetrap.prototype.stopCallback = function(e, element, combo, sequence) {
|
|
3412
|
+
var self = this;
|
|
3413
|
+
|
|
3414
|
+
if (self.paused) {
|
|
3415
|
+
return true;
|
|
3416
|
+
}
|
|
3417
|
+
|
|
3418
|
+
if (_globalCallbacks[combo] || _globalCallbacks[sequence]) {
|
|
3419
|
+
return false;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
return _originalStopCallback.call(self, e, element, combo);
|
|
3423
|
+
};
|
|
3424
|
+
|
|
3425
|
+
Mousetrap.prototype.bindGlobal = function(keys, callback, action) {
|
|
3426
|
+
var self = this;
|
|
3427
|
+
self.bind(keys, callback, action);
|
|
3428
|
+
|
|
3429
|
+
if (keys instanceof Array) {
|
|
3430
|
+
for (var i = 0; i < keys.length; i++) {
|
|
3431
|
+
_globalCallbacks[keys[i]] = true;
|
|
3432
|
+
}
|
|
3433
|
+
return;
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3436
|
+
_globalCallbacks[keys] = true;
|
|
3437
|
+
};
|
|
3438
|
+
|
|
3439
|
+
Mousetrap.prototype.unbindGlobal = function(keys, action) {
|
|
3440
|
+
var self = this;
|
|
3441
|
+
self.unbind(keys, action);
|
|
3442
|
+
|
|
3443
|
+
if (keys instanceof Array) {
|
|
3444
|
+
for (var i = 0; i < keys.length; i++) {
|
|
3445
|
+
_globalCallbacks[keys[i]] = false;
|
|
3446
|
+
}
|
|
3447
|
+
return;
|
|
3448
|
+
}
|
|
3449
|
+
|
|
3450
|
+
_globalCallbacks[keys] = false;
|
|
3451
|
+
};
|
|
3452
|
+
|
|
3453
|
+
Mousetrap.init();
|
|
3454
|
+
}) (Mousetrap);
|
|
5846
3455
|
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
3456
|
+
var MAC_TO_WINDOWS_KEYS_MAP = {
|
|
3457
|
+
option: "alt",
|
|
3458
|
+
command: "ctrl",
|
|
3459
|
+
"return": "enter",
|
|
3460
|
+
"delete": "backspace"
|
|
3461
|
+
};
|
|
3462
|
+
var OS = {
|
|
3463
|
+
mac: "OS X",
|
|
3464
|
+
windows: "Windows"
|
|
3465
|
+
};
|
|
5856
3466
|
|
|
5857
|
-
|
|
3467
|
+
var convertHotkeyToUsersPlatform = function convertHotkeyToUsersPlatform(hotkey) {
|
|
3468
|
+
var _platformInfo$os, _platformInfo$os$fami;
|
|
3469
|
+
var platformInfo = platform.parse(navigator.userAgent);
|
|
3470
|
+
var isOSX = (_platformInfo$os = platformInfo.os) === null || _platformInfo$os === void 0 ? void 0 : (_platformInfo$os$fami = _platformInfo$os.family) === null || _platformInfo$os$fami === void 0 ? void 0 : _platformInfo$os$fami.includes(OS.mac);
|
|
3471
|
+
if (isOSX) return hotkey;
|
|
3472
|
+
var hotkeyForWindows = hotkey;
|
|
3473
|
+
toPairs(MAC_TO_WINDOWS_KEYS_MAP).forEach(function (_ref) {
|
|
3474
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
3475
|
+
macKey = _ref2[0],
|
|
3476
|
+
windowsKey = _ref2[1];
|
|
3477
|
+
hotkeyForWindows = hotkeyForWindows.replaceAll(macKey, windowsKey);
|
|
3478
|
+
});
|
|
3479
|
+
return hotkeyForWindows;
|
|
5858
3480
|
};
|
|
5859
3481
|
|
|
5860
|
-
var
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
var
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
arrayLimit: 20,
|
|
5870
|
-
charset: 'utf-8',
|
|
5871
|
-
charsetSentinel: false,
|
|
5872
|
-
comma: false,
|
|
5873
|
-
decoder: utils.decode,
|
|
5874
|
-
delimiter: '&',
|
|
5875
|
-
depth: 5,
|
|
5876
|
-
ignoreQueryPrefix: false,
|
|
5877
|
-
interpretNumericEntities: false,
|
|
5878
|
-
parameterLimit: 1000,
|
|
5879
|
-
parseArrays: true,
|
|
5880
|
-
plainObjects: false,
|
|
5881
|
-
strictNullHandling: false
|
|
3482
|
+
var MODES$1 = {
|
|
3483
|
+
"default": "default",
|
|
3484
|
+
global: "global",
|
|
3485
|
+
scoped: "scoped"
|
|
3486
|
+
};
|
|
3487
|
+
var DEFAULT_CONFIG = {
|
|
3488
|
+
mode: MODES$1["default"],
|
|
3489
|
+
unbindOnUnmount: true,
|
|
3490
|
+
enabled: true
|
|
5882
3491
|
};
|
|
5883
3492
|
|
|
5884
|
-
var
|
|
5885
|
-
|
|
5886
|
-
|
|
3493
|
+
var useHotKeys = function useHotKeys(hotkey, handler, userConfig) {
|
|
3494
|
+
var ref = useRef(null);
|
|
3495
|
+
var convertedHotkey = convertHotkeyToUsersPlatform(hotkey);
|
|
3496
|
+
var config = mergeLeft(userConfig, DEFAULT_CONFIG);
|
|
3497
|
+
useEffect(function () {
|
|
3498
|
+
var mousetrapInstance = config.enabled && bindHotKey({
|
|
3499
|
+
mode: config.mode,
|
|
3500
|
+
hotkey: convertedHotkey,
|
|
3501
|
+
handler: handler,
|
|
3502
|
+
ref: ref
|
|
5887
3503
|
});
|
|
3504
|
+
return function () {
|
|
3505
|
+
config.unbindOnUnmount && unBindHotKey({
|
|
3506
|
+
mousetrapInstance: mousetrapInstance,
|
|
3507
|
+
mode: config.mode,
|
|
3508
|
+
hotkey: convertedHotkey
|
|
3509
|
+
});
|
|
3510
|
+
};
|
|
3511
|
+
}, [handler, config.mode, convertedHotkey, config]);
|
|
3512
|
+
return config.mode === MODES$1.scoped ? ref : null;
|
|
5888
3513
|
};
|
|
5889
|
-
|
|
5890
|
-
var
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
3514
|
+
var bindHotKey = function bindHotKey(_ref) {
|
|
3515
|
+
var mode = _ref.mode,
|
|
3516
|
+
hotkey = _ref.hotkey,
|
|
3517
|
+
handler = _ref.handler,
|
|
3518
|
+
ref = _ref.ref;
|
|
3519
|
+
var mousetrapInstance;
|
|
3520
|
+
switch (mode) {
|
|
3521
|
+
case MODES$1.global:
|
|
3522
|
+
Mousetrap$1.bindGlobal(hotkey, handler);
|
|
3523
|
+
break;
|
|
3524
|
+
case MODES$1.scoped:
|
|
3525
|
+
mousetrapInstance = Mousetrap$1(ref.current).bind(hotkey, handler);
|
|
3526
|
+
break;
|
|
3527
|
+
default:
|
|
3528
|
+
mousetrapInstance = Mousetrap$1.bind(hotkey, handler);
|
|
3529
|
+
}
|
|
3530
|
+
return mousetrapInstance;
|
|
5896
3531
|
};
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
// the ✓ character, such as us-ascii.
|
|
5903
|
-
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
5904
|
-
|
|
5905
|
-
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
5906
|
-
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
5907
|
-
|
|
5908
|
-
var parseValues = function parseQueryStringValues(str, options) {
|
|
5909
|
-
var obj = {};
|
|
5910
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
5911
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
5912
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
5913
|
-
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
5914
|
-
var i;
|
|
5915
|
-
|
|
5916
|
-
var charset = options.charset;
|
|
5917
|
-
if (options.charsetSentinel) {
|
|
5918
|
-
for (i = 0; i < parts.length; ++i) {
|
|
5919
|
-
if (parts[i].indexOf('utf8=') === 0) {
|
|
5920
|
-
if (parts[i] === charsetSentinel) {
|
|
5921
|
-
charset = 'utf-8';
|
|
5922
|
-
} else if (parts[i] === isoSentinel) {
|
|
5923
|
-
charset = 'iso-8859-1';
|
|
5924
|
-
}
|
|
5925
|
-
skipIndex = i;
|
|
5926
|
-
i = parts.length; // The eslint settings do not allow break;
|
|
5927
|
-
}
|
|
5928
|
-
}
|
|
5929
|
-
}
|
|
5930
|
-
|
|
5931
|
-
for (i = 0; i < parts.length; ++i) {
|
|
5932
|
-
if (i === skipIndex) {
|
|
5933
|
-
continue;
|
|
5934
|
-
}
|
|
5935
|
-
var part = parts[i];
|
|
5936
|
-
|
|
5937
|
-
var bracketEqualsPos = part.indexOf(']=');
|
|
5938
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
5939
|
-
|
|
5940
|
-
var key, val;
|
|
5941
|
-
if (pos === -1) {
|
|
5942
|
-
key = options.decoder(part, defaults$1.decoder, charset, 'key');
|
|
5943
|
-
val = options.strictNullHandling ? null : '';
|
|
5944
|
-
} else {
|
|
5945
|
-
key = options.decoder(part.slice(0, pos), defaults$1.decoder, charset, 'key');
|
|
5946
|
-
val = utils.maybeMap(
|
|
5947
|
-
parseArrayValue(part.slice(pos + 1), options),
|
|
5948
|
-
function (encodedVal) {
|
|
5949
|
-
return options.decoder(encodedVal, defaults$1.decoder, charset, 'value');
|
|
5950
|
-
}
|
|
5951
|
-
);
|
|
5952
|
-
}
|
|
5953
|
-
|
|
5954
|
-
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
5955
|
-
val = interpretNumericEntities(val);
|
|
5956
|
-
}
|
|
5957
|
-
|
|
5958
|
-
if (part.indexOf('[]=') > -1) {
|
|
5959
|
-
val = isArray(val) ? [val] : val;
|
|
5960
|
-
}
|
|
5961
|
-
|
|
5962
|
-
if (has.call(obj, key)) {
|
|
5963
|
-
obj[key] = utils.combine(obj[key], val);
|
|
5964
|
-
} else {
|
|
5965
|
-
obj[key] = val;
|
|
5966
|
-
}
|
|
5967
|
-
}
|
|
5968
|
-
|
|
5969
|
-
return obj;
|
|
3532
|
+
var unBindHotKey = function unBindHotKey(_ref2) {
|
|
3533
|
+
var mousetrapInstance = _ref2.mousetrapInstance,
|
|
3534
|
+
mode = _ref2.mode,
|
|
3535
|
+
hotkey = _ref2.hotkey;
|
|
3536
|
+
return mode === MODES$1.global ? Mousetrap$1.unbindGlobal(hotkey) : mousetrapInstance === null || mousetrapInstance === void 0 ? void 0 : mousetrapInstance.unbind(hotkey);
|
|
5970
3537
|
};
|
|
5971
3538
|
|
|
5972
|
-
var
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
5984
|
-
var index = parseInt(cleanRoot, 10);
|
|
5985
|
-
if (!options.parseArrays && cleanRoot === '') {
|
|
5986
|
-
obj = { 0: leaf };
|
|
5987
|
-
} else if (
|
|
5988
|
-
!isNaN(index)
|
|
5989
|
-
&& root !== cleanRoot
|
|
5990
|
-
&& String(index) === cleanRoot
|
|
5991
|
-
&& index >= 0
|
|
5992
|
-
&& (options.parseArrays && index <= options.arrayLimit)
|
|
5993
|
-
) {
|
|
5994
|
-
obj = [];
|
|
5995
|
-
obj[index] = leaf;
|
|
5996
|
-
} else if (cleanRoot !== '__proto__') {
|
|
5997
|
-
obj[cleanRoot] = leaf;
|
|
5998
|
-
}
|
|
5999
|
-
}
|
|
6000
|
-
|
|
6001
|
-
leaf = obj;
|
|
6002
|
-
}
|
|
3539
|
+
var useForceUpdate = function useForceUpdate() {
|
|
3540
|
+
// eslint-disable-next-line react/hook-use-state
|
|
3541
|
+
var _useState = useState(0),
|
|
3542
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3543
|
+
setValue = _useState2[1];
|
|
3544
|
+
return function () {
|
|
3545
|
+
return setValue(function (value) {
|
|
3546
|
+
return value + 1;
|
|
3547
|
+
});
|
|
3548
|
+
};
|
|
3549
|
+
};
|
|
6003
3550
|
|
|
6004
|
-
|
|
3551
|
+
var useIsElementVisibleInDom = function useIsElementVisibleInDom(target) {
|
|
3552
|
+
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
|
3553
|
+
var _useState = useState(false),
|
|
3554
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
3555
|
+
isIntersecting = _useState2[0],
|
|
3556
|
+
setIsIntersecting = _useState2[1];
|
|
3557
|
+
var forceUpdate = useForceUpdate();
|
|
3558
|
+
useEffect(function () {
|
|
3559
|
+
if (!target) return forceUpdate();
|
|
3560
|
+
var observer = new IntersectionObserver(function (_ref) {
|
|
3561
|
+
var _ref2 = _slicedToArray(_ref, 1),
|
|
3562
|
+
entry = _ref2[0];
|
|
3563
|
+
return setIsIntersecting(entry.isIntersecting);
|
|
3564
|
+
}, options);
|
|
3565
|
+
observer.observe(target);
|
|
3566
|
+
return function () {
|
|
3567
|
+
return observer.unobserve(target);
|
|
3568
|
+
};
|
|
3569
|
+
}, [target, options]);
|
|
3570
|
+
return isIntersecting;
|
|
6005
3571
|
};
|
|
6006
3572
|
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
3573
|
+
function shallow(objA, objB) {
|
|
3574
|
+
if (Object.is(objA, objB)) {
|
|
3575
|
+
return true;
|
|
3576
|
+
}
|
|
3577
|
+
if (typeof objA !== "object" || objA === null || typeof objB !== "object" || objB === null) {
|
|
3578
|
+
return false;
|
|
3579
|
+
}
|
|
3580
|
+
if (objA instanceof Map && objB instanceof Map) {
|
|
3581
|
+
if (objA.size !== objB.size)
|
|
3582
|
+
return false;
|
|
3583
|
+
for (const [key, value] of objA) {
|
|
3584
|
+
if (!Object.is(value, objB.get(key))) {
|
|
3585
|
+
return false;
|
|
3586
|
+
}
|
|
6010
3587
|
}
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
// Get the parent
|
|
6021
|
-
|
|
6022
|
-
var segment = options.depth > 0 && brackets.exec(key);
|
|
6023
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
6024
|
-
|
|
6025
|
-
// Stash the parent if it exists
|
|
6026
|
-
|
|
6027
|
-
var keys = [];
|
|
6028
|
-
if (parent) {
|
|
6029
|
-
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
6030
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
6031
|
-
if (!options.allowPrototypes) {
|
|
6032
|
-
return;
|
|
6033
|
-
}
|
|
6034
|
-
}
|
|
6035
|
-
|
|
6036
|
-
keys.push(parent);
|
|
3588
|
+
return true;
|
|
3589
|
+
}
|
|
3590
|
+
if (objA instanceof Set && objB instanceof Set) {
|
|
3591
|
+
if (objA.size !== objB.size)
|
|
3592
|
+
return false;
|
|
3593
|
+
for (const value of objA) {
|
|
3594
|
+
if (!objB.has(value)) {
|
|
3595
|
+
return false;
|
|
3596
|
+
}
|
|
6037
3597
|
}
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6045
|
-
|
|
6046
|
-
|
|
6047
|
-
}
|
|
6048
|
-
}
|
|
6049
|
-
keys.push(segment[1]);
|
|
3598
|
+
return true;
|
|
3599
|
+
}
|
|
3600
|
+
const keysA = Object.keys(objA);
|
|
3601
|
+
if (keysA.length !== Object.keys(objB).length) {
|
|
3602
|
+
return false;
|
|
3603
|
+
}
|
|
3604
|
+
for (let i = 0; i < keysA.length; i++) {
|
|
3605
|
+
if (!Object.prototype.hasOwnProperty.call(objB, keysA[i]) || !Object.is(objA[keysA[i]], objB[keysA[i]])) {
|
|
3606
|
+
return false;
|
|
6050
3607
|
}
|
|
3608
|
+
}
|
|
3609
|
+
return true;
|
|
3610
|
+
}
|
|
6051
3611
|
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
3612
|
+
var useKeyboardShortcutsStore = create$9(function (set) {
|
|
3613
|
+
return {
|
|
3614
|
+
isOpen: false,
|
|
3615
|
+
setIsOpen: function setIsOpen(arg) {
|
|
3616
|
+
if (typeof arg === "function") {
|
|
3617
|
+
set(function (state) {
|
|
3618
|
+
return {
|
|
3619
|
+
isOpen: arg(state.isOpen)
|
|
3620
|
+
};
|
|
3621
|
+
});
|
|
3622
|
+
} else {
|
|
3623
|
+
set({
|
|
3624
|
+
isOpen: arg
|
|
3625
|
+
});
|
|
3626
|
+
}
|
|
6056
3627
|
}
|
|
6057
|
-
|
|
6058
|
-
|
|
3628
|
+
};
|
|
3629
|
+
});
|
|
3630
|
+
var useKeyboardShortcutsPaneState = function useKeyboardShortcutsPaneState() {
|
|
3631
|
+
return useKeyboardShortcutsStore(function (_ref) {
|
|
3632
|
+
var isOpen = _ref.isOpen,
|
|
3633
|
+
setIsOpen = _ref.setIsOpen;
|
|
3634
|
+
return [isOpen, setIsOpen];
|
|
3635
|
+
}, shallow);
|
|
6059
3636
|
};
|
|
6060
3637
|
|
|
6061
|
-
var
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
return {
|
|
6076
|
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
|
|
6077
|
-
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults$1.allowPrototypes,
|
|
6078
|
-
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults$1.allowSparse,
|
|
6079
|
-
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults$1.arrayLimit,
|
|
6080
|
-
charset: charset,
|
|
6081
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
|
|
6082
|
-
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults$1.comma,
|
|
6083
|
-
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults$1.decoder,
|
|
6084
|
-
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults$1.delimiter,
|
|
6085
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
6086
|
-
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults$1.depth,
|
|
6087
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
6088
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults$1.interpretNumericEntities,
|
|
6089
|
-
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults$1.parameterLimit,
|
|
6090
|
-
parseArrays: opts.parseArrays !== false,
|
|
6091
|
-
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults$1.plainObjects,
|
|
6092
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
|
|
3638
|
+
var useOnClickOutside = function useOnClickOutside(ref, handler) {
|
|
3639
|
+
useEffect(function () {
|
|
3640
|
+
var listener = function listener(event) {
|
|
3641
|
+
// Do nothing if clicking ref's element or descendent elements
|
|
3642
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
3643
|
+
return;
|
|
3644
|
+
}
|
|
3645
|
+
handler(event);
|
|
3646
|
+
};
|
|
3647
|
+
document.addEventListener("mousedown", listener);
|
|
3648
|
+
document.addEventListener("touchstart", listener);
|
|
3649
|
+
return function () {
|
|
3650
|
+
document.removeEventListener("mousedown", listener);
|
|
3651
|
+
document.removeEventListener("touchstart", listener);
|
|
6093
3652
|
};
|
|
3653
|
+
}, [handler]);
|
|
6094
3654
|
};
|
|
6095
3655
|
|
|
6096
|
-
var
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6102
|
-
|
|
6103
|
-
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
6104
|
-
var obj = options.plainObjects ? Object.create(null) : {};
|
|
6105
|
-
|
|
6106
|
-
// Iterate over the keys and setup the new object
|
|
6107
|
-
|
|
6108
|
-
var keys = Object.keys(tempObj);
|
|
6109
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
6110
|
-
var key = keys[i];
|
|
6111
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
6112
|
-
obj = utils.merge(obj, newObj, options);
|
|
6113
|
-
}
|
|
3656
|
+
var usePrevious = function usePrevious(value) {
|
|
3657
|
+
var ref = useRef(value);
|
|
3658
|
+
useEffect(function () {
|
|
3659
|
+
ref.current = value;
|
|
3660
|
+
}, [value]);
|
|
3661
|
+
return ref.current;
|
|
3662
|
+
};
|
|
6114
3663
|
|
|
6115
|
-
|
|
6116
|
-
|
|
3664
|
+
var useUpdateEffect = function useUpdateEffect(callback) {
|
|
3665
|
+
var dependencies = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
|
|
3666
|
+
var isInitialMount = useRef(true);
|
|
3667
|
+
useEffect(function () {
|
|
3668
|
+
if (isInitialMount.current) {
|
|
3669
|
+
isInitialMount.current = false;
|
|
3670
|
+
return;
|
|
6117
3671
|
}
|
|
6118
|
-
|
|
6119
|
-
|
|
3672
|
+
callback();
|
|
3673
|
+
}, dependencies);
|
|
6120
3674
|
};
|
|
6121
3675
|
|
|
6122
|
-
var
|
|
6123
|
-
var
|
|
6124
|
-
var
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
formats: formats,
|
|
6128
|
-
parse: parse$4,
|
|
6129
|
-
stringify: stringify$3
|
|
3676
|
+
var DEFAULT_STALE_TIME = 60 * 60 * 1000;
|
|
3677
|
+
var DOMAIN_QUERY_KEY = "custom-domain";
|
|
3678
|
+
var ENTITY_COUNT = {
|
|
3679
|
+
singular: 1,
|
|
3680
|
+
plural: 2
|
|
6130
3681
|
};
|
|
6131
3682
|
|
|
6132
|
-
var
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
_ref2$showToastr,
|
|
6136
|
-
showToastr,
|
|
6137
|
-
_ref2$message,
|
|
6138
|
-
message,
|
|
6139
|
-
textArea,
|
|
6140
|
-
_args = arguments;
|
|
6141
|
-
return regenerator.wrap(function _callee$(_context) {
|
|
6142
|
-
while (1) switch (_context.prev = _context.next) {
|
|
6143
|
-
case 0:
|
|
6144
|
-
_ref2 = _args.length > 1 && _args[1] !== undefined ? _args[1] : {}, _ref2$showToastr = _ref2.showToastr, showToastr = _ref2$showToastr === void 0 ? true : _ref2$showToastr, _ref2$message = _ref2.message, message = _ref2$message === void 0 ? i18next.t("neetoCommons.toastr.success.copiedToClipboard") : _ref2$message;
|
|
6145
|
-
_context.prev = 1;
|
|
6146
|
-
if (!(navigator.clipboard && window.isSecureContext)) {
|
|
6147
|
-
_context.next = 7;
|
|
6148
|
-
break;
|
|
6149
|
-
}
|
|
6150
|
-
_context.next = 5;
|
|
6151
|
-
return navigator.clipboard.writeText(text);
|
|
6152
|
-
case 5:
|
|
6153
|
-
_context.next = 17;
|
|
6154
|
-
break;
|
|
6155
|
-
case 7:
|
|
6156
|
-
textArea = document.createElement("textarea");
|
|
6157
|
-
textArea.value = text;
|
|
6158
|
-
textArea.style.top = "0";
|
|
6159
|
-
textArea.style.left = "0";
|
|
6160
|
-
textArea.style.position = "fixed";
|
|
6161
|
-
document.body.appendChild(textArea);
|
|
6162
|
-
textArea.focus();
|
|
6163
|
-
textArea.select();
|
|
6164
|
-
document.execCommand("copy");
|
|
6165
|
-
document.body.removeChild(textArea);
|
|
6166
|
-
case 17:
|
|
6167
|
-
showToastr && Toastr.success(message);
|
|
6168
|
-
_context.next = 23;
|
|
6169
|
-
break;
|
|
6170
|
-
case 20:
|
|
6171
|
-
_context.prev = 20;
|
|
6172
|
-
_context.t0 = _context["catch"](1);
|
|
6173
|
-
Toastr.error(_context.t0);
|
|
6174
|
-
case 23:
|
|
6175
|
-
case "end":
|
|
6176
|
-
return _context.stop();
|
|
6177
|
-
}
|
|
6178
|
-
}, _callee, null, [[1, 20]]);
|
|
6179
|
-
}));
|
|
6180
|
-
return function copyToClipboard(_x) {
|
|
6181
|
-
return _ref.apply(this, arguments);
|
|
6182
|
-
};
|
|
6183
|
-
}();
|
|
6184
|
-
var buildUrl = function buildUrl(route, params) {
|
|
6185
|
-
var placeHolders = [];
|
|
6186
|
-
toPairs(params).forEach(function (_ref3) {
|
|
6187
|
-
var _ref4 = _slicedToArray(_ref3, 2),
|
|
6188
|
-
key = _ref4[0],
|
|
6189
|
-
value = _ref4[1];
|
|
6190
|
-
if (route.includes(":".concat(key))) {
|
|
6191
|
-
placeHolders.push(key);
|
|
6192
|
-
route = route.replace(":".concat(key), encodeURIComponent(value));
|
|
6193
|
-
}
|
|
6194
|
-
});
|
|
6195
|
-
var queryParams = pipe(omit(placeHolders), preprocessForSerialization, lib.stringify)(params);
|
|
6196
|
-
return isEmpty(queryParams) ? route : "".concat(route, "?").concat(queryParams);
|
|
6197
|
-
};
|
|
6198
|
-
var joinHyphenCase = function joinHyphenCase() {
|
|
6199
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6200
|
-
args[_key] = arguments[_key];
|
|
6201
|
-
}
|
|
6202
|
-
return args.join(" ").replace(/\s+/g, "-").toLowerCase();
|
|
3683
|
+
var HOSTNAME_REGEX = /^(?!-)[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+/;
|
|
3684
|
+
var INITIAL_VALUES$1 = {
|
|
3685
|
+
hostname: ""
|
|
6203
3686
|
};
|
|
3687
|
+
var CUSTOM_DOMAIN_VALIDATION_SCHEMA = yup.object().shape({
|
|
3688
|
+
hostname: yup.string().required(t$1("neetoCommons.customDomain.formikValidation.required")).matches(HOSTNAME_REGEX, t$1("neetoCommons.customDomain.formikValidation.valid"))
|
|
3689
|
+
});
|
|
6204
3690
|
|
|
6205
3691
|
var classnames$1 = {exports: {}};
|
|
6206
3692
|
|
|
@@ -6417,37 +3903,6 @@ var Record = function Record(_ref) {
|
|
|
6417
3903
|
}));
|
|
6418
3904
|
};
|
|
6419
3905
|
|
|
6420
|
-
dayjs.extend(relativeTime);
|
|
6421
|
-
dayjs.extend(updateLocale);
|
|
6422
|
-
var timeFormat = {
|
|
6423
|
-
fromNow: function fromNow(time) {
|
|
6424
|
-
return dayjs(time).fromNow();
|
|
6425
|
-
},
|
|
6426
|
-
time: function time(_time) {
|
|
6427
|
-
return dayjs(_time).format("h:mm A");
|
|
6428
|
-
},
|
|
6429
|
-
date: function date(time) {
|
|
6430
|
-
return dayjs(time).format("MMM D, YYYY");
|
|
6431
|
-
},
|
|
6432
|
-
dateWeek: function dateWeek(time) {
|
|
6433
|
-
return dayjs(time).format("MMM D, YYYY ddd");
|
|
6434
|
-
},
|
|
6435
|
-
dateWeekWithoutYear: function dateWeekWithoutYear(time) {
|
|
6436
|
-
return dayjs(time).format("MMM D, ddd");
|
|
6437
|
-
},
|
|
6438
|
-
dateTime: function dateTime(time) {
|
|
6439
|
-
return dayjs(time).format("MMM D, YYYY h:mm A");
|
|
6440
|
-
},
|
|
6441
|
-
dateWeekTime: function dateWeekTime(time) {
|
|
6442
|
-
return dayjs(time).format("MMM D, YYYY ddd h:mm A");
|
|
6443
|
-
},
|
|
6444
|
-
extended: function extended(time) {
|
|
6445
|
-
var dateTime = dayjs(time).format("dddd MMMM D, YYYY h:mm A");
|
|
6446
|
-
var fromNow = dayjs(time).fromNow();
|
|
6447
|
-
return "".concat(dateTime, " (").concat(fromNow, ")");
|
|
6448
|
-
}
|
|
6449
|
-
};
|
|
6450
|
-
|
|
6451
3906
|
var CustomDomainInfo = function CustomDomainInfo(_ref) {
|
|
6452
3907
|
var time = _ref.time;
|
|
6453
3908
|
var _useTranslation = useTranslation(),
|
|
@@ -6466,7 +3921,7 @@ var CustomDomainInfo = function CustomDomainInfo(_ref) {
|
|
|
6466
3921
|
icon: Info$3,
|
|
6467
3922
|
style: "info"
|
|
6468
3923
|
}, t("neetoCommons.customDomain.messageBlock.cnameAddedTime", {
|
|
6469
|
-
time: timeFormat.fromNow(time)
|
|
3924
|
+
time: timeFormat$1.fromNow(time)
|
|
6470
3925
|
})));
|
|
6471
3926
|
};
|
|
6472
3927
|
|
|
@@ -6820,7 +4275,7 @@ var CustomDomain = function CustomDomain(_ref) {
|
|
|
6820
4275
|
}));
|
|
6821
4276
|
};
|
|
6822
4277
|
|
|
6823
|
-
var DateFormat = fromPairs(keys(timeFormat).map(function (key) {
|
|
4278
|
+
var DateFormat = fromPairs(keys(timeFormat$1).map(function (key) {
|
|
6824
4279
|
return [capitalize(key), function (_ref) {
|
|
6825
4280
|
var date = _ref.date,
|
|
6826
4281
|
_ref$tooltipProps = _ref.tooltipProps,
|
|
@@ -6830,9 +4285,9 @@ var DateFormat = fromPairs(keys(timeFormat).map(function (key) {
|
|
|
6830
4285
|
var dateDisplay = /*#__PURE__*/React__default.createElement(Typography, _extends$4({
|
|
6831
4286
|
component: "span",
|
|
6832
4287
|
style: "body2"
|
|
6833
|
-
}, typographyProps), timeFormat[key](date));
|
|
4288
|
+
}, typographyProps), timeFormat$1[key](date));
|
|
6834
4289
|
return key === "extended" ? dateDisplay : /*#__PURE__*/React__default.createElement(Tooltip, _extends$4({
|
|
6835
|
-
content: timeFormat.extended(date),
|
|
4290
|
+
content: timeFormat$1.extended(date),
|
|
6836
4291
|
position: "top"
|
|
6837
4292
|
}, tooltipProps), dateDisplay);
|
|
6838
4293
|
}];
|
|
@@ -10432,19 +7887,6 @@ var IpRestriction = function IpRestriction() {
|
|
|
10432
7887
|
}, /*#__PURE__*/React__default.createElement(CurrentIp, null), /*#__PURE__*/React__default.createElement(AllowedIpRanges, null)));
|
|
10433
7888
|
};
|
|
10434
7889
|
|
|
10435
|
-
var getGlobalShortcuts = function getGlobalShortcuts() {
|
|
10436
|
-
return _defineProperty({}, i18next.t("neetoCommons.keyboardShortcuts.global.categoryName"), {
|
|
10437
|
-
openKeyboardShortcutsPane: {
|
|
10438
|
-
sequence: "shift+/",
|
|
10439
|
-
description: i18next.t("neetoCommons.keyboardShortcuts.global.openKeyboardShortcutsPane")
|
|
10440
|
-
},
|
|
10441
|
-
close: {
|
|
10442
|
-
sequence: "esc",
|
|
10443
|
-
description: i18next.t("neetoCommons.keyboardShortcuts.global.close")
|
|
10444
|
-
}
|
|
10445
|
-
});
|
|
10446
|
-
};
|
|
10447
|
-
|
|
10448
7890
|
var DisplayHotKey = function DisplayHotKey(_ref) {
|
|
10449
7891
|
var hotkey = _ref.hotkey;
|
|
10450
7892
|
var isSequentialHotkey = hotkey.includes(" ");
|
|
@@ -10487,6 +7929,18 @@ var shortenHotKey = function shortenHotKey(hotkey) {
|
|
|
10487
7929
|
});
|
|
10488
7930
|
return result;
|
|
10489
7931
|
};
|
|
7932
|
+
var getGlobalShortcuts = function getGlobalShortcuts() {
|
|
7933
|
+
return _defineProperty({}, i18next.t("neetoCommons.keyboardShortcuts.global.categoryName"), {
|
|
7934
|
+
openKeyboardShortcutsPane: {
|
|
7935
|
+
sequence: "shift+/",
|
|
7936
|
+
description: i18next.t("neetoCommons.keyboardShortcuts.global.openKeyboardShortcutsPane")
|
|
7937
|
+
},
|
|
7938
|
+
close: {
|
|
7939
|
+
sequence: "esc",
|
|
7940
|
+
description: i18next.t("neetoCommons.keyboardShortcuts.global.close")
|
|
7941
|
+
}
|
|
7942
|
+
});
|
|
7943
|
+
};
|
|
10490
7944
|
|
|
10491
7945
|
var HotKeyList = function HotKeyList(_ref) {
|
|
10492
7946
|
var hotkeys = _ref.hotkeys;
|
|
@@ -10530,7 +7984,9 @@ var KeyboardShortcutsPane = function KeyboardShortcutsPane(_ref) {
|
|
|
10530
7984
|
setIsOpen = _useKeyboardShortcuts2[1];
|
|
10531
7985
|
var hasOverlays = manager.hasOverlays();
|
|
10532
7986
|
var GLOBAL_SHORTCUTS = getGlobalShortcuts();
|
|
10533
|
-
var
|
|
7987
|
+
var _useTranslation = useTranslation(),
|
|
7988
|
+
t = _useTranslation.t;
|
|
7989
|
+
var shortcuts = GLOBAL_SHORTCUTS[t("neetoCommons.keyboardShortcuts.global.categoryName")];
|
|
10534
7990
|
useHotKeys(shortcuts.openKeyboardShortcutsPane.sequence, function () {
|
|
10535
7991
|
return setIsOpen(function (prevIsOpen) {
|
|
10536
7992
|
return !prevIsOpen;
|
|
@@ -10545,7 +8001,7 @@ var KeyboardShortcutsPane = function KeyboardShortcutsPane(_ref) {
|
|
|
10545
8001
|
});
|
|
10546
8002
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10547
8003
|
className: classnames("neeto-commons-keyboard-shortcuts-pane neeto-ui-border-gray-300 transition-width ml-auto min-h-screen border-l bg-white duration-300 ease-in-out overflow-y-scroll", {
|
|
10548
|
-
"w-
|
|
8004
|
+
"w-80": isOpen,
|
|
10549
8005
|
"w-0": !isOpen,
|
|
10550
8006
|
absolute: hasOverlays,
|
|
10551
8007
|
"right-0": hasOverlays
|
|
@@ -10556,7 +8012,7 @@ var KeyboardShortcutsPane = function KeyboardShortcutsPane(_ref) {
|
|
|
10556
8012
|
className: "neeto-ui-border-gray-300 my-2 flex items-center justify-between border-b px-4 pb-2"
|
|
10557
8013
|
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
10558
8014
|
style: "h4"
|
|
10559
|
-
},
|
|
8015
|
+
}, t("neetoCommons.keyboardShortcuts.title")), /*#__PURE__*/React__default.createElement(Button, {
|
|
10560
8016
|
icon: Close,
|
|
10561
8017
|
style: "text",
|
|
10562
8018
|
onClick: function onClick() {
|
|
@@ -11658,7 +9114,7 @@ class TokenTreeEmitter extends TokenTree {
|
|
|
11658
9114
|
* @param {string} value
|
|
11659
9115
|
* @returns {RegExp}
|
|
11660
9116
|
* */
|
|
11661
|
-
function escape
|
|
9117
|
+
function escape(value) {
|
|
11662
9118
|
return new RegExp(value.replace(/[-/\\^$*+?.()|[\]{}]/g, '\\$&'), 'm');
|
|
11663
9119
|
}
|
|
11664
9120
|
|
|
@@ -12819,7 +10275,7 @@ Syntax highlighting with language autodetection.
|
|
|
12819
10275
|
https://highlightjs.org/
|
|
12820
10276
|
*/
|
|
12821
10277
|
|
|
12822
|
-
const escape$1
|
|
10278
|
+
const escape$1 = escapeHTML;
|
|
12823
10279
|
const inherit$1 = inherit;
|
|
12824
10280
|
const NO_MATCH = Symbol("nomatch");
|
|
12825
10281
|
|
|
@@ -13129,7 +10585,7 @@ const HLJS = function(hljs) {
|
|
|
13129
10585
|
}
|
|
13130
10586
|
|
|
13131
10587
|
if (newMode && newMode.endSameAsBegin) {
|
|
13132
|
-
newMode.endRe = escape
|
|
10588
|
+
newMode.endRe = escape(lexeme);
|
|
13133
10589
|
}
|
|
13134
10590
|
|
|
13135
10591
|
if (newMode.skip) {
|
|
@@ -13358,14 +10814,14 @@ const HLJS = function(hljs) {
|
|
|
13358
10814
|
},
|
|
13359
10815
|
sofar: result,
|
|
13360
10816
|
relevance: 0,
|
|
13361
|
-
value: escape$1
|
|
10817
|
+
value: escape$1(codeToHighlight),
|
|
13362
10818
|
emitter: emitter
|
|
13363
10819
|
};
|
|
13364
10820
|
} else if (SAFE_MODE) {
|
|
13365
10821
|
return {
|
|
13366
10822
|
illegal: false,
|
|
13367
10823
|
relevance: 0,
|
|
13368
|
-
value: escape$1
|
|
10824
|
+
value: escape$1(codeToHighlight),
|
|
13369
10825
|
emitter: emitter,
|
|
13370
10826
|
language: languageName,
|
|
13371
10827
|
top: top,
|
|
@@ -13388,7 +10844,7 @@ const HLJS = function(hljs) {
|
|
|
13388
10844
|
const result = {
|
|
13389
10845
|
relevance: 0,
|
|
13390
10846
|
emitter: new options.__emitter(options),
|
|
13391
|
-
value: escape$1
|
|
10847
|
+
value: escape$1(code),
|
|
13392
10848
|
illegal: false,
|
|
13393
10849
|
top: PLAINTEXT_LANGUAGE
|
|
13394
10850
|
};
|
|
@@ -59088,6 +56544,37 @@ var supportedLanguages$1 = ['1c', 'abnf', 'accesslog', 'actionscript', 'ada', 'a
|
|
|
59088
56544
|
var highlighter$1 = highlight$3(lowlight, defaultStyle$1);
|
|
59089
56545
|
highlighter$1.supportedLanguages = supportedLanguages$1;
|
|
59090
56546
|
|
|
56547
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
56548
|
+
try {
|
|
56549
|
+
var info = gen[key](arg);
|
|
56550
|
+
var value = info.value;
|
|
56551
|
+
} catch (error) {
|
|
56552
|
+
reject(error);
|
|
56553
|
+
return;
|
|
56554
|
+
}
|
|
56555
|
+
if (info.done) {
|
|
56556
|
+
resolve(value);
|
|
56557
|
+
} else {
|
|
56558
|
+
Promise.resolve(value).then(_next, _throw);
|
|
56559
|
+
}
|
|
56560
|
+
}
|
|
56561
|
+
function _asyncToGenerator(fn) {
|
|
56562
|
+
return function () {
|
|
56563
|
+
var self = this,
|
|
56564
|
+
args = arguments;
|
|
56565
|
+
return new Promise(function (resolve, reject) {
|
|
56566
|
+
var gen = fn.apply(self, args);
|
|
56567
|
+
function _next(value) {
|
|
56568
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
56569
|
+
}
|
|
56570
|
+
function _throw(err) {
|
|
56571
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
56572
|
+
}
|
|
56573
|
+
_next(undefined);
|
|
56574
|
+
});
|
|
56575
|
+
};
|
|
56576
|
+
}
|
|
56577
|
+
|
|
59091
56578
|
function _classCallCheck(instance, Constructor) {
|
|
59092
56579
|
if (!(instance instanceof Constructor)) {
|
|
59093
56580
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -59160,6 +56647,345 @@ function _getPrototypeOf(o) {
|
|
|
59160
56647
|
return _getPrototypeOf(o);
|
|
59161
56648
|
}
|
|
59162
56649
|
|
|
56650
|
+
var regeneratorRuntime$1 = {exports: {}};
|
|
56651
|
+
|
|
56652
|
+
var _typeof = {exports: {}};
|
|
56653
|
+
|
|
56654
|
+
(function (module) {
|
|
56655
|
+
function _typeof(obj) {
|
|
56656
|
+
"@babel/helpers - typeof";
|
|
56657
|
+
|
|
56658
|
+
return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
56659
|
+
return typeof obj;
|
|
56660
|
+
} : function (obj) {
|
|
56661
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
56662
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
|
|
56663
|
+
}
|
|
56664
|
+
module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
56665
|
+
} (_typeof));
|
|
56666
|
+
|
|
56667
|
+
(function (module) {
|
|
56668
|
+
var _typeof$1 = _typeof.exports["default"];
|
|
56669
|
+
function _regeneratorRuntime() {
|
|
56670
|
+
module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
|
|
56671
|
+
return exports;
|
|
56672
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
56673
|
+
var exports = {},
|
|
56674
|
+
Op = Object.prototype,
|
|
56675
|
+
hasOwn = Op.hasOwnProperty,
|
|
56676
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
56677
|
+
obj[key] = desc.value;
|
|
56678
|
+
},
|
|
56679
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
56680
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
56681
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
56682
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
56683
|
+
function define(obj, key, value) {
|
|
56684
|
+
return Object.defineProperty(obj, key, {
|
|
56685
|
+
value: value,
|
|
56686
|
+
enumerable: !0,
|
|
56687
|
+
configurable: !0,
|
|
56688
|
+
writable: !0
|
|
56689
|
+
}), obj[key];
|
|
56690
|
+
}
|
|
56691
|
+
try {
|
|
56692
|
+
define({}, "");
|
|
56693
|
+
} catch (err) {
|
|
56694
|
+
define = function define(obj, key, value) {
|
|
56695
|
+
return obj[key] = value;
|
|
56696
|
+
};
|
|
56697
|
+
}
|
|
56698
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
56699
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
56700
|
+
generator = Object.create(protoGenerator.prototype),
|
|
56701
|
+
context = new Context(tryLocsList || []);
|
|
56702
|
+
return defineProperty(generator, "_invoke", {
|
|
56703
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
56704
|
+
}), generator;
|
|
56705
|
+
}
|
|
56706
|
+
function tryCatch(fn, obj, arg) {
|
|
56707
|
+
try {
|
|
56708
|
+
return {
|
|
56709
|
+
type: "normal",
|
|
56710
|
+
arg: fn.call(obj, arg)
|
|
56711
|
+
};
|
|
56712
|
+
} catch (err) {
|
|
56713
|
+
return {
|
|
56714
|
+
type: "throw",
|
|
56715
|
+
arg: err
|
|
56716
|
+
};
|
|
56717
|
+
}
|
|
56718
|
+
}
|
|
56719
|
+
exports.wrap = wrap;
|
|
56720
|
+
var ContinueSentinel = {};
|
|
56721
|
+
function Generator() {}
|
|
56722
|
+
function GeneratorFunction() {}
|
|
56723
|
+
function GeneratorFunctionPrototype() {}
|
|
56724
|
+
var IteratorPrototype = {};
|
|
56725
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
56726
|
+
return this;
|
|
56727
|
+
});
|
|
56728
|
+
var getProto = Object.getPrototypeOf,
|
|
56729
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
56730
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
56731
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
56732
|
+
function defineIteratorMethods(prototype) {
|
|
56733
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
56734
|
+
define(prototype, method, function (arg) {
|
|
56735
|
+
return this._invoke(method, arg);
|
|
56736
|
+
});
|
|
56737
|
+
});
|
|
56738
|
+
}
|
|
56739
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
56740
|
+
function invoke(method, arg, resolve, reject) {
|
|
56741
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
56742
|
+
if ("throw" !== record.type) {
|
|
56743
|
+
var result = record.arg,
|
|
56744
|
+
value = result.value;
|
|
56745
|
+
return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
56746
|
+
invoke("next", value, resolve, reject);
|
|
56747
|
+
}, function (err) {
|
|
56748
|
+
invoke("throw", err, resolve, reject);
|
|
56749
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
56750
|
+
result.value = unwrapped, resolve(result);
|
|
56751
|
+
}, function (error) {
|
|
56752
|
+
return invoke("throw", error, resolve, reject);
|
|
56753
|
+
});
|
|
56754
|
+
}
|
|
56755
|
+
reject(record.arg);
|
|
56756
|
+
}
|
|
56757
|
+
var previousPromise;
|
|
56758
|
+
defineProperty(this, "_invoke", {
|
|
56759
|
+
value: function value(method, arg) {
|
|
56760
|
+
function callInvokeWithMethodAndArg() {
|
|
56761
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
56762
|
+
invoke(method, arg, resolve, reject);
|
|
56763
|
+
});
|
|
56764
|
+
}
|
|
56765
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
56766
|
+
}
|
|
56767
|
+
});
|
|
56768
|
+
}
|
|
56769
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
56770
|
+
var state = "suspendedStart";
|
|
56771
|
+
return function (method, arg) {
|
|
56772
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
56773
|
+
if ("completed" === state) {
|
|
56774
|
+
if ("throw" === method) throw arg;
|
|
56775
|
+
return doneResult();
|
|
56776
|
+
}
|
|
56777
|
+
for (context.method = method, context.arg = arg;;) {
|
|
56778
|
+
var delegate = context.delegate;
|
|
56779
|
+
if (delegate) {
|
|
56780
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
56781
|
+
if (delegateResult) {
|
|
56782
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
56783
|
+
return delegateResult;
|
|
56784
|
+
}
|
|
56785
|
+
}
|
|
56786
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
56787
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
56788
|
+
context.dispatchException(context.arg);
|
|
56789
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
56790
|
+
state = "executing";
|
|
56791
|
+
var record = tryCatch(innerFn, self, context);
|
|
56792
|
+
if ("normal" === record.type) {
|
|
56793
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
56794
|
+
return {
|
|
56795
|
+
value: record.arg,
|
|
56796
|
+
done: context.done
|
|
56797
|
+
};
|
|
56798
|
+
}
|
|
56799
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
56800
|
+
}
|
|
56801
|
+
};
|
|
56802
|
+
}
|
|
56803
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
56804
|
+
var methodName = context.method,
|
|
56805
|
+
method = delegate.iterator[methodName];
|
|
56806
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
56807
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
56808
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
56809
|
+
var info = record.arg;
|
|
56810
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
56811
|
+
}
|
|
56812
|
+
function pushTryEntry(locs) {
|
|
56813
|
+
var entry = {
|
|
56814
|
+
tryLoc: locs[0]
|
|
56815
|
+
};
|
|
56816
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
56817
|
+
}
|
|
56818
|
+
function resetTryEntry(entry) {
|
|
56819
|
+
var record = entry.completion || {};
|
|
56820
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
56821
|
+
}
|
|
56822
|
+
function Context(tryLocsList) {
|
|
56823
|
+
this.tryEntries = [{
|
|
56824
|
+
tryLoc: "root"
|
|
56825
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
56826
|
+
}
|
|
56827
|
+
function values(iterable) {
|
|
56828
|
+
if (iterable) {
|
|
56829
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
56830
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
56831
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
56832
|
+
if (!isNaN(iterable.length)) {
|
|
56833
|
+
var i = -1,
|
|
56834
|
+
next = function next() {
|
|
56835
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
56836
|
+
return next.value = undefined, next.done = !0, next;
|
|
56837
|
+
};
|
|
56838
|
+
return next.next = next;
|
|
56839
|
+
}
|
|
56840
|
+
}
|
|
56841
|
+
return {
|
|
56842
|
+
next: doneResult
|
|
56843
|
+
};
|
|
56844
|
+
}
|
|
56845
|
+
function doneResult() {
|
|
56846
|
+
return {
|
|
56847
|
+
value: undefined,
|
|
56848
|
+
done: !0
|
|
56849
|
+
};
|
|
56850
|
+
}
|
|
56851
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
56852
|
+
value: GeneratorFunctionPrototype,
|
|
56853
|
+
configurable: !0
|
|
56854
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
56855
|
+
value: GeneratorFunction,
|
|
56856
|
+
configurable: !0
|
|
56857
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
56858
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
56859
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
56860
|
+
}, exports.mark = function (genFun) {
|
|
56861
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
56862
|
+
}, exports.awrap = function (arg) {
|
|
56863
|
+
return {
|
|
56864
|
+
__await: arg
|
|
56865
|
+
};
|
|
56866
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
56867
|
+
return this;
|
|
56868
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
56869
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
56870
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
56871
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
56872
|
+
return result.done ? result.value : iter.next();
|
|
56873
|
+
});
|
|
56874
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
56875
|
+
return this;
|
|
56876
|
+
}), define(Gp, "toString", function () {
|
|
56877
|
+
return "[object Generator]";
|
|
56878
|
+
}), exports.keys = function (val) {
|
|
56879
|
+
var object = Object(val),
|
|
56880
|
+
keys = [];
|
|
56881
|
+
for (var key in object) keys.push(key);
|
|
56882
|
+
return keys.reverse(), function next() {
|
|
56883
|
+
for (; keys.length;) {
|
|
56884
|
+
var key = keys.pop();
|
|
56885
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
56886
|
+
}
|
|
56887
|
+
return next.done = !0, next;
|
|
56888
|
+
};
|
|
56889
|
+
}, exports.values = values, Context.prototype = {
|
|
56890
|
+
constructor: Context,
|
|
56891
|
+
reset: function reset(skipTempReset) {
|
|
56892
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
56893
|
+
},
|
|
56894
|
+
stop: function stop() {
|
|
56895
|
+
this.done = !0;
|
|
56896
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
56897
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
56898
|
+
return this.rval;
|
|
56899
|
+
},
|
|
56900
|
+
dispatchException: function dispatchException(exception) {
|
|
56901
|
+
if (this.done) throw exception;
|
|
56902
|
+
var context = this;
|
|
56903
|
+
function handle(loc, caught) {
|
|
56904
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
56905
|
+
}
|
|
56906
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
56907
|
+
var entry = this.tryEntries[i],
|
|
56908
|
+
record = entry.completion;
|
|
56909
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
56910
|
+
if (entry.tryLoc <= this.prev) {
|
|
56911
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
56912
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
56913
|
+
if (hasCatch && hasFinally) {
|
|
56914
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
56915
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
56916
|
+
} else if (hasCatch) {
|
|
56917
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
56918
|
+
} else {
|
|
56919
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
56920
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
56921
|
+
}
|
|
56922
|
+
}
|
|
56923
|
+
}
|
|
56924
|
+
},
|
|
56925
|
+
abrupt: function abrupt(type, arg) {
|
|
56926
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
56927
|
+
var entry = this.tryEntries[i];
|
|
56928
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
56929
|
+
var finallyEntry = entry;
|
|
56930
|
+
break;
|
|
56931
|
+
}
|
|
56932
|
+
}
|
|
56933
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
56934
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
56935
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
56936
|
+
},
|
|
56937
|
+
complete: function complete(record, afterLoc) {
|
|
56938
|
+
if ("throw" === record.type) throw record.arg;
|
|
56939
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
56940
|
+
},
|
|
56941
|
+
finish: function finish(finallyLoc) {
|
|
56942
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
56943
|
+
var entry = this.tryEntries[i];
|
|
56944
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
56945
|
+
}
|
|
56946
|
+
},
|
|
56947
|
+
"catch": function _catch(tryLoc) {
|
|
56948
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
56949
|
+
var entry = this.tryEntries[i];
|
|
56950
|
+
if (entry.tryLoc === tryLoc) {
|
|
56951
|
+
var record = entry.completion;
|
|
56952
|
+
if ("throw" === record.type) {
|
|
56953
|
+
var thrown = record.arg;
|
|
56954
|
+
resetTryEntry(entry);
|
|
56955
|
+
}
|
|
56956
|
+
return thrown;
|
|
56957
|
+
}
|
|
56958
|
+
}
|
|
56959
|
+
throw new Error("illegal catch attempt");
|
|
56960
|
+
},
|
|
56961
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
56962
|
+
return this.delegate = {
|
|
56963
|
+
iterator: values(iterable),
|
|
56964
|
+
resultName: resultName,
|
|
56965
|
+
nextLoc: nextLoc
|
|
56966
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
56967
|
+
}
|
|
56968
|
+
}, exports;
|
|
56969
|
+
}
|
|
56970
|
+
module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
56971
|
+
} (regeneratorRuntime$1));
|
|
56972
|
+
|
|
56973
|
+
// TODO(Babel 8): Remove this file.
|
|
56974
|
+
|
|
56975
|
+
var runtime = regeneratorRuntime$1.exports();
|
|
56976
|
+
var regenerator = runtime;
|
|
56977
|
+
|
|
56978
|
+
// Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
|
|
56979
|
+
try {
|
|
56980
|
+
regeneratorRuntime = runtime;
|
|
56981
|
+
} catch (accidentalStrictMode) {
|
|
56982
|
+
if (typeof globalThis === "object") {
|
|
56983
|
+
globalThis.regeneratorRuntime = runtime;
|
|
56984
|
+
} else {
|
|
56985
|
+
Function("r", "regeneratorRuntime = r")(runtime);
|
|
56986
|
+
}
|
|
56987
|
+
}
|
|
56988
|
+
|
|
59163
56989
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
59164
56990
|
|
|
59165
56991
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
@@ -93777,6 +91603,37 @@ var PublishBlock = function PublishBlock(_ref) {
|
|
|
93777
91603
|
};
|
|
93778
91604
|
PublishBlock.Alert = AlertBlock;
|
|
93779
91605
|
|
|
91606
|
+
dayjs.extend(relativeTime);
|
|
91607
|
+
dayjs.extend(updateLocale);
|
|
91608
|
+
var timeFormat = {
|
|
91609
|
+
fromNow: function fromNow(time) {
|
|
91610
|
+
return dayjs(time).fromNow();
|
|
91611
|
+
},
|
|
91612
|
+
time: function time(_time) {
|
|
91613
|
+
return dayjs(_time).format("h:mm A");
|
|
91614
|
+
},
|
|
91615
|
+
date: function date(time) {
|
|
91616
|
+
return dayjs(time).format("MMM D, YYYY");
|
|
91617
|
+
},
|
|
91618
|
+
dateWeek: function dateWeek(time) {
|
|
91619
|
+
return dayjs(time).format("MMM D, YYYY ddd");
|
|
91620
|
+
},
|
|
91621
|
+
dateWeekWithoutYear: function dateWeekWithoutYear(time) {
|
|
91622
|
+
return dayjs(time).format("MMM D, ddd");
|
|
91623
|
+
},
|
|
91624
|
+
dateTime: function dateTime(time) {
|
|
91625
|
+
return dayjs(time).format("MMM D, YYYY h:mm A");
|
|
91626
|
+
},
|
|
91627
|
+
dateWeekTime: function dateWeekTime(time) {
|
|
91628
|
+
return dayjs(time).format("MMM D, YYYY ddd h:mm A");
|
|
91629
|
+
},
|
|
91630
|
+
extended: function extended(time) {
|
|
91631
|
+
var dateTime = dayjs(time).format("dddd MMMM D, YYYY h:mm A");
|
|
91632
|
+
var fromNow = dayjs(time).fromNow();
|
|
91633
|
+
return "".concat(dateTime, " (").concat(fromNow, ")");
|
|
91634
|
+
}
|
|
91635
|
+
};
|
|
91636
|
+
|
|
93780
91637
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
93781
91638
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
93782
91639
|
var REMOVE_SELECT_DOWN_ARROW = {
|
|
@@ -93795,6 +91652,7 @@ var BLUR_TEXT_WHEN_SELECT_MENU_IS_OPEN = {
|
|
|
93795
91652
|
}
|
|
93796
91653
|
};
|
|
93797
91654
|
var SLOT_TIME_FORMAT = "hh:mm A";
|
|
91655
|
+
var END_OF_DAY = "11:59 PM";
|
|
93798
91656
|
|
|
93799
91657
|
var INTERVALS = ["year", "quarter", "month", "week", "day", "hour", "minute", "second"];
|
|
93800
91658
|
|
|
@@ -94078,6 +91936,7 @@ var buildSlotIntervals = function buildSlotIntervals(_ref) {
|
|
|
94078
91936
|
value: selectedValue
|
|
94079
91937
|
};
|
|
94080
91938
|
var allIntervalsForADay = dayjsExtended.timeIntervalsForDay(interval);
|
|
91939
|
+
allIntervalsForADay.push(END_OF_DAY);
|
|
94081
91940
|
var uniqBookedSlots = uniq(pluck(slotType, bookedSlots));
|
|
94082
91941
|
var slotsAvailableForBooking = difference(allIntervalsForADay, uniqBookedSlots);
|
|
94083
91942
|
var slots = slotsAvailableForBooking.map(toLabelAndValue);
|
|
@@ -94261,7 +92120,7 @@ var Form = function Form(_ref) {
|
|
|
94261
92120
|
setFieldValue("wdays[".concat(index, "].available"), true);
|
|
94262
92121
|
if ((_deletedPeriods$ = deletedPeriods[0]) !== null && _deletedPeriods$ !== void 0 && _deletedPeriods$.startTime) {
|
|
94263
92122
|
restoreDeletedPeriods(setFieldValue);
|
|
94264
|
-
} else if (isNotPresent(values.wdays[index].periods)) {
|
|
92123
|
+
} else if (isNotPresent$1(values.wdays[index].periods)) {
|
|
94265
92124
|
setFieldValue("wdays[".concat(index, "].periods"), [addDefaultPeriod(day)]);
|
|
94266
92125
|
} else {
|
|
94267
92126
|
setFieldValue("wdays[".concat(index, "].periods"), [""]);
|
|
@@ -94341,7 +92200,7 @@ var Form = function Form(_ref) {
|
|
|
94341
92200
|
}
|
|
94342
92201
|
})));
|
|
94343
92202
|
}), /*#__PURE__*/React__default.createElement("li", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
94344
|
-
disabled: isNotPresent(wdaysToCopy),
|
|
92203
|
+
disabled: isNotPresent$1(wdaysToCopy),
|
|
94345
92204
|
label: "Submit",
|
|
94346
92205
|
size: "small",
|
|
94347
92206
|
onClick: function onClick() {
|
|
@@ -94592,6 +92451,7 @@ var Link = function Link(_ref) {
|
|
|
94592
92451
|
entityName = _ref.entityName,
|
|
94593
92452
|
handleRegenerate = _ref.handleRegenerate,
|
|
94594
92453
|
isRegenerating = _ref.isRegenerating,
|
|
92454
|
+
previewUrl = _ref.previewUrl,
|
|
94595
92455
|
url = _ref.url;
|
|
94596
92456
|
var _useState = useState(false),
|
|
94597
92457
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -94630,7 +92490,7 @@ var Link = function Link(_ref) {
|
|
|
94630
92490
|
}
|
|
94631
92491
|
}), /*#__PURE__*/React__default.createElement(Button, {
|
|
94632
92492
|
"data-testid": "preview-button",
|
|
94633
|
-
href: url,
|
|
92493
|
+
href: previewUrl || url,
|
|
94634
92494
|
icon: ExternalLink,
|
|
94635
92495
|
style: "secondary",
|
|
94636
92496
|
target: "_blank",
|
|
@@ -94659,20 +92519,6 @@ var Link = function Link(_ref) {
|
|
|
94659
92519
|
}))));
|
|
94660
92520
|
};
|
|
94661
92521
|
|
|
94662
|
-
var HEADERS_KEYS = {
|
|
94663
|
-
xAuthEmail: "X-Auth-Email",
|
|
94664
|
-
xAuthToken: "X-Auth-Token",
|
|
94665
|
-
xCsrfToken: "X-CSRF-TOKEN",
|
|
94666
|
-
contentType: "Content-Type",
|
|
94667
|
-
accept: "Accept"
|
|
94668
|
-
};
|
|
94669
|
-
|
|
94670
|
-
var resetAuthTokens = function resetAuthTokens() {
|
|
94671
|
-
values(HEADERS_KEYS).forEach(function (header) {
|
|
94672
|
-
delete axios$1.defaults.headers[header];
|
|
94673
|
-
});
|
|
94674
|
-
};
|
|
94675
|
-
|
|
94676
92522
|
var facebookShareLink = function facebookShareLink(_ref) {
|
|
94677
92523
|
var id = _ref.id;
|
|
94678
92524
|
return buildUrl("https://www.facebook.com/sharer/sharer.php", {
|
|
@@ -95706,6 +93552,8 @@ var ShareViaLink = function ShareViaLink(_ref) {
|
|
|
95706
93552
|
entityName = _ref.entityName,
|
|
95707
93553
|
_ref$handleRegenerate = _ref.handleRegenerate,
|
|
95708
93554
|
handleRegenerate = _ref$handleRegenerate === void 0 ? noop$2 : _ref$handleRegenerate,
|
|
93555
|
+
_ref$previewUrl = _ref.previewUrl,
|
|
93556
|
+
previewUrl = _ref$previewUrl === void 0 ? "" : _ref$previewUrl,
|
|
95709
93557
|
socialMediaPostTitle = _ref.socialMediaPostTitle,
|
|
95710
93558
|
url = _ref.url;
|
|
95711
93559
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -95716,6 +93564,7 @@ var ShareViaLink = function ShareViaLink(_ref) {
|
|
|
95716
93564
|
entityName: entityName,
|
|
95717
93565
|
handleRegenerate: handleRegenerate,
|
|
95718
93566
|
isRegenerating: isRegenerating,
|
|
93567
|
+
previewUrl: previewUrl,
|
|
95719
93568
|
url: url
|
|
95720
93569
|
}), /*#__PURE__*/React__default.createElement(SocialMedia, {
|
|
95721
93570
|
entity: entity,
|
|
@@ -95824,7 +93673,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
95824
93673
|
icon: Help,
|
|
95825
93674
|
label: i18next.t("neetoCommons.sidebar.help"),
|
|
95826
93675
|
onClick: function onClick() {
|
|
95827
|
-
return window.open("https://neeto".concat(toLower(appName), "
|
|
93676
|
+
return window.open("https://help.neeto".concat(toLower(appName), ".com/"), "_blank");
|
|
95828
93677
|
}
|
|
95829
93678
|
},
|
|
95830
93679
|
changelogProps: {
|
|
@@ -95855,7 +93704,7 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
95855
93704
|
|
|
95856
93705
|
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
95857
93706
|
|
|
95858
|
-
var css$1 = ".neeto-commons-publish-block{align-items:center;display:flex;gap:12px;justify-content:flex-end}.neeto-commons-publish-block__action-btn{align-items:center;display:inline-flex;flex-direction:row;gap:1px;justify-content:center}.neeto-commons-publish-block__action-btn>.neeto-ui-btn:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.neeto-commons-publish-block__action-btn>.neeto-ui-btn:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.neeto-commons-keyboard-shortcuts-pane{z-index:calc(var(--neeto-ui-modal-z-index) + 1)}";
|
|
93707
|
+
var css$1 = ".neeto-commons-publish-block{align-items:center;display:flex;gap:12px;justify-content:flex-end}.neeto-commons-publish-block__action-btn{align-items:center;display:inline-flex;flex-direction:row;gap:1px;justify-content:center}.neeto-commons-publish-block__action-btn>.neeto-ui-btn:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.neeto-commons-publish-block__action-btn>.neeto-ui-btn:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.neeto-commons-keyboard-shortcuts-pane{flex-grow:0;flex-shrink:0;z-index:calc(var(--neeto-ui-modal-z-index) + 1)}";
|
|
95859
93708
|
n(css$1,{});
|
|
95860
93709
|
|
|
95861
93710
|
var NeetoWidget = {
|