@react-hive/honey-style 5.4.0 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,9 +2,9 @@
2
2
  /******/ "use strict";
3
3
  /******/ var __webpack_modules__ = ({
4
4
 
5
- /***/ "./node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.development.js"
5
+ /***/ "./node_modules/.pnpm/react@19.2.6/node_modules/react/cjs/react-jsx-runtime.development.js"
6
6
  /*!*************************************************************************************************!*\
7
- !*** ./node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.development.js ***!
7
+ !*** ./node_modules/.pnpm/react@19.2.6/node_modules/react/cjs/react-jsx-runtime.development.js ***!
8
8
  \*************************************************************************************************/
9
9
  (__unused_webpack_module, exports, __webpack_require__) {
10
10
 
@@ -364,9 +364,9 @@
364
364
 
365
365
  /***/ },
366
366
 
367
- /***/ "./node_modules/.pnpm/react@19.2.4/node_modules/react/jsx-runtime.js"
367
+ /***/ "./node_modules/.pnpm/react@19.2.6/node_modules/react/jsx-runtime.js"
368
368
  /*!***************************************************************************!*\
369
- !*** ./node_modules/.pnpm/react@19.2.4/node_modules/react/jsx-runtime.js ***!
369
+ !*** ./node_modules/.pnpm/react@19.2.6/node_modules/react/jsx-runtime.js ***!
370
370
  \***************************************************************************/
371
371
  (module, __unused_webpack_exports, __webpack_require__) {
372
372
 
@@ -374,7 +374,7 @@
374
374
 
375
375
  if (false) // removed by dead control flow
376
376
  {} else {
377
- module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "./node_modules/.pnpm/react@19.2.4/node_modules/react/cjs/react-jsx-runtime.development.js");
377
+ module.exports = __webpack_require__(/*! ./cjs/react-jsx-runtime.development.js */ "./node_modules/.pnpm/react@19.2.6/node_modules/react/cjs/react-jsx-runtime.development.js");
378
378
  }
379
379
 
380
380
 
@@ -729,7 +729,7 @@ __webpack_require__.r(__webpack_exports__);
729
729
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
730
730
  /* harmony export */ mediaQuery: () => (/* binding */ mediaQuery)
731
731
  /* harmony export */ });
732
- /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
732
+ /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
733
733
 
734
734
  /**
735
735
  * Constructs a complete `@media` query string from an array of media rule objects.
@@ -787,7 +787,7 @@ __webpack_require__.r(__webpack_exports__);
787
787
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
788
788
  /* harmony export */ compileCss: () => (/* binding */ compileCss)
789
789
  /* harmony export */ });
790
- /* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs");
790
+ /* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.1/node_modules/@react-hive/honey-css/dist/index.mjs");
791
791
  /* harmony import */ var _flatten_css_rules__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./flatten-css-rules */ "./src/css/flatten-css-rules.ts");
792
792
 
793
793
 
@@ -941,10 +941,10 @@ __webpack_require__.r(__webpack_exports__);
941
941
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
942
942
  /* harmony export */ createMediaAtRuleTransformer: () => (/* binding */ createMediaAtRuleTransformer)
943
943
  /* harmony export */ });
944
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../constants */ "./src/constants.ts");
945
- /* harmony import */ var _create_at_rule_transformer__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./create-at-rule-transformer */ "./src/css/create-at-rule-transformer.ts");
946
- /* harmony import */ var _unwrap_params__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./unwrap-params */ "./src/css/unwrap-params.ts");
947
- /* harmony import */ var _at_rules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./at-rules */ "./src/css/at-rules/index.ts");
944
+ /* harmony import */ var _at_rules__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./at-rules */ "./src/css/at-rules/index.ts");
945
+ /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "./src/constants.ts");
946
+ /* harmony import */ var _create_at_rule_transformer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create-at-rule-transformer */ "./src/css/create-at-rule-transformer.ts");
947
+ /* harmony import */ var _unwrap_params__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./unwrap-params */ "./src/css/unwrap-params.ts");
948
948
 
949
949
 
950
950
 
@@ -959,11 +959,11 @@ const parseBreakpointRule = (raw) => {
959
959
  direction: (direction ?? 'up'),
960
960
  };
961
961
  };
962
- const createMediaAtRuleTransformer = ({ theme }) => (0,_create_at_rule_transformer__WEBPACK_IMPORTED_MODULE_1__.createAtRuleTransformer)('honey-media', (node) => {
962
+ const createMediaAtRuleTransformer = ({ theme }) => (0,_create_at_rule_transformer__WEBPACK_IMPORTED_MODULE_2__.createAtRuleTransformer)('honey-media', (node) => {
963
963
  if (!theme?.breakpoints) {
964
964
  return [];
965
965
  }
966
- const rawParams = (0,_unwrap_params__WEBPACK_IMPORTED_MODULE_2__.unwrapParams)(node.params);
966
+ const rawParams = (0,_unwrap_params__WEBPACK_IMPORTED_MODULE_3__.unwrapParams)(node.params);
967
967
  if (!rawParams) {
968
968
  return [];
969
969
  }
@@ -981,7 +981,7 @@ const createMediaAtRuleTransformer = ({ theme }) => (0,_create_at_rule_transform
981
981
  continue;
982
982
  }
983
983
  if (!isBreakpointToken(token)) {
984
- if (_constants__WEBPACK_IMPORTED_MODULE_0__.__DEV__) {
984
+ if (_constants__WEBPACK_IMPORTED_MODULE_1__.__DEV__) {
985
985
  console.warn(`[@react-hive/honey-style]: Unknown @honey-media token: "${token}".`);
986
986
  }
987
987
  continue;
@@ -991,7 +991,7 @@ const createMediaAtRuleTransformer = ({ theme }) => (0,_create_at_rule_transform
991
991
  ? theme.breakpoints[breakpointRule.key]
992
992
  : null;
993
993
  if (!breakpointPx) {
994
- if (_constants__WEBPACK_IMPORTED_MODULE_0__.__DEV__) {
994
+ if (_constants__WEBPACK_IMPORTED_MODULE_1__.__DEV__) {
995
995
  console.warn(`[@react-hive/honey-style]: Unknown breakpoint "${breakpointRule.key}" in @honey-media.`);
996
996
  }
997
997
  continue;
@@ -1034,7 +1034,7 @@ const createMediaAtRuleTransformer = ({ theme }) => (0,_create_at_rule_transform
1034
1034
  if (!finalRules.length) {
1035
1035
  return [];
1036
1036
  }
1037
- const fullMedia = (0,_at_rules__WEBPACK_IMPORTED_MODULE_3__.mediaQuery)(finalRules);
1037
+ const fullMedia = (0,_at_rules__WEBPACK_IMPORTED_MODULE_0__.mediaQuery)(finalRules);
1038
1038
  return [
1039
1039
  {
1040
1040
  type: 'atRule',
@@ -1058,7 +1058,7 @@ __webpack_require__.r(__webpack_exports__);
1058
1058
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1059
1059
  /* harmony export */ createSpacingTransformer: () => (/* binding */ createSpacingTransformer)
1060
1060
  /* harmony export */ });
1061
- /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1061
+ /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1062
1062
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/css/constants.ts");
1063
1063
  /* harmony import */ var _resolve_spacing_value__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./resolve-spacing-value */ "./src/css/resolve-spacing-value.ts");
1064
1064
 
@@ -1116,7 +1116,7 @@ __webpack_require__.r(__webpack_exports__);
1116
1116
  /* harmony export */ createCssRule: () => (/* binding */ createCssRule),
1117
1117
  /* harmony export */ css: () => (/* binding */ css)
1118
1118
  /* harmony export */ });
1119
- /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1119
+ /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1120
1120
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../constants */ "./src/constants.ts");
1121
1121
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils */ "./src/utils.ts");
1122
1122
 
@@ -1161,7 +1161,7 @@ __webpack_require__.r(__webpack_exports__);
1161
1161
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1162
1162
  /* harmony export */ flattenCssRules: () => (/* binding */ flattenCssRules)
1163
1163
  /* harmony export */ });
1164
- /* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs");
1164
+ /* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.1/node_modules/@react-hive/honey-css/dist/index.mjs");
1165
1165
 
1166
1166
  const SELECTOR_CONTEXT_AT_RULES = {
1167
1167
  media: true,
@@ -1266,7 +1266,7 @@ __webpack_require__.r(__webpack_exports__);
1266
1266
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1267
1267
  /* harmony export */ processCss: () => (/* binding */ processCss)
1268
1268
  /* harmony export */ });
1269
- /* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs");
1269
+ /* harmony import */ var _react_hive_honey_css__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-css */ "./node_modules/.pnpm/@react-hive+honey-css@1.17.1/node_modules/@react-hive/honey-css/dist/index.mjs");
1270
1270
  /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./css */ "./src/css/css.ts");
