@pie-lib/graphing-solution-set 4.0.4-next.29 → 4.0.4-next.30

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.
Files changed (310) hide show
  1. package/dist/_virtual/_rolldown/runtime.js +23 -0
  2. package/dist/autosize-input.d.ts +10 -0
  3. package/dist/autosize-input.js +66 -0
  4. package/dist/axis/arrow.d.ts +13 -0
  5. package/dist/axis/arrow.js +34 -0
  6. package/dist/axis/axes.d.ts +132 -0
  7. package/dist/axis/axes.js +214 -0
  8. package/dist/axis/index.d.ts +10 -0
  9. package/dist/bg.d.ts +51 -0
  10. package/dist/bg.js +44 -0
  11. package/dist/container/actions.d.ts +15 -0
  12. package/dist/container/actions.js +7 -0
  13. package/dist/container/index.d.ts +58 -0
  14. package/dist/container/index.js +48 -0
  15. package/dist/container/marks.d.ts +10 -0
  16. package/dist/container/marks.js +11 -0
  17. package/dist/container/middleware.d.ts +10 -0
  18. package/dist/container/middleware.js +4 -0
  19. package/dist/container/reducer.d.ts +14 -0
  20. package/dist/container/reducer.js +7 -0
  21. package/dist/coordinates-label.d.ts +50 -0
  22. package/dist/coordinates-label.js +46 -0
  23. package/dist/graph-with-controls.d.ts +85 -0
  24. package/dist/graph-with-controls.js +155 -0
  25. package/dist/graph.d.ts +119 -0
  26. package/dist/graph.js +221 -0
  27. package/dist/grid-setup.d.ts +27 -0
  28. package/dist/grid-setup.js +307 -0
  29. package/dist/grid.d.ts +43 -0
  30. package/dist/grid.js +59 -0
  31. package/dist/index.d.ts +14 -0
  32. package/dist/index.js +6 -0
  33. package/dist/labels.d.ts +73 -0
  34. package/dist/labels.js +134 -0
  35. package/dist/mark-label.d.ts +50 -0
  36. package/dist/mark-label.js +84 -0
  37. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +101 -0
  38. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +63 -0
  39. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +44 -0
  40. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  41. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  42. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +21 -0
  43. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  44. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  45. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +15 -0
  46. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +79 -0
  47. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +79 -0
  48. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +79 -0
  49. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  50. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +50 -0
  51. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +18 -0
  52. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +10 -0
  53. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +9 -0
  54. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  55. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +47 -0
  56. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +53 -0
  57. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +57 -0
  58. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +91 -0
  59. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +21 -0
  60. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +32 -0
  61. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +33 -0
  62. package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +32 -0
  63. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
  64. package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +28 -0
  65. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +21 -0
  66. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +21 -0
  67. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +10 -0
  68. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +21 -0
  69. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +9 -0
  70. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +14 -0
  71. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +15 -0
  72. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +16 -0
  73. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +9 -0
  74. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +8 -0
  75. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +14 -0
  76. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +15 -0
  77. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +19 -0
  78. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +11 -0
  79. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +13 -0
  80. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +12 -0
  81. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +18 -0
  82. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +14 -0
  83. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +14 -0
  84. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +12 -0
  85. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +16 -0
  86. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +11 -0
  87. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +14 -0
  88. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +14 -0
  89. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +13 -0
  90. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +14 -0
  91. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +19 -0
  92. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +14 -0
  93. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +13 -0
  94. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +13 -0
  95. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +14 -0
  96. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +9 -0
  97. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +12 -0
  98. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +10 -0
  99. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +20 -0
  100. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +11 -0
  101. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +16 -0
  102. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +12 -0
  103. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +20 -0
  104. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +37 -0
  105. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +509 -0
  106. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +108 -0
  107. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +31 -0
  108. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +45 -0
  109. package/dist/node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +471 -0
  110. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +49 -0
  111. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +34 -0
  112. package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +185 -0
  113. package/dist/node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js +198 -0
  114. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.development.js +53 -0
  115. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/cjs/use-sync-external-store-with-selector.production.js +51 -0
  116. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +10 -0
  117. package/dist/toggle-bar.d.ts +40 -0
  118. package/dist/tool-menu.d.ts +21 -0
  119. package/dist/tool-menu.js +188 -0
  120. package/dist/tools/index.d.ts +17 -0
  121. package/dist/tools/index.js +12 -0
  122. package/dist/tools/line/component.d.ts +113 -0
  123. package/dist/tools/line/component.js +58 -0
  124. package/dist/tools/line/index.d.ts +13 -0
  125. package/dist/tools/line/index.js +6 -0
  126. package/dist/tools/polygon/component.d.ts +117 -0
  127. package/dist/tools/polygon/component.js +194 -0
  128. package/dist/tools/polygon/index.d.ts +19 -0
  129. package/dist/tools/polygon/index.js +55 -0
  130. package/dist/tools/polygon/line.d.ts +125 -0
  131. package/dist/tools/polygon/polygon.d.ts +122 -0
  132. package/dist/tools/polygon/polygon.js +62 -0
  133. package/dist/tools/shared/arrow-head.d.ts +43 -0
  134. package/dist/tools/shared/arrow-head.js +37 -0
  135. package/dist/tools/shared/line/index.d.ts +240 -0
  136. package/dist/tools/shared/line/index.js +320 -0
  137. package/dist/tools/shared/line/line-path.d.ts +57 -0
  138. package/dist/tools/shared/line/with-root-edge.d.ts +143 -0
  139. package/dist/tools/shared/point/arrow-point.d.ts +57 -0
  140. package/dist/tools/shared/point/arrow-point.js +47 -0
  141. package/dist/tools/shared/point/arrow.d.ts +46 -0
  142. package/dist/tools/shared/point/arrow.js +36 -0
  143. package/dist/tools/shared/point/base-point.d.ts +50 -0
  144. package/dist/tools/shared/point/base-point.js +88 -0
  145. package/dist/tools/shared/point/index.d.ts +217 -0
  146. package/dist/tools/shared/point/index.js +51 -0
  147. package/dist/tools/shared/styles.d.ts +24 -0
  148. package/dist/tools/shared/styles.js +17 -0
  149. package/dist/tools/shared/types.d.ts +15 -0
  150. package/dist/tools/shared/types.js +10 -0
  151. package/dist/undo-redo.d.ts +20 -0
  152. package/dist/undo-redo.js +33 -0
  153. package/dist/use-debounce.d.ts +9 -0
  154. package/dist/use-debounce.js +13 -0
  155. package/dist/utils.d.ts +58 -0
  156. package/dist/utils.js +72 -0
  157. package/package.json +46 -34
  158. package/CHANGELOG.json +0 -1
  159. package/CHANGELOG.md +0 -449
  160. package/LICENSE.md +0 -5
  161. package/lib/axis/arrow.js +0 -79
  162. package/lib/axis/arrow.js.map +0 -1
  163. package/lib/axis/axes.js +0 -327
  164. package/lib/axis/axes.js.map +0 -1
  165. package/lib/axis/index.js +0 -21
  166. package/lib/axis/index.js.map +0 -1
  167. package/lib/bg.js +0 -114
  168. package/lib/bg.js.map +0 -1
  169. package/lib/container/actions.js +0 -18
  170. package/lib/container/actions.js.map +0 -1
  171. package/lib/container/index.js +0 -129
  172. package/lib/container/index.js.map +0 -1
  173. package/lib/container/marks.js +0 -22
  174. package/lib/container/marks.js.map +0 -1
  175. package/lib/container/middleware.js +0 -19
  176. package/lib/container/middleware.js.map +0 -1
  177. package/lib/container/reducer.js +0 -18
  178. package/lib/container/reducer.js.map +0 -1
  179. package/lib/coordinates-label.js +0 -77
  180. package/lib/coordinates-label.js.map +0 -1
  181. package/lib/graph-with-controls.js +0 -297
  182. package/lib/graph-with-controls.js.map +0 -1
  183. package/lib/graph.js +0 -353
  184. package/lib/graph.js.map +0 -1
  185. package/lib/grid-setup.js +0 -414
  186. package/lib/grid-setup.js.map +0 -1
  187. package/lib/grid.js +0 -131
  188. package/lib/grid.js.map +0 -1
  189. package/lib/index.js +0 -40
  190. package/lib/index.js.map +0 -1
  191. package/lib/labels.js +0 -199
  192. package/lib/labels.js.map +0 -1
  193. package/lib/mark-label.js +0 -159
  194. package/lib/mark-label.js.map +0 -1
  195. package/lib/toggle-bar.js +0 -248
  196. package/lib/toggle-bar.js.map +0 -1
  197. package/lib/tool-menu.js +0 -218
  198. package/lib/tool-menu.js.map +0 -1
  199. package/lib/tools/index.js +0 -24
  200. package/lib/tools/index.js.map +0 -1
  201. package/lib/tools/line/component.js +0 -92
  202. package/lib/tools/line/component.js.map +0 -1
  203. package/lib/tools/line/index.js +0 -11
  204. package/lib/tools/line/index.js.map +0 -1
  205. package/lib/tools/polygon/component.js +0 -358
  206. package/lib/tools/polygon/component.js.map +0 -1
  207. package/lib/tools/polygon/index.js +0 -89
  208. package/lib/tools/polygon/index.js.map +0 -1
  209. package/lib/tools/polygon/line.js +0 -114
  210. package/lib/tools/polygon/line.js.map +0 -1
  211. package/lib/tools/polygon/polygon.js +0 -128
  212. package/lib/tools/polygon/polygon.js.map +0 -1
  213. package/lib/tools/shared/arrow-head.js +0 -62
  214. package/lib/tools/shared/arrow-head.js.map +0 -1
  215. package/lib/tools/shared/line/index.js +0 -539
  216. package/lib/tools/shared/line/index.js.map +0 -1
  217. package/lib/tools/shared/line/line-path.js +0 -121
  218. package/lib/tools/shared/line/line-path.js.map +0 -1
  219. package/lib/tools/shared/line/with-root-edge.js +0 -121
  220. package/lib/tools/shared/line/with-root-edge.js.map +0 -1
  221. package/lib/tools/shared/point/arrow-point.js +0 -86
  222. package/lib/tools/shared/point/arrow-point.js.map +0 -1
  223. package/lib/tools/shared/point/arrow.js +0 -70
  224. package/lib/tools/shared/point/arrow.js.map +0 -1
  225. package/lib/tools/shared/point/base-point.js +0 -137
  226. package/lib/tools/shared/point/base-point.js.map +0 -1
  227. package/lib/tools/shared/point/index.js +0 -80
  228. package/lib/tools/shared/point/index.js.map +0 -1
  229. package/lib/tools/shared/styles.js +0 -26
  230. package/lib/tools/shared/styles.js.map +0 -1
  231. package/lib/tools/shared/types.js +0 -15
  232. package/lib/tools/shared/types.js.map +0 -1
  233. package/lib/undo-redo.js +0 -67
  234. package/lib/undo-redo.js.map +0 -1
  235. package/lib/use-debounce.js +0 -25
  236. package/lib/use-debounce.js.map +0 -1
  237. package/lib/utils.js +0 -235
  238. package/lib/utils.js.map +0 -1
  239. package/src/__tests__/bg.test.jsx +0 -250
  240. package/src/__tests__/coordinates-label.test.jsx +0 -243
  241. package/src/__tests__/graph-with-controls.test.jsx +0 -184
  242. package/src/__tests__/graph.test.jsx +0 -93
  243. package/src/__tests__/grid-setup.test.jsx +0 -645
  244. package/src/__tests__/grid.test.jsx +0 -23
  245. package/src/__tests__/labels.test.jsx +0 -41
  246. package/src/__tests__/mark-label.test.jsx +0 -66
  247. package/src/__tests__/toggle-bar.test.jsx +0 -106
  248. package/src/__tests__/tool-menu.test.jsx +0 -453
  249. package/src/__tests__/undo-redo.test.jsx +0 -26
  250. package/src/__tests__/use-debounce.test.js +0 -21
  251. package/src/__tests__/utils.js +0 -41
  252. package/src/__tests__/utils.test.js +0 -105
  253. package/src/axis/__tests__/arrow.test.jsx +0 -43
  254. package/src/axis/__tests__/axes.test.jsx +0 -182
  255. package/src/axis/arrow.jsx +0 -57
  256. package/src/axis/axes.jsx +0 -284
  257. package/src/axis/index.js +0 -3
  258. package/src/bg.jsx +0 -96
  259. package/src/container/__tests__/actions.test.js +0 -105
  260. package/src/container/__tests__/index.test.jsx +0 -227
  261. package/src/container/__tests__/marks.test.js +0 -172
  262. package/src/container/__tests__/middleware.test.js +0 -235
  263. package/src/container/__tests__/reducer.test.js +0 -324
  264. package/src/container/actions.js +0 -8
  265. package/src/container/index.jsx +0 -93
  266. package/src/container/marks.js +0 -14
  267. package/src/container/middleware.js +0 -7
  268. package/src/container/reducer.js +0 -5
  269. package/src/coordinates-label.jsx +0 -62
  270. package/src/graph-with-controls.jsx +0 -242
  271. package/src/graph.jsx +0 -333
  272. package/src/grid-setup.jsx +0 -432
  273. package/src/grid.jsx +0 -133
  274. package/src/index.js +0 -7
  275. package/src/labels.jsx +0 -173
  276. package/src/mark-label.jsx +0 -125
  277. package/src/toggle-bar.jsx +0 -221
  278. package/src/tool-menu.jsx +0 -235
  279. package/src/tools/index.js +0 -8
  280. package/src/tools/line/__tests__/component.test.jsx +0 -37
  281. package/src/tools/line/component.jsx +0 -77
  282. package/src/tools/line/index.js +0 -4
  283. package/src/tools/polygon/__tests__/component.test.jsx +0 -487
  284. package/src/tools/polygon/__tests__/index.test.js +0 -65
  285. package/src/tools/polygon/__tests__/line.test.jsx +0 -23
  286. package/src/tools/polygon/__tests__/polygon.test.jsx +0 -44
  287. package/src/tools/polygon/component.jsx +0 -324
  288. package/src/tools/polygon/index.js +0 -52
  289. package/src/tools/polygon/line.jsx +0 -80
  290. package/src/tools/polygon/polygon.jsx +0 -93
  291. package/src/tools/shared/__tests__/arrow-head.test.jsx +0 -33
  292. package/src/tools/shared/arrow-head.jsx +0 -46
  293. package/src/tools/shared/line/__tests__/index.test.jsx +0 -553
  294. package/src/tools/shared/line/__tests__/line-path.test.jsx +0 -56
  295. package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +0 -488
  296. package/src/tools/shared/line/index.jsx +0 -471
  297. package/src/tools/shared/line/line-path.jsx +0 -85
  298. package/src/tools/shared/line/with-root-edge.jsx +0 -97
  299. package/src/tools/shared/point/__tests__/arrow-point.test.jsx +0 -91
  300. package/src/tools/shared/point/__tests__/arrow.test.jsx +0 -469
  301. package/src/tools/shared/point/__tests__/base-point.test.jsx +0 -87
  302. package/src/tools/shared/point/arrow-point.jsx +0 -60
  303. package/src/tools/shared/point/arrow.jsx +0 -40
  304. package/src/tools/shared/point/base-point.jsx +0 -113
  305. package/src/tools/shared/point/index.jsx +0 -58
  306. package/src/tools/shared/styles.js +0 -20
  307. package/src/tools/shared/types.js +0 -8
  308. package/src/undo-redo.jsx +0 -37
  309. package/src/use-debounce.js +0 -13
  310. package/src/utils.js +0 -230
