sanity-plugin-workflow 1.0.2 → 1.0.3

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/lib/index.esm.js CHANGED
@@ -1,9 +1,7 @@
1
- var _templateObject, _templateObject2, _templateObject3;
2
- function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
3
1
  import { useClient, useCurrentUser, useValidationStatus, useSchema, Preview, useFormValue, defineType, defineField, UserAvatar, useTimeAgo, TextWithTone, definePlugin, isObjectInputProps } from 'sanity';
4
2
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
3
  import { UsersIcon, SplitVerticalIcon, CheckmarkIcon, ArrowRightIcon, ArrowLeftIcon, EditIcon, AddIcon, PublishIcon, ErrorOutlineIcon, WarningOutlineIcon, DragHandleIcon, UserIcon, ResetIcon, InfoOutlineIcon } from '@sanity/icons';
6
- import React, { useMemo, createContext, useContext, useState, useCallback, useEffect, useRef } from 'react';
4
+ import React, { useMemo, createContext, useContext, useState, useCallback, useEffect, useRef, useDebugValue, createElement } from 'react';
7
5
  import { UserSelectMenu, useListeningQuery, useProjectUsers, Feedback } from 'sanity-plugin-utils';
8
6
  import { useToast, Button, Spinner, Card, Flex, Box, Text, useClickOutside, Popover, Grid, Tooltip, useTheme, Stack, MenuButton, Menu, Badge, Container } from '@sanity/ui';
9
7
  import { LexoRank } from 'lexorank';
@@ -11,7 +9,6 @@ import { useRouter } from 'sanity/router';
11
9
  import { Draggable, DragDropContext, Droppable } from '@hello-pangea/dnd';
12
10
  import groq from 'groq';
13
11
  import { useVirtualizer } from '@tanstack/react-virtual';
14
- import styled, { css } from 'styled-components';
15
12
  import { AnimatePresence, motion } from 'framer-motion';
16
13
  function defineStates(states) {
17
14
  return states;
@@ -82,7 +79,7 @@ function UserAssignment(props) {
82
79
  title: "Could not find User"
83
80
  });
84
81
  }