1271
1271
  /* harmony import */ var _compile_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./compile-css */ "./src/css/compile-css.ts");
1272
1272
  /* harmony import */ var _transform_absolute_fill_at_rule__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./transform-absolute-fill-at-rule */ "./src/css/transform-absolute-fill-at-rule.ts");
@@ -1691,7 +1691,7 @@ __webpack_require__.r(__webpack_exports__);
1691
1691
  /* harmony export */ });
1692
1692
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1693
1693
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1694
- /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1694
+ /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1695
1695
  /* harmony import */ var _contexts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../contexts */ "./src/contexts/index.ts");
1696
1696
 
1697
1697
 
@@ -1827,7 +1827,7 @@ __webpack_require__.r(__webpack_exports__);
1827
1827
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
1828
1828
  /* harmony export */ HoneyStyleProvider: () => (/* binding */ HoneyStyleProvider)
1829
1829
  /* harmony export */ });
1830
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/.pnpm/react@19.2.4/node_modules/react/jsx-runtime.js");
1830
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-runtime */ "./node_modules/.pnpm/react@19.2.6/node_modules/react/jsx-runtime.js");
1831
1831
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
1832
1832
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
1833
1833
  /* harmony import */ var _contexts__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../contexts */ "./src/contexts/index.ts");
@@ -1878,7 +1878,7 @@ __webpack_require__.r(__webpack_exports__);
1878
1878
  /* harmony export */ });
1879
1879
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
1880
1880
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1881
- /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1881
+ /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
1882
1882
  /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./css */ "./src/css/index.ts");
1883
1883
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
1884
1884
  /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils */ "./src/utils.ts");
@@ -1891,24 +1891,11 @@ __webpack_require__.r(__webpack_exports__);
1891
1891
 
1892
1892
 
1893
1893
 
1894
- const evaluateDynamicCss = (interpolation, context) => {
1895
- if (!interpolation) {
1896
- return '';
1897
- }
1898
- if ((0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.isString)(interpolation)) {
1899
- return interpolation;
1900
- }
1901
- // @ts-expect-error
1902
- return (0,_css__WEBPACK_IMPORTED_MODULE_2__.css)([''], [interpolation])(context);
1903
- };
1904
1894
  const styled = (target, defaultProps, { omitProps } = {}) => {
1905
1895
  return (strings, ...interpolations) => {
1906
1896
  const componentId = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.generateId)('hsc');
1907
1897
  const computeCss = (0,_css__WEBPACK_IMPORTED_MODULE_2__.css)(strings, ...interpolations);
1908
- const StyledComponent = ({ as, className, __compositionDepth = 0, css: cssProp, ...props }) => {
1909
- if (_constants__WEBPACK_IMPORTED_MODULE_3__.__DEV__ && cssProp) {
1910
- console.warn(`[@react-hive/honey-style]: The "css" prop is deprecated. Please use inheritance or composition instead.`);
1911
- }
1898
+ const StyledComponent = ({ as, className, __compositionDepth = 0, ...props }) => {
1912
1899
  const { theme } = (0,_hooks__WEBPACK_IMPORTED_MODULE_6__.useHoneyStyle)();
1913
1900
  const cleanedProps = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.definedProps)(props);
1914
1901
  const resolvedDefaultProps = {
@@ -1935,22 +1922,9 @@ const styled = (target, defaultProps, { omitProps } = {}) => {
1935
1922
  });
1936
1923
  return (0,_mount_style__WEBPACK_IMPORTED_MODULE_5__.mountStyle)(baseClassName, baseCss, __compositionDepth);
1937
1924
  }, [baseClassName]);
1938
- const cssPropRaw = (0,_react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_1__.invokeIfFunction)(cssProp, context);
1939
- const cssPropString = evaluateDynamicCss(cssPropRaw, context);
1940
- const cssPropClassName = cssPropString ? (0,_utils__WEBPACK_IMPORTED_MODULE_4__.buildClassName)(cssPropString) : '';
1941
- (0,react__WEBPACK_IMPORTED_MODULE_0__.useInsertionEffect)(() => {
1942
- if (cssPropClassName) {
1943
- const overrideCss = (0,_css__WEBPACK_IMPORTED_MODULE_2__.processCss)(cssPropString, {
1944
- theme,
1945
- selector: `.${cssPropClassName}`,
1946
- });
1947
- return (0,_mount_style__WEBPACK_IMPORTED_MODULE_5__.mountStyle)(cssPropClassName, overrideCss, 1);
1948
- }
1949
- }, [cssPropClassName]);
1950
1925
  const finalClassName = (0,_utils__WEBPACK_IMPORTED_MODULE_4__.combineClassNames)([
1951
1926
  componentId,
1952
1927
  baseClassName,
1953
- cssPropClassName,
1954
1928
  resolvedDefaultProps.className,
1955
1929
  ]);
1956
1930
  const mergedProps = {
@@ -2055,7 +2029,7 @@ __webpack_require__.r(__webpack_exports__);
2055
2029
  /* harmony export */ resolveFont: () => (/* binding */ resolveFont),
2056
2030
  /* harmony export */ resolveSpacing: () => (/* binding */ resolveSpacing)
2057
2031
  /* harmony export */ });
2058
- /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
2032
+ /* harmony import */ var _react_hive_honey_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @react-hive/honey-utils */ "./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs");
2059
2033
  /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./constants */ "./src/constants.ts");
2060
2034
  /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./css */ "./src/css/index.ts");
2061
2035
 
@@ -2217,9 +2191,9 @@ module.exports = require("react");
2217
2191
 
2218
2192
  /***/ },
2219
2193
 