@@ -0,0 +1,108 @@
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ //#region ../../../node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js
3
+ var t = /* @__PURE__ */ e(((e, t) => {
4
+ var n = function(e) {
5
+ this.value = e;
6
+ };
7
+ n.math = {
8
+ isDegree: !0,
9
+ acos: function(e) {
10
+ return n.math.isDegree ? 180 / Math.PI * Math.acos(e) : Math.acos(e);
11
+ },
12
+ add: function(e, t) {
13
+ return e + t;
14
+ },
15
+ asin: function(e) {
16
+ return n.math.isDegree ? 180 / Math.PI * Math.asin(e) : Math.asin(e);
17
+ },
18
+ atan: function(e) {
19
+ return n.math.isDegree ? 180 / Math.PI * Math.atan(e) : Math.atan(e);
20
+ },
21
+ acosh: function(e) {
22
+ return Math.log(e + Math.sqrt(e * e - 1));
23
+ },
24
+ asinh: function(e) {
25
+ return Math.log(e + Math.sqrt(e * e + 1));
26
+ },
27
+ atanh: function(e) {
28
+ return Math.log((1 + e) / (1 - e));
29
+ },
30
+ C: function(e, t) {
31
+ var r = 1, i = e - t, a = t;
32
+ a < i && (a = i, i = t);
33
+ for (var o = a + 1; o <= e; o++) r *= o;
34
+ return r / n.math.fact(i);
35
+ },
36
+ changeSign: function(e) {
37
+ return -e;
38
+ },
39
+ cos: function(e) {
40
+ return n.math.isDegree && (e = n.math.toRadian(e)), Math.cos(e);
41
+ },
42
+ cosh: function(e) {
43
+ return (Math.E ** +e + Math.E ** (-1 * e)) / 2;
44
+ },
45
+ div: function(e, t) {
46
+ return e / t;
47
+ },
48
+ fact: function(e) {
49
+ if (e % 1 != 0) return "NaN";
50
+ for (var t = 1, n = 2; n <= e; n++) t *= n;
51
+ return t;
52
+ },
53
+ inverse: function(e) {
54
+ return 1 / e;
55
+ },
56
+ log: function(e) {
57
+ return Math.log(e) / Math.log(10);
58
+ },
59
+ mod: function(e, t) {
60
+ return e % t;
61
+ },
62
+ mul: function(e, t) {
63
+ return e * t;
64
+ },
65
+ P: function(e, t) {
66
+ for (var n = 1, r = Math.floor(e) - Math.floor(t) + 1; r <= Math.floor(e); r++) n *= r;
67
+ return n;
68
+ },
69
+ Pi: function(e, t, n) {
70
+ for (var r = 1, i = e; i <= t; i++) r *= Number(n.postfixEval({ n: i }));
71
+ return r;
72
+ },
73
+ pow10x: function(e) {
74
+ for (var t = 1; e--;) t *= 10;
75
+ return t;
76
+ },
77
+ sigma: function(e, t, n) {
78
+ for (var r = 0, i = e; i <= t; i++) r += Number(n.postfixEval({ n: i }));
79
+ return r;
80
+ },
81
+ sin: function(e) {
82
+ return n.math.isDegree && (e = n.math.toRadian(e)), Math.sin(e);
83
+ },
84
+ sinh: function(e) {
85
+ return (Math.E ** +e - Math.E ** (-1 * e)) / 2;
86
+ },
87
+ sub: function(e, t) {
88
+ return e - t;
89
+ },
90
+ tan: function(e) {
91
+ return n.math.isDegree && (e = n.math.toRadian(e)), Math.tan(e);
92
+ },
93
+ tanh: function(e) {
94
+ return n.sinha(e) / n.cosha(e);
95
+ },
96
+ toRadian: function(e) {
97
+ return e * Math.PI / 180;
98
+ },
99
+ and: function(e, t) {
100
+ return e & t;
101
+ }
102
+ }, n.Exception = function(e) {
103
+ this.message = e;
104
+ }, t.exports = n;
105
+ }));
106
+ //#endregion
107
+ export default t();
108
+ export { t as require_math_function };
@@ -0,0 +1,31 @@
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_lexer as t } from "./lexer.js";
3
+ //#region ../../../node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js
4
+ var n = /* @__PURE__ */ e(((e, n) => {
5
+ var r = t();
6
+ r.prototype.toPostfix = function() {
7
+ for (var e = [], t, n, i, a, o, s = [{
8
+ value: "(",
9
+ type: 4,
10
+ pre: 0
11
+ }], c = this.value, l = 1; l < c.length; l++) if (c[l].type === 1 || c[l].type === 3 || c[l].type === 13) c[l].type === 1 && (c[l].value = Number(c[l].value)), e.push(c[l]);
12
+ else if (c[l].type === 4) s.push(c[l]);
13
+ else if (c[l].type === 5) for (; (n = s.pop()).type !== 4;) e.push(n);
14
+ else if (c[l].type === 11) {
15
+ for (; (n = s.pop()).type !== 4;) e.push(n);
16
+ s.push(n);
17
+ } else {
18
+ t = c[l], a = t.pre, o = s[s.length - 1], i = o.pre;
19
+ var u = o.value == "Math.pow" && t.value == "Math.pow";
20
+ if (a > i) s.push(t);
21
+ else {
22
+ for (; i >= a && !u || u && a < i;) n = s.pop(), o = s[s.length - 1], e.push(n), i = o.pre, u = t.value == "Math.pow" && o.value == "Math.pow";
23
+ s.push(t);
24
+ }
25
+ }
26
+ return new r(e);
27
+ }, n.exports = r;
28
+ }));
29
+ //#endregion
30
+ export default n();
31
+ export { n as require_postfix };
@@ -0,0 +1,45 @@
1
+ import { __commonJSMin as e } from "../../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_postfix as t } from "./postfix.js";
3
+ //#region ../../../node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js
4
+ var n = /* @__PURE__ */ e(((e, n) => {
5
+ var r = t();
6
+ r.prototype.postfixEval = function(e) {
7
+ e ||= {}, e.PI = Math.PI, e.E = Math.E;
8
+ for (var t = [], n, i, a, o = this.value, s = e.n !== void 0, c = 0; c < o.length; c++) if (o[c].type === 1) t.push({
9
+ value: o[c].value,
10
+ type: 1
11
+ });
12
+ else if (o[c].type === 3) t.push({
13
+ value: e[o[c].value],
14
+ type: 1
15
+ });
16
+ else if (o[c].type === 0) t[t.length - 1].type === void 0 ? t[t.length - 1].value.push(o[c]) : t[t.length - 1].value = o[c].value(t[t.length - 1].value);
17
+ else if (o[c].type === 7) t[t.length - 1].type === void 0 ? t[t.length - 1].value.push(o[c]) : t[t.length - 1].value = o[c].value(t[t.length - 1].value);
18
+ else if (o[c].type === 8) {
19
+ for (var l = [], u = 0; u < o[c].numberOfArguments; u++) l.push(t.pop().value);
20
+ t.push({
21
+ type: 1,
22
+ value: o[c].value.apply(o[c], l.reverse())
23
+ });
24
+ } else o[c].type === 10 ? (n = t.pop(), i = t.pop(), i.type === void 0 ? (i.value = i.concat(n), i.value.push(o[c]), t.push(i)) : n.type === void 0 ? (n.unshift(i), n.push(o[c]), t.push(n)) : t.push({
25
+ type: 1,
26
+ value: o[c].value(i.value, n.value)
27
+ })) : o[c].type === 2 || o[c].type === 9 ? (n = t.pop(), i = t.pop(), i.type === void 0 ? (i = i.concat(n), i.push(o[c]), t.push(i)) : n.type === void 0 ? (n.unshift(i), n.push(o[c]), t.push(n)) : t.push({
28
+ type: 1,
29
+ value: o[c].value(i.value, n.value)
30
+ })) : o[c].type === 12 ? (n = t.pop(), n.type !== void 0 && (n = [n]), i = t.pop(), a = t.pop(), t.push({
31
+ type: 1,
32
+ value: o[c].value(a.value, i.value, new r(n))
33
+ })) : o[c].type === 13 && (s ? t.push({
34
+ value: e[o[c].value],
35
+ type: 3
36
+ }) : t.push([o[c]]));
37
+ if (t.length > 1) throw new r.Exception("Uncaught Syntax error");
38
+ return t[0].value > 0x38d7ea4c68000 ? "Infinity" : parseFloat(t[0].value.toFixed(15));
39
+ }, r.eval = function(e, t, n) {
40
+ return t === void 0 ? this.lex(e).toPostfix().postfixEval() : n === void 0 ? t.length === void 0 ? this.lex(e).toPostfix().postfixEval(t) : this.lex(e, t).toPostfix().postfixEval() : this.lex(e, t).toPostfix().postfixEval(n);
41
+ }, n.exports = r;
42
+ }));
43
+ //#endregion
44
+ export default n();
45
+ export { n as require_postfix_evaluator };
@@ -0,0 +1,471 @@
1
+ import { require_with_selector as e } from "../../../../use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js";
2
+ import * as t from "react";
3
+ e();
4
+ var n = /* @__PURE__ */ t.version.startsWith("19"), r = /* @__PURE__ */ Symbol.for(n ? "react.transitional.element" : "react.element"), i = /* @__PURE__ */ Symbol.for("react.portal"), a = /* @__PURE__ */ Symbol.for("react.fragment"), o = /* @__PURE__ */ Symbol.for("react.strict_mode"), s = /* @__PURE__ */ Symbol.for("react.profiler"), c = /* @__PURE__ */ Symbol.for("react.consumer"), l = /* @__PURE__ */ Symbol.for("react.context"), u = /* @__PURE__ */ Symbol.for("react.forward_ref"), d = /* @__PURE__ */ Symbol.for("react.suspense"), f = /* @__PURE__ */ Symbol.for("react.suspense_list"), p = /* @__PURE__ */ Symbol.for("react.memo"), m = /* @__PURE__ */ Symbol.for("react.lazy"), h = /* @__PURE__ */ Symbol.for("react.offscreen"), g = /* @__PURE__ */ Symbol.for("react.client.reference"), _ = u, v = p;
5
+ function y(e) {
6
+ return !!(typeof e == "string" || typeof e == "function" || e === a || e === s || e === o || e === d || e === f || e === h || typeof e == "object" && e && (e.$$typeof === m || e.$$typeof === p || e.$$typeof === l || e.$$typeof === c || e.$$typeof === u || e.$$typeof === g || e.getModuleId !== void 0));
7
+ }
8
+ function b(e) {
9
+ if (typeof e == "object" && e) {
10
+ let { $$typeof: t } = e;
11
+ switch (t) {
12
+ case r: switch (e = e.type, e) {
13
+ case a:
14
+ case s:
15
+ case o:
16
+ case d:
17
+ case f: return e;
18
+ default: switch (e &&= e.$$typeof, e) {
19
+ case l:
20
+ case u:
21
+ case m:
22
+ case p: return e;
23
+ case c: return e;
24
+ default: return t;
25
+ }
26
+ }
27
+ case i: return t;
28
+ }
29
+ }
30
+ }
31
+ function ee(e) {
32
+ return n ? b(e) === c : b(e) === l;
33
+ }
34
+ function x(e) {
35
+ return b(e) === p;
36
+ }
37
+ function S(e) {
38
+ typeof console < "u" && typeof console.error == "function" && console.error(e);
39
+ try {
40
+ throw Error(e);
41
+ } catch {}
42
+ }
43
+ function C(e, t) {
44
+ if (e) (t === "mapStateToProps" || t === "mapDispatchToProps") && (Object.prototype.hasOwnProperty.call(e, "dependsOnOwnProps") || S(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));
45
+ else throw Error(`Unexpected value for ${t} in connect.`);
46
+ }
47
+ function w(e, t, n) {
48
+ C(e, "mapStateToProps"), C(t, "mapDispatchToProps"), C(n, "mergeProps");
49
+ }
50
+ function T(e, t, n, r, { areStatesEqual: i, areOwnPropsEqual: a, areStatePropsEqual: o }) {
51
+ let s = !1, c, l, u, d, f;
52
+ function p(i, a) {
53
+ return c = i, l = a, u = e(c, l), d = t(r, l), f = n(u, d, l), s = !0, f;
54
+ }
55
+ function m() {
56
+ return u = e(c, l), t.dependsOnOwnProps && (d = t(r, l)), f = n(u, d, l), f;
57
+ }
58
+ function h() {
59
+ return e.dependsOnOwnProps && (u = e(c, l)), t.dependsOnOwnProps && (d = t(r, l)), f = n(u, d, l), f;
60
+ }
61
+ function g() {
62
+ let t = e(c, l), r = !o(t, u);
63
+ return u = t, r && (f = n(u, d, l)), f;
64
+ }
65
+ function _(e, t) {
66
+ let n = !a(t, l), r = !i(e, c, t, l);
67
+ return c = e, l = t, n && r ? m() : n ? h() : r ? g() : f;
68
+ }
69
+ return function(e, t) {
70
+ return s ? _(e, t) : p(e, t);
71
+ };
72
+ }
73
+ function te(e, { initMapStateToProps: t, initMapDispatchToProps: n, initMergeProps: r, ...i }) {
74
+ let a = t(e, i), o = n(e, i), s = r(e, i);
75
+ return process.env.NODE_ENV !== "production" && w(a, o, s), T(a, o, s, e, i);
76
+ }
77
+ function E(e, t) {
78
+ let n = {};
79
+ for (let r in e) {
80
+ let i = e[r];
81
+ typeof i == "function" && (n[r] = (...e) => t(i(...e)));
82
+ }
83
+ return n;
84
+ }
85
+ function D(e) {
86
+ if (typeof e != "object" || !e) return !1;
87
+ let t = Object.getPrototypeOf(e);
88
+ if (t === null) return !0;
89
+ let n = t;
90
+ for (; Object.getPrototypeOf(n) !== null;) n = Object.getPrototypeOf(n);
91
+ return t === n;
92
+ }
93
+ function O(e, t, n) {
94
+ D(e) || S(`${n}() in ${t} must return a plain object. Instead received ${e}.`);
95
+ }
96
+ function k(e) {
97
+ return function(t) {
98
+ let n = e(t);
99
+ function r() {
100
+ return n;
101
+ }
102
+ return r.dependsOnOwnProps = !1, r;
103
+ };
104
+ }
105
+ function A(e) {
106
+ return e.dependsOnOwnProps ? !!e.dependsOnOwnProps : e.length !== 1;
107
+ }
108
+ function j(e, t) {
109
+ return function(n, { displayName: r }) {
110
+ let i = function(e, t) {
111
+ return i.dependsOnOwnProps ? i.mapToProps(e, t) : i.mapToProps(e, void 0);
112
+ };
113
+ return i.dependsOnOwnProps = !0, i.mapToProps = function(n, a) {
114
+ i.mapToProps = e, i.dependsOnOwnProps = A(e);
115
+ let o = i(n, a);
116
+ return typeof o == "function" && (i.mapToProps = o, i.dependsOnOwnProps = A(o), o = i(n, a)), process.env.NODE_ENV !== "production" && O(o, r, t), o;
117
+ }, i;
118
+ };
119
+ }
120
+ function M(e, t) {
121
+ return (n, r) => {
122
+ throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`);
123
+ };
124
+ }
125
+ function N(e) {
126
+ return e && typeof e == "object" ? k((t) => E(e, t)) : e ? typeof e == "function" ? j(e, "mapDispatchToProps") : M(e, "mapDispatchToProps") : k((e) => ({ dispatch: e }));
127
+ }
128
+ function P(e) {
129
+ return e ? typeof e == "function" ? j(e, "mapStateToProps") : M(e, "mapStateToProps") : k(() => ({}));
130
+ }
131
+ function F(e, t, n) {
132
+ return {
133
+ ...n,
134
+ ...e,
135
+ ...t
136
+ };
137
+ }
138
+ function I(e) {
139
+ return function(t, { displayName: n, areMergedPropsEqual: r }) {
140
+ let i = !1, a;
141
+ return function(t, o, s) {
142
+ let c = e(t, o, s);
143
+ return i ? r(c, a) || (a = c) : (i = !0, a = c, process.env.NODE_ENV !== "production" && O(a, n, "mergeProps")), a;
144
+ };
145
+ };
146
+ }
147
+ function ne(e) {
148
+ return e ? typeof e == "function" ? I(e) : M(e, "mergeProps") : () => F;
149
+ }
150
+ function re(e) {
151
+ e();
152
+ }
153
+ function ie() {
154
+ let e = null, t = null;
155
+ return {
156
+ clear() {
157
+ e = null, t = null;
158
+ },
159
+ notify() {
160
+ re(() => {
161
+ let t = e;
162
+ for (; t;) t.callback(), t = t.next;
163
+ });
164
+ },
165
+ get() {
166
+ let t = [], n = e;
167
+ for (; n;) t.push(n), n = n.next;
168
+ return t;
169
+ },
170
+ subscribe(n) {
171
+ let r = !0, i = t = {
172
+ callback: n,
173
+ next: null,
174
+ prev: t
175
+ };
176
+ return i.prev ? i.prev.next = i : e = i, function() {
177
+ !r || e === null || (r = !1, i.next ? i.next.prev = i.prev : t = i.prev, i.prev ? i.prev.next = i.next : e = i.next);
178
+ };
179
+ }
180
+ };
181
+ }
182
+ var L = {
183
+ notify() {},
184
+ get: () => []
185
+ };
186
+ function R(e, t) {
187
+ let n, r = L, i = 0, a = !1;
188
+ function o(e) {
189
+ u();
190
+ let t = r.subscribe(e), n = !1;
191
+ return () => {
192
+ n || (n = !0, t(), d());
193
+ };
194
+ }
195
+ function s() {
196
+ r.notify();
197
+ }
198
+ function c() {
199
+ m.onStateChange && m.onStateChange();
200
+ }
201
+ function l() {
202
+ return a;
203
+ }
204
+ function u() {
205
+ i++, n || (n = t ? t.addNestedSub(c) : e.subscribe(c), r = ie());
206
+ }
207
+ function d() {
208
+ i--, n && i === 0 && (n(), n = void 0, r.clear(), r = L);
209
+ }
210
+ function f() {
211
+ a || (a = !0, u());
212
+ }
213
+ function p() {
214
+ a && (a = !1, d());
215
+ }
216
+ let m = {
217
+ addNestedSub: o,
218
+ notifyNestedSubs: s,
219
+ handleChangeWrapper: c,
220
+ isSubscribed: l,
221
+ trySubscribe: f,
222
+ tryUnsubscribe: p,
223
+ getListeners: () => r
224
+ };
225
+ return m;
226
+ }
227
+ var ae = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0, oe = typeof navigator < "u" && navigator.product === "ReactNative", z = ae || oe ? t.useLayoutEffect : t.useEffect;
228
+ function B(e, t) {
229
+ return e === t ? e !== 0 || t !== 0 || 1 / e == 1 / t : e !== e && t !== t;
230
+ }
231
+ function V(e, t) {
232
+ if (B(e, t)) return !0;
233
+ if (typeof e != "object" || !e || typeof t != "object" || !t) return !1;
234
+ let n = Object.keys(e), r = Object.keys(t);
235
+ if (n.length !== r.length) return !1;
236
+ for (let r = 0; r < n.length; r++) if (!Object.prototype.hasOwnProperty.call(t, n[r]) || !B(e[n[r]], t[n[r]])) return !1;
237
+ return !0;
238
+ }
239
+ var H = {
240
+ childContextTypes: !0,
241
+ contextType: !0,
242
+ contextTypes: !0,
243
+ defaultProps: !0,
244
+ displayName: !0,
245
+ getDefaultProps: !0,
246
+ getDerivedStateFromError: !0,
247
+ getDerivedStateFromProps: !0,
248
+ mixins: !0,
249
+ propTypes: !0,
250
+ type: !0
251
+ }, U = {
252
+ name: !0,
253
+ length: !0,
254
+ prototype: !0,
255
+ caller: !0,
256
+ callee: !0,
257
+ arguments: !0,
258
+ arity: !0
259
+ }, W = {
260
+ $$typeof: !0,
261
+ render: !0,
262
+ defaultProps: !0,
263
+ displayName: !0,
264
+ propTypes: !0
265
+ }, G = {
266
+ $$typeof: !0,
267
+ compare: !0,
268
+ defaultProps: !0,
269
+ displayName: !0,
270
+ propTypes: !0,
271
+ type: !0
272
+ }, K = {
273
+ [_]: W,
274
+ [v]: G
275
+ };
276
+ function q(e) {
277
+ return x(e) ? G : K[e.$$typeof] || H;
278
+ }
279
+ var se = Object.defineProperty, ce = Object.getOwnPropertyNames, J = Object.getOwnPropertySymbols, le = Object.getOwnPropertyDescriptor, ue = Object.getPrototypeOf, Y = Object.prototype;
280
+ function X(e, t) {
281
+ if (typeof t != "string") {
282
+ if (Y) {
283
+ let n = ue(t);
284
+ n && n !== Y && X(e, n);
285
+ }
286
+ let n = ce(t);
287
+ J && (n = n.concat(J(t)));
288
+ let r = q(e), i = q(t);
289
+ for (let a = 0; a < n.length; ++a) {
290
+ let o = n[a];
291
+ if (!U[o] && !(i && i[o]) && !(r && r[o])) {
292
+ let n = le(t, o);
293
+ try {
294
+ se(e, o, n);
295
+ } catch {}
296
+ }
297
+ }
298
+ }
299
+ return e;
300
+ }
301
+ var de = /* @__PURE__ */ Symbol.for("react-redux-context"), fe = typeof globalThis < "u" ? globalThis : {};
302
+ function pe() {
303
+ if (!t.createContext) return {};
304
+ let e = fe[de] ??= /* @__PURE__ */ new Map(), n = e.get(t.createContext);
305
+ return n || (n = t.createContext(null), process.env.NODE_ENV !== "production" && (n.displayName = "ReactRedux"), e.set(t.createContext, n)), n;
306
+ }
307
+ var Z = /* @__PURE__ */ pe(), me = [null, null], Q = (e) => {
308
+ try {
309
+ return JSON.stringify(e);
310
+ } catch {
311
+ return String(e);
312
+ }
313
+ };
314
+ function he(e, t, n) {
315
+ z(() => e(...t), n);
316
+ }
317
+ function ge(e, t, n, r, i, a) {
318
+ e.current = r, n.current = !1, i.current && (i.current = null, a());
319
+ }
320
+ function _e(e, t, n, r, i, a, o, s, c, l, u) {
321
+ if (!e) return () => {};
322
+ let d = !1, f = null, p = () => {
323
+ if (d || !s.current) return;
324
+ let e = t.getState(), n, p;
325
+ try {
326
+ n = r(e, i.current);
327
+ } catch (e) {
328
+ p = e, f = e;
329
+ }
330
+ p || (f = null), n === a.current ? o.current || l() : (a.current = n, c.current = n, o.current = !0, u());
331
+ };
332
+ return n.onStateChange = p, n.trySubscribe(), p(), () => {
333
+ if (d = !0, n.tryUnsubscribe(), n.onStateChange = null, f) throw f;
334
+ };
335
+ }
336
+ function ve(e, t) {
337
+ return e === t;
338
+ }
339
+ var $ = !1;
340
+ function ye(e, n, r, { pure: i, areStatesEqual: a = ve, areOwnPropsEqual: o = V, areStatePropsEqual: s = V, areMergedPropsEqual: c = V, forwardRef: l = !1, context: u = Z } = {}) {
341
+ process.env.NODE_ENV !== "production" && i !== void 0 && !$ && ($ = !0, S("The `pure` option has been removed. `connect` is now always a \"pure/memoized\" component"));
342
+ let d = u, f = P(e), p = N(n), m = ne(r), h = !!e;
343
+ return (e) => {
344
+ if (process.env.NODE_ENV !== "production" && !/* @__PURE__ */ y(e)) throw Error(`You must pass a component to the function returned by connect. Instead received ${Q(e)}`);
345
+ let n = e.displayName || e.name || "Component", r = `Connect(${n})`, i = {
346
+ shouldHandleStateChanges: h,
347
+ displayName: r,
348
+ wrappedComponentName: n,
349
+ WrappedComponent: e,
350
+ initMapStateToProps: f,
351
+ initMapDispatchToProps: p,
352
+ initMergeProps: m,
353
+ areStatesEqual: a,
354
+ areStatePropsEqual: s,
355
+ areOwnPropsEqual: o,
356
+ areMergedPropsEqual: c
357
+ };
358
+ function u(n) {
359
+ let [a, o, s] = t.useMemo(() => {
360
+ let { reactReduxForwardedRef: e, ...t } = n;
361
+ return [
362
+ n.context,
363
+ e,
364
+ t
365
+ ];
366
+ }, [n]), c = t.useMemo(() => {
367
+ let e = d;
368
+ if (a?.Consumer && process.env.NODE_ENV !== "production") {
369
+ if (!/* @__PURE__ */ ee(/* @__PURE__ */ t.createElement(a.Consumer, null))) throw Error("You must pass a valid React context consumer as `props.context`");
370
+ e = a;
371
+ }
372
+ return e;
373
+ }, [a, d]), l = t.useContext(c), u = !!n.store && !!n.store.getState && !!n.store.dispatch, f = !!l && !!l.store;
374
+ if (process.env.NODE_ENV !== "production" && !u && !f) throw Error(`Could not find "store" in the context of "${r}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${r} in connect options.`);
375
+ let p = u ? n.store : l.store, m = f ? l.getServerState : p.getState, g = t.useMemo(() => te(p.dispatch, i), [p]), [_, v] = t.useMemo(() => {
376
+ if (!h) return me;
377
+ let e = R(p, u ? void 0 : l.subscription);
378
+ return [e, e.notifyNestedSubs.bind(e)];
379
+ }, [
380
+ p,
381
+ u,
382
+ l
383
+ ]), y = t.useMemo(() => u ? l : {
384
+ ...l,
385
+ subscription: _
386
+ }, [
387
+ u,
388
+ l,
389
+ _
390
+ ]), b = t.useRef(void 0), x = t.useRef(s), S = t.useRef(void 0), C = t.useRef(!1), w = t.useRef(!1), T = t.useRef(void 0);
391
+ z(() => (w.current = !0, () => {
392
+ w.current = !1;
393
+ }), []);
394
+ let E = t.useMemo(() => () => S.current && s === x.current ? S.current : g(p.getState(), s), [p, s]), D = t.useMemo(() => (e) => _ ? _e(h, p, _, g, x, b, C, w, S, v, e) : () => {}, [_]);
395
+ he(ge, [
396
+ x,
397
+ b,
398
+ C,
399
+ s,
400
+ S,
401
+ v
402
+ ]);
403
+ let O;
404
+ try {
405
+ O = t.useSyncExternalStore(D, E, m ? () => g(m(), s) : E);
406
+ } catch (e) {
407
+ throw T.current && (e.message += `
408
+ The error may be correlated with this previous error:
409
+ ${T.current.stack}
410
+
411
+ `), e;
412
+ }
413
+ z(() => {
414
+ T.current = void 0, S.current = void 0, b.current = O;
415
+ });
416
+ let k = t.useMemo(() => /* @__PURE__ */ t.createElement(e, {
417
+ ...O,
418
+ ref: o
419
+ }), [
420
+ o,
421
+ e,
422
+ O
423
+ ]);
424
+ return t.useMemo(() => h ? /* @__PURE__ */ t.createElement(c.Provider, { value: y }, k) : k, [
425
+ c,
426
+ k,
427
+ y
428
+ ]);
429
+ }
430
+ let g = t.memo(u);
431
+ if (g.WrappedComponent = e, g.displayName = u.displayName = r, l) {
432
+ let n = t.forwardRef(function(e, n) {
433
+ return /* @__PURE__ */ t.createElement(g, {
434
+ ...e,
435
+ reactReduxForwardedRef: n
436
+ });
437
+ });
438
+ return n.displayName = r, n.WrappedComponent = e, /* @__PURE__ */ X(n, e);
439
+ }
440
+ return /* @__PURE__ */ X(g, e);
441
+ };
442
+ }
443
+ var be = ye;
444
+ function xe(e) {
445
+ let { children: n, context: r, serverState: i, store: a } = e, o = t.useMemo(() => {
446
+ let t = {
447
+ store: a,
448
+ subscription: R(a),
449
+ getServerState: i ? () => i : void 0
450
+ };
451
+ if (process.env.NODE_ENV === "production") return t;
452
+ {
453
+ let { identityFunctionCheck: n = "once", stabilityCheck: r = "once" } = e;
454
+ return /* @__PURE__ */ Object.assign(t, {
455
+ stabilityCheck: r,
456
+ identityFunctionCheck: n
457
+ });
458
+ }
459
+ }, [a, i]), s = t.useMemo(() => a.getState(), [a]);
460
+ z(() => {
461
+ let { subscription: e } = o;
462
+ return e.onStateChange = e.notifyNestedSubs, e.trySubscribe(), s !== a.getState() && e.notifyNestedSubs(), () => {
463
+ e.tryUnsubscribe(), e.onStateChange = void 0;
464
+ };
465
+ }, [o, s]);
466
+ let c = r || Z;
467
+ return /* @__PURE__ */ t.createElement(c.Provider, { value: o }, n);
468
+ }
469
+ var Se = xe;
470
+ //#endregion
471
+ export { Se as Provider_default, be as connect };
@@ -0,0 +1,49 @@
1
+ import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_balanced_match as t } from "../../../balanced-match@0.4.2/node_modules/balanced-match/index.js";
3
+ import { require_reduce_function_call as n } from "../../../reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js";
4
+ import { require_formula_evaluator as r } from "../../../math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js";
5
+ //#region ../../../node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js
6
+ var i = /* @__PURE__ */ e(((e, i) => {
7
+ var a = t(), o = n(), s = r(), c = 100, l = /(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g, u;
8
+ i.exports = d;
9
+ function d(e, t) {
10
+ u = 0, t = 10 ** (t === void 0 ? 5 : t), e = e.replace(/\n+/g, " ");
11
+ function n(e, n, i) {
12
+ if (u++ > c) throw u = 0, Error("Call stack overflow for " + i);
13
+ if (e === "") throw Error(n + "(): '" + i + "' must contain a non-whitespace string");
14
+ e = r(e, i);
15
+ var a = f(e);
16
+ if (a.length > 1 || e.indexOf("var(") > -1) return n + "(" + e + ")";
17
+ var o = a[0] || "";
18
+ o === "%" && (e = e.replace(/\b[0-9\.]+%/g, function(e) {
19
+ return parseFloat(e.slice(0, -1)) * .01;
20
+ }));
21
+ var l = e.replace(new RegExp(o, "gi"), ""), d;
22
+ try {
23
+ d = s.eval(l);
24
+ } catch {
25
+ return n + "(" + e + ")";
26
+ }
27
+ return o === "%" && (d *= 100), (n.length || o === "%") && (d = Math.round(d * t) / t), d += o, d;
28
+ }
29
+ function r(e, t) {
30
+ e = e.replace(/((?:\-[a-z]+\-)?calc)/g, "");
31
+ for (var r = "", i = e, o; o = l.exec(i);) {
32
+ o[0].index > 0 && (r += i.substring(0, o[0].index));
33
+ var s = a("(", ")", i.substring([0].index));
34
+ if (s.body === "") throw Error("'" + e + "' must contain a non-whitespace string");
35
+ var c = n(s.body, "", t);
36
+ r += s.pre + c, i = s.post;
37
+ }
38
+ return r + i;
39
+ }
40
+ return o(e, /((?:\-[a-z]+\-)?calc)\(/, n);
41
+ }
42
+ function f(e) {
43
+ for (var t = [], n = [], r = /[\.0-9]([%a-z]+)/gi, i = r.exec(e); i;) !i || !i[1] || (n.indexOf(i[1].toLowerCase()) === -1 && (t.push(i[1]), n.push(i[1].toLowerCase())), i = r.exec(e));
44
+ return t;
45
+ }
46
+ }));
47
+ //#endregion
48
+ export default i();
49
+ export { i as require_reduce_css_calc };