85
- return client.patch("workflow-metadata.".concat(documentId)).unset(["assignees[@ == \"".concat(userId, "\"]")]).commit().then(() => {
82
+ return client.patch("workflow-metadata.".concat(documentId)).unset(['assignees[@ == "'.concat(userId, '"]')]).commit().then(() => {
86
83
  return toast.push({
87
84
  title: "Removed ".concat(user.displayName, " from assignees"),
88
85
  status: "success"
@@ -127,7 +124,7 @@ function useWorkflowMetadata(ids) {
127
124
  data: rawData,
128
125
  loading,
129
126
  error
130
- } = useListeningQuery("*[_type == \"workflow.metadata\" && documentId in $ids]{\n _id,\n _type,\n _rev,\n assignees,\n documentId,\n state,\n orderRank\n }", {
127
+ } = useListeningQuery('*[_type == "workflow.metadata" && documentId in $ids]{\n _id,\n _type,\n _rev,\n assignees,\n documentId,\n state,\n orderRank\n }', {
131
128
  params: {
132
129
  ids
133
130
  },
@@ -253,7 +250,7 @@ function BeginWorkflow(props) {
253
250
  }
254
251
  const handle = useCallback(async () => {
255
252
  setBeginning(true);
256
- const lowestOrderFirstState = await client.fetch("*[_type == \"workflow.metadata\" && state == $state]|order(orderRank)[0].orderRank", {
253
+ const lowestOrderFirstState = await client.fetch('*[_type == "workflow.metadata" && state == $state]|order(orderRank)[0].orderRank', {
257
254
  state: states[0].id
258
255
  });
259
256
  client.createIfNotExists({
@@ -266,7 +263,7 @@ function BeginWorkflow(props) {
266
263
  toast.push({
267
264
  status: "success",
268
265
  title: "Workflow started",
269
- description: "Document is now \"".concat(states[0].title, "\"")
266
+ description: 'Document is now "'.concat(states[0].title, '"')
270
267
  });
271
268
  setBeginning(false);
272
269
  setComplete(true);
@@ -361,7 +358,7 @@ function UpdateWorkflow(props, actionState) {
361
358
  props.onComplete();
362
359
  toast.push({
363
360
  status: "success",
364
- title: "Document state now \"".concat(newState.title, "\"")
361
+ title: 'Document state now "'.concat(newState.title, '"')
365
362
  });
366
363
  }).catch(err => {
367
364
  props.onComplete();
@@ -398,17 +395,17 @@ function UpdateWorkflow(props, actionState) {
398
395
  currentUser && (assignees == null ? void 0 : assignees.length) && assignees.includes(currentUser.id) :
399
396
  // Otherwise this isn't a problem
400
397
  true;
401
- let title = "".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
398
+ let title = "".concat(directionLabel, ' State to "').concat(actionState.title, '"');
402
399
  if (!userRoleCanUpdateState) {
403
- title = "Your User role cannot ".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
400
+ title = "Your User role cannot ".concat(directionLabel, ' State to "').concat(actionState.title, '"');
404
401
  } else if (!actionStateIsAValidTransition) {
405
- title = "You cannot ".concat(directionLabel, " State to \"").concat(actionState.title, "\" from \"").concat(currentState == null ? void 0 : currentState.title, "\"");
402
+ title = "You cannot ".concat(directionLabel, ' State to "').concat(actionState.title, '" from "').concat(currentState == null ? void 0 : currentState.title, '"');
406
403
  } else if (!userAssignmentCanUpdateState) {
407
- title = "You must be assigned to the document to ".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
404
+ title = "You must be assigned to the document to ".concat(directionLabel, ' State to "').concat(actionState.title, '"');
408
405
  } else if ((currentState == null ? void 0 : currentState.requireValidation) && isValidating) {
409
- title = "Document is validating, cannot ".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
406
+ title = "Document is validating, cannot ".concat(directionLabel, ' State to "').concat(actionState.title, '"');
410
407
  } else if (hasValidationErrors) {
411
- title = "Document has validation errors, cannot ".concat(directionLabel, " State to \"").concat(actionState.title, "\"");
408
+ title = "Document has validation errors, cannot ".concat(directionLabel, ' State to "').concat(actionState.title, '"');
412
409
  }
413
410
  return {
414
411
  icon: DirectionIcon,
@@ -596,7 +593,7 @@ var metadata = states => defineType({
596
593
  liveEdit: true,
597
594
  fields: [defineField({
598
595
  name: "state",
599
- description: "The current \"State\" of the document. Field is read only as changing it would not fire the state's \"operation\" setting. These are fired in the Document Actions and in the custom Tool.",
596
+ description: 'The current "State" of the document. Field is read only as changing it would not fire the state\'s "operation" setting. These are fired in the Document Actions and in the custom Tool.',
600
597
  readOnly: true,
601
598
  type: "string",
602
599
  options: {
@@ -664,7 +661,13 @@ function filterItemsAndSort(items, stateId) {
664
661
  return aOrderRank.localeCompare(bOrderRank);
665
662
  });
666
663
  }
667
- const QUERY = groq(_templateObject || (_templateObject = _taggedTemplateLiteral(["*[_type == \"workflow.metadata\"]|order(orderRank){\n \"_metadata\": {\n _rev,\n assignees,\n documentId,\n state,\n orderRank,\n \"draftDocumentId\": \"drafts.\" + documentId,\n }\n}{\n ...,\n ...(\n *[_id == ^._metadata.documentId || _id == ^._metadata.draftDocumentId]|order(_updatedAt)[0]{ \n _id, \n _type, \n _rev, \n _updatedAt \n }\n )\n}"])));
664
+ var __freeze$2 = Object.freeze;
665
+ var __defProp$2 = Object.defineProperty;
666
+ var __template$2 = (cooked, raw) => __freeze$2(__defProp$2(cooked, "raw", {
667
+ value: __freeze$2(raw || cooked.slice())
668
+ }));
669
+ var _a$2;
670
+ const QUERY = groq(_a$2 || (_a$2 = __template$2(['*[_type == "workflow.metadata"]|order(orderRank){\n "_metadata": {\n _rev,\n assignees,\n documentId,\n state,\n orderRank,\n "draftDocumentId": "drafts." + documentId,\n }\n}{\n ...,\n ...(\n *[_id == ^._metadata.documentId || _id == ^._metadata.draftDocumentId]|order(_updatedAt)[0]{ \n _id, \n _type, \n _rev, \n _updatedAt \n }\n )\n}'])));
668
671
  function useWorkflowDocuments(schemaTypes) {
669
672
  const toast = useToast();
670
673
  const client = useClient({
@@ -689,8 +692,8 @@ function useWorkflowDocuments(schemaTypes) {
689
692
  const move = React.useCallback(async (draggedId, destination, states, newOrder) => {
690
693
  const currentLocalData = localDocuments;
691
694
  const newLocalDocuments = localDocuments.map(item => {
692
- var _a;
693
- if (((_a = item == null ? void 0 : item._metadata) == null ? void 0 : _a.documentId) === draggedId) {
695
+ var _a2;
696
+ if (((_a2 = item == null ? void 0 : item._metadata) == null ? void 0 : _a2.documentId) === draggedId) {
694
697
  return {
695
698
  ...item,
696
699
  _metadata: {
@@ -711,8 +714,8 @@ function useWorkflowDocuments(schemaTypes) {
711
714
  const newStateId = destination.droppableId;
712
715
  const newState = states.find(s => s.id === newStateId);
713
716
  const document = localDocuments.find(d => {
714
- var _a;
715
- return ((_a = d == null ? void 0 : d._metadata) == null ? void 0 : _a.documentId) === draggedId;
717
+ var _a2;
718
+ return ((_a2 = d == null ? void 0 : d._metadata) == null ? void 0 : _a2.documentId) === draggedId;
716
719
  });
717
720
  if (!(newState == null ? void 0 : newState.id)) {
718
721
  toast.push({
@@ -740,17 +743,17 @@ function useWorkflowDocuments(schemaTypes) {
740
743
  state: newStateId,
741
744
  orderRank: newOrder
742
745
  }).commit().then(res => {
743
- var _a, _b;
746
+ var _a2, _b;
744
747
  toast.push({
745
- title: newState.id === document._metadata.state ? "Reordered in \"".concat((_a = newState == null ? void 0 : newState.title) != null ? _a : newStateId, "\"") : "Moved to \"".concat((_b = newState == null ? void 0 : newState.title) != null ? _b : newStateId, "\""),
748
+ title: newState.id === document._metadata.state ? 'Reordered in "'.concat((_a2 = newState == null ? void 0 : newState.title) != null ? _a2 : newStateId, '"') : 'Moved to "'.concat((_b = newState == null ? void 0 : newState.title) != null ? _b : newStateId, '"'),
746
749
  status: "success"
747
750
  });
748
751
  return res;
749
752
  }).catch(err => {
750
- var _a;
753
+ var _a2;
751
754
  setLocalDocuments(currentLocalData);
752
755
  toast.push({
753
- title: "Failed to move to \"".concat((_a = newState == null ? void 0 : newState.title) != null ? _a : newStateId, "\""),
756
+ title: 'Failed to move to "'.concat((_a2 = newState == null ? void 0 : newState.title) != null ? _a2 : newStateId, '"'),
754
757
  description: err.message,
755
758
  status: "error"
756
759
  });
@@ -1099,8 +1102,7 @@ function DocumentCard(props) {
1099
1102
  children: [/* @__PURE__ */jsx(Card, {
1100
1103
  borderBottom: true,
1101
1104
  radius: 2,
1102
- padding: 3,
1103
- paddingLeft: 2,
1105
+ paddingRight: 2,
1104
1106
  tone: cardTone,
1105
1107
  style: {
1106
1108
  pointerEvents: "none"
@@ -1318,6 +1320,8 @@ function Filters(props) {
1318
1320
  tone: "default",
1319
1321
  children: /* @__PURE__ */jsx(MenuButton, {
1320
1322
  button: /* @__PURE__ */jsx(Button, {
1323
+ padding: 3,
1324
+ fontSize: 1,
1321
1325
  text: "Filter Assignees",
1322
1326
  tone: "primary",
1323
1327
  icon: UserIcon
@@ -1379,6 +1383,8 @@ function Filters(props) {
1379
1383
  })
1380
1384
  })
1381
1385
  }, user.id)), selectedUserIds.length > 0 ? /* @__PURE__ */jsx(Button, {
1386
+ padding: 3,
1387
+ fontSize: 1,
1382
1388
  text: "Clear",
1383
1389
  onClick: resetSelectedUsers,
1384
1390
  mode: "ghost",
@@ -1395,6 +1401,8 @@ function Filters(props) {
1395
1401
  return null;
1396
1402
  }
1397
1403
  return /* @__PURE__ */jsx(Button, {
1404
+ padding: 3,
1405
+ fontSize: 1,
1398
1406
  text: (_a = schemaType == null ? void 0 : schemaType.title) != null ? _a : typeName,
1399
1407
  icon: (_b = schemaType == null ? void 0 : schemaType.icon) != null ? _b : void 0,
1400
1408
  mode: selectedSchemaTypes.includes(typeName) ? "default" : "ghost",
@@ -1405,6 +1413,1928 @@ function Filters(props) {
1405
1413
  })
1406
1414
  });
1407
1415
  }
1416
+ function getDefaultExportFromCjs(x) {
1417
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1418
+ }
1419
+ var reactIs$2 = {
1420
+ exports: {}
1421
+ };
1422
+ var reactIs_production_min$1 = {};
1423
+
1424
+ /**
1425
+ * @license React
1426
+ * react-is.production.min.js
1427
+ *
1428
+ * Copyright (c) Facebook, Inc. and its affiliates.
1429
+ *
1430
+ * This source code is licensed under the MIT license found in the
1431
+ * LICENSE file in the root directory of this source tree.
1432
+ */
1433
+
1434
+ var hasRequiredReactIs_production_min$1;
1435
+ function requireReactIs_production_min$1() {
1436
+ if (hasRequiredReactIs_production_min$1) return reactIs_production_min$1;
1437
+ hasRequiredReactIs_production_min$1 = 1;
1438
+ var b = Symbol.for("react.element"),
1439
+ c = Symbol.for("react.portal"),
1440
+ d = Symbol.for("react.fragment"),
1441
+ e = Symbol.for("react.strict_mode"),
1442
+ f = Symbol.for("react.profiler"),
1443
+ g = Symbol.for("react.provider"),
1444
+ h = Symbol.for("react.context"),
1445
+ k = Symbol.for("react.server_context"),
1446
+ l = Symbol.for("react.forward_ref"),
1447
+ m = Symbol.for("react.suspense"),
1448
+ n = Symbol.for("react.suspense_list"),
1449
+ p = Symbol.for("react.memo"),
1450
+ q = Symbol.for("react.lazy"),
1451
+ t = Symbol.for("react.offscreen"),
1452
+ u;
1453
+ u = Symbol.for("react.module.reference");
1454
+ function v(a) {
1455
+ if ("object" === typeof a && null !== a) {
1456
+ var r = a.$$typeof;
1457
+ switch (r) {
1458
+ case b:
1459
+ switch (a = a.type, a) {
1460
+ case d:
1461
+ case f:
1462
+ case e:
1463
+ case m:
1464
+ case n:
1465
+ return a;
1466
+ default:
1467
+ switch (a = a && a.$$typeof, a) {
1468
+ case k:
1469
+ case h:
1470
+ case l:
1471
+ case q:
1472
+ case p:
1473
+ case g:
1474
+ return a;
1475
+ default:
1476
+ return r;
1477
+ }
1478
+ }
1479
+ case c:
1480
+ return r;
1481
+ }
1482
+ }
1483
+ }
1484
+ reactIs_production_min$1.ContextConsumer = h;
1485
+ reactIs_production_min$1.ContextProvider = g;
1486
+ reactIs_production_min$1.Element = b;
1487
+ reactIs_production_min$1.ForwardRef = l;
1488
+ reactIs_production_min$1.Fragment = d;
1489
+ reactIs_production_min$1.Lazy = q;
1490
+ reactIs_production_min$1.Memo = p;
1491
+ reactIs_production_min$1.Portal = c;
1492
+ reactIs_production_min$1.Profiler = f;
1493
+ reactIs_production_min$1.StrictMode = e;
1494
+ reactIs_production_min$1.Suspense = m;
1495
+ reactIs_production_min$1.SuspenseList = n;
1496
+ reactIs_production_min$1.isAsyncMode = function () {
1497
+ return !1;
1498
+ };
1499
+ reactIs_production_min$1.isConcurrentMode = function () {
1500
+ return !1;
1501
+ };
1502
+ reactIs_production_min$1.isContextConsumer = function (a) {
1503
+ return v(a) === h;
1504
+ };
1505
+ reactIs_production_min$1.isContextProvider = function (a) {
1506
+ return v(a) === g;
1507
+ };
1508
+ reactIs_production_min$1.isElement = function (a) {
1509
+ return "object" === typeof a && null !== a && a.$$typeof === b;
1510
+ };
1511
+ reactIs_production_min$1.isForwardRef = function (a) {
1512
+ return v(a) === l;
1513
+ };
1514
+ reactIs_production_min$1.isFragment = function (a) {
1515
+ return v(a) === d;
1516
+ };
1517
+ reactIs_production_min$1.isLazy = function (a) {
1518
+ return v(a) === q;
1519
+ };
1520
+ reactIs_production_min$1.isMemo = function (a) {
1521
+ return v(a) === p;
1522
+ };
1523
+ reactIs_production_min$1.isPortal = function (a) {
1524
+ return v(a) === c;
1525
+ };
1526
+ reactIs_production_min$1.isProfiler = function (a) {
1527
+ return v(a) === f;
1528
+ };
1529
+ reactIs_production_min$1.isStrictMode = function (a) {
1530
+ return v(a) === e;
1531
+ };
1532
+ reactIs_production_min$1.isSuspense = function (a) {
1533
+ return v(a) === m;
1534
+ };
1535
+ reactIs_production_min$1.isSuspenseList = function (a) {
1536
+ return v(a) === n;
1537
+ };
1538
+ reactIs_production_min$1.isValidElementType = function (a) {
1539
+ return "string" === typeof a || "function" === typeof a || a === d || a === f || a === e || a === m || a === n || a === t || "object" === typeof a && null !== a && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || void 0 !== a.getModuleId) ? !0 : !1;
1540
+ };
1541
+ reactIs_production_min$1.typeOf = v;
1542
+ return reactIs_production_min$1;
1543
+ }
1544
+ var reactIs_development$1 = {};
1545
+
1546
+ /**
1547
+ * @license React
1548
+ * react-is.development.js
1549
+ *
1550
+ * Copyright (c) Facebook, Inc. and its affiliates.
1551
+ *
1552
+ * This source code is licensed under the MIT license found in the
1553
+ * LICENSE file in the root directory of this source tree.
1554
+ */
1555
+
1556
+ var hasRequiredReactIs_development$1;
1557
+ function requireReactIs_development$1() {
1558
+ if (hasRequiredReactIs_development$1) return reactIs_development$1;
1559
+ hasRequiredReactIs_development$1 = 1;
1560
+ if (process.env.NODE_ENV !== "production") {
1561
+ (function () {
1562
+ // ATTENTION
1563
+ // When adding new symbols to this file,
1564
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
1565
+ // The Symbol used to tag the ReactElement-like types.
1566
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
1567
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
1568
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
1569
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
1570
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
1571
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
1572
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
1573
+ var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
1574
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
1575
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
1576
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
1577
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
1578
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
1579
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
1580
+
1581
+ // -----------------------------------------------------------------------------
1582
+
1583
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
1584
+ var enableCacheElement = false;
1585
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
1586
+
1587
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
1588
+ // stuff. Intended to enable React core members to more easily debug scheduling
1589
+ // issues in DEV builds.
1590
+
1591
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
1592
+
1593
+ var REACT_MODULE_REFERENCE;
1594
+ {
1595
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
1596
+ }
1597
+ function isValidElementType(type) {
1598
+ if (typeof type === 'string' || typeof type === 'function') {
1599
+ return true;
1600
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
1601
+
1602
+ if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
1603
+ return true;
1604
+ }
1605
+ if (typeof type === 'object' && type !== null) {
1606
+ if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE ||
1607
+ // This needs to include all possible module reference object
1608
+ // types supported by any Flight configuration anywhere since
1609
+ // we don't know which Flight build this will end up being used
1610
+ // with.
1611
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
1612
+ return true;
1613
+ }
1614
+ }
1615
+ return false;
1616
+ }
1617
+ function typeOf(object) {
1618
+ if (typeof object === 'object' && object !== null) {
1619
+ var $$typeof = object.$$typeof;
1620
+ switch ($$typeof) {
1621
+ case REACT_ELEMENT_TYPE:
1622
+ var type = object.type;
1623
+ switch (type) {
1624
+ case REACT_FRAGMENT_TYPE:
1625
+ case REACT_PROFILER_TYPE:
1626
+ case REACT_STRICT_MODE_TYPE:
1627
+ case REACT_SUSPENSE_TYPE:
1628
+ case REACT_SUSPENSE_LIST_TYPE:
1629
+ return type;
1630
+ default:
1631
+ var $$typeofType = type && type.$$typeof;
1632
+ switch ($$typeofType) {
1633
+ case REACT_SERVER_CONTEXT_TYPE:
1634
+ case REACT_CONTEXT_TYPE:
1635
+ case REACT_FORWARD_REF_TYPE:
1636
+ case REACT_LAZY_TYPE:
1637
+ case REACT_MEMO_TYPE:
1638
+ case REACT_PROVIDER_TYPE:
1639
+ return $$typeofType;
1640
+ default:
1641
+ return $$typeof;
1642
+ }
1643
+ }
1644
+ case REACT_PORTAL_TYPE:
1645
+ return $$typeof;
1646
+ }
1647
+ }
1648
+ return undefined;
1649
+ }
1650
+ var ContextConsumer = REACT_CONTEXT_TYPE;
1651
+ var ContextProvider = REACT_PROVIDER_TYPE;
1652
+ var Element = REACT_ELEMENT_TYPE;
1653
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
1654
+ var Fragment = REACT_FRAGMENT_TYPE;
1655
+ var Lazy = REACT_LAZY_TYPE;
1656
+ var Memo = REACT_MEMO_TYPE;
1657
+ var Portal = REACT_PORTAL_TYPE;
1658
+ var Profiler = REACT_PROFILER_TYPE;
1659
+ var StrictMode = REACT_STRICT_MODE_TYPE;
1660
+ var Suspense = REACT_SUSPENSE_TYPE;
1661
+ var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
1662
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
1663
+ var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
1664
+
1665
+ function isAsyncMode(object) {
1666
+ {
1667
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
1668
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
1669
+
1670
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1671
+ }
1672
+ }
1673
+ return false;
1674
+ }
1675
+ function isConcurrentMode(object) {
1676
+ {
1677
+ if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
1678
+ hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
1679
+
1680
+ console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
1681
+ }
1682
+ }
1683
+ return false;
1684
+ }
1685
+ function isContextConsumer(object) {
1686
+ return typeOf(object) === REACT_CONTEXT_TYPE;
1687
+ }
1688
+ function isContextProvider(object) {
1689
+ return typeOf(object) === REACT_PROVIDER_TYPE;
1690
+ }
1691
+ function isElement(object) {
1692
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1693
+ }
1694
+ function isForwardRef(object) {
1695
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
1696
+ }
1697
+ function isFragment(object) {
1698
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
1699
+ }
1700
+ function isLazy(object) {
1701
+ return typeOf(object) === REACT_LAZY_TYPE;
1702
+ }
1703
+ function isMemo(object) {
1704
+ return typeOf(object) === REACT_MEMO_TYPE;
1705
+ }
1706
+ function isPortal(object) {
1707
+ return typeOf(object) === REACT_PORTAL_TYPE;
1708
+ }
1709
+ function isProfiler(object) {
1710
+ return typeOf(object) === REACT_PROFILER_TYPE;
1711
+ }
1712
+ function isStrictMode(object) {
1713
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
1714
+ }
1715
+ function isSuspense(object) {
1716
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
1717
+ }
1718
+ function isSuspenseList(object) {
1719
+ return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
1720
+ }
1721
+ reactIs_development$1.ContextConsumer = ContextConsumer;
1722
+ reactIs_development$1.ContextProvider = ContextProvider;
1723
+ reactIs_development$1.Element = Element;
1724
+ reactIs_development$1.ForwardRef = ForwardRef;
1725
+ reactIs_development$1.Fragment = Fragment;
1726
+ reactIs_development$1.Lazy = Lazy;
1727
+ reactIs_development$1.Memo = Memo;
1728
+ reactIs_development$1.Portal = Portal;
1729
+ reactIs_development$1.Profiler = Profiler;
1730
+ reactIs_development$1.StrictMode = StrictMode;
1731
+ reactIs_development$1.Suspense = Suspense;
1732
+ reactIs_development$1.SuspenseList = SuspenseList;
1733
+ reactIs_development$1.isAsyncMode = isAsyncMode;
1734
+ reactIs_development$1.isConcurrentMode = isConcurrentMode;
1735
+ reactIs_development$1.isContextConsumer = isContextConsumer;
1736
+ reactIs_development$1.isContextProvider = isContextProvider;
1737
+ reactIs_development$1.isElement = isElement;
1738
+ reactIs_development$1.isForwardRef = isForwardRef;
1739
+ reactIs_development$1.isFragment = isFragment;
1740
+ reactIs_development$1.isLazy = isLazy;
1741
+ reactIs_development$1.isMemo = isMemo;
1742
+ reactIs_development$1.isPortal = isPortal;
1743
+ reactIs_development$1.isProfiler = isProfiler;
1744
+ reactIs_development$1.isStrictMode = isStrictMode;
1745
+ reactIs_development$1.isSuspense = isSuspense;
1746
+ reactIs_development$1.isSuspenseList = isSuspenseList;
1747
+ reactIs_development$1.isValidElementType = isValidElementType;
1748
+ reactIs_development$1.typeOf = typeOf;
1749
+ })();
1750
+ }
1751
+ return reactIs_development$1;
1752
+ }
1753
+ if (process.env.NODE_ENV === 'production') {
1754
+ reactIs$2.exports = requireReactIs_production_min$1();
1755
+ } else {
1756
+ reactIs$2.exports = requireReactIs_development$1();
1757
+ }
1758
+ var reactIsExports$1 = reactIs$2.exports;
1759
+ function stylis_min(W) {
1760
+ function M(d, c, e, h, a) {
1761
+ for (var m = 0, b = 0, v = 0, n = 0, q, g, x = 0, K = 0, k, u = k = q = 0, l = 0, r = 0, I = 0, t = 0, B = e.length, J = B - 1, y, f = '', p = '', F = '', G = '', C; l < B;) {
1762
+ g = e.charCodeAt(l);
1763
+ l === J && 0 !== b + n + v + m && (0 !== b && (g = 47 === b ? 10 : 47), n = v = m = 0, B++, J++);
1764
+ if (0 === b + n + v + m) {
1765
+ if (l === J && (0 < r && (f = f.replace(N, '')), 0 < f.trim().length)) {
1766
+ switch (g) {
1767
+ case 32:
1768
+ case 9:
1769
+ case 59:
1770
+ case 13:
1771
+ case 10:
1772
+ break;
1773
+ default:
1774
+ f += e.charAt(l);
1775
+ }
1776
+ g = 59;
1777
+ }
1778
+ switch (g) {
1779
+ case 123:
1780
+ f = f.trim();
1781
+ q = f.charCodeAt(0);
1782
+ k = 1;
1783
+ for (t = ++l; l < B;) {
1784
+ switch (g = e.charCodeAt(l)) {
1785
+ case 123:
1786
+ k++;
1787
+ break;
1788
+ case 125:
1789
+ k--;
1790
+ break;
1791
+ case 47:
1792
+ switch (g = e.charCodeAt(l + 1)) {
1793
+ case 42:
1794
+ case 47:
1795
+ a: {
1796
+ for (u = l + 1; u < J; ++u) {
1797
+ switch (e.charCodeAt(u)) {
1798
+ case 47:
1799
+ if (42 === g && 42 === e.charCodeAt(u - 1) && l + 2 !== u) {
1800
+ l = u + 1;
1801
+ break a;
1802
+ }
1803
+ break;
1804
+ case 10:
1805
+ if (47 === g) {
1806
+ l = u + 1;
1807
+ break a;
1808
+ }
1809
+ }
1810
+ }
1811
+ l = u;
1812
+ }
1813
+ }
1814
+ break;
1815
+ case 91:
1816
+ g++;
1817
+ case 40:
1818
+ g++;
1819
+ case 34:
1820
+ case 39:
1821
+ for (; l++ < J && e.charCodeAt(l) !== g;) {}
1822
+ }
1823
+ if (0 === k) break;
1824
+ l++;
1825
+ }
1826
+ k = e.substring(t, l);
1827
+ 0 === q && (q = (f = f.replace(ca, '').trim()).charCodeAt(0));
1828
+ switch (q) {
1829
+ case 64:
1830
+ 0 < r && (f = f.replace(N, ''));
1831
+ g = f.charCodeAt(1);
1832
+ switch (g) {
1833
+ case 100:
1834
+ case 109:
1835
+ case 115:
1836
+ case 45:
1837
+ r = c;
1838
+ break;
1839
+ default:
1840
+ r = O;
1841
+ }
1842
+ k = M(c, r, k, g, a + 1);
1843
+ t = k.length;
1844
+ 0 < A && (r = X(O, f, I), C = H(3, k, r, c, D, z, t, g, a, h), f = r.join(''), void 0 !== C && 0 === (t = (k = C.trim()).length) && (g = 0, k = ''));
1845
+ if (0 < t) switch (g) {
1846
+ case 115:
1847
+ f = f.replace(da, ea);
1848
+ case 100:
1849
+ case 109:
1850
+ case 45:
1851
+ k = f + '{' + k + '}';
1852
+ break;
1853
+ case 107:
1854
+ f = f.replace(fa, '$1 $2');
1855
+ k = f + '{' + k + '}';
1856
+ k = 1 === w || 2 === w && L('@' + k, 3) ? '@-webkit-' + k + '@' + k : '@' + k;
1857
+ break;
1858
+ default:
1859
+ k = f + k, 112 === h && (k = (p += k, ''));
1860
+ } else k = '';
1861
+ break;
1862
+ default:
1863
+ k = M(c, X(c, f, I), k, h, a + 1);
1864
+ }
1865
+ F += k;
1866
+ k = I = r = u = q = 0;
1867
+ f = '';
1868
+ g = e.charCodeAt(++l);
1869
+ break;
1870
+ case 125:
1871
+ case 59:
1872
+ f = (0 < r ? f.replace(N, '') : f).trim();
1873
+ if (1 < (t = f.length)) switch (0 === u && (q = f.charCodeAt(0), 45 === q || 96 < q && 123 > q) && (t = (f = f.replace(' ', ':')).length), 0 < A && void 0 !== (C = H(1, f, c, d, D, z, p.length, h, a, h)) && 0 === (t = (f = C.trim()).length) && (f = '\x00\x00'), q = f.charCodeAt(0), g = f.charCodeAt(1), q) {
1874
+ case 0:
1875
+ break;
1876
+ case 64:
1877
+ if (105 === g || 99 === g) {
1878
+ G += f + e.charAt(l);
1879
+ break;
1880
+ }
1881
+ default:
1882
+ 58 !== f.charCodeAt(t - 1) && (p += P(f, q, g, f.charCodeAt(2)));
1883
+ }
1884
+ I = r = u = q = 0;
1885
+ f = '';
1886
+ g = e.charCodeAt(++l);
1887
+ }
1888
+ }
1889
+ switch (g) {
1890
+ case 13:
1891
+ case 10:
1892
+ 47 === b ? b = 0 : 0 === 1 + q && 107 !== h && 0 < f.length && (r = 1, f += '\x00');
1893
+ 0 < A * Y && H(0, f, c, d, D, z, p.length, h, a, h);
1894
+ z = 1;
1895
+ D++;
1896
+ break;
1897
+ case 59:
1898
+ case 125:
1899
+ if (0 === b + n + v + m) {
1900
+ z++;
1901
+ break;
1902
+ }
1903
+ default:
1904
+ z++;
1905
+ y = e.charAt(l);
1906
+ switch (g) {
1907
+ case 9:
1908
+ case 32:
1909
+ if (0 === n + m + b) switch (x) {
1910
+ case 44:
1911
+ case 58:
1912
+ case 9:
1913
+ case 32:
1914
+ y = '';
1915
+ break;
1916
+ default:
1917
+ 32 !== g && (y = ' ');
1918
+ }
1919
+ break;
1920
+ case 0:
1921
+ y = '\\0';
1922
+ break;
1923
+ case 12:
1924
+ y = '\\f';
1925
+ break;
1926
+ case 11:
1927
+ y = '\\v';
1928
+ break;
1929
+ case 38:
1930
+ 0 === n + b + m && (r = I = 1, y = '\f' + y);
1931
+ break;
1932
+ case 108:
1933
+ if (0 === n + b + m + E && 0 < u) switch (l - u) {
1934
+ case 2:
1935
+ 112 === x && 58 === e.charCodeAt(l - 3) && (E = x);
1936
+ case 8:
1937
+ 111 === K && (E = K);
1938
+ }
1939
+ break;
1940
+ case 58:
1941
+ 0 === n + b + m && (u = l);
1942
+ break;
1943
+ case 44:
1944
+ 0 === b + v + n + m && (r = 1, y += '\r');
1945
+ break;
1946
+ case 34:
1947
+ case 39:
1948
+ 0 === b && (n = n === g ? 0 : 0 === n ? g : n);
1949
+ break;
1950
+ case 91:
1951
+ 0 === n + b + v && m++;
1952
+ break;
1953
+ case 93:
1954
+ 0 === n + b + v && m--;
1955
+ break;
1956
+ case 41:
1957
+ 0 === n + b + m && v--;
1958
+ break;
1959
+ case 40:
1960
+ if (0 === n + b + m) {
1961
+ if (0 === q) switch (2 * x + 3 * K) {
1962
+ case 533:
1963
+ break;
1964
+ default:
1965
+ q = 1;
1966
+ }
1967
+ v++;
1968
+ }
1969
+ break;
1970
+ case 64:
1971
+ 0 === b + v + n + m + u + k && (k = 1);
1972
+ break;
1973
+ case 42:
1974
+ case 47:
1975
+ if (!(0 < n + m + v)) switch (b) {
1976
+ case 0:
1977
+ switch (2 * g + 3 * e.charCodeAt(l + 1)) {
1978
+ case 235:
1979
+ b = 47;
1980
+ break;
1981
+ case 220:
1982
+ t = l, b = 42;
1983
+ }
1984
+ break;
1985
+ case 42:
1986
+ 47 === g && 42 === x && t + 2 !== l && (33 === e.charCodeAt(t + 2) && (p += e.substring(t, l + 1)), y = '', b = 0);
1987
+ }
1988
+ }
1989
+ 0 === b && (f += y);
1990
+ }
1991
+ K = x;
1992
+ x = g;
1993
+ l++;
1994
+ }
1995
+ t = p.length;
1996
+ if (0 < t) {
1997
+ r = c;
1998
+ if (0 < A && (C = H(2, p, r, d, D, z, t, h, a, h), void 0 !== C && 0 === (p = C).length)) return G + p + F;
1999
+ p = r.join(',') + '{' + p + '}';
2000
+ if (0 !== w * E) {
2001
+ 2 !== w || L(p, 2) || (E = 0);
2002
+ switch (E) {
2003
+ case 111:
2004
+ p = p.replace(ha, ':-moz-$1') + p;
2005
+ break;
2006
+ case 112:
2007
+ p = p.replace(Q, '::-webkit-input-$1') + p.replace(Q, '::-moz-$1') + p.replace(Q, ':-ms-input-$1') + p;
2008
+ }
2009
+ E = 0;
2010
+ }
2011
+ }
2012
+ return G + p + F;
2013
+ }
2014
+ function X(d, c, e) {
2015
+ var h = c.trim().split(ia);
2016
+ c = h;
2017
+ var a = h.length,
2018
+ m = d.length;
2019
+ switch (m) {
2020
+ case 0:
2021
+ case 1:
2022
+ var b = 0;
2023
+ for (d = 0 === m ? '' : d[0] + ' '; b < a; ++b) {
2024
+ c[b] = Z(d, c[b], e).trim();
2025
+ }
2026
+ break;
2027
+ default:
2028
+ var v = b = 0;
2029
+ for (c = []; b < a; ++b) {
2030
+ for (var n = 0; n < m; ++n) {
2031
+ c[v++] = Z(d[n] + ' ', h[b], e).trim();
2032
+ }
2033
+ }
2034
+ }
2035
+ return c;
2036
+ }
2037
+ function Z(d, c, e) {
2038
+ var h = c.charCodeAt(0);
2039
+ 33 > h && (h = (c = c.trim()).charCodeAt(0));
2040
+ switch (h) {
2041
+ case 38:
2042
+ return c.replace(F, '$1' + d.trim());
2043
+ case 58:
2044
+ return d.trim() + c.replace(F, '$1' + d.trim());
2045
+ default:
2046
+ if (0 < 1 * e && 0 < c.indexOf('\f')) return c.replace(F, (58 === d.charCodeAt(0) ? '' : '$1') + d.trim());
2047
+ }
2048
+ return d + c;
2049
+ }
2050
+ function P(d, c, e, h) {
2051
+ var a = d + ';',
2052
+ m = 2 * c + 3 * e + 4 * h;
2053
+ if (944 === m) {
2054
+ d = a.indexOf(':', 9) + 1;
2055
+ var b = a.substring(d, a.length - 1).trim();
2056
+ b = a.substring(0, d).trim() + b + ';';
2057
+ return 1 === w || 2 === w && L(b, 1) ? '-webkit-' + b + b : b;
2058
+ }
2059
+ if (0 === w || 2 === w && !L(a, 1)) return a;
2060
+ switch (m) {
2061
+ case 1015:
2062
+ return 97 === a.charCodeAt(10) ? '-webkit-' + a + a : a;
2063
+ case 951:
2064
+ return 116 === a.charCodeAt(3) ? '-webkit-' + a + a : a;
2065
+ case 963:
2066
+ return 110 === a.charCodeAt(5) ? '-webkit-' + a + a : a;
2067
+ case 1009:
2068
+ if (100 !== a.charCodeAt(4)) break;
2069
+ case 969:
2070
+ case 942:
2071
+ return '-webkit-' + a + a;
2072
+ case 978:
2073
+ return '-webkit-' + a + '-moz-' + a + a;
2074
+ case 1019:
2075
+ case 983:
2076
+ return '-webkit-' + a + '-moz-' + a + '-ms-' + a + a;
2077
+ case 883:
2078
+ if (45 === a.charCodeAt(8)) return '-webkit-' + a + a;
2079
+ if (0 < a.indexOf('image-set(', 11)) return a.replace(ja, '$1-webkit-$2') + a;
2080
+ break;
2081
+ case 932:
2082
+ if (45 === a.charCodeAt(4)) switch (a.charCodeAt(5)) {
2083
+ case 103:
2084
+ return '-webkit-box-' + a.replace('-grow', '') + '-webkit-' + a + '-ms-' + a.replace('grow', 'positive') + a;
2085
+ case 115:
2086
+ return '-webkit-' + a + '-ms-' + a.replace('shrink', 'negative') + a;
2087
+ case 98:
2088
+ return '-webkit-' + a + '-ms-' + a.replace('basis', 'preferred-size') + a;
2089
+ }
2090
+ return '-webkit-' + a + '-ms-' + a + a;
2091
+ case 964:
2092
+ return '-webkit-' + a + '-ms-flex-' + a + a;
2093
+ case 1023:
2094
+ if (99 !== a.charCodeAt(8)) break;
2095
+ b = a.substring(a.indexOf(':', 15)).replace('flex-', '').replace('space-between', 'justify');
2096
+ return '-webkit-box-pack' + b + '-webkit-' + a + '-ms-flex-pack' + b + a;
2097
+ case 1005:
2098
+ return ka.test(a) ? a.replace(aa, ':-webkit-') + a.replace(aa, ':-moz-') + a : a;
2099
+ case 1e3:
2100
+ b = a.substring(13).trim();
2101
+ c = b.indexOf('-') + 1;
2102
+ switch (b.charCodeAt(0) + b.charCodeAt(c)) {
2103
+ case 226:
2104
+ b = a.replace(G, 'tb');
2105
+ break;
2106
+ case 232:
2107
+ b = a.replace(G, 'tb-rl');
2108
+ break;
2109
+ case 220:
2110
+ b = a.replace(G, 'lr');
2111
+ break;
2112
+ default:
2113
+ return a;
2114
+ }
2115
+ return '-webkit-' + a + '-ms-' + b + a;
2116
+ case 1017:
2117
+ if (-1 === a.indexOf('sticky', 9)) break;
2118
+ case 975:
2119
+ c = (a = d).length - 10;
2120
+ b = (33 === a.charCodeAt(c) ? a.substring(0, c) : a).substring(d.indexOf(':', 7) + 1).trim();
2121
+ switch (m = b.charCodeAt(0) + (b.charCodeAt(7) | 0)) {
2122
+ case 203:
2123
+ if (111 > b.charCodeAt(8)) break;
2124
+ case 115:
2125
+ a = a.replace(b, '-webkit-' + b) + ';' + a;
2126
+ break;
2127
+ case 207:
2128
+ case 102:
2129
+ a = a.replace(b, '-webkit-' + (102 < m ? 'inline-' : '') + 'box') + ';' + a.replace(b, '-webkit-' + b) + ';' + a.replace(b, '-ms-' + b + 'box') + ';' + a;
2130
+ }
2131
+ return a + ';';
2132
+ case 938:
2133
+ if (45 === a.charCodeAt(5)) switch (a.charCodeAt(6)) {
2134
+ case 105:
2135
+ return b = a.replace('-items', ''), '-webkit-' + a + '-webkit-box-' + b + '-ms-flex-' + b + a;
2136
+ case 115:
2137
+ return '-webkit-' + a + '-ms-flex-item-' + a.replace(ba, '') + a;
2138
+ default:
2139
+ return '-webkit-' + a + '-ms-flex-line-pack' + a.replace('align-content', '').replace(ba, '') + a;
2140
+ }
2141
+ break;
2142
+ case 973:
2143
+ case 989:
2144
+ if (45 !== a.charCodeAt(3) || 122 === a.charCodeAt(4)) break;
2145
+ case 931:
2146
+ case 953:
2147
+ if (!0 === la.test(d)) return 115 === (b = d.substring(d.indexOf(':') + 1)).charCodeAt(0) ? P(d.replace('stretch', 'fill-available'), c, e, h).replace(':fill-available', ':stretch') : a.replace(b, '-webkit-' + b) + a.replace(b, '-moz-' + b.replace('fill-', '')) + a;
2148
+ break;
2149
+ case 962:
2150
+ if (a = '-webkit-' + a + (102 === a.charCodeAt(5) ? '-ms-' + a : '') + a, 211 === e + h && 105 === a.charCodeAt(13) && 0 < a.indexOf('transform', 10)) return a.substring(0, a.indexOf(';', 27) + 1).replace(ma, '$1-webkit-$2') + a;
2151
+ }
2152
+ return a;
2153
+ }
2154
+ function L(d, c) {
2155
+ var e = d.indexOf(1 === c ? ':' : '{'),
2156
+ h = d.substring(0, 3 !== c ? e : 10);
2157
+ e = d.substring(e + 1, d.length - 1);
2158
+ return R(2 !== c ? h : h.replace(na, '$1'), e, c);
2159
+ }
2160
+ function ea(d, c) {
2161
+ var e = P(c, c.charCodeAt(0), c.charCodeAt(1), c.charCodeAt(2));
2162
+ return e !== c + ';' ? e.replace(oa, ' or ($1)').substring(4) : '(' + c + ')';
2163
+ }
2164
+ function H(d, c, e, h, a, m, b, v, n, q) {
2165
+ for (var g = 0, x = c, w; g < A; ++g) {
2166
+ switch (w = S[g].call(B, d, x, e, h, a, m, b, v, n, q)) {
2167
+ case void 0:
2168
+ case !1:
2169
+ case !0:
2170
+ case null:
2171
+ break;
2172
+ default:
2173
+ x = w;
2174
+ }
2175
+ }
2176
+ if (x !== c) return x;
2177
+ }
2178
+ function T(d) {
2179
+ switch (d) {
2180
+ case void 0:
2181
+ case null:
2182
+ A = S.length = 0;
2183
+ break;
2184
+ default:
2185
+ if ('function' === typeof d) S[A++] = d;else if ('object' === typeof d) for (var c = 0, e = d.length; c < e; ++c) {
2186
+ T(d[c]);
2187
+ } else Y = !!d | 0;
2188
+ }
2189
+ return T;
2190
+ }
2191
+ function U(d) {
2192
+ d = d.prefix;
2193
+ void 0 !== d && (R = null, d ? 'function' !== typeof d ? w = 1 : (w = 2, R = d) : w = 0);
2194
+ return U;
2195
+ }
2196
+ function B(d, c) {
2197
+ var e = d;
2198
+ 33 > e.charCodeAt(0) && (e = e.trim());
2199
+ V = e;
2200
+ e = [V];
2201
+ if (0 < A) {
2202
+ var h = H(-1, c, e, e, D, z, 0, 0, 0, 0);
2203
+ void 0 !== h && 'string' === typeof h && (c = h);
2204
+ }
2205
+ var a = M(O, e, c, 0, 0);
2206
+ 0 < A && (h = H(-2, a, e, e, D, z, a.length, 0, 0, 0), void 0 !== h && (a = h));
2207
+ V = '';
2208
+ E = 0;
2209
+ z = D = 1;
2210
+ return a;
2211
+ }
2212
+ var ca = /^\0+/g,
2213
+ N = /[\0\r\f]/g,
2214
+ aa = /: */g,
2215
+ ka = /zoo|gra/,
2216
+ ma = /([,: ])(transform)/g,
2217
+ ia = /,\r+?/g,
2218
+ F = /([\t\r\n ])*\f?&/g,
2219
+ fa = /@(k\w+)\s*(\S*)\s*/,
2220
+ Q = /::(place)/g,
2221
+ ha = /:(read-only)/g,
2222
+ G = /[svh]\w+-[tblr]{2}/,
2223
+ da = /\(\s*(.*)\s*\)/g,
2224
+ oa = /([\s\S]*?);/g,
2225
+ ba = /-self|flex-/g,
2226
+ na = /[^]*?(:[rp][el]a[\w-]+)[^]*/,
2227
+ la = /stretch|:\s*\w+\-(?:conte|avail)/,
2228
+ ja = /([^-])(image-set\()/,
2229
+ z = 1,
2230
+ D = 1,
2231
+ E = 0,
2232
+ w = 1,
2233
+ O = [],
2234
+ S = [],
2235
+ A = 0,
2236
+ R = null,
2237
+ Y = 0,
2238
+ V = '';
2239
+ B.use = T;
2240
+ B.set = U;
2241
+ void 0 !== W && U(W);
2242
+ return B;
2243
+ }
2244
+ var unitlessKeys = {
2245
+ animationIterationCount: 1,
2246
+ borderImageOutset: 1,
2247
+ borderImageSlice: 1,
2248
+ borderImageWidth: 1,
2249
+ boxFlex: 1,
2250
+ boxFlexGroup: 1,
2251
+ boxOrdinalGroup: 1,
2252
+ columnCount: 1,
2253
+ columns: 1,
2254
+ flex: 1,
2255
+ flexGrow: 1,
2256
+ flexPositive: 1,
2257
+ flexShrink: 1,
2258
+ flexNegative: 1,
2259
+ flexOrder: 1,
2260
+ gridRow: 1,
2261
+ gridRowEnd: 1,
2262
+ gridRowSpan: 1,
2263
+ gridRowStart: 1,
2264
+ gridColumn: 1,
2265
+ gridColumnEnd: 1,
2266
+ gridColumnSpan: 1,
2267
+ gridColumnStart: 1,
2268
+ msGridRow: 1,
2269
+ msGridRowSpan: 1,
2270
+ msGridColumn: 1,
2271
+ msGridColumnSpan: 1,
2272
+ fontWeight: 1,
2273
+ lineHeight: 1,
2274
+ opacity: 1,
2275
+ order: 1,
2276
+ orphans: 1,
2277
+ tabSize: 1,
2278
+ widows: 1,
2279
+ zIndex: 1,
2280
+ zoom: 1,
2281
+ WebkitLineClamp: 1,
2282
+ // SVG-related properties
2283
+ fillOpacity: 1,
2284
+ floodOpacity: 1,
2285
+ stopOpacity: 1,
2286
+ strokeDasharray: 1,
2287
+ strokeDashoffset: 1,
2288
+ strokeMiterlimit: 1,
2289
+ strokeOpacity: 1,
2290
+ strokeWidth: 1
2291
+ };
2292
+ function memoize(fn) {
2293
+ var cache = Object.create(null);
2294
+ return function (arg) {
2295
+ if (cache[arg] === undefined) cache[arg] = fn(arg);
2296
+ return cache[arg];
2297
+ };
2298
+ }
2299
+ var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
2300
+
2301
+ var isPropValid = /* #__PURE__ */memoize(function (prop) {
2302
+ return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
2303
+ /* o */ && prop.charCodeAt(1) === 110
2304
+ /* n */ && prop.charCodeAt(2) < 91;
2305
+ }
2306
+ /* Z+1 */);
2307
+ var reactIs$1 = {
2308
+ exports: {}
2309
+ };
2310
+ var reactIs_production_min = {};
2311
+
2312
+ /** @license React v16.13.1
2313
+ * react-is.production.min.js
2314
+ *
2315
+ * Copyright (c) Facebook, Inc. and its affiliates.
2316
+ *
2317
+ * This source code is licensed under the MIT license found in the
2318
+ * LICENSE file in the root directory of this source tree.
2319
+ */
2320
+
2321
+ var hasRequiredReactIs_production_min;
2322
+ function requireReactIs_production_min() {
2323
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
2324
+ hasRequiredReactIs_production_min = 1;
2325
+ var b = "function" === typeof Symbol && Symbol.for,
2326
+ c = b ? Symbol.for("react.element") : 60103,
2327
+ d = b ? Symbol.for("react.portal") : 60106,
2328
+ e = b ? Symbol.for("react.fragment") : 60107,
2329
+ f = b ? Symbol.for("react.strict_mode") : 60108,
2330
+ g = b ? Symbol.for("react.profiler") : 60114,
2331
+ h = b ? Symbol.for("react.provider") : 60109,
2332
+ k = b ? Symbol.for("react.context") : 60110,
2333
+ l = b ? Symbol.for("react.async_mode") : 60111,
2334
+ m = b ? Symbol.for("react.concurrent_mode") : 60111,
2335
+ n = b ? Symbol.for("react.forward_ref") : 60112,
2336
+ p = b ? Symbol.for("react.suspense") : 60113,
2337
+ q = b ? Symbol.for("react.suspense_list") : 60120,
2338
+ r = b ? Symbol.for("react.memo") : 60115,
2339
+ t = b ? Symbol.for("react.lazy") : 60116,
2340
+ v = b ? Symbol.for("react.block") : 60121,
2341
+ w = b ? Symbol.for("react.fundamental") : 60117,
2342
+ x = b ? Symbol.for("react.responder") : 60118,
2343
+ y = b ? Symbol.for("react.scope") : 60119;
2344
+ function z(a) {
2345
+ if ("object" === typeof a && null !== a) {
2346
+ var u = a.$$typeof;
2347
+ switch (u) {
2348
+ case c:
2349
+ switch (a = a.type, a) {
2350
+ case l:
2351
+ case m:
2352
+ case e:
2353
+ case g:
2354
+ case f:
2355
+ case p:
2356
+ return a;
2357
+ default:
2358
+ switch (a = a && a.$$typeof, a) {
2359
+ case k:
2360
+ case n:
2361
+ case t:
2362
+ case r:
2363
+ case h:
2364
+ return a;
2365
+ default:
2366
+ return u;
2367
+ }
2368
+ }
2369
+ case d:
2370
+ return u;
2371
+ }
2372
+ }
2373
+ }
2374
+ function A(a) {
2375
+ return z(a) === m;
2376
+ }
2377
+ reactIs_production_min.AsyncMode = l;
2378
+ reactIs_production_min.ConcurrentMode = m;
2379
+ reactIs_production_min.ContextConsumer = k;
2380
+ reactIs_production_min.ContextProvider = h;
2381
+ reactIs_production_min.Element = c;
2382
+ reactIs_production_min.ForwardRef = n;
2383
+ reactIs_production_min.Fragment = e;
2384
+ reactIs_production_min.Lazy = t;
2385
+ reactIs_production_min.Memo = r;
2386
+ reactIs_production_min.Portal = d;
2387
+ reactIs_production_min.Profiler = g;
2388
+ reactIs_production_min.StrictMode = f;
2389
+ reactIs_production_min.Suspense = p;
2390
+ reactIs_production_min.isAsyncMode = function (a) {
2391
+ return A(a) || z(a) === l;
2392
+ };
2393
+ reactIs_production_min.isConcurrentMode = A;
2394
+ reactIs_production_min.isContextConsumer = function (a) {
2395
+ return z(a) === k;
2396
+ };
2397
+ reactIs_production_min.isContextProvider = function (a) {
2398
+ return z(a) === h;
2399
+ };
2400
+ reactIs_production_min.isElement = function (a) {
2401
+ return "object" === typeof a && null !== a && a.$$typeof === c;
2402
+ };
2403
+ reactIs_production_min.isForwardRef = function (a) {
2404
+ return z(a) === n;
2405
+ };
2406
+ reactIs_production_min.isFragment = function (a) {
2407
+ return z(a) === e;
2408
+ };
2409
+ reactIs_production_min.isLazy = function (a) {
2410
+ return z(a) === t;
2411
+ };
2412
+ reactIs_production_min.isMemo = function (a) {
2413
+ return z(a) === r;
2414
+ };
2415
+ reactIs_production_min.isPortal = function (a) {
2416
+ return z(a) === d;
2417
+ };
2418
+ reactIs_production_min.isProfiler = function (a) {
2419
+ return z(a) === g;
2420
+ };
2421
+ reactIs_production_min.isStrictMode = function (a) {
2422
+ return z(a) === f;
2423
+ };
2424
+ reactIs_production_min.isSuspense = function (a) {
2425
+ return z(a) === p;
2426
+ };
2427
+ reactIs_production_min.isValidElementType = function (a) {
2428
+ return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
2429
+ };
2430
+ reactIs_production_min.typeOf = z;
2431
+ return reactIs_production_min;
2432
+ }
2433
+ var reactIs_development = {};
2434
+
2435
+ /** @license React v16.13.1
2436
+ * react-is.development.js
2437
+ *
2438
+ * Copyright (c) Facebook, Inc. and its affiliates.
2439
+ *
2440
+ * This source code is licensed under the MIT license found in the
2441
+ * LICENSE file in the root directory of this source tree.
2442
+ */
2443
+
2444
+ var hasRequiredReactIs_development;
2445
+ function requireReactIs_development() {
2446
+ if (hasRequiredReactIs_development) return reactIs_development;
2447
+ hasRequiredReactIs_development = 1;
2448
+ if (process.env.NODE_ENV !== "production") {
2449
+ (function () {
2450
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
2451
+ // nor polyfill, then a plain number is used for performance.
2452
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
2453
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
2454
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
2455
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
2456
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
2457
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
2458
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
2459
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
2460
+ // (unstable) APIs that have been removed. Can we remove the symbols?
2461
+
2462
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
2463
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
2464
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
2465
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
2466
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
2467
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
2468
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
2469
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
2470
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
2471
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
2472
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
2473
+ function isValidElementType(type) {
2474
+ return typeof type === 'string' || typeof type === 'function' ||
2475
+ // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
2476
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
2477
+ }
2478
+ function typeOf(object) {
2479
+ if (typeof object === 'object' && object !== null) {
2480
+ var $$typeof = object.$$typeof;
2481
+ switch ($$typeof) {
2482
+ case REACT_ELEMENT_TYPE:
2483
+ var type = object.type;
2484
+ switch (type) {
2485
+ case REACT_ASYNC_MODE_TYPE:
2486
+ case REACT_CONCURRENT_MODE_TYPE:
2487
+ case REACT_FRAGMENT_TYPE:
2488
+ case REACT_PROFILER_TYPE:
2489
+ case REACT_STRICT_MODE_TYPE:
2490
+ case REACT_SUSPENSE_TYPE:
2491
+ return type;
2492
+ default:
2493
+ var $$typeofType = type && type.$$typeof;
2494
+ switch ($$typeofType) {
2495
+ case REACT_CONTEXT_TYPE:
2496
+ case REACT_FORWARD_REF_TYPE:
2497
+ case REACT_LAZY_TYPE:
2498
+ case REACT_MEMO_TYPE:
2499
+ case REACT_PROVIDER_TYPE:
2500
+ return $$typeofType;
2501
+ default:
2502
+ return $$typeof;
2503
+ }
2504
+ }
2505
+ case REACT_PORTAL_TYPE:
2506
+ return $$typeof;
2507
+ }
2508
+ }
2509
+ return undefined;
2510
+ } // AsyncMode is deprecated along with isAsyncMode
2511
+
2512
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
2513
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
2514
+ var ContextConsumer = REACT_CONTEXT_TYPE;
2515
+ var ContextProvider = REACT_PROVIDER_TYPE;
2516
+ var Element = REACT_ELEMENT_TYPE;
2517
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
2518
+ var Fragment = REACT_FRAGMENT_TYPE;
2519
+ var Lazy = REACT_LAZY_TYPE;
2520
+ var Memo = REACT_MEMO_TYPE;
2521
+ var Portal = REACT_PORTAL_TYPE;
2522
+ var Profiler = REACT_PROFILER_TYPE;
2523
+ var StrictMode = REACT_STRICT_MODE_TYPE;
2524
+ var Suspense = REACT_SUSPENSE_TYPE;
2525
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
2526
+
2527
+ function isAsyncMode(object) {
2528
+ {
2529
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
2530
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
2531
+
2532
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
2533
+ }
2534
+ }
2535
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
2536
+ }
2537
+ function isConcurrentMode(object) {
2538
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
2539
+ }
2540
+ function isContextConsumer(object) {
2541
+ return typeOf(object) === REACT_CONTEXT_TYPE;
2542
+ }
2543
+ function isContextProvider(object) {
2544
+ return typeOf(object) === REACT_PROVIDER_TYPE;
2545
+ }
2546
+ function isElement(object) {
2547
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
2548
+ }
2549
+ function isForwardRef(object) {
2550
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
2551
+ }
2552
+ function isFragment(object) {
2553
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
2554
+ }
2555
+ function isLazy(object) {
2556
+ return typeOf(object) === REACT_LAZY_TYPE;
2557
+ }
2558
+ function isMemo(object) {
2559
+ return typeOf(object) === REACT_MEMO_TYPE;
2560
+ }
2561
+ function isPortal(object) {
2562
+ return typeOf(object) === REACT_PORTAL_TYPE;
2563
+ }
2564
+ function isProfiler(object) {
2565
+ return typeOf(object) === REACT_PROFILER_TYPE;
2566
+ }
2567
+ function isStrictMode(object) {
2568
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
2569
+ }
2570
+ function isSuspense(object) {
2571
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
2572
+ }
2573
+ reactIs_development.AsyncMode = AsyncMode;
2574
+ reactIs_development.ConcurrentMode = ConcurrentMode;
2575
+ reactIs_development.ContextConsumer = ContextConsumer;
2576
+ reactIs_development.ContextProvider = ContextProvider;
2577
+ reactIs_development.Element = Element;
2578
+ reactIs_development.ForwardRef = ForwardRef;
2579
+ reactIs_development.Fragment = Fragment;
2580
+ reactIs_development.Lazy = Lazy;
2581
+ reactIs_development.Memo = Memo;
2582
+ reactIs_development.Portal = Portal;
2583
+ reactIs_development.Profiler = Profiler;
2584
+ reactIs_development.StrictMode = StrictMode;
2585
+ reactIs_development.Suspense = Suspense;
2586
+ reactIs_development.isAsyncMode = isAsyncMode;
2587
+ reactIs_development.isConcurrentMode = isConcurrentMode;
2588
+ reactIs_development.isContextConsumer = isContextConsumer;
2589
+ reactIs_development.isContextProvider = isContextProvider;
2590
+ reactIs_development.isElement = isElement;
2591
+ reactIs_development.isForwardRef = isForwardRef;
2592
+ reactIs_development.isFragment = isFragment;
2593
+ reactIs_development.isLazy = isLazy;
2594
+ reactIs_development.isMemo = isMemo;
2595
+ reactIs_development.isPortal = isPortal;
2596
+ reactIs_development.isProfiler = isProfiler;
2597
+ reactIs_development.isStrictMode = isStrictMode;
2598
+ reactIs_development.isSuspense = isSuspense;
2599
+ reactIs_development.isValidElementType = isValidElementType;
2600
+ reactIs_development.typeOf = typeOf;
2601
+ })();
2602
+ }
2603
+ return reactIs_development;
2604
+ }
2605
+ if (process.env.NODE_ENV === 'production') {
2606
+ reactIs$1.exports = requireReactIs_production_min();
2607
+ } else {
2608
+ reactIs$1.exports = requireReactIs_development();
2609
+ }
2610
+ var reactIsExports = reactIs$1.exports;
2611
+ var reactIs = reactIsExports;
2612
+
2613
+ /**
2614
+ * Copyright 2015, Yahoo! Inc.
2615
+ * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms.
2616
+ */
2617
+ var REACT_STATICS = {
2618
+ childContextTypes: true,
2619
+ contextType: true,
2620
+ contextTypes: true,
2621
+ defaultProps: true,
2622
+ displayName: true,
2623
+ getDefaultProps: true,
2624
+ getDerivedStateFromError: true,
2625
+ getDerivedStateFromProps: true,
2626
+ mixins: true,
2627
+ propTypes: true,
2628
+ type: true
2629
+ };
2630
+ var KNOWN_STATICS = {
2631
+ name: true,
2632
+ length: true,
2633
+ prototype: true,
2634
+ caller: true,
2635
+ callee: true,
2636
+ arguments: true,
2637
+ arity: true
2638
+ };
2639
+ var FORWARD_REF_STATICS = {
2640
+ '$$typeof': true,
2641
+ render: true,
2642
+ defaultProps: true,
2643
+ displayName: true,
2644
+ propTypes: true
2645
+ };
2646
+ var MEMO_STATICS = {
2647
+ '$$typeof': true,
2648
+ compare: true,
2649
+ defaultProps: true,
2650
+ displayName: true,
2651
+ propTypes: true,
2652
+ type: true
2653
+ };
2654
+ var TYPE_STATICS = {};
2655
+ TYPE_STATICS[reactIs.ForwardRef] = FORWARD_REF_STATICS;
2656
+ TYPE_STATICS[reactIs.Memo] = MEMO_STATICS;
2657
+ function getStatics(component) {
2658
+ // React v16.11 and below
2659
+ if (reactIs.isMemo(component)) {
2660
+ return MEMO_STATICS;
2661
+ } // React v16.12 and above
2662
+
2663
+ return TYPE_STATICS[component['$$typeof']] || REACT_STATICS;
2664
+ }
2665
+ var defineProperty = Object.defineProperty;
2666
+ var getOwnPropertyNames = Object.getOwnPropertyNames;
2667
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
2668
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
2669
+ var getPrototypeOf = Object.getPrototypeOf;
2670
+ var objectPrototype = Object.prototype;
2671
+ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
2672
+ if (typeof sourceComponent !== 'string') {
2673
+ // don't hoist over string (html) components
2674
+ if (objectPrototype) {
2675
+ var inheritedComponent = getPrototypeOf(sourceComponent);
2676
+ if (inheritedComponent && inheritedComponent !== objectPrototype) {
2677
+ hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
2678
+ }
2679
+ }
2680
+ var keys = getOwnPropertyNames(sourceComponent);
2681
+ if (getOwnPropertySymbols) {
2682
+ keys = keys.concat(getOwnPropertySymbols(sourceComponent));
2683
+ }
2684
+ var targetStatics = getStatics(targetComponent);
2685
+ var sourceStatics = getStatics(sourceComponent);
2686
+ for (var i = 0; i < keys.length; ++i) {
2687
+ var key = keys[i];
2688
+ if (!KNOWN_STATICS[key] && !(blacklist && blacklist[key]) && !(sourceStatics && sourceStatics[key]) && !(targetStatics && targetStatics[key])) {
2689
+ var descriptor = getOwnPropertyDescriptor(sourceComponent, key);
2690
+ try {
2691
+ // Avoid failures from read-only properties
2692
+ defineProperty(targetComponent, key, descriptor);
2693
+ } catch (e) {}
2694
+ }
2695
+ }
2696
+ }
2697
+ return targetComponent;
2698
+ }
2699
+ var hoistNonReactStatics_cjs = hoistNonReactStatics;
2700
+ var m = /*@__PURE__*/getDefaultExportFromCjs(hoistNonReactStatics_cjs);
2701
+ function v() {
2702
+ return (v = Object.assign || function (e) {
2703
+ for (var t = 1; t < arguments.length; t++) {
2704
+ var n = arguments[t];
2705
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
2706
+ }
2707
+ return e;
2708
+ }).apply(this, arguments);
2709
+ }
2710
+ var y = function (e, t) {
2711
+ for (var n = [e[0]], r = 0, o = t.length; r < o; r += 1) n.push(t[r], e[r + 1]);
2712
+ return n;
2713
+ },
2714
+ g = function (t) {
2715
+ return null !== t && "object" == typeof t && "[object Object]" === (t.toString ? t.toString() : Object.prototype.toString.call(t)) && !reactIsExports$1.typeOf(t);
2716
+ },
2717
+ S = Object.freeze([]),
2718
+ w = Object.freeze({});
2719
+ function E(e) {
2720
+ return "function" == typeof e;
2721
+ }
2722
+ function b(e) {
2723
+ return "production" !== process.env.NODE_ENV && "string" == typeof e && e || e.displayName || e.name || "Component";
2724
+ }
2725
+ function _(e) {
2726
+ return e && "string" == typeof e.styledComponentId;
2727
+ }
2728
+ var N = "undefined" != typeof process && void 0 !== process.env && (process.env.REACT_APP_SC_ATTR || process.env.SC_ATTR) || "data-styled",
2729
+ C = "undefined" != typeof window && "HTMLElement" in window,
2730
+ I = Boolean("boolean" == typeof SC_DISABLE_SPEEDY ? SC_DISABLE_SPEEDY : "undefined" != typeof process && void 0 !== process.env && (void 0 !== process.env.REACT_APP_SC_DISABLE_SPEEDY && "" !== process.env.REACT_APP_SC_DISABLE_SPEEDY ? "false" !== process.env.REACT_APP_SC_DISABLE_SPEEDY && process.env.REACT_APP_SC_DISABLE_SPEEDY : void 0 !== process.env.SC_DISABLE_SPEEDY && "" !== process.env.SC_DISABLE_SPEEDY ? "false" !== process.env.SC_DISABLE_SPEEDY && process.env.SC_DISABLE_SPEEDY : "production" !== process.env.NODE_ENV)),
2731
+ O = "production" !== process.env.NODE_ENV ? {
2732
+ 1: "Cannot create styled-component for component: %s.\n\n",
2733
+ 2: "Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",
2734
+ 3: "Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",
2735
+ 4: "The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",
2736
+ 5: "The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",
2737
+ 6: "Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",
2738
+ 7: 'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',
2739
+ 8: 'ThemeProvider: Please make your "theme" prop an object.\n\n',
2740
+ 9: "Missing document `<head>`\n\n",
2741
+ 10: "Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",
2742
+ 11: "_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",
2743
+ 12: "It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",
2744
+ 13: "%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",
2745
+ 14: 'ThemeProvider: "theme" prop is required.\n\n',
2746
+ 15: "A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",
2747
+ 16: "Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",
2748
+ 17: "CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n"
2749
+ } : {};
2750
+ function R() {
2751
+ for (var e = arguments.length <= 0 ? void 0 : arguments[0], t = [], n = 1, r = arguments.length; n < r; n += 1) t.push(n < 0 || arguments.length <= n ? void 0 : arguments[n]);
2752
+ return t.forEach(function (t) {
2753
+ e = e.replace(/%[a-z]/, t);
2754
+ }), e;
2755
+ }
2756
+ function D(e) {
2757
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
2758
+ throw "production" === process.env.NODE_ENV ? new Error("An error occurred. See https://git.io/JUIaE#" + e + " for more information." + (n.length > 0 ? " Args: " + n.join(", ") : "")) : new Error(R.apply(void 0, [O[e]].concat(n)).trim());
2759
+ }
2760
+ var j = function () {
2761
+ function e(e) {
2762
+ this.groupSizes = new Uint32Array(512), this.length = 512, this.tag = e;
2763
+ }
2764
+ var t = e.prototype;
2765
+ return t.indexOfGroup = function (e) {
2766
+ for (var t = 0, n = 0; n < e; n++) t += this.groupSizes[n];
2767
+ return t;
2768
+ }, t.insertRules = function (e, t) {
2769
+ if (e >= this.groupSizes.length) {
2770
+ for (var n = this.groupSizes, r = n.length, o = r; e >= o;) (o <<= 1) < 0 && D(16, "" + e);
2771
+ this.groupSizes = new Uint32Array(o), this.groupSizes.set(n), this.length = o;
2772
+ for (var s = r; s < o; s++) this.groupSizes[s] = 0;
2773
+ }
2774
+ for (var i = this.indexOfGroup(e + 1), a = 0, c = t.length; a < c; a++) this.tag.insertRule(i, t[a]) && (this.groupSizes[e]++, i++);
2775
+ }, t.clearGroup = function (e) {
2776
+ if (e < this.length) {
2777
+ var t = this.groupSizes[e],
2778
+ n = this.indexOfGroup(e),
2779
+ r = n + t;
2780
+ this.groupSizes[e] = 0;
2781
+ for (var o = n; o < r; o++) this.tag.deleteRule(n);
2782
+ }
2783
+ }, t.getGroup = function (e) {
2784
+ var t = "";
2785
+ if (e >= this.length || 0 === this.groupSizes[e]) return t;
2786
+ for (var n = this.groupSizes[e], r = this.indexOfGroup(e), o = r + n, s = r; s < o; s++) t += this.tag.getRule(s) + "/*!sc*/\n";
2787
+ return t;
2788
+ }, e;
2789
+ }(),
2790
+ T = new Map(),
2791
+ x = new Map(),
2792
+ k = 1,
2793
+ V = function (e) {
2794
+ if (T.has(e)) return T.get(e);
2795
+ for (; x.has(k);) k++;
2796
+ var t = k++;
2797
+ return "production" !== process.env.NODE_ENV && ((0 | t) < 0 || t > 1 << 30) && D(16, "" + t), T.set(e, t), x.set(t, e), t;
2798
+ },
2799
+ z = function (e) {
2800
+ return x.get(e);
2801
+ },
2802
+ B = function (e, t) {
2803
+ t >= k && (k = t + 1), T.set(e, t), x.set(t, e);
2804
+ },
2805
+ M = "style[" + N + '][data-styled-version="5.3.10"]',
2806
+ G = new RegExp("^" + N + '\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),
2807
+ L = function (e, t, n) {
2808
+ for (var r, o = n.split(","), s = 0, i = o.length; s < i; s++) (r = o[s]) && e.registerName(t, r);
2809
+ },
2810
+ F = function (e, t) {
2811
+ for (var n = (t.textContent || "").split("/*!sc*/\n"), r = [], o = 0, s = n.length; o < s; o++) {
2812
+ var i = n[o].trim();
2813
+ if (i) {
2814
+ var a = i.match(G);
2815
+ if (a) {
2816
+ var c = 0 | parseInt(a[1], 10),
2817
+ u = a[2];
2818
+ 0 !== c && (B(u, c), L(e, u, a[3]), e.getTag().insertRules(c, r)), r.length = 0;
2819
+ } else r.push(i);
2820
+ }
2821
+ }
2822
+ },
2823
+ Y = function () {
2824
+ return "undefined" != typeof __webpack_nonce__ ? __webpack_nonce__ : null;
2825
+ },
2826
+ q = function (e) {
2827
+ var t = document.head,
2828
+ n = e || t,
2829
+ r = document.createElement("style"),
2830
+ o = function (e) {
2831
+ for (var t = e.childNodes, n = t.length; n >= 0; n--) {
2832
+ var r = t[n];
2833
+ if (r && 1 === r.nodeType && r.hasAttribute(N)) return r;
2834
+ }
2835
+ }(n),
2836
+ s = void 0 !== o ? o.nextSibling : null;
2837
+ r.setAttribute(N, "active"), r.setAttribute("data-styled-version", "5.3.10");
2838
+ var i = Y();
2839
+ return i && r.setAttribute("nonce", i), n.insertBefore(r, s), r;
2840
+ },
2841
+ H = function () {
2842
+ function e(e) {
2843
+ var t = this.element = q(e);
2844
+ t.appendChild(document.createTextNode("")), this.sheet = function (e) {
2845
+ if (e.sheet) return e.sheet;
2846
+ for (var t = document.styleSheets, n = 0, r = t.length; n < r; n++) {
2847
+ var o = t[n];
2848
+ if (o.ownerNode === e) return o;
2849
+ }
2850
+ D(17);
2851
+ }(t), this.length = 0;
2852
+ }
2853
+ var t = e.prototype;
2854
+ return t.insertRule = function (e, t) {
2855
+ try {
2856
+ return this.sheet.insertRule(t, e), this.length++, !0;
2857
+ } catch (e) {
2858
+ return !1;
2859
+ }
2860
+ }, t.deleteRule = function (e) {
2861
+ this.sheet.deleteRule(e), this.length--;
2862
+ }, t.getRule = function (e) {
2863
+ var t = this.sheet.cssRules[e];
2864
+ return void 0 !== t && "string" == typeof t.cssText ? t.cssText : "";
2865
+ }, e;
2866
+ }(),
2867
+ $ = function () {
2868
+ function e(e) {
2869
+ var t = this.element = q(e);
2870
+ this.nodes = t.childNodes, this.length = 0;
2871
+ }
2872
+ var t = e.prototype;
2873
+ return t.insertRule = function (e, t) {
2874
+ if (e <= this.length && e >= 0) {
2875
+ var n = document.createTextNode(t),
2876
+ r = this.nodes[e];
2877
+ return this.element.insertBefore(n, r || null), this.length++, !0;
2878
+ }
2879
+ return !1;
2880
+ }, t.deleteRule = function (e) {
2881
+ this.element.removeChild(this.nodes[e]), this.length--;
2882
+ }, t.getRule = function (e) {
2883
+ return e < this.length ? this.nodes[e].textContent : "";
2884
+ }, e;
2885
+ }(),
2886
+ W = function () {
2887
+ function e(e) {
2888
+ this.rules = [], this.length = 0;
2889
+ }
2890
+ var t = e.prototype;
2891
+ return t.insertRule = function (e, t) {
2892
+ return e <= this.length && (this.rules.splice(e, 0, t), this.length++, !0);
2893
+ }, t.deleteRule = function (e) {
2894
+ this.rules.splice(e, 1), this.length--;
2895
+ }, t.getRule = function (e) {
2896
+ return e < this.length ? this.rules[e] : "";
2897
+ }, e;
2898
+ }(),
2899
+ U = C,
2900
+ J = {
2901
+ isServer: !C,
2902
+ useCSSOMInjection: !I
2903
+ },
2904
+ X = function () {
2905
+ function e(e, t, n) {
2906
+ void 0 === e && (e = w), void 0 === t && (t = {}), this.options = v({}, J, {}, e), this.gs = t, this.names = new Map(n), this.server = !!e.isServer, !this.server && C && U && (U = !1, function (e) {
2907
+ for (var t = document.querySelectorAll(M), n = 0, r = t.length; n < r; n++) {
2908
+ var o = t[n];
2909
+ o && "active" !== o.getAttribute(N) && (F(e, o), o.parentNode && o.parentNode.removeChild(o));
2910
+ }
2911
+ }(this));
2912
+ }
2913
+ e.registerId = function (e) {
2914
+ return V(e);
2915
+ };
2916
+ var t = e.prototype;
2917
+ return t.reconstructWithOptions = function (t, n) {
2918
+ return void 0 === n && (n = !0), new e(v({}, this.options, {}, t), this.gs, n && this.names || void 0);
2919
+ }, t.allocateGSInstance = function (e) {
2920
+ return this.gs[e] = (this.gs[e] || 0) + 1;
2921
+ }, t.getTag = function () {
2922
+ return this.tag || (this.tag = (n = (t = this.options).isServer, r = t.useCSSOMInjection, o = t.target, e = n ? new W(o) : r ? new H(o) : new $(o), new j(e)));
2923
+ var e, t, n, r, o;
2924
+ }, t.hasNameForId = function (e, t) {
2925
+ return this.names.has(e) && this.names.get(e).has(t);
2926
+ }, t.registerName = function (e, t) {
2927
+ if (V(e), this.names.has(e)) this.names.get(e).add(t);else {
2928
+ var n = new Set();
2929
+ n.add(t), this.names.set(e, n);
2930
+ }
2931
+ }, t.insertRules = function (e, t, n) {
2932
+ this.registerName(e, t), this.getTag().insertRules(V(e), n);
2933
+ }, t.clearNames = function (e) {
2934
+ this.names.has(e) && this.names.get(e).clear();
2935
+ }, t.clearRules = function (e) {
2936
+ this.getTag().clearGroup(V(e)), this.clearNames(e);
2937
+ }, t.clearTag = function () {
2938
+ this.tag = void 0;
2939
+ }, t.toString = function () {
2940
+ return function (e) {
2941
+ for (var t = e.getTag(), n = t.length, r = "", o = 0; o < n; o++) {
2942
+ var s = z(o);
2943
+ if (void 0 !== s) {
2944
+ var i = e.names.get(s),
2945
+ a = t.getGroup(o);
2946
+ if (i && a && i.size) {
2947
+ var c = N + ".g" + o + '[id="' + s + '"]',
2948
+ u = "";
2949
+ void 0 !== i && i.forEach(function (e) {
2950
+ e.length > 0 && (u += e + ",");
2951
+ }), r += "" + a + c + '{content:"' + u + '"}/*!sc*/\n';
2952
+ }
2953
+ }
2954
+ }
2955
+ return r;
2956
+ }(this);
2957
+ }, e;
2958
+ }(),
2959
+ Z = /(a)(d)/gi,
2960
+ K = function (e) {
2961
+ return String.fromCharCode(e + (e > 25 ? 39 : 97));
2962
+ };
2963
+ function Q(e) {
2964
+ var t,
2965
+ n = "";
2966
+ for (t = Math.abs(e); t > 52; t = t / 52 | 0) n = K(t % 52) + n;
2967
+ return (K(t % 52) + n).replace(Z, "$1-$2");
2968
+ }
2969
+ var ee = function (e, t) {
2970
+ for (var n = t.length; n;) e = 33 * e ^ t.charCodeAt(--n);
2971
+ return e;
2972
+ },
2973
+ te = function (e) {
2974
+ return ee(5381, e);
2975
+ };
2976
+ function ne(e) {
2977
+ for (var t = 0; t < e.length; t += 1) {
2978
+ var n = e[t];
2979
+ if (E(n) && !_(n)) return !1;
2980
+ }
2981
+ return !0;
2982
+ }
2983
+ var re = te("5.3.10"),
2984
+ oe = function () {
2985
+ function e(e, t, n) {
2986
+ this.rules = e, this.staticRulesId = "", this.isStatic = "production" === process.env.NODE_ENV && (void 0 === n || n.isStatic) && ne(e), this.componentId = t, this.baseHash = ee(re, t), this.baseStyle = n, X.registerId(t);
2987
+ }
2988
+ return e.prototype.generateAndInjectStyles = function (e, t, n) {
2989
+ var r = this.componentId,
2990
+ o = [];
2991
+ if (this.baseStyle && o.push(this.baseStyle.generateAndInjectStyles(e, t, n)), this.isStatic && !n.hash) {
2992
+ if (this.staticRulesId && t.hasNameForId(r, this.staticRulesId)) o.push(this.staticRulesId);else {
2993
+ var s = _e(this.rules, e, t, n).join(""),
2994
+ i = Q(ee(this.baseHash, s) >>> 0);
2995
+ if (!t.hasNameForId(r, i)) {
2996
+ var a = n(s, "." + i, void 0, r);
2997
+ t.insertRules(r, i, a);
2998
+ }
2999
+ o.push(i), this.staticRulesId = i;
3000
+ }
3001
+ } else {
3002
+ for (var c = this.rules.length, u = ee(this.baseHash, n.hash), l = "", d = 0; d < c; d++) {
3003
+ var h = this.rules[d];
3004
+ if ("string" == typeof h) l += h, "production" !== process.env.NODE_ENV && (u = ee(u, h + d));else if (h) {
3005
+ var p = _e(h, e, t, n),
3006
+ f = Array.isArray(p) ? p.join("") : p;
3007
+ u = ee(u, f + d), l += f;
3008
+ }
3009
+ }
3010
+ if (l) {
3011
+ var m = Q(u >>> 0);
3012
+ if (!t.hasNameForId(r, m)) {
3013
+ var v = n(l, "." + m, void 0, r);
3014
+ t.insertRules(r, m, v);
3015
+ }
3016
+ o.push(m);
3017
+ }
3018
+ }
3019
+ return o.join(" ");
3020
+ }, e;
3021
+ }(),
3022
+ se = /^\s*\/\/.*$/gm,
3023
+ ie = [":", "[", ".", "#"];
3024
+ function ae(e) {
3025
+ var t,
3026
+ n,
3027
+ r,
3028
+ o,
3029
+ s = void 0 === e ? w : e,
3030
+ i = s.options,
3031
+ a = void 0 === i ? w : i,
3032
+ c = s.plugins,
3033
+ u = void 0 === c ? S : c,
3034
+ l = new stylis_min(a),
3035
+ d = [],
3036
+ p = function (e) {
3037
+ function t(t) {
3038
+ if (t) try {
3039
+ e(t + "}");
3040
+ } catch (e) {}
3041
+ }
3042
+ return function (n, r, o, s, i, a, c, u, l, d) {
3043
+ switch (n) {
3044
+ case 1:
3045
+ if (0 === l && 64 === r.charCodeAt(0)) return e(r + ";"), "";
3046
+ break;
3047
+ case 2:
3048
+ if (0 === u) return r + "/*|*/";
3049
+ break;
3050
+ case 3:
3051
+ switch (u) {
3052
+ case 102:
3053
+ case 112:
3054
+ return e(o[0] + r), "";
3055
+ default:
3056
+ return r + (0 === d ? "/*|*/" : "");
3057
+ }
3058
+ case -2:
3059
+ r.split("/*|*/}").forEach(t);
3060
+ }
3061
+ };
3062
+ }(function (e) {
3063
+ d.push(e);
3064
+ }),
3065
+ f = function (e, r, s) {
3066
+ return 0 === r && -1 !== ie.indexOf(s[n.length]) || s.match(o) ? e : "." + t;
3067
+ };
3068
+ function m(e, s, i, a) {
3069
+ void 0 === a && (a = "&");
3070
+ var c = e.replace(se, ""),
3071
+ u = s && i ? i + " " + s + " { " + c + " }" : c;
3072
+ return t = a, n = s, r = new RegExp("\\" + n + "\\b", "g"), o = new RegExp("(\\" + n + "\\b){2,}"), l(i || !s ? "" : s, u);
3073
+ }
3074
+ return l.use([].concat(u, [function (e, t, o) {
3075
+ 2 === e && o.length && o[0].lastIndexOf(n) > 0 && (o[0] = o[0].replace(r, f));
3076
+ }, p, function (e) {
3077
+ if (-2 === e) {
3078
+ var t = d;
3079
+ return d = [], t;
3080
+ }
3081
+ }])), m.hash = u.length ? u.reduce(function (e, t) {
3082
+ return t.name || D(15), ee(e, t.name);
3083
+ }, 5381).toString() : "", m;
3084
+ }
3085
+ var ce = React.createContext(),
3086
+ le = React.createContext(),
3087
+ de = new X(),
3088
+ he = ae();
3089
+ function pe() {
3090
+ return useContext(ce) || de;
3091
+ }
3092
+ function fe() {
3093
+ return useContext(le) || he;
3094
+ }
3095
+ var ve = function () {
3096
+ function e(e, t) {
3097
+ var n = this;
3098
+ this.inject = function (e, t) {
3099
+ void 0 === t && (t = he);
3100
+ var r = n.name + t.hash;
3101
+ e.hasNameForId(n.id, r) || e.insertRules(n.id, r, t(n.rules, r, "@keyframes"));
3102
+ }, this.toString = function () {
3103
+ return D(12, String(n.name));
3104
+ }, this.name = e, this.id = "sc-keyframes-" + e, this.rules = t;
3105
+ }
3106
+ return e.prototype.getName = function (e) {
3107
+ return void 0 === e && (e = he), this.name + e.hash;
3108
+ }, e;
3109
+ }(),
3110
+ ye = /([A-Z])/,
3111
+ ge = /([A-Z])/g,
3112
+ Se = /^ms-/,
3113
+ we = function (e) {
3114
+ return "-" + e.toLowerCase();
3115
+ };
3116
+ function Ee(e) {
3117
+ return ye.test(e) ? e.replace(ge, we).replace(Se, "-ms-") : e;
3118
+ }
3119
+ var be = function (e) {
3120
+ return null == e || !1 === e || "" === e;
3121
+ };
3122
+ function _e(e, n, r, o) {
3123
+ if (Array.isArray(e)) {
3124
+ for (var s, i = [], a = 0, c = e.length; a < c; a += 1) "" !== (s = _e(e[a], n, r, o)) && (Array.isArray(s) ? i.push.apply(i, s) : i.push(s));
3125
+ return i;
3126
+ }
3127
+ if (be(e)) return "";
3128
+ if (_(e)) return "." + e.styledComponentId;
3129
+ if (E(e)) {
3130
+ if ("function" != typeof (l = e) || l.prototype && l.prototype.isReactComponent || !n) return e;
3131
+ var u = e(n);
3132
+ return "production" !== process.env.NODE_ENV && reactIsExports$1.isElement(u) && console.warn(b(e) + " is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details."), _e(u, n, r, o);
3133
+ }
3134
+ var l;
3135
+ return e instanceof ve ? r ? (e.inject(r, o), e.getName(o)) : e : g(e) ? function e(t, n) {
3136
+ var r,
3137
+ o,
3138
+ s = [];
3139
+ for (var i in t) t.hasOwnProperty(i) && !be(t[i]) && (Array.isArray(t[i]) && t[i].isCss || E(t[i]) ? s.push(Ee(i) + ":", t[i], ";") : g(t[i]) ? s.push.apply(s, e(t[i], i)) : s.push(Ee(i) + ": " + (r = i, null == (o = t[i]) || "boolean" == typeof o || "" === o ? "" : "number" != typeof o || 0 === o || r in unitlessKeys || r.startsWith("--") ? String(o).trim() : o + "px") + ";"));
3140
+ return n ? [n + " {"].concat(s, ["}"]) : s;
3141
+ }(e) : e.toString();
3142
+ }
3143
+ var Ne = function (e) {
3144
+ return Array.isArray(e) && (e.isCss = !0), e;
3145
+ };
3146
+ function Ae(e) {
3147
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
3148
+ return E(e) || g(e) ? Ne(_e(y(S, [e].concat(n)))) : 0 === n.length && 1 === e.length && "string" == typeof e[0] ? e : Ne(_e(y(e, n)));
3149
+ }
3150
+ var Ce = /invalid hook call/i,
3151
+ Ie = new Set(),
3152
+ Pe = function (e, t) {
3153
+ if ("production" !== process.env.NODE_ENV) {
3154
+ var n = "The component " + e + (t ? ' with the id of "' + t + '"' : "") + " has been created dynamically.\nYou may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",
3155
+ r = console.error;
3156
+ try {
3157
+ var o = !0;
3158
+ console.error = function (e) {
3159
+ if (Ce.test(e)) o = !1, Ie.delete(n);else {
3160
+ for (var t = arguments.length, s = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++) s[i - 1] = arguments[i];
3161
+ r.apply(void 0, [e].concat(s));
3162
+ }
3163
+ }, useRef(), o && !Ie.has(n) && (console.warn(n), Ie.add(n));
3164
+ } catch (e) {
3165
+ Ce.test(e.message) && Ie.delete(n);
3166
+ } finally {
3167
+ console.error = r;
3168
+ }
3169
+ }
3170
+ },
3171
+ Oe = function (e, t, n) {
3172
+ return void 0 === n && (n = w), e.theme !== n.theme && e.theme || t || n.theme;
3173
+ },
3174
+ Re = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,
3175
+ De = /(^-|-$)/g;
3176
+ function je(e) {
3177
+ return e.replace(Re, "-").replace(De, "");
3178
+ }
3179
+ var Te = function (e) {
3180
+ return Q(te(e) >>> 0);
3181
+ };
3182
+ function xe(e) {
3183
+ return "string" == typeof e && ("production" === process.env.NODE_ENV || e.charAt(0) === e.charAt(0).toLowerCase());
3184
+ }
3185
+ var ke = function (e) {
3186
+ return "function" == typeof e || "object" == typeof e && null !== e && !Array.isArray(e);
3187
+ },
3188
+ Ve = function (e) {
3189
+ return "__proto__" !== e && "constructor" !== e && "prototype" !== e;
3190
+ };
3191
+ function ze(e, t, n) {
3192
+ var r = e[n];
3193
+ ke(t) && ke(r) ? Be(r, t) : e[n] = t;
3194
+ }
3195
+ function Be(e) {
3196
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
3197
+ for (var o = 0, s = n; o < s.length; o++) {
3198
+ var i = s[o];
3199
+ if (ke(i)) for (var a in i) Ve(a) && ze(e, i[a], a);
3200
+ }
3201
+ return e;
3202
+ }
3203
+ var Me = React.createContext();
3204
+ var Fe = {};
3205
+ function Ye(e, t, n) {
3206
+ var o = _(e),
3207
+ i = !xe(e),
3208
+ a = t.attrs,
3209
+ c = void 0 === a ? S : a,
3210
+ d = t.componentId,
3211
+ h = void 0 === d ? function (e, t) {
3212
+ var n = "string" != typeof e ? "sc" : je(e);
3213
+ Fe[n] = (Fe[n] || 0) + 1;
3214
+ var r = n + "-" + Te("5.3.10" + n + Fe[n]);
3215
+ return t ? t + "-" + r : r;
3216
+ }(t.displayName, t.parentComponentId) : d,
3217
+ p = t.displayName,
3218
+ y = void 0 === p ? function (e) {
3219
+ return xe(e) ? "styled." + e : "Styled(" + b(e) + ")";
3220
+ }(e) : p,
3221
+ g = t.displayName && t.componentId ? je(t.displayName) + "-" + t.componentId : t.componentId || h,
3222
+ N = o && e.attrs ? Array.prototype.concat(e.attrs, c).filter(Boolean) : c,
3223
+ A = t.shouldForwardProp;
3224
+ o && e.shouldForwardProp && (A = t.shouldForwardProp ? function (n, r, o) {
3225
+ return e.shouldForwardProp(n, r, o) && t.shouldForwardProp(n, r, o);
3226
+ } : e.shouldForwardProp);
3227
+ var C,
3228
+ I = new oe(n, g, o ? e.componentStyle : void 0),
3229
+ P = I.isStatic && 0 === c.length,
3230
+ O = function (e, t) {
3231
+ return function (e, t, n, r) {
3232
+ var o = e.attrs,
3233
+ i = e.componentStyle,
3234
+ a = e.defaultProps,
3235
+ c = e.foldedComponentIds,
3236
+ d = e.shouldForwardProp,
3237
+ h = e.styledComponentId,
3238
+ p = e.target;
3239
+ "production" !== process.env.NODE_ENV && useDebugValue(h);
3240
+ var m = function (e, t, n) {
3241
+ void 0 === e && (e = w);
3242
+ var r = v({}, t, {
3243
+ theme: e
3244
+ }),
3245
+ o = {};
3246
+ return n.forEach(function (e) {
3247
+ var t,
3248
+ n,
3249
+ s,
3250
+ i = e;
3251
+ for (t in E(i) && (i = i(r)), i) r[t] = o[t] = "className" === t ? (n = o[t], s = i[t], n && s ? n + " " + s : n || s) : i[t];
3252
+ }), [r, o];
3253
+ }(Oe(t, useContext(Me), a) || w, t, o),
3254
+ y = m[0],
3255
+ g = m[1],
3256
+ S = function (e, t, n, r) {
3257
+ var o = pe(),
3258
+ s = fe(),
3259
+ i = t ? e.generateAndInjectStyles(w, o, s) : e.generateAndInjectStyles(n, o, s);
3260
+ return "production" !== process.env.NODE_ENV && useDebugValue(i), "production" !== process.env.NODE_ENV && !t && r && r(i), i;
3261
+ }(i, r, y, "production" !== process.env.NODE_ENV ? e.warnTooManyClasses : void 0),
3262
+ b = n,
3263
+ _ = g.$as || t.$as || g.as || t.as || p,
3264
+ N = xe(_),
3265
+ A = g !== t ? v({}, t, {}, g) : t,
3266
+ C = {};
3267
+ for (var I in A) "$" !== I[0] && "as" !== I && ("forwardedAs" === I ? C.as = A[I] : (d ? d(I, isPropValid, _) : !N || isPropValid(I)) && (C[I] = A[I]));
3268
+ return t.style && g.style !== t.style && (C.style = v({}, t.style, {}, g.style)), C.className = Array.prototype.concat(c, h, S !== h ? S : null, t.className, g.className).filter(Boolean).join(" "), C.ref = b, createElement(_, C);
3269
+ }(C, e, t, P);
3270
+ };
3271
+ return O.displayName = y, (C = React.forwardRef(O)).attrs = N, C.componentStyle = I, C.displayName = y, C.shouldForwardProp = A, C.foldedComponentIds = o ? Array.prototype.concat(e.foldedComponentIds, e.styledComponentId) : S, C.styledComponentId = g, C.target = o ? e.target : e, C.withComponent = function (e) {
3272
+ var r = t.componentId,
3273
+ o = function (e, t) {
3274
+ if (null == e) return {};
3275
+ var n,
3276
+ r,
3277
+ o = {},
3278
+ s = Object.keys(e);
3279
+ for (r = 0; r < s.length; r++) n = s[r], t.indexOf(n) >= 0 || (o[n] = e[n]);
3280
+ return o;
3281
+ }(t, ["componentId"]),
3282
+ s = r && r + "-" + (xe(e) ? e : je(b(e)));
3283
+ return Ye(e, v({}, o, {
3284
+ attrs: N,
3285
+ componentId: s
3286
+ }), n);
3287
+ }, Object.defineProperty(C, "defaultProps", {
3288
+ get: function () {
3289
+ return this._foldedDefaultProps;
3290
+ },
3291
+ set: function (t) {
3292
+ this._foldedDefaultProps = o ? Be({}, e.defaultProps, t) : t;
3293
+ }
3294
+ }), "production" !== process.env.NODE_ENV && (Pe(y, g), C.warnTooManyClasses = function (e, t) {
3295
+ var n = {},
3296
+ r = !1;
3297
+ return function (o) {
3298
+ if (!r && (n[o] = !0, Object.keys(n).length >= 200)) {
3299
+ var s = t ? ' with the id of "' + t + '"' : "";
3300
+ console.warn("Over 200 classes were generated for component " + e + s + ".\nConsider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"), r = !0, n = {};
3301
+ }
3302
+ };
3303
+ }(y, g)), Object.defineProperty(C, "toString", {
3304
+ value: function () {
3305
+ return "." + C.styledComponentId;
3306
+ }
3307
+ }), i && m(C, e, {
3308
+ attrs: !0,
3309
+ componentStyle: !0,
3310
+ displayName: !0,
3311
+ foldedComponentIds: !0,
3312
+ shouldForwardProp: !0,
3313
+ styledComponentId: !0,
3314
+ target: !0,
3315
+ withComponent: !0
3316
+ }), C;
3317
+ }
3318
+ var qe = function (e) {
3319
+ return function e(t, r, o) {
3320
+ if (void 0 === o && (o = w), !reactIsExports$1.isValidElementType(r)) return D(1, String(r));
3321
+ var s = function () {
3322
+ return t(r, o, Ae.apply(void 0, arguments));
3323
+ };
3324
+ return s.withConfig = function (n) {
3325
+ return e(t, r, v({}, o, {}, n));
3326
+ }, s.attrs = function (n) {
3327
+ return e(t, r, v({}, o, {
3328
+ attrs: Array.prototype.concat(o.attrs, n).filter(Boolean)
3329
+ }));
3330
+ }, s;
3331
+ }(Ye, e);
3332
+ };
3333
+ ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "marquee", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "textPath", "tspan"].forEach(function (e) {
3334
+ qe[e] = qe(e);
3335
+ });
3336
+ "production" !== process.env.NODE_ENV && "undefined" != typeof navigator && "ReactNative" === navigator.product && console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native"), "production" !== process.env.NODE_ENV && "test" !== process.env.NODE_ENV && "undefined" != typeof window && (window["__styled-components-init__"] = window["__styled-components-init__"] || 0, 1 === window["__styled-components-init__"] && console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."), window["__styled-components-init__"] += 1);
3337
+ var styled = qe;
1408
3338
  function Status(props) {
1409
3339
  const {
1410
3340
  text,
@@ -1426,7 +3356,13 @@ function Status(props) {
1426
3356
  })
1427
3357
  });
1428
3358
  }
1429
- const StyledStickyCard = styled(Card)(() => css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: sticky;\n top: 0;\n z-index: 1;\n "]))));
3359
+ var __freeze$1 = Object.freeze;
3360
+ var __defProp$1 = Object.defineProperty;
3361
+ var __template$1 = (cooked, raw) => __freeze$1(__defProp$1(cooked, "raw", {
3362
+ value: __freeze$1(raw || cooked.slice())
3363
+ }));
3364
+ var _a$1;
3365
+ const StyledStickyCard = styled(Card)(() => Ae(_a$1 || (_a$1 = __template$1(["\n position: sticky;\n top: 0;\n z-index: 1;\n "]))));
1430
3366
  function StateTitle(props) {
1431
3367
  const {
1432
3368
  state,
@@ -1505,7 +3441,13 @@ function generateMultipleOrderRanks(count, start, end) {
1505
3441
  }
1506
3442
  return ranks.sort((a, b) => a.toString().localeCompare(b.toString()));
1507
3443
  }
1508
- const StyledFloatingCard = styled(Card)(() => css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 1000;\n "]))));
3444
+ var __freeze = Object.freeze;
3445
+ var __defProp = Object.defineProperty;
3446
+ var __template = (cooked, raw) => __freeze(__defProp(cooked, "raw", {
3447
+ value: __freeze(raw || cooked.slice())
3448
+ }));
3449
+ var _a;
3450
+ const StyledFloatingCard = styled(Card)(() => Ae(_a || (_a = __template(["\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 1000;\n "]))));
1509
3451
  function FloatingCard(_ref3) {
1510
3452
  let {
1511
3453
  children
@@ -2041,10 +3983,10 @@ const workflow = definePlugin(function () {
2041
3983
  ...config
2042
3984
  };
2043
3985
  if (!(states == null ? void 0 : states.length)) {
2044
- throw new Error("Workflow plugin: Missing \"states\" in config");
3986
+ throw new Error('Workflow plugin: Missing "states" in config');
2045
3987
  }
2046
3988
  if (!(schemaTypes == null ? void 0 : schemaTypes.length)) {
2047
- throw new Error("Workflow plugin: Missing \"schemaTypes\" in config");
3989
+ throw new Error('Workflow plugin: Missing "schemaTypes" in config');
2048
3990
  }
2049
3991
  return {
2050
3992
  name: "sanity-plugin-workflow",