2220
- /***/ "./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs"
2194
+ /***/ "./node_modules/.pnpm/@react-hive+honey-css@1.17.1/node_modules/@react-hive/honey-css/dist/index.mjs"
2221
2195
  /*!***********************************************************************************************************!*\
2222
- !*** ./node_modules/.pnpm/@react-hive+honey-css@1.17.0/node_modules/@react-hive/honey-css/dist/index.mjs ***!
2196
+ !*** ./node_modules/.pnpm/@react-hive+honey-css@1.17.1/node_modules/@react-hive/honey-css/dist/index.mjs ***!
2223
2197
  \***********************************************************************************************************/
2224
2198
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
2225
2199
 
@@ -2243,113 +2217,118 @@ const e=e=>"{"===e||"}"===e||":"===e||";"===e||"@"===e||"("===e||'"'===e||"'"===
2243
2217
 
2244
2218
  /***/ },
2245
2219
 
2246
- /***/ "./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs"
2247
- /*!***************************************************************************************************************!*\
2248
- !*** ./node_modules/.pnpm/@react-hive+honey-utils@3.28.0/node_modules/@react-hive/honey-utils/dist/index.mjs ***!
2249
- \***************************************************************************************************************/
2220
+ /***/ "./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs"
2221
+ /*!**************************************************************************************************************!*\
2222
+ !*** ./node_modules/.pnpm/@react-hive+honey-utils@4.0.0/node_modules/@react-hive/honey-utils/dist/index.mjs ***!
2223
+ \**************************************************************************************************************/
2250
2224
  (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
2251
2225
 
2252
2226
  __webpack_require__.r(__webpack_exports__);
2253
2227
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
2254
- /* harmony export */ DATA_TRANSFER_JSON_MIME: () => (/* binding */ Q),
2228
+ /* harmony export */ DATA_TRANSFER_JSON_MIME: () => (/* binding */ et),
2255
2229
  /* harmony export */ FOCUSABLE_HTML_TAGS: () => (/* binding */ a),
2256
- /* harmony export */ applyInertiaStep: () => (/* binding */ xe),
2257
- /* harmony export */ assert: () => (/* binding */ s),
2258
- /* harmony export */ blobToFile: () => (/* binding */ pe),
2259
- /* harmony export */ calculateCenterOffset: () => (/* binding */ se),
2260
- /* harmony export */ calculateEuclideanDistance: () => (/* binding */ ve),
2261
- /* harmony export */ calculateMovingSpeed: () => (/* binding */ Ce),
2262
- /* harmony export */ calculatePercentage: () => (/* binding */ Ie),
2263
- /* harmony export */ camelToDashCase: () => (/* binding */ Le),
2264
- /* harmony export */ camelToWords: () => (/* binding */ Pe),
2265
- /* harmony export */ centerElementInContainer: () => (/* binding */ ce),
2230
+ /* harmony export */ applyInertiaStep: () => (/* binding */ It),
2231
+ /* harmony export */ assert: () => (/* binding */ d),
2232
+ /* harmony export */ blobToFile: () => (/* binding */ wt),
2233
+ /* harmony export */ calculateCenterOffset: () => (/* binding */ ut),
2234
+ /* harmony export */ calculateEuclideanDistance: () => (/* binding */ kt),
2235
+ /* harmony export */ calculateMovingSpeed: () => (/* binding */ Et),
2236
+ /* harmony export */ calculatePercentage: () => (/* binding */ Ot),
2237
+ /* harmony export */ camelToDashCase: () => (/* binding */ Tt),
2238
+ /* harmony export */ camelToWords: () => (/* binding */ Xt),
2239
+ /* harmony export */ centerElementInContainer: () => (/* binding */ ft),
2266
2240
  /* harmony export */ chunk: () => (/* binding */ T),
2267
- /* harmony export */ cloneBlob: () => (/* binding */ e),
2268
- /* harmony export */ compact: () => (/* binding */ L),
2269
- /* harmony export */ compose: () => (/* binding */ z),
2270
- /* harmony export */ definedProps: () => (/* binding */ Ee),
2271
- /* harmony export */ delay: () => (/* binding */ J),
2272
- /* harmony export */ difference: () => (/* binding */ $),
2273
- /* harmony export */ downloadFile: () => (/* binding */ re),
2241
+ /* harmony export */ clampOffsetToOverflow: () => (/* binding */ ht),
2242
+ /* harmony export */ cloneBlob: () => (/* binding */ t),
2243
+ /* harmony export */ compact: () => (/* binding */ X),
2244
+ /* harmony export */ compose: () => (/* binding */ c),
2245
+ /* harmony export */ decodeBase64: () => (/* binding */ Zt),
2246
+ /* harmony export */ decodeBase64Json: () => (/* binding */ Vt),
2247
+ /* harmony export */ definedProps: () => (/* binding */ Lt),
2248
+ /* harmony export */ delay: () => (/* binding */ q),
2249
+ /* harmony export */ difference: () => (/* binding */ u),
2250
+ /* harmony export */ downloadFile: () => (/* binding */ lt),
2274
2251
  /* harmony export */ everyAsync: () => (/* binding */ V),
2275
- /* harmony export */ fileListToFiles: () => (/* binding */ me),
2252
+ /* harmony export */ fileListToFiles: () => (/* binding */ yt),
2276
2253
  /* harmony export */ filterParallel: () => (/* binding */ H),
2277
2254
  /* harmony export */ filterSequential: () => (/* binding */ D),
2278
- /* harmony export */ findAsync: () => (/* binding */ G),
2279
- /* harmony export */ findCharIndices: () => (/* binding */ _e),
2280
- /* harmony export */ flattenTree: () => (/* binding */ Fe),
2281
- /* harmony export */ forEachChar: () => (/* binding */ ze),
2282
- /* harmony export */ generateEphemeralId: () => (/* binding */ Se),
2283
- /* harmony export */ getDOMRectIntersectionRatio: () => (/* binding */ Ae),
2284
- /* harmony export */ getDataTransferJson: () => (/* binding */ te),
2285
- /* harmony export */ getElementOffsetRect: () => (/* binding */ t),
2255
+ /* harmony export */ findAsync: () => (/* binding */ J),
2256
+ /* harmony export */ findCharIndices: () => (/* binding */ Rt),
2257
+ /* harmony export */ flattenTree: () => (/* binding */ Ut),
2258
+ /* harmony export */ forEachChar: () => (/* binding */ Yt),
2259
+ /* harmony export */ generateEphemeralId: () => (/* binding */ Mt),
2260
+ /* harmony export */ getAdjacentItems: () => (/* binding */ N),
2261
+ /* harmony export */ getDOMRectIntersectionRatio: () => (/* binding */ vt),
2262
+ /* harmony export */ getDataTransferJson: () => (/* binding */ rt),
2263
+ /* harmony export */ getElementOffsetRect: () => (/* binding */ e),
2286
2264
  /* harmony export */ getFocusableHtmlElements: () => (/* binding */ i),
2287
- /* harmony export */ getLocalStorageCapabilities: () => (/* binding */ fe),
2288
- /* harmony export */ getTreeChildren: () => (/* binding */ Re),
2289
- /* harmony export */ getWordsInitials: () => (/* binding */ Ne),
2290
- /* harmony export */ getXOverflowWidth: () => (/* binding */ le),
2291
- /* harmony export */ getYOverflowHeight: () => (/* binding */ oe),
2292
- /* harmony export */ hasXOverflow: () => (/* binding */ ae),
2293
- /* harmony export */ hasYOverflow: () => (/* binding */ ie),
2294
- /* harmony export */ hashString: () => (/* binding */ ke),
2295
- /* harmony export */ hexWithAlpha: () => (/* binding */ Ue),
2296
- /* harmony export */ intersection: () => (/* binding */ X),
2297
- /* harmony export */ invokeIfFunction: () => (/* binding */ we),
2265
+ /* harmony export */ getLocalStorageCapabilities: () => (/* binding */ pt),
2266
+ /* harmony export */ getTreeChildren: () => (/* binding */ Wt),
2267
+ /* harmony export */ getWordsInitials: () => (/* binding */ jt),
2268
+ /* harmony export */ getXOverflowWidth: () => (/* binding */ ot),
2269
+ /* harmony export */ getYOverflowHeight: () => (/* binding */ ct),
2270
+ /* harmony export */ hasXOverflow: () => (/* binding */ it),
2271
+ /* harmony export */ hasYOverflow: () => (/* binding */ st),
2272
+ /* harmony export */ hashString: () => (/* binding */ $t),
2273
+ /* harmony export */ hexWithAlpha: () => (/* binding */ Dt),
2274
+ /* harmony export */ intersection: () => (/* binding */ f),
2275
+ /* harmony export */ invokeIfFunction: () => (/* binding */ At),
2298
2276
  /* harmony export */ isAnchorHtmlElement: () => (/* binding */ n),
2299
- /* harmony export */ isArray: () => (/* binding */ E),
2300
- /* harmony export */ isBlob: () => (/* binding */ w),
2301
- /* harmony export */ isBool: () => (/* binding */ m),
2277
+ /* harmony export */ isArray: () => (/* binding */ _),
2278
+ /* harmony export */ isBlob: () => (/* binding */ I),
2279
+ /* harmony export */ isBool: () => (/* binding */ b),
2302
2280
  /* harmony export */ isContentEditableHtmlElement: () => (/* binding */ r),
2303
- /* harmony export */ isDate: () => (/* binding */ y),
2304
- /* harmony export */ isDecimal: () => (/* binding */ k),
2305
- /* harmony export */ isDefined: () => (/* binding */ h),
2306
- /* harmony export */ isEmptyArray: () => (/* binding */ O),
2307
- /* harmony export */ isEmptyObject: () => (/* binding */ g),
2308
- /* harmony export */ isError: () => (/* binding */ b),
2309
- /* harmony export */ isFile: () => (/* binding */ de),
2310
- /* harmony export */ isFiniteNumber: () => (/* binding */ C),
2281
+ /* harmony export */ isDate: () => (/* binding */ S),
2282
+ /* harmony export */ isDecimal: () => (/* binding */ P),
2283
+ /* harmony export */ isDefined: () => (/* binding */ g),
2284
+ /* harmony export */ isEmptyArray: () => (/* binding */ z),
2285
+ /* harmony export */ isEmptyObject: () => (/* binding */ A),
2286
+ /* harmony export */ isError: () => (/* binding */ M),
2287
+ /* harmony export */ isFile: () => (/* binding */ gt),
2288
+ /* harmony export */ isFiniteNumber: () => (/* binding */ $),
2311
2289
  /* harmony export */ isFunction: () => (/* binding */ Y),
2312
2290
  /* harmony export */ isHtmlElementFocusable: () => (/* binding */ l),
2313
- /* harmony export */ isInteger: () => (/* binding */ I),
2314
- /* harmony export */ isLocalStorageReadable: () => (/* binding */ he),
2315
- /* harmony export */ isMap: () => (/* binding */ A),
2316
- /* harmony export */ isNil: () => (/* binding */ u),
2317
- /* harmony export */ isNilOrEmptyString: () => (/* binding */ Xe),
2318
- /* harmony export */ isNull: () => (/* binding */ c),
2319
- /* harmony export */ isNumber: () => (/* binding */ d),
2320
- /* harmony export */ isObject: () => (/* binding */ p),
2321
- /* harmony export */ isPromise: () => (/* binding */ j),
2322
- /* harmony export */ isRegExp: () => (/* binding */ S),
2323
- /* harmony export */ isSet: () => (/* binding */ M),
2324
- /* harmony export */ isString: () => (/* binding */ ne),
2325
- /* harmony export */ isSymbol: () => (/* binding */ v),
2326
- /* harmony export */ isUndefined: () => (/* binding */ f),
2327
- /* harmony export */ isValidDate: () => (/* binding */ x),
2291
+ /* harmony export */ isInteger: () => (/* binding */ L),
2292
+ /* harmony export */ isLocalStorageReadable: () => (/* binding */ mt),
2293
+ /* harmony export */ isMap: () => (/* binding */ k),
2294
+ /* harmony export */ isNil: () => (/* binding */ p),
2295
+ /* harmony export */ isNilOrEmptyString: () => (/* binding */ zt),
2296
+ /* harmony export */ isNull: () => (/* binding */ m),
2297
+ /* harmony export */ isNumber: () => (/* binding */ w),
2298
+ /* harmony export */ isObject: () => (/* binding */ x),
2299
+ /* harmony export */ isPromise: () => (/* binding */ U),
2300
+ /* harmony export */ isRegExp: () => (/* binding */ C),
2301
+ /* harmony export */ isSet: () => (/* binding */ E),
2302
+ /* harmony export */ isString: () => (/* binding */ at),
2303
+ /* harmony export */ isSymbol: () => (/* binding */ O),
2304
+ /* harmony export */ isUndefined: () => (/* binding */ y),
2305
+ /* harmony export */ isValidDate: () => (/* binding */ v),
2328
2306
  /* harmony export */ moveFocusWithinContainer: () => (/* binding */ o),
2329
- /* harmony export */ noop: () => (/* binding */ N),
2330
- /* harmony export */ not: () => (/* binding */ F),
2331
- /* harmony export */ once: () => (/* binding */ R),
2332
- /* harmony export */ parse2DMatrix: () => (/* binding */ ue),
2333
- /* harmony export */ parseFileName: () => (/* binding */ $e),
2334
- /* harmony export */ pipe: () => (/* binding */ _),
2335
- /* harmony export */ readFilesFromDataTransfer: () => (/* binding */ ye),
2336
- /* harmony export */ reduceAsync: () => (/* binding */ Z),
2337
- /* harmony export */ resolveAxisDelta: () => (/* binding */ Me),
2338
- /* harmony export */ resolveBoundedDelta: () => (/* binding */ be),
2339
- /* harmony export */ retry: () => (/* binding */ K),
2340
- /* harmony export */ runParallel: () => (/* binding */ W),
2341
- /* harmony export */ runSequential: () => (/* binding */ U),
2342
- /* harmony export */ searchTree: () => (/* binding */ je),
2343
- /* harmony export */ setDataTransferJson: () => (/* binding */ ee),
2344
- /* harmony export */ someAsync: () => (/* binding */ B),
2345
- /* harmony export */ splitMapJoin: () => (/* binding */ Ye),
2346
- /* harmony export */ splitStringIntoWords: () => (/* binding */ Te),
2347
- /* harmony export */ timeout: () => (/* binding */ q),
2348
- /* harmony export */ toKebabCase: () => (/* binding */ Oe),
2349
- /* harmony export */ traverseFileSystemDirectory: () => (/* binding */ ge),
2350
- /* harmony export */ unique: () => (/* binding */ P)
2307
+ /* harmony export */ noop: () => (/* binding */ R),
2308
+ /* harmony export */ not: () => (/* binding */ j),
2309
+ /* harmony export */ once: () => (/* binding */ F),
2310
+ /* harmony export */ parse2DMatrix: () => (/* binding */ dt),
2311
+ /* harmony export */ parseFileName: () => (/* binding */ Nt),
2312
+ /* harmony export */ parseJson: () => (/* binding */ tt),
2313
+ /* harmony export */ pipe: () => (/* binding */ s),
2314
+ /* harmony export */ readFilesFromDataTransfer: () => (/* binding */ xt),
2315
+ /* harmony export */ reduceAsync: () => (/* binding */ G),
2316
+ /* harmony export */ resolveAxisDelta: () => (/* binding */ Ct),
2317
+ /* harmony export */ resolveBoundedDelta: () => (/* binding */ St),
2318
+ /* harmony export */ retry: () => (/* binding */ Q),
2319
+ /* harmony export */ runParallel: () => (/* binding */ B),
2320
+ /* harmony export */ runSequential: () => (/* binding */ W),
2321
+ /* harmony export */ searchTree: () => (/* binding */ Bt),
2322
+ /* harmony export */ setDataTransferJson: () => (/* binding */ nt),
2323
+ /* harmony export */ someAsync: () => (/* binding */ Z),
2324
+ /* harmony export */ splitMapJoin: () => (/* binding */ Ft),
2325
+ /* harmony export */ splitStringIntoWords: () => (/* binding */ _t),
2326
+ /* harmony export */ timeout: () => (/* binding */ K),
2327
+ /* harmony export */ toKebabCase: () => (/* binding */ Pt),
2328
+ /* harmony export */ traverseFileSystemDirectory: () => (/* binding */ bt),
2329
+ /* harmony export */ unique: () => (/* binding */ h)
2351
2330
  /* harmony export */ });
