WIP: Save current work before CHORUS rebrand
- Agent roles integration progress - Various backend and frontend updates - Storybook cache cleanup 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
5
frontend/.env.development.local
Normal file
5
frontend/.env.development.local
Normal file
@@ -0,0 +1,5 @@
|
||||
VITE_API_BASE_URL=https://hive.home.deepblack.cloud
|
||||
VITE_WS_BASE_URL=https://hive.home.deepblack.cloud
|
||||
VITE_ENABLE_DEBUG_MODE=true
|
||||
VITE_LOG_LEVEL=debug
|
||||
VITE_DEV_MODE=true
|
||||
@@ -11,9 +11,6 @@ RUN npm install && npm install -g serve
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
# Install curl for health checks (as root)
|
||||
RUN apk add --no-cache curl
|
||||
|
||||
@@ -21,6 +18,10 @@ RUN apk add --no-cache curl
|
||||
RUN addgroup -g 1001 -S nodejs
|
||||
RUN adduser -S nextjs -u 1001
|
||||
|
||||
# Build the application (with cache busting)
|
||||
ARG BUILD_DATE
|
||||
RUN echo "Building at: $BUILD_DATE" && npm run build
|
||||
|
||||
# Change ownership
|
||||
RUN chown -R nextjs:nodejs /app
|
||||
USER nextjs
|
||||
|
||||
33
frontend/Dockerfile.dev
Normal file
33
frontend/Dockerfile.dev
Normal file
@@ -0,0 +1,33 @@
|
||||
FROM node:18-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install curl for health checks and other utilities
|
||||
RUN apk add --no-cache curl git
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install dependencies (dev mode)
|
||||
RUN npm install
|
||||
|
||||
# Copy source code
|
||||
COPY . .
|
||||
|
||||
# Create non-root user
|
||||
RUN addgroup -g 1001 -S nodejs
|
||||
RUN adduser -S nextjs -u 1001
|
||||
|
||||
# Change ownership
|
||||
RUN chown -R nextjs:nodejs /app
|
||||
USER nextjs
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
|
||||
CMD curl -f http://localhost:3000 || exit 1
|
||||
|
||||
# Start development server with hot reload
|
||||
CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"]
|
||||
1
frontend/dist/assets/index-CYSOVan7.css
vendored
1
frontend/dist/assets/index-CYSOVan7.css
vendored
File diff suppressed because one or more lines are too long
347
frontend/dist/assets/index-f7xYn9lw.js
vendored
347
frontend/dist/assets/index-f7xYn9lw.js
vendored
File diff suppressed because one or more lines are too long
77
frontend/dist/index.html
vendored
77
frontend/dist/index.html
vendored
@@ -1,77 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<link rel="icon" type="image/svg+xml" href="/hive-icon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="Hive - Unified Distributed AI Orchestration Platform for coordinating AI agents, managing workflows, and monitoring performance" />
|
||||
<meta name="keywords" content="AI, orchestration, workflows, agents, distributed computing, automation" />
|
||||
<meta name="author" content="Hive Platform" />
|
||||
<meta name="theme-color" content="#3b82f6" />
|
||||
|
||||
<!-- Open Graph / Facebook -->
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:title" content="Hive - Distributed AI Orchestration" />
|
||||
<meta property="og:description" content="Unified platform for coordinating AI agents, managing workflows, and monitoring performance" />
|
||||
<meta property="og:url" content="https://hive.home.deepblack.cloud" />
|
||||
|
||||
<!-- Twitter -->
|
||||
<meta property="twitter:card" content="summary_large_image" />
|
||||
<meta property="twitter:title" content="Hive - Distributed AI Orchestration" />
|
||||
<meta property="twitter:description" content="Unified platform for coordinating AI agents, managing workflows, and monitoring performance" />
|
||||
|
||||
<!-- Accessibility -->
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
|
||||
<title>🐝 Hive - Distributed AI Orchestration</title>
|
||||
|
||||
<style>
|
||||
/* Loading styles for better UX */
|
||||
#root {
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* Screen reader only class */
|
||||
.sr-only {
|
||||
position: absolute;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
padding: 0;
|
||||
margin: -1px;
|
||||
overflow: hidden;
|
||||
clip: rect(0, 0, 0, 0);
|
||||
white-space: nowrap;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
/* Focus visible styles */
|
||||
.focus-visible:focus {
|
||||
outline: 2px solid #3b82f6;
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
/* Reduce motion for users who prefer it */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
animation-duration: 0.01ms !important;
|
||||
animation-iteration-count: 1 !important;
|
||||
transition-duration: 0.01ms !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/index-f7xYn9lw.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CYSOVan7.css">
|
||||
</head>
|
||||
<body>
|
||||
<noscript>
|
||||
<div style="text-align: center; padding: 2rem; font-family: sans-serif;">
|
||||
<h1>JavaScript Required</h1>
|
||||
<p>This application requires JavaScript to be enabled in your browser.</p>
|
||||
<p>Please enable JavaScript and refresh the page to continue.</p>
|
||||
</div>
|
||||
</noscript>
|
||||
<div id="root" role="main"></div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -23,6 +23,11 @@
|
||||
<!-- Accessibility -->
|
||||
<meta name="format-detection" content="telephone=no" />
|
||||
|
||||
<!-- Google Fonts - Fira Sans -->
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
||||
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap" rel="stylesheet">
|
||||
|
||||
<title>🐝 Hive - Distributed AI Orchestration</title>
|
||||
|
||||
<style>
|
||||
|
||||
1
frontend/node_modules/.cache/sb-vite-plugin-externals/@storybook/global.js
generated
vendored
1
frontend/node_modules/.cache/sb-vite-plugin-externals/@storybook/global.js
generated
vendored
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_GLOBAL__;
|
||||
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/actions.js
generated
vendored
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/actions.js
generated
vendored
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_ACTIONS__;
|
||||
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/internal/channels.js
generated
vendored
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/internal/channels.js
generated
vendored
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_CHANNELS__;
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_CLIENT_LOGGER__;
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_CORE_EVENTS__;
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_PREVIEW_API__;
|
||||
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_CORE_EVENTS_PREVIEW_ERRORS__;
|
||||
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/internal/types.js
generated
vendored
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/internal/types.js
generated
vendored
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_TYPES__;
|
||||
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/preview-api.js
generated
vendored
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/preview-api.js
generated
vendored
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_PREVIEW_API__;
|
||||
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/test.js
generated
vendored
1
frontend/node_modules/.cache/sb-vite-plugin-externals/storybook/test.js
generated
vendored
@@ -1 +0,0 @@
|
||||
module.exports = __STORYBOOK_MODULE_TEST__;
|
||||
@@ -1,480 +0,0 @@
|
||||
try{
|
||||
(() => {
|
||||
// global-externals:react
|
||||
var react_default = __REACT__, { Children, Component, Fragment, Profiler, PureComponent, StrictMode, Suspense, __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, act, cloneElement, createContext, createElement, createFactory, createRef, forwardRef, isValidElement, lazy, memo, startTransition, unstable_act, useCallback, useContext, useDebugValue, useDeferredValue, useEffect, useId, useImperativeHandle, useInsertionEffect, useLayoutEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore, useTransition, version } = __REACT__;
|
||||
|
||||
// global-externals:storybook/internal/components
|
||||
var components_default = __STORYBOOK_COMPONENTS__, { A, ActionBar, AddonPanel, Badge, Bar, Blockquote, Button, Checkbox, ClipboardCode, Code, DL, Div, DocumentWrapper, EmptyTabContent, ErrorFormatter, FlexBar, Form, H1, H2, H3, H4, H5, H6, HR, IconButton, Img, LI, Link, ListItem, Loader, Modal, OL, P, Placeholder, Pre, ProgressSpinner, ResetWrapper, ScrollArea, Separator, Spaced, Span, StorybookIcon, StorybookLogo, SyntaxHighlighter, TT, TabBar, TabButton, TabWrapper, Table, Tabs, TabsState, TooltipLinkList, TooltipMessage, TooltipNote, UL, WithTooltip, WithTooltipPure, Zoom, codeCommon, components, createCopyToClipboardFunction, getStoryHref, interleaveSeparators, nameSpaceClassNames, resetComponents, withReset } = __STORYBOOK_COMPONENTS__;
|
||||
|
||||
// global-externals:storybook/manager-api
|
||||
var manager_api_default = __STORYBOOK_API__, { ActiveTabs, Consumer, ManagerContext, Provider, RequestResponseError, addons, combineParameters, controlOrMetaKey, controlOrMetaSymbol, eventMatchesShortcut, eventToShortcut, experimental_MockUniversalStore, experimental_UniversalStore, experimental_getStatusStore, experimental_getTestProviderStore, experimental_requestResponse, experimental_useStatusStore, experimental_useTestProviderStore, experimental_useUniversalStore, internal_fullStatusStore, internal_fullTestProviderStore, internal_universalStatusStore, internal_universalTestProviderStore, isMacLike, isShortcutTaken, keyToSymbol, merge, mockChannel, optionOrAltSymbol, shortcutMatchesShortcut, shortcutToHumanString, types, useAddonState, useArgTypes, useArgs, useChannel, useGlobalTypes, useGlobals, useParameter, useSharedState, useStoryPrepared, useStorybookApi, useStorybookState } = __STORYBOOK_API__;
|
||||
|
||||
// global-externals:storybook/theming
|
||||
var theming_default = __STORYBOOK_THEMING__, { CacheProvider, ClassNames, Global, ThemeProvider, background, color, convert, create, createCache, createGlobal, createReset, css, darken, ensure, ignoreSsrWarning, isPropValid, jsx, keyframes, lighten, styled, themes, typography, useTheme, withTheme } = __STORYBOOK_THEMING__;
|
||||
|
||||
// node_modules/@storybook/addon-docs/dist/manager.js
|
||||
var ADDON_ID = "storybook/docs", PANEL_ID = `${ADDON_ID}/panel`, PARAM_KEY = "docs", SNIPPET_RENDERED = `${ADDON_ID}/snippet-rendered`;
|
||||
function _extends() {
|
||||
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
||||
for (var e = 1; e < arguments.length; e++) {
|
||||
var t = arguments[e];
|
||||
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
||||
}
|
||||
return n;
|
||||
}, _extends.apply(null, arguments);
|
||||
}
|
||||
function _assertThisInitialized(e) {
|
||||
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
||||
return e;
|
||||
}
|
||||
function _setPrototypeOf(t, e) {
|
||||
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
|
||||
return t2.__proto__ = e2, t2;
|
||||
}, _setPrototypeOf(t, e);
|
||||
}
|
||||
function _inheritsLoose(t, o) {
|
||||
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
||||
}
|
||||
function _getPrototypeOf(t) {
|
||||
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
|
||||
return t2.__proto__ || Object.getPrototypeOf(t2);
|
||||
}, _getPrototypeOf(t);
|
||||
}
|
||||
function _isNativeFunction(t) {
|
||||
try {
|
||||
return Function.toString.call(t).indexOf("[native code]") !== -1;
|
||||
} catch {
|
||||
return typeof t == "function";
|
||||
}
|
||||
}
|
||||
function _isNativeReflectConstruct() {
|
||||
try {
|
||||
var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
||||
}));
|
||||
} catch {
|
||||
}
|
||||
return (_isNativeReflectConstruct = function() {
|
||||
return !!t;
|
||||
})();
|
||||
}
|
||||
function _construct(t, e, r) {
|
||||
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
||||
var o = [null];
|
||||
o.push.apply(o, e);
|
||||
var p = new (t.bind.apply(t, o))();
|
||||
return r && _setPrototypeOf(p, r.prototype), p;
|
||||
}
|
||||
function _wrapNativeSuper(t) {
|
||||
var r = typeof Map == "function" ? /* @__PURE__ */ new Map() : void 0;
|
||||
return _wrapNativeSuper = function(t2) {
|
||||
if (t2 === null || !_isNativeFunction(t2)) return t2;
|
||||
if (typeof t2 != "function") throw new TypeError("Super expression must either be null or a function");
|
||||
if (r !== void 0) {
|
||||
if (r.has(t2)) return r.get(t2);
|
||||
r.set(t2, Wrapper2);
|
||||
}
|
||||
function Wrapper2() {
|
||||
return _construct(t2, arguments, _getPrototypeOf(this).constructor);
|
||||
}
|
||||
return Wrapper2.prototype = Object.create(t2.prototype, { constructor: { value: Wrapper2, enumerable: !1, writable: !0, configurable: !0 } }), _setPrototypeOf(Wrapper2, t2);
|
||||
}, _wrapNativeSuper(t);
|
||||
}
|
||||
var ERRORS = { 1: `Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).
|
||||
|
||||
`, 2: `Passed invalid arguments to hsla, please pass multiple numbers e.g. hsla(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).
|
||||
|
||||
`, 3: `Passed an incorrect argument to a color function, please pass a string representation of a color.
|
||||
|
||||
`, 4: `Couldn't generate valid rgb string from %s, it returned %s.
|
||||
|
||||
`, 5: `Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.
|
||||
|
||||
`, 6: `Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).
|
||||
|
||||
`, 7: `Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).
|
||||
|
||||
`, 8: `Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.
|
||||
|
||||
`, 9: `Please provide a number of steps to the modularScale helper.
|
||||
|
||||
`, 10: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
||||
|
||||
`, 11: `Invalid value passed as base to modularScale, expected number or em string but got "%s"
|
||||
|
||||
`, 12: `Expected a string ending in "px" or a number passed as the first argument to %s(), got "%s" instead.
|
||||
|
||||
`, 13: `Expected a string ending in "px" or a number passed as the second argument to %s(), got "%s" instead.
|
||||
|
||||
`, 14: `Passed invalid pixel value ("%s") to %s(), please pass a value like "12px" or 12.
|
||||
|
||||
`, 15: `Passed invalid base value ("%s") to %s(), please pass a value like "12px" or 12.
|
||||
|
||||
`, 16: `You must provide a template to this method.
|
||||
|
||||
`, 17: `You passed an unsupported selector state to this method.
|
||||
|
||||
`, 18: `minScreen and maxScreen must be provided as stringified numbers with the same units.
|
||||
|
||||
`, 19: `fromSize and toSize must be provided as stringified numbers with the same units.
|
||||
|
||||
`, 20: `expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
||||
|
||||
`, 21: "expects the objects in the first argument array to have the properties `prop`, `fromSize`, and `toSize`.\n\n", 22: "expects the first argument object to have the properties `prop`, `fromSize`, and `toSize`.\n\n", 23: `fontFace expects a name of a font-family.
|
||||
|
||||
`, 24: `fontFace expects either the path to the font file(s) or a name of a local copy.
|
||||
|
||||
`, 25: `fontFace expects localFonts to be an array.
|
||||
|
||||
`, 26: `fontFace expects fileFormats to be an array.
|
||||
|
||||
`, 27: `radialGradient requries at least 2 color-stops to properly render.
|
||||
|
||||
`, 28: `Please supply a filename to retinaImage() as the first argument.
|
||||
|
||||
`, 29: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
||||
|
||||
`, 30: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", 31: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation
|
||||
|
||||
`, 32: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])
|
||||
To pass a single animation please supply them in simple values, e.g. animation('rotate', '2s')
|
||||
|
||||
`, 33: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation
|
||||
|
||||
`, 34: `borderRadius expects a radius value as a string or number as the second argument.
|
||||
|
||||
`, 35: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
||||
|
||||
`, 36: `Property must be a string value.
|
||||
|
||||
`, 37: `Syntax Error at %s.
|
||||
|
||||
`, 38: `Formula contains a function that needs parentheses at %s.
|
||||
|
||||
`, 39: `Formula is missing closing parenthesis at %s.
|
||||
|
||||
`, 40: `Formula has too many closing parentheses at %s.
|
||||
|
||||
`, 41: `All values in a formula must have the same unit or be unitless.
|
||||
|
||||
`, 42: `Please provide a number of steps to the modularScale helper.
|
||||
|
||||
`, 43: `Please pass a number or one of the predefined scales to the modularScale helper as the ratio.
|
||||
|
||||
`, 44: `Invalid value passed as base to modularScale, expected number or em/rem string but got %s.
|
||||
|
||||
`, 45: `Passed invalid argument to hslToColorString, please pass a HslColor or HslaColor object.
|
||||
|
||||
`, 46: `Passed invalid argument to rgbToColorString, please pass a RgbColor or RgbaColor object.
|
||||
|
||||
`, 47: `minScreen and maxScreen must be provided as stringified numbers with the same units.
|
||||
|
||||
`, 48: `fromSize and toSize must be provided as stringified numbers with the same units.
|
||||
|
||||
`, 49: `Expects either an array of objects or a single object with the properties prop, fromSize, and toSize.
|
||||
|
||||
`, 50: `Expects the objects in the first argument array to have the properties prop, fromSize, and toSize.
|
||||
|
||||
`, 51: `Expects the first argument object to have the properties prop, fromSize, and toSize.
|
||||
|
||||
`, 52: `fontFace expects either the path to the font file(s) or a name of a local copy.
|
||||
|
||||
`, 53: `fontFace expects localFonts to be an array.
|
||||
|
||||
`, 54: `fontFace expects fileFormats to be an array.
|
||||
|
||||
`, 55: `fontFace expects a name of a font-family.
|
||||
|
||||
`, 56: `linearGradient requries at least 2 color-stops to properly render.
|
||||
|
||||
`, 57: `radialGradient requries at least 2 color-stops to properly render.
|
||||
|
||||
`, 58: `Please supply a filename to retinaImage() as the first argument.
|
||||
|
||||
`, 59: `Passed invalid argument to triangle, please pass correct pointingDirection e.g. 'right'.
|
||||
|
||||
`, 60: "Passed an invalid value to `height` or `width`. Please provide a pixel based unit.\n\n", 61: `Property must be a string value.
|
||||
|
||||
`, 62: `borderRadius expects a radius value as a string or number as the second argument.
|
||||
|
||||
`, 63: `borderRadius expects one of "top", "bottom", "left" or "right" as the first argument.
|
||||
|
||||
`, 64: `The animation shorthand only takes 8 arguments. See the specification for more information: http://mdn.io/animation.
|
||||
|
||||
`, 65: `To pass multiple animations please supply them in arrays, e.g. animation(['rotate', '2s'], ['move', '1s'])\\nTo pass a single animation please supply them in simple values, e.g. animation('rotate', '2s').
|
||||
|
||||
`, 66: `The animation shorthand arrays can only have 8 elements. See the specification for more information: http://mdn.io/animation.
|
||||
|
||||
`, 67: `You must provide a template to this method.
|
||||
|
||||
`, 68: `You passed an unsupported selector state to this method.
|
||||
|
||||
`, 69: `Expected a string ending in "px" or a number passed as the first argument to %s(), got %s instead.
|
||||
|
||||
`, 70: `Expected a string ending in "px" or a number passed as the second argument to %s(), got %s instead.
|
||||
|
||||
`, 71: `Passed invalid pixel value %s to %s(), please pass a value like "12px" or 12.
|
||||
|
||||
`, 72: `Passed invalid base value %s to %s(), please pass a value like "12px" or 12.
|
||||
|
||||
`, 73: `Please provide a valid CSS variable.
|
||||
|
||||
`, 74: `CSS variable not found and no default was provided.
|
||||
|
||||
`, 75: `important requires a valid style object, got a %s instead.
|
||||
|
||||
`, 76: `fromSize and toSize must be provided as stringified numbers with the same units as minScreen and maxScreen.
|
||||
|
||||
`, 77: `remToPx expects a value in "rem" but you provided it in "%s".
|
||||
|
||||
`, 78: `base must be set in "px" or "%" but you set it in "%s".
|
||||
` };
|
||||
function format() {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
||||
var a = args[0], b = [], c;
|
||||
for (c = 1; c < args.length; c += 1) b.push(args[c]);
|
||||
return b.forEach(function(d) {
|
||||
a = a.replace(/%[a-z]/, d);
|
||||
}), a;
|
||||
}
|
||||
var PolishedError = function(_Error) {
|
||||
_inheritsLoose(PolishedError2, _Error);
|
||||
function PolishedError2(code) {
|
||||
for (var _this, _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) args[_key2 - 1] = arguments[_key2];
|
||||
return _this = _Error.call(this, format.apply(void 0, [ERRORS[code]].concat(args))) || this, _assertThisInitialized(_this);
|
||||
}
|
||||
return PolishedError2;
|
||||
}(_wrapNativeSuper(Error));
|
||||
function colorToInt(color2) {
|
||||
return Math.round(color2 * 255);
|
||||
}
|
||||
function convertToInt(red, green, blue) {
|
||||
return colorToInt(red) + "," + colorToInt(green) + "," + colorToInt(blue);
|
||||
}
|
||||
function hslToRgb(hue, saturation, lightness, convert2) {
|
||||
if (convert2 === void 0 && (convert2 = convertToInt), saturation === 0) return convert2(lightness, lightness, lightness);
|
||||
var huePrime = (hue % 360 + 360) % 360 / 60, chroma = (1 - Math.abs(2 * lightness - 1)) * saturation, secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1)), red = 0, green = 0, blue = 0;
|
||||
huePrime >= 0 && huePrime < 1 ? (red = chroma, green = secondComponent) : huePrime >= 1 && huePrime < 2 ? (red = secondComponent, green = chroma) : huePrime >= 2 && huePrime < 3 ? (green = chroma, blue = secondComponent) : huePrime >= 3 && huePrime < 4 ? (green = secondComponent, blue = chroma) : huePrime >= 4 && huePrime < 5 ? (red = secondComponent, blue = chroma) : huePrime >= 5 && huePrime < 6 && (red = chroma, blue = secondComponent);
|
||||
var lightnessModification = lightness - chroma / 2, finalRed = red + lightnessModification, finalGreen = green + lightnessModification, finalBlue = blue + lightnessModification;
|
||||
return convert2(finalRed, finalGreen, finalBlue);
|
||||
}
|
||||
var namedColorMap = { aliceblue: "f0f8ff", antiquewhite: "faebd7", aqua: "00ffff", aquamarine: "7fffd4", azure: "f0ffff", beige: "f5f5dc", bisque: "ffe4c4", black: "000", blanchedalmond: "ffebcd", blue: "0000ff", blueviolet: "8a2be2", brown: "a52a2a", burlywood: "deb887", cadetblue: "5f9ea0", chartreuse: "7fff00", chocolate: "d2691e", coral: "ff7f50", cornflowerblue: "6495ed", cornsilk: "fff8dc", crimson: "dc143c", cyan: "00ffff", darkblue: "00008b", darkcyan: "008b8b", darkgoldenrod: "b8860b", darkgray: "a9a9a9", darkgreen: "006400", darkgrey: "a9a9a9", darkkhaki: "bdb76b", darkmagenta: "8b008b", darkolivegreen: "556b2f", darkorange: "ff8c00", darkorchid: "9932cc", darkred: "8b0000", darksalmon: "e9967a", darkseagreen: "8fbc8f", darkslateblue: "483d8b", darkslategray: "2f4f4f", darkslategrey: "2f4f4f", darkturquoise: "00ced1", darkviolet: "9400d3", deeppink: "ff1493", deepskyblue: "00bfff", dimgray: "696969", dimgrey: "696969", dodgerblue: "1e90ff", firebrick: "b22222", floralwhite: "fffaf0", forestgreen: "228b22", fuchsia: "ff00ff", gainsboro: "dcdcdc", ghostwhite: "f8f8ff", gold: "ffd700", goldenrod: "daa520", gray: "808080", green: "008000", greenyellow: "adff2f", grey: "808080", honeydew: "f0fff0", hotpink: "ff69b4", indianred: "cd5c5c", indigo: "4b0082", ivory: "fffff0", khaki: "f0e68c", lavender: "e6e6fa", lavenderblush: "fff0f5", lawngreen: "7cfc00", lemonchiffon: "fffacd", lightblue: "add8e6", lightcoral: "f08080", lightcyan: "e0ffff", lightgoldenrodyellow: "fafad2", lightgray: "d3d3d3", lightgreen: "90ee90", lightgrey: "d3d3d3", lightpink: "ffb6c1", lightsalmon: "ffa07a", lightseagreen: "20b2aa", lightskyblue: "87cefa", lightslategray: "789", lightslategrey: "789", lightsteelblue: "b0c4de", lightyellow: "ffffe0", lime: "0f0", limegreen: "32cd32", linen: "faf0e6", magenta: "f0f", maroon: "800000", mediumaquamarine: "66cdaa", mediumblue: "0000cd", mediumorchid: "ba55d3", mediumpurple: "9370db", mediumseagreen: "3cb371", mediumslateblue: "7b68ee", mediumspringgreen: "00fa9a", mediumturquoise: "48d1cc", mediumvioletred: "c71585", midnightblue: "191970", mintcream: "f5fffa", mistyrose: "ffe4e1", moccasin: "ffe4b5", navajowhite: "ffdead", navy: "000080", oldlace: "fdf5e6", olive: "808000", olivedrab: "6b8e23", orange: "ffa500", orangered: "ff4500", orchid: "da70d6", palegoldenrod: "eee8aa", palegreen: "98fb98", paleturquoise: "afeeee", palevioletred: "db7093", papayawhip: "ffefd5", peachpuff: "ffdab9", peru: "cd853f", pink: "ffc0cb", plum: "dda0dd", powderblue: "b0e0e6", purple: "800080", rebeccapurple: "639", red: "f00", rosybrown: "bc8f8f", royalblue: "4169e1", saddlebrown: "8b4513", salmon: "fa8072", sandybrown: "f4a460", seagreen: "2e8b57", seashell: "fff5ee", sienna: "a0522d", silver: "c0c0c0", skyblue: "87ceeb", slateblue: "6a5acd", slategray: "708090", slategrey: "708090", snow: "fffafa", springgreen: "00ff7f", steelblue: "4682b4", tan: "d2b48c", teal: "008080", thistle: "d8bfd8", tomato: "ff6347", turquoise: "40e0d0", violet: "ee82ee", wheat: "f5deb3", white: "fff", whitesmoke: "f5f5f5", yellow: "ff0", yellowgreen: "9acd32" };
|
||||
function nameToHex(color2) {
|
||||
if (typeof color2 != "string") return color2;
|
||||
var normalizedColorName = color2.toLowerCase();
|
||||
return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color2;
|
||||
}
|
||||
var hexRegex = /^#[a-fA-F0-9]{6}$/, hexRgbaRegex = /^#[a-fA-F0-9]{8}$/, reducedHexRegex = /^#[a-fA-F0-9]{3}$/, reducedRgbaHexRegex = /^#[a-fA-F0-9]{4}$/, rgbRegex = /^rgb\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*\)$/i, rgbaRegex = /^rgb(?:a)?\(\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,)?\s*(\d{1,3})\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i, hslRegex = /^hsl\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*\)$/i, hslaRegex = /^hsl(?:a)?\(\s*(\d{0,3}[.]?[0-9]+(?:deg)?)\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,)?\s*(\d{1,3}[.]?[0-9]?)%\s*(?:,|\/)\s*([-+]?\d*[.]?\d+[%]?)\s*\)$/i;
|
||||
function parseToRgb(color2) {
|
||||
if (typeof color2 != "string") throw new PolishedError(3);
|
||||
var normalizedColor = nameToHex(color2);
|
||||
if (normalizedColor.match(hexRegex)) return { red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16), green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16), blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16) };
|
||||
if (normalizedColor.match(hexRgbaRegex)) {
|
||||
var alpha = parseFloat((parseInt("" + normalizedColor[7] + normalizedColor[8], 16) / 255).toFixed(2));
|
||||
return { red: parseInt("" + normalizedColor[1] + normalizedColor[2], 16), green: parseInt("" + normalizedColor[3] + normalizedColor[4], 16), blue: parseInt("" + normalizedColor[5] + normalizedColor[6], 16), alpha };
|
||||
}
|
||||
if (normalizedColor.match(reducedHexRegex)) return { red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16), green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16), blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16) };
|
||||
if (normalizedColor.match(reducedRgbaHexRegex)) {
|
||||
var _alpha = parseFloat((parseInt("" + normalizedColor[4] + normalizedColor[4], 16) / 255).toFixed(2));
|
||||
return { red: parseInt("" + normalizedColor[1] + normalizedColor[1], 16), green: parseInt("" + normalizedColor[2] + normalizedColor[2], 16), blue: parseInt("" + normalizedColor[3] + normalizedColor[3], 16), alpha: _alpha };
|
||||
}
|
||||
var rgbMatched = rgbRegex.exec(normalizedColor);
|
||||
if (rgbMatched) return { red: parseInt("" + rgbMatched[1], 10), green: parseInt("" + rgbMatched[2], 10), blue: parseInt("" + rgbMatched[3], 10) };
|
||||
var rgbaMatched = rgbaRegex.exec(normalizedColor.substring(0, 50));
|
||||
if (rgbaMatched) return { red: parseInt("" + rgbaMatched[1], 10), green: parseInt("" + rgbaMatched[2], 10), blue: parseInt("" + rgbaMatched[3], 10), alpha: parseFloat("" + rgbaMatched[4]) > 1 ? parseFloat("" + rgbaMatched[4]) / 100 : parseFloat("" + rgbaMatched[4]) };
|
||||
var hslMatched = hslRegex.exec(normalizedColor);
|
||||
if (hslMatched) {
|
||||
var hue = parseInt("" + hslMatched[1], 10), saturation = parseInt("" + hslMatched[2], 10) / 100, lightness = parseInt("" + hslMatched[3], 10) / 100, rgbColorString = "rgb(" + hslToRgb(hue, saturation, lightness) + ")", hslRgbMatched = rgbRegex.exec(rgbColorString);
|
||||
if (!hslRgbMatched) throw new PolishedError(4, normalizedColor, rgbColorString);
|
||||
return { red: parseInt("" + hslRgbMatched[1], 10), green: parseInt("" + hslRgbMatched[2], 10), blue: parseInt("" + hslRgbMatched[3], 10) };
|
||||
}
|
||||
var hslaMatched = hslaRegex.exec(normalizedColor.substring(0, 50));
|
||||
if (hslaMatched) {
|
||||
var _hue = parseInt("" + hslaMatched[1], 10), _saturation = parseInt("" + hslaMatched[2], 10) / 100, _lightness = parseInt("" + hslaMatched[3], 10) / 100, _rgbColorString = "rgb(" + hslToRgb(_hue, _saturation, _lightness) + ")", _hslRgbMatched = rgbRegex.exec(_rgbColorString);
|
||||
if (!_hslRgbMatched) throw new PolishedError(4, normalizedColor, _rgbColorString);
|
||||
return { red: parseInt("" + _hslRgbMatched[1], 10), green: parseInt("" + _hslRgbMatched[2], 10), blue: parseInt("" + _hslRgbMatched[3], 10), alpha: parseFloat("" + hslaMatched[4]) > 1 ? parseFloat("" + hslaMatched[4]) / 100 : parseFloat("" + hslaMatched[4]) };
|
||||
}
|
||||
throw new PolishedError(5);
|
||||
}
|
||||
function rgbToHsl(color2) {
|
||||
var red = color2.red / 255, green = color2.green / 255, blue = color2.blue / 255, max = Math.max(red, green, blue), min = Math.min(red, green, blue), lightness = (max + min) / 2;
|
||||
if (max === min) return color2.alpha !== void 0 ? { hue: 0, saturation: 0, lightness, alpha: color2.alpha } : { hue: 0, saturation: 0, lightness };
|
||||
var hue, delta = max - min, saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);
|
||||
switch (max) {
|
||||
case red:
|
||||
hue = (green - blue) / delta + (green < blue ? 6 : 0);
|
||||
break;
|
||||
case green:
|
||||
hue = (blue - red) / delta + 2;
|
||||
break;
|
||||
default:
|
||||
hue = (red - green) / delta + 4;
|
||||
break;
|
||||
}
|
||||
return hue *= 60, color2.alpha !== void 0 ? { hue, saturation, lightness, alpha: color2.alpha } : { hue, saturation, lightness };
|
||||
}
|
||||
function parseToHsl(color2) {
|
||||
return rgbToHsl(parseToRgb(color2));
|
||||
}
|
||||
var reduceHexValue = function(value) {
|
||||
return value.length === 7 && value[1] === value[2] && value[3] === value[4] && value[5] === value[6] ? "#" + value[1] + value[3] + value[5] : value;
|
||||
}, reduceHexValue$1 = reduceHexValue;
|
||||
function numberToHex(value) {
|
||||
var hex = value.toString(16);
|
||||
return hex.length === 1 ? "0" + hex : hex;
|
||||
}
|
||||
function colorToHex(color2) {
|
||||
return numberToHex(Math.round(color2 * 255));
|
||||
}
|
||||
function convertToHex(red, green, blue) {
|
||||
return reduceHexValue$1("#" + colorToHex(red) + colorToHex(green) + colorToHex(blue));
|
||||
}
|
||||
function hslToHex(hue, saturation, lightness) {
|
||||
return hslToRgb(hue, saturation, lightness, convertToHex);
|
||||
}
|
||||
function hsl(value, saturation, lightness) {
|
||||
if (typeof value == "number" && typeof saturation == "number" && typeof lightness == "number") return hslToHex(value, saturation, lightness);
|
||||
if (typeof value == "object" && saturation === void 0 && lightness === void 0) return hslToHex(value.hue, value.saturation, value.lightness);
|
||||
throw new PolishedError(1);
|
||||
}
|
||||
function hsla(value, saturation, lightness, alpha) {
|
||||
if (typeof value == "number" && typeof saturation == "number" && typeof lightness == "number" && typeof alpha == "number") return alpha >= 1 ? hslToHex(value, saturation, lightness) : "rgba(" + hslToRgb(value, saturation, lightness) + "," + alpha + ")";
|
||||
if (typeof value == "object" && saturation === void 0 && lightness === void 0 && alpha === void 0) return value.alpha >= 1 ? hslToHex(value.hue, value.saturation, value.lightness) : "rgba(" + hslToRgb(value.hue, value.saturation, value.lightness) + "," + value.alpha + ")";
|
||||
throw new PolishedError(2);
|
||||
}
|
||||
function rgb(value, green, blue) {
|
||||
if (typeof value == "number" && typeof green == "number" && typeof blue == "number") return reduceHexValue$1("#" + numberToHex(value) + numberToHex(green) + numberToHex(blue));
|
||||
if (typeof value == "object" && green === void 0 && blue === void 0) return reduceHexValue$1("#" + numberToHex(value.red) + numberToHex(value.green) + numberToHex(value.blue));
|
||||
throw new PolishedError(6);
|
||||
}
|
||||
function rgba(firstValue, secondValue, thirdValue, fourthValue) {
|
||||
if (typeof firstValue == "string" && typeof secondValue == "number") {
|
||||
var rgbValue = parseToRgb(firstValue);
|
||||
return "rgba(" + rgbValue.red + "," + rgbValue.green + "," + rgbValue.blue + "," + secondValue + ")";
|
||||
} else {
|
||||
if (typeof firstValue == "number" && typeof secondValue == "number" && typeof thirdValue == "number" && typeof fourthValue == "number") return fourthValue >= 1 ? rgb(firstValue, secondValue, thirdValue) : "rgba(" + firstValue + "," + secondValue + "," + thirdValue + "," + fourthValue + ")";
|
||||
if (typeof firstValue == "object" && secondValue === void 0 && thirdValue === void 0 && fourthValue === void 0) return firstValue.alpha >= 1 ? rgb(firstValue.red, firstValue.green, firstValue.blue) : "rgba(" + firstValue.red + "," + firstValue.green + "," + firstValue.blue + "," + firstValue.alpha + ")";
|
||||
}
|
||||
throw new PolishedError(7);
|
||||
}
|
||||
var isRgb = function(color2) {
|
||||
return typeof color2.red == "number" && typeof color2.green == "number" && typeof color2.blue == "number" && (typeof color2.alpha != "number" || typeof color2.alpha > "u");
|
||||
}, isRgba = function(color2) {
|
||||
return typeof color2.red == "number" && typeof color2.green == "number" && typeof color2.blue == "number" && typeof color2.alpha == "number";
|
||||
}, isHsl = function(color2) {
|
||||
return typeof color2.hue == "number" && typeof color2.saturation == "number" && typeof color2.lightness == "number" && (typeof color2.alpha != "number" || typeof color2.alpha > "u");
|
||||
}, isHsla = function(color2) {
|
||||
return typeof color2.hue == "number" && typeof color2.saturation == "number" && typeof color2.lightness == "number" && typeof color2.alpha == "number";
|
||||
};
|
||||
function toColorString(color2) {
|
||||
if (typeof color2 != "object") throw new PolishedError(8);
|
||||
if (isRgba(color2)) return rgba(color2);
|
||||
if (isRgb(color2)) return rgb(color2);
|
||||
if (isHsla(color2)) return hsla(color2);
|
||||
if (isHsl(color2)) return hsl(color2);
|
||||
throw new PolishedError(8);
|
||||
}
|
||||
function curried(f, length, acc) {
|
||||
return function() {
|
||||
var combined = acc.concat(Array.prototype.slice.call(arguments));
|
||||
return combined.length >= length ? f.apply(this, combined) : curried(f, length, combined);
|
||||
};
|
||||
}
|
||||
function curry(f) {
|
||||
return curried(f, f.length, []);
|
||||
}
|
||||
function adjustHue(degree, color2) {
|
||||
if (color2 === "transparent") return color2;
|
||||
var hslColor = parseToHsl(color2);
|
||||
return toColorString(_extends({}, hslColor, { hue: hslColor.hue + parseFloat(degree) }));
|
||||
}
|
||||
curry(adjustHue);
|
||||
function guard(lowerBoundary, upperBoundary, value) {
|
||||
return Math.max(lowerBoundary, Math.min(upperBoundary, value));
|
||||
}
|
||||
function darken2(amount, color2) {
|
||||
if (color2 === "transparent") return color2;
|
||||
var hslColor = parseToHsl(color2);
|
||||
return toColorString(_extends({}, hslColor, { lightness: guard(0, 1, hslColor.lightness - parseFloat(amount)) }));
|
||||
}
|
||||
curry(darken2);
|
||||
function desaturate(amount, color2) {
|
||||
if (color2 === "transparent") return color2;
|
||||
var hslColor = parseToHsl(color2);
|
||||
return toColorString(_extends({}, hslColor, { saturation: guard(0, 1, hslColor.saturation - parseFloat(amount)) }));
|
||||
}
|
||||
curry(desaturate);
|
||||
function lighten2(amount, color2) {
|
||||
if (color2 === "transparent") return color2;
|
||||
var hslColor = parseToHsl(color2);
|
||||
return toColorString(_extends({}, hslColor, { lightness: guard(0, 1, hslColor.lightness + parseFloat(amount)) }));
|
||||
}
|
||||
curry(lighten2);
|
||||
function mix(weight, color2, otherColor) {
|
||||
if (color2 === "transparent") return otherColor;
|
||||
if (otherColor === "transparent") return color2;
|
||||
if (weight === 0) return otherColor;
|
||||
var parsedColor1 = parseToRgb(color2), color1 = _extends({}, parsedColor1, { alpha: typeof parsedColor1.alpha == "number" ? parsedColor1.alpha : 1 }), parsedColor2 = parseToRgb(otherColor), color22 = _extends({}, parsedColor2, { alpha: typeof parsedColor2.alpha == "number" ? parsedColor2.alpha : 1 }), alphaDelta = color1.alpha - color22.alpha, x = parseFloat(weight) * 2 - 1, y = x * alphaDelta === -1 ? x : x + alphaDelta, z = 1 + x * alphaDelta, weight1 = (y / z + 1) / 2, weight2 = 1 - weight1, mixedColor = { red: Math.floor(color1.red * weight1 + color22.red * weight2), green: Math.floor(color1.green * weight1 + color22.green * weight2), blue: Math.floor(color1.blue * weight1 + color22.blue * weight2), alpha: color1.alpha * parseFloat(weight) + color22.alpha * (1 - parseFloat(weight)) };
|
||||
return rgba(mixedColor);
|
||||
}
|
||||
var curriedMix = curry(mix), mix$1 = curriedMix;
|
||||
function opacify(amount, color2) {
|
||||
if (color2 === "transparent") return color2;
|
||||
var parsedColor = parseToRgb(color2), alpha = typeof parsedColor.alpha == "number" ? parsedColor.alpha : 1, colorWithAlpha = _extends({}, parsedColor, { alpha: guard(0, 1, (alpha * 100 + parseFloat(amount) * 100) / 100) });
|
||||
return rgba(colorWithAlpha);
|
||||
}
|
||||
curry(opacify);
|
||||
function saturate(amount, color2) {
|
||||
if (color2 === "transparent") return color2;
|
||||
var hslColor = parseToHsl(color2);
|
||||
return toColorString(_extends({}, hslColor, { saturation: guard(0, 1, hslColor.saturation + parseFloat(amount)) }));
|
||||
}
|
||||
curry(saturate);
|
||||
function setHue(hue, color2) {
|
||||
return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), { hue: parseFloat(hue) }));
|
||||
}
|
||||
curry(setHue);
|
||||
function setLightness(lightness, color2) {
|
||||
return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), { lightness: parseFloat(lightness) }));
|
||||
}
|
||||
curry(setLightness);
|
||||
function setSaturation(saturation, color2) {
|
||||
return color2 === "transparent" ? color2 : toColorString(_extends({}, parseToHsl(color2), { saturation: parseFloat(saturation) }));
|
||||
}
|
||||
curry(setSaturation);
|
||||
function shade(percentage, color2) {
|
||||
return color2 === "transparent" ? color2 : mix$1(parseFloat(percentage), "rgb(0, 0, 0)", color2);
|
||||
}
|
||||
curry(shade);
|
||||
function tint(percentage, color2) {
|
||||
return color2 === "transparent" ? color2 : mix$1(parseFloat(percentage), "rgb(255, 255, 255)", color2);
|
||||
}
|
||||
curry(tint);
|
||||
function transparentize(amount, color2) {
|
||||
if (color2 === "transparent") return color2;
|
||||
var parsedColor = parseToRgb(color2), alpha = typeof parsedColor.alpha == "number" ? parsedColor.alpha : 1, colorWithAlpha = _extends({}, parsedColor, { alpha: guard(0, 1, +(alpha * 100 - parseFloat(amount) * 100).toFixed(2) / 100) });
|
||||
return rgba(colorWithAlpha);
|
||||
}
|
||||
var curriedTransparentize = curry(transparentize), curriedTransparentize$1 = curriedTransparentize, Wrapper = styled.div(withReset, ({ theme }) => ({ backgroundColor: theme.base === "light" ? "rgba(0,0,0,.01)" : "rgba(255,255,255,.01)", borderRadius: theme.appBorderRadius, border: `1px dashed ${theme.appBorderColor}`, display: "flex", alignItems: "center", justifyContent: "center", padding: 20, margin: "25px 0 40px", color: curriedTransparentize$1(0.3, theme.color.defaultText), fontSize: theme.typography.size.s2 })), EmptyBlock = (props) => react_default.createElement(Wrapper, { ...props, className: "docblock-emptyblock sb-unstyled" }), StyledSyntaxHighlighter = styled(SyntaxHighlighter)(({ theme }) => ({ fontSize: `${theme.typography.size.s2 - 1}px`, lineHeight: "19px", margin: "25px 0 40px", borderRadius: theme.appBorderRadius, boxShadow: theme.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", "pre.prismjs": { padding: 20, background: "inherit" } })), SourceSkeletonWrapper = styled.div(({ theme }) => ({ background: theme.background.content, borderRadius: theme.appBorderRadius, border: `1px solid ${theme.appBorderColor}`, boxShadow: theme.base === "light" ? "rgba(0, 0, 0, 0.10) 0 1px 3px 0" : "rgba(0, 0, 0, 0.20) 0 2px 5px 0", margin: "25px 0 40px", padding: "20px 20px 20px 22px" })), SourceSkeletonPlaceholder = styled.div(({ theme }) => ({ animation: `${theme.animation.glow} 1.5s ease-in-out infinite`, background: theme.appBorderColor, height: 17, marginTop: 1, width: "60%", [`&:first-child${ignoreSsrWarning}`]: { margin: 0 } })), SourceSkeleton = () => react_default.createElement(SourceSkeletonWrapper, null, react_default.createElement(SourceSkeletonPlaceholder, null), react_default.createElement(SourceSkeletonPlaceholder, { style: { width: "80%" } }), react_default.createElement(SourceSkeletonPlaceholder, { style: { width: "30%" } }), react_default.createElement(SourceSkeletonPlaceholder, { style: { width: "80%" } })), Source = ({ isLoading, error, language, code, dark, format: format2 = !0, ...rest }) => {
|
||||
let { typography: typography2 } = useTheme();
|
||||
if (isLoading) return react_default.createElement(SourceSkeleton, null);
|
||||
if (error) return react_default.createElement(EmptyBlock, null, error);
|
||||
let syntaxHighlighter = react_default.createElement(StyledSyntaxHighlighter, { bordered: !0, copyable: !0, format: format2, language: language ?? "jsx", className: "docblock-source sb-unstyled", ...rest }, code);
|
||||
if (typeof dark > "u") return syntaxHighlighter;
|
||||
let overrideTheme = dark ? themes.dark : themes.light;
|
||||
return react_default.createElement(ThemeProvider, { theme: convert({ ...overrideTheme, fontCode: typography2.fonts.mono, fontBase: typography2.fonts.base }) }, syntaxHighlighter);
|
||||
};
|
||||
addons.register(ADDON_ID, (api) => {
|
||||
addons.add(PANEL_ID, { title: "Code", type: types.PANEL, paramKey: PARAM_KEY, disabled: (parameters) => !parameters?.docs?.codePanel, match: ({ viewMode }) => viewMode === "story", render: ({ active }) => {
|
||||
let channel = api.getChannel(), currentStory = api.getCurrentStoryData(), lastEvent = channel?.last(SNIPPET_RENDERED)?.[0], [codeSnippet, setSourceCode] = useState({ source: lastEvent?.source, format: lastEvent?.format ?? void 0 }), parameter = useParameter(PARAM_KEY, { source: { code: "" }, theme: "dark" });
|
||||
useEffect(() => {
|
||||
setSourceCode({ source: void 0, format: void 0 });
|
||||
}, [currentStory?.id]), useChannel({ [SNIPPET_RENDERED]: ({ source, format: format2 }) => {
|
||||
setSourceCode({ source, format: format2 });
|
||||
} });
|
||||
let isDark = useTheme().base !== "light";
|
||||
return react_default.createElement(AddonPanel, { active: !!active }, react_default.createElement(SourceStyles, null, react_default.createElement(Source, { ...parameter.source, code: parameter.source?.code || codeSnippet.source || parameter.source?.originalSource, format: codeSnippet.format, dark: isDark })));
|
||||
} });
|
||||
});
|
||||
var SourceStyles = styled.div(() => ({ height: "100%", [`> :first-child${ignoreSsrWarning}`]: { margin: 0, height: "100%", boxShadow: "none" } }));
|
||||
})();
|
||||
}catch(e){ console.error("[Storybook] One of your manager-entries failed: " + import.meta.url, e); }
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
import '/home/tony/AI/projects/hive/frontend/node_modules/@storybook/addon-docs/dist/manager.js';
|
||||
@@ -1 +0,0 @@
|
||||
import '/home/tony/AI/projects/hive/frontend/node_modules/@storybook/addon-onboarding/dist/manager.js';
|
||||
@@ -1 +0,0 @@
|
||||
import '/home/tony/AI/projects/hive/frontend/node_modules/storybook/dist/core-server/presets/common-manager.js';
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,25 +0,0 @@
|
||||
import "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@emotion/memoize/dist/memoize.browser.esm.js
|
||||
function memoize(fn) {
|
||||
var cache = {};
|
||||
return function(arg) {
|
||||
if (cache[arg] === void 0) cache[arg] = fn(arg);
|
||||
return cache[arg];
|
||||
};
|
||||
}
|
||||
var memoize_browser_esm_default = memoize;
|
||||
|
||||
// node_modules/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js
|
||||
var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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)-.*))$/;
|
||||
var index = memoize_browser_esm_default(
|
||||
function(prop) {
|
||||
return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91;
|
||||
}
|
||||
/* Z+1 */
|
||||
);
|
||||
var is_prop_valid_browser_esm_default = index;
|
||||
export {
|
||||
is_prop_valid_browser_esm_default as default
|
||||
};
|
||||
//# sourceMappingURL=@emotion_is-prop-valid.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../@emotion/memoize/dist/memoize.browser.esm.js", "../../../../../@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js"],
|
||||
"sourcesContent": ["function memoize(fn) {\n var cache = {};\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport default memoize;\n", "import memoize from '@emotion/memoize';\n\nvar reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|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|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|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|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\n\nvar index = memoize(function (prop) {\n return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111\n /* o */\n && prop.charCodeAt(1) === 110\n /* n */\n && prop.charCodeAt(2) < 91;\n}\n/* Z+1 */\n);\n\nexport default index;\n"],
|
||||
"mappings": ";;;AAAA,SAAS,QAAQ,IAAI;AACnB,MAAI,QAAQ,CAAC;AACb,SAAO,SAAU,KAAK;AACpB,QAAI,MAAM,GAAG,MAAM,OAAW,OAAM,GAAG,IAAI,GAAG,GAAG;AACjD,WAAO,MAAM,GAAG;AAAA,EAClB;AACF;AAEA,IAAO,8BAAQ;;;ACNf,IAAI,kBAAkB;AAEtB,IAAI,QAAQ;AAAA,EAAQ,SAAU,MAAM;AAClC,WAAO,gBAAgB,KAAK,IAAI,KAAK,KAAK,WAAW,CAAC,MAAM,OAEzD,KAAK,WAAW,CAAC,MAAM,OAEvB,KAAK,WAAW,CAAC,IAAI;AAAA,EAC1B;AAAA;AAEA;AAEA,IAAO,oCAAQ;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,419 +0,0 @@
|
||||
import "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
||||
var comma = ",".charCodeAt(0);
|
||||
var semicolon = ";".charCodeAt(0);
|
||||
var chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
var intToChar = new Uint8Array(64);
|
||||
var charToInt = new Uint8Array(128);
|
||||
for (let i = 0; i < chars.length; i++) {
|
||||
const c = chars.charCodeAt(i);
|
||||
intToChar[i] = c;
|
||||
charToInt[c] = i;
|
||||
}
|
||||
function decodeInteger(reader, relative) {
|
||||
let value = 0;
|
||||
let shift = 0;
|
||||
let integer = 0;
|
||||
do {
|
||||
const c = reader.next();
|
||||
integer = charToInt[c];
|
||||
value |= (integer & 31) << shift;
|
||||
shift += 5;
|
||||
} while (integer & 32);
|
||||
const shouldNegate = value & 1;
|
||||
value >>>= 1;
|
||||
if (shouldNegate) {
|
||||
value = -2147483648 | -value;
|
||||
}
|
||||
return relative + value;
|
||||
}
|
||||
function encodeInteger(builder, num, relative) {
|
||||
let delta = num - relative;
|
||||
delta = delta < 0 ? -delta << 1 | 1 : delta << 1;
|
||||
do {
|
||||
let clamped = delta & 31;
|
||||
delta >>>= 5;
|
||||
if (delta > 0) clamped |= 32;
|
||||
builder.write(intToChar[clamped]);
|
||||
} while (delta > 0);
|
||||
return num;
|
||||
}
|
||||
function hasMoreVlq(reader, max) {
|
||||
if (reader.pos >= max) return false;
|
||||
return reader.peek() !== comma;
|
||||
}
|
||||
var bufLength = 1024 * 16;
|
||||
var td = typeof TextDecoder !== "undefined" ? new TextDecoder() : typeof Buffer !== "undefined" ? {
|
||||
decode(buf) {
|
||||
const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength);
|
||||
return out.toString();
|
||||
}
|
||||
} : {
|
||||
decode(buf) {
|
||||
let out = "";
|
||||
for (let i = 0; i < buf.length; i++) {
|
||||
out += String.fromCharCode(buf[i]);
|
||||
}
|
||||
return out;
|
||||
}
|
||||
};
|
||||
var StringWriter = class {
|
||||
constructor() {
|
||||
this.pos = 0;
|
||||
this.out = "";
|
||||
this.buffer = new Uint8Array(bufLength);
|
||||
}
|
||||
write(v) {
|
||||
const { buffer } = this;
|
||||
buffer[this.pos++] = v;
|
||||
if (this.pos === bufLength) {
|
||||
this.out += td.decode(buffer);
|
||||
this.pos = 0;
|
||||
}
|
||||
}
|
||||
flush() {
|
||||
const { buffer, out, pos } = this;
|
||||
return pos > 0 ? out + td.decode(buffer.subarray(0, pos)) : out;
|
||||
}
|
||||
};
|
||||
var StringReader = class {
|
||||
constructor(buffer) {
|
||||
this.pos = 0;
|
||||
this.buffer = buffer;
|
||||
}
|
||||
next() {
|
||||
return this.buffer.charCodeAt(this.pos++);
|
||||
}
|
||||
peek() {
|
||||
return this.buffer.charCodeAt(this.pos);
|
||||
}
|
||||
indexOf(char) {
|
||||
const { buffer, pos } = this;
|
||||
const idx = buffer.indexOf(char, pos);
|
||||
return idx === -1 ? buffer.length : idx;
|
||||
}
|
||||
};
|
||||
var EMPTY = [];
|
||||
function decodeOriginalScopes(input) {
|
||||
const { length } = input;
|
||||
const reader = new StringReader(input);
|
||||
const scopes = [];
|
||||
const stack = [];
|
||||
let line = 0;
|
||||
for (; reader.pos < length; reader.pos++) {
|
||||
line = decodeInteger(reader, line);
|
||||
const column = decodeInteger(reader, 0);
|
||||
if (!hasMoreVlq(reader, length)) {
|
||||
const last = stack.pop();
|
||||
last[2] = line;
|
||||
last[3] = column;
|
||||
continue;
|
||||
}
|
||||
const kind = decodeInteger(reader, 0);
|
||||
const fields = decodeInteger(reader, 0);
|
||||
const hasName = fields & 1;
|
||||
const scope = hasName ? [line, column, 0, 0, kind, decodeInteger(reader, 0)] : [line, column, 0, 0, kind];
|
||||
let vars = EMPTY;
|
||||
if (hasMoreVlq(reader, length)) {
|
||||
vars = [];
|
||||
do {
|
||||
const varsIndex = decodeInteger(reader, 0);
|
||||
vars.push(varsIndex);
|
||||
} while (hasMoreVlq(reader, length));
|
||||
}
|
||||
scope.vars = vars;
|
||||
scopes.push(scope);
|
||||
stack.push(scope);
|
||||
}
|
||||
return scopes;
|
||||
}
|
||||
function encodeOriginalScopes(scopes) {
|
||||
const writer = new StringWriter();
|
||||
for (let i = 0; i < scopes.length; ) {
|
||||
i = _encodeOriginalScopes(scopes, i, writer, [0]);
|
||||
}
|
||||
return writer.flush();
|
||||
}
|
||||
function _encodeOriginalScopes(scopes, index, writer, state) {
|
||||
const scope = scopes[index];
|
||||
const { 0: startLine, 1: startColumn, 2: endLine, 3: endColumn, 4: kind, vars } = scope;
|
||||
if (index > 0) writer.write(comma);
|
||||
state[0] = encodeInteger(writer, startLine, state[0]);
|
||||
encodeInteger(writer, startColumn, 0);
|
||||
encodeInteger(writer, kind, 0);
|
||||
const fields = scope.length === 6 ? 1 : 0;
|
||||
encodeInteger(writer, fields, 0);
|
||||
if (scope.length === 6) encodeInteger(writer, scope[5], 0);
|
||||
for (const v of vars) {
|
||||
encodeInteger(writer, v, 0);
|
||||
}
|
||||
for (index++; index < scopes.length; ) {
|
||||
const next = scopes[index];
|
||||
const { 0: l, 1: c } = next;
|
||||
if (l > endLine || l === endLine && c >= endColumn) {
|
||||
break;
|
||||
}
|
||||
index = _encodeOriginalScopes(scopes, index, writer, state);
|
||||
}
|
||||
writer.write(comma);
|
||||
state[0] = encodeInteger(writer, endLine, state[0]);
|
||||
encodeInteger(writer, endColumn, 0);
|
||||
return index;
|
||||
}
|
||||
function decodeGeneratedRanges(input) {
|
||||
const { length } = input;
|
||||
const reader = new StringReader(input);
|
||||
const ranges = [];
|
||||
const stack = [];
|
||||
let genLine = 0;
|
||||
let definitionSourcesIndex = 0;
|
||||
let definitionScopeIndex = 0;
|
||||
let callsiteSourcesIndex = 0;
|
||||
let callsiteLine = 0;
|
||||
let callsiteColumn = 0;
|
||||
let bindingLine = 0;
|
||||
let bindingColumn = 0;
|
||||
do {
|
||||
const semi = reader.indexOf(";");
|
||||
let genColumn = 0;
|
||||
for (; reader.pos < semi; reader.pos++) {
|
||||
genColumn = decodeInteger(reader, genColumn);
|
||||
if (!hasMoreVlq(reader, semi)) {
|
||||
const last = stack.pop();
|
||||
last[2] = genLine;
|
||||
last[3] = genColumn;
|
||||
continue;
|
||||
}
|
||||
const fields = decodeInteger(reader, 0);
|
||||
const hasDefinition = fields & 1;
|
||||
const hasCallsite = fields & 2;
|
||||
const hasScope = fields & 4;
|
||||
let callsite = null;
|
||||
let bindings = EMPTY;
|
||||
let range;
|
||||
if (hasDefinition) {
|
||||
const defSourcesIndex = decodeInteger(reader, definitionSourcesIndex);
|
||||
definitionScopeIndex = decodeInteger(
|
||||
reader,
|
||||
definitionSourcesIndex === defSourcesIndex ? definitionScopeIndex : 0
|
||||
);
|
||||
definitionSourcesIndex = defSourcesIndex;
|
||||
range = [genLine, genColumn, 0, 0, defSourcesIndex, definitionScopeIndex];
|
||||
} else {
|
||||
range = [genLine, genColumn, 0, 0];
|
||||
}
|
||||
range.isScope = !!hasScope;
|
||||
if (hasCallsite) {
|
||||
const prevCsi = callsiteSourcesIndex;
|
||||
const prevLine = callsiteLine;
|
||||
callsiteSourcesIndex = decodeInteger(reader, callsiteSourcesIndex);
|
||||
const sameSource = prevCsi === callsiteSourcesIndex;
|
||||
callsiteLine = decodeInteger(reader, sameSource ? callsiteLine : 0);
|
||||
callsiteColumn = decodeInteger(
|
||||
reader,
|
||||
sameSource && prevLine === callsiteLine ? callsiteColumn : 0
|
||||
);
|
||||
callsite = [callsiteSourcesIndex, callsiteLine, callsiteColumn];
|
||||
}
|
||||
range.callsite = callsite;
|
||||
if (hasMoreVlq(reader, semi)) {
|
||||
bindings = [];
|
||||
do {
|
||||
bindingLine = genLine;
|
||||
bindingColumn = genColumn;
|
||||
const expressionsCount = decodeInteger(reader, 0);
|
||||
let expressionRanges;
|
||||
if (expressionsCount < -1) {
|
||||
expressionRanges = [[decodeInteger(reader, 0)]];
|
||||
for (let i = -1; i > expressionsCount; i--) {
|
||||
const prevBl = bindingLine;
|
||||
bindingLine = decodeInteger(reader, bindingLine);
|
||||
bindingColumn = decodeInteger(reader, bindingLine === prevBl ? bindingColumn : 0);
|
||||
const expression = decodeInteger(reader, 0);
|
||||
expressionRanges.push([expression, bindingLine, bindingColumn]);
|
||||
}
|
||||
} else {
|
||||
expressionRanges = [[expressionsCount]];
|
||||
}
|
||||
bindings.push(expressionRanges);
|
||||
} while (hasMoreVlq(reader, semi));
|
||||
}
|
||||
range.bindings = bindings;
|
||||
ranges.push(range);
|
||||
stack.push(range);
|
||||
}
|
||||
genLine++;
|
||||
reader.pos = semi + 1;
|
||||
} while (reader.pos < length);
|
||||
return ranges;
|
||||
}
|
||||
function encodeGeneratedRanges(ranges) {
|
||||
if (ranges.length === 0) return "";
|
||||
const writer = new StringWriter();
|
||||
for (let i = 0; i < ranges.length; ) {
|
||||
i = _encodeGeneratedRanges(ranges, i, writer, [0, 0, 0, 0, 0, 0, 0]);
|
||||
}
|
||||
return writer.flush();
|
||||
}
|
||||
function _encodeGeneratedRanges(ranges, index, writer, state) {
|
||||
const range = ranges[index];
|
||||
const {
|
||||
0: startLine,
|
||||
1: startColumn,
|
||||
2: endLine,
|
||||
3: endColumn,
|
||||
isScope,
|
||||
callsite,
|
||||
bindings
|
||||
} = range;
|
||||
if (state[0] < startLine) {
|
||||
catchupLine(writer, state[0], startLine);
|
||||
state[0] = startLine;
|
||||
state[1] = 0;
|
||||
} else if (index > 0) {
|
||||
writer.write(comma);
|
||||
}
|
||||
state[1] = encodeInteger(writer, range[1], state[1]);
|
||||
const fields = (range.length === 6 ? 1 : 0) | (callsite ? 2 : 0) | (isScope ? 4 : 0);
|
||||
encodeInteger(writer, fields, 0);
|
||||
if (range.length === 6) {
|
||||
const { 4: sourcesIndex, 5: scopesIndex } = range;
|
||||
if (sourcesIndex !== state[2]) {
|
||||
state[3] = 0;
|
||||
}
|
||||
state[2] = encodeInteger(writer, sourcesIndex, state[2]);
|
||||
state[3] = encodeInteger(writer, scopesIndex, state[3]);
|
||||
}
|
||||
if (callsite) {
|
||||
const { 0: sourcesIndex, 1: callLine, 2: callColumn } = range.callsite;
|
||||
if (sourcesIndex !== state[4]) {
|
||||
state[5] = 0;
|
||||
state[6] = 0;
|
||||
} else if (callLine !== state[5]) {
|
||||
state[6] = 0;
|
||||
}
|
||||
state[4] = encodeInteger(writer, sourcesIndex, state[4]);
|
||||
state[5] = encodeInteger(writer, callLine, state[5]);
|
||||
state[6] = encodeInteger(writer, callColumn, state[6]);
|
||||
}
|
||||
if (bindings) {
|
||||
for (const binding of bindings) {
|
||||
if (binding.length > 1) encodeInteger(writer, -binding.length, 0);
|
||||
const expression = binding[0][0];
|
||||
encodeInteger(writer, expression, 0);
|
||||
let bindingStartLine = startLine;
|
||||
let bindingStartColumn = startColumn;
|
||||
for (let i = 1; i < binding.length; i++) {
|
||||
const expRange = binding[i];
|
||||
bindingStartLine = encodeInteger(writer, expRange[1], bindingStartLine);
|
||||
bindingStartColumn = encodeInteger(writer, expRange[2], bindingStartColumn);
|
||||
encodeInteger(writer, expRange[0], 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
for (index++; index < ranges.length; ) {
|
||||
const next = ranges[index];
|
||||
const { 0: l, 1: c } = next;
|
||||
if (l > endLine || l === endLine && c >= endColumn) {
|
||||
break;
|
||||
}
|
||||
index = _encodeGeneratedRanges(ranges, index, writer, state);
|
||||
}
|
||||
if (state[0] < endLine) {
|
||||
catchupLine(writer, state[0], endLine);
|
||||
state[0] = endLine;
|
||||
state[1] = 0;
|
||||
} else {
|
||||
writer.write(comma);
|
||||
}
|
||||
state[1] = encodeInteger(writer, endColumn, state[1]);
|
||||
return index;
|
||||
}
|
||||
function catchupLine(writer, lastLine, line) {
|
||||
do {
|
||||
writer.write(semicolon);
|
||||
} while (++lastLine < line);
|
||||
}
|
||||
function decode(mappings) {
|
||||
const { length } = mappings;
|
||||
const reader = new StringReader(mappings);
|
||||
const decoded = [];
|
||||
let genColumn = 0;
|
||||
let sourcesIndex = 0;
|
||||
let sourceLine = 0;
|
||||
let sourceColumn = 0;
|
||||
let namesIndex = 0;
|
||||
do {
|
||||
const semi = reader.indexOf(";");
|
||||
const line = [];
|
||||
let sorted = true;
|
||||
let lastCol = 0;
|
||||
genColumn = 0;
|
||||
while (reader.pos < semi) {
|
||||
let seg;
|
||||
genColumn = decodeInteger(reader, genColumn);
|
||||
if (genColumn < lastCol) sorted = false;
|
||||
lastCol = genColumn;
|
||||
if (hasMoreVlq(reader, semi)) {
|
||||
sourcesIndex = decodeInteger(reader, sourcesIndex);
|
||||
sourceLine = decodeInteger(reader, sourceLine);
|
||||
sourceColumn = decodeInteger(reader, sourceColumn);
|
||||
if (hasMoreVlq(reader, semi)) {
|
||||
namesIndex = decodeInteger(reader, namesIndex);
|
||||
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex];
|
||||
} else {
|
||||
seg = [genColumn, sourcesIndex, sourceLine, sourceColumn];
|
||||
}
|
||||
} else {
|
||||
seg = [genColumn];
|
||||
}
|
||||
line.push(seg);
|
||||
reader.pos++;
|
||||
}
|
||||
if (!sorted) sort(line);
|
||||
decoded.push(line);
|
||||
reader.pos = semi + 1;
|
||||
} while (reader.pos <= length);
|
||||
return decoded;
|
||||
}
|
||||
function sort(line) {
|
||||
line.sort(sortComparator);
|
||||
}
|
||||
function sortComparator(a, b) {
|
||||
return a[0] - b[0];
|
||||
}
|
||||
function encode(decoded) {
|
||||
const writer = new StringWriter();
|
||||
let sourcesIndex = 0;
|
||||
let sourceLine = 0;
|
||||
let sourceColumn = 0;
|
||||
let namesIndex = 0;
|
||||
for (let i = 0; i < decoded.length; i++) {
|
||||
const line = decoded[i];
|
||||
if (i > 0) writer.write(semicolon);
|
||||
if (line.length === 0) continue;
|
||||
let genColumn = 0;
|
||||
for (let j = 0; j < line.length; j++) {
|
||||
const segment = line[j];
|
||||
if (j > 0) writer.write(comma);
|
||||
genColumn = encodeInteger(writer, segment[0], genColumn);
|
||||
if (segment.length === 1) continue;
|
||||
sourcesIndex = encodeInteger(writer, segment[1], sourcesIndex);
|
||||
sourceLine = encodeInteger(writer, segment[2], sourceLine);
|
||||
sourceColumn = encodeInteger(writer, segment[3], sourceColumn);
|
||||
if (segment.length === 4) continue;
|
||||
namesIndex = encodeInteger(writer, segment[4], namesIndex);
|
||||
}
|
||||
}
|
||||
return writer.flush();
|
||||
}
|
||||
export {
|
||||
decode,
|
||||
decodeGeneratedRanges,
|
||||
decodeOriginalScopes,
|
||||
encode,
|
||||
encodeGeneratedRanges,
|
||||
encodeOriginalScopes
|
||||
};
|
||||
//# sourceMappingURL=@jridgewell_sourcemap-codec.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,41 +0,0 @@
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-WIJRE3H4.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@mdx-js/react/lib/index.js
|
||||
var import_react = __toESM(require_react(), 1);
|
||||
var emptyComponents = {};
|
||||
var MDXContext = import_react.default.createContext(emptyComponents);
|
||||
function useMDXComponents(components) {
|
||||
const contextComponents = import_react.default.useContext(MDXContext);
|
||||
return import_react.default.useMemo(
|
||||
function() {
|
||||
if (typeof components === "function") {
|
||||
return components(contextComponents);
|
||||
}
|
||||
return { ...contextComponents, ...components };
|
||||
},
|
||||
[contextComponents, components]
|
||||
);
|
||||
}
|
||||
function MDXProvider(properties) {
|
||||
let allComponents;
|
||||
if (properties.disableParentContext) {
|
||||
allComponents = typeof properties.components === "function" ? properties.components(emptyComponents) : properties.components || emptyComponents;
|
||||
} else {
|
||||
allComponents = useMDXComponents(properties.components);
|
||||
}
|
||||
return import_react.default.createElement(
|
||||
MDXContext.Provider,
|
||||
{ value: allComponents },
|
||||
properties.children
|
||||
);
|
||||
}
|
||||
export {
|
||||
MDXProvider,
|
||||
useMDXComponents
|
||||
};
|
||||
//# sourceMappingURL=@mdx-js_react.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../@mdx-js/react/lib/index.js"],
|
||||
"sourcesContent": ["/**\n * @import {MDXComponents} from 'mdx/types.js'\n * @import {Component, ReactElement, ReactNode} from 'react'\n */\n\n/**\n * @callback MergeComponents\n * Custom merge function.\n * @param {Readonly<MDXComponents>} currentComponents\n * Current components from the context.\n * @returns {MDXComponents}\n * Additional components.\n *\n * @typedef Props\n * Configuration for `MDXProvider`.\n * @property {ReactNode | null | undefined} [children]\n * Children (optional).\n * @property {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @property {boolean | null | undefined} [disableParentContext=false]\n * Turn off outer component context (default: `false`).\n */\n\nimport React from 'react'\n\n/** @type {Readonly<MDXComponents>} */\nconst emptyComponents = {}\n\nconst MDXContext = React.createContext(emptyComponents)\n\n/**\n * Get current components from the MDX Context.\n *\n * @param {Readonly<MDXComponents> | MergeComponents | null | undefined} [components]\n * Additional components to use or a function that creates them (optional).\n * @returns {MDXComponents}\n * Current components.\n */\nexport function useMDXComponents(components) {\n const contextComponents = React.useContext(MDXContext)\n\n // Memoize to avoid unnecessary top-level context changes\n return React.useMemo(\n function () {\n // Custom merge via a function prop\n if (typeof components === 'function') {\n return components(contextComponents)\n }\n\n return {...contextComponents, ...components}\n },\n [contextComponents, components]\n )\n}\n\n/**\n * Provider for MDX context.\n *\n * @param {Readonly<Props>} properties\n * Properties.\n * @returns {ReactElement}\n * Element.\n * @satisfies {Component}\n */\nexport function MDXProvider(properties) {\n /** @type {Readonly<MDXComponents>} */\n let allComponents\n\n if (properties.disableParentContext) {\n allComponents =\n typeof properties.components === 'function'\n ? properties.components(emptyComponents)\n : properties.components || emptyComponents\n } else {\n allComponents = useMDXComponents(properties.components)\n }\n\n return React.createElement(\n MDXContext.Provider,\n {value: allComponents},\n properties.children\n )\n}\n"],
|
||||
"mappings": ";;;;;;;;AAuBA,mBAAkB;AAGlB,IAAM,kBAAkB,CAAC;AAEzB,IAAM,aAAa,aAAAA,QAAM,cAAc,eAAe;AAU/C,SAAS,iBAAiB,YAAY;AAC3C,QAAM,oBAAoB,aAAAA,QAAM,WAAW,UAAU;AAGrD,SAAO,aAAAA,QAAM;AAAA,IACX,WAAY;AAEV,UAAI,OAAO,eAAe,YAAY;AACpC,eAAO,WAAW,iBAAiB;AAAA,MACrC;AAEA,aAAO,EAAC,GAAG,mBAAmB,GAAG,WAAU;AAAA,IAC7C;AAAA,IACA,CAAC,mBAAmB,UAAU;AAAA,EAChC;AACF;AAWO,SAAS,YAAY,YAAY;AAEtC,MAAI;AAEJ,MAAI,WAAW,sBAAsB;AACnC,oBACE,OAAO,WAAW,eAAe,aAC7B,WAAW,WAAW,eAAe,IACrC,WAAW,cAAc;AAAA,EACjC,OAAO;AACL,oBAAgB,iBAAiB,WAAW,UAAU;AAAA,EACxD;AAEA,SAAO,aAAAA,QAAM;AAAA,IACX,WAAW;AAAA,IACX,EAAC,OAAO,cAAa;AAAA,IACrB,WAAW;AAAA,EACb;AACF;",
|
||||
"names": ["React"]
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
import {
|
||||
DocsRenderer
|
||||
} from "./chunk-VG4OXZTU.js";
|
||||
import "./chunk-57ZXLNKK.js";
|
||||
import "./chunk-TYV5OM3H.js";
|
||||
import "./chunk-FNTD6K4X.js";
|
||||
import "./chunk-JLBFQ2EK.js";
|
||||
import {
|
||||
__export
|
||||
} from "./chunk-RM5O7ZR7.js";
|
||||
import "./chunk-RTHSENM2.js";
|
||||
import "./chunk-K46MDWSL.js";
|
||||
import "./chunk-H4EEZRGF.js";
|
||||
import "./chunk-FTMWZLOQ.js";
|
||||
import "./chunk-YO32UEEW.js";
|
||||
import "./chunk-E4Q3YXXP.js";
|
||||
import "./chunk-YYB2ULC3.js";
|
||||
import "./chunk-GF7VUYY4.js";
|
||||
import "./chunk-ZHATCZIL.js";
|
||||
import {
|
||||
require_preview_api
|
||||
} from "./chunk-NDPLLWBS.js";
|
||||
import "./chunk-WIJRE3H4.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@storybook/addon-docs/dist/index.mjs
|
||||
var import_preview_api = __toESM(require_preview_api(), 1);
|
||||
var preview_exports = {};
|
||||
__export(preview_exports, { parameters: () => parameters });
|
||||
var excludeTags = Object.entries(globalThis.TAGS_OPTIONS ?? {}).reduce((acc, entry) => {
|
||||
let [tag, option] = entry;
|
||||
return option.excludeFromDocsStories && (acc[tag] = true), acc;
|
||||
}, {});
|
||||
var parameters = { docs: { renderer: async () => {
|
||||
let { DocsRenderer: DocsRenderer2 } = await import("./DocsRenderer-3PZUHFFL-FOAYSAPL.js");
|
||||
return new DocsRenderer2();
|
||||
}, stories: { filter: (story) => {
|
||||
var _a;
|
||||
return (story.tags || []).filter((tag) => excludeTags[tag]).length === 0 && !((_a = story.parameters.docs) == null ? void 0 : _a.disable);
|
||||
} } } };
|
||||
var index_default = () => (0, import_preview_api.definePreview)(preview_exports);
|
||||
export {
|
||||
DocsRenderer,
|
||||
index_default as default
|
||||
};
|
||||
//# sourceMappingURL=@storybook_addon-docs.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../@storybook/addon-docs/dist/index.mjs"],
|
||||
"sourcesContent": ["export { DocsRenderer } from './chunk-GWJYCGSQ.mjs';\nimport { __export } from './chunk-QUZPS4B6.mjs';\nimport { definePreview } from 'storybook/preview-api';\n\nvar preview_exports={};__export(preview_exports,{parameters:()=>parameters});var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer:DocsRenderer2}=await import('./DocsRenderer-3PZUHFFL.mjs');return new DocsRenderer2},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}};var index_default=()=>definePreview(preview_exports);\n\nexport { index_default as default };\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yBAA8B;AAE9B,IAAI,kBAAgB,CAAC;AAAE,SAAS,iBAAgB,EAAC,YAAW,MAAI,WAAU,CAAC;AAAE,IAAI,cAAY,OAAO,QAAQ,WAAW,gBAAc,CAAC,CAAC,EAAE,OAAO,CAAC,KAAI,UAAQ;AAAC,MAAG,CAAC,KAAI,MAAM,IAAE;AAAM,SAAO,OAAO,2BAAyB,IAAI,GAAG,IAAE,OAAI;AAAG,GAAE,CAAC,CAAC;AAAlK,IAAoK,aAAW,EAAC,MAAK,EAAC,UAAS,YAAS;AAAC,MAAG,EAAC,cAAa,cAAa,IAAE,MAAM,OAAO,qCAA6B;AAAE,SAAO,IAAI;AAAa,GAAE,SAAQ,EAAC,QAAO,WAAK;AAJjZ;AAIoZ,gBAAM,QAAM,CAAC,GAAG,OAAO,SAAK,YAAY,GAAG,CAAC,EAAE,WAAS,KAAG,GAAC,WAAM,WAAW,SAAjB,mBAAuB;AAAA,EAAO,EAAC,EAAC;AAAE,IAAI,gBAAc,UAAI,kCAAc,eAAe;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,149 +0,0 @@
|
||||
import {
|
||||
AddContext,
|
||||
Anchor,
|
||||
AnchorMdx,
|
||||
ArgTypes,
|
||||
ArgsTable,
|
||||
BooleanControl,
|
||||
Canvas,
|
||||
CodeOrSourceMdx,
|
||||
ColorControl,
|
||||
ColorItem,
|
||||
ColorPalette,
|
||||
Controls3,
|
||||
DateControl,
|
||||
DescriptionContainer,
|
||||
DescriptionType,
|
||||
Docs,
|
||||
DocsContainer,
|
||||
DocsContext,
|
||||
DocsPage,
|
||||
DocsStory,
|
||||
ExternalDocs,
|
||||
ExternalDocsContainer,
|
||||
FilesControl,
|
||||
HeaderMdx,
|
||||
HeadersMdx,
|
||||
Heading2,
|
||||
IconGallery,
|
||||
IconItem,
|
||||
Markdown,
|
||||
Meta,
|
||||
NumberControl,
|
||||
ObjectControl,
|
||||
OptionsControl,
|
||||
PRIMARY_STORY,
|
||||
Primary,
|
||||
RangeControl,
|
||||
Source2,
|
||||
SourceContainer,
|
||||
SourceContext,
|
||||
Stories,
|
||||
Story2,
|
||||
Subheading,
|
||||
Subtitle2,
|
||||
TableOfContents,
|
||||
TextControl,
|
||||
Title3,
|
||||
Typeset,
|
||||
UNKNOWN_ARGS_HASH,
|
||||
Unstyled,
|
||||
Wrapper10,
|
||||
anchorBlockIdFromId,
|
||||
argsHash,
|
||||
assertIsFn,
|
||||
extractTitle,
|
||||
format2,
|
||||
formatDate,
|
||||
formatTime,
|
||||
getStoryId2,
|
||||
getStoryProps,
|
||||
parse2,
|
||||
parseDate,
|
||||
parseTime,
|
||||
slugs,
|
||||
useOf,
|
||||
useSourceProps
|
||||
} from "./chunk-FNTD6K4X.js";
|
||||
import "./chunk-JLBFQ2EK.js";
|
||||
import "./chunk-RM5O7ZR7.js";
|
||||
import "./chunk-RTHSENM2.js";
|
||||
import "./chunk-K46MDWSL.js";
|
||||
import "./chunk-H4EEZRGF.js";
|
||||
import "./chunk-FTMWZLOQ.js";
|
||||
import "./chunk-YO32UEEW.js";
|
||||
import "./chunk-E4Q3YXXP.js";
|
||||
import "./chunk-YYB2ULC3.js";
|
||||
import "./chunk-GF7VUYY4.js";
|
||||
import "./chunk-ZHATCZIL.js";
|
||||
import "./chunk-NDPLLWBS.js";
|
||||
import "./chunk-WIJRE3H4.js";
|
||||
import "./chunk-KEXKKQVW.js";
|
||||
export {
|
||||
AddContext,
|
||||
Anchor,
|
||||
AnchorMdx,
|
||||
ArgTypes,
|
||||
BooleanControl,
|
||||
Canvas,
|
||||
CodeOrSourceMdx,
|
||||
ColorControl,
|
||||
ColorItem,
|
||||
ColorPalette,
|
||||
Controls3 as Controls,
|
||||
DateControl,
|
||||
DescriptionContainer as Description,
|
||||
DescriptionType,
|
||||
Docs,
|
||||
DocsContainer,
|
||||
DocsContext,
|
||||
DocsPage,
|
||||
DocsStory,
|
||||
ExternalDocs,
|
||||
ExternalDocsContainer,
|
||||
FilesControl,
|
||||
HeaderMdx,
|
||||
HeadersMdx,
|
||||
Heading2 as Heading,
|
||||
IconGallery,
|
||||
IconItem,
|
||||
Markdown,
|
||||
Meta,
|
||||
NumberControl,
|
||||
ObjectControl,
|
||||
OptionsControl,
|
||||
PRIMARY_STORY,
|
||||
Primary,
|
||||
ArgsTable as PureArgsTable,
|
||||
RangeControl,
|
||||
Source2 as Source,
|
||||
SourceContainer,
|
||||
SourceContext,
|
||||
Stories,
|
||||
Story2 as Story,
|
||||
Subheading,
|
||||
Subtitle2 as Subtitle,
|
||||
TableOfContents,
|
||||
TextControl,
|
||||
Title3 as Title,
|
||||
Typeset,
|
||||
UNKNOWN_ARGS_HASH,
|
||||
Unstyled,
|
||||
Wrapper10 as Wrapper,
|
||||
anchorBlockIdFromId,
|
||||
argsHash,
|
||||
assertIsFn,
|
||||
extractTitle,
|
||||
format2 as format,
|
||||
formatDate,
|
||||
formatTime,
|
||||
getStoryId2 as getStoryId,
|
||||
getStoryProps,
|
||||
parse2 as parse,
|
||||
parseDate,
|
||||
parseTime,
|
||||
slugs,
|
||||
useOf,
|
||||
useSourceProps
|
||||
};
|
||||
//# sourceMappingURL=@storybook_addon-docs_blocks.js.map
|
||||
@@ -1,18 +0,0 @@
|
||||
import "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@storybook/addon-docs/dist/preview.mjs
|
||||
var excludeTags = Object.entries(globalThis.TAGS_OPTIONS ?? {}).reduce((acc, entry) => {
|
||||
let [tag, option] = entry;
|
||||
return option.excludeFromDocsStories && (acc[tag] = true), acc;
|
||||
}, {});
|
||||
var parameters = { docs: { renderer: async () => {
|
||||
let { DocsRenderer } = await import("./DocsRenderer-PQXLIZUC-RVPN436C.js");
|
||||
return new DocsRenderer();
|
||||
}, stories: { filter: (story) => {
|
||||
var _a;
|
||||
return (story.tags || []).filter((tag) => excludeTags[tag]).length === 0 && !((_a = story.parameters.docs) == null ? void 0 : _a.disable);
|
||||
} } } };
|
||||
export {
|
||||
parameters
|
||||
};
|
||||
//# sourceMappingURL=@storybook_addon-docs_preview.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../@storybook/addon-docs/dist/preview.mjs"],
|
||||
"sourcesContent": ["var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer}=await import('./DocsRenderer-PQXLIZUC.mjs');return new DocsRenderer},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}};\n\nexport { parameters };\n"],
|
||||
"mappings": ";;;AAAA,IAAI,cAAY,OAAO,QAAQ,WAAW,gBAAc,CAAC,CAAC,EAAE,OAAO,CAAC,KAAI,UAAQ;AAAC,MAAG,CAAC,KAAI,MAAM,IAAE;AAAM,SAAO,OAAO,2BAAyB,IAAI,GAAG,IAAE,OAAI;AAAG,GAAE,CAAC,CAAC;AAAlK,IAAoK,aAAW,EAAC,MAAK,EAAC,UAAS,YAAS;AAAC,MAAG,EAAC,aAAY,IAAE,MAAM,OAAO,qCAA6B;AAAE,SAAO,IAAI;AAAY,GAAE,SAAQ,EAAC,QAAO,WAAK;AAArT;AAAwT,gBAAM,QAAM,CAAC,GAAG,OAAO,SAAK,YAAY,GAAG,CAAC,EAAE,WAAS,KAAG,GAAC,WAAM,WAAW,SAAjB,mBAAuB;AAAA,EAAO,EAAC,EAAC;",
|
||||
"names": []
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,19 +0,0 @@
|
||||
import {
|
||||
applyDecorators2,
|
||||
decorators,
|
||||
parameters
|
||||
} from "./chunk-AHTFTWU7.js";
|
||||
import "./chunk-OAOLO3MQ.js";
|
||||
import "./chunk-YYB2ULC3.js";
|
||||
import "./chunk-GF7VUYY4.js";
|
||||
import "./chunk-ZHATCZIL.js";
|
||||
import "./chunk-NDPLLWBS.js";
|
||||
import "./chunk-WIJRE3H4.js";
|
||||
import "./chunk-DF7VAP3D.js";
|
||||
import "./chunk-KEXKKQVW.js";
|
||||
export {
|
||||
applyDecorators2 as applyDecorators,
|
||||
decorators,
|
||||
parameters
|
||||
};
|
||||
//# sourceMappingURL=@storybook_react_dist_entry-preview-docs__mjs.js.map
|
||||
@@ -1,9 +0,0 @@
|
||||
import "./chunk-DF7VAP3D.js";
|
||||
import "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@storybook/react/dist/entry-preview-rsc.mjs
|
||||
var parameters = { react: { rsc: true } };
|
||||
export {
|
||||
parameters
|
||||
};
|
||||
//# sourceMappingURL=@storybook_react_dist_entry-preview-rsc__mjs.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../@storybook/react/dist/entry-preview-rsc.mjs"],
|
||||
"sourcesContent": ["import './chunk-XP5HYGXS.mjs';\n\nvar parameters={react:{rsc:!0}};\n\nexport { parameters };\n"],
|
||||
"mappings": ";;;;AAEA,IAAI,aAAW,EAAC,OAAM,EAAC,KAAI,KAAE,EAAC;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
import {
|
||||
beforeAll,
|
||||
decorators,
|
||||
mount,
|
||||
parameters,
|
||||
render,
|
||||
renderToCanvas
|
||||
} from "./chunk-D63W3CRC.js";
|
||||
import "./chunk-E4Q3YXXP.js";
|
||||
import {
|
||||
applyDecorators
|
||||
} from "./chunk-OAOLO3MQ.js";
|
||||
import "./chunk-NDPLLWBS.js";
|
||||
import "./chunk-WIJRE3H4.js";
|
||||
import "./chunk-DF7VAP3D.js";
|
||||
import "./chunk-KEXKKQVW.js";
|
||||
export {
|
||||
applyDecorators,
|
||||
beforeAll,
|
||||
decorators,
|
||||
mount,
|
||||
parameters,
|
||||
render,
|
||||
renderToCanvas
|
||||
};
|
||||
//# sourceMappingURL=@storybook_react_dist_entry-preview__mjs.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,718 +0,0 @@
|
||||
import {
|
||||
MarkupIcon,
|
||||
__commonJS,
|
||||
__toESM as __toESM2,
|
||||
debounce2,
|
||||
getControlId
|
||||
} from "./chunk-RM5O7ZR7.js";
|
||||
import {
|
||||
G3,
|
||||
N7,
|
||||
O3,
|
||||
xr
|
||||
} from "./chunk-RTHSENM2.js";
|
||||
import "./chunk-H4EEZRGF.js";
|
||||
import "./chunk-FTMWZLOQ.js";
|
||||
import "./chunk-YO32UEEW.js";
|
||||
import "./chunk-E4Q3YXXP.js";
|
||||
import "./chunk-GF7VUYY4.js";
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-WIJRE3H4.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@storybook/addon-docs/dist/Color-AVL7NMMY.mjs
|
||||
var import_react = __toESM(require_react(), 1);
|
||||
var require_color_name = __commonJS({ "../../node_modules/color-name/index.js"(exports, module) {
|
||||
module.exports = { aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], aqua: [0, 255, 255], aquamarine: [127, 255, 212], azure: [240, 255, 255], beige: [245, 245, 220], bisque: [255, 228, 196], black: [0, 0, 0], blanchedalmond: [255, 235, 205], blue: [0, 0, 255], blueviolet: [138, 43, 226], brown: [165, 42, 42], burlywood: [222, 184, 135], cadetblue: [95, 158, 160], chartreuse: [127, 255, 0], chocolate: [210, 105, 30], coral: [255, 127, 80], cornflowerblue: [100, 149, 237], cornsilk: [255, 248, 220], crimson: [220, 20, 60], cyan: [0, 255, 255], darkblue: [0, 0, 139], darkcyan: [0, 139, 139], darkgoldenrod: [184, 134, 11], darkgray: [169, 169, 169], darkgreen: [0, 100, 0], darkgrey: [169, 169, 169], darkkhaki: [189, 183, 107], darkmagenta: [139, 0, 139], darkolivegreen: [85, 107, 47], darkorange: [255, 140, 0], darkorchid: [153, 50, 204], darkred: [139, 0, 0], darksalmon: [233, 150, 122], darkseagreen: [143, 188, 143], darkslateblue: [72, 61, 139], darkslategray: [47, 79, 79], darkslategrey: [47, 79, 79], darkturquoise: [0, 206, 209], darkviolet: [148, 0, 211], deeppink: [255, 20, 147], deepskyblue: [0, 191, 255], dimgray: [105, 105, 105], dimgrey: [105, 105, 105], dodgerblue: [30, 144, 255], firebrick: [178, 34, 34], floralwhite: [255, 250, 240], forestgreen: [34, 139, 34], fuchsia: [255, 0, 255], gainsboro: [220, 220, 220], ghostwhite: [248, 248, 255], gold: [255, 215, 0], goldenrod: [218, 165, 32], gray: [128, 128, 128], green: [0, 128, 0], greenyellow: [173, 255, 47], grey: [128, 128, 128], honeydew: [240, 255, 240], hotpink: [255, 105, 180], indianred: [205, 92, 92], indigo: [75, 0, 130], ivory: [255, 255, 240], khaki: [240, 230, 140], lavender: [230, 230, 250], lavenderblush: [255, 240, 245], lawngreen: [124, 252, 0], lemonchiffon: [255, 250, 205], lightblue: [173, 216, 230], lightcoral: [240, 128, 128], lightcyan: [224, 255, 255], lightgoldenrodyellow: [250, 250, 210], lightgray: [211, 211, 211], lightgreen: [144, 238, 144], lightgrey: [211, 211, 211], lightpink: [255, 182, 193], lightsalmon: [255, 160, 122], lightseagreen: [32, 178, 170], lightskyblue: [135, 206, 250], lightslategray: [119, 136, 153], lightslategrey: [119, 136, 153], lightsteelblue: [176, 196, 222], lightyellow: [255, 255, 224], lime: [0, 255, 0], limegreen: [50, 205, 50], linen: [250, 240, 230], magenta: [255, 0, 255], maroon: [128, 0, 0], mediumaquamarine: [102, 205, 170], mediumblue: [0, 0, 205], mediumorchid: [186, 85, 211], mediumpurple: [147, 112, 219], mediumseagreen: [60, 179, 113], mediumslateblue: [123, 104, 238], mediumspringgreen: [0, 250, 154], mediumturquoise: [72, 209, 204], mediumvioletred: [199, 21, 133], midnightblue: [25, 25, 112], mintcream: [245, 255, 250], mistyrose: [255, 228, 225], moccasin: [255, 228, 181], navajowhite: [255, 222, 173], navy: [0, 0, 128], oldlace: [253, 245, 230], olive: [128, 128, 0], olivedrab: [107, 142, 35], orange: [255, 165, 0], orangered: [255, 69, 0], orchid: [218, 112, 214], palegoldenrod: [238, 232, 170], palegreen: [152, 251, 152], paleturquoise: [175, 238, 238], palevioletred: [219, 112, 147], papayawhip: [255, 239, 213], peachpuff: [255, 218, 185], peru: [205, 133, 63], pink: [255, 192, 203], plum: [221, 160, 221], powderblue: [176, 224, 230], purple: [128, 0, 128], rebeccapurple: [102, 51, 153], red: [255, 0, 0], rosybrown: [188, 143, 143], royalblue: [65, 105, 225], saddlebrown: [139, 69, 19], salmon: [250, 128, 114], sandybrown: [244, 164, 96], seagreen: [46, 139, 87], seashell: [255, 245, 238], sienna: [160, 82, 45], silver: [192, 192, 192], skyblue: [135, 206, 235], slateblue: [106, 90, 205], slategray: [112, 128, 144], slategrey: [112, 128, 144], snow: [255, 250, 250], springgreen: [0, 255, 127], steelblue: [70, 130, 180], tan: [210, 180, 140], teal: [0, 128, 128], thistle: [216, 191, 216], tomato: [255, 99, 71], turquoise: [64, 224, 208], violet: [238, 130, 238], wheat: [245, 222, 179], white: [255, 255, 255], whitesmoke: [245, 245, 245], yellow: [255, 255, 0], yellowgreen: [154, 205, 50] };
|
||||
} });
|
||||
var require_conversions = __commonJS({ "../../node_modules/color-convert/conversions.js"(exports, module) {
|
||||
var cssKeywords = require_color_name(), reverseKeywords = {};
|
||||
for (let key of Object.keys(cssKeywords)) reverseKeywords[cssKeywords[key]] = key;
|
||||
var convert2 = { rgb: { channels: 3, labels: "rgb" }, hsl: { channels: 3, labels: "hsl" }, hsv: { channels: 3, labels: "hsv" }, hwb: { channels: 3, labels: "hwb" }, cmyk: { channels: 4, labels: "cmyk" }, xyz: { channels: 3, labels: "xyz" }, lab: { channels: 3, labels: "lab" }, lch: { channels: 3, labels: "lch" }, hex: { channels: 1, labels: ["hex"] }, keyword: { channels: 1, labels: ["keyword"] }, ansi16: { channels: 1, labels: ["ansi16"] }, ansi256: { channels: 1, labels: ["ansi256"] }, hcg: { channels: 3, labels: ["h", "c", "g"] }, apple: { channels: 3, labels: ["r16", "g16", "b16"] }, gray: { channels: 1, labels: ["gray"] } };
|
||||
module.exports = convert2;
|
||||
for (let model of Object.keys(convert2)) {
|
||||
if (!("channels" in convert2[model])) throw new Error("missing channels property: " + model);
|
||||
if (!("labels" in convert2[model])) throw new Error("missing channel labels property: " + model);
|
||||
if (convert2[model].labels.length !== convert2[model].channels) throw new Error("channel and label counts mismatch: " + model);
|
||||
let { channels, labels } = convert2[model];
|
||||
delete convert2[model].channels, delete convert2[model].labels, Object.defineProperty(convert2[model], "channels", { value: channels }), Object.defineProperty(convert2[model], "labels", { value: labels });
|
||||
}
|
||||
convert2.rgb.hsl = function(rgb) {
|
||||
let r2 = rgb[0] / 255, g2 = rgb[1] / 255, b2 = rgb[2] / 255, min = Math.min(r2, g2, b2), max = Math.max(r2, g2, b2), delta = max - min, h2, s2;
|
||||
max === min ? h2 = 0 : r2 === max ? h2 = (g2 - b2) / delta : g2 === max ? h2 = 2 + (b2 - r2) / delta : b2 === max && (h2 = 4 + (r2 - g2) / delta), h2 = Math.min(h2 * 60, 360), h2 < 0 && (h2 += 360);
|
||||
let l2 = (min + max) / 2;
|
||||
return max === min ? s2 = 0 : l2 <= 0.5 ? s2 = delta / (max + min) : s2 = delta / (2 - max - min), [h2, s2 * 100, l2 * 100];
|
||||
};
|
||||
convert2.rgb.hsv = function(rgb) {
|
||||
let rdif, gdif, bdif, h2, s2, r2 = rgb[0] / 255, g2 = rgb[1] / 255, b2 = rgb[2] / 255, v2 = Math.max(r2, g2, b2), diff = v2 - Math.min(r2, g2, b2), diffc = function(c2) {
|
||||
return (v2 - c2) / 6 / diff + 1 / 2;
|
||||
};
|
||||
return diff === 0 ? (h2 = 0, s2 = 0) : (s2 = diff / v2, rdif = diffc(r2), gdif = diffc(g2), bdif = diffc(b2), r2 === v2 ? h2 = bdif - gdif : g2 === v2 ? h2 = 1 / 3 + rdif - bdif : b2 === v2 && (h2 = 2 / 3 + gdif - rdif), h2 < 0 ? h2 += 1 : h2 > 1 && (h2 -= 1)), [h2 * 360, s2 * 100, v2 * 100];
|
||||
};
|
||||
convert2.rgb.hwb = function(rgb) {
|
||||
let r2 = rgb[0], g2 = rgb[1], b2 = rgb[2], h2 = convert2.rgb.hsl(rgb)[0], w2 = 1 / 255 * Math.min(r2, Math.min(g2, b2));
|
||||
return b2 = 1 - 1 / 255 * Math.max(r2, Math.max(g2, b2)), [h2, w2 * 100, b2 * 100];
|
||||
};
|
||||
convert2.rgb.cmyk = function(rgb) {
|
||||
let r2 = rgb[0] / 255, g2 = rgb[1] / 255, b2 = rgb[2] / 255, k2 = Math.min(1 - r2, 1 - g2, 1 - b2), c2 = (1 - r2 - k2) / (1 - k2) || 0, m2 = (1 - g2 - k2) / (1 - k2) || 0, y2 = (1 - b2 - k2) / (1 - k2) || 0;
|
||||
return [c2 * 100, m2 * 100, y2 * 100, k2 * 100];
|
||||
};
|
||||
function comparativeDistance(x2, y2) {
|
||||
return (x2[0] - y2[0]) ** 2 + (x2[1] - y2[1]) ** 2 + (x2[2] - y2[2]) ** 2;
|
||||
}
|
||||
convert2.rgb.keyword = function(rgb) {
|
||||
let reversed = reverseKeywords[rgb];
|
||||
if (reversed) return reversed;
|
||||
let currentClosestDistance = 1 / 0, currentClosestKeyword;
|
||||
for (let keyword of Object.keys(cssKeywords)) {
|
||||
let value = cssKeywords[keyword], distance = comparativeDistance(rgb, value);
|
||||
distance < currentClosestDistance && (currentClosestDistance = distance, currentClosestKeyword = keyword);
|
||||
}
|
||||
return currentClosestKeyword;
|
||||
};
|
||||
convert2.keyword.rgb = function(keyword) {
|
||||
return cssKeywords[keyword];
|
||||
};
|
||||
convert2.rgb.xyz = function(rgb) {
|
||||
let r2 = rgb[0] / 255, g2 = rgb[1] / 255, b2 = rgb[2] / 255;
|
||||
r2 = r2 > 0.04045 ? ((r2 + 0.055) / 1.055) ** 2.4 : r2 / 12.92, g2 = g2 > 0.04045 ? ((g2 + 0.055) / 1.055) ** 2.4 : g2 / 12.92, b2 = b2 > 0.04045 ? ((b2 + 0.055) / 1.055) ** 2.4 : b2 / 12.92;
|
||||
let x2 = r2 * 0.4124 + g2 * 0.3576 + b2 * 0.1805, y2 = r2 * 0.2126 + g2 * 0.7152 + b2 * 0.0722, z2 = r2 * 0.0193 + g2 * 0.1192 + b2 * 0.9505;
|
||||
return [x2 * 100, y2 * 100, z2 * 100];
|
||||
};
|
||||
convert2.rgb.lab = function(rgb) {
|
||||
let xyz = convert2.rgb.xyz(rgb), x2 = xyz[0], y2 = xyz[1], z2 = xyz[2];
|
||||
x2 /= 95.047, y2 /= 100, z2 /= 108.883, x2 = x2 > 8856e-6 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116, y2 = y2 > 8856e-6 ? y2 ** (1 / 3) : 7.787 * y2 + 16 / 116, z2 = z2 > 8856e-6 ? z2 ** (1 / 3) : 7.787 * z2 + 16 / 116;
|
||||
let l2 = 116 * y2 - 16, a2 = 500 * (x2 - y2), b2 = 200 * (y2 - z2);
|
||||
return [l2, a2, b2];
|
||||
};
|
||||
convert2.hsl.rgb = function(hsl) {
|
||||
let h2 = hsl[0] / 360, s2 = hsl[1] / 100, l2 = hsl[2] / 100, t2, t3, val;
|
||||
if (s2 === 0) return val = l2 * 255, [val, val, val];
|
||||
l2 < 0.5 ? t2 = l2 * (1 + s2) : t2 = l2 + s2 - l2 * s2;
|
||||
let t1 = 2 * l2 - t2, rgb = [0, 0, 0];
|
||||
for (let i2 = 0; i2 < 3; i2++) t3 = h2 + 1 / 3 * -(i2 - 1), t3 < 0 && t3++, t3 > 1 && t3--, 6 * t3 < 1 ? val = t1 + (t2 - t1) * 6 * t3 : 2 * t3 < 1 ? val = t2 : 3 * t3 < 2 ? val = t1 + (t2 - t1) * (2 / 3 - t3) * 6 : val = t1, rgb[i2] = val * 255;
|
||||
return rgb;
|
||||
};
|
||||
convert2.hsl.hsv = function(hsl) {
|
||||
let h2 = hsl[0], s2 = hsl[1] / 100, l2 = hsl[2] / 100, smin = s2, lmin = Math.max(l2, 0.01);
|
||||
l2 *= 2, s2 *= l2 <= 1 ? l2 : 2 - l2, smin *= lmin <= 1 ? lmin : 2 - lmin;
|
||||
let v2 = (l2 + s2) / 2, sv = l2 === 0 ? 2 * smin / (lmin + smin) : 2 * s2 / (l2 + s2);
|
||||
return [h2, sv * 100, v2 * 100];
|
||||
};
|
||||
convert2.hsv.rgb = function(hsv) {
|
||||
let h2 = hsv[0] / 60, s2 = hsv[1] / 100, v2 = hsv[2] / 100, hi = Math.floor(h2) % 6, f2 = h2 - Math.floor(h2), p2 = 255 * v2 * (1 - s2), q2 = 255 * v2 * (1 - s2 * f2), t2 = 255 * v2 * (1 - s2 * (1 - f2));
|
||||
switch (v2 *= 255, hi) {
|
||||
case 0:
|
||||
return [v2, t2, p2];
|
||||
case 1:
|
||||
return [q2, v2, p2];
|
||||
case 2:
|
||||
return [p2, v2, t2];
|
||||
case 3:
|
||||
return [p2, q2, v2];
|
||||
case 4:
|
||||
return [t2, p2, v2];
|
||||
case 5:
|
||||
return [v2, p2, q2];
|
||||
}
|
||||
};
|
||||
convert2.hsv.hsl = function(hsv) {
|
||||
let h2 = hsv[0], s2 = hsv[1] / 100, v2 = hsv[2] / 100, vmin = Math.max(v2, 0.01), sl, l2;
|
||||
l2 = (2 - s2) * v2;
|
||||
let lmin = (2 - s2) * vmin;
|
||||
return sl = s2 * vmin, sl /= lmin <= 1 ? lmin : 2 - lmin, sl = sl || 0, l2 /= 2, [h2, sl * 100, l2 * 100];
|
||||
};
|
||||
convert2.hwb.rgb = function(hwb) {
|
||||
let h2 = hwb[0] / 360, wh = hwb[1] / 100, bl = hwb[2] / 100, ratio = wh + bl, f2;
|
||||
ratio > 1 && (wh /= ratio, bl /= ratio);
|
||||
let i2 = Math.floor(6 * h2), v2 = 1 - bl;
|
||||
f2 = 6 * h2 - i2, (i2 & 1) !== 0 && (f2 = 1 - f2);
|
||||
let n2 = wh + f2 * (v2 - wh), r2, g2, b2;
|
||||
switch (i2) {
|
||||
default:
|
||||
case 6:
|
||||
case 0:
|
||||
r2 = v2, g2 = n2, b2 = wh;
|
||||
break;
|
||||
case 1:
|
||||
r2 = n2, g2 = v2, b2 = wh;
|
||||
break;
|
||||
case 2:
|
||||
r2 = wh, g2 = v2, b2 = n2;
|
||||
break;
|
||||
case 3:
|
||||
r2 = wh, g2 = n2, b2 = v2;
|
||||
break;
|
||||
case 4:
|
||||
r2 = n2, g2 = wh, b2 = v2;
|
||||
break;
|
||||
case 5:
|
||||
r2 = v2, g2 = wh, b2 = n2;
|
||||
break;
|
||||
}
|
||||
return [r2 * 255, g2 * 255, b2 * 255];
|
||||
};
|
||||
convert2.cmyk.rgb = function(cmyk) {
|
||||
let c2 = cmyk[0] / 100, m2 = cmyk[1] / 100, y2 = cmyk[2] / 100, k2 = cmyk[3] / 100, r2 = 1 - Math.min(1, c2 * (1 - k2) + k2), g2 = 1 - Math.min(1, m2 * (1 - k2) + k2), b2 = 1 - Math.min(1, y2 * (1 - k2) + k2);
|
||||
return [r2 * 255, g2 * 255, b2 * 255];
|
||||
};
|
||||
convert2.xyz.rgb = function(xyz) {
|
||||
let x2 = xyz[0] / 100, y2 = xyz[1] / 100, z2 = xyz[2] / 100, r2, g2, b2;
|
||||
return r2 = x2 * 3.2406 + y2 * -1.5372 + z2 * -0.4986, g2 = x2 * -0.9689 + y2 * 1.8758 + z2 * 0.0415, b2 = x2 * 0.0557 + y2 * -0.204 + z2 * 1.057, r2 = r2 > 31308e-7 ? 1.055 * r2 ** (1 / 2.4) - 0.055 : r2 * 12.92, g2 = g2 > 31308e-7 ? 1.055 * g2 ** (1 / 2.4) - 0.055 : g2 * 12.92, b2 = b2 > 31308e-7 ? 1.055 * b2 ** (1 / 2.4) - 0.055 : b2 * 12.92, r2 = Math.min(Math.max(0, r2), 1), g2 = Math.min(Math.max(0, g2), 1), b2 = Math.min(Math.max(0, b2), 1), [r2 * 255, g2 * 255, b2 * 255];
|
||||
};
|
||||
convert2.xyz.lab = function(xyz) {
|
||||
let x2 = xyz[0], y2 = xyz[1], z2 = xyz[2];
|
||||
x2 /= 95.047, y2 /= 100, z2 /= 108.883, x2 = x2 > 8856e-6 ? x2 ** (1 / 3) : 7.787 * x2 + 16 / 116, y2 = y2 > 8856e-6 ? y2 ** (1 / 3) : 7.787 * y2 + 16 / 116, z2 = z2 > 8856e-6 ? z2 ** (1 / 3) : 7.787 * z2 + 16 / 116;
|
||||
let l2 = 116 * y2 - 16, a2 = 500 * (x2 - y2), b2 = 200 * (y2 - z2);
|
||||
return [l2, a2, b2];
|
||||
};
|
||||
convert2.lab.xyz = function(lab) {
|
||||
let l2 = lab[0], a2 = lab[1], b2 = lab[2], x2, y2, z2;
|
||||
y2 = (l2 + 16) / 116, x2 = a2 / 500 + y2, z2 = y2 - b2 / 200;
|
||||
let y22 = y2 ** 3, x22 = x2 ** 3, z22 = z2 ** 3;
|
||||
return y2 = y22 > 8856e-6 ? y22 : (y2 - 16 / 116) / 7.787, x2 = x22 > 8856e-6 ? x22 : (x2 - 16 / 116) / 7.787, z2 = z22 > 8856e-6 ? z22 : (z2 - 16 / 116) / 7.787, x2 *= 95.047, y2 *= 100, z2 *= 108.883, [x2, y2, z2];
|
||||
};
|
||||
convert2.lab.lch = function(lab) {
|
||||
let l2 = lab[0], a2 = lab[1], b2 = lab[2], h2;
|
||||
h2 = Math.atan2(b2, a2) * 360 / 2 / Math.PI, h2 < 0 && (h2 += 360);
|
||||
let c2 = Math.sqrt(a2 * a2 + b2 * b2);
|
||||
return [l2, c2, h2];
|
||||
};
|
||||
convert2.lch.lab = function(lch) {
|
||||
let l2 = lch[0], c2 = lch[1], hr = lch[2] / 360 * 2 * Math.PI, a2 = c2 * Math.cos(hr), b2 = c2 * Math.sin(hr);
|
||||
return [l2, a2, b2];
|
||||
};
|
||||
convert2.rgb.ansi16 = function(args, saturation = null) {
|
||||
let [r2, g2, b2] = args, value = saturation === null ? convert2.rgb.hsv(args)[2] : saturation;
|
||||
if (value = Math.round(value / 50), value === 0) return 30;
|
||||
let ansi = 30 + (Math.round(b2 / 255) << 2 | Math.round(g2 / 255) << 1 | Math.round(r2 / 255));
|
||||
return value === 2 && (ansi += 60), ansi;
|
||||
};
|
||||
convert2.hsv.ansi16 = function(args) {
|
||||
return convert2.rgb.ansi16(convert2.hsv.rgb(args), args[2]);
|
||||
};
|
||||
convert2.rgb.ansi256 = function(args) {
|
||||
let r2 = args[0], g2 = args[1], b2 = args[2];
|
||||
return r2 === g2 && g2 === b2 ? r2 < 8 ? 16 : r2 > 248 ? 231 : Math.round((r2 - 8) / 247 * 24) + 232 : 16 + 36 * Math.round(r2 / 255 * 5) + 6 * Math.round(g2 / 255 * 5) + Math.round(b2 / 255 * 5);
|
||||
};
|
||||
convert2.ansi16.rgb = function(args) {
|
||||
let color = args % 10;
|
||||
if (color === 0 || color === 7) return args > 50 && (color += 3.5), color = color / 10.5 * 255, [color, color, color];
|
||||
let mult = (~~(args > 50) + 1) * 0.5, r2 = (color & 1) * mult * 255, g2 = (color >> 1 & 1) * mult * 255, b2 = (color >> 2 & 1) * mult * 255;
|
||||
return [r2, g2, b2];
|
||||
};
|
||||
convert2.ansi256.rgb = function(args) {
|
||||
if (args >= 232) {
|
||||
let c2 = (args - 232) * 10 + 8;
|
||||
return [c2, c2, c2];
|
||||
}
|
||||
args -= 16;
|
||||
let rem, r2 = Math.floor(args / 36) / 5 * 255, g2 = Math.floor((rem = args % 36) / 6) / 5 * 255, b2 = rem % 6 / 5 * 255;
|
||||
return [r2, g2, b2];
|
||||
};
|
||||
convert2.rgb.hex = function(args) {
|
||||
let string = (((Math.round(args[0]) & 255) << 16) + ((Math.round(args[1]) & 255) << 8) + (Math.round(args[2]) & 255)).toString(16).toUpperCase();
|
||||
return "000000".substring(string.length) + string;
|
||||
};
|
||||
convert2.hex.rgb = function(args) {
|
||||
let match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
||||
if (!match) return [0, 0, 0];
|
||||
let colorString = match[0];
|
||||
match[0].length === 3 && (colorString = colorString.split("").map((char) => char + char).join(""));
|
||||
let integer = parseInt(colorString, 16), r2 = integer >> 16 & 255, g2 = integer >> 8 & 255, b2 = integer & 255;
|
||||
return [r2, g2, b2];
|
||||
};
|
||||
convert2.rgb.hcg = function(rgb) {
|
||||
let r2 = rgb[0] / 255, g2 = rgb[1] / 255, b2 = rgb[2] / 255, max = Math.max(Math.max(r2, g2), b2), min = Math.min(Math.min(r2, g2), b2), chroma = max - min, grayscale, hue;
|
||||
return chroma < 1 ? grayscale = min / (1 - chroma) : grayscale = 0, chroma <= 0 ? hue = 0 : max === r2 ? hue = (g2 - b2) / chroma % 6 : max === g2 ? hue = 2 + (b2 - r2) / chroma : hue = 4 + (r2 - g2) / chroma, hue /= 6, hue %= 1, [hue * 360, chroma * 100, grayscale * 100];
|
||||
};
|
||||
convert2.hsl.hcg = function(hsl) {
|
||||
let s2 = hsl[1] / 100, l2 = hsl[2] / 100, c2 = l2 < 0.5 ? 2 * s2 * l2 : 2 * s2 * (1 - l2), f2 = 0;
|
||||
return c2 < 1 && (f2 = (l2 - 0.5 * c2) / (1 - c2)), [hsl[0], c2 * 100, f2 * 100];
|
||||
};
|
||||
convert2.hsv.hcg = function(hsv) {
|
||||
let s2 = hsv[1] / 100, v2 = hsv[2] / 100, c2 = s2 * v2, f2 = 0;
|
||||
return c2 < 1 && (f2 = (v2 - c2) / (1 - c2)), [hsv[0], c2 * 100, f2 * 100];
|
||||
};
|
||||
convert2.hcg.rgb = function(hcg) {
|
||||
let h2 = hcg[0] / 360, c2 = hcg[1] / 100, g2 = hcg[2] / 100;
|
||||
if (c2 === 0) return [g2 * 255, g2 * 255, g2 * 255];
|
||||
let pure = [0, 0, 0], hi = h2 % 1 * 6, v2 = hi % 1, w2 = 1 - v2, mg = 0;
|
||||
switch (Math.floor(hi)) {
|
||||
case 0:
|
||||
pure[0] = 1, pure[1] = v2, pure[2] = 0;
|
||||
break;
|
||||
case 1:
|
||||
pure[0] = w2, pure[1] = 1, pure[2] = 0;
|
||||
break;
|
||||
case 2:
|
||||
pure[0] = 0, pure[1] = 1, pure[2] = v2;
|
||||
break;
|
||||
case 3:
|
||||
pure[0] = 0, pure[1] = w2, pure[2] = 1;
|
||||
break;
|
||||
case 4:
|
||||
pure[0] = v2, pure[1] = 0, pure[2] = 1;
|
||||
break;
|
||||
default:
|
||||
pure[0] = 1, pure[1] = 0, pure[2] = w2;
|
||||
}
|
||||
return mg = (1 - c2) * g2, [(c2 * pure[0] + mg) * 255, (c2 * pure[1] + mg) * 255, (c2 * pure[2] + mg) * 255];
|
||||
};
|
||||
convert2.hcg.hsv = function(hcg) {
|
||||
let c2 = hcg[1] / 100, g2 = hcg[2] / 100, v2 = c2 + g2 * (1 - c2), f2 = 0;
|
||||
return v2 > 0 && (f2 = c2 / v2), [hcg[0], f2 * 100, v2 * 100];
|
||||
};
|
||||
convert2.hcg.hsl = function(hcg) {
|
||||
let c2 = hcg[1] / 100, l2 = hcg[2] / 100 * (1 - c2) + 0.5 * c2, s2 = 0;
|
||||
return l2 > 0 && l2 < 0.5 ? s2 = c2 / (2 * l2) : l2 >= 0.5 && l2 < 1 && (s2 = c2 / (2 * (1 - l2))), [hcg[0], s2 * 100, l2 * 100];
|
||||
};
|
||||
convert2.hcg.hwb = function(hcg) {
|
||||
let c2 = hcg[1] / 100, g2 = hcg[2] / 100, v2 = c2 + g2 * (1 - c2);
|
||||
return [hcg[0], (v2 - c2) * 100, (1 - v2) * 100];
|
||||
};
|
||||
convert2.hwb.hcg = function(hwb) {
|
||||
let w2 = hwb[1] / 100, v2 = 1 - hwb[2] / 100, c2 = v2 - w2, g2 = 0;
|
||||
return c2 < 1 && (g2 = (v2 - c2) / (1 - c2)), [hwb[0], c2 * 100, g2 * 100];
|
||||
};
|
||||
convert2.apple.rgb = function(apple) {
|
||||
return [apple[0] / 65535 * 255, apple[1] / 65535 * 255, apple[2] / 65535 * 255];
|
||||
};
|
||||
convert2.rgb.apple = function(rgb) {
|
||||
return [rgb[0] / 255 * 65535, rgb[1] / 255 * 65535, rgb[2] / 255 * 65535];
|
||||
};
|
||||
convert2.gray.rgb = function(args) {
|
||||
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
||||
};
|
||||
convert2.gray.hsl = function(args) {
|
||||
return [0, 0, args[0]];
|
||||
};
|
||||
convert2.gray.hsv = convert2.gray.hsl;
|
||||
convert2.gray.hwb = function(gray) {
|
||||
return [0, 100, gray[0]];
|
||||
};
|
||||
convert2.gray.cmyk = function(gray) {
|
||||
return [0, 0, 0, gray[0]];
|
||||
};
|
||||
convert2.gray.lab = function(gray) {
|
||||
return [gray[0], 0, 0];
|
||||
};
|
||||
convert2.gray.hex = function(gray) {
|
||||
let val = Math.round(gray[0] / 100 * 255) & 255, string = ((val << 16) + (val << 8) + val).toString(16).toUpperCase();
|
||||
return "000000".substring(string.length) + string;
|
||||
};
|
||||
convert2.rgb.gray = function(rgb) {
|
||||
return [(rgb[0] + rgb[1] + rgb[2]) / 3 / 255 * 100];
|
||||
};
|
||||
} });
|
||||
var require_route = __commonJS({ "../../node_modules/color-convert/route.js"(exports, module) {
|
||||
var conversions = require_conversions();
|
||||
function buildGraph() {
|
||||
let graph = {}, models = Object.keys(conversions);
|
||||
for (let len = models.length, i2 = 0; i2 < len; i2++) graph[models[i2]] = { distance: -1, parent: null };
|
||||
return graph;
|
||||
}
|
||||
function deriveBFS(fromModel) {
|
||||
let graph = buildGraph(), queue = [fromModel];
|
||||
for (graph[fromModel].distance = 0; queue.length; ) {
|
||||
let current = queue.pop(), adjacents = Object.keys(conversions[current]);
|
||||
for (let len = adjacents.length, i2 = 0; i2 < len; i2++) {
|
||||
let adjacent = adjacents[i2], node = graph[adjacent];
|
||||
node.distance === -1 && (node.distance = graph[current].distance + 1, node.parent = current, queue.unshift(adjacent));
|
||||
}
|
||||
}
|
||||
return graph;
|
||||
}
|
||||
function link(from, to) {
|
||||
return function(args) {
|
||||
return to(from(args));
|
||||
};
|
||||
}
|
||||
function wrapConversion(toModel, graph) {
|
||||
let path = [graph[toModel].parent, toModel], fn = conversions[graph[toModel].parent][toModel], cur = graph[toModel].parent;
|
||||
for (; graph[cur].parent; ) path.unshift(graph[cur].parent), fn = link(conversions[graph[cur].parent][cur], fn), cur = graph[cur].parent;
|
||||
return fn.conversion = path, fn;
|
||||
}
|
||||
module.exports = function(fromModel) {
|
||||
let graph = deriveBFS(fromModel), conversion = {}, models = Object.keys(graph);
|
||||
for (let len = models.length, i2 = 0; i2 < len; i2++) {
|
||||
let toModel = models[i2];
|
||||
graph[toModel].parent !== null && (conversion[toModel] = wrapConversion(toModel, graph));
|
||||
}
|
||||
return conversion;
|
||||
};
|
||||
} });
|
||||
var require_color_convert = __commonJS({ "../../node_modules/color-convert/index.js"(exports, module) {
|
||||
var conversions = require_conversions(), route = require_route(), convert2 = {}, models = Object.keys(conversions);
|
||||
function wrapRaw(fn) {
|
||||
let wrappedFn = function(...args) {
|
||||
let arg0 = args[0];
|
||||
return arg0 == null ? arg0 : (arg0.length > 1 && (args = arg0), fn(args));
|
||||
};
|
||||
return "conversion" in fn && (wrappedFn.conversion = fn.conversion), wrappedFn;
|
||||
}
|
||||
function wrapRounded(fn) {
|
||||
let wrappedFn = function(...args) {
|
||||
let arg0 = args[0];
|
||||
if (arg0 == null) return arg0;
|
||||
arg0.length > 1 && (args = arg0);
|
||||
let result = fn(args);
|
||||
if (typeof result == "object") for (let len = result.length, i2 = 0; i2 < len; i2++) result[i2] = Math.round(result[i2]);
|
||||
return result;
|
||||
};
|
||||
return "conversion" in fn && (wrappedFn.conversion = fn.conversion), wrappedFn;
|
||||
}
|
||||
models.forEach((fromModel) => {
|
||||
convert2[fromModel] = {}, Object.defineProperty(convert2[fromModel], "channels", { value: conversions[fromModel].channels }), Object.defineProperty(convert2[fromModel], "labels", { value: conversions[fromModel].labels });
|
||||
let routes = route(fromModel);
|
||||
Object.keys(routes).forEach((toModel) => {
|
||||
let fn = routes[toModel];
|
||||
convert2[fromModel][toModel] = wrapRounded(fn), convert2[fromModel][toModel].raw = wrapRaw(fn);
|
||||
});
|
||||
});
|
||||
module.exports = convert2;
|
||||
} });
|
||||
var import_color_convert = __toESM2(require_color_convert());
|
||||
function u() {
|
||||
return (u = Object.assign || function(e2) {
|
||||
for (var r2 = 1; r2 < arguments.length; r2++) {
|
||||
var t2 = arguments[r2];
|
||||
for (var n2 in t2) Object.prototype.hasOwnProperty.call(t2, n2) && (e2[n2] = t2[n2]);
|
||||
}
|
||||
return e2;
|
||||
}).apply(this, arguments);
|
||||
}
|
||||
function c(e2, r2) {
|
||||
if (e2 == null) return {};
|
||||
var t2, n2, o2 = {}, a2 = Object.keys(e2);
|
||||
for (n2 = 0; n2 < a2.length; n2++) r2.indexOf(t2 = a2[n2]) >= 0 || (o2[t2] = e2[t2]);
|
||||
return o2;
|
||||
}
|
||||
function i(e2) {
|
||||
var t2 = (0, import_react.useRef)(e2), n2 = (0, import_react.useRef)(function(e3) {
|
||||
t2.current && t2.current(e3);
|
||||
});
|
||||
return t2.current = e2, n2.current;
|
||||
}
|
||||
var s = function(e2, r2, t2) {
|
||||
return r2 === void 0 && (r2 = 0), t2 === void 0 && (t2 = 1), e2 > t2 ? t2 : e2 < r2 ? r2 : e2;
|
||||
};
|
||||
var f = function(e2) {
|
||||
return "touches" in e2;
|
||||
};
|
||||
var v = function(e2) {
|
||||
return e2 && e2.ownerDocument.defaultView || self;
|
||||
};
|
||||
var d = function(e2, r2, t2) {
|
||||
var n2 = e2.getBoundingClientRect(), o2 = f(r2) ? function(e3, r3) {
|
||||
for (var t3 = 0; t3 < e3.length; t3++) if (e3[t3].identifier === r3) return e3[t3];
|
||||
return e3[0];
|
||||
}(r2.touches, t2) : r2;
|
||||
return { left: s((o2.pageX - (n2.left + v(e2).pageXOffset)) / n2.width), top: s((o2.pageY - (n2.top + v(e2).pageYOffset)) / n2.height) };
|
||||
};
|
||||
var h = function(e2) {
|
||||
!f(e2) && e2.preventDefault();
|
||||
};
|
||||
var m = import_react.default.memo(function(o2) {
|
||||
var a2 = o2.onMove, l2 = o2.onKey, s2 = c(o2, ["onMove", "onKey"]), m2 = (0, import_react.useRef)(null), g2 = i(a2), p2 = i(l2), b2 = (0, import_react.useRef)(null), _2 = (0, import_react.useRef)(false), x2 = (0, import_react.useMemo)(function() {
|
||||
var e2 = function(e3) {
|
||||
h(e3), (f(e3) ? e3.touches.length > 0 : e3.buttons > 0) && m2.current ? g2(d(m2.current, e3, b2.current)) : t2(false);
|
||||
}, r2 = function() {
|
||||
return t2(false);
|
||||
};
|
||||
function t2(t3) {
|
||||
var n2 = _2.current, o3 = v(m2.current), a3 = t3 ? o3.addEventListener : o3.removeEventListener;
|
||||
a3(n2 ? "touchmove" : "mousemove", e2), a3(n2 ? "touchend" : "mouseup", r2);
|
||||
}
|
||||
return [function(e3) {
|
||||
var r3 = e3.nativeEvent, n2 = m2.current;
|
||||
if (n2 && (h(r3), !function(e4, r4) {
|
||||
return r4 && !f(e4);
|
||||
}(r3, _2.current) && n2)) {
|
||||
if (f(r3)) {
|
||||
_2.current = true;
|
||||
var o3 = r3.changedTouches || [];
|
||||
o3.length && (b2.current = o3[0].identifier);
|
||||
}
|
||||
n2.focus(), g2(d(n2, r3, b2.current)), t2(true);
|
||||
}
|
||||
}, function(e3) {
|
||||
var r3 = e3.which || e3.keyCode;
|
||||
r3 < 37 || r3 > 40 || (e3.preventDefault(), p2({ left: r3 === 39 ? 0.05 : r3 === 37 ? -0.05 : 0, top: r3 === 40 ? 0.05 : r3 === 38 ? -0.05 : 0 }));
|
||||
}, t2];
|
||||
}, [p2, g2]), C2 = x2[0], E2 = x2[1], H2 = x2[2];
|
||||
return (0, import_react.useEffect)(function() {
|
||||
return H2;
|
||||
}, [H2]), import_react.default.createElement("div", u({}, s2, { onTouchStart: C2, onMouseDown: C2, className: "react-colorful__interactive", ref: m2, onKeyDown: E2, tabIndex: 0, role: "slider" }));
|
||||
});
|
||||
var g = function(e2) {
|
||||
return e2.filter(Boolean).join(" ");
|
||||
};
|
||||
var p = function(r2) {
|
||||
var t2 = r2.color, n2 = r2.left, o2 = r2.top, a2 = o2 === void 0 ? 0.5 : o2, l2 = g(["react-colorful__pointer", r2.className]);
|
||||
return import_react.default.createElement("div", { className: l2, style: { top: 100 * a2 + "%", left: 100 * n2 + "%" } }, import_react.default.createElement("div", { className: "react-colorful__pointer-fill", style: { backgroundColor: t2 } }));
|
||||
};
|
||||
var b = function(e2, r2, t2) {
|
||||
return r2 === void 0 && (r2 = 0), t2 === void 0 && (t2 = Math.pow(10, r2)), Math.round(t2 * e2) / t2;
|
||||
};
|
||||
var _ = { grad: 0.9, turn: 360, rad: 360 / (2 * Math.PI) };
|
||||
var x = function(e2) {
|
||||
return L(C(e2));
|
||||
};
|
||||
var C = function(e2) {
|
||||
return e2[0] === "#" && (e2 = e2.substring(1)), e2.length < 6 ? { r: parseInt(e2[0] + e2[0], 16), g: parseInt(e2[1] + e2[1], 16), b: parseInt(e2[2] + e2[2], 16), a: e2.length === 4 ? b(parseInt(e2[3] + e2[3], 16) / 255, 2) : 1 } : { r: parseInt(e2.substring(0, 2), 16), g: parseInt(e2.substring(2, 4), 16), b: parseInt(e2.substring(4, 6), 16), a: e2.length === 8 ? b(parseInt(e2.substring(6, 8), 16) / 255, 2) : 1 };
|
||||
};
|
||||
var E = function(e2, r2) {
|
||||
return r2 === void 0 && (r2 = "deg"), Number(e2) * (_[r2] || 1);
|
||||
};
|
||||
var H = function(e2) {
|
||||
var r2 = /hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e2);
|
||||
return r2 ? N({ h: E(r2[1], r2[2]), s: Number(r2[3]), l: Number(r2[4]), a: r2[5] === void 0 ? 1 : Number(r2[5]) / (r2[6] ? 100 : 1) }) : { h: 0, s: 0, v: 0, a: 1 };
|
||||
};
|
||||
var N = function(e2) {
|
||||
var r2 = e2.s, t2 = e2.l;
|
||||
return { h: e2.h, s: (r2 *= (t2 < 50 ? t2 : 100 - t2) / 100) > 0 ? 2 * r2 / (t2 + r2) * 100 : 0, v: t2 + r2, a: e2.a };
|
||||
};
|
||||
var w = function(e2) {
|
||||
return K(I(e2));
|
||||
};
|
||||
var y = function(e2) {
|
||||
var r2 = e2.s, t2 = e2.v, n2 = e2.a, o2 = (200 - r2) * t2 / 100;
|
||||
return { h: b(e2.h), s: b(o2 > 0 && o2 < 200 ? r2 * t2 / 100 / (o2 <= 100 ? o2 : 200 - o2) * 100 : 0), l: b(o2 / 2), a: b(n2, 2) };
|
||||
};
|
||||
var q = function(e2) {
|
||||
var r2 = y(e2);
|
||||
return "hsl(" + r2.h + ", " + r2.s + "%, " + r2.l + "%)";
|
||||
};
|
||||
var k = function(e2) {
|
||||
var r2 = y(e2);
|
||||
return "hsla(" + r2.h + ", " + r2.s + "%, " + r2.l + "%, " + r2.a + ")";
|
||||
};
|
||||
var I = function(e2) {
|
||||
var r2 = e2.h, t2 = e2.s, n2 = e2.v, o2 = e2.a;
|
||||
r2 = r2 / 360 * 6, t2 /= 100, n2 /= 100;
|
||||
var a2 = Math.floor(r2), l2 = n2 * (1 - t2), u2 = n2 * (1 - (r2 - a2) * t2), c2 = n2 * (1 - (1 - r2 + a2) * t2), i2 = a2 % 6;
|
||||
return { r: b(255 * [n2, u2, l2, l2, c2, n2][i2]), g: b(255 * [c2, n2, n2, u2, l2, l2][i2]), b: b(255 * [l2, l2, c2, n2, n2, u2][i2]), a: b(o2, 2) };
|
||||
};
|
||||
var z = function(e2) {
|
||||
var r2 = /rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e2);
|
||||
return r2 ? L({ r: Number(r2[1]) / (r2[2] ? 100 / 255 : 1), g: Number(r2[3]) / (r2[4] ? 100 / 255 : 1), b: Number(r2[5]) / (r2[6] ? 100 / 255 : 1), a: r2[7] === void 0 ? 1 : Number(r2[7]) / (r2[8] ? 100 : 1) }) : { h: 0, s: 0, v: 0, a: 1 };
|
||||
};
|
||||
var D = function(e2) {
|
||||
var r2 = e2.toString(16);
|
||||
return r2.length < 2 ? "0" + r2 : r2;
|
||||
};
|
||||
var K = function(e2) {
|
||||
var r2 = e2.r, t2 = e2.g, n2 = e2.b, o2 = e2.a, a2 = o2 < 1 ? D(b(255 * o2)) : "";
|
||||
return "#" + D(r2) + D(t2) + D(n2) + a2;
|
||||
};
|
||||
var L = function(e2) {
|
||||
var r2 = e2.r, t2 = e2.g, n2 = e2.b, o2 = e2.a, a2 = Math.max(r2, t2, n2), l2 = a2 - Math.min(r2, t2, n2), u2 = l2 ? a2 === r2 ? (t2 - n2) / l2 : a2 === t2 ? 2 + (n2 - r2) / l2 : 4 + (r2 - t2) / l2 : 0;
|
||||
return { h: b(60 * (u2 < 0 ? u2 + 6 : u2)), s: b(a2 ? l2 / a2 * 100 : 0), v: b(a2 / 255 * 100), a: o2 };
|
||||
};
|
||||
var S = import_react.default.memo(function(r2) {
|
||||
var t2 = r2.hue, n2 = r2.onChange, o2 = g(["react-colorful__hue", r2.className]);
|
||||
return import_react.default.createElement("div", { className: o2 }, import_react.default.createElement(m, { onMove: function(e2) {
|
||||
n2({ h: 360 * e2.left });
|
||||
}, onKey: function(e2) {
|
||||
n2({ h: s(t2 + 360 * e2.left, 0, 360) });
|
||||
}, "aria-label": "Hue", "aria-valuenow": b(t2), "aria-valuemax": "360", "aria-valuemin": "0" }, import_react.default.createElement(p, { className: "react-colorful__hue-pointer", left: t2 / 360, color: q({ h: t2, s: 100, v: 100, a: 1 }) })));
|
||||
});
|
||||
var T = import_react.default.memo(function(r2) {
|
||||
var t2 = r2.hsva, n2 = r2.onChange, o2 = { backgroundColor: q({ h: t2.h, s: 100, v: 100, a: 1 }) };
|
||||
return import_react.default.createElement("div", { className: "react-colorful__saturation", style: o2 }, import_react.default.createElement(m, { onMove: function(e2) {
|
||||
n2({ s: 100 * e2.left, v: 100 - 100 * e2.top });
|
||||
}, onKey: function(e2) {
|
||||
n2({ s: s(t2.s + 100 * e2.left, 0, 100), v: s(t2.v - 100 * e2.top, 0, 100) });
|
||||
}, "aria-label": "Color", "aria-valuetext": "Saturation " + b(t2.s) + "%, Brightness " + b(t2.v) + "%" }, import_react.default.createElement(p, { className: "react-colorful__saturation-pointer", top: 1 - t2.v / 100, left: t2.s / 100, color: q(t2) })));
|
||||
});
|
||||
var F = function(e2, r2) {
|
||||
if (e2 === r2) return true;
|
||||
for (var t2 in e2) if (e2[t2] !== r2[t2]) return false;
|
||||
return true;
|
||||
};
|
||||
var P = function(e2, r2) {
|
||||
return e2.replace(/\s/g, "") === r2.replace(/\s/g, "");
|
||||
};
|
||||
var X = function(e2, r2) {
|
||||
return e2.toLowerCase() === r2.toLowerCase() || F(C(e2), C(r2));
|
||||
};
|
||||
function Y(e2, t2, l2) {
|
||||
var u2 = i(l2), c2 = (0, import_react.useState)(function() {
|
||||
return e2.toHsva(t2);
|
||||
}), s2 = c2[0], f2 = c2[1], v2 = (0, import_react.useRef)({ color: t2, hsva: s2 });
|
||||
(0, import_react.useEffect)(function() {
|
||||
if (!e2.equal(t2, v2.current.color)) {
|
||||
var r2 = e2.toHsva(t2);
|
||||
v2.current = { hsva: r2, color: t2 }, f2(r2);
|
||||
}
|
||||
}, [t2, e2]), (0, import_react.useEffect)(function() {
|
||||
var r2;
|
||||
F(s2, v2.current.hsva) || e2.equal(r2 = e2.fromHsva(s2), v2.current.color) || (v2.current = { hsva: s2, color: r2 }, u2(r2));
|
||||
}, [s2, e2, u2]);
|
||||
var d2 = (0, import_react.useCallback)(function(e3) {
|
||||
f2(function(r2) {
|
||||
return Object.assign({}, r2, e3);
|
||||
});
|
||||
}, []);
|
||||
return [s2, d2];
|
||||
}
|
||||
var V = typeof window < "u" ? import_react.useLayoutEffect : import_react.useEffect;
|
||||
var $ = function() {
|
||||
return typeof __webpack_nonce__ < "u" ? __webpack_nonce__ : void 0;
|
||||
};
|
||||
var J = /* @__PURE__ */ new Map();
|
||||
var Q = function(e2) {
|
||||
V(function() {
|
||||
var r2 = e2.current ? e2.current.ownerDocument : document;
|
||||
if (r2 !== void 0 && !J.has(r2)) {
|
||||
var t2 = r2.createElement("style");
|
||||
t2.innerHTML = `.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`, J.set(r2, t2);
|
||||
var n2 = $();
|
||||
n2 && t2.setAttribute("nonce", n2), r2.head.appendChild(t2);
|
||||
}
|
||||
}, []);
|
||||
};
|
||||
var U = function(t2) {
|
||||
var n2 = t2.className, o2 = t2.colorModel, a2 = t2.color, l2 = a2 === void 0 ? o2.defaultColor : a2, i2 = t2.onChange, s2 = c(t2, ["className", "colorModel", "color", "onChange"]), f2 = (0, import_react.useRef)(null);
|
||||
Q(f2);
|
||||
var v2 = Y(o2, l2, i2), d2 = v2[0], h2 = v2[1], m2 = g(["react-colorful", n2]);
|
||||
return import_react.default.createElement("div", u({}, s2, { ref: f2, className: m2 }), import_react.default.createElement(T, { hsva: d2, onChange: h2 }), import_react.default.createElement(S, { hue: d2.h, onChange: h2, className: "react-colorful__last-control" }));
|
||||
};
|
||||
var W = { defaultColor: "000", toHsva: x, fromHsva: function(e2) {
|
||||
return w({ h: e2.h, s: e2.s, v: e2.v, a: 1 });
|
||||
}, equal: X };
|
||||
var Z = function(r2) {
|
||||
return import_react.default.createElement(U, u({}, r2, { colorModel: W }));
|
||||
};
|
||||
var ee = function(r2) {
|
||||
var t2 = r2.className, n2 = r2.hsva, o2 = r2.onChange, a2 = { backgroundImage: "linear-gradient(90deg, " + k(Object.assign({}, n2, { a: 0 })) + ", " + k(Object.assign({}, n2, { a: 1 })) + ")" }, l2 = g(["react-colorful__alpha", t2]), u2 = b(100 * n2.a);
|
||||
return import_react.default.createElement("div", { className: l2 }, import_react.default.createElement("div", { className: "react-colorful__alpha-gradient", style: a2 }), import_react.default.createElement(m, { onMove: function(e2) {
|
||||
o2({ a: e2.left });
|
||||
}, onKey: function(e2) {
|
||||
o2({ a: s(n2.a + e2.left) });
|
||||
}, "aria-label": "Alpha", "aria-valuetext": u2 + "%", "aria-valuenow": u2, "aria-valuemin": "0", "aria-valuemax": "100" }, import_react.default.createElement(p, { className: "react-colorful__alpha-pointer", left: n2.a, color: k(n2) })));
|
||||
};
|
||||
var re = function(t2) {
|
||||
var n2 = t2.className, o2 = t2.colorModel, a2 = t2.color, l2 = a2 === void 0 ? o2.defaultColor : a2, i2 = t2.onChange, s2 = c(t2, ["className", "colorModel", "color", "onChange"]), f2 = (0, import_react.useRef)(null);
|
||||
Q(f2);
|
||||
var v2 = Y(o2, l2, i2), d2 = v2[0], h2 = v2[1], m2 = g(["react-colorful", n2]);
|
||||
return import_react.default.createElement("div", u({}, s2, { ref: f2, className: m2 }), import_react.default.createElement(T, { hsva: d2, onChange: h2 }), import_react.default.createElement(S, { hue: d2.h, onChange: h2 }), import_react.default.createElement(ee, { hsva: d2, onChange: h2, className: "react-colorful__last-control" }));
|
||||
};
|
||||
var le = { defaultColor: "hsla(0, 0%, 0%, 1)", toHsva: H, fromHsva: k, equal: P };
|
||||
var ue = function(r2) {
|
||||
return import_react.default.createElement(re, u({}, r2, { colorModel: le }));
|
||||
};
|
||||
var Ee = { defaultColor: "rgba(0, 0, 0, 1)", toHsva: z, fromHsva: function(e2) {
|
||||
var r2 = I(e2);
|
||||
return "rgba(" + r2.r + ", " + r2.g + ", " + r2.b + ", " + r2.a + ")";
|
||||
}, equal: P };
|
||||
var He = function(r2) {
|
||||
return import_react.default.createElement(re, u({}, r2, { colorModel: Ee }));
|
||||
};
|
||||
var Wrapper = xr.div({ position: "relative", maxWidth: 250, '&[aria-readonly="true"]': { opacity: 0.5 } });
|
||||
var PickerTooltip = xr(O3)({ position: "absolute", zIndex: 1, top: 4, left: 4, "[aria-readonly=true] &": { cursor: "not-allowed" } });
|
||||
var TooltipContent = xr.div({ width: 200, margin: 5, ".react-colorful__saturation": { borderRadius: "4px 4px 0 0" }, ".react-colorful__hue": { boxShadow: "inset 0 0 0 1px rgb(0 0 0 / 5%)" }, ".react-colorful__last-control": { borderRadius: "0 0 4px 4px" } });
|
||||
var Note = xr(G3)(({ theme }) => ({ fontFamily: theme.typography.fonts.base }));
|
||||
var Swatches = xr.div({ display: "grid", gridTemplateColumns: "repeat(9, 16px)", gap: 6, padding: 3, marginTop: 5, width: 200 });
|
||||
var SwatchColor = xr.div(({ theme, active }) => ({ width: 16, height: 16, boxShadow: active ? `${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px` : `${theme.appBorderColor} 0 0 0 1px inset`, borderRadius: theme.appBorderRadius }));
|
||||
var swatchBackground = `url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>')`;
|
||||
var Swatch = ({ value, style, ...props }) => {
|
||||
let backgroundImage = `linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;
|
||||
return import_react.default.createElement(SwatchColor, { ...props, style: { ...style, backgroundImage } });
|
||||
};
|
||||
var Input = xr(N7.Input)(({ theme, readOnly }) => ({ width: "100%", paddingLeft: 30, paddingRight: 30, boxSizing: "border-box", fontFamily: theme.typography.fonts.base }));
|
||||
var ToggleIcon = xr(MarkupIcon)(({ theme }) => ({ position: "absolute", zIndex: 1, top: 6, right: 7, width: 20, height: 20, padding: 4, boxSizing: "border-box", cursor: "pointer", color: theme.input.color }));
|
||||
var ColorSpace = ((ColorSpace2) => (ColorSpace2.RGB = "rgb", ColorSpace2.HSL = "hsl", ColorSpace2.HEX = "hex", ColorSpace2))(ColorSpace || {});
|
||||
var COLOR_SPACES = Object.values(ColorSpace);
|
||||
var COLOR_REGEXP = /\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/;
|
||||
var RGB_REGEXP = /^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i;
|
||||
var HSL_REGEXP = /^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i;
|
||||
var HEX_REGEXP = /^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i;
|
||||
var SHORTHEX_REGEXP = /^\s*#?([0-9a-f]{3})\s*$/i;
|
||||
var ColorPicker = { hex: Z, rgb: He, hsl: ue };
|
||||
var fallbackColor = { hex: "transparent", rgb: "rgba(0, 0, 0, 0)", hsl: "hsla(0, 0%, 0%, 0)" };
|
||||
var stringToArgs = (value) => {
|
||||
let match = value == null ? void 0 : value.match(COLOR_REGEXP);
|
||||
if (!match) return [0, 0, 0, 1];
|
||||
let [, x2, y2, z2, a2 = 1] = match;
|
||||
return [x2, y2, z2, a2].map(Number);
|
||||
};
|
||||
var parseRgb = (value) => {
|
||||
let [r2, g2, b2, a2] = stringToArgs(value), [h2, s2, l2] = import_color_convert.default.rgb.hsl([r2, g2, b2]) || [0, 0, 0];
|
||||
return { valid: true, value, keyword: import_color_convert.default.rgb.keyword([r2, g2, b2]), colorSpace: "rgb", rgb: value, hsl: `hsla(${h2}, ${s2}%, ${l2}%, ${a2})`, hex: `#${import_color_convert.default.rgb.hex([r2, g2, b2]).toLowerCase()}` };
|
||||
};
|
||||
var parseHsl = (value) => {
|
||||
let [h2, s2, l2, a2] = stringToArgs(value), [r2, g2, b2] = import_color_convert.default.hsl.rgb([h2, s2, l2]) || [0, 0, 0];
|
||||
return { valid: true, value, keyword: import_color_convert.default.hsl.keyword([h2, s2, l2]), colorSpace: "hsl", rgb: `rgba(${r2}, ${g2}, ${b2}, ${a2})`, hsl: value, hex: `#${import_color_convert.default.hsl.hex([h2, s2, l2]).toLowerCase()}` };
|
||||
};
|
||||
var parseHexOrKeyword = (value) => {
|
||||
let plain = value.replace("#", ""), rgb = import_color_convert.default.keyword.rgb(plain) || import_color_convert.default.hex.rgb(plain), hsl = import_color_convert.default.rgb.hsl(rgb), mapped = value;
|
||||
/[^#a-f0-9]/i.test(value) ? mapped = plain : HEX_REGEXP.test(value) && (mapped = `#${plain}`);
|
||||
let valid = true;
|
||||
if (mapped.startsWith("#")) valid = HEX_REGEXP.test(mapped);
|
||||
else try {
|
||||
import_color_convert.default.keyword.hex(mapped);
|
||||
} catch {
|
||||
valid = false;
|
||||
}
|
||||
return { valid, value: mapped, keyword: import_color_convert.default.rgb.keyword(rgb), colorSpace: "hex", rgb: `rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`, hsl: `hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`, hex: mapped };
|
||||
};
|
||||
var parseValue = (value) => {
|
||||
if (value) return RGB_REGEXP.test(value) ? parseRgb(value) : HSL_REGEXP.test(value) ? parseHsl(value) : parseHexOrKeyword(value);
|
||||
};
|
||||
var getRealValue = (value, color, colorSpace) => {
|
||||
if (!value || !(color == null ? void 0 : color.valid)) return fallbackColor[colorSpace];
|
||||
if (colorSpace !== "hex") return (color == null ? void 0 : color[colorSpace]) || fallbackColor[colorSpace];
|
||||
if (!color.hex.startsWith("#")) try {
|
||||
return `#${import_color_convert.default.keyword.hex(color.hex)}`;
|
||||
} catch {
|
||||
return fallbackColor.hex;
|
||||
}
|
||||
let short = color.hex.match(SHORTHEX_REGEXP);
|
||||
if (!short) return HEX_REGEXP.test(color.hex) ? color.hex : fallbackColor.hex;
|
||||
let [r2, g2, b2] = short[1].split("");
|
||||
return `#${r2}${r2}${g2}${g2}${b2}${b2}`;
|
||||
};
|
||||
var useColorInput = (initialValue, onChange) => {
|
||||
let [value, setValue] = (0, import_react.useState)(initialValue || ""), [color, setColor] = (0, import_react.useState)(() => parseValue(value)), [colorSpace, setColorSpace] = (0, import_react.useState)((color == null ? void 0 : color.colorSpace) || "hex");
|
||||
(0, import_react.useEffect)(() => {
|
||||
let nextValue = initialValue || "", nextColor = parseValue(nextValue);
|
||||
setValue(nextValue), setColor(nextColor), setColorSpace((nextColor == null ? void 0 : nextColor.colorSpace) || "hex");
|
||||
}, [initialValue]);
|
||||
let realValue = (0, import_react.useMemo)(() => getRealValue(value, color, colorSpace).toLowerCase(), [value, color, colorSpace]), updateValue = (0, import_react.useCallback)((update) => {
|
||||
let parsed = parseValue(update), v2 = (parsed == null ? void 0 : parsed.value) || update || "";
|
||||
setValue(v2), v2 === "" && (setColor(void 0), onChange(void 0)), parsed && (setColor(parsed), setColorSpace(parsed.colorSpace), onChange(parsed.value));
|
||||
}, [onChange]), cycleColorSpace = (0, import_react.useCallback)(() => {
|
||||
let nextIndex = (COLOR_SPACES.indexOf(colorSpace) + 1) % COLOR_SPACES.length, nextSpace = COLOR_SPACES[nextIndex];
|
||||
setColorSpace(nextSpace);
|
||||
let updatedValue = (color == null ? void 0 : color[nextSpace]) || "";
|
||||
setValue(updatedValue), onChange(updatedValue);
|
||||
}, [color, colorSpace, onChange]);
|
||||
return { value, realValue, updateValue, color, colorSpace, cycleColorSpace };
|
||||
};
|
||||
var id = (value) => value.replace(/\s*/, "").toLowerCase();
|
||||
var usePresets = (presetColors, currentColor, colorSpace) => {
|
||||
let [selectedColors, setSelectedColors] = (0, import_react.useState)((currentColor == null ? void 0 : currentColor.valid) ? [currentColor] : []);
|
||||
(0, import_react.useEffect)(() => {
|
||||
currentColor === void 0 && setSelectedColors([]);
|
||||
}, [currentColor]);
|
||||
let presets = (0, import_react.useMemo)(() => (presetColors || []).map((preset) => typeof preset == "string" ? parseValue(preset) : preset.title ? { ...parseValue(preset.color), keyword: preset.title } : parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27), [presetColors, selectedColors]), addPreset = (0, import_react.useCallback)((color) => {
|
||||
(color == null ? void 0 : color.valid) && (presets.some((preset) => preset && preset[colorSpace] && id(preset[colorSpace] || "") === id(color[colorSpace] || "")) || setSelectedColors((arr) => arr.concat(color)));
|
||||
}, [colorSpace, presets]);
|
||||
return { presets, addPreset };
|
||||
};
|
||||
var ColorControl = ({ name, value: initialValue, onChange, onFocus, onBlur, presetColors, startOpen = false, argType }) => {
|
||||
var _a;
|
||||
let debouncedOnChange = (0, import_react.useCallback)(debounce2(onChange, 200), [onChange]), { value, realValue, updateValue, color, colorSpace, cycleColorSpace } = useColorInput(initialValue, debouncedOnChange), { presets, addPreset } = usePresets(presetColors ?? [], color, colorSpace), Picker = ColorPicker[colorSpace], readonly = !!((_a = argType == null ? void 0 : argType.table) == null ? void 0 : _a.readonly);
|
||||
return import_react.default.createElement(Wrapper, { "aria-readonly": readonly }, import_react.default.createElement(PickerTooltip, { startOpen, trigger: readonly ? null : void 0, closeOnOutsideClick: true, onVisibleChange: () => color && addPreset(color), tooltip: import_react.default.createElement(TooltipContent, null, import_react.default.createElement(Picker, { color: realValue === "transparent" ? "#000000" : realValue, onChange: updateValue, onFocus, onBlur }), presets.length > 0 && import_react.default.createElement(Swatches, null, presets.map((preset, index) => import_react.default.createElement(O3, { key: `${(preset == null ? void 0 : preset.value) || index}-${index}`, hasChrome: false, tooltip: import_react.default.createElement(Note, { note: (preset == null ? void 0 : preset.keyword) || (preset == null ? void 0 : preset.value) || "" }) }, import_react.default.createElement(Swatch, { value: (preset == null ? void 0 : preset[colorSpace]) || "", active: !!(color && preset && preset[colorSpace] && id(preset[colorSpace] || "") === id(color[colorSpace])), onClick: () => preset && updateValue(preset.value || "") }))))) }, import_react.default.createElement(Swatch, { value: realValue, style: { margin: 4 } })), import_react.default.createElement(Input, { id: getControlId(name), value, onChange: (e2) => updateValue(e2.target.value), onFocus: (e2) => e2.target.select(), readOnly: readonly, placeholder: "Choose color..." }), value ? import_react.default.createElement(ToggleIcon, { onClick: cycleColorSpace }) : null);
|
||||
};
|
||||
var Color_default = ColorControl;
|
||||
export {
|
||||
ColorControl,
|
||||
Color_default as default
|
||||
};
|
||||
//# sourceMappingURL=Color-AVL7NMMY-4DCQC45D.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,26 +0,0 @@
|
||||
import {
|
||||
DocsRenderer,
|
||||
defaultComponents
|
||||
} from "./chunk-VG4OXZTU.js";
|
||||
import "./chunk-57ZXLNKK.js";
|
||||
import "./chunk-TYV5OM3H.js";
|
||||
import "./chunk-FNTD6K4X.js";
|
||||
import "./chunk-JLBFQ2EK.js";
|
||||
import "./chunk-RM5O7ZR7.js";
|
||||
import "./chunk-RTHSENM2.js";
|
||||
import "./chunk-K46MDWSL.js";
|
||||
import "./chunk-H4EEZRGF.js";
|
||||
import "./chunk-FTMWZLOQ.js";
|
||||
import "./chunk-YO32UEEW.js";
|
||||
import "./chunk-E4Q3YXXP.js";
|
||||
import "./chunk-YYB2ULC3.js";
|
||||
import "./chunk-GF7VUYY4.js";
|
||||
import "./chunk-ZHATCZIL.js";
|
||||
import "./chunk-NDPLLWBS.js";
|
||||
import "./chunk-WIJRE3H4.js";
|
||||
import "./chunk-KEXKKQVW.js";
|
||||
export {
|
||||
DocsRenderer,
|
||||
defaultComponents
|
||||
};
|
||||
//# sourceMappingURL=DocsRenderer-3PZUHFFL-FOAYSAPL.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": [],
|
||||
"sourcesContent": [],
|
||||
"mappings": "",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
import {
|
||||
renderElement,
|
||||
unmountElement
|
||||
} from "./chunk-57ZXLNKK.js";
|
||||
import "./chunk-TYV5OM3H.js";
|
||||
import {
|
||||
AnchorMdx,
|
||||
CodeOrSourceMdx,
|
||||
Docs,
|
||||
HeadersMdx
|
||||
} from "./chunk-FNTD6K4X.js";
|
||||
import "./chunk-JLBFQ2EK.js";
|
||||
import "./chunk-RM5O7ZR7.js";
|
||||
import "./chunk-RTHSENM2.js";
|
||||
import "./chunk-K46MDWSL.js";
|
||||
import "./chunk-H4EEZRGF.js";
|
||||
import "./chunk-FTMWZLOQ.js";
|
||||
import "./chunk-YO32UEEW.js";
|
||||
import "./chunk-E4Q3YXXP.js";
|
||||
import "./chunk-YYB2ULC3.js";
|
||||
import "./chunk-GF7VUYY4.js";
|
||||
import "./chunk-ZHATCZIL.js";
|
||||
import "./chunk-NDPLLWBS.js";
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-WIJRE3H4.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@storybook/addon-docs/dist/DocsRenderer-PQXLIZUC.mjs
|
||||
var import_react = __toESM(require_react(), 1);
|
||||
var defaultComponents = { code: CodeOrSourceMdx, a: AnchorMdx, ...HeadersMdx };
|
||||
var ErrorBoundary = class extends import_react.Component {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.state = { hasError: false };
|
||||
}
|
||||
static getDerivedStateFromError() {
|
||||
return { hasError: true };
|
||||
}
|
||||
componentDidCatch(err) {
|
||||
let { showException } = this.props;
|
||||
showException(err);
|
||||
}
|
||||
render() {
|
||||
let { hasError } = this.state, { children } = this.props;
|
||||
return hasError ? null : import_react.default.createElement(import_react.default.Fragment, null, children);
|
||||
}
|
||||
};
|
||||
var DocsRenderer = class {
|
||||
constructor() {
|
||||
this.render = async (context, docsParameter, element) => {
|
||||
let components = { ...defaultComponents, ...docsParameter == null ? void 0 : docsParameter.components }, TDocs = Docs;
|
||||
return new Promise((resolve, reject) => {
|
||||
import("./@mdx-js_react.js").then(({ MDXProvider }) => renderElement(import_react.default.createElement(ErrorBoundary, { showException: reject, key: Math.random() }, import_react.default.createElement(MDXProvider, { components }, import_react.default.createElement(TDocs, { context, docsParameter }))), element)).then(() => resolve());
|
||||
});
|
||||
}, this.unmount = (element) => {
|
||||
unmountElement(element);
|
||||
};
|
||||
}
|
||||
};
|
||||
export {
|
||||
DocsRenderer,
|
||||
defaultComponents
|
||||
};
|
||||
//# sourceMappingURL=DocsRenderer-PQXLIZUC-RVPN436C.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../@storybook/addon-docs/dist/DocsRenderer-PQXLIZUC.mjs"],
|
||||
"sourcesContent": ["import React, { Component } from 'react';\nimport { renderElement, unmountElement } from '@storybook/react-dom-shim';\nimport { CodeOrSourceMdx, AnchorMdx, HeadersMdx, Docs } from '@storybook/addon-docs/blocks';\n\nvar defaultComponents={code:CodeOrSourceMdx,a:AnchorMdx,...HeadersMdx},ErrorBoundary=class extends Component{constructor(){super(...arguments);this.state={hasError:!1};}static getDerivedStateFromError(){return {hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err);}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:React.createElement(React.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=Docs;return new Promise((resolve,reject)=>{import('@mdx-js/react').then(({MDXProvider})=>renderElement(React.createElement(ErrorBoundary,{showException:reject,key:Math.random()},React.createElement(MDXProvider,{components},React.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve());})},this.unmount=element=>{unmountElement(element);};}};\n\nexport { DocsRenderer, defaultComponents };\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mBAAiC;AAIjC,IAAI,oBAAkB,EAAC,MAAK,iBAAgB,GAAE,WAAU,GAAG,WAAU;AAArE,IAAuE,gBAAc,cAAc,uBAAS;AAAA,EAAC,cAAa;AAAC,UAAM,GAAG,SAAS;AAAE,SAAK,QAAM,EAAC,UAAS,MAAE;AAAA,EAAE;AAAA,EAAC,OAAO,2BAA0B;AAAC,WAAO,EAAC,UAAS,KAAE;AAAA,EAAC;AAAA,EAAC,kBAAkB,KAAI;AAAC,QAAG,EAAC,cAAa,IAAE,KAAK;AAAM,kBAAc,GAAG;AAAA,EAAE;AAAA,EAAC,SAAQ;AAAC,QAAG,EAAC,SAAQ,IAAE,KAAK,OAAM,EAAC,SAAQ,IAAE,KAAK;AAAM,WAAO,WAAS,OAAK,aAAAA,QAAM,cAAc,aAAAA,QAAM,UAAS,MAAK,QAAQ;AAAA,EAAC;AAAC;AAAxa,IAA0a,eAAa,MAAK;AAAA,EAAC,cAAa;AAAC,SAAK,SAAO,OAAM,SAAQ,eAAc,YAAU;AAAC,UAAI,aAAW,EAAC,GAAG,mBAAkB,GAAG,+CAAe,WAAU,GAAE,QAAM;AAAK,aAAO,IAAI,QAAQ,CAAC,SAAQ,WAAS;AAAC,eAAO,oBAAe,EAAE,KAAK,CAAC,EAAC,YAAW,MAAI,cAAc,aAAAA,QAAM,cAAc,eAAc,EAAC,eAAc,QAAO,KAAI,KAAK,OAAO,EAAC,GAAE,aAAAA,QAAM,cAAc,aAAY,EAAC,WAAU,GAAE,aAAAA,QAAM,cAAc,OAAM,EAAC,SAAQ,cAAa,CAAC,CAAC,CAAC,GAAE,OAAO,CAAC,EAAE,KAAK,MAAI,QAAQ,CAAC;AAAA,MAAE,CAAC;AAAA,IAAC,GAAE,KAAK,UAAQ,aAAS;AAAC,qBAAe,OAAO;AAAA,IAAE;AAAA,EAAE;AAAC;",
|
||||
"names": ["React"]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,39 +0,0 @@
|
||||
import {
|
||||
require_debounce
|
||||
} from "./chunk-RHWKDMUE.js";
|
||||
import {
|
||||
require_isObject
|
||||
} from "./chunk-LJMOOM7L.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/throttle.js
|
||||
var require_throttle = __commonJS({
|
||||
"node_modules/lodash/throttle.js"(exports, module) {
|
||||
var debounce = require_debounce();
|
||||
var isObject = require_isObject();
|
||||
var FUNC_ERROR_TEXT = "Expected a function";
|
||||
function throttle(func, wait, options) {
|
||||
var leading = true, trailing = true;
|
||||
if (typeof func != "function") {
|
||||
throw new TypeError(FUNC_ERROR_TEXT);
|
||||
}
|
||||
if (isObject(options)) {
|
||||
leading = "leading" in options ? !!options.leading : leading;
|
||||
trailing = "trailing" in options ? !!options.trailing : trailing;
|
||||
}
|
||||
return debounce(func, wait, {
|
||||
"leading": leading,
|
||||
"maxWait": wait,
|
||||
"trailing": trailing
|
||||
});
|
||||
}
|
||||
module.exports = throttle;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_throttle
|
||||
};
|
||||
//# sourceMappingURL=chunk-2A7TYURX.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/throttle.js"],
|
||||
"sourcesContent": ["var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],
|
||||
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,QAAI,WAAW;AAAf,QACI,WAAW;AAGf,QAAI,kBAAkB;AA8CtB,aAAS,SAAS,MAAM,MAAM,SAAS;AACrC,UAAI,UAAU,MACV,WAAW;AAEf,UAAI,OAAO,QAAQ,YAAY;AAC7B,cAAM,IAAI,UAAU,eAAe;AAAA,MACrC;AACA,UAAI,SAAS,OAAO,GAAG;AACrB,kBAAU,aAAa,UAAU,CAAC,CAAC,QAAQ,UAAU;AACrD,mBAAW,cAAc,UAAU,CAAC,CAAC,QAAQ,WAAW;AAAA,MAC1D;AACA,aAAO,SAAS,MAAM,MAAM;AAAA,QAC1B,WAAW;AAAA,QACX,WAAW;AAAA,QACX,YAAY;AAAA,MACd,CAAC;AAAA,IACH;AAEA,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
import {
|
||||
require_baseIsEqual
|
||||
} from "./chunk-6Q6IFNG3.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/isEqual.js
|
||||
var require_isEqual = __commonJS({
|
||||
"node_modules/lodash/isEqual.js"(exports, module) {
|
||||
var baseIsEqual = require_baseIsEqual();
|
||||
function isEqual(value, other) {
|
||||
return baseIsEqual(value, other);
|
||||
}
|
||||
module.exports = isEqual;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_isEqual
|
||||
};
|
||||
//# sourceMappingURL=chunk-2HKPRQOD.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/isEqual.js"],
|
||||
"sourcesContent": ["var baseIsEqual = require('./_baseIsEqual');\n\n/**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\nfunction isEqual(value, other) {\n return baseIsEqual(value, other);\n}\n\nmodule.exports = isEqual;\n"],
|
||||
"mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAI,cAAc;AA8BlB,aAAS,QAAQ,OAAO,OAAO;AAC7B,aAAO,YAAY,OAAO,KAAK;AAAA,IACjC;AAEA,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,148 +0,0 @@
|
||||
import {
|
||||
require_toString
|
||||
} from "./chunk-3NBNF4EG.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_baseSlice.js
|
||||
var require_baseSlice = __commonJS({
|
||||
"node_modules/lodash/_baseSlice.js"(exports, module) {
|
||||
function baseSlice(array, start, end) {
|
||||
var index = -1, length = array.length;
|
||||
if (start < 0) {
|
||||
start = -start > length ? 0 : length + start;
|
||||
}
|
||||
end = end > length ? length : end;
|
||||
if (end < 0) {
|
||||
end += length;
|
||||
}
|
||||
length = start > end ? 0 : end - start >>> 0;
|
||||
start >>>= 0;
|
||||
var result = Array(length);
|
||||
while (++index < length) {
|
||||
result[index] = array[index + start];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
module.exports = baseSlice;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_castSlice.js
|
||||
var require_castSlice = __commonJS({
|
||||
"node_modules/lodash/_castSlice.js"(exports, module) {
|
||||
var baseSlice = require_baseSlice();
|
||||
function castSlice(array, start, end) {
|
||||
var length = array.length;
|
||||
end = end === void 0 ? length : end;
|
||||
return !start && end >= length ? array : baseSlice(array, start, end);
|
||||
}
|
||||
module.exports = castSlice;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_hasUnicode.js
|
||||
var require_hasUnicode = __commonJS({
|
||||
"node_modules/lodash/_hasUnicode.js"(exports, module) {
|
||||
var rsAstralRange = "\\ud800-\\udfff";
|
||||
var rsComboMarksRange = "\\u0300-\\u036f";
|
||||
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
||||
var rsComboSymbolsRange = "\\u20d0-\\u20ff";
|
||||
var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
||||
var rsVarRange = "\\ufe0e\\ufe0f";
|
||||
var rsZWJ = "\\u200d";
|
||||
var reHasUnicode = RegExp("[" + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + "]");
|
||||
function hasUnicode(string) {
|
||||
return reHasUnicode.test(string);
|
||||
}
|
||||
module.exports = hasUnicode;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_asciiToArray.js
|
||||
var require_asciiToArray = __commonJS({
|
||||
"node_modules/lodash/_asciiToArray.js"(exports, module) {
|
||||
function asciiToArray(string) {
|
||||
return string.split("");
|
||||
}
|
||||
module.exports = asciiToArray;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_unicodeToArray.js
|
||||
var require_unicodeToArray = __commonJS({
|
||||
"node_modules/lodash/_unicodeToArray.js"(exports, module) {
|
||||
var rsAstralRange = "\\ud800-\\udfff";
|
||||
var rsComboMarksRange = "\\u0300-\\u036f";
|
||||
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
||||
var rsComboSymbolsRange = "\\u20d0-\\u20ff";
|
||||
var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
||||
var rsVarRange = "\\ufe0e\\ufe0f";
|
||||
var rsAstral = "[" + rsAstralRange + "]";
|
||||
var rsCombo = "[" + rsComboRange + "]";
|
||||
var rsFitz = "\\ud83c[\\udffb-\\udfff]";
|
||||
var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
||||
var rsNonAstral = "[^" + rsAstralRange + "]";
|
||||
var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
|
||||
var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
|
||||
var rsZWJ = "\\u200d";
|
||||
var reOptMod = rsModifier + "?";
|
||||
var rsOptVar = "[" + rsVarRange + "]?";
|
||||
var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
||||
var rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
||||
var rsSymbol = "(?:" + [rsNonAstral + rsCombo + "?", rsCombo, rsRegional, rsSurrPair, rsAstral].join("|") + ")";
|
||||
var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
|
||||
function unicodeToArray(string) {
|
||||
return string.match(reUnicode) || [];
|
||||
}
|
||||
module.exports = unicodeToArray;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_stringToArray.js
|
||||
var require_stringToArray = __commonJS({
|
||||
"node_modules/lodash/_stringToArray.js"(exports, module) {
|
||||
var asciiToArray = require_asciiToArray();
|
||||
var hasUnicode = require_hasUnicode();
|
||||
var unicodeToArray = require_unicodeToArray();
|
||||
function stringToArray(string) {
|
||||
return hasUnicode(string) ? unicodeToArray(string) : asciiToArray(string);
|
||||
}
|
||||
module.exports = stringToArray;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_createCaseFirst.js
|
||||
var require_createCaseFirst = __commonJS({
|
||||
"node_modules/lodash/_createCaseFirst.js"(exports, module) {
|
||||
var castSlice = require_castSlice();
|
||||
var hasUnicode = require_hasUnicode();
|
||||
var stringToArray = require_stringToArray();
|
||||
var toString = require_toString();
|
||||
function createCaseFirst(methodName) {
|
||||
return function(string) {
|
||||
string = toString(string);
|
||||
var strSymbols = hasUnicode(string) ? stringToArray(string) : void 0;
|
||||
var chr = strSymbols ? strSymbols[0] : string.charAt(0);
|
||||
var trailing = strSymbols ? castSlice(strSymbols, 1).join("") : string.slice(1);
|
||||
return chr[methodName]() + trailing;
|
||||
};
|
||||
}
|
||||
module.exports = createCaseFirst;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/upperFirst.js
|
||||
var require_upperFirst = __commonJS({
|
||||
"node_modules/lodash/upperFirst.js"(exports, module) {
|
||||
var createCaseFirst = require_createCaseFirst();
|
||||
var upperFirst = createCaseFirst("toUpperCase");
|
||||
module.exports = upperFirst;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_upperFirst
|
||||
};
|
||||
//# sourceMappingURL=chunk-3BMTL3O2.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,70 +0,0 @@
|
||||
import {
|
||||
require_isArray
|
||||
} from "./chunk-V2ZIA3AG.js";
|
||||
import {
|
||||
require_isSymbol
|
||||
} from "./chunk-L7AFSFRA.js";
|
||||
import {
|
||||
require_Symbol
|
||||
} from "./chunk-FMVO6WZI.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_arrayMap.js
|
||||
var require_arrayMap = __commonJS({
|
||||
"node_modules/lodash/_arrayMap.js"(exports, module) {
|
||||
function arrayMap(array, iteratee) {
|
||||
var index = -1, length = array == null ? 0 : array.length, result = Array(length);
|
||||
while (++index < length) {
|
||||
result[index] = iteratee(array[index], index, array);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
module.exports = arrayMap;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseToString.js
|
||||
var require_baseToString = __commonJS({
|
||||
"node_modules/lodash/_baseToString.js"(exports, module) {
|
||||
var Symbol = require_Symbol();
|
||||
var arrayMap = require_arrayMap();
|
||||
var isArray = require_isArray();
|
||||
var isSymbol = require_isSymbol();
|
||||
var INFINITY = 1 / 0;
|
||||
var symbolProto = Symbol ? Symbol.prototype : void 0;
|
||||
var symbolToString = symbolProto ? symbolProto.toString : void 0;
|
||||
function baseToString(value) {
|
||||
if (typeof value == "string") {
|
||||
return value;
|
||||
}
|
||||
if (isArray(value)) {
|
||||
return arrayMap(value, baseToString) + "";
|
||||
}
|
||||
if (isSymbol(value)) {
|
||||
return symbolToString ? symbolToString.call(value) : "";
|
||||
}
|
||||
var result = value + "";
|
||||
return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
||||
}
|
||||
module.exports = baseToString;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/toString.js
|
||||
var require_toString = __commonJS({
|
||||
"node_modules/lodash/toString.js"(exports, module) {
|
||||
var baseToString = require_baseToString();
|
||||
function toString(value) {
|
||||
return value == null ? "" : baseToString(value);
|
||||
}
|
||||
module.exports = toString;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_arrayMap,
|
||||
require_toString
|
||||
};
|
||||
//# sourceMappingURL=chunk-3NBNF4EG.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/_arrayMap.js", "../../../../../lodash/_baseToString.js", "../../../../../lodash/toString.js"],
|
||||
"sourcesContent": ["/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n", "var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n", "var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AASA,aAAS,SAAS,OAAO,UAAU;AACjC,UAAI,QAAQ,IACR,SAAS,SAAS,OAAO,IAAI,MAAM,QACnC,SAAS,MAAM,MAAM;AAEzB,aAAO,EAAE,QAAQ,QAAQ;AACvB,eAAO,KAAK,IAAI,SAAS,MAAM,KAAK,GAAG,OAAO,KAAK;AAAA,MACrD;AACA,aAAO;AAAA,IACT;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACpBjB;AAAA;AAAA,QAAI,SAAS;AAAb,QACI,WAAW;AADf,QAEI,UAAU;AAFd,QAGI,WAAW;AAGf,QAAI,WAAW,IAAI;AAGnB,QAAI,cAAc,SAAS,OAAO,YAAY;AAA9C,QACI,iBAAiB,cAAc,YAAY,WAAW;AAU1D,aAAS,aAAa,OAAO;AAE3B,UAAI,OAAO,SAAS,UAAU;AAC5B,eAAO;AAAA,MACT;AACA,UAAI,QAAQ,KAAK,GAAG;AAElB,eAAO,SAAS,OAAO,YAAY,IAAI;AAAA,MACzC;AACA,UAAI,SAAS,KAAK,GAAG;AACnB,eAAO,iBAAiB,eAAe,KAAK,KAAK,IAAI;AAAA,MACvD;AACA,UAAI,SAAU,QAAQ;AACtB,aAAQ,UAAU,OAAQ,IAAI,SAAU,CAAC,WAAY,OAAO;AAAA,IAC9D;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACpCjB;AAAA;AAAA,QAAI,eAAe;AAuBnB,aAAS,SAAS,OAAO;AACvB,aAAO,SAAS,OAAO,KAAK,aAAa,KAAK;AAAA,IAChD;AAEA,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,271 +0,0 @@
|
||||
import {
|
||||
require_overRest,
|
||||
require_setToString
|
||||
} from "./chunk-DJFXXVH6.js";
|
||||
import {
|
||||
require_isPlainObject
|
||||
} from "./chunk-Y6FQDQQ2.js";
|
||||
import {
|
||||
require_cloneBuffer,
|
||||
require_cloneTypedArray,
|
||||
require_copyArray,
|
||||
require_copyObject,
|
||||
require_initCloneObject
|
||||
} from "./chunk-KNVPX2EF.js";
|
||||
import {
|
||||
require_keysIn
|
||||
} from "./chunk-5TYTZAF2.js";
|
||||
import {
|
||||
require_baseFor
|
||||
} from "./chunk-4O4FP57Y.js";
|
||||
import {
|
||||
require_identity
|
||||
} from "./chunk-P43QBNJ2.js";
|
||||
import {
|
||||
require_baseAssignValue
|
||||
} from "./chunk-JLPG4W6G.js";
|
||||
import {
|
||||
require_Stack,
|
||||
require_isArrayLike,
|
||||
require_isBuffer,
|
||||
require_isTypedArray
|
||||
} from "./chunk-QAGLP4WU.js";
|
||||
import {
|
||||
require_isArguments,
|
||||
require_isIndex
|
||||
} from "./chunk-KAVMBZUT.js";
|
||||
import {
|
||||
require_eq
|
||||
} from "./chunk-4YXVX72G.js";
|
||||
import {
|
||||
require_isFunction
|
||||
} from "./chunk-BP6K5E6K.js";
|
||||
import {
|
||||
require_isArray
|
||||
} from "./chunk-V2ZIA3AG.js";
|
||||
import {
|
||||
require_isObject
|
||||
} from "./chunk-LJMOOM7L.js";
|
||||
import {
|
||||
require_isObjectLike
|
||||
} from "./chunk-LSIB72U6.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_assignMergeValue.js
|
||||
var require_assignMergeValue = __commonJS({
|
||||
"node_modules/lodash/_assignMergeValue.js"(exports, module) {
|
||||
var baseAssignValue = require_baseAssignValue();
|
||||
var eq = require_eq();
|
||||
function assignMergeValue(object, key, value) {
|
||||
if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) {
|
||||
baseAssignValue(object, key, value);
|
||||
}
|
||||
}
|
||||
module.exports = assignMergeValue;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/isArrayLikeObject.js
|
||||
var require_isArrayLikeObject = __commonJS({
|
||||
"node_modules/lodash/isArrayLikeObject.js"(exports, module) {
|
||||
var isArrayLike = require_isArrayLike();
|
||||
var isObjectLike = require_isObjectLike();
|
||||
function isArrayLikeObject(value) {
|
||||
return isObjectLike(value) && isArrayLike(value);
|
||||
}
|
||||
module.exports = isArrayLikeObject;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_safeGet.js
|
||||
var require_safeGet = __commonJS({
|
||||
"node_modules/lodash/_safeGet.js"(exports, module) {
|
||||
function safeGet(object, key) {
|
||||
if (key === "constructor" && typeof object[key] === "function") {
|
||||
return;
|
||||
}
|
||||
if (key == "__proto__") {
|
||||
return;
|
||||
}
|
||||
return object[key];
|
||||
}
|
||||
module.exports = safeGet;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/toPlainObject.js
|
||||
var require_toPlainObject = __commonJS({
|
||||
"node_modules/lodash/toPlainObject.js"(exports, module) {
|
||||
var copyObject = require_copyObject();
|
||||
var keysIn = require_keysIn();
|
||||
function toPlainObject(value) {
|
||||
return copyObject(value, keysIn(value));
|
||||
}
|
||||
module.exports = toPlainObject;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseMergeDeep.js
|
||||
var require_baseMergeDeep = __commonJS({
|
||||
"node_modules/lodash/_baseMergeDeep.js"(exports, module) {
|
||||
var assignMergeValue = require_assignMergeValue();
|
||||
var cloneBuffer = require_cloneBuffer();
|
||||
var cloneTypedArray = require_cloneTypedArray();
|
||||
var copyArray = require_copyArray();
|
||||
var initCloneObject = require_initCloneObject();
|
||||
var isArguments = require_isArguments();
|
||||
var isArray = require_isArray();
|
||||
var isArrayLikeObject = require_isArrayLikeObject();
|
||||
var isBuffer = require_isBuffer();
|
||||
var isFunction = require_isFunction();
|
||||
var isObject = require_isObject();
|
||||
var isPlainObject = require_isPlainObject();
|
||||
var isTypedArray = require_isTypedArray();
|
||||
var safeGet = require_safeGet();
|
||||
var toPlainObject = require_toPlainObject();
|
||||
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
||||
var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
||||
if (stacked) {
|
||||
assignMergeValue(object, key, stacked);
|
||||
return;
|
||||
}
|
||||
var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
||||
var isCommon = newValue === void 0;
|
||||
if (isCommon) {
|
||||
var isArr = isArray(srcValue), isBuff = !isArr && isBuffer(srcValue), isTyped = !isArr && !isBuff && isTypedArray(srcValue);
|
||||
newValue = srcValue;
|
||||
if (isArr || isBuff || isTyped) {
|
||||
if (isArray(objValue)) {
|
||||
newValue = objValue;
|
||||
} else if (isArrayLikeObject(objValue)) {
|
||||
newValue = copyArray(objValue);
|
||||
} else if (isBuff) {
|
||||
isCommon = false;
|
||||
newValue = cloneBuffer(srcValue, true);
|
||||
} else if (isTyped) {
|
||||
isCommon = false;
|
||||
newValue = cloneTypedArray(srcValue, true);
|
||||
} else {
|
||||
newValue = [];
|
||||
}
|
||||
} else if (isPlainObject(srcValue) || isArguments(srcValue)) {
|
||||
newValue = objValue;
|
||||
if (isArguments(objValue)) {
|
||||
newValue = toPlainObject(objValue);
|
||||
} else if (!isObject(objValue) || isFunction(objValue)) {
|
||||
newValue = initCloneObject(srcValue);
|
||||
}
|
||||
} else {
|
||||
isCommon = false;
|
||||
}
|
||||
}
|
||||
if (isCommon) {
|
||||
stack.set(srcValue, newValue);
|
||||
mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
||||
stack["delete"](srcValue);
|
||||
}
|
||||
assignMergeValue(object, key, newValue);
|
||||
}
|
||||
module.exports = baseMergeDeep;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseMerge.js
|
||||
var require_baseMerge = __commonJS({
|
||||
"node_modules/lodash/_baseMerge.js"(exports, module) {
|
||||
var Stack = require_Stack();
|
||||
var assignMergeValue = require_assignMergeValue();
|
||||
var baseFor = require_baseFor();
|
||||
var baseMergeDeep = require_baseMergeDeep();
|
||||
var isObject = require_isObject();
|
||||
var keysIn = require_keysIn();
|
||||
var safeGet = require_safeGet();
|
||||
function baseMerge(object, source, srcIndex, customizer, stack) {
|
||||
if (object === source) {
|
||||
return;
|
||||
}
|
||||
baseFor(source, function(srcValue, key) {
|
||||
stack || (stack = new Stack());
|
||||
if (isObject(srcValue)) {
|
||||
baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
||||
} else {
|
||||
var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
||||
if (newValue === void 0) {
|
||||
newValue = srcValue;
|
||||
}
|
||||
assignMergeValue(object, key, newValue);
|
||||
}
|
||||
}, keysIn);
|
||||
}
|
||||
module.exports = baseMerge;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseRest.js
|
||||
var require_baseRest = __commonJS({
|
||||
"node_modules/lodash/_baseRest.js"(exports, module) {
|
||||
var identity = require_identity();
|
||||
var overRest = require_overRest();
|
||||
var setToString = require_setToString();
|
||||
function baseRest(func, start) {
|
||||
return setToString(overRest(func, start, identity), func + "");
|
||||
}
|
||||
module.exports = baseRest;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_isIterateeCall.js
|
||||
var require_isIterateeCall = __commonJS({
|
||||
"node_modules/lodash/_isIterateeCall.js"(exports, module) {
|
||||
var eq = require_eq();
|
||||
var isArrayLike = require_isArrayLike();
|
||||
var isIndex = require_isIndex();
|
||||
var isObject = require_isObject();
|
||||
function isIterateeCall(value, index, object) {
|
||||
if (!isObject(object)) {
|
||||
return false;
|
||||
}
|
||||
var type = typeof index;
|
||||
if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) {
|
||||
return eq(object[index], value);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
module.exports = isIterateeCall;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_createAssigner.js
|
||||
var require_createAssigner = __commonJS({
|
||||
"node_modules/lodash/_createAssigner.js"(exports, module) {
|
||||
var baseRest = require_baseRest();
|
||||
var isIterateeCall = require_isIterateeCall();
|
||||
function createAssigner(assigner) {
|
||||
return baseRest(function(object, sources) {
|
||||
var index = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
||||
customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
||||
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
||||
customizer = length < 3 ? void 0 : customizer;
|
||||
length = 1;
|
||||
}
|
||||
object = Object(object);
|
||||
while (++index < length) {
|
||||
var source = sources[index];
|
||||
if (source) {
|
||||
assigner(object, source, index, customizer);
|
||||
}
|
||||
}
|
||||
return object;
|
||||
});
|
||||
}
|
||||
module.exports = createAssigner;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_baseMerge,
|
||||
require_createAssigner
|
||||
};
|
||||
//# sourceMappingURL=chunk-3V7DD6PY.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,380 +0,0 @@
|
||||
import {
|
||||
require_toString
|
||||
} from "./chunk-3NBNF4EG.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_arrayReduce.js
|
||||
var require_arrayReduce = __commonJS({
|
||||
"node_modules/lodash/_arrayReduce.js"(exports, module) {
|
||||
function arrayReduce(array, iteratee, accumulator, initAccum) {
|
||||
var index = -1, length = array == null ? 0 : array.length;
|
||||
if (initAccum && length) {
|
||||
accumulator = array[++index];
|
||||
}
|
||||
while (++index < length) {
|
||||
accumulator = iteratee(accumulator, array[index], index, array);
|
||||
}
|
||||
return accumulator;
|
||||
}
|
||||
module.exports = arrayReduce;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_basePropertyOf.js
|
||||
var require_basePropertyOf = __commonJS({
|
||||
"node_modules/lodash/_basePropertyOf.js"(exports, module) {
|
||||
function basePropertyOf(object) {
|
||||
return function(key) {
|
||||
return object == null ? void 0 : object[key];
|
||||
};
|
||||
}
|
||||
module.exports = basePropertyOf;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_deburrLetter.js
|
||||
var require_deburrLetter = __commonJS({
|
||||
"node_modules/lodash/_deburrLetter.js"(exports, module) {
|
||||
var basePropertyOf = require_basePropertyOf();
|
||||
var deburredLetters = {
|
||||
// Latin-1 Supplement block.
|
||||
"À": "A",
|
||||
"Á": "A",
|
||||
"Â": "A",
|
||||
"Ã": "A",
|
||||
"Ä": "A",
|
||||
"Å": "A",
|
||||
"à": "a",
|
||||
"á": "a",
|
||||
"â": "a",
|
||||
"ã": "a",
|
||||
"ä": "a",
|
||||
"å": "a",
|
||||
"Ç": "C",
|
||||
"ç": "c",
|
||||
"Ð": "D",
|
||||
"ð": "d",
|
||||
"È": "E",
|
||||
"É": "E",
|
||||
"Ê": "E",
|
||||
"Ë": "E",
|
||||
"è": "e",
|
||||
"é": "e",
|
||||
"ê": "e",
|
||||
"ë": "e",
|
||||
"Ì": "I",
|
||||
"Í": "I",
|
||||
"Î": "I",
|
||||
"Ï": "I",
|
||||
"ì": "i",
|
||||
"í": "i",
|
||||
"î": "i",
|
||||
"ï": "i",
|
||||
"Ñ": "N",
|
||||
"ñ": "n",
|
||||
"Ò": "O",
|
||||
"Ó": "O",
|
||||
"Ô": "O",
|
||||
"Õ": "O",
|
||||
"Ö": "O",
|
||||
"Ø": "O",
|
||||
"ò": "o",
|
||||
"ó": "o",
|
||||
"ô": "o",
|
||||
"õ": "o",
|
||||
"ö": "o",
|
||||
"ø": "o",
|
||||
"Ù": "U",
|
||||
"Ú": "U",
|
||||
"Û": "U",
|
||||
"Ü": "U",
|
||||
"ù": "u",
|
||||
"ú": "u",
|
||||
"û": "u",
|
||||
"ü": "u",
|
||||
"Ý": "Y",
|
||||
"ý": "y",
|
||||
"ÿ": "y",
|
||||
"Æ": "Ae",
|
||||
"æ": "ae",
|
||||
"Þ": "Th",
|
||||
"þ": "th",
|
||||
"ß": "ss",
|
||||
// Latin Extended-A block.
|
||||
"Ā": "A",
|
||||
"Ă": "A",
|
||||
"Ą": "A",
|
||||
"ā": "a",
|
||||
"ă": "a",
|
||||
"ą": "a",
|
||||
"Ć": "C",
|
||||
"Ĉ": "C",
|
||||
"Ċ": "C",
|
||||
"Č": "C",
|
||||
"ć": "c",
|
||||
"ĉ": "c",
|
||||
"ċ": "c",
|
||||
"č": "c",
|
||||
"Ď": "D",
|
||||
"Đ": "D",
|
||||
"ď": "d",
|
||||
"đ": "d",
|
||||
"Ē": "E",
|
||||
"Ĕ": "E",
|
||||
"Ė": "E",
|
||||
"Ę": "E",
|
||||
"Ě": "E",
|
||||
"ē": "e",
|
||||
"ĕ": "e",
|
||||
"ė": "e",
|
||||
"ę": "e",
|
||||
"ě": "e",
|
||||
"Ĝ": "G",
|
||||
"Ğ": "G",
|
||||
"Ġ": "G",
|
||||
"Ģ": "G",
|
||||
"ĝ": "g",
|
||||
"ğ": "g",
|
||||
"ġ": "g",
|
||||
"ģ": "g",
|
||||
"Ĥ": "H",
|
||||
"Ħ": "H",
|
||||
"ĥ": "h",
|
||||
"ħ": "h",
|
||||
"Ĩ": "I",
|
||||
"Ī": "I",
|
||||
"Ĭ": "I",
|
||||
"Į": "I",
|
||||
"İ": "I",
|
||||
"ĩ": "i",
|
||||
"ī": "i",
|
||||
"ĭ": "i",
|
||||
"į": "i",
|
||||
"ı": "i",
|
||||
"Ĵ": "J",
|
||||
"ĵ": "j",
|
||||
"Ķ": "K",
|
||||
"ķ": "k",
|
||||
"ĸ": "k",
|
||||
"Ĺ": "L",
|
||||
"Ļ": "L",
|
||||
"Ľ": "L",
|
||||
"Ŀ": "L",
|
||||
"Ł": "L",
|
||||
"ĺ": "l",
|
||||
"ļ": "l",
|
||||
"ľ": "l",
|
||||
"ŀ": "l",
|
||||
"ł": "l",
|
||||
"Ń": "N",
|
||||
"Ņ": "N",
|
||||
"Ň": "N",
|
||||
"Ŋ": "N",
|
||||
"ń": "n",
|
||||
"ņ": "n",
|
||||
"ň": "n",
|
||||
"ŋ": "n",
|
||||
"Ō": "O",
|
||||
"Ŏ": "O",
|
||||
"Ő": "O",
|
||||
"ō": "o",
|
||||
"ŏ": "o",
|
||||
"ő": "o",
|
||||
"Ŕ": "R",
|
||||
"Ŗ": "R",
|
||||
"Ř": "R",
|
||||
"ŕ": "r",
|
||||
"ŗ": "r",
|
||||
"ř": "r",
|
||||
"Ś": "S",
|
||||
"Ŝ": "S",
|
||||
"Ş": "S",
|
||||
"Š": "S",
|
||||
"ś": "s",
|
||||
"ŝ": "s",
|
||||
"ş": "s",
|
||||
"š": "s",
|
||||
"Ţ": "T",
|
||||
"Ť": "T",
|
||||
"Ŧ": "T",
|
||||
"ţ": "t",
|
||||
"ť": "t",
|
||||
"ŧ": "t",
|
||||
"Ũ": "U",
|
||||
"Ū": "U",
|
||||
"Ŭ": "U",
|
||||
"Ů": "U",
|
||||
"Ű": "U",
|
||||
"Ų": "U",
|
||||
"ũ": "u",
|
||||
"ū": "u",
|
||||
"ŭ": "u",
|
||||
"ů": "u",
|
||||
"ű": "u",
|
||||
"ų": "u",
|
||||
"Ŵ": "W",
|
||||
"ŵ": "w",
|
||||
"Ŷ": "Y",
|
||||
"ŷ": "y",
|
||||
"Ÿ": "Y",
|
||||
"Ź": "Z",
|
||||
"Ż": "Z",
|
||||
"Ž": "Z",
|
||||
"ź": "z",
|
||||
"ż": "z",
|
||||
"ž": "z",
|
||||
"IJ": "IJ",
|
||||
"ij": "ij",
|
||||
"Œ": "Oe",
|
||||
"œ": "oe",
|
||||
"ʼn": "'n",
|
||||
"ſ": "s"
|
||||
};
|
||||
var deburrLetter = basePropertyOf(deburredLetters);
|
||||
module.exports = deburrLetter;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/deburr.js
|
||||
var require_deburr = __commonJS({
|
||||
"node_modules/lodash/deburr.js"(exports, module) {
|
||||
var deburrLetter = require_deburrLetter();
|
||||
var toString = require_toString();
|
||||
var reLatin = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g;
|
||||
var rsComboMarksRange = "\\u0300-\\u036f";
|
||||
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
||||
var rsComboSymbolsRange = "\\u20d0-\\u20ff";
|
||||
var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
||||
var rsCombo = "[" + rsComboRange + "]";
|
||||
var reComboMark = RegExp(rsCombo, "g");
|
||||
function deburr(string) {
|
||||
string = toString(string);
|
||||
return string && string.replace(reLatin, deburrLetter).replace(reComboMark, "");
|
||||
}
|
||||
module.exports = deburr;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_asciiWords.js
|
||||
var require_asciiWords = __commonJS({
|
||||
"node_modules/lodash/_asciiWords.js"(exports, module) {
|
||||
var reAsciiWord = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
|
||||
function asciiWords(string) {
|
||||
return string.match(reAsciiWord) || [];
|
||||
}
|
||||
module.exports = asciiWords;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_hasUnicodeWord.js
|
||||
var require_hasUnicodeWord = __commonJS({
|
||||
"node_modules/lodash/_hasUnicodeWord.js"(exports, module) {
|
||||
var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
|
||||
function hasUnicodeWord(string) {
|
||||
return reHasUnicodeWord.test(string);
|
||||
}
|
||||
module.exports = hasUnicodeWord;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_unicodeWords.js
|
||||
var require_unicodeWords = __commonJS({
|
||||
"node_modules/lodash/_unicodeWords.js"(exports, module) {
|
||||
var rsAstralRange = "\\ud800-\\udfff";
|
||||
var rsComboMarksRange = "\\u0300-\\u036f";
|
||||
var reComboHalfMarksRange = "\\ufe20-\\ufe2f";
|
||||
var rsComboSymbolsRange = "\\u20d0-\\u20ff";
|
||||
var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange;
|
||||
var rsDingbatRange = "\\u2700-\\u27bf";
|
||||
var rsLowerRange = "a-z\\xdf-\\xf6\\xf8-\\xff";
|
||||
var rsMathOpRange = "\\xac\\xb1\\xd7\\xf7";
|
||||
var rsNonCharRange = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf";
|
||||
var rsPunctuationRange = "\\u2000-\\u206f";
|
||||
var rsSpaceRange = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000";
|
||||
var rsUpperRange = "A-Z\\xc0-\\xd6\\xd8-\\xde";
|
||||
var rsVarRange = "\\ufe0e\\ufe0f";
|
||||
var rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;
|
||||
var rsApos = "['’]";
|
||||
var rsBreak = "[" + rsBreakRange + "]";
|
||||
var rsCombo = "[" + rsComboRange + "]";
|
||||
var rsDigits = "\\d+";
|
||||
var rsDingbat = "[" + rsDingbatRange + "]";
|
||||
var rsLower = "[" + rsLowerRange + "]";
|
||||
var rsMisc = "[^" + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + "]";
|
||||
var rsFitz = "\\ud83c[\\udffb-\\udfff]";
|
||||
var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
|
||||
var rsNonAstral = "[^" + rsAstralRange + "]";
|
||||
var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
|
||||
var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
|
||||
var rsUpper = "[" + rsUpperRange + "]";
|
||||
var rsZWJ = "\\u200d";
|
||||
var rsMiscLower = "(?:" + rsLower + "|" + rsMisc + ")";
|
||||
var rsMiscUpper = "(?:" + rsUpper + "|" + rsMisc + ")";
|
||||
var rsOptContrLower = "(?:" + rsApos + "(?:d|ll|m|re|s|t|ve))?";
|
||||
var rsOptContrUpper = "(?:" + rsApos + "(?:D|LL|M|RE|S|T|VE))?";
|
||||
var reOptMod = rsModifier + "?";
|
||||
var rsOptVar = "[" + rsVarRange + "]?";
|
||||
var rsOptJoin = "(?:" + rsZWJ + "(?:" + [rsNonAstral, rsRegional, rsSurrPair].join("|") + ")" + rsOptVar + reOptMod + ")*";
|
||||
var rsOrdLower = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])";
|
||||
var rsOrdUpper = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])";
|
||||
var rsSeq = rsOptVar + reOptMod + rsOptJoin;
|
||||
var rsEmoji = "(?:" + [rsDingbat, rsRegional, rsSurrPair].join("|") + ")" + rsSeq;
|
||||
var reUnicodeWord = RegExp([
|
||||
rsUpper + "?" + rsLower + "+" + rsOptContrLower + "(?=" + [rsBreak, rsUpper, "$"].join("|") + ")",
|
||||
rsMiscUpper + "+" + rsOptContrUpper + "(?=" + [rsBreak, rsUpper + rsMiscLower, "$"].join("|") + ")",
|
||||
rsUpper + "?" + rsMiscLower + "+" + rsOptContrLower,
|
||||
rsUpper + "+" + rsOptContrUpper,
|
||||
rsOrdUpper,
|
||||
rsOrdLower,
|
||||
rsDigits,
|
||||
rsEmoji
|
||||
].join("|"), "g");
|
||||
function unicodeWords(string) {
|
||||
return string.match(reUnicodeWord) || [];
|
||||
}
|
||||
module.exports = unicodeWords;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/words.js
|
||||
var require_words = __commonJS({
|
||||
"node_modules/lodash/words.js"(exports, module) {
|
||||
var asciiWords = require_asciiWords();
|
||||
var hasUnicodeWord = require_hasUnicodeWord();
|
||||
var toString = require_toString();
|
||||
var unicodeWords = require_unicodeWords();
|
||||
function words(string, pattern, guard) {
|
||||
string = toString(string);
|
||||
pattern = guard ? void 0 : pattern;
|
||||
if (pattern === void 0) {
|
||||
return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);
|
||||
}
|
||||
return string.match(pattern) || [];
|
||||
}
|
||||
module.exports = words;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_createCompounder.js
|
||||
var require_createCompounder = __commonJS({
|
||||
"node_modules/lodash/_createCompounder.js"(exports, module) {
|
||||
var arrayReduce = require_arrayReduce();
|
||||
var deburr = require_deburr();
|
||||
var words = require_words();
|
||||
var rsApos = "['’]";
|
||||
var reApos = RegExp(rsApos, "g");
|
||||
function createCompounder(callback) {
|
||||
return function(string) {
|
||||
return arrayReduce(words(deburr(string).replace(reApos, "")), callback, "");
|
||||
};
|
||||
}
|
||||
module.exports = createCompounder;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_createCompounder
|
||||
};
|
||||
//# sourceMappingURL=chunk-4CUKBX3S.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,122 +0,0 @@
|
||||
import {
|
||||
require_basePickBy
|
||||
} from "./chunk-67PDOJAZ.js";
|
||||
import {
|
||||
require_overRest,
|
||||
require_setToString
|
||||
} from "./chunk-DJFXXVH6.js";
|
||||
import {
|
||||
require_hasIn
|
||||
} from "./chunk-TPPVBE2B.js";
|
||||
import {
|
||||
require_arrayPush
|
||||
} from "./chunk-WCMV6LZ5.js";
|
||||
import {
|
||||
require_isArguments
|
||||
} from "./chunk-KAVMBZUT.js";
|
||||
import {
|
||||
require_isArray
|
||||
} from "./chunk-V2ZIA3AG.js";
|
||||
import {
|
||||
require_Symbol
|
||||
} from "./chunk-FMVO6WZI.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_basePick.js
|
||||
var require_basePick = __commonJS({
|
||||
"node_modules/lodash/_basePick.js"(exports, module) {
|
||||
var basePickBy = require_basePickBy();
|
||||
var hasIn = require_hasIn();
|
||||
function basePick(object, paths) {
|
||||
return basePickBy(object, paths, function(value, path) {
|
||||
return hasIn(object, path);
|
||||
});
|
||||
}
|
||||
module.exports = basePick;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_isFlattenable.js
|
||||
var require_isFlattenable = __commonJS({
|
||||
"node_modules/lodash/_isFlattenable.js"(exports, module) {
|
||||
var Symbol = require_Symbol();
|
||||
var isArguments = require_isArguments();
|
||||
var isArray = require_isArray();
|
||||
var spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : void 0;
|
||||
function isFlattenable(value) {
|
||||
return isArray(value) || isArguments(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
|
||||
}
|
||||
module.exports = isFlattenable;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseFlatten.js
|
||||
var require_baseFlatten = __commonJS({
|
||||
"node_modules/lodash/_baseFlatten.js"(exports, module) {
|
||||
var arrayPush = require_arrayPush();
|
||||
var isFlattenable = require_isFlattenable();
|
||||
function baseFlatten(array, depth, predicate, isStrict, result) {
|
||||
var index = -1, length = array.length;
|
||||
predicate || (predicate = isFlattenable);
|
||||
result || (result = []);
|
||||
while (++index < length) {
|
||||
var value = array[index];
|
||||
if (depth > 0 && predicate(value)) {
|
||||
if (depth > 1) {
|
||||
baseFlatten(value, depth - 1, predicate, isStrict, result);
|
||||
} else {
|
||||
arrayPush(result, value);
|
||||
}
|
||||
} else if (!isStrict) {
|
||||
result[result.length] = value;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
module.exports = baseFlatten;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/flatten.js
|
||||
var require_flatten = __commonJS({
|
||||
"node_modules/lodash/flatten.js"(exports, module) {
|
||||
var baseFlatten = require_baseFlatten();
|
||||
function flatten(array) {
|
||||
var length = array == null ? 0 : array.length;
|
||||
return length ? baseFlatten(array, 1) : [];
|
||||
}
|
||||
module.exports = flatten;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_flatRest.js
|
||||
var require_flatRest = __commonJS({
|
||||
"node_modules/lodash/_flatRest.js"(exports, module) {
|
||||
var flatten = require_flatten();
|
||||
var overRest = require_overRest();
|
||||
var setToString = require_setToString();
|
||||
function flatRest(func) {
|
||||
return setToString(overRest(func, void 0, flatten), func + "");
|
||||
}
|
||||
module.exports = flatRest;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/pick.js
|
||||
var require_pick = __commonJS({
|
||||
"node_modules/lodash/pick.js"(exports, module) {
|
||||
var basePick = require_basePick();
|
||||
var flatRest = require_flatRest();
|
||||
var pick = flatRest(function(object, paths) {
|
||||
return object == null ? {} : basePick(object, paths);
|
||||
});
|
||||
module.exports = pick;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_pick
|
||||
};
|
||||
//# sourceMappingURL=chunk-4H3Q2QKZ.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/_basePick.js", "../../../../../lodash/_isFlattenable.js", "../../../../../lodash/_baseFlatten.js", "../../../../../lodash/flatten.js", "../../../../../lodash/_flatRest.js", "../../../../../lodash/pick.js"],
|
||||
"sourcesContent": ["var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n", "var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n", "var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n", "var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n", "var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n", "var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,QAAI,aAAa;AAAjB,QACI,QAAQ;AAWZ,aAAS,SAAS,QAAQ,OAAO;AAC/B,aAAO,WAAW,QAAQ,OAAO,SAAS,OAAO,MAAM;AACrD,eAAO,MAAM,QAAQ,IAAI;AAAA,MAC3B,CAAC;AAAA,IACH;AAEA,WAAO,UAAU;AAAA;AAAA;;;AClBjB;AAAA;AAAA,QAAI,SAAS;AAAb,QACI,cAAc;AADlB,QAEI,UAAU;AAGd,QAAI,mBAAmB,SAAS,OAAO,qBAAqB;AAS5D,aAAS,cAAc,OAAO;AAC5B,aAAO,QAAQ,KAAK,KAAK,YAAY,KAAK,KACxC,CAAC,EAAE,oBAAoB,SAAS,MAAM,gBAAgB;AAAA,IAC1D;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACnBjB;AAAA;AAAA,QAAI,YAAY;AAAhB,QACI,gBAAgB;AAapB,aAAS,YAAY,OAAO,OAAO,WAAW,UAAU,QAAQ;AAC9D,UAAI,QAAQ,IACR,SAAS,MAAM;AAEnB,oBAAc,YAAY;AAC1B,iBAAW,SAAS,CAAC;AAErB,aAAO,EAAE,QAAQ,QAAQ;AACvB,YAAI,QAAQ,MAAM,KAAK;AACvB,YAAI,QAAQ,KAAK,UAAU,KAAK,GAAG;AACjC,cAAI,QAAQ,GAAG;AAEb,wBAAY,OAAO,QAAQ,GAAG,WAAW,UAAU,MAAM;AAAA,UAC3D,OAAO;AACL,sBAAU,QAAQ,KAAK;AAAA,UACzB;AAAA,QACF,WAAW,CAAC,UAAU;AACpB,iBAAO,OAAO,MAAM,IAAI;AAAA,QAC1B;AAAA,MACF;AACA,aAAO;AAAA,IACT;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACrCjB;AAAA;AAAA,QAAI,cAAc;AAgBlB,aAAS,QAAQ,OAAO;AACtB,UAAI,SAAS,SAAS,OAAO,IAAI,MAAM;AACvC,aAAO,SAAS,YAAY,OAAO,CAAC,IAAI,CAAC;AAAA,IAC3C;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACrBjB;AAAA;AAAA,QAAI,UAAU;AAAd,QACI,WAAW;AADf,QAEI,cAAc;AASlB,aAAS,SAAS,MAAM;AACtB,aAAO,YAAY,SAAS,MAAM,QAAW,OAAO,GAAG,OAAO,EAAE;AAAA,IAClE;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACfjB;AAAA;AAAA,QAAI,WAAW;AAAf,QACI,WAAW;AAmBf,QAAI,OAAO,SAAS,SAAS,QAAQ,OAAO;AAC1C,aAAO,UAAU,OAAO,CAAC,IAAI,SAAS,QAAQ,KAAK;AAAA,IACrD,CAAC;AAED,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,36 +0,0 @@
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_createBaseFor.js
|
||||
var require_createBaseFor = __commonJS({
|
||||
"node_modules/lodash/_createBaseFor.js"(exports, module) {
|
||||
function createBaseFor(fromRight) {
|
||||
return function(object, iteratee, keysFunc) {
|
||||
var index = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
||||
while (length--) {
|
||||
var key = props[fromRight ? length : ++index];
|
||||
if (iteratee(iterable[key], key, iterable) === false) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return object;
|
||||
};
|
||||
}
|
||||
module.exports = createBaseFor;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseFor.js
|
||||
var require_baseFor = __commonJS({
|
||||
"node_modules/lodash/_baseFor.js"(exports, module) {
|
||||
var createBaseFor = require_createBaseFor();
|
||||
var baseFor = createBaseFor();
|
||||
module.exports = baseFor;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_baseFor
|
||||
};
|
||||
//# sourceMappingURL=chunk-4O4FP57Y.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/_createBaseFor.js", "../../../../../lodash/_baseFor.js"],
|
||||
"sourcesContent": ["/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n}\n\nmodule.exports = createBaseFor;\n", "var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n"],
|
||||
"mappings": ";;;;;AAAA;AAAA;AAOA,aAAS,cAAc,WAAW;AAChC,aAAO,SAAS,QAAQ,UAAU,UAAU;AAC1C,YAAI,QAAQ,IACR,WAAW,OAAO,MAAM,GACxB,QAAQ,SAAS,MAAM,GACvB,SAAS,MAAM;AAEnB,eAAO,UAAU;AACf,cAAI,MAAM,MAAM,YAAY,SAAS,EAAE,KAAK;AAC5C,cAAI,SAAS,SAAS,GAAG,GAAG,KAAK,QAAQ,MAAM,OAAO;AACpD;AAAA,UACF;AAAA,QACF;AACA,eAAO;AAAA,MACT;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACxBjB;AAAA;AAAA,QAAI,gBAAgB;AAapB,QAAI,UAAU,cAAc;AAE5B,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,477 +0,0 @@
|
||||
import {
|
||||
require_isFunction
|
||||
} from "./chunk-BP6K5E6K.js";
|
||||
import {
|
||||
require_isObject
|
||||
} from "./chunk-LJMOOM7L.js";
|
||||
import {
|
||||
require_root
|
||||
} from "./chunk-FMVO6WZI.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/eq.js
|
||||
var require_eq = __commonJS({
|
||||
"node_modules/lodash/eq.js"(exports, module) {
|
||||
function eq(value, other) {
|
||||
return value === other || value !== value && other !== other;
|
||||
}
|
||||
module.exports = eq;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_listCacheClear.js
|
||||
var require_listCacheClear = __commonJS({
|
||||
"node_modules/lodash/_listCacheClear.js"(exports, module) {
|
||||
function listCacheClear() {
|
||||
this.__data__ = [];
|
||||
this.size = 0;
|
||||
}
|
||||
module.exports = listCacheClear;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_assocIndexOf.js
|
||||
var require_assocIndexOf = __commonJS({
|
||||
"node_modules/lodash/_assocIndexOf.js"(exports, module) {
|
||||
var eq = require_eq();
|
||||
function assocIndexOf(array, key) {
|
||||
var length = array.length;
|
||||
while (length--) {
|
||||
if (eq(array[length][0], key)) {
|
||||
return length;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
module.exports = assocIndexOf;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_listCacheDelete.js
|
||||
var require_listCacheDelete = __commonJS({
|
||||
"node_modules/lodash/_listCacheDelete.js"(exports, module) {
|
||||
var assocIndexOf = require_assocIndexOf();
|
||||
var arrayProto = Array.prototype;
|
||||
var splice = arrayProto.splice;
|
||||
function listCacheDelete(key) {
|
||||
var data = this.__data__, index = assocIndexOf(data, key);
|
||||
if (index < 0) {
|
||||
return false;
|
||||
}
|
||||
var lastIndex = data.length - 1;
|
||||
if (index == lastIndex) {
|
||||
data.pop();
|
||||
} else {
|
||||
splice.call(data, index, 1);
|
||||
}
|
||||
--this.size;
|
||||
return true;
|
||||
}
|
||||
module.exports = listCacheDelete;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_listCacheGet.js
|
||||
var require_listCacheGet = __commonJS({
|
||||
"node_modules/lodash/_listCacheGet.js"(exports, module) {
|
||||
var assocIndexOf = require_assocIndexOf();
|
||||
function listCacheGet(key) {
|
||||
var data = this.__data__, index = assocIndexOf(data, key);
|
||||
return index < 0 ? void 0 : data[index][1];
|
||||
}
|
||||
module.exports = listCacheGet;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_listCacheHas.js
|
||||
var require_listCacheHas = __commonJS({
|
||||
"node_modules/lodash/_listCacheHas.js"(exports, module) {
|
||||
var assocIndexOf = require_assocIndexOf();
|
||||
function listCacheHas(key) {
|
||||
return assocIndexOf(this.__data__, key) > -1;
|
||||
}
|
||||
module.exports = listCacheHas;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_listCacheSet.js
|
||||
var require_listCacheSet = __commonJS({
|
||||
"node_modules/lodash/_listCacheSet.js"(exports, module) {
|
||||
var assocIndexOf = require_assocIndexOf();
|
||||
function listCacheSet(key, value) {
|
||||
var data = this.__data__, index = assocIndexOf(data, key);
|
||||
if (index < 0) {
|
||||
++this.size;
|
||||
data.push([key, value]);
|
||||
} else {
|
||||
data[index][1] = value;
|
||||
}
|
||||
return this;
|
||||
}
|
||||
module.exports = listCacheSet;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_ListCache.js
|
||||
var require_ListCache = __commonJS({
|
||||
"node_modules/lodash/_ListCache.js"(exports, module) {
|
||||
var listCacheClear = require_listCacheClear();
|
||||
var listCacheDelete = require_listCacheDelete();
|
||||
var listCacheGet = require_listCacheGet();
|
||||
var listCacheHas = require_listCacheHas();
|
||||
var listCacheSet = require_listCacheSet();
|
||||
function ListCache(entries) {
|
||||
var index = -1, length = entries == null ? 0 : entries.length;
|
||||
this.clear();
|
||||
while (++index < length) {
|
||||
var entry = entries[index];
|
||||
this.set(entry[0], entry[1]);
|
||||
}
|
||||
}
|
||||
ListCache.prototype.clear = listCacheClear;
|
||||
ListCache.prototype["delete"] = listCacheDelete;
|
||||
ListCache.prototype.get = listCacheGet;
|
||||
ListCache.prototype.has = listCacheHas;
|
||||
ListCache.prototype.set = listCacheSet;
|
||||
module.exports = ListCache;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_toSource.js
|
||||
var require_toSource = __commonJS({
|
||||
"node_modules/lodash/_toSource.js"(exports, module) {
|
||||
var funcProto = Function.prototype;
|
||||
var funcToString = funcProto.toString;
|
||||
function toSource(func) {
|
||||
if (func != null) {
|
||||
try {
|
||||
return funcToString.call(func);
|
||||
} catch (e) {
|
||||
}
|
||||
try {
|
||||
return func + "";
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
return "";
|
||||
}
|
||||
module.exports = toSource;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_coreJsData.js
|
||||
var require_coreJsData = __commonJS({
|
||||
"node_modules/lodash/_coreJsData.js"(exports, module) {
|
||||
var root = require_root();
|
||||
var coreJsData = root["__core-js_shared__"];
|
||||
module.exports = coreJsData;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_isMasked.js
|
||||
var require_isMasked = __commonJS({
|
||||
"node_modules/lodash/_isMasked.js"(exports, module) {
|
||||
var coreJsData = require_coreJsData();
|
||||
var maskSrcKey = function() {
|
||||
var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
||||
return uid ? "Symbol(src)_1." + uid : "";
|
||||
}();
|
||||
function isMasked(func) {
|
||||
return !!maskSrcKey && maskSrcKey in func;
|
||||
}
|
||||
module.exports = isMasked;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseIsNative.js
|
||||
var require_baseIsNative = __commonJS({
|
||||
"node_modules/lodash/_baseIsNative.js"(exports, module) {
|
||||
var isFunction = require_isFunction();
|
||||
var isMasked = require_isMasked();
|
||||
var isObject = require_isObject();
|
||||
var toSource = require_toSource();
|
||||
var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
||||
var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
||||
var funcProto = Function.prototype;
|
||||
var objectProto = Object.prototype;
|
||||
var funcToString = funcProto.toString;
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
var reIsNative = RegExp(
|
||||
"^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
||||
);
|
||||
function baseIsNative(value) {
|
||||
if (!isObject(value) || isMasked(value)) {
|
||||
return false;
|
||||
}
|
||||
var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
||||
return pattern.test(toSource(value));
|
||||
}
|
||||
module.exports = baseIsNative;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_getValue.js
|
||||
var require_getValue = __commonJS({
|
||||
"node_modules/lodash/_getValue.js"(exports, module) {
|
||||
function getValue(object, key) {
|
||||
return object == null ? void 0 : object[key];
|
||||
}
|
||||
module.exports = getValue;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_getNative.js
|
||||
var require_getNative = __commonJS({
|
||||
"node_modules/lodash/_getNative.js"(exports, module) {
|
||||
var baseIsNative = require_baseIsNative();
|
||||
var getValue = require_getValue();
|
||||
function getNative(object, key) {
|
||||
var value = getValue(object, key);
|
||||
return baseIsNative(value) ? value : void 0;
|
||||
}
|
||||
module.exports = getNative;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_Map.js
|
||||
var require_Map = __commonJS({
|
||||
"node_modules/lodash/_Map.js"(exports, module) {
|
||||
var getNative = require_getNative();
|
||||
var root = require_root();
|
||||
var Map = getNative(root, "Map");
|
||||
module.exports = Map;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_nativeCreate.js
|
||||
var require_nativeCreate = __commonJS({
|
||||
"node_modules/lodash/_nativeCreate.js"(exports, module) {
|
||||
var getNative = require_getNative();
|
||||
var nativeCreate = getNative(Object, "create");
|
||||
module.exports = nativeCreate;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_hashClear.js
|
||||
var require_hashClear = __commonJS({
|
||||
"node_modules/lodash/_hashClear.js"(exports, module) {
|
||||
var nativeCreate = require_nativeCreate();
|
||||
function hashClear() {
|
||||
this.__data__ = nativeCreate ? nativeCreate(null) : {};
|
||||
this.size = 0;
|
||||
}
|
||||
module.exports = hashClear;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_hashDelete.js
|
||||
var require_hashDelete = __commonJS({
|
||||
"node_modules/lodash/_hashDelete.js"(exports, module) {
|
||||
function hashDelete(key) {
|
||||
var result = this.has(key) && delete this.__data__[key];
|
||||
this.size -= result ? 1 : 0;
|
||||
return result;
|
||||
}
|
||||
module.exports = hashDelete;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_hashGet.js
|
||||
var require_hashGet = __commonJS({
|
||||
"node_modules/lodash/_hashGet.js"(exports, module) {
|
||||
var nativeCreate = require_nativeCreate();
|
||||
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
||||
var objectProto = Object.prototype;
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
function hashGet(key) {
|
||||
var data = this.__data__;
|
||||
if (nativeCreate) {
|
||||
var result = data[key];
|
||||
return result === HASH_UNDEFINED ? void 0 : result;
|
||||
}
|
||||
return hasOwnProperty.call(data, key) ? data[key] : void 0;
|
||||
}
|
||||
module.exports = hashGet;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_hashHas.js
|
||||
var require_hashHas = __commonJS({
|
||||
"node_modules/lodash/_hashHas.js"(exports, module) {
|
||||
var nativeCreate = require_nativeCreate();
|
||||
var objectProto = Object.prototype;
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
function hashHas(key) {
|
||||
var data = this.__data__;
|
||||
return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
|
||||
}
|
||||
module.exports = hashHas;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_hashSet.js
|
||||
var require_hashSet = __commonJS({
|
||||
"node_modules/lodash/_hashSet.js"(exports, module) {
|
||||
var nativeCreate = require_nativeCreate();
|
||||
var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
||||
function hashSet(key, value) {
|
||||
var data = this.__data__;
|
||||
this.size += this.has(key) ? 0 : 1;
|
||||
data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
|
||||
return this;
|
||||
}
|
||||
module.exports = hashSet;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_Hash.js
|
||||
var require_Hash = __commonJS({
|
||||
"node_modules/lodash/_Hash.js"(exports, module) {
|
||||
var hashClear = require_hashClear();
|
||||
var hashDelete = require_hashDelete();
|
||||
var hashGet = require_hashGet();
|
||||
var hashHas = require_hashHas();
|
||||
var hashSet = require_hashSet();
|
||||
function Hash(entries) {
|
||||
var index = -1, length = entries == null ? 0 : entries.length;
|
||||
this.clear();
|
||||
while (++index < length) {
|
||||
var entry = entries[index];
|
||||
this.set(entry[0], entry[1]);
|
||||
}
|
||||
}
|
||||
Hash.prototype.clear = hashClear;
|
||||
Hash.prototype["delete"] = hashDelete;
|
||||
Hash.prototype.get = hashGet;
|
||||
Hash.prototype.has = hashHas;
|
||||
Hash.prototype.set = hashSet;
|
||||
module.exports = Hash;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_mapCacheClear.js
|
||||
var require_mapCacheClear = __commonJS({
|
||||
"node_modules/lodash/_mapCacheClear.js"(exports, module) {
|
||||
var Hash = require_Hash();
|
||||
var ListCache = require_ListCache();
|
||||
var Map = require_Map();
|
||||
function mapCacheClear() {
|
||||
this.size = 0;
|
||||
this.__data__ = {
|
||||
"hash": new Hash(),
|
||||
"map": new (Map || ListCache)(),
|
||||
"string": new Hash()
|
||||
};
|
||||
}
|
||||
module.exports = mapCacheClear;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_isKeyable.js
|
||||
var require_isKeyable = __commonJS({
|
||||
"node_modules/lodash/_isKeyable.js"(exports, module) {
|
||||
function isKeyable(value) {
|
||||
var type = typeof value;
|
||||
return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
||||
}
|
||||
module.exports = isKeyable;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_getMapData.js
|
||||
var require_getMapData = __commonJS({
|
||||
"node_modules/lodash/_getMapData.js"(exports, module) {
|
||||
var isKeyable = require_isKeyable();
|
||||
function getMapData(map, key) {
|
||||
var data = map.__data__;
|
||||
return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
||||
}
|
||||
module.exports = getMapData;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_mapCacheDelete.js
|
||||
var require_mapCacheDelete = __commonJS({
|
||||
"node_modules/lodash/_mapCacheDelete.js"(exports, module) {
|
||||
var getMapData = require_getMapData();
|
||||
function mapCacheDelete(key) {
|
||||
var result = getMapData(this, key)["delete"](key);
|
||||
this.size -= result ? 1 : 0;
|
||||
return result;
|
||||
}
|
||||
module.exports = mapCacheDelete;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_mapCacheGet.js
|
||||
var require_mapCacheGet = __commonJS({
|
||||
"node_modules/lodash/_mapCacheGet.js"(exports, module) {
|
||||
var getMapData = require_getMapData();
|
||||
function mapCacheGet(key) {
|
||||
return getMapData(this, key).get(key);
|
||||
}
|
||||
module.exports = mapCacheGet;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_mapCacheHas.js
|
||||
var require_mapCacheHas = __commonJS({
|
||||
"node_modules/lodash/_mapCacheHas.js"(exports, module) {
|
||||
var getMapData = require_getMapData();
|
||||
function mapCacheHas(key) {
|
||||
return getMapData(this, key).has(key);
|
||||
}
|
||||
module.exports = mapCacheHas;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_mapCacheSet.js
|
||||
var require_mapCacheSet = __commonJS({
|
||||
"node_modules/lodash/_mapCacheSet.js"(exports, module) {
|
||||
var getMapData = require_getMapData();
|
||||
function mapCacheSet(key, value) {
|
||||
var data = getMapData(this, key), size = data.size;
|
||||
data.set(key, value);
|
||||
this.size += data.size == size ? 0 : 1;
|
||||
return this;
|
||||
}
|
||||
module.exports = mapCacheSet;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_MapCache.js
|
||||
var require_MapCache = __commonJS({
|
||||
"node_modules/lodash/_MapCache.js"(exports, module) {
|
||||
var mapCacheClear = require_mapCacheClear();
|
||||
var mapCacheDelete = require_mapCacheDelete();
|
||||
var mapCacheGet = require_mapCacheGet();
|
||||
var mapCacheHas = require_mapCacheHas();
|
||||
var mapCacheSet = require_mapCacheSet();
|
||||
function MapCache(entries) {
|
||||
var index = -1, length = entries == null ? 0 : entries.length;
|
||||
this.clear();
|
||||
while (++index < length) {
|
||||
var entry = entries[index];
|
||||
this.set(entry[0], entry[1]);
|
||||
}
|
||||
}
|
||||
MapCache.prototype.clear = mapCacheClear;
|
||||
MapCache.prototype["delete"] = mapCacheDelete;
|
||||
MapCache.prototype.get = mapCacheGet;
|
||||
MapCache.prototype.has = mapCacheHas;
|
||||
MapCache.prototype.set = mapCacheSet;
|
||||
module.exports = MapCache;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_eq,
|
||||
require_ListCache,
|
||||
require_toSource,
|
||||
require_getNative,
|
||||
require_Map,
|
||||
require_MapCache
|
||||
};
|
||||
//# sourceMappingURL=chunk-4YXVX72G.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,35 +0,0 @@
|
||||
import {
|
||||
require_baseForOwn
|
||||
} from "./chunk-I2Z44FFS.js";
|
||||
import {
|
||||
require_baseIteratee
|
||||
} from "./chunk-OWSY6HAM.js";
|
||||
import {
|
||||
require_baseAssignValue
|
||||
} from "./chunk-JLPG4W6G.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/mapKeys.js
|
||||
var require_mapKeys = __commonJS({
|
||||
"node_modules/lodash/mapKeys.js"(exports, module) {
|
||||
var baseAssignValue = require_baseAssignValue();
|
||||
var baseForOwn = require_baseForOwn();
|
||||
var baseIteratee = require_baseIteratee();
|
||||
function mapKeys(object, iteratee) {
|
||||
var result = {};
|
||||
iteratee = baseIteratee(iteratee, 3);
|
||||
baseForOwn(object, function(value, key, object2) {
|
||||
baseAssignValue(result, iteratee(value, key, object2), value);
|
||||
});
|
||||
return result;
|
||||
}
|
||||
module.exports = mapKeys;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_mapKeys
|
||||
};
|
||||
//# sourceMappingURL=chunk-53URZPKK.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/mapKeys.js"],
|
||||
"sourcesContent": ["var baseAssignValue = require('./_baseAssignValue'),\n baseForOwn = require('./_baseForOwn'),\n baseIteratee = require('./_baseIteratee');\n\n/**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\nfunction mapKeys(object, iteratee) {\n var result = {};\n iteratee = baseIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n}\n\nmodule.exports = mapKeys;\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;AAAA;AAAA;AAAA,QAAI,kBAAkB;AAAtB,QACI,aAAa;AADjB,QAEI,eAAe;AAuBnB,aAAS,QAAQ,QAAQ,UAAU;AACjC,UAAI,SAAS,CAAC;AACd,iBAAW,aAAa,UAAU,CAAC;AAEnC,iBAAW,QAAQ,SAAS,OAAO,KAAKA,SAAQ;AAC9C,wBAAgB,QAAQ,SAAS,OAAO,KAAKA,OAAM,GAAG,KAAK;AAAA,MAC7D,CAAC;AACD,aAAO;AAAA,IACT;AAEA,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": ["object"]
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
import {
|
||||
require_client
|
||||
} from "./chunk-TYV5OM3H.js";
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-WIJRE3H4.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@storybook/react-dom-shim/dist/react-18.mjs
|
||||
var React = __toESM(require_react(), 1);
|
||||
var ReactDOM = __toESM(require_client(), 1);
|
||||
var nodes = /* @__PURE__ */ new Map();
|
||||
function getIsReactActEnvironment() {
|
||||
return globalThis.IS_REACT_ACT_ENVIRONMENT;
|
||||
}
|
||||
var WithCallback = ({ callback, children }) => {
|
||||
let once = React.useRef();
|
||||
return React.useLayoutEffect(() => {
|
||||
once.current !== callback && (once.current = callback, callback());
|
||||
}, [callback]), children;
|
||||
};
|
||||
typeof Promise.withResolvers > "u" && (Promise.withResolvers = () => {
|
||||
let resolve = null, reject = null;
|
||||
return { promise: new Promise((res, rej) => {
|
||||
resolve = res, reject = rej;
|
||||
}), resolve, reject };
|
||||
});
|
||||
var renderElement = async (node, el, rootOptions) => {
|
||||
let root = await getReactRoot(el, rootOptions);
|
||||
if (getIsReactActEnvironment()) {
|
||||
root.render(node);
|
||||
return;
|
||||
}
|
||||
let { promise, resolve } = Promise.withResolvers();
|
||||
return root.render(React.createElement(WithCallback, { callback: resolve }, node)), promise;
|
||||
};
|
||||
var unmountElement = (el, shouldUseNewRootApi) => {
|
||||
let root = nodes.get(el);
|
||||
root && (root.unmount(), nodes.delete(el));
|
||||
};
|
||||
var getReactRoot = async (el, rootOptions) => {
|
||||
let root = nodes.get(el);
|
||||
return root || (root = ReactDOM.createRoot(el, rootOptions), nodes.set(el, root)), root;
|
||||
};
|
||||
|
||||
export {
|
||||
renderElement,
|
||||
unmountElement
|
||||
};
|
||||
//# sourceMappingURL=chunk-57ZXLNKK.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../@storybook/react-dom-shim/dist/react-18.mjs"],
|
||||
"sourcesContent": ["import * as React from 'react';\nimport * as ReactDOM from 'react-dom/client';\n\nvar nodes=new Map;function getIsReactActEnvironment(){return globalThis.IS_REACT_ACT_ENVIRONMENT}var WithCallback=({callback,children})=>{let once=React.useRef();return React.useLayoutEffect(()=>{once.current!==callback&&(once.current=callback,callback());},[callback]),children};typeof Promise.withResolvers>\"u\"&&(Promise.withResolvers=()=>{let resolve=null,reject=null;return {promise:new Promise((res,rej)=>{resolve=res,reject=rej;}),resolve,reject}});var renderElement=async(node,el,rootOptions)=>{let root=await getReactRoot(el,rootOptions);if(getIsReactActEnvironment()){root.render(node);return}let{promise,resolve}=Promise.withResolvers();return root.render(React.createElement(WithCallback,{callback:resolve},node)),promise},unmountElement=(el,shouldUseNewRootApi)=>{let root=nodes.get(el);root&&(root.unmount(),nodes.delete(el));},getReactRoot=async(el,rootOptions)=>{let root=nodes.get(el);return root||(root=ReactDOM.createRoot(el,rootOptions),nodes.set(el,root)),root};\n\nexport { renderElement, unmountElement };\n"],
|
||||
"mappings": ";;;;;;;;;;;AAAA,YAAuB;AACvB,eAA0B;AAE1B,IAAI,QAAM,oBAAI;AAAI,SAAS,2BAA0B;AAAC,SAAO,WAAW;AAAwB;AAAC,IAAI,eAAa,CAAC,EAAC,UAAS,SAAQ,MAAI;AAAC,MAAI,OAAW,aAAO;AAAE,SAAa,sBAAgB,MAAI;AAAC,SAAK,YAAU,aAAW,KAAK,UAAQ,UAAS,SAAS;AAAA,EAAG,GAAE,CAAC,QAAQ,CAAC,GAAE;AAAQ;AAAE,OAAO,QAAQ,gBAAc,QAAM,QAAQ,gBAAc,MAAI;AAAC,MAAI,UAAQ,MAAK,SAAO;AAAK,SAAO,EAAC,SAAQ,IAAI,QAAQ,CAAC,KAAI,QAAM;AAAC,cAAQ,KAAI,SAAO;AAAA,EAAI,CAAC,GAAE,SAAQ,OAAM;AAAC;AAAG,IAAI,gBAAc,OAAM,MAAK,IAAG,gBAAc;AAAC,MAAI,OAAK,MAAM,aAAa,IAAG,WAAW;AAAE,MAAG,yBAAyB,GAAE;AAAC,SAAK,OAAO,IAAI;AAAE;AAAA,EAAM;AAAC,MAAG,EAAC,SAAQ,QAAO,IAAE,QAAQ,cAAc;AAAE,SAAO,KAAK,OAAa,oBAAc,cAAa,EAAC,UAAS,QAAO,GAAE,IAAI,CAAC,GAAE;AAAO;AAArR,IAAuR,iBAAe,CAAC,IAAG,wBAAsB;AAAC,MAAI,OAAK,MAAM,IAAI,EAAE;AAAE,WAAO,KAAK,QAAQ,GAAE,MAAM,OAAO,EAAE;AAAG;AAAhY,IAAkY,eAAa,OAAM,IAAG,gBAAc;AAAC,MAAI,OAAK,MAAM,IAAI,EAAE;AAAE,SAAO,SAAO,OAAc,oBAAW,IAAG,WAAW,GAAE,MAAM,IAAI,IAAG,IAAI,IAAG;AAAI;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
import {
|
||||
require_arrayLikeKeys,
|
||||
require_isArrayLike,
|
||||
require_isPrototype
|
||||
} from "./chunk-QAGLP4WU.js";
|
||||
import {
|
||||
require_isObject
|
||||
} from "./chunk-LJMOOM7L.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_nativeKeysIn.js
|
||||
var require_nativeKeysIn = __commonJS({
|
||||
"node_modules/lodash/_nativeKeysIn.js"(exports, module) {
|
||||
function nativeKeysIn(object) {
|
||||
var result = [];
|
||||
if (object != null) {
|
||||
for (var key in Object(object)) {
|
||||
result.push(key);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
module.exports = nativeKeysIn;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseKeysIn.js
|
||||
var require_baseKeysIn = __commonJS({
|
||||
"node_modules/lodash/_baseKeysIn.js"(exports, module) {
|
||||
var isObject = require_isObject();
|
||||
var isPrototype = require_isPrototype();
|
||||
var nativeKeysIn = require_nativeKeysIn();
|
||||
var objectProto = Object.prototype;
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
function baseKeysIn(object) {
|
||||
if (!isObject(object)) {
|
||||
return nativeKeysIn(object);
|
||||
}
|
||||
var isProto = isPrototype(object), result = [];
|
||||
for (var key in object) {
|
||||
if (!(key == "constructor" && (isProto || !hasOwnProperty.call(object, key)))) {
|
||||
result.push(key);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
module.exports = baseKeysIn;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/keysIn.js
|
||||
var require_keysIn = __commonJS({
|
||||
"node_modules/lodash/keysIn.js"(exports, module) {
|
||||
var arrayLikeKeys = require_arrayLikeKeys();
|
||||
var baseKeysIn = require_baseKeysIn();
|
||||
var isArrayLike = require_isArrayLike();
|
||||
function keysIn(object) {
|
||||
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
||||
}
|
||||
module.exports = keysIn;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_keysIn
|
||||
};
|
||||
//# sourceMappingURL=chunk-5TYTZAF2.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/_nativeKeysIn.js", "../../../../../lodash/_baseKeysIn.js", "../../../../../lodash/keysIn.js"],
|
||||
"sourcesContent": ["/**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = nativeKeysIn;\n", "var isObject = require('./isObject'),\n isPrototype = require('./_isPrototype'),\n nativeKeysIn = require('./_nativeKeysIn');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n}\n\nmodule.exports = baseKeysIn;\n", "var arrayLikeKeys = require('./_arrayLikeKeys'),\n baseKeysIn = require('./_baseKeysIn'),\n isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\nfunction keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n}\n\nmodule.exports = keysIn;\n"],
|
||||
"mappings": ";;;;;;;;;;;;;AAAA;AAAA;AASA,aAAS,aAAa,QAAQ;AAC5B,UAAI,SAAS,CAAC;AACd,UAAI,UAAU,MAAM;AAClB,iBAAS,OAAO,OAAO,MAAM,GAAG;AAC9B,iBAAO,KAAK,GAAG;AAAA,QACjB;AAAA,MACF;AACA,aAAO;AAAA,IACT;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACnBjB;AAAA;AAAA,QAAI,WAAW;AAAf,QACI,cAAc;AADlB,QAEI,eAAe;AAGnB,QAAI,cAAc,OAAO;AAGzB,QAAI,iBAAiB,YAAY;AASjC,aAAS,WAAW,QAAQ;AAC1B,UAAI,CAAC,SAAS,MAAM,GAAG;AACrB,eAAO,aAAa,MAAM;AAAA,MAC5B;AACA,UAAI,UAAU,YAAY,MAAM,GAC5B,SAAS,CAAC;AAEd,eAAS,OAAO,QAAQ;AACtB,YAAI,EAAE,OAAO,kBAAkB,WAAW,CAAC,eAAe,KAAK,QAAQ,GAAG,KAAK;AAC7E,iBAAO,KAAK,GAAG;AAAA,QACjB;AAAA,MACF;AACA,aAAO;AAAA,IACT;AAEA,WAAO,UAAU;AAAA;AAAA;;;AChCjB;AAAA;AAAA,QAAI,gBAAgB;AAApB,QACI,aAAa;AADjB,QAEI,cAAc;AAyBlB,aAAS,OAAO,QAAQ;AACtB,aAAO,YAAY,MAAM,IAAI,cAAc,QAAQ,IAAI,IAAI,WAAW,MAAM;AAAA,IAC9E;AAEA,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,77 +0,0 @@
|
||||
import {
|
||||
require_assignValue
|
||||
} from "./chunk-JTQ7PF6R.js";
|
||||
import {
|
||||
require_baseGet,
|
||||
require_castPath,
|
||||
require_toKey
|
||||
} from "./chunk-TPPVBE2B.js";
|
||||
import {
|
||||
require_isIndex
|
||||
} from "./chunk-KAVMBZUT.js";
|
||||
import {
|
||||
require_isObject
|
||||
} from "./chunk-LJMOOM7L.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_baseSet.js
|
||||
var require_baseSet = __commonJS({
|
||||
"node_modules/lodash/_baseSet.js"(exports, module) {
|
||||
var assignValue = require_assignValue();
|
||||
var castPath = require_castPath();
|
||||
var isIndex = require_isIndex();
|
||||
var isObject = require_isObject();
|
||||
var toKey = require_toKey();
|
||||
function baseSet(object, path, value, customizer) {
|
||||
if (!isObject(object)) {
|
||||
return object;
|
||||
}
|
||||
path = castPath(path, object);
|
||||
var index = -1, length = path.length, lastIndex = length - 1, nested = object;
|
||||
while (nested != null && ++index < length) {
|
||||
var key = toKey(path[index]), newValue = value;
|
||||
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
||||
return object;
|
||||
}
|
||||
if (index != lastIndex) {
|
||||
var objValue = nested[key];
|
||||
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
||||
if (newValue === void 0) {
|
||||
newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
|
||||
}
|
||||
}
|
||||
assignValue(nested, key, newValue);
|
||||
nested = nested[key];
|
||||
}
|
||||
return object;
|
||||
}
|
||||
module.exports = baseSet;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_basePickBy.js
|
||||
var require_basePickBy = __commonJS({
|
||||
"node_modules/lodash/_basePickBy.js"(exports, module) {
|
||||
var baseGet = require_baseGet();
|
||||
var baseSet = require_baseSet();
|
||||
var castPath = require_castPath();
|
||||
function basePickBy(object, paths, predicate) {
|
||||
var index = -1, length = paths.length, result = {};
|
||||
while (++index < length) {
|
||||
var path = paths[index], value = baseGet(object, path);
|
||||
if (predicate(value, path)) {
|
||||
baseSet(result, castPath(path, object), value);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
module.exports = basePickBy;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_basePickBy
|
||||
};
|
||||
//# sourceMappingURL=chunk-67PDOJAZ.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/_baseSet.js", "../../../../../lodash/_basePickBy.js"],
|
||||
"sourcesContent": ["var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n", "var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,QAAI,cAAc;AAAlB,QACI,WAAW;AADf,QAEI,UAAU;AAFd,QAGI,WAAW;AAHf,QAII,QAAQ;AAYZ,aAAS,QAAQ,QAAQ,MAAM,OAAO,YAAY;AAChD,UAAI,CAAC,SAAS,MAAM,GAAG;AACrB,eAAO;AAAA,MACT;AACA,aAAO,SAAS,MAAM,MAAM;AAE5B,UAAI,QAAQ,IACR,SAAS,KAAK,QACd,YAAY,SAAS,GACrB,SAAS;AAEb,aAAO,UAAU,QAAQ,EAAE,QAAQ,QAAQ;AACzC,YAAI,MAAM,MAAM,KAAK,KAAK,CAAC,GACvB,WAAW;AAEf,YAAI,QAAQ,eAAe,QAAQ,iBAAiB,QAAQ,aAAa;AACvE,iBAAO;AAAA,QACT;AAEA,YAAI,SAAS,WAAW;AACtB,cAAI,WAAW,OAAO,GAAG;AACzB,qBAAW,aAAa,WAAW,UAAU,KAAK,MAAM,IAAI;AAC5D,cAAI,aAAa,QAAW;AAC1B,uBAAW,SAAS,QAAQ,IACxB,WACC,QAAQ,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;AAAA,UACxC;AAAA,QACF;AACA,oBAAY,QAAQ,KAAK,QAAQ;AACjC,iBAAS,OAAO,GAAG;AAAA,MACrB;AACA,aAAO;AAAA,IACT;AAEA,WAAO,UAAU;AAAA;AAAA;;;AClDjB;AAAA;AAAA,QAAI,UAAU;AAAd,QACI,UAAU;AADd,QAEI,WAAW;AAWf,aAAS,WAAW,QAAQ,OAAO,WAAW;AAC5C,UAAI,QAAQ,IACR,SAAS,MAAM,QACf,SAAS,CAAC;AAEd,aAAO,EAAE,QAAQ,QAAQ;AACvB,YAAI,OAAO,MAAM,KAAK,GAClB,QAAQ,QAAQ,QAAQ,IAAI;AAEhC,YAAI,UAAU,OAAO,IAAI,GAAG;AAC1B,kBAAQ,QAAQ,SAAS,MAAM,MAAM,GAAG,KAAK;AAAA,QAC/C;AAAA,MACF;AACA,aAAO;AAAA,IACT;AAEA,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,317 +0,0 @@
|
||||
import {
|
||||
require_SetCache,
|
||||
require_cacheHas,
|
||||
require_setToArray
|
||||
} from "./chunk-KKHMM6DT.js";
|
||||
import {
|
||||
require_getAllKeys,
|
||||
require_getTag
|
||||
} from "./chunk-EKXPQ2UD.js";
|
||||
import {
|
||||
require_Stack,
|
||||
require_Uint8Array,
|
||||
require_isBuffer,
|
||||
require_isTypedArray
|
||||
} from "./chunk-QAGLP4WU.js";
|
||||
import {
|
||||
require_eq
|
||||
} from "./chunk-4YXVX72G.js";
|
||||
import {
|
||||
require_isArray
|
||||
} from "./chunk-V2ZIA3AG.js";
|
||||
import {
|
||||
require_isObjectLike
|
||||
} from "./chunk-LSIB72U6.js";
|
||||
import {
|
||||
require_Symbol
|
||||
} from "./chunk-FMVO6WZI.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_arraySome.js
|
||||
var require_arraySome = __commonJS({
|
||||
"node_modules/lodash/_arraySome.js"(exports, module) {
|
||||
function arraySome(array, predicate) {
|
||||
var index = -1, length = array == null ? 0 : array.length;
|
||||
while (++index < length) {
|
||||
if (predicate(array[index], index, array)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
module.exports = arraySome;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_equalArrays.js
|
||||
var require_equalArrays = __commonJS({
|
||||
"node_modules/lodash/_equalArrays.js"(exports, module) {
|
||||
var SetCache = require_SetCache();
|
||||
var arraySome = require_arraySome();
|
||||
var cacheHas = require_cacheHas();
|
||||
var COMPARE_PARTIAL_FLAG = 1;
|
||||
var COMPARE_UNORDERED_FLAG = 2;
|
||||
function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {
|
||||
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array.length, othLength = other.length;
|
||||
if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
||||
return false;
|
||||
}
|
||||
var arrStacked = stack.get(array);
|
||||
var othStacked = stack.get(other);
|
||||
if (arrStacked && othStacked) {
|
||||
return arrStacked == other && othStacked == array;
|
||||
}
|
||||
var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
|
||||
stack.set(array, other);
|
||||
stack.set(other, array);
|
||||
while (++index < arrLength) {
|
||||
var arrValue = array[index], othValue = other[index];
|
||||
if (customizer) {
|
||||
var compared = isPartial ? customizer(othValue, arrValue, index, other, array, stack) : customizer(arrValue, othValue, index, array, other, stack);
|
||||
}
|
||||
if (compared !== void 0) {
|
||||
if (compared) {
|
||||
continue;
|
||||
}
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
if (seen) {
|
||||
if (!arraySome(other, function(othValue2, othIndex) {
|
||||
if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
||||
return seen.push(othIndex);
|
||||
}
|
||||
})) {
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
} else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
stack["delete"](array);
|
||||
stack["delete"](other);
|
||||
return result;
|
||||
}
|
||||
module.exports = equalArrays;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_mapToArray.js
|
||||
var require_mapToArray = __commonJS({
|
||||
"node_modules/lodash/_mapToArray.js"(exports, module) {
|
||||
function mapToArray(map) {
|
||||
var index = -1, result = Array(map.size);
|
||||
map.forEach(function(value, key) {
|
||||
result[++index] = [key, value];
|
||||
});
|
||||
return result;
|
||||
}
|
||||
module.exports = mapToArray;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_equalByTag.js
|
||||
var require_equalByTag = __commonJS({
|
||||
"node_modules/lodash/_equalByTag.js"(exports, module) {
|
||||
var Symbol = require_Symbol();
|
||||
var Uint8Array = require_Uint8Array();
|
||||
var eq = require_eq();
|
||||
var equalArrays = require_equalArrays();
|
||||
var mapToArray = require_mapToArray();
|
||||
var setToArray = require_setToArray();
|
||||
var COMPARE_PARTIAL_FLAG = 1;
|
||||
var COMPARE_UNORDERED_FLAG = 2;
|
||||
var boolTag = "[object Boolean]";
|
||||
var dateTag = "[object Date]";
|
||||
var errorTag = "[object Error]";
|
||||
var mapTag = "[object Map]";
|
||||
var numberTag = "[object Number]";
|
||||
var regexpTag = "[object RegExp]";
|
||||
var setTag = "[object Set]";
|
||||
var stringTag = "[object String]";
|
||||
var symbolTag = "[object Symbol]";
|
||||
var arrayBufferTag = "[object ArrayBuffer]";
|
||||
var dataViewTag = "[object DataView]";
|
||||
var symbolProto = Symbol ? Symbol.prototype : void 0;
|
||||
var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
||||
function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
||||
switch (tag) {
|
||||
case dataViewTag:
|
||||
if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
||||
return false;
|
||||
}
|
||||
object = object.buffer;
|
||||
other = other.buffer;
|
||||
case arrayBufferTag:
|
||||
if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array(object), new Uint8Array(other))) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
case boolTag:
|
||||
case dateTag:
|
||||
case numberTag:
|
||||
return eq(+object, +other);
|
||||
case errorTag:
|
||||
return object.name == other.name && object.message == other.message;
|
||||
case regexpTag:
|
||||
case stringTag:
|
||||
return object == other + "";
|
||||
case mapTag:
|
||||
var convert = mapToArray;
|
||||
case setTag:
|
||||
var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
|
||||
convert || (convert = setToArray);
|
||||
if (object.size != other.size && !isPartial) {
|
||||
return false;
|
||||
}
|
||||
var stacked = stack.get(object);
|
||||
if (stacked) {
|
||||
return stacked == other;
|
||||
}
|
||||
bitmask |= COMPARE_UNORDERED_FLAG;
|
||||
stack.set(object, other);
|
||||
var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
||||
stack["delete"](object);
|
||||
return result;
|
||||
case symbolTag:
|
||||
if (symbolValueOf) {
|
||||
return symbolValueOf.call(object) == symbolValueOf.call(other);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
module.exports = equalByTag;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_equalObjects.js
|
||||
var require_equalObjects = __commonJS({
|
||||
"node_modules/lodash/_equalObjects.js"(exports, module) {
|
||||
var getAllKeys = require_getAllKeys();
|
||||
var COMPARE_PARTIAL_FLAG = 1;
|
||||
var objectProto = Object.prototype;
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {
|
||||
var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
|
||||
if (objLength != othLength && !isPartial) {
|
||||
return false;
|
||||
}
|
||||
var index = objLength;
|
||||
while (index--) {
|
||||
var key = objProps[index];
|
||||
if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
var objStacked = stack.get(object);
|
||||
var othStacked = stack.get(other);
|
||||
if (objStacked && othStacked) {
|
||||
return objStacked == other && othStacked == object;
|
||||
}
|
||||
var result = true;
|
||||
stack.set(object, other);
|
||||
stack.set(other, object);
|
||||
var skipCtor = isPartial;
|
||||
while (++index < objLength) {
|
||||
key = objProps[index];
|
||||
var objValue = object[key], othValue = other[key];
|
||||
if (customizer) {
|
||||
var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
||||
}
|
||||
if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
||||
result = false;
|
||||
break;
|
||||
}
|
||||
skipCtor || (skipCtor = key == "constructor");
|
||||
}
|
||||
if (result && !skipCtor) {
|
||||
var objCtor = object.constructor, othCtor = other.constructor;
|
||||
if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
||||
result = false;
|
||||
}
|
||||
}
|
||||
stack["delete"](object);
|
||||
stack["delete"](other);
|
||||
return result;
|
||||
}
|
||||
module.exports = equalObjects;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseIsEqualDeep.js
|
||||
var require_baseIsEqualDeep = __commonJS({
|
||||
"node_modules/lodash/_baseIsEqualDeep.js"(exports, module) {
|
||||
var Stack = require_Stack();
|
||||
var equalArrays = require_equalArrays();
|
||||
var equalByTag = require_equalByTag();
|
||||
var equalObjects = require_equalObjects();
|
||||
var getTag = require_getTag();
|
||||
var isArray = require_isArray();
|
||||
var isBuffer = require_isBuffer();
|
||||
var isTypedArray = require_isTypedArray();
|
||||
var COMPARE_PARTIAL_FLAG = 1;
|
||||
var argsTag = "[object Arguments]";
|
||||
var arrayTag = "[object Array]";
|
||||
var objectTag = "[object Object]";
|
||||
var objectProto = Object.prototype;
|
||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {
|
||||
var objIsArr = isArray(object), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object), othTag = othIsArr ? arrayTag : getTag(other);
|
||||
objTag = objTag == argsTag ? objectTag : objTag;
|
||||
othTag = othTag == argsTag ? objectTag : othTag;
|
||||
var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
|
||||
if (isSameTag && isBuffer(object)) {
|
||||
if (!isBuffer(other)) {
|
||||
return false;
|
||||
}
|
||||
objIsArr = true;
|
||||
objIsObj = false;
|
||||
}
|
||||
if (isSameTag && !objIsObj) {
|
||||
stack || (stack = new Stack());
|
||||
return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
||||
}
|
||||
if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
|
||||
var objIsWrapped = objIsObj && hasOwnProperty.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
|
||||
if (objIsWrapped || othIsWrapped) {
|
||||
var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
||||
stack || (stack = new Stack());
|
||||
return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
||||
}
|
||||
}
|
||||
if (!isSameTag) {
|
||||
return false;
|
||||
}
|
||||
stack || (stack = new Stack());
|
||||
return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
||||
}
|
||||
module.exports = baseIsEqualDeep;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseIsEqual.js
|
||||
var require_baseIsEqual = __commonJS({
|
||||
"node_modules/lodash/_baseIsEqual.js"(exports, module) {
|
||||
var baseIsEqualDeep = require_baseIsEqualDeep();
|
||||
var isObjectLike = require_isObjectLike();
|
||||
function baseIsEqual(value, other, bitmask, customizer, stack) {
|
||||
if (value === other) {
|
||||
return true;
|
||||
}
|
||||
if (value == null || other == null || !isObjectLike(value) && !isObjectLike(other)) {
|
||||
return value !== value && other !== other;
|
||||
}
|
||||
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
|
||||
}
|
||||
module.exports = baseIsEqual;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_baseIsEqual
|
||||
};
|
||||
//# sourceMappingURL=chunk-6Q6IFNG3.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,20 +0,0 @@
|
||||
import {
|
||||
require_overArg
|
||||
} from "./chunk-GYNE55BH.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_getPrototype.js
|
||||
var require_getPrototype = __commonJS({
|
||||
"node_modules/lodash/_getPrototype.js"(exports, module) {
|
||||
var overArg = require_overArg();
|
||||
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
||||
module.exports = getPrototype;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_getPrototype
|
||||
};
|
||||
//# sourceMappingURL=chunk-7IZGUACU.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/_getPrototype.js"],
|
||||
"sourcesContent": ["var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n"],
|
||||
"mappings": ";;;;;;;;AAAA;AAAA;AAAA,QAAI,UAAU;AAGd,QAAI,eAAe,QAAQ,OAAO,gBAAgB,MAAM;AAExD,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,663 +0,0 @@
|
||||
import {
|
||||
applyDecorators
|
||||
} from "./chunk-OAOLO3MQ.js";
|
||||
import {
|
||||
Tn,
|
||||
pt
|
||||
} from "./chunk-YYB2ULC3.js";
|
||||
import {
|
||||
require_client_logger
|
||||
} from "./chunk-GF7VUYY4.js";
|
||||
import {
|
||||
require_preview_api
|
||||
} from "./chunk-NDPLLWBS.js";
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-WIJRE3H4.js";
|
||||
import {
|
||||
__commonJS,
|
||||
__export,
|
||||
__toESM as __toESM2
|
||||
} from "./chunk-DF7VAP3D.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@storybook/react/dist/chunk-CKO6TW2F.mjs
|
||||
var React__default = __toESM(require_react(), 1);
|
||||
var import_react = __toESM(require_react(), 1);
|
||||
var require_dist = __commonJS({ "../../node_modules/@base2/pretty-print-object/dist/index.js"(exports) {
|
||||
var __assign = exports && exports.__assign || function() {
|
||||
return __assign = Object.assign || function(t) {
|
||||
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
||||
s = arguments[i];
|
||||
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]);
|
||||
}
|
||||
return t;
|
||||
}, __assign.apply(this, arguments);
|
||||
}, __spreadArrays = exports && exports.__spreadArrays || function() {
|
||||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
||||
for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j];
|
||||
return r;
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var seen = [];
|
||||
function isObj(value) {
|
||||
var type = typeof value;
|
||||
return value !== null && (type === "object" || type === "function");
|
||||
}
|
||||
function isRegexp(value) {
|
||||
return Object.prototype.toString.call(value) === "[object RegExp]";
|
||||
}
|
||||
function getOwnEnumPropSymbols(object) {
|
||||
return Object.getOwnPropertySymbols(object).filter(function(keySymbol) {
|
||||
return Object.prototype.propertyIsEnumerable.call(object, keySymbol);
|
||||
});
|
||||
}
|
||||
function prettyPrint2(input, options, pad) {
|
||||
pad === void 0 && (pad = "");
|
||||
var defaultOptions = { indent: " ", singleQuotes: true }, combinedOptions = __assign(__assign({}, defaultOptions), options), tokens;
|
||||
combinedOptions.inlineCharacterLimit === void 0 ? tokens = { newLine: `
|
||||
`, newLineOrSpace: `
|
||||
`, pad, indent: pad + combinedOptions.indent } : tokens = { newLine: "@@__PRETTY_PRINT_NEW_LINE__@@", newLineOrSpace: "@@__PRETTY_PRINT_NEW_LINE_OR_SPACE__@@", pad: "@@__PRETTY_PRINT_PAD__@@", indent: "@@__PRETTY_PRINT_INDENT__@@" };
|
||||
var expandWhiteSpace = function(string) {
|
||||
if (combinedOptions.inlineCharacterLimit === void 0) return string;
|
||||
var oneLined = string.replace(new RegExp(tokens.newLine, "g"), "").replace(new RegExp(tokens.newLineOrSpace, "g"), " ").replace(new RegExp(tokens.pad + "|" + tokens.indent, "g"), "");
|
||||
return oneLined.length <= combinedOptions.inlineCharacterLimit ? oneLined : string.replace(new RegExp(tokens.newLine + "|" + tokens.newLineOrSpace, "g"), `
|
||||
`).replace(new RegExp(tokens.pad, "g"), pad).replace(new RegExp(tokens.indent, "g"), pad + combinedOptions.indent);
|
||||
};
|
||||
if (seen.indexOf(input) !== -1) return '"[Circular]"';
|
||||
if (input == null || typeof input == "number" || typeof input == "boolean" || typeof input == "function" || typeof input == "symbol" || isRegexp(input)) return String(input);
|
||||
if (input instanceof Date) return "new Date('" + input.toISOString() + "')";
|
||||
if (Array.isArray(input)) {
|
||||
if (input.length === 0) return "[]";
|
||||
seen.push(input);
|
||||
var ret = "[" + tokens.newLine + input.map(function(el, i) {
|
||||
var eol = input.length - 1 === i ? tokens.newLine : "," + tokens.newLineOrSpace, value = prettyPrint2(el, combinedOptions, pad + combinedOptions.indent);
|
||||
return combinedOptions.transform && (value = combinedOptions.transform(input, i, value)), tokens.indent + value + eol;
|
||||
}).join("") + tokens.pad + "]";
|
||||
return seen.pop(), expandWhiteSpace(ret);
|
||||
}
|
||||
if (isObj(input)) {
|
||||
var objKeys_1 = __spreadArrays(Object.keys(input), getOwnEnumPropSymbols(input));
|
||||
if (combinedOptions.filter && (objKeys_1 = objKeys_1.filter(function(el) {
|
||||
return combinedOptions.filter && combinedOptions.filter(input, el);
|
||||
})), objKeys_1.length === 0) return "{}";
|
||||
seen.push(input);
|
||||
var ret = "{" + tokens.newLine + objKeys_1.map(function(el, i) {
|
||||
var eol = objKeys_1.length - 1 === i ? tokens.newLine : "," + tokens.newLineOrSpace, isSymbol = typeof el == "symbol", isClassic = !isSymbol && /^[a-z$_][a-z$_0-9]*$/i.test(el.toString()), key = isSymbol || isClassic ? el : prettyPrint2(el, combinedOptions), value = prettyPrint2(input[el], combinedOptions, pad + combinedOptions.indent);
|
||||
return combinedOptions.transform && (value = combinedOptions.transform(input, el, value)), tokens.indent + String(key) + ": " + value + eol;
|
||||
}).join("") + tokens.pad + "}";
|
||||
return seen.pop(), expandWhiteSpace(ret);
|
||||
}
|
||||
return input = String(input).replace(/[\r\n]/g, function(x) {
|
||||
return x === `
|
||||
` ? "\\n" : "\\r";
|
||||
}), combinedOptions.singleQuotes ? (input = input.replace(/\\?'/g, "\\'"), "'" + input + "'") : (input = input.replace(/"/g, '\\"'), '"' + input + '"');
|
||||
}
|
||||
exports.prettyPrint = prettyPrint2;
|
||||
} });
|
||||
var require_react_is_production_min = __commonJS({ "../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
||||
var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u;
|
||||
u = Symbol.for("react.module.reference");
|
||||
function v(a) {
|
||||
if (typeof a == "object" && a !== null) {
|
||||
var r = a.$$typeof;
|
||||
switch (r) {
|
||||
case b:
|
||||
switch (a = a.type, a) {
|
||||
case d:
|
||||
case f:
|
||||
case e:
|
||||
case m:
|
||||
case n:
|
||||
return a;
|
||||
default:
|
||||
switch (a = a && a.$$typeof, a) {
|
||||
case k:
|
||||
case h:
|
||||
case l:
|
||||
case q:
|
||||
case p:
|
||||
case g:
|
||||
return a;
|
||||
default:
|
||||
return r;
|
||||
}
|
||||
}
|
||||
case c:
|
||||
return r;
|
||||
}
|
||||
}
|
||||
}
|
||||
exports.ContextConsumer = h;
|
||||
exports.ContextProvider = g;
|
||||
exports.Element = b;
|
||||
exports.ForwardRef = l;
|
||||
exports.Fragment = d;
|
||||
exports.Lazy = q;
|
||||
exports.Memo = p;
|
||||
exports.Portal = c;
|
||||
exports.Profiler = f;
|
||||
exports.StrictMode = e;
|
||||
exports.Suspense = m;
|
||||
exports.SuspenseList = n;
|
||||
exports.isAsyncMode = function() {
|
||||
return false;
|
||||
};
|
||||
exports.isConcurrentMode = function() {
|
||||
return false;
|
||||
};
|
||||
exports.isContextConsumer = function(a) {
|
||||
return v(a) === h;
|
||||
};
|
||||
exports.isContextProvider = function(a) {
|
||||
return v(a) === g;
|
||||
};
|
||||
exports.isElement = function(a) {
|
||||
return typeof a == "object" && a !== null && a.$$typeof === b;
|
||||
};
|
||||
exports.isForwardRef = function(a) {
|
||||
return v(a) === l;
|
||||
};
|
||||
exports.isFragment = function(a) {
|
||||
return v(a) === d;
|
||||
};
|
||||
exports.isLazy = function(a) {
|
||||
return v(a) === q;
|
||||
};
|
||||
exports.isMemo = function(a) {
|
||||
return v(a) === p;
|
||||
};
|
||||
exports.isPortal = function(a) {
|
||||
return v(a) === c;
|
||||
};
|
||||
exports.isProfiler = function(a) {
|
||||
return v(a) === f;
|
||||
};
|
||||
exports.isStrictMode = function(a) {
|
||||
return v(a) === e;
|
||||
};
|
||||
exports.isSuspense = function(a) {
|
||||
return v(a) === m;
|
||||
};
|
||||
exports.isSuspenseList = function(a) {
|
||||
return v(a) === n;
|
||||
};
|
||||
exports.isValidElementType = function(a) {
|
||||
return typeof a == "string" || typeof a == "function" || a === d || a === f || a === e || a === m || a === n || a === t || typeof a == "object" && a !== null && (a.$$typeof === q || a.$$typeof === p || a.$$typeof === g || a.$$typeof === h || a.$$typeof === l || a.$$typeof === u || a.getModuleId !== void 0);
|
||||
};
|
||||
exports.typeOf = v;
|
||||
} });
|
||||
var require_react_is_development = __commonJS({ "../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
||||
(function() {
|
||||
var enableScopeAPI = false, enableCacheElement = false, enableTransitionTracing = false, enableLegacyHidden = false, enableDebugTracing = false, REACT_ELEMENT_TYPE = Symbol.for("react.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_SERVER_CONTEXT_TYPE = Symbol.for("react.server_context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_OFFSCREEN_TYPE = Symbol.for("react.offscreen"), REACT_MODULE_REFERENCE;
|
||||
REACT_MODULE_REFERENCE = Symbol.for("react.module.reference");
|
||||
function isValidElementType(type) {
|
||||
return !!(typeof type == "string" || typeof type == "function" || 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 || 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_MODULE_REFERENCE || type.getModuleId !== void 0));
|
||||
}
|
||||
function typeOf(object) {
|
||||
if (typeof object == "object" && object !== null) {
|
||||
var $$typeof = object.$$typeof;
|
||||
switch ($$typeof) {
|
||||
case REACT_ELEMENT_TYPE:
|
||||
var type = object.type;
|
||||
switch (type) {
|
||||
case REACT_FRAGMENT_TYPE:
|
||||
case REACT_PROFILER_TYPE:
|
||||
case REACT_STRICT_MODE_TYPE:
|
||||
case REACT_SUSPENSE_TYPE:
|
||||
case REACT_SUSPENSE_LIST_TYPE:
|
||||
return type;
|
||||
default:
|
||||
var $$typeofType = type && type.$$typeof;
|
||||
switch ($$typeofType) {
|
||||
case REACT_SERVER_CONTEXT_TYPE:
|
||||
case REACT_CONTEXT_TYPE:
|
||||
case REACT_FORWARD_REF_TYPE:
|
||||
case REACT_LAZY_TYPE:
|
||||
case REACT_MEMO_TYPE:
|
||||
case REACT_PROVIDER_TYPE:
|
||||
return $$typeofType;
|
||||
default:
|
||||
return $$typeof;
|
||||
}
|
||||
}
|
||||
case REACT_PORTAL_TYPE:
|
||||
return $$typeof;
|
||||
}
|
||||
}
|
||||
}
|
||||
var ContextConsumer = REACT_CONTEXT_TYPE, ContextProvider = REACT_PROVIDER_TYPE, Element = REACT_ELEMENT_TYPE, ForwardRef2 = REACT_FORWARD_REF_TYPE, Fragment2 = REACT_FRAGMENT_TYPE, Lazy = REACT_LAZY_TYPE, Memo2 = REACT_MEMO_TYPE, Portal = REACT_PORTAL_TYPE, Profiler = REACT_PROFILER_TYPE, StrictMode = REACT_STRICT_MODE_TYPE, Suspense = REACT_SUSPENSE_TYPE, SuspenseList = REACT_SUSPENSE_LIST_TYPE, hasWarnedAboutDeprecatedIsAsyncMode = false, hasWarnedAboutDeprecatedIsConcurrentMode = false;
|
||||
function isAsyncMode(object) {
|
||||
return hasWarnedAboutDeprecatedIsAsyncMode || (hasWarnedAboutDeprecatedIsAsyncMode = true, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")), false;
|
||||
}
|
||||
function isConcurrentMode(object) {
|
||||
return hasWarnedAboutDeprecatedIsConcurrentMode || (hasWarnedAboutDeprecatedIsConcurrentMode = true, console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")), false;
|
||||
}
|
||||
function isContextConsumer2(object) {
|
||||
return typeOf(object) === REACT_CONTEXT_TYPE;
|
||||
}
|
||||
function isContextProvider2(object) {
|
||||
return typeOf(object) === REACT_PROVIDER_TYPE;
|
||||
}
|
||||
function isElement(object) {
|
||||
return typeof object == "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
||||
}
|
||||
function isForwardRef3(object) {
|
||||
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
||||
}
|
||||
function isFragment(object) {
|
||||
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
||||
}
|
||||
function isLazy2(object) {
|
||||
return typeOf(object) === REACT_LAZY_TYPE;
|
||||
}
|
||||
function isMemo3(object) {
|
||||
return typeOf(object) === REACT_MEMO_TYPE;
|
||||
}
|
||||
function isPortal(object) {
|
||||
return typeOf(object) === REACT_PORTAL_TYPE;
|
||||
}
|
||||
function isProfiler2(object) {
|
||||
return typeOf(object) === REACT_PROFILER_TYPE;
|
||||
}
|
||||
function isStrictMode2(object) {
|
||||
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
||||
}
|
||||
function isSuspense2(object) {
|
||||
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
||||
}
|
||||
function isSuspenseList(object) {
|
||||
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
||||
}
|
||||
exports.ContextConsumer = ContextConsumer, exports.ContextProvider = ContextProvider, exports.Element = Element, exports.ForwardRef = ForwardRef2, exports.Fragment = Fragment2, exports.Lazy = Lazy, exports.Memo = Memo2, exports.Portal = Portal, exports.Profiler = Profiler, exports.StrictMode = StrictMode, exports.Suspense = Suspense, exports.SuspenseList = SuspenseList, exports.isAsyncMode = isAsyncMode, exports.isConcurrentMode = isConcurrentMode, exports.isContextConsumer = isContextConsumer2, exports.isContextProvider = isContextProvider2, exports.isElement = isElement, exports.isForwardRef = isForwardRef3, exports.isFragment = isFragment, exports.isLazy = isLazy2, exports.isMemo = isMemo3, exports.isPortal = isPortal, exports.isProfiler = isProfiler2, exports.isStrictMode = isStrictMode2, exports.isSuspense = isSuspense2, exports.isSuspenseList = isSuspenseList, exports.isValidElementType = isValidElementType, exports.typeOf = typeOf;
|
||||
})();
|
||||
} });
|
||||
var require_react_is = __commonJS({ "../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(exports, module) {
|
||||
false ? module.exports = require_react_is_production_min() : module.exports = require_react_is_development();
|
||||
} });
|
||||
var isMemo = (component) => component.$$typeof === Symbol.for("react.memo");
|
||||
var isForwardRef = (component) => component.$$typeof === Symbol.for("react.forward_ref");
|
||||
function isObject(o) {
|
||||
return Object.prototype.toString.call(o) === "[object Object]";
|
||||
}
|
||||
function isPlainObject(o) {
|
||||
var ctor, prot;
|
||||
return isObject(o) === false ? false : (ctor = o.constructor, ctor === void 0 ? true : (prot = ctor.prototype, !(isObject(prot) === false || prot.hasOwnProperty("isPrototypeOf") === false)));
|
||||
}
|
||||
var import_pretty_print_object = __toESM2(require_dist());
|
||||
var import_react_is = __toESM2(require_react_is());
|
||||
var spacer = function(times, tabStop) {
|
||||
return times === 0 ? "" : new Array(times * tabStop).fill(" ").join("");
|
||||
};
|
||||
function _typeof(obj) {
|
||||
"@babel/helpers - typeof";
|
||||
return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
|
||||
return typeof obj2;
|
||||
} : function(obj2) {
|
||||
return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
||||
}, _typeof(obj);
|
||||
}
|
||||
function _toConsumableArray(arr) {
|
||||
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
||||
}
|
||||
function _arrayWithoutHoles(arr) {
|
||||
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
||||
}
|
||||
function _iterableToArray(iter) {
|
||||
if (typeof Symbol < "u" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
||||
}
|
||||
function _unsupportedIterableToArray(o, minLen) {
|
||||
if (o) {
|
||||
if (typeof o == "string") return _arrayLikeToArray(o, minLen);
|
||||
var n = Object.prototype.toString.call(o).slice(8, -1);
|
||||
if (n === "Object" && o.constructor && (n = o.constructor.name), n === "Map" || n === "Set") return Array.from(o);
|
||||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
||||
}
|
||||
}
|
||||
function _arrayLikeToArray(arr, len) {
|
||||
(len == null || len > arr.length) && (len = arr.length);
|
||||
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
||||
return arr2;
|
||||
}
|
||||
function _nonIterableSpread() {
|
||||
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
||||
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
||||
}
|
||||
function safeSortObject(value, seen) {
|
||||
return value === null || _typeof(value) !== "object" || value instanceof Date || value instanceof RegExp || React__default.isValidElement(value) ? value : (seen.add(value), Array.isArray(value) ? value.map(function(v) {
|
||||
return safeSortObject(v, seen);
|
||||
}) : Object.keys(value).sort().reduce(function(result, key) {
|
||||
return key === "_owner" || (key === "current" || seen.has(value[key]) ? result[key] = "[Circular]" : result[key] = safeSortObject(value[key], seen)), result;
|
||||
}, {}));
|
||||
}
|
||||
function sortObject(value) {
|
||||
return safeSortObject(value, /* @__PURE__ */ new WeakSet());
|
||||
}
|
||||
var createStringTreeNode = function(value) {
|
||||
return { type: "string", value };
|
||||
};
|
||||
var createNumberTreeNode = function(value) {
|
||||
return { type: "number", value };
|
||||
};
|
||||
var createReactElementTreeNode = function(displayName, props, defaultProps, childrens) {
|
||||
return { type: "ReactElement", displayName, props, defaultProps, childrens };
|
||||
};
|
||||
var createReactFragmentTreeNode = function(key, childrens) {
|
||||
return { type: "ReactFragment", key, childrens };
|
||||
};
|
||||
var supportFragment = !!import_react.Fragment;
|
||||
var getFunctionTypeName = function(functionType) {
|
||||
return !functionType.name || functionType.name === "_default" ? "No Display Name" : functionType.name;
|
||||
};
|
||||
var getWrappedComponentDisplayName = function getWrappedComponentDisplayName2(Component) {
|
||||
switch (true) {
|
||||
case !!Component.displayName:
|
||||
return Component.displayName;
|
||||
case Component.$$typeof === import_react_is.Memo:
|
||||
return getWrappedComponentDisplayName2(Component.type);
|
||||
case Component.$$typeof === import_react_is.ForwardRef:
|
||||
return getWrappedComponentDisplayName2(Component.render);
|
||||
default:
|
||||
return getFunctionTypeName(Component);
|
||||
}
|
||||
};
|
||||
var getReactElementDisplayName = function(element) {
|
||||
switch (true) {
|
||||
case typeof element.type == "string":
|
||||
return element.type;
|
||||
case typeof element.type == "function":
|
||||
return element.type.displayName ? element.type.displayName : getFunctionTypeName(element.type);
|
||||
case (0, import_react_is.isForwardRef)(element):
|
||||
case (0, import_react_is.isMemo)(element):
|
||||
return getWrappedComponentDisplayName(element.type);
|
||||
case (0, import_react_is.isContextConsumer)(element):
|
||||
return "".concat(element.type._context.displayName || "Context", ".Consumer");
|
||||
case (0, import_react_is.isContextProvider)(element):
|
||||
return "".concat(element.type._context.displayName || "Context", ".Provider");
|
||||
case (0, import_react_is.isLazy)(element):
|
||||
return "Lazy";
|
||||
case (0, import_react_is.isProfiler)(element):
|
||||
return "Profiler";
|
||||
case (0, import_react_is.isStrictMode)(element):
|
||||
return "StrictMode";
|
||||
case (0, import_react_is.isSuspense)(element):
|
||||
return "Suspense";
|
||||
default:
|
||||
return "UnknownElementType";
|
||||
}
|
||||
};
|
||||
var noChildren = function(propsValue, propName) {
|
||||
return propName !== "children";
|
||||
};
|
||||
var onlyMeaningfulChildren = function(children) {
|
||||
return children !== true && children !== false && children !== null && children !== "";
|
||||
};
|
||||
var filterProps = function(originalProps, cb) {
|
||||
var filteredProps = {};
|
||||
return Object.keys(originalProps).filter(function(key) {
|
||||
return cb(originalProps[key], key);
|
||||
}).forEach(function(key) {
|
||||
return filteredProps[key] = originalProps[key];
|
||||
}), filteredProps;
|
||||
};
|
||||
var parseReactElement = function parseReactElement2(element, options) {
|
||||
var _options$displayName = options.displayName, displayNameFn = _options$displayName === void 0 ? getReactElementDisplayName : _options$displayName;
|
||||
if (typeof element == "string") return createStringTreeNode(element);
|
||||
if (typeof element == "number") return createNumberTreeNode(element);
|
||||
if (!import_react.default.isValidElement(element)) throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(_typeof(element), "`"));
|
||||
var displayName = displayNameFn(element), props = filterProps(element.props, noChildren);
|
||||
element.ref !== null && (props.ref = element.ref);
|
||||
var key = element.key;
|
||||
typeof key == "string" && key.search(/^\./) && (props.key = key);
|
||||
var defaultProps = filterProps(element.type.defaultProps || {}, noChildren), childrens = import_react.default.Children.toArray(element.props.children).filter(onlyMeaningfulChildren).map(function(child) {
|
||||
return parseReactElement2(child, options);
|
||||
});
|
||||
return supportFragment && element.type === import_react.Fragment ? createReactFragmentTreeNode(key, childrens) : createReactElementTreeNode(displayName, props, defaultProps, childrens);
|
||||
};
|
||||
function noRefCheck() {
|
||||
}
|
||||
var inlineFunction = function(fn) {
|
||||
return fn.toString().split(`
|
||||
`).map(function(line) {
|
||||
return line.trim();
|
||||
}).join("");
|
||||
};
|
||||
var defaultFunctionValue = inlineFunction;
|
||||
var formatFunction = function(fn, options) {
|
||||
var _options$functionValu = options.functionValue, functionValue = _options$functionValu === void 0 ? defaultFunctionValue : _options$functionValu, showFunctions = options.showFunctions;
|
||||
return functionValue(!showFunctions && functionValue === defaultFunctionValue ? noRefCheck : fn);
|
||||
};
|
||||
var formatComplexDataStructure = function(value, inline, lvl, options) {
|
||||
var normalizedValue = sortObject(value), stringifiedValue = (0, import_pretty_print_object.prettyPrint)(normalizedValue, { transform: function(currentObj, prop, originalResult) {
|
||||
var currentValue = currentObj[prop];
|
||||
return currentValue && (0, import_react.isValidElement)(currentValue) ? formatTreeNode(parseReactElement(currentValue, options), true, lvl, options) : typeof currentValue == "function" ? formatFunction(currentValue, options) : originalResult;
|
||||
} });
|
||||
return inline ? stringifiedValue.replace(/\s+/g, " ").replace(/{ /g, "{").replace(/ }/g, "}").replace(/\[ /g, "[").replace(/ ]/g, "]") : stringifiedValue.replace(/\t/g, spacer(1, options.tabStop)).replace(/\n([^$])/g, `
|
||||
`.concat(spacer(lvl + 1, options.tabStop), "$1"));
|
||||
};
|
||||
var escape$1 = function(s) {
|
||||
return s.replace(/"/g, """);
|
||||
};
|
||||
var formatPropValue = function(propValue, inline, lvl, options) {
|
||||
if (typeof propValue == "number") return "{".concat(String(propValue), "}");
|
||||
if (typeof propValue == "string") return '"'.concat(escape$1(propValue), '"');
|
||||
if (_typeof(propValue) === "symbol") {
|
||||
var symbolDescription = propValue.valueOf().toString().replace(/Symbol\((.*)\)/, "$1");
|
||||
return symbolDescription ? "{Symbol('".concat(symbolDescription, "')}") : "{Symbol()}";
|
||||
}
|
||||
return typeof propValue == "function" ? "{".concat(formatFunction(propValue, options), "}") : (0, import_react.isValidElement)(propValue) ? "{".concat(formatTreeNode(parseReactElement(propValue, options), true, lvl, options), "}") : propValue instanceof Date ? isNaN(propValue.valueOf()) ? "{new Date(NaN)}" : '{new Date("'.concat(propValue.toISOString(), '")}') : isPlainObject(propValue) || Array.isArray(propValue) ? "{".concat(formatComplexDataStructure(propValue, inline, lvl, options), "}") : "{".concat(String(propValue), "}");
|
||||
};
|
||||
var formatProp = function(name, hasValue, value, hasDefaultValue, defaultValue, inline, lvl, options) {
|
||||
if (!hasValue && !hasDefaultValue) throw new Error('The prop "'.concat(name, '" has no value and no default: could not be formatted'));
|
||||
var usedValue = hasValue ? value : defaultValue, useBooleanShorthandSyntax = options.useBooleanShorthandSyntax, tabStop = options.tabStop, formattedPropValue = formatPropValue(usedValue, inline, lvl, options), attributeFormattedInline = " ", attributeFormattedMultiline = `
|
||||
`.concat(spacer(lvl + 1, tabStop)), isMultilineAttribute = formattedPropValue.includes(`
|
||||
`);
|
||||
return useBooleanShorthandSyntax && formattedPropValue === "{false}" && !hasDefaultValue ? (attributeFormattedInline = "", attributeFormattedMultiline = "") : useBooleanShorthandSyntax && formattedPropValue === "{true}" ? (attributeFormattedInline += "".concat(name), attributeFormattedMultiline += "".concat(name)) : (attributeFormattedInline += "".concat(name, "=").concat(formattedPropValue), attributeFormattedMultiline += "".concat(name, "=").concat(formattedPropValue)), { attributeFormattedInline, attributeFormattedMultiline, isMultilineAttribute };
|
||||
};
|
||||
var mergeSiblingPlainStringChildrenReducer = function(previousNodes, currentNode) {
|
||||
var nodes = previousNodes.slice(0, previousNodes.length > 0 ? previousNodes.length - 1 : 0), previousNode = previousNodes[previousNodes.length - 1];
|
||||
return previousNode && (currentNode.type === "string" || currentNode.type === "number") && (previousNode.type === "string" || previousNode.type === "number") ? nodes.push(createStringTreeNode(String(previousNode.value) + String(currentNode.value))) : (previousNode && nodes.push(previousNode), nodes.push(currentNode)), nodes;
|
||||
};
|
||||
var isKeyOrRefProps = function(propName) {
|
||||
return ["key", "ref"].includes(propName);
|
||||
};
|
||||
var sortPropsByNames = function(shouldSortUserProps) {
|
||||
return function(props) {
|
||||
var haveKeyProp = props.includes("key"), haveRefProp = props.includes("ref"), userPropsOnly = props.filter(function(oneProp) {
|
||||
return !isKeyOrRefProps(oneProp);
|
||||
}), sortedProps = _toConsumableArray(shouldSortUserProps ? userPropsOnly.sort() : userPropsOnly);
|
||||
return haveRefProp && sortedProps.unshift("ref"), haveKeyProp && sortedProps.unshift("key"), sortedProps;
|
||||
};
|
||||
};
|
||||
function createPropFilter(props, filter) {
|
||||
return Array.isArray(filter) ? function(key) {
|
||||
return filter.indexOf(key) === -1;
|
||||
} : function(key) {
|
||||
return filter(props[key], key);
|
||||
};
|
||||
}
|
||||
var compensateMultilineStringElementIndentation = function(element, formattedElement, inline, lvl, options) {
|
||||
var tabStop = options.tabStop;
|
||||
return element.type === "string" ? formattedElement.split(`
|
||||
`).map(function(line, offset) {
|
||||
return offset === 0 ? line : "".concat(spacer(lvl, tabStop)).concat(line);
|
||||
}).join(`
|
||||
`) : formattedElement;
|
||||
};
|
||||
var formatOneChildren = function(inline, lvl, options) {
|
||||
return function(element) {
|
||||
return compensateMultilineStringElementIndentation(element, formatTreeNode(element, inline, lvl, options), inline, lvl, options);
|
||||
};
|
||||
};
|
||||
var onlyPropsWithOriginalValue = function(defaultProps, props) {
|
||||
return function(propName) {
|
||||
var haveDefaultValue = Object.keys(defaultProps).includes(propName);
|
||||
return !haveDefaultValue || haveDefaultValue && defaultProps[propName] !== props[propName];
|
||||
};
|
||||
};
|
||||
var isInlineAttributeTooLong = function(attributes, inlineAttributeString, lvl, tabStop, maxInlineAttributesLineLength) {
|
||||
return maxInlineAttributesLineLength ? spacer(lvl, tabStop).length + inlineAttributeString.length > maxInlineAttributesLineLength : attributes.length > 1;
|
||||
};
|
||||
var shouldRenderMultilineAttr = function(attributes, inlineAttributeString, containsMultilineAttr, inline, lvl, tabStop, maxInlineAttributesLineLength) {
|
||||
return (isInlineAttributeTooLong(attributes, inlineAttributeString, lvl, tabStop, maxInlineAttributesLineLength) || containsMultilineAttr) && !inline;
|
||||
};
|
||||
var formatReactElementNode = function(node, inline, lvl, options) {
|
||||
var type = node.type, _node$displayName = node.displayName, displayName = _node$displayName === void 0 ? "" : _node$displayName, childrens = node.childrens, _node$props = node.props, props = _node$props === void 0 ? {} : _node$props, _node$defaultProps = node.defaultProps, defaultProps = _node$defaultProps === void 0 ? {} : _node$defaultProps;
|
||||
if (type !== "ReactElement") throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(type));
|
||||
var filterProps3 = options.filterProps, maxInlineAttributesLineLength = options.maxInlineAttributesLineLength, showDefaultProps = options.showDefaultProps, sortProps = options.sortProps, tabStop = options.tabStop, out = "<".concat(displayName), outInlineAttr = out, outMultilineAttr = out, containsMultilineAttr = false, visibleAttributeNames = [], propFilter = createPropFilter(props, filterProps3);
|
||||
Object.keys(props).filter(propFilter).filter(onlyPropsWithOriginalValue(defaultProps, props)).forEach(function(propName) {
|
||||
return visibleAttributeNames.push(propName);
|
||||
}), Object.keys(defaultProps).filter(propFilter).filter(function() {
|
||||
return showDefaultProps;
|
||||
}).filter(function(defaultPropName) {
|
||||
return !visibleAttributeNames.includes(defaultPropName);
|
||||
}).forEach(function(defaultPropName) {
|
||||
return visibleAttributeNames.push(defaultPropName);
|
||||
});
|
||||
var attributes = sortPropsByNames(sortProps)(visibleAttributeNames);
|
||||
if (attributes.forEach(function(attributeName) {
|
||||
var _formatProp = formatProp(attributeName, Object.keys(props).includes(attributeName), props[attributeName], Object.keys(defaultProps).includes(attributeName), defaultProps[attributeName], inline, lvl, options), attributeFormattedInline = _formatProp.attributeFormattedInline, attributeFormattedMultiline = _formatProp.attributeFormattedMultiline, isMultilineAttribute = _formatProp.isMultilineAttribute;
|
||||
isMultilineAttribute && (containsMultilineAttr = true), outInlineAttr += attributeFormattedInline, outMultilineAttr += attributeFormattedMultiline;
|
||||
}), outMultilineAttr += `
|
||||
`.concat(spacer(lvl, tabStop)), shouldRenderMultilineAttr(attributes, outInlineAttr, containsMultilineAttr, inline, lvl, tabStop, maxInlineAttributesLineLength) ? out = outMultilineAttr : out = outInlineAttr, childrens && childrens.length > 0) {
|
||||
var newLvl = lvl + 1;
|
||||
out += ">", inline || (out += `
|
||||
`, out += spacer(newLvl, tabStop)), out += childrens.reduce(mergeSiblingPlainStringChildrenReducer, []).map(formatOneChildren(inline, newLvl, options)).join(inline ? "" : `
|
||||
`.concat(spacer(newLvl, tabStop))), inline || (out += `
|
||||
`, out += spacer(newLvl - 1, tabStop)), out += "</".concat(displayName, ">");
|
||||
} else isInlineAttributeTooLong(attributes, outInlineAttr, lvl, tabStop, maxInlineAttributesLineLength) || (out += " "), out += "/>";
|
||||
return out;
|
||||
};
|
||||
var REACT_FRAGMENT_TAG_NAME_SHORT_SYNTAX = "";
|
||||
var REACT_FRAGMENT_TAG_NAME_EXPLICIT_SYNTAX = "React.Fragment";
|
||||
var toReactElementTreeNode = function(displayName, key, childrens) {
|
||||
var props = {};
|
||||
return key && (props = { key }), { type: "ReactElement", displayName, props, defaultProps: {}, childrens };
|
||||
};
|
||||
var isKeyedFragment = function(_ref) {
|
||||
var key = _ref.key;
|
||||
return !!key;
|
||||
};
|
||||
var hasNoChildren = function(_ref2) {
|
||||
var childrens = _ref2.childrens;
|
||||
return childrens.length === 0;
|
||||
};
|
||||
var formatReactFragmentNode = function(node, inline, lvl, options) {
|
||||
var type = node.type, key = node.key, childrens = node.childrens;
|
||||
if (type !== "ReactFragment") throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(type));
|
||||
var useFragmentShortSyntax = options.useFragmentShortSyntax, displayName;
|
||||
return useFragmentShortSyntax ? hasNoChildren(node) || isKeyedFragment(node) ? displayName = REACT_FRAGMENT_TAG_NAME_EXPLICIT_SYNTAX : displayName = REACT_FRAGMENT_TAG_NAME_SHORT_SYNTAX : displayName = REACT_FRAGMENT_TAG_NAME_EXPLICIT_SYNTAX, formatReactElementNode(toReactElementTreeNode(displayName, key, childrens), inline, lvl, options);
|
||||
};
|
||||
var jsxStopChars = ["<", ">", "{", "}"];
|
||||
var shouldBeEscaped = function(s) {
|
||||
return jsxStopChars.some(function(jsxStopChar) {
|
||||
return s.includes(jsxStopChar);
|
||||
});
|
||||
};
|
||||
var escape2 = function(s) {
|
||||
return shouldBeEscaped(s) ? "{`".concat(s, "`}") : s;
|
||||
};
|
||||
var preserveTrailingSpace = function(s) {
|
||||
var result = s;
|
||||
return result.endsWith(" ") && (result = result.replace(/^(.*?)(\s+)$/, "$1{'$2'}")), result.startsWith(" ") && (result = result.replace(/^(\s+)(.*)$/, "{'$1'}$2")), result;
|
||||
};
|
||||
var formatTreeNode = function(node, inline, lvl, options) {
|
||||
if (node.type === "number") return String(node.value);
|
||||
if (node.type === "string") return node.value ? "".concat(preserveTrailingSpace(escape2(String(node.value)))) : "";
|
||||
if (node.type === "ReactElement") return formatReactElementNode(node, inline, lvl, options);
|
||||
if (node.type === "ReactFragment") return formatReactFragmentNode(node, inline, lvl, options);
|
||||
throw new TypeError('Unknow format type "'.concat(node.type, '"'));
|
||||
};
|
||||
var formatTree = function(node, options) {
|
||||
return formatTreeNode(node, false, 0, options);
|
||||
};
|
||||
var reactElementToJsxString = function(element) {
|
||||
var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, _ref$filterProps = _ref.filterProps, filterProps3 = _ref$filterProps === void 0 ? [] : _ref$filterProps, _ref$showDefaultProps = _ref.showDefaultProps, showDefaultProps = _ref$showDefaultProps === void 0 ? true : _ref$showDefaultProps, _ref$showFunctions = _ref.showFunctions, showFunctions = _ref$showFunctions === void 0 ? false : _ref$showFunctions, functionValue = _ref.functionValue, _ref$tabStop = _ref.tabStop, tabStop = _ref$tabStop === void 0 ? 2 : _ref$tabStop, _ref$useBooleanShorth = _ref.useBooleanShorthandSyntax, useBooleanShorthandSyntax = _ref$useBooleanShorth === void 0 ? true : _ref$useBooleanShorth, _ref$useFragmentShort = _ref.useFragmentShortSyntax, useFragmentShortSyntax = _ref$useFragmentShort === void 0 ? true : _ref$useFragmentShort, _ref$sortProps = _ref.sortProps, sortProps = _ref$sortProps === void 0 ? true : _ref$sortProps, maxInlineAttributesLineLength = _ref.maxInlineAttributesLineLength, displayName = _ref.displayName;
|
||||
if (!element) throw new Error("react-element-to-jsx-string: Expected a ReactElement");
|
||||
var options = { filterProps: filterProps3, showDefaultProps, showFunctions, functionValue, tabStop, useBooleanShorthandSyntax, useFragmentShortSyntax, sortProps, maxInlineAttributesLineLength, displayName };
|
||||
return formatTree(parseReactElement(element, options), options);
|
||||
};
|
||||
|
||||
// node_modules/@storybook/react/dist/chunk-AWLHXXSE.mjs
|
||||
var import_react2 = __toESM(require_react(), 1);
|
||||
var import_client_logger = __toESM(require_client_logger(), 1);
|
||||
var import_preview_api = __toESM(require_preview_api(), 1);
|
||||
var entry_preview_docs_exports = {};
|
||||
__export(entry_preview_docs_exports, { applyDecorators: () => applyDecorators2, decorators: () => decorators, parameters: () => parameters });
|
||||
var reactElementToJSXString = reactElementToJsxString;
|
||||
var toPascalCase = (str) => str.charAt(0).toUpperCase() + str.slice(1);
|
||||
var getReactSymbolName = (elementType) => (elementType.$$typeof || elementType).toString().replace(/^Symbol\((.*)\)$/, "$1").split(".").map((segment) => segment.split("_").map(toPascalCase).join("")).join(".");
|
||||
function simplifyNodeForStringify(node) {
|
||||
if ((0, import_react2.isValidElement)(node)) {
|
||||
let props = Object.keys(node.props).reduce((acc, cur) => (acc[cur] = simplifyNodeForStringify(node.props[cur]), acc), {});
|
||||
return { ...node, props, _owner: null };
|
||||
}
|
||||
return Array.isArray(node) ? node.map(simplifyNodeForStringify) : node;
|
||||
}
|
||||
var renderJsx = (code, options) => {
|
||||
if (typeof code > "u") return import_client_logger.logger.warn("Too many skip or undefined component"), null;
|
||||
let renderedJSX = code, Type = renderedJSX.type;
|
||||
for (let i = 0; i < (options == null ? void 0 : options.skip); i += 1) {
|
||||
if (typeof renderedJSX > "u") return import_client_logger.logger.warn("Cannot skip undefined element"), null;
|
||||
if (import_react2.default.Children.count(renderedJSX) > 1) return import_client_logger.logger.warn("Trying to skip an array of elements"), null;
|
||||
typeof renderedJSX.props.children > "u" ? (import_client_logger.logger.warn("Not enough children to skip elements."), typeof renderedJSX.type == "function" && renderedJSX.type.name === "" && (renderedJSX = import_react2.default.createElement(Type, { ...renderedJSX.props }))) : typeof renderedJSX.props.children == "function" ? renderedJSX = renderedJSX.props.children() : renderedJSX = renderedJSX.props.children;
|
||||
}
|
||||
let displayNameDefaults;
|
||||
typeof (options == null ? void 0 : options.displayName) == "string" ? displayNameDefaults = { showFunctions: true, displayName: () => options.displayName } : displayNameDefaults = { displayName: (el) => {
|
||||
var _a;
|
||||
return el.type.displayName ? el.type.displayName : pt(el.type, "displayName") ? pt(el.type, "displayName") : ((_a = el.type.render) == null ? void 0 : _a.displayName) ? el.type.render.displayName : typeof el.type == "symbol" || el.type.$$typeof && typeof el.type.$$typeof == "symbol" ? getReactSymbolName(el.type) : el.type.name && el.type.name !== "_default" ? el.type.name : typeof el.type == "function" ? "No Display Name" : isForwardRef(el.type) ? el.type.render.name : isMemo(el.type) ? el.type.type.name : el.type;
|
||||
} };
|
||||
let opts = { ...displayNameDefaults, ...{ filterProps: (value, key) => value !== void 0 }, ...options };
|
||||
return import_react2.default.Children.map(code, (c) => {
|
||||
let child = typeof c == "number" ? c.toString() : c, string = (typeof reactElementToJSXString == "function" ? reactElementToJSXString : reactElementToJSXString.default)(simplifyNodeForStringify(child), opts);
|
||||
if (string.indexOf(""") > -1) {
|
||||
let matches = string.match(/\S+=\\"([^"]*)\\"/g);
|
||||
matches && matches.forEach((match) => {
|
||||
string = string.replace(match, match.replace(/"/g, "'"));
|
||||
});
|
||||
}
|
||||
return string;
|
||||
}).join(`
|
||||
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g, "() => {}");
|
||||
};
|
||||
var defaultOpts = { skip: 0, showFunctions: false, enableBeautify: true, showDefaultProps: false };
|
||||
var skipJsxRender = (context) => {
|
||||
var _a;
|
||||
let sourceParams = (_a = context == null ? void 0 : context.parameters.docs) == null ? void 0 : _a.source, isArgsStory = context == null ? void 0 : context.parameters.__isArgsStory;
|
||||
return (sourceParams == null ? void 0 : sourceParams.type) === Tn.DYNAMIC ? false : !isArgsStory || (sourceParams == null ? void 0 : sourceParams.code) || (sourceParams == null ? void 0 : sourceParams.type) === Tn.CODE;
|
||||
};
|
||||
var isMdx = (node) => {
|
||||
var _a, _b;
|
||||
return ((_a = node.type) == null ? void 0 : _a.displayName) === "MDXCreateElement" && !!((_b = node.props) == null ? void 0 : _b.mdxType);
|
||||
};
|
||||
var mdxToJsx = (node) => {
|
||||
if (!isMdx(node)) return node;
|
||||
let { mdxType, originalType, children, ...rest } = node.props, jsxChildren = [];
|
||||
return children && (jsxChildren = (Array.isArray(children) ? children : [children]).map(mdxToJsx)), (0, import_react2.createElement)(originalType, rest, ...jsxChildren);
|
||||
};
|
||||
var jsxDecorator = (storyFn, context) => {
|
||||
let jsx = (0, import_preview_api.useRef)(void 0), story = storyFn(), skip = skipJsxRender(context), options = { ...defaultOpts, ...(context == null ? void 0 : context.parameters.jsx) || {} }, storyJsx = context.originalStoryFn(context.args, context);
|
||||
return (0, import_preview_api.useEffect)(() => {
|
||||
if (skip) return;
|
||||
let sourceJsx = mdxToJsx(storyJsx), rendered = renderJsx(sourceJsx, options);
|
||||
rendered && jsx.current !== rendered && ((0, import_preview_api.emitTransformCode)(rendered, context), jsx.current = rendered);
|
||||
}), story;
|
||||
};
|
||||
var applyDecorators2 = (storyFn, decorators2) => {
|
||||
let jsxIndex = decorators2.findIndex((d) => d.originalFn === jsxDecorator), reorderedDecorators = jsxIndex === -1 ? decorators2 : [...decorators2.splice(jsxIndex, 1), ...decorators2];
|
||||
return applyDecorators(storyFn, reorderedDecorators);
|
||||
};
|
||||
var decorators = [jsxDecorator];
|
||||
var parameters = { docs: { story: { inline: true } } };
|
||||
|
||||
export {
|
||||
isMemo,
|
||||
reactElementToJsxString,
|
||||
entry_preview_docs_exports,
|
||||
applyDecorators2,
|
||||
decorators,
|
||||
parameters
|
||||
};
|
||||
//# sourceMappingURL=chunk-AHTFTWU7.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,43 +0,0 @@
|
||||
import {
|
||||
require_basePickBy
|
||||
} from "./chunk-67PDOJAZ.js";
|
||||
import {
|
||||
require_getAllKeysIn
|
||||
} from "./chunk-H7PKSDIL.js";
|
||||
import {
|
||||
require_baseIteratee
|
||||
} from "./chunk-OWSY6HAM.js";
|
||||
import {
|
||||
require_arrayMap
|
||||
} from "./chunk-3NBNF4EG.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/pickBy.js
|
||||
var require_pickBy = __commonJS({
|
||||
"node_modules/lodash/pickBy.js"(exports, module) {
|
||||
var arrayMap = require_arrayMap();
|
||||
var baseIteratee = require_baseIteratee();
|
||||
var basePickBy = require_basePickBy();
|
||||
var getAllKeysIn = require_getAllKeysIn();
|
||||
function pickBy(object, predicate) {
|
||||
if (object == null) {
|
||||
return {};
|
||||
}
|
||||
var props = arrayMap(getAllKeysIn(object), function(prop) {
|
||||
return [prop];
|
||||
});
|
||||
predicate = baseIteratee(predicate);
|
||||
return basePickBy(object, props, function(value, path) {
|
||||
return predicate(value, path[0]);
|
||||
});
|
||||
}
|
||||
module.exports = pickBy;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_pickBy
|
||||
};
|
||||
//# sourceMappingURL=chunk-AHZRVWWA.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/pickBy.js"],
|
||||
"sourcesContent": ["var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n basePickBy = require('./_basePickBy'),\n getAllKeysIn = require('./_getAllKeysIn');\n\n/**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\nfunction pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = baseIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n}\n\nmodule.exports = pickBy;\n"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,QAAI,WAAW;AAAf,QACI,eAAe;AADnB,QAEI,aAAa;AAFjB,QAGI,eAAe;AAoBnB,aAAS,OAAO,QAAQ,WAAW;AACjC,UAAI,UAAU,MAAM;AAClB,eAAO,CAAC;AAAA,MACV;AACA,UAAI,QAAQ,SAAS,aAAa,MAAM,GAAG,SAAS,MAAM;AACxD,eAAO,CAAC,IAAI;AAAA,MACd,CAAC;AACD,kBAAY,aAAa,SAAS;AAClC,aAAO,WAAW,QAAQ,OAAO,SAAS,OAAO,MAAM;AACrD,eAAO,UAAU,OAAO,KAAK,CAAC,CAAC;AAAA,MACjC,CAAC;AAAA,IACH;AAEA,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,34 +0,0 @@
|
||||
import {
|
||||
require_isObject
|
||||
} from "./chunk-LJMOOM7L.js";
|
||||
import {
|
||||
require_baseGetTag
|
||||
} from "./chunk-FMVO6WZI.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/isFunction.js
|
||||
var require_isFunction = __commonJS({
|
||||
"node_modules/lodash/isFunction.js"(exports, module) {
|
||||
var baseGetTag = require_baseGetTag();
|
||||
var isObject = require_isObject();
|
||||
var asyncTag = "[object AsyncFunction]";
|
||||
var funcTag = "[object Function]";
|
||||
var genTag = "[object GeneratorFunction]";
|
||||
var proxyTag = "[object Proxy]";
|
||||
function isFunction(value) {
|
||||
if (!isObject(value)) {
|
||||
return false;
|
||||
}
|
||||
var tag = baseGetTag(value);
|
||||
return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
|
||||
}
|
||||
module.exports = isFunction;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_isFunction
|
||||
};
|
||||
//# sourceMappingURL=chunk-BP6K5E6K.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/isFunction.js"],
|
||||
"sourcesContent": ["var baseGetTag = require('./_baseGetTag'),\n isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n"],
|
||||
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAAA,QAAI,aAAa;AAAjB,QACI,WAAW;AAGf,QAAI,WAAW;AAAf,QACI,UAAU;AADd,QAEI,SAAS;AAFb,QAGI,WAAW;AAmBf,aAAS,WAAW,OAAO;AACzB,UAAI,CAAC,SAAS,KAAK,GAAG;AACpB,eAAO;AAAA,MACT;AAGA,UAAI,MAAM,WAAW,KAAK;AAC1B,aAAO,OAAO,WAAW,OAAO,UAAU,OAAO,YAAY,OAAO;AAAA,IACtE;AAEA,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,903 +0,0 @@
|
||||
import {
|
||||
require_global
|
||||
} from "./chunk-E4Q3YXXP.js";
|
||||
import {
|
||||
applyDecorators
|
||||
} from "./chunk-OAOLO3MQ.js";
|
||||
import {
|
||||
require_react
|
||||
} from "./chunk-WIJRE3H4.js";
|
||||
import {
|
||||
__commonJS,
|
||||
__export,
|
||||
__toESM as __toESM2
|
||||
} from "./chunk-DF7VAP3D.js";
|
||||
import {
|
||||
__toESM
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/@storybook/react/dist/chunk-MNKU3DTE.mjs
|
||||
var React3 = __toESM(require_react(), 1);
|
||||
var import_react = __toESM(require_react(), 1);
|
||||
var import_global = __toESM(require_global(), 1);
|
||||
var require_constants = __commonJS({ "../../node_modules/semver/internal/constants.js"(exports, module) {
|
||||
var SEMVER_SPEC_VERSION = "2.0.0", MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991, MAX_SAFE_COMPONENT_LENGTH = 16, MAX_SAFE_BUILD_LENGTH = 250, RELEASE_TYPES = ["major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease"];
|
||||
module.exports = { MAX_LENGTH: 256, MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_SAFE_INTEGER, RELEASE_TYPES, SEMVER_SPEC_VERSION, FLAG_INCLUDE_PRERELEASE: 1, FLAG_LOOSE: 2 };
|
||||
} });
|
||||
var require_debug = __commonJS({ "../../node_modules/semver/internal/debug.js"(exports, module) {
|
||||
var debug = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
||||
};
|
||||
module.exports = debug;
|
||||
} });
|
||||
var require_re = __commonJS({ "../../node_modules/semver/internal/re.js"(exports, module) {
|
||||
var { MAX_SAFE_COMPONENT_LENGTH, MAX_SAFE_BUILD_LENGTH, MAX_LENGTH } = require_constants(), debug = require_debug();
|
||||
exports = module.exports = {};
|
||||
var re = exports.re = [], safeRe = exports.safeRe = [], src = exports.src = [], safeSrc = exports.safeSrc = [], t = exports.t = {}, R = 0, LETTERDASHNUMBER = "[a-zA-Z0-9-]", safeRegexReplacements = [["\\s", 1], ["\\d", MAX_LENGTH], [LETTERDASHNUMBER, MAX_SAFE_BUILD_LENGTH]], makeSafeRegex = (value) => {
|
||||
for (let [token, max] of safeRegexReplacements) value = value.split(`${token}*`).join(`${token}{0,${max}}`).split(`${token}+`).join(`${token}{1,${max}}`);
|
||||
return value;
|
||||
}, createToken = (name, value, isGlobal) => {
|
||||
let safe = makeSafeRegex(value), index = R++;
|
||||
debug(name, index, value), t[name] = index, src[index] = value, safeSrc[index] = safe, re[index] = new RegExp(value, isGlobal ? "g" : void 0), safeRe[index] = new RegExp(safe, isGlobal ? "g" : void 0);
|
||||
};
|
||||
createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
|
||||
createToken("NUMERICIDENTIFIERLOOSE", "\\d+");
|
||||
createToken("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${LETTERDASHNUMBER}*`);
|
||||
createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
|
||||
createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
||||
createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIER]})`);
|
||||
createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NONNUMERICIDENTIFIER]}|${src[t.NUMERICIDENTIFIERLOOSE]})`);
|
||||
createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
|
||||
createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
|
||||
createToken("BUILDIDENTIFIER", `${LETTERDASHNUMBER}+`);
|
||||
createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
|
||||
createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
|
||||
createToken("FULL", `^${src[t.FULLPLAIN]}$`);
|
||||
createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
|
||||
createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
|
||||
createToken("GTLT", "((?:<|>)?=?)");
|
||||
createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
|
||||
createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
|
||||
createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
|
||||
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
|
||||
createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
|
||||
createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
|
||||
createToken("COERCEPLAIN", `(^|[^\\d])(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
||||
createToken("COERCE", `${src[t.COERCEPLAIN]}(?:$|[^\\d])`);
|
||||
createToken("COERCEFULL", src[t.COERCEPLAIN] + `(?:${src[t.PRERELEASE]})?(?:${src[t.BUILD]})?(?:$|[^\\d])`);
|
||||
createToken("COERCERTL", src[t.COERCE], true);
|
||||
createToken("COERCERTLFULL", src[t.COERCEFULL], true);
|
||||
createToken("LONETILDE", "(?:~>?)");
|
||||
createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
|
||||
exports.tildeTrimReplace = "$1~";
|
||||
createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
|
||||
createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
|
||||
createToken("LONECARET", "(?:\\^)");
|
||||
createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
|
||||
exports.caretTrimReplace = "$1^";
|
||||
createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
|
||||
createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
|
||||
createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
|
||||
createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
|
||||
createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
|
||||
exports.comparatorTrimReplace = "$1$2$3";
|
||||
createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
|
||||
createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
|
||||
createToken("STAR", "(<|>)?=?\\s*\\*");
|
||||
createToken("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$");
|
||||
createToken("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
||||
} });
|
||||
var require_parse_options = __commonJS({ "../../node_modules/semver/internal/parse-options.js"(exports, module) {
|
||||
var looseOption = Object.freeze({ loose: true }), emptyOpts = Object.freeze({}), parseOptions = (options) => options ? typeof options != "object" ? looseOption : options : emptyOpts;
|
||||
module.exports = parseOptions;
|
||||
} });
|
||||
var require_identifiers = __commonJS({ "../../node_modules/semver/internal/identifiers.js"(exports, module) {
|
||||
var numeric = /^[0-9]+$/, compareIdentifiers = (a, b) => {
|
||||
let anum = numeric.test(a), bnum = numeric.test(b);
|
||||
return anum && bnum && (a = +a, b = +b), a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
|
||||
}, rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
|
||||
module.exports = { compareIdentifiers, rcompareIdentifiers };
|
||||
} });
|
||||
var require_semver = __commonJS({ "../../node_modules/semver/classes/semver.js"(exports, module) {
|
||||
var debug = require_debug(), { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants(), { safeRe: re, t } = require_re(), parseOptions = require_parse_options(), { compareIdentifiers } = require_identifiers(), SemVer = class _SemVer {
|
||||
constructor(version2, options) {
|
||||
if (options = parseOptions(options), version2 instanceof _SemVer) {
|
||||
if (version2.loose === !!options.loose && version2.includePrerelease === !!options.includePrerelease) return version2;
|
||||
version2 = version2.version;
|
||||
} else if (typeof version2 != "string") throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version2}".`);
|
||||
if (version2.length > MAX_LENGTH) throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
|
||||
debug("SemVer", version2, options), this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease;
|
||||
let m = version2.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL]);
|
||||
if (!m) throw new TypeError(`Invalid Version: ${version2}`);
|
||||
if (this.raw = version2, this.major = +m[1], this.minor = +m[2], this.patch = +m[3], this.major > MAX_SAFE_INTEGER || this.major < 0) throw new TypeError("Invalid major version");
|
||||
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) throw new TypeError("Invalid minor version");
|
||||
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) throw new TypeError("Invalid patch version");
|
||||
m[4] ? this.prerelease = m[4].split(".").map((id) => {
|
||||
if (/^[0-9]+$/.test(id)) {
|
||||
let num = +id;
|
||||
if (num >= 0 && num < MAX_SAFE_INTEGER) return num;
|
||||
}
|
||||
return id;
|
||||
}) : this.prerelease = [], this.build = m[5] ? m[5].split(".") : [], this.format();
|
||||
}
|
||||
format() {
|
||||
return this.version = `${this.major}.${this.minor}.${this.patch}`, this.prerelease.length && (this.version += `-${this.prerelease.join(".")}`), this.version;
|
||||
}
|
||||
toString() {
|
||||
return this.version;
|
||||
}
|
||||
compare(other) {
|
||||
if (debug("SemVer.compare", this.version, this.options, other), !(other instanceof _SemVer)) {
|
||||
if (typeof other == "string" && other === this.version) return 0;
|
||||
other = new _SemVer(other, this.options);
|
||||
}
|
||||
return other.version === this.version ? 0 : this.compareMain(other) || this.comparePre(other);
|
||||
}
|
||||
compareMain(other) {
|
||||
return other instanceof _SemVer || (other = new _SemVer(other, this.options)), compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
|
||||
}
|
||||
comparePre(other) {
|
||||
if (other instanceof _SemVer || (other = new _SemVer(other, this.options)), this.prerelease.length && !other.prerelease.length) return -1;
|
||||
if (!this.prerelease.length && other.prerelease.length) return 1;
|
||||
if (!this.prerelease.length && !other.prerelease.length) return 0;
|
||||
let i = 0;
|
||||
do {
|
||||
let a = this.prerelease[i], b = other.prerelease[i];
|
||||
if (debug("prerelease compare", i, a, b), a === void 0 && b === void 0) return 0;
|
||||
if (b === void 0) return 1;
|
||||
if (a === void 0) return -1;
|
||||
if (a === b) continue;
|
||||
return compareIdentifiers(a, b);
|
||||
} while (++i);
|
||||
}
|
||||
compareBuild(other) {
|
||||
other instanceof _SemVer || (other = new _SemVer(other, this.options));
|
||||
let i = 0;
|
||||
do {
|
||||
let a = this.build[i], b = other.build[i];
|
||||
if (debug("build compare", i, a, b), a === void 0 && b === void 0) return 0;
|
||||
if (b === void 0) return 1;
|
||||
if (a === void 0) return -1;
|
||||
if (a === b) continue;
|
||||
return compareIdentifiers(a, b);
|
||||
} while (++i);
|
||||
}
|
||||
inc(release, identifier, identifierBase) {
|
||||
if (release.startsWith("pre")) {
|
||||
if (!identifier && identifierBase === false) throw new Error("invalid increment argument: identifier is empty");
|
||||
if (identifier) {
|
||||
let match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
||||
if (!match || match[1] !== identifier) throw new Error(`invalid identifier: ${identifier}`);
|
||||
}
|
||||
}
|
||||
switch (release) {
|
||||
case "premajor":
|
||||
this.prerelease.length = 0, this.patch = 0, this.minor = 0, this.major++, this.inc("pre", identifier, identifierBase);
|
||||
break;
|
||||
case "preminor":
|
||||
this.prerelease.length = 0, this.patch = 0, this.minor++, this.inc("pre", identifier, identifierBase);
|
||||
break;
|
||||
case "prepatch":
|
||||
this.prerelease.length = 0, this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
||||
break;
|
||||
case "prerelease":
|
||||
this.prerelease.length === 0 && this.inc("patch", identifier, identifierBase), this.inc("pre", identifier, identifierBase);
|
||||
break;
|
||||
case "release":
|
||||
if (this.prerelease.length === 0) throw new Error(`version ${this.raw} is not a prerelease`);
|
||||
this.prerelease.length = 0;
|
||||
break;
|
||||
case "major":
|
||||
(this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) && this.major++, this.minor = 0, this.patch = 0, this.prerelease = [];
|
||||
break;
|
||||
case "minor":
|
||||
(this.patch !== 0 || this.prerelease.length === 0) && this.minor++, this.patch = 0, this.prerelease = [];
|
||||
break;
|
||||
case "patch":
|
||||
this.prerelease.length === 0 && this.patch++, this.prerelease = [];
|
||||
break;
|
||||
case "pre": {
|
||||
let base = Number(identifierBase) ? 1 : 0;
|
||||
if (this.prerelease.length === 0) this.prerelease = [base];
|
||||
else {
|
||||
let i = this.prerelease.length;
|
||||
for (; --i >= 0; ) typeof this.prerelease[i] == "number" && (this.prerelease[i]++, i = -2);
|
||||
if (i === -1) {
|
||||
if (identifier === this.prerelease.join(".") && identifierBase === false) throw new Error("invalid increment argument: identifier already exists");
|
||||
this.prerelease.push(base);
|
||||
}
|
||||
}
|
||||
if (identifier) {
|
||||
let prerelease = [identifier, base];
|
||||
identifierBase === false && (prerelease = [identifier]), compareIdentifiers(this.prerelease[0], identifier) === 0 ? isNaN(this.prerelease[1]) && (this.prerelease = prerelease) : this.prerelease = prerelease;
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
throw new Error(`invalid increment argument: ${release}`);
|
||||
}
|
||||
return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
|
||||
}
|
||||
};
|
||||
module.exports = SemVer;
|
||||
} });
|
||||
var require_parse = __commonJS({ "../../node_modules/semver/functions/parse.js"(exports, module) {
|
||||
var SemVer = require_semver(), parse = (version2, options, throwErrors = false) => {
|
||||
if (version2 instanceof SemVer) return version2;
|
||||
try {
|
||||
return new SemVer(version2, options);
|
||||
} catch (er) {
|
||||
if (!throwErrors) return null;
|
||||
throw er;
|
||||
}
|
||||
};
|
||||
module.exports = parse;
|
||||
} });
|
||||
var require_valid = __commonJS({ "../../node_modules/semver/functions/valid.js"(exports, module) {
|
||||
var parse = require_parse(), valid = (version2, options) => {
|
||||
let v = parse(version2, options);
|
||||
return v ? v.version : null;
|
||||
};
|
||||
module.exports = valid;
|
||||
} });
|
||||
var require_clean = __commonJS({ "../../node_modules/semver/functions/clean.js"(exports, module) {
|
||||
var parse = require_parse(), clean = (version2, options) => {
|
||||
let s = parse(version2.trim().replace(/^[=v]+/, ""), options);
|
||||
return s ? s.version : null;
|
||||
};
|
||||
module.exports = clean;
|
||||
} });
|
||||
var require_inc = __commonJS({ "../../node_modules/semver/functions/inc.js"(exports, module) {
|
||||
var SemVer = require_semver(), inc = (version2, release, options, identifier, identifierBase) => {
|
||||
typeof options == "string" && (identifierBase = identifier, identifier = options, options = void 0);
|
||||
try {
|
||||
return new SemVer(version2 instanceof SemVer ? version2.version : version2, options).inc(release, identifier, identifierBase).version;
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
module.exports = inc;
|
||||
} });
|
||||
var require_diff = __commonJS({ "../../node_modules/semver/functions/diff.js"(exports, module) {
|
||||
var parse = require_parse(), diff = (version1, version2) => {
|
||||
let v1 = parse(version1, null, true), v2 = parse(version2, null, true), comparison = v1.compare(v2);
|
||||
if (comparison === 0) return null;
|
||||
let v1Higher = comparison > 0, highVersion = v1Higher ? v1 : v2, lowVersion = v1Higher ? v2 : v1, highHasPre = !!highVersion.prerelease.length;
|
||||
if (!!lowVersion.prerelease.length && !highHasPre) {
|
||||
if (!lowVersion.patch && !lowVersion.minor) return "major";
|
||||
if (lowVersion.compareMain(highVersion) === 0) return lowVersion.minor && !lowVersion.patch ? "minor" : "patch";
|
||||
}
|
||||
let prefix = highHasPre ? "pre" : "";
|
||||
return v1.major !== v2.major ? prefix + "major" : v1.minor !== v2.minor ? prefix + "minor" : v1.patch !== v2.patch ? prefix + "patch" : "prerelease";
|
||||
};
|
||||
module.exports = diff;
|
||||
} });
|
||||
var require_major = __commonJS({ "../../node_modules/semver/functions/major.js"(exports, module) {
|
||||
var SemVer = require_semver(), major = (a, loose) => new SemVer(a, loose).major;
|
||||
module.exports = major;
|
||||
} });
|
||||
var require_minor = __commonJS({ "../../node_modules/semver/functions/minor.js"(exports, module) {
|
||||
var SemVer = require_semver(), minor = (a, loose) => new SemVer(a, loose).minor;
|
||||
module.exports = minor;
|
||||
} });
|
||||
var require_patch = __commonJS({ "../../node_modules/semver/functions/patch.js"(exports, module) {
|
||||
var SemVer = require_semver(), patch = (a, loose) => new SemVer(a, loose).patch;
|
||||
module.exports = patch;
|
||||
} });
|
||||
var require_prerelease = __commonJS({ "../../node_modules/semver/functions/prerelease.js"(exports, module) {
|
||||
var parse = require_parse(), prerelease = (version2, options) => {
|
||||
let parsed = parse(version2, options);
|
||||
return parsed && parsed.prerelease.length ? parsed.prerelease : null;
|
||||
};
|
||||
module.exports = prerelease;
|
||||
} });
|
||||
var require_compare = __commonJS({ "../../node_modules/semver/functions/compare.js"(exports, module) {
|
||||
var SemVer = require_semver(), compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
|
||||
module.exports = compare;
|
||||
} });
|
||||
var require_rcompare = __commonJS({ "../../node_modules/semver/functions/rcompare.js"(exports, module) {
|
||||
var compare = require_compare(), rcompare = (a, b, loose) => compare(b, a, loose);
|
||||
module.exports = rcompare;
|
||||
} });
|
||||
var require_compare_loose = __commonJS({ "../../node_modules/semver/functions/compare-loose.js"(exports, module) {
|
||||
var compare = require_compare(), compareLoose = (a, b) => compare(a, b, true);
|
||||
module.exports = compareLoose;
|
||||
} });
|
||||
var require_compare_build = __commonJS({ "../../node_modules/semver/functions/compare-build.js"(exports, module) {
|
||||
var SemVer = require_semver(), compareBuild = (a, b, loose) => {
|
||||
let versionA = new SemVer(a, loose), versionB = new SemVer(b, loose);
|
||||
return versionA.compare(versionB) || versionA.compareBuild(versionB);
|
||||
};
|
||||
module.exports = compareBuild;
|
||||
} });
|
||||
var require_sort = __commonJS({ "../../node_modules/semver/functions/sort.js"(exports, module) {
|
||||
var compareBuild = require_compare_build(), sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
|
||||
module.exports = sort;
|
||||
} });
|
||||
var require_rsort = __commonJS({ "../../node_modules/semver/functions/rsort.js"(exports, module) {
|
||||
var compareBuild = require_compare_build(), rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
|
||||
module.exports = rsort;
|
||||
} });
|
||||
var require_gt = __commonJS({ "../../node_modules/semver/functions/gt.js"(exports, module) {
|
||||
var compare = require_compare(), gt = (a, b, loose) => compare(a, b, loose) > 0;
|
||||
module.exports = gt;
|
||||
} });
|
||||
var require_lt = __commonJS({ "../../node_modules/semver/functions/lt.js"(exports, module) {
|
||||
var compare = require_compare(), lt = (a, b, loose) => compare(a, b, loose) < 0;
|
||||
module.exports = lt;
|
||||
} });
|
||||
var require_eq = __commonJS({ "../../node_modules/semver/functions/eq.js"(exports, module) {
|
||||
var compare = require_compare(), eq = (a, b, loose) => compare(a, b, loose) === 0;
|
||||
module.exports = eq;
|
||||
} });
|
||||
var require_neq = __commonJS({ "../../node_modules/semver/functions/neq.js"(exports, module) {
|
||||
var compare = require_compare(), neq = (a, b, loose) => compare(a, b, loose) !== 0;
|
||||
module.exports = neq;
|
||||
} });
|
||||
var require_gte = __commonJS({ "../../node_modules/semver/functions/gte.js"(exports, module) {
|
||||
var compare = require_compare(), gte = (a, b, loose) => compare(a, b, loose) >= 0;
|
||||
module.exports = gte;
|
||||
} });
|
||||
var require_lte = __commonJS({ "../../node_modules/semver/functions/lte.js"(exports, module) {
|
||||
var compare = require_compare(), lte = (a, b, loose) => compare(a, b, loose) <= 0;
|
||||
module.exports = lte;
|
||||
} });
|
||||
var require_cmp = __commonJS({ "../../node_modules/semver/functions/cmp.js"(exports, module) {
|
||||
var eq = require_eq(), neq = require_neq(), gt = require_gt(), gte = require_gte(), lt = require_lt(), lte = require_lte(), cmp = (a, op, b, loose) => {
|
||||
switch (op) {
|
||||
case "===":
|
||||
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a === b;
|
||||
case "!==":
|
||||
return typeof a == "object" && (a = a.version), typeof b == "object" && (b = b.version), a !== b;
|
||||
case "":
|
||||
case "=":
|
||||
case "==":
|
||||
return eq(a, b, loose);
|
||||
case "!=":
|
||||
return neq(a, b, loose);
|
||||
case ">":
|
||||
return gt(a, b, loose);
|
||||
case ">=":
|
||||
return gte(a, b, loose);
|
||||
case "<":
|
||||
return lt(a, b, loose);
|
||||
case "<=":
|
||||
return lte(a, b, loose);
|
||||
default:
|
||||
throw new TypeError(`Invalid operator: ${op}`);
|
||||
}
|
||||
};
|
||||
module.exports = cmp;
|
||||
} });
|
||||
var require_coerce = __commonJS({ "../../node_modules/semver/functions/coerce.js"(exports, module) {
|
||||
var SemVer = require_semver(), parse = require_parse(), { safeRe: re, t } = require_re(), coerce = (version2, options) => {
|
||||
if (version2 instanceof SemVer) return version2;
|
||||
if (typeof version2 == "number" && (version2 = String(version2)), typeof version2 != "string") return null;
|
||||
options = options || {};
|
||||
let match = null;
|
||||
if (!options.rtl) match = version2.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE]);
|
||||
else {
|
||||
let coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL], next;
|
||||
for (; (next = coerceRtlRegex.exec(version2)) && (!match || match.index + match[0].length !== version2.length); ) (!match || next.index + next[0].length !== match.index + match[0].length) && (match = next), coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
||||
coerceRtlRegex.lastIndex = -1;
|
||||
}
|
||||
if (match === null) return null;
|
||||
let major = match[2], minor = match[3] || "0", patch = match[4] || "0", prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : "", build = options.includePrerelease && match[6] ? `+${match[6]}` : "";
|
||||
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options);
|
||||
};
|
||||
module.exports = coerce;
|
||||
} });
|
||||
var require_lrucache = __commonJS({ "../../node_modules/semver/internal/lrucache.js"(exports, module) {
|
||||
var LRUCache = class {
|
||||
constructor() {
|
||||
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
||||
}
|
||||
get(key) {
|
||||
let value = this.map.get(key);
|
||||
if (value !== void 0) return this.map.delete(key), this.map.set(key, value), value;
|
||||
}
|
||||
delete(key) {
|
||||
return this.map.delete(key);
|
||||
}
|
||||
set(key, value) {
|
||||
if (!this.delete(key) && value !== void 0) {
|
||||
if (this.map.size >= this.max) {
|
||||
let firstKey = this.map.keys().next().value;
|
||||
this.delete(firstKey);
|
||||
}
|
||||
this.map.set(key, value);
|
||||
}
|
||||
return this;
|
||||
}
|
||||
};
|
||||
module.exports = LRUCache;
|
||||
} });
|
||||
var require_range = __commonJS({ "../../node_modules/semver/classes/range.js"(exports, module) {
|
||||
var SPACE_CHARACTERS = /\s+/g, Range = class _Range {
|
||||
constructor(range, options) {
|
||||
if (options = parseOptions(options), range instanceof _Range) return range.loose === !!options.loose && range.includePrerelease === !!options.includePrerelease ? range : new _Range(range.raw, options);
|
||||
if (range instanceof Comparator) return this.raw = range.value, this.set = [[range]], this.formatted = void 0, this;
|
||||
if (this.options = options, this.loose = !!options.loose, this.includePrerelease = !!options.includePrerelease, this.raw = range.trim().replace(SPACE_CHARACTERS, " "), this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length), !this.set.length) throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
||||
if (this.set.length > 1) {
|
||||
let first = this.set[0];
|
||||
if (this.set = this.set.filter((c) => !isNullSet(c[0])), this.set.length === 0) this.set = [first];
|
||||
else if (this.set.length > 1) {
|
||||
for (let c of this.set) if (c.length === 1 && isAny(c[0])) {
|
||||
this.set = [c];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.formatted = void 0;
|
||||
}
|
||||
get range() {
|
||||
if (this.formatted === void 0) {
|
||||
this.formatted = "";
|
||||
for (let i = 0; i < this.set.length; i++) {
|
||||
i > 0 && (this.formatted += "||");
|
||||
let comps = this.set[i];
|
||||
for (let k = 0; k < comps.length; k++) k > 0 && (this.formatted += " "), this.formatted += comps[k].toString().trim();
|
||||
}
|
||||
}
|
||||
return this.formatted;
|
||||
}
|
||||
format() {
|
||||
return this.range;
|
||||
}
|
||||
toString() {
|
||||
return this.range;
|
||||
}
|
||||
parseRange(range) {
|
||||
let memoKey = ((this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) | (this.options.loose && FLAG_LOOSE)) + ":" + range, cached = cache.get(memoKey);
|
||||
if (cached) return cached;
|
||||
let loose = this.options.loose, hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
|
||||
range = range.replace(hr, hyphenReplace(this.options.includePrerelease)), debug("hyphen replace", range), range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace), debug("comparator trim", range), range = range.replace(re[t.TILDETRIM], tildeTrimReplace), debug("tilde trim", range), range = range.replace(re[t.CARETTRIM], caretTrimReplace), debug("caret trim", range);
|
||||
let rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options));
|
||||
loose && (rangeList = rangeList.filter((comp) => (debug("loose invalid filter", comp, this.options), !!comp.match(re[t.COMPARATORLOOSE])))), debug("range list", rangeList);
|
||||
let rangeMap = /* @__PURE__ */ new Map(), comparators = rangeList.map((comp) => new Comparator(comp, this.options));
|
||||
for (let comp of comparators) {
|
||||
if (isNullSet(comp)) return [comp];
|
||||
rangeMap.set(comp.value, comp);
|
||||
}
|
||||
rangeMap.size > 1 && rangeMap.has("") && rangeMap.delete("");
|
||||
let result = [...rangeMap.values()];
|
||||
return cache.set(memoKey, result), result;
|
||||
}
|
||||
intersects(range, options) {
|
||||
if (!(range instanceof _Range)) throw new TypeError("a Range is required");
|
||||
return this.set.some((thisComparators) => isSatisfiable(thisComparators, options) && range.set.some((rangeComparators) => isSatisfiable(rangeComparators, options) && thisComparators.every((thisComparator) => rangeComparators.every((rangeComparator) => thisComparator.intersects(rangeComparator, options)))));
|
||||
}
|
||||
test(version2) {
|
||||
if (!version2) return false;
|
||||
if (typeof version2 == "string") try {
|
||||
version2 = new SemVer(version2, this.options);
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
for (let i = 0; i < this.set.length; i++) if (testSet(this.set[i], version2, this.options)) return true;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
module.exports = Range;
|
||||
var LRU = require_lrucache(), cache = new LRU(), parseOptions = require_parse_options(), Comparator = require_comparator(), debug = require_debug(), SemVer = require_semver(), { safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, caretTrimReplace } = require_re(), { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require_constants(), isNullSet = (c) => c.value === "<0.0.0-0", isAny = (c) => c.value === "", isSatisfiable = (comparators, options) => {
|
||||
let result = true, remainingComparators = comparators.slice(), testComparator = remainingComparators.pop();
|
||||
for (; result && remainingComparators.length; ) result = remainingComparators.every((otherComparator) => testComparator.intersects(otherComparator, options)), testComparator = remainingComparators.pop();
|
||||
return result;
|
||||
}, parseComparator = (comp, options) => (debug("comp", comp, options), comp = replaceCarets(comp, options), debug("caret", comp), comp = replaceTildes(comp, options), debug("tildes", comp), comp = replaceXRanges(comp, options), debug("xrange", comp), comp = replaceStars(comp, options), debug("stars", comp), comp), isX = (id) => !id || id.toLowerCase() === "x" || id === "*", replaceTildes = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceTilde(c, options)).join(" "), replaceTilde = (comp, options) => {
|
||||
let r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
||||
return comp.replace(r, (_, M, m, p, pr) => {
|
||||
debug("tilde", comp, _, M, m, p, pr);
|
||||
let ret;
|
||||
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0 <${+M + 1}.0.0-0` : isX(p) ? ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0` : pr ? (debug("replaceTilde pr", pr), ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`) : ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`, debug("tilde return", ret), ret;
|
||||
});
|
||||
}, replaceCarets = (comp, options) => comp.trim().split(/\s+/).map((c) => replaceCaret(c, options)).join(" "), replaceCaret = (comp, options) => {
|
||||
debug("caret", comp, options);
|
||||
let r = options.loose ? re[t.CARETLOOSE] : re[t.CARET], z = options.includePrerelease ? "-0" : "";
|
||||
return comp.replace(r, (_, M, m, p, pr) => {
|
||||
debug("caret", comp, _, M, m, p, pr);
|
||||
let ret;
|
||||
return isX(M) ? ret = "" : isX(m) ? ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0` : isX(p) ? M === "0" ? ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0` : pr ? (debug("replaceCaret pr", pr), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`) : (debug("no pr"), M === "0" ? m === "0" ? ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0` : ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0` : ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`), debug("caret return", ret), ret;
|
||||
});
|
||||
}, replaceXRanges = (comp, options) => (debug("replaceXRanges", comp, options), comp.split(/\s+/).map((c) => replaceXRange(c, options)).join(" ")), replaceXRange = (comp, options) => {
|
||||
comp = comp.trim();
|
||||
let r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
||||
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
|
||||
debug("xRange", comp, ret, gtlt, M, m, p, pr);
|
||||
let xM = isX(M), xm = xM || isX(m), xp = xm || isX(p), anyX = xp;
|
||||
return gtlt === "=" && anyX && (gtlt = ""), pr = options.includePrerelease ? "-0" : "", xM ? gtlt === ">" || gtlt === "<" ? ret = "<0.0.0-0" : ret = "*" : gtlt && anyX ? (xm && (m = 0), p = 0, gtlt === ">" ? (gtlt = ">=", xm ? (M = +M + 1, m = 0, p = 0) : (m = +m + 1, p = 0)) : gtlt === "<=" && (gtlt = "<", xm ? M = +M + 1 : m = +m + 1), gtlt === "<" && (pr = "-0"), ret = `${gtlt + M}.${m}.${p}${pr}`) : xm ? ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0` : xp && (ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`), debug("xRange return", ret), ret;
|
||||
});
|
||||
}, replaceStars = (comp, options) => (debug("replaceStars", comp, options), comp.trim().replace(re[t.STAR], "")), replaceGTE0 = (comp, options) => (debug("replaceGTE0", comp, options), comp.trim().replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], "")), hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => (isX(fM) ? from = "" : isX(fm) ? from = `>=${fM}.0.0${incPr ? "-0" : ""}` : isX(fp) ? from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}` : fpr ? from = `>=${from}` : from = `>=${from}${incPr ? "-0" : ""}`, isX(tM) ? to = "" : isX(tm) ? to = `<${+tM + 1}.0.0-0` : isX(tp) ? to = `<${tM}.${+tm + 1}.0-0` : tpr ? to = `<=${tM}.${tm}.${tp}-${tpr}` : incPr ? to = `<${tM}.${tm}.${+tp + 1}-0` : to = `<=${to}`, `${from} ${to}`.trim()), testSet = (set, version2, options) => {
|
||||
for (let i = 0; i < set.length; i++) if (!set[i].test(version2)) return false;
|
||||
if (version2.prerelease.length && !options.includePrerelease) {
|
||||
for (let i = 0; i < set.length; i++) if (debug(set[i].semver), set[i].semver !== Comparator.ANY && set[i].semver.prerelease.length > 0) {
|
||||
let allowed = set[i].semver;
|
||||
if (allowed.major === version2.major && allowed.minor === version2.minor && allowed.patch === version2.patch) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
} });
|
||||
var require_comparator = __commonJS({ "../../node_modules/semver/classes/comparator.js"(exports, module) {
|
||||
var ANY = Symbol("SemVer ANY"), Comparator = class _Comparator {
|
||||
static get ANY() {
|
||||
return ANY;
|
||||
}
|
||||
constructor(comp, options) {
|
||||
if (options = parseOptions(options), comp instanceof _Comparator) {
|
||||
if (comp.loose === !!options.loose) return comp;
|
||||
comp = comp.value;
|
||||
}
|
||||
comp = comp.trim().split(/\s+/).join(" "), debug("comparator", comp, options), this.options = options, this.loose = !!options.loose, this.parse(comp), this.semver === ANY ? this.value = "" : this.value = this.operator + this.semver.version, debug("comp", this);
|
||||
}
|
||||
parse(comp) {
|
||||
let r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR], m = comp.match(r);
|
||||
if (!m) throw new TypeError(`Invalid comparator: ${comp}`);
|
||||
this.operator = m[1] !== void 0 ? m[1] : "", this.operator === "=" && (this.operator = ""), m[2] ? this.semver = new SemVer(m[2], this.options.loose) : this.semver = ANY;
|
||||
}
|
||||
toString() {
|
||||
return this.value;
|
||||
}
|
||||
test(version2) {
|
||||
if (debug("Comparator.test", version2, this.options.loose), this.semver === ANY || version2 === ANY) return true;
|
||||
if (typeof version2 == "string") try {
|
||||
version2 = new SemVer(version2, this.options);
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
return cmp(version2, this.operator, this.semver, this.options);
|
||||
}
|
||||
intersects(comp, options) {
|
||||
if (!(comp instanceof _Comparator)) throw new TypeError("a Comparator is required");
|
||||
return this.operator === "" ? this.value === "" ? true : new Range(comp.value, options).test(this.value) : comp.operator === "" ? comp.value === "" ? true : new Range(this.value, options).test(comp.semver) : (options = parseOptions(options), options.includePrerelease && (this.value === "<0.0.0-0" || comp.value === "<0.0.0-0") || !options.includePrerelease && (this.value.startsWith("<0.0.0") || comp.value.startsWith("<0.0.0")) ? false : !!(this.operator.startsWith(">") && comp.operator.startsWith(">") || this.operator.startsWith("<") && comp.operator.startsWith("<") || this.semver.version === comp.semver.version && this.operator.includes("=") && comp.operator.includes("=") || cmp(this.semver, "<", comp.semver, options) && this.operator.startsWith(">") && comp.operator.startsWith("<") || cmp(this.semver, ">", comp.semver, options) && this.operator.startsWith("<") && comp.operator.startsWith(">")));
|
||||
}
|
||||
};
|
||||
module.exports = Comparator;
|
||||
var parseOptions = require_parse_options(), { safeRe: re, t } = require_re(), cmp = require_cmp(), debug = require_debug(), SemVer = require_semver(), Range = require_range();
|
||||
} });
|
||||
var require_satisfies = __commonJS({ "../../node_modules/semver/functions/satisfies.js"(exports, module) {
|
||||
var Range = require_range(), satisfies = (version2, range, options) => {
|
||||
try {
|
||||
range = new Range(range, options);
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
return range.test(version2);
|
||||
};
|
||||
module.exports = satisfies;
|
||||
} });
|
||||
var require_to_comparators = __commonJS({ "../../node_modules/semver/ranges/to-comparators.js"(exports, module) {
|
||||
var Range = require_range(), toComparators = (range, options) => new Range(range, options).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
|
||||
module.exports = toComparators;
|
||||
} });
|
||||
var require_max_satisfying = __commonJS({ "../../node_modules/semver/ranges/max-satisfying.js"(exports, module) {
|
||||
var SemVer = require_semver(), Range = require_range(), maxSatisfying = (versions, range, options) => {
|
||||
let max = null, maxSV = null, rangeObj = null;
|
||||
try {
|
||||
rangeObj = new Range(range, options);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
return versions.forEach((v) => {
|
||||
rangeObj.test(v) && (!max || maxSV.compare(v) === -1) && (max = v, maxSV = new SemVer(max, options));
|
||||
}), max;
|
||||
};
|
||||
module.exports = maxSatisfying;
|
||||
} });
|
||||
var require_min_satisfying = __commonJS({ "../../node_modules/semver/ranges/min-satisfying.js"(exports, module) {
|
||||
var SemVer = require_semver(), Range = require_range(), minSatisfying = (versions, range, options) => {
|
||||
let min = null, minSV = null, rangeObj = null;
|
||||
try {
|
||||
rangeObj = new Range(range, options);
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
return versions.forEach((v) => {
|
||||
rangeObj.test(v) && (!min || minSV.compare(v) === 1) && (min = v, minSV = new SemVer(min, options));
|
||||
}), min;
|
||||
};
|
||||
module.exports = minSatisfying;
|
||||
} });
|
||||
var require_min_version = __commonJS({ "../../node_modules/semver/ranges/min-version.js"(exports, module) {
|
||||
var SemVer = require_semver(), Range = require_range(), gt = require_gt(), minVersion = (range, loose) => {
|
||||
range = new Range(range, loose);
|
||||
let minver = new SemVer("0.0.0");
|
||||
if (range.test(minver) || (minver = new SemVer("0.0.0-0"), range.test(minver))) return minver;
|
||||
minver = null;
|
||||
for (let i = 0; i < range.set.length; ++i) {
|
||||
let comparators = range.set[i], setMin = null;
|
||||
comparators.forEach((comparator) => {
|
||||
let compver = new SemVer(comparator.semver.version);
|
||||
switch (comparator.operator) {
|
||||
case ">":
|
||||
compver.prerelease.length === 0 ? compver.patch++ : compver.prerelease.push(0), compver.raw = compver.format();
|
||||
case "":
|
||||
case ">=":
|
||||
(!setMin || gt(compver, setMin)) && (setMin = compver);
|
||||
break;
|
||||
case "<":
|
||||
case "<=":
|
||||
break;
|
||||
default:
|
||||
throw new Error(`Unexpected operation: ${comparator.operator}`);
|
||||
}
|
||||
}), setMin && (!minver || gt(minver, setMin)) && (minver = setMin);
|
||||
}
|
||||
return minver && range.test(minver) ? minver : null;
|
||||
};
|
||||
module.exports = minVersion;
|
||||
} });
|
||||
var require_valid2 = __commonJS({ "../../node_modules/semver/ranges/valid.js"(exports, module) {
|
||||
var Range = require_range(), validRange = (range, options) => {
|
||||
try {
|
||||
return new Range(range, options).range || "*";
|
||||
} catch {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
module.exports = validRange;
|
||||
} });
|
||||
var require_outside = __commonJS({ "../../node_modules/semver/ranges/outside.js"(exports, module) {
|
||||
var SemVer = require_semver(), Comparator = require_comparator(), { ANY } = Comparator, Range = require_range(), satisfies = require_satisfies(), gt = require_gt(), lt = require_lt(), lte = require_lte(), gte = require_gte(), outside = (version2, range, hilo, options) => {
|
||||
version2 = new SemVer(version2, options), range = new Range(range, options);
|
||||
let gtfn, ltefn, ltfn, comp, ecomp;
|
||||
switch (hilo) {
|
||||
case ">":
|
||||
gtfn = gt, ltefn = lte, ltfn = lt, comp = ">", ecomp = ">=";
|
||||
break;
|
||||
case "<":
|
||||
gtfn = lt, ltefn = gte, ltfn = gt, comp = "<", ecomp = "<=";
|
||||
break;
|
||||
default:
|
||||
throw new TypeError('Must provide a hilo val of "<" or ">"');
|
||||
}
|
||||
if (satisfies(version2, range, options)) return false;
|
||||
for (let i = 0; i < range.set.length; ++i) {
|
||||
let comparators = range.set[i], high = null, low = null;
|
||||
if (comparators.forEach((comparator) => {
|
||||
comparator.semver === ANY && (comparator = new Comparator(">=0.0.0")), high = high || comparator, low = low || comparator, gtfn(comparator.semver, high.semver, options) ? high = comparator : ltfn(comparator.semver, low.semver, options) && (low = comparator);
|
||||
}), high.operator === comp || high.operator === ecomp || (!low.operator || low.operator === comp) && ltefn(version2, low.semver)) return false;
|
||||
if (low.operator === ecomp && ltfn(version2, low.semver)) return false;
|
||||
}
|
||||
return true;
|
||||
};
|
||||
module.exports = outside;
|
||||
} });
|
||||
var require_gtr = __commonJS({ "../../node_modules/semver/ranges/gtr.js"(exports, module) {
|
||||
var outside = require_outside(), gtr = (version2, range, options) => outside(version2, range, ">", options);
|
||||
module.exports = gtr;
|
||||
} });
|
||||
var require_ltr = __commonJS({ "../../node_modules/semver/ranges/ltr.js"(exports, module) {
|
||||
var outside = require_outside(), ltr = (version2, range, options) => outside(version2, range, "<", options);
|
||||
module.exports = ltr;
|
||||
} });
|
||||
var require_intersects = __commonJS({ "../../node_modules/semver/ranges/intersects.js"(exports, module) {
|
||||
var Range = require_range(), intersects = (r1, r2, options) => (r1 = new Range(r1, options), r2 = new Range(r2, options), r1.intersects(r2, options));
|
||||
module.exports = intersects;
|
||||
} });
|
||||
var require_simplify = __commonJS({ "../../node_modules/semver/ranges/simplify.js"(exports, module) {
|
||||
var satisfies = require_satisfies(), compare = require_compare();
|
||||
module.exports = (versions, range, options) => {
|
||||
let set = [], first = null, prev = null, v = versions.sort((a, b) => compare(a, b, options));
|
||||
for (let version2 of v) satisfies(version2, range, options) ? (prev = version2, first || (first = version2)) : (prev && set.push([first, prev]), prev = null, first = null);
|
||||
first && set.push([first, null]);
|
||||
let ranges = [];
|
||||
for (let [min, max] of set) min === max ? ranges.push(min) : !max && min === v[0] ? ranges.push("*") : max ? min === v[0] ? ranges.push(`<=${max}`) : ranges.push(`${min} - ${max}`) : ranges.push(`>=${min}`);
|
||||
let simplified = ranges.join(" || "), original = typeof range.raw == "string" ? range.raw : String(range);
|
||||
return simplified.length < original.length ? simplified : range;
|
||||
};
|
||||
} });
|
||||
var require_subset = __commonJS({ "../../node_modules/semver/ranges/subset.js"(exports, module) {
|
||||
var Range = require_range(), Comparator = require_comparator(), { ANY } = Comparator, satisfies = require_satisfies(), compare = require_compare(), subset = (sub, dom, options = {}) => {
|
||||
if (sub === dom) return true;
|
||||
sub = new Range(sub, options), dom = new Range(dom, options);
|
||||
let sawNonNull = false;
|
||||
OUTER: for (let simpleSub of sub.set) {
|
||||
for (let simpleDom of dom.set) {
|
||||
let isSub = simpleSubset(simpleSub, simpleDom, options);
|
||||
if (sawNonNull = sawNonNull || isSub !== null, isSub) continue OUTER;
|
||||
}
|
||||
if (sawNonNull) return false;
|
||||
}
|
||||
return true;
|
||||
}, minimumVersionWithPreRelease = [new Comparator(">=0.0.0-0")], minimumVersion = [new Comparator(">=0.0.0")], simpleSubset = (sub, dom, options) => {
|
||||
if (sub === dom) return true;
|
||||
if (sub.length === 1 && sub[0].semver === ANY) {
|
||||
if (dom.length === 1 && dom[0].semver === ANY) return true;
|
||||
options.includePrerelease ? sub = minimumVersionWithPreRelease : sub = minimumVersion;
|
||||
}
|
||||
if (dom.length === 1 && dom[0].semver === ANY) {
|
||||
if (options.includePrerelease) return true;
|
||||
dom = minimumVersion;
|
||||
}
|
||||
let eqSet = /* @__PURE__ */ new Set(), gt, lt;
|
||||
for (let c of sub) c.operator === ">" || c.operator === ">=" ? gt = higherGT(gt, c, options) : c.operator === "<" || c.operator === "<=" ? lt = lowerLT(lt, c, options) : eqSet.add(c.semver);
|
||||
if (eqSet.size > 1) return null;
|
||||
let gtltComp;
|
||||
if (gt && lt) {
|
||||
if (gtltComp = compare(gt.semver, lt.semver, options), gtltComp > 0) return null;
|
||||
if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<=")) return null;
|
||||
}
|
||||
for (let eq of eqSet) {
|
||||
if (gt && !satisfies(eq, String(gt), options) || lt && !satisfies(eq, String(lt), options)) return null;
|
||||
for (let c of dom) if (!satisfies(eq, String(c), options)) return false;
|
||||
return true;
|
||||
}
|
||||
let higher, lower, hasDomLT, hasDomGT, needDomLTPre = lt && !options.includePrerelease && lt.semver.prerelease.length ? lt.semver : false, needDomGTPre = gt && !options.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
|
||||
needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0 && (needDomLTPre = false);
|
||||
for (let c of dom) {
|
||||
if (hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=", hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=", gt) {
|
||||
if (needDomGTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch && (needDomGTPre = false), c.operator === ">" || c.operator === ">=") {
|
||||
if (higher = higherGT(gt, c, options), higher === c && higher !== gt) return false;
|
||||
} else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options)) return false;
|
||||
}
|
||||
if (lt) {
|
||||
if (needDomLTPre && c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch && (needDomLTPre = false), c.operator === "<" || c.operator === "<=") {
|
||||
if (lower = lowerLT(lt, c, options), lower === c && lower !== lt) return false;
|
||||
} else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options)) return false;
|
||||
}
|
||||
if (!c.operator && (lt || gt) && gtltComp !== 0) return false;
|
||||
}
|
||||
return !(gt && hasDomLT && !lt && gtltComp !== 0 || lt && hasDomGT && !gt && gtltComp !== 0 || needDomGTPre || needDomLTPre);
|
||||
}, higherGT = (a, b, options) => {
|
||||
if (!a) return b;
|
||||
let comp = compare(a.semver, b.semver, options);
|
||||
return comp > 0 ? a : comp < 0 || b.operator === ">" && a.operator === ">=" ? b : a;
|
||||
}, lowerLT = (a, b, options) => {
|
||||
if (!a) return b;
|
||||
let comp = compare(a.semver, b.semver, options);
|
||||
return comp < 0 ? a : comp > 0 || b.operator === "<" && a.operator === "<=" ? b : a;
|
||||
};
|
||||
module.exports = subset;
|
||||
} });
|
||||
var require_semver2 = __commonJS({ "../../node_modules/semver/index.js"(exports, module) {
|
||||
var internalRe = require_re(), constants = require_constants(), SemVer = require_semver(), identifiers = require_identifiers(), parse = require_parse(), valid = require_valid(), clean = require_clean(), inc = require_inc(), diff = require_diff(), major = require_major(), minor = require_minor(), patch = require_patch(), prerelease = require_prerelease(), compare = require_compare(), rcompare = require_rcompare(), compareLoose = require_compare_loose(), compareBuild = require_compare_build(), sort = require_sort(), rsort = require_rsort(), gt = require_gt(), lt = require_lt(), eq = require_eq(), neq = require_neq(), gte = require_gte(), lte = require_lte(), cmp = require_cmp(), coerce = require_coerce(), Comparator = require_comparator(), Range = require_range(), satisfies = require_satisfies(), toComparators = require_to_comparators(), maxSatisfying = require_max_satisfying(), minSatisfying = require_min_satisfying(), minVersion = require_min_version(), validRange = require_valid2(), outside = require_outside(), gtr = require_gtr(), ltr = require_ltr(), intersects = require_intersects(), simplifyRange = require_simplify(), subset = require_subset();
|
||||
module.exports = { parse, valid, clean, inc, diff, major, minor, patch, prerelease, compare, rcompare, compareLoose, compareBuild, sort, rsort, gt, lt, eq, neq, gte, lte, cmp, coerce, Comparator, Range, satisfies, toComparators, maxSatisfying, minSatisfying, minVersion, validRange, outside, gtr, ltr, intersects, simplifyRange, subset, SemVer, re: internalRe.re, src: internalRe.src, tokens: internalRe.t, SEMVER_SPEC_VERSION: constants.SEMVER_SPEC_VERSION, RELEASE_TYPES: constants.RELEASE_TYPES, compareIdentifiers: identifiers.compareIdentifiers, rcompareIdentifiers: identifiers.rcompareIdentifiers };
|
||||
} });
|
||||
var entry_preview_exports = {};
|
||||
__export(entry_preview_exports, { applyDecorators: () => applyDecorators, beforeAll: () => beforeAll, decorators: () => decorators, mount: () => mount, parameters: () => parameters, render: () => render, renderToCanvas: () => renderToCanvas });
|
||||
var import_semver = __toESM2(require_semver2());
|
||||
var clonedReact = { ...React3 };
|
||||
function setReactActEnvironment(isReactActEnvironment) {
|
||||
globalThis.IS_REACT_ACT_ENVIRONMENT = isReactActEnvironment;
|
||||
}
|
||||
function getReactActEnvironment() {
|
||||
return globalThis.IS_REACT_ACT_ENVIRONMENT;
|
||||
}
|
||||
function withGlobalActEnvironment(actImplementation) {
|
||||
return (callback) => {
|
||||
let previousActEnvironment = getReactActEnvironment();
|
||||
setReactActEnvironment(true);
|
||||
try {
|
||||
let callbackNeedsToBeAwaited = false, actResult = actImplementation(() => {
|
||||
let result = callback();
|
||||
return result !== null && typeof result == "object" && typeof result.then == "function" && (callbackNeedsToBeAwaited = true), result;
|
||||
});
|
||||
if (callbackNeedsToBeAwaited) {
|
||||
let thenable = actResult;
|
||||
return { then: (resolve, reject) => {
|
||||
thenable.then((returnValue) => {
|
||||
setReactActEnvironment(previousActEnvironment), resolve(returnValue);
|
||||
}, (error) => {
|
||||
setReactActEnvironment(previousActEnvironment), reject(error);
|
||||
});
|
||||
} };
|
||||
} else return setReactActEnvironment(previousActEnvironment), actResult;
|
||||
} catch (error) {
|
||||
throw setReactActEnvironment(previousActEnvironment), error;
|
||||
}
|
||||
};
|
||||
}
|
||||
var getAct = async ({ disableAct = false } = {}) => {
|
||||
var _a;
|
||||
if (disableAct) return (cb) => cb();
|
||||
let reactAct;
|
||||
if (typeof clonedReact.act == "function") reactAct = clonedReact.act;
|
||||
else {
|
||||
let deprecatedTestUtils = await import("./react-dom_test-utils.js");
|
||||
reactAct = ((_a = deprecatedTestUtils == null ? void 0 : deprecatedTestUtils.default) == null ? void 0 : _a.act) ?? deprecatedTestUtils.act;
|
||||
}
|
||||
return withGlobalActEnvironment(reactAct);
|
||||
};
|
||||
var render = (args, context) => {
|
||||
let { id, component: Component2 } = context;
|
||||
if (!Component2) throw new Error(`Unable to render story ${id} as the component annotation is missing from the default export`);
|
||||
return import_react.default.createElement(Component2, { ...args });
|
||||
};
|
||||
var { FRAMEWORK_OPTIONS } = import_global.global;
|
||||
var ErrorBoundary = class extends import_react.Component {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.state = { hasError: false };
|
||||
}
|
||||
static getDerivedStateFromError() {
|
||||
return { hasError: true };
|
||||
}
|
||||
componentDidMount() {
|
||||
let { hasError } = this.state, { showMain } = this.props;
|
||||
hasError || showMain();
|
||||
}
|
||||
componentDidCatch(err) {
|
||||
let { showException } = this.props;
|
||||
showException(err);
|
||||
}
|
||||
render() {
|
||||
let { hasError } = this.state, { children } = this.props;
|
||||
return hasError ? null : children;
|
||||
}
|
||||
};
|
||||
var Wrapper = (FRAMEWORK_OPTIONS == null ? void 0 : FRAMEWORK_OPTIONS.strictMode) ? import_react.StrictMode : import_react.Fragment;
|
||||
var actQueue = [];
|
||||
var isActing = false;
|
||||
var processActQueue = async () => {
|
||||
if (isActing || actQueue.length === 0) return;
|
||||
isActing = true;
|
||||
let actTask = actQueue.shift();
|
||||
actTask && await actTask(), isActing = false, processActQueue();
|
||||
};
|
||||
async function renderToCanvas({ storyContext, unboundStoryFn, showMain, showException, forceRemount }, canvasElement) {
|
||||
let { renderElement, unmountElement } = await import("./react-18-AFY7AHP2.js"), Story = unboundStoryFn, content = storyContext.parameters.__isPortableStory ? import_react.default.createElement(Story, { ...storyContext }) : import_react.default.createElement(ErrorBoundary, { key: storyContext.id, showMain, showException }, import_react.default.createElement(Story, { ...storyContext })), element = Wrapper ? import_react.default.createElement(Wrapper, null, content) : content;
|
||||
forceRemount && unmountElement(canvasElement);
|
||||
let act = await getAct({ disableAct: storyContext.viewMode === "docs" });
|
||||
return await new Promise(async (resolve, reject) => {
|
||||
actQueue.push(async () => {
|
||||
try {
|
||||
await act(async () => {
|
||||
var _a, _b;
|
||||
await renderElement(element, canvasElement, (_b = (_a = storyContext == null ? void 0 : storyContext.parameters) == null ? void 0 : _a.react) == null ? void 0 : _b.rootOptions);
|
||||
}), resolve();
|
||||
} catch (e) {
|
||||
reject(e);
|
||||
}
|
||||
}), processActQueue();
|
||||
}), async () => {
|
||||
await act(() => {
|
||||
unmountElement(canvasElement);
|
||||
});
|
||||
};
|
||||
}
|
||||
var mount = (context) => async (ui) => (ui != null && (context.originalStoryFn = () => ui), await context.renderToCanvas(), context.canvas);
|
||||
var decorators = [(story, context) => {
|
||||
var _a, _b;
|
||||
if (!((_b = (_a = context.parameters) == null ? void 0 : _a.react) == null ? void 0 : _b.rsc)) return story();
|
||||
let major = import_semver.default.major(React3.version), minor = import_semver.default.minor(React3.version);
|
||||
if (major < 18 || major === 18 && minor < 3) throw new Error("React Server Components require React >= 18.3");
|
||||
return React3.createElement(React3.Suspense, null, story());
|
||||
}];
|
||||
var parameters = { renderer: "react" };
|
||||
var beforeAll = async () => {
|
||||
try {
|
||||
let { configure } = await import("./storybook_test.js"), act = await getAct();
|
||||
configure({ unstable_advanceTimersWrapper: (cb) => act(cb), asyncWrapper: async (cb) => {
|
||||
let previousActEnvironment = getReactActEnvironment();
|
||||
setReactActEnvironment(false);
|
||||
try {
|
||||
let result = await cb();
|
||||
return await new Promise((resolve) => {
|
||||
setTimeout(() => {
|
||||
resolve();
|
||||
}, 0), jestFakeTimersAreEnabled() && jest.advanceTimersByTime(0);
|
||||
}), result;
|
||||
} finally {
|
||||
setReactActEnvironment(previousActEnvironment);
|
||||
}
|
||||
}, eventWrapper: (cb) => {
|
||||
let result;
|
||||
return act(() => (result = cb(), result)), result;
|
||||
} });
|
||||
} catch {
|
||||
}
|
||||
};
|
||||
function jestFakeTimersAreEnabled() {
|
||||
return typeof jest < "u" && jest !== null ? setTimeout._isMockFunction === true || Object.prototype.hasOwnProperty.call(setTimeout, "clock") : false;
|
||||
}
|
||||
|
||||
export {
|
||||
entry_preview_exports,
|
||||
render,
|
||||
renderToCanvas,
|
||||
mount,
|
||||
decorators,
|
||||
parameters,
|
||||
beforeAll
|
||||
};
|
||||
//# sourceMappingURL=chunk-D63W3CRC.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -1,31 +0,0 @@
|
||||
// node_modules/@storybook/react/dist/chunk-XP5HYGXS.mjs
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __esm = (fn, res) => function() {
|
||||
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
||||
};
|
||||
var __commonJS = (cb, mod) => function() {
|
||||
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
||||
};
|
||||
var __export = (target, all) => {
|
||||
for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from == "object" || typeof from == "function") for (let key of __getOwnPropNames(from)) !__hasOwnProp.call(to, key) && key !== except && __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
export {
|
||||
__esm,
|
||||
__commonJS,
|
||||
__export,
|
||||
__toESM,
|
||||
__toCommonJS
|
||||
};
|
||||
//# sourceMappingURL=chunk-DF7VAP3D.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../@storybook/react/dist/chunk-XP5HYGXS.mjs"],
|
||||
"sourcesContent": ["var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0, fn[__getOwnPropNames(fn)[0]])(fn=0)),res};var __commonJS=(cb,mod)=>function(){return mod||(0, cb[__getOwnPropNames(cb)[0]])((mod={exports:{}}).exports,mod),mod.exports};var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0});},__copyProps=(to,from,except,desc)=>{if(from&&typeof from==\"object\"||typeof from==\"function\")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,\"default\",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},\"__esModule\",{value:!0}),mod);\n\nexport { __commonJS, __esm, __export, __toCommonJS, __toESM };\n"],
|
||||
"mappings": ";AAAA,IAAI,WAAS,OAAO;AAAO,IAAI,YAAU,OAAO;AAAe,IAAI,mBAAiB,OAAO;AAAyB,IAAI,oBAAkB,OAAO;AAAoB,IAAI,eAAa,OAAO;AAAxB,IAAuC,eAAa,OAAO,UAAU;AAAe,IAAI,QAAM,CAAC,IAAG,QAAM,WAAU;AAAC,SAAO,OAAK,OAAK,GAAG,GAAG,kBAAkB,EAAE,EAAE,CAAC,CAAC,GAAG,KAAG,CAAC,IAAG;AAAG;AAAE,IAAI,aAAW,CAAC,IAAG,QAAM,WAAU;AAAC,SAAO,QAAM,GAAG,GAAG,kBAAkB,EAAE,EAAE,CAAC,CAAC,IAAI,MAAI,EAAC,SAAQ,CAAC,EAAC,GAAG,SAAQ,GAAG,GAAE,IAAI;AAAO;AAAE,IAAI,WAAS,CAAC,QAAO,QAAM;AAAC,WAAQ,QAAQ,IAAI,WAAU,QAAO,MAAK,EAAC,KAAI,IAAI,IAAI,GAAE,YAAW,KAAE,CAAC;AAAE;AAArG,IAAuG,cAAY,CAAC,IAAG,MAAK,QAAO,SAAO;AAAC,MAAG,QAAM,OAAO,QAAM,YAAU,OAAO,QAAM,WAAW,UAAQ,OAAO,kBAAkB,IAAI,EAAE,EAAC,aAAa,KAAK,IAAG,GAAG,KAAG,QAAM,UAAQ,UAAU,IAAG,KAAI,EAAC,KAAI,MAAI,KAAK,GAAG,GAAE,YAAW,EAAE,OAAK,iBAAiB,MAAK,GAAG,MAAI,KAAK,WAAU,CAAC;AAAE,SAAO;AAAE;AAAE,IAAI,UAAQ,CAAC,KAAI,YAAW,YAAU,SAAO,OAAK,OAAK,SAAS,aAAa,GAAG,CAAC,IAAE,CAAC,GAAE,YAAY,cAAY,CAAC,OAAK,CAAC,IAAI,aAAW,UAAU,QAAO,WAAU,EAAC,OAAM,KAAI,YAAW,KAAE,CAAC,IAAE,QAAO,GAAG;AAApM,IAAuM,eAAa,SAAK,YAAY,UAAU,CAAC,GAAE,cAAa,EAAC,OAAM,KAAE,CAAC,GAAE,GAAG;",
|
||||
"names": []
|
||||
}
|
||||
@@ -1,125 +0,0 @@
|
||||
import {
|
||||
require_identity
|
||||
} from "./chunk-P43QBNJ2.js";
|
||||
import {
|
||||
require_defineProperty
|
||||
} from "./chunk-JLPG4W6G.js";
|
||||
import {
|
||||
__commonJS
|
||||
} from "./chunk-KEXKKQVW.js";
|
||||
|
||||
// node_modules/lodash/_apply.js
|
||||
var require_apply = __commonJS({
|
||||
"node_modules/lodash/_apply.js"(exports, module) {
|
||||
function apply(func, thisArg, args) {
|
||||
switch (args.length) {
|
||||
case 0:
|
||||
return func.call(thisArg);
|
||||
case 1:
|
||||
return func.call(thisArg, args[0]);
|
||||
case 2:
|
||||
return func.call(thisArg, args[0], args[1]);
|
||||
case 3:
|
||||
return func.call(thisArg, args[0], args[1], args[2]);
|
||||
}
|
||||
return func.apply(thisArg, args);
|
||||
}
|
||||
module.exports = apply;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_overRest.js
|
||||
var require_overRest = __commonJS({
|
||||
"node_modules/lodash/_overRest.js"(exports, module) {
|
||||
var apply = require_apply();
|
||||
var nativeMax = Math.max;
|
||||
function overRest(func, start, transform) {
|
||||
start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
|
||||
return function() {
|
||||
var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
|
||||
while (++index < length) {
|
||||
array[index] = args[start + index];
|
||||
}
|
||||
index = -1;
|
||||
var otherArgs = Array(start + 1);
|
||||
while (++index < start) {
|
||||
otherArgs[index] = args[index];
|
||||
}
|
||||
otherArgs[start] = transform(array);
|
||||
return apply(func, this, otherArgs);
|
||||
};
|
||||
}
|
||||
module.exports = overRest;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/constant.js
|
||||
var require_constant = __commonJS({
|
||||
"node_modules/lodash/constant.js"(exports, module) {
|
||||
function constant(value) {
|
||||
return function() {
|
||||
return value;
|
||||
};
|
||||
}
|
||||
module.exports = constant;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_baseSetToString.js
|
||||
var require_baseSetToString = __commonJS({
|
||||
"node_modules/lodash/_baseSetToString.js"(exports, module) {
|
||||
var constant = require_constant();
|
||||
var defineProperty = require_defineProperty();
|
||||
var identity = require_identity();
|
||||
var baseSetToString = !defineProperty ? identity : function(func, string) {
|
||||
return defineProperty(func, "toString", {
|
||||
"configurable": true,
|
||||
"enumerable": false,
|
||||
"value": constant(string),
|
||||
"writable": true
|
||||
});
|
||||
};
|
||||
module.exports = baseSetToString;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_shortOut.js
|
||||
var require_shortOut = __commonJS({
|
||||
"node_modules/lodash/_shortOut.js"(exports, module) {
|
||||
var HOT_COUNT = 800;
|
||||
var HOT_SPAN = 16;
|
||||
var nativeNow = Date.now;
|
||||
function shortOut(func) {
|
||||
var count = 0, lastCalled = 0;
|
||||
return function() {
|
||||
var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
||||
lastCalled = stamp;
|
||||
if (remaining > 0) {
|
||||
if (++count >= HOT_COUNT) {
|
||||
return arguments[0];
|
||||
}
|
||||
} else {
|
||||
count = 0;
|
||||
}
|
||||
return func.apply(void 0, arguments);
|
||||
};
|
||||
}
|
||||
module.exports = shortOut;
|
||||
}
|
||||
});
|
||||
|
||||
// node_modules/lodash/_setToString.js
|
||||
var require_setToString = __commonJS({
|
||||
"node_modules/lodash/_setToString.js"(exports, module) {
|
||||
var baseSetToString = require_baseSetToString();
|
||||
var shortOut = require_shortOut();
|
||||
var setToString = shortOut(baseSetToString);
|
||||
module.exports = setToString;
|
||||
}
|
||||
});
|
||||
|
||||
export {
|
||||
require_overRest,
|
||||
require_setToString
|
||||
};
|
||||
//# sourceMappingURL=chunk-DJFXXVH6.js.map
|
||||
@@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../../../lodash/_apply.js", "../../../../../lodash/_overRest.js", "../../../../../lodash/constant.js", "../../../../../lodash/_baseSetToString.js", "../../../../../lodash/_shortOut.js", "../../../../../lodash/_setToString.js"],
|
||||
"sourcesContent": ["/**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\nfunction apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n}\n\nmodule.exports = apply;\n", "var apply = require('./_apply');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\nfunction overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n}\n\nmodule.exports = overRest;\n", "/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n", "var constant = require('./constant'),\n defineProperty = require('./_defineProperty'),\n identity = require('./identity');\n\n/**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n};\n\nmodule.exports = baseSetToString;\n", "/** Used to detect hot functions by number of calls within a span of milliseconds. */\nvar HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeNow = Date.now;\n\n/**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\nfunction shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n}\n\nmodule.exports = shortOut;\n", "var baseSetToString = require('./_baseSetToString'),\n shortOut = require('./_shortOut');\n\n/**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\nvar setToString = shortOut(baseSetToString);\n\nmodule.exports = setToString;\n"],
|
||||
"mappings": ";;;;;;;;;;;AAAA;AAAA;AAUA,aAAS,MAAM,MAAM,SAAS,MAAM;AAClC,cAAQ,KAAK,QAAQ;AAAA,QACnB,KAAK;AAAG,iBAAO,KAAK,KAAK,OAAO;AAAA,QAChC,KAAK;AAAG,iBAAO,KAAK,KAAK,SAAS,KAAK,CAAC,CAAC;AAAA,QACzC,KAAK;AAAG,iBAAO,KAAK,KAAK,SAAS,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC;AAAA,QAClD,KAAK;AAAG,iBAAO,KAAK,KAAK,SAAS,KAAK,CAAC,GAAG,KAAK,CAAC,GAAG,KAAK,CAAC,CAAC;AAAA,MAC7D;AACA,aAAO,KAAK,MAAM,SAAS,IAAI;AAAA,IACjC;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACpBjB;AAAA;AAAA,QAAI,QAAQ;AAGZ,QAAI,YAAY,KAAK;AAWrB,aAAS,SAAS,MAAM,OAAO,WAAW;AACxC,cAAQ,UAAU,UAAU,SAAa,KAAK,SAAS,IAAK,OAAO,CAAC;AACpE,aAAO,WAAW;AAChB,YAAI,OAAO,WACP,QAAQ,IACR,SAAS,UAAU,KAAK,SAAS,OAAO,CAAC,GACzC,QAAQ,MAAM,MAAM;AAExB,eAAO,EAAE,QAAQ,QAAQ;AACvB,gBAAM,KAAK,IAAI,KAAK,QAAQ,KAAK;AAAA,QACnC;AACA,gBAAQ;AACR,YAAI,YAAY,MAAM,QAAQ,CAAC;AAC/B,eAAO,EAAE,QAAQ,OAAO;AACtB,oBAAU,KAAK,IAAI,KAAK,KAAK;AAAA,QAC/B;AACA,kBAAU,KAAK,IAAI,UAAU,KAAK;AAClC,eAAO,MAAM,MAAM,MAAM,SAAS;AAAA,MACpC;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACnCjB;AAAA;AAmBA,aAAS,SAAS,OAAO;AACvB,aAAO,WAAW;AAChB,eAAO;AAAA,MACT;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACzBjB;AAAA;AAAA,QAAI,WAAW;AAAf,QACI,iBAAiB;AADrB,QAEI,WAAW;AAUf,QAAI,kBAAkB,CAAC,iBAAiB,WAAW,SAAS,MAAM,QAAQ;AACxE,aAAO,eAAe,MAAM,YAAY;AAAA,QACtC,gBAAgB;AAAA,QAChB,cAAc;AAAA,QACd,SAAS,SAAS,MAAM;AAAA,QACxB,YAAY;AAAA,MACd,CAAC;AAAA,IACH;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACrBjB;AAAA;AACA,QAAI,YAAY;AAAhB,QACI,WAAW;AAGf,QAAI,YAAY,KAAK;AAWrB,aAAS,SAAS,MAAM;AACtB,UAAI,QAAQ,GACR,aAAa;AAEjB,aAAO,WAAW;AAChB,YAAI,QAAQ,UAAU,GAClB,YAAY,YAAY,QAAQ;AAEpC,qBAAa;AACb,YAAI,YAAY,GAAG;AACjB,cAAI,EAAE,SAAS,WAAW;AACxB,mBAAO,UAAU,CAAC;AAAA,UACpB;AAAA,QACF,OAAO;AACL,kBAAQ;AAAA,QACV;AACA,eAAO,KAAK,MAAM,QAAW,SAAS;AAAA,MACxC;AAAA,IACF;AAEA,WAAO,UAAU;AAAA;AAAA;;;ACpCjB;AAAA;AAAA,QAAI,kBAAkB;AAAtB,QACI,WAAW;AAUf,QAAI,cAAc,SAAS,eAAe;AAE1C,WAAO,UAAU;AAAA;AAAA;",
|
||||
"names": []
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user