2352
- const e=e=>new Blob([e],{type:e.type}),t=e=>new DOMRect(e.offsetLeft,e.offsetTop,e.clientWidth,e.clientHeight),n=e=>"A"===e.tagName,r=e=>"true"===e.getAttribute("contenteditable"),a=["INPUT","SELECT","TEXTAREA","BUTTON","A"],l=e=>{if(!e)return!1;const t=window.getComputedStyle(e);if("hidden"===t.visibility||"none"===t.display)return!1;if("disabled"in e&&e.disabled)return!1;const l=e.getAttribute("tabindex");return"-1"!==l&&(a.includes(e.tagName)?!n(e)||""!==e.href:!!r(e)||null!==l)},i=e=>Array.from(e.querySelectorAll("*")).filter(l),o=(e,t=null,{wrap:n=!0,getNextIndex:r}={})=>{const a=document.activeElement,l=t??a?.parentElement;if(!a||!l)return;const o=i(l);if(0===o.length)return;const s=o.indexOf(a);if(-1===s)return;let c;r?c=r(s,e,o):"next"===e?(c=s+1,c>=o.length&&(c=n?0:null)):(c=s-1,c<0&&(c=n?o.length-1:null)),null!==c&&o[c]?.focus()};function s(e,t){if(!e)throw new Error(t)}const c=e=>null===e,u=e=>null==e,h=e=>null!=e,f=e=>void 0===e,d=e=>"number"==typeof e,m=e=>"boolean"==typeof e,p=e=>"object"==typeof e,g=e=>p(e)&&!c(e)&&0===Object.keys(e).length,y=e=>e instanceof Date,w=e=>e instanceof Blob,b=e=>e instanceof Error,x=e=>y(e)&&!isNaN(e.getTime()),S=e=>e instanceof RegExp,A=e=>e instanceof Map,M=e=>e instanceof Set,v=e=>"symbol"==typeof e,C=e=>d(e)&&isFinite(e),I=e=>d(e)&&Number.isInteger(e),k=e=>C(e)&&!Number.isInteger(e),E=e=>Array.isArray(e),O=e=>E(e)&&0===e.length,L=e=>e.filter(Boolean),P=e=>[...new Set(e)],T=(e,t)=>(s(t>0,"Chunk size must be greater than 0"),Array.from({length:Math.ceil(e.length/t)},(n,r)=>e.slice(r*t,(r+1)*t))),X=(...e)=>{if(0===e.length)return[];if(1===e.length)return[...e[0]];const[t,...n]=e;return P(t).filter(e=>n.every(t=>t.includes(e)))},$=(e,t)=>e.filter(e=>!t.includes(e)),_=(...e)=>t=>e.reduce((e,t)=>t(e),t),z=(...e)=>t=>e.reduceRight((e,t)=>t(e),t),N=()=>{},Y=e=>"function"==typeof e,F=e=>(...t)=>!e(...t),R=e=>{let t,n=!1;return function(...r){return n||(n=!0,t=e.apply(this,r)),t}},j=e=>Y(e?.then),U=async(e,t)=>{const n=[];for(let r=0;r<e.length;r++)n.push(await t(e[r],r,e));return n},W=async(e,t)=>Promise.all(e.map(t)),D=async(e,t)=>{const n=[];for(let r=0;r<e.length;r++){const a=e[r];await t(a,r,e)&&n.push(a)}return n},H=async(e,t)=>{const n=await W(e,async(e,n,r)=>!!await t(e,n,r)&&e);return L(n)},B=async(e,t)=>{for(let n=0;n<e.length;n++)if(await t(e[n],n,e))return!0;return!1},V=async(e,t)=>{for(let n=0;n<e.length;n++)if(!await t(e[n],n,e))return!1;return!0},Z=async(e,t,n)=>{let r=n;for(let n=0;n<e.length;n++)r=await t(r,e[n],n,e);return r},G=async(e,t)=>{for(let n=0;n<e.length;n++)if(await t(e[n],n,e))return e[n];return null},J=e=>new Promise(t=>setTimeout(t,e)),q=async(e,t,n="Operation timed out")=>{try{return await Promise.race([e,J(t).then(()=>Promise.reject(new Error(n)))])}finally{}},K=(e,{maxAttempts:t=3,delayMs:n=300,backoff:r=!0,onRetry:a}={})=>async(...l)=>{let i;for(let o=1;o<=t;o++)try{return await e(...l)}catch(e){if(i=e,o<t){a?.(o,e);const t=r?n*2**(o-1):n;await J(t)}}throw i},Q="application/json",ee=(e,t)=>{e.setData(Q,JSON.stringify(t))},te=e=>{const t=e.getData(Q);if(t)try{return JSON.parse(t)}catch{return}},ne=e=>"string"==typeof e,re=(e,{fileName:t,target:n}={})=>{if(f(document))return;const r=document.createElement("a");let a=null;try{const l=ne(e)?e:a=URL.createObjectURL(e);r.href=l,t&&(r.download=t),n&&(r.target=n),document.body.appendChild(r),r.click()}finally{r.remove(),a&&setTimeout(()=>{s(a,"Object URL should not be null"),URL.revokeObjectURL(a)},0)}},ae=e=>e.scrollWidth>e.clientWidth,le=e=>Math.max(0,e.scrollWidth-e.clientWidth),ie=e=>e.scrollHeight>e.clientHeight,oe=e=>Math.max(0,e.scrollHeight-e.clientHeight),se=({overflowSize:e,containerSize:t,elementOffset:n,elementSize:r})=>{if(e<=0)return 0;const a=n+r/2-t/2;return-Math.max(0,Math.min(a,e))},ce=(e,t,{axis:n="both"}={})=>{let r=0,a=0;"x"!==n&&"both"!==n||(r=se({overflowSize:le(e),containerSize:e.clientWidth,elementOffset:t.offsetLeft,elementSize:t.clientWidth})),"y"!==n&&"both"!==n||(a=se({overflowSize:oe(e),containerSize:e.clientHeight,elementOffset:t.offsetTop,elementSize:t.clientHeight})),e.style.transform=`translate(${r}px, ${a}px)`},ue=e=>{const t=window.getComputedStyle(e).getPropertyValue("transform").match(/^matrix\((.+)\)$/);if(!t)return{translateX:0,translateY:0,scaleX:1,scaleY:1,skewX:0,skewY:0};const[n,r,a,l,i,o]=t[1].split(", ").map(parseFloat);return{translateX:i,translateY:o,scaleX:n,scaleY:l,skewX:a,skewY:r}},he=()=>{if("undefined"==typeof window||!window.localStorage)return!1;try{return window.localStorage.getItem("__non_existing_key__"),!0}catch{return!1}},fe=()=>{if(!he())return{readable:!1,writable:!1};try{const e="__test_write__";return window.localStorage.setItem(e,"1"),window.localStorage.removeItem(e),{readable:!0,writable:!0}}catch{}return{readable:!0,writable:!1}},de=e=>e instanceof File,me=e=>{if(!e)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t},pe=(e,t)=>new File([e],t,{type:e.type}),ge=async(e,{skipFiles:t=[".DS_Store","Thumbs.db","desktop.ini","ehthumbs.db",".Spotlight-V100",".Trashes",".fseventsd","__MACOSX"]}={})=>{const n=new Set(t),r=await(async e=>{const t=e.createReader(),n=async()=>new Promise((e,r)=>{t.readEntries(async t=>{if(t.length)try{const r=await n();e([...t,...r])}catch(e){r(e)}else e([])},r)});return n()})(e);return(await W(r,async e=>e.isDirectory?ge(e,{skipFiles:t}):n.has(e.name)?[]:[await new Promise((t,n)=>{e.file(t,n)})])).flat()},ye=async(e,t={})=>{const n=e?.items;if(!n)return[];const r=[];for(let e=0;e<n.length;e++){const a=n[e];if("webkitGetAsEntry"in a){const e=a.webkitGetAsEntry?.();if(e?.isDirectory){r.push(ge(e,t));continue}if(e?.isFile){r.push(new Promise((t,n)=>e.file(e=>t([e]),n)));continue}}const l=a.getAsFile();l&&r.push(Promise.resolve([l]))}return(await Promise.all(r)).flat()},we=(e,...t)=>"function"==typeof e?e(...t):e,be=({delta:e,value:t,min:n,max:r})=>{if(0===e)return null;const a=t+e;return e<0?t<=n?null:Math.max(a,n):e>0?t>=r?null:Math.min(a,r):null},xe=({value:e,min:t,max:n,velocityPxMs:r,deltaTimeMs:a,friction:l=.002,minVelocityPxMs:i=.01,emaAlpha:o=.2})=>{if(Math.abs(r)<i)return null;const s=be({delta:r*a,value:e,min:t,max:n});if(null===s)return null;const c=r*Math.exp(-l*a),u=o>0?r*(1-o)+c*o:c;return Math.abs(u)<i?null:{value:s,velocityPxMs:u}},Se=()=>`${Math.floor(1e3*performance.now()).toString(36)}${Math.random().toString(36).slice(2,10)}`,Ae=(e,t)=>Math.max(0,Math.min(e.right,t.right)-Math.max(e.left,t.left))*Math.max(0,Math.min(e.bottom,t.bottom)-Math.max(e.top,t.top))/(t.width*t.height),Me=(e,t,{allowFallback:n=!0,invert:r=!0}={})=>{const a=r?-1:1;switch(t){case"x":return{deltaX:a*(0!==e.deltaX?e.deltaX:n?e.deltaY:0),deltaY:0};case"y":return{deltaX:0,deltaY:a*e.deltaY};default:return{deltaX:a*e.deltaX,deltaY:a*e.deltaY}}},ve=(e,t,n,r)=>{const a=n-e,l=r-t;return Math.hypot(a,l)},Ce=(e,t)=>Math.abs(e/t),Ie=(e,t)=>e*t/100,ke=e=>{let t=5381;for(let n=0;n<e.length;n++)t=33*t^e.charCodeAt(n);return(t>>>0).toString(36)},Ee=e=>Object.entries(e).reduce((e,[t,n])=>(void 0!==n&&(e[t]=n),e),{}),Oe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Le=e=>{const t=e.charAt(0),n=e.slice(1);return t.toLowerCase()+n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)},Pe=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1 $2"),Te=e=>0===e.length?[]:e.split(" ").filter(Boolean),Xe=e=>""===e||u(e),$e=e=>{const t=e.lastIndexOf(".");return t<=0||t===e.length-1?[e,""]:[e.slice(0,t),e.slice(t+1).toLowerCase()]},_e=(e,t)=>{if(0===e.length)return[];const n=t.charCodeAt(0),r=[];for(let t=0;t<e.length;t++)e.charCodeAt(t)===n&&r.push(t);return r},ze=(e,t,n)=>{if(0===e.length)return;const r=e.length;for(let a=0;a<r;a++){const l=e[a],i={charIndex:a,prevChar:a>0?e[a-1]:null,nextChar:a<r-1?e[a+1]:null};n?.(l,i)||t(l,i)}},Ne=(e,t=1/0)=>0===e.length?"":Te(e).slice(0,t).map(e=>e[0]).join("").toUpperCase(),Ye=(e,t,n,r=t)=>e.split(t).map((e,t)=>n(e.trim(),t)).join(r),Fe=(e,t,n,r=[],a=void 0,l=0)=>(e?.forEach(e=>{const{[n]:i,...o}=e,s=e[n],c=Array.isArray(s);if(r.push({...o,parentId:a,depthLevel:l,childCount:c?s.length:0}),c){const a=e[t];Fe(s,t,n,r,a,l+1)}}),r),Re=(e,t,n)=>e.filter(e=>e.parentId===t&&(!n||n(e))),je=(e,t,n,r)=>{const a=Te(r.toLowerCase());if(!a.length)return e;const l=e.reduce((e,n,r)=>(e[n[t]]=r,e),{});return e.reduce((r,i)=>{const o=i[n];if(!o)return r;if(r.some(e=>e[t]===i[t]))return r;const u=Te(o.toLowerCase());if(a.every(e=>u.some(t=>t.startsWith(e))))if(f(i.parentId)){r.push(i);const n=a=>{a.childCount&&e.forEach(e=>{e.parentId===a[t]&&(r.push(e),n(e))})};n(i)}else{const t=n=>{const a=l[n.parentId],i=e[a];f(i.parentId)||t(i);const o=r.length?r[r.length-1].parentId:null;(c(o)||o!==n.parentId)&&(s(i,"[@react-hive/honey-utils]: Parent node was not found."),r.push(i))};t(i),r.push(i)}return r},[])},Ue=(e,t)=>{s(t>=0&&t<=1,`[@react-hive/honey-utils]: Alpha "${t}" must be a number between 0 and 1.`);const n=e.match(/^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/);s(n,`[@react-hive/honey-utils]: Invalid hex format: ${e}`);const r=n[1];return`#${(3===r.length?r[0]+r[0]+r[1]+r[1]+r[2]+r[2]:r)+Math.round(255*t).toString(16).toUpperCase().padStart(2,"0")}`};
2331
+ const t=t=>new Blob([t],{type:t.type}),e=t=>new DOMRect(t.offsetLeft,t.offsetTop,t.clientWidth,t.clientHeight),n=t=>"A"===t.tagName,r=t=>"true"===t.getAttribute("contenteditable"),a=["INPUT","SELECT","TEXTAREA","BUTTON","A"],l=t=>{if(!t)return!1;const e=window.getComputedStyle(t);if("hidden"===e.visibility||"none"===e.display)return!1;if("disabled"in t&&t.disabled)return!1;const l=t.getAttribute("tabindex");return"-1"!==l&&(a.includes(t.tagName)?!n(t)||""!==t.href:!!r(t)||null!==l)},i=t=>Array.from(t.querySelectorAll("*")).filter(l),o=(t,e=null,{wrap:n=!0,getNextIndex:r}={})=>{const a=document.activeElement,l=e??a?.parentElement;if(!a||!l)return;const o=i(l);if(0===o.length)return;const s=o.indexOf(a);if(-1===s)return;let c;r?c=r(s,t,o):"next"===t?(c=s+1,c>=o.length&&(c=n?0:null)):(c=s-1,c<0&&(c=n?o.length-1:null)),null!==c&&o[c]?.focus()},s=(...t)=>e=>t.reduce((t,e)=>e(t),e),c=(...t)=>e=>t.reduceRight((t,e)=>e(t),e),u=(t,e)=>t.filter(t=>!e.includes(t)),h=t=>[...new Set(t)],f=(...t)=>{if(0===t.length)return[];if(1===t.length)return[...t[0]];const[e,...n]=t;return h(e).filter(t=>n.every(e=>e.includes(t)))};function d(t,e){if(!t)throw new Error(e)}const m=t=>null===t,p=t=>null==t,g=t=>null!=t,y=t=>void 0===t,w=t=>"number"==typeof t,b=t=>"boolean"==typeof t,x=t=>"object"==typeof t,A=t=>x(t)&&!m(t)&&0===Object.keys(t).length,S=t=>t instanceof Date,I=t=>t instanceof Blob,M=t=>t instanceof Error,v=t=>S(t)&&!isNaN(t.getTime()),C=t=>t instanceof RegExp,k=t=>t instanceof Map,E=t=>t instanceof Set,O=t=>"symbol"==typeof t,$=t=>w(t)&&isFinite(t),L=t=>w(t)&&Number.isInteger(t),P=t=>$(t)&&!Number.isInteger(t),T=(t,e)=>(d(e>0,"Chunk size must be greater than 0"),Array.from({length:Math.ceil(t.length/e)},(n,r)=>t.slice(r*e,(r+1)*e))),X=t=>t.filter(Boolean),_=t=>Array.isArray(t),z=t=>_(t)&&0===t.length,N=(t,e,n)=>{if(!t?.length||!e)return{previousItem:null,currentItem:null,nextItem:null};const r=t.findIndex(t=>n(t,e));return-1===r?{previousItem:null,currentItem:null,nextItem:null}:{previousItem:r>0?t[r-1]:null,currentItem:t[r],nextItem:r<t.length-1?t[r+1]:null}},R=()=>{},Y=t=>"function"==typeof t,j=t=>(...e)=>!t(...e),F=t=>{let e,n=!1;return function(...r){return n||(n=!0,e=t.apply(this,r)),e}},U=t=>Y(t?.then),W=async(t,e)=>{const n=[];for(let r=0;r<t.length;r++)n.push(await e(t[r],r,t));return n},B=async(t,e)=>Promise.all(t.map(e)),D=async(t,e)=>{const n=[];for(let r=0;r<t.length;r++){const a=t[r];await e(a,r,t)&&n.push(a)}return n},H=async(t,e)=>{const n=await B(t,async(t,n,r)=>!!await e(t,n,r)&&t);return X(n)},Z=async(t,e)=>{for(let n=0;n<t.length;n++)if(await e(t[n],n,t))return!0;return!1},V=async(t,e)=>{for(let n=0;n<t.length;n++)if(!await e(t[n],n,t))return!1;return!0},G=async(t,e,n)=>{let r=n;for(let n=0;n<t.length;n++)r=await e(r,t[n],n,t);return r},J=async(t,e)=>{for(let n=0;n<t.length;n++)if(await e(t[n],n,t))return t[n];return null},q=t=>new Promise(e=>setTimeout(e,t)),K=async(t,e,n="Operation timed out")=>{try{return await Promise.race([t,q(e).then(()=>Promise.reject(new Error(n)))])}finally{}},Q=(t,{maxAttempts:e=3,delayMs:n=300,backoff:r=!0,onRetry:a}={})=>async(...l)=>{let i;for(let o=1;o<=e;o++)try{return await t(...l)}catch(t){if(i=t,o<e){a?.(o,t);const e=r?n*2**(o-1):n;await q(e)}}throw i},tt=t=>{try{return JSON.parse(t)}catch{return null}},et="application/json",nt=(t,e)=>{t.setData(et,JSON.stringify(e))},rt=t=>{const e=t.getData(et);return e?tt(e):null},at=t=>"string"==typeof t,lt=(t,{fileName:e,target:n}={})=>{if(y(document))return;const r=document.createElement("a");let a=null;try{const l=at(t)?t:a=URL.createObjectURL(t);r.href=l,e&&(r.download=e),n&&(r.target=n),document.body.appendChild(r),r.click()}finally{r.remove(),a&&setTimeout(()=>{d(a,"Object URL should not be null"),URL.revokeObjectURL(a)},0)}},it=t=>t.scrollWidth>t.clientWidth,ot=t=>Math.max(0,t.scrollWidth-t.clientWidth),st=t=>t.scrollHeight>t.clientHeight,ct=t=>Math.max(0,t.scrollHeight-t.clientHeight),ut=({containerSize:t,elementOffset:e,elementSize:n})=>-(e+n/2-t/2),ht=(t,e)=>e<=0?0:Math.max(-e,Math.min(t,0)),ft=(t,e,{axis:n="both",shouldClamp:r=!0}={})=>{let a=0,l=0;if("x"===n||"both"===n){const n=ut({containerSize:t.clientWidth,elementOffset:e.offsetLeft,elementSize:e.clientWidth});a=r?ht(n,ot(t)):n}if("y"===n||"both"===n){const n=ut({containerSize:t.clientHeight,elementOffset:e.offsetTop,elementSize:e.clientHeight});l=r?ht(n,ct(t)):n}t.style.transform=`translate(${a}px, ${l}px)`},dt=t=>{const e=window.getComputedStyle(t).getPropertyValue("transform").match(/^matrix\((.+)\)$/);if(!e)return{translateX:0,translateY:0,scaleX:1,scaleY:1,skewX:0,skewY:0};const[n,r,a,l,i,o]=e[1].split(", ").map(parseFloat);return{translateX:i,translateY:o,scaleX:n,scaleY:l,skewX:a,skewY:r}},mt=()=>{if("undefined"==typeof window||!window.localStorage)return!1;try{return window.localStorage.getItem("__non_existing_key__"),!0}catch{return!1}},pt=()=>{if(!mt())return{readable:!1,writable:!1};try{const t="__test_write__";return window.localStorage.setItem(t,"1"),window.localStorage.removeItem(t),{readable:!0,writable:!0}}catch{}return{readable:!0,writable:!1}},gt=t=>t instanceof File,yt=t=>{if(!t)return[];const e=[];for(let n=0;n<t.length;n++)e.push(t[n]);return e},wt=(t,e)=>new File([t],e,{type:t.type}),bt=async(t,{skipFiles:e=[".DS_Store","Thumbs.db","desktop.ini","ehthumbs.db",".Spotlight-V100",".Trashes",".fseventsd","__MACOSX"]}={})=>{const n=new Set(e),r=await(async t=>{const e=t.createReader(),n=async()=>new Promise((t,r)=>{e.readEntries(async e=>{if(e.length)try{const r=await n();t([...e,...r])}catch(t){r(t)}else t([])},r)});return n()})(t);return(await B(r,async t=>t.isDirectory?bt(t,{skipFiles:e}):n.has(t.name)?[]:[await new Promise((e,n)=>{t.file(e,n)})])).flat()},xt=async(t,e={})=>{const n=t?.items;if(!n)return[];const r=[];for(let t=0;t<n.length;t++){const a=n[t];if("webkitGetAsEntry"in a){const t=a.webkitGetAsEntry?.();if(t?.isDirectory){r.push(bt(t,e));continue}if(t?.isFile){r.push(new Promise((e,n)=>t.file(t=>e([t]),n)));continue}}const l=a.getAsFile();l&&r.push(Promise.resolve([l]))}return(await Promise.all(r)).flat()},At=(t,...e)=>"function"==typeof t?t(...e):t,St=({delta:t,value:e,min:n,max:r})=>{if(0===t)return null;const a=e+t;return t<0?e<=n?null:Math.max(a,n):t>0?e>=r?null:Math.min(a,r):null},It=({value:t,min:e,max:n,velocityPxMs:r,deltaTimeMs:a,friction:l=.002,minVelocityPxMs:i=.01,emaAlpha:o=.2})=>{if(Math.abs(r)<i)return null;const s=St({delta:r*a,value:t,min:e,max:n});if(null===s)return null;const c=r*Math.exp(-l*a),u=o>0?r*(1-o)+c*o:c;return Math.abs(u)<i?null:{value:s,velocityPxMs:u}},Mt=()=>`${Math.floor(1e3*performance.now()).toString(36)}${Math.random().toString(36).slice(2,10)}`,vt=(t,e)=>Math.max(0,Math.min(t.right,e.right)-Math.max(t.left,e.left))*Math.max(0,Math.min(t.bottom,e.bottom)-Math.max(t.top,e.top))/(e.width*e.height),Ct=(t,e,{allowFallback:n=!0,invert:r=!0}={})=>{const a=r?-1:1;switch(e){case"x":return{deltaX:a*(0!==t.deltaX?t.deltaX:n?t.deltaY:0),deltaY:0};case"y":return{deltaX:0,deltaY:a*t.deltaY};default:return{deltaX:a*t.deltaX,deltaY:a*t.deltaY}}},kt=(t,e,n,r)=>{const a=n-t,l=r-e;return Math.hypot(a,l)},Et=(t,e)=>Math.abs(t/e),Ot=(t,e)=>t*e/100,$t=t=>{let e=5381;for(let n=0;n<t.length;n++)e=33*e^t.charCodeAt(n);return(e>>>0).toString(36)},Lt=t=>Object.entries(t).reduce((t,[e,n])=>(void 0!==n&&(t[e]=n),t),{}),Pt=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Tt=t=>{const e=t.charAt(0),n=t.slice(1);return e.toLowerCase()+n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)},Xt=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1 $2"),_t=t=>0===t.length?[]:t.split(" ").filter(Boolean),zt=t=>""===t||p(t),Nt=t=>{const e=t.lastIndexOf(".");return e<=0||e===t.length-1?[t,""]:[t.slice(0,e),t.slice(e+1).toLowerCase()]},Rt=(t,e)=>{if(0===t.length)return[];const n=e.charCodeAt(0),r=[];for(let e=0;e<t.length;e++)t.charCodeAt(e)===n&&r.push(e);return r},Yt=(t,e,n)=>{if(0===t.length)return;const r=t.length;for(let a=0;a<r;a++){const l=t[a],i={charIndex:a,prevChar:a>0?t[a-1]:null,nextChar:a<r-1?t[a+1]:null};n?.(l,i)||e(l,i)}},jt=(t,e=1/0)=>0===t.length?"":_t(t).slice(0,e).map(t=>t[0]).join("").toUpperCase(),Ft=(t,e,n,r=e)=>t.split(e).map((t,e)=>n(t.trim(),e)).join(r),Ut=(t,e,n,r=[],a=void 0,l=0)=>(t?.forEach(t=>{const{[n]:i,...o}=t,s=t[n],c=Array.isArray(s);if(r.push({...o,parentId:a,depthLevel:l,childCount:c?s.length:0}),c){const a=t[e];Ut(s,e,n,r,a,l+1)}}),r),Wt=(t,e,n)=>t.filter(t=>t.parentId===e&&(!n||n(t))),Bt=(t,e,n,r)=>{const a=_t(r.toLowerCase());if(!a.length)return t;const l=t.reduce((t,n,r)=>(t[n[e]]=r,t),{});return t.reduce((r,i)=>{const o=i[n];if(!o)return r;if(r.some(t=>t[e]===i[e]))return r;const s=_t(o.toLowerCase());if(a.every(t=>s.some(e=>e.startsWith(t))))if(y(i.parentId)){r.push(i);const n=a=>{a.childCount&&t.forEach(t=>{t.parentId===a[e]&&(r.push(t),n(t))})};n(i)}else{const e=n=>{const a=l[n.parentId],i=t[a];y(i.parentId)||e(i);const o=r.length?r[r.length-1].parentId:null;(m(o)||o!==n.parentId)&&(d(i,"[@react-hive/honey-utils]: Parent node was not found."),r.push(i))};e(i),r.push(i)}return r},[])},Dt=(t,e)=>{d(e>=0&&e<=1,`[@react-hive/honey-utils]: Alpha "${e}" must be a number between 0 and 1.`);const n=t.match(/^#?([0-9A-Fa-f]{3}|[0-9A-Fa-f]{6})$/);d(n,`[@react-hive/honey-utils]: Invalid hex format: ${t}`);const r=n[1];return`#${(3===r.length?r[0]+r[0]+r[1]+r[1]+r[2]+r[2]:r)+Math.round(255*e).toString(16).toUpperCase().padStart(2,"0")}`},Ht=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/,Zt=t=>{try{return Ht.test(t)?"undefined"!=typeof Buffer?Buffer.from(t,"base64").toString("utf-8"):decodeURIComponent(atob(t).split("").map(t=>`%${t.charCodeAt(0).toString(16).padStart(2,"0")}`).join("")):null}catch{return null}},Vt=t=>{const e=Zt(t);return null===e?null:tt(e)};
2353
2332
  //# sourceMappingURL=index.mjs.map
2354
2333
 
2355
2334
  /***/ }