@pie-lib/graphing 4.0.5-next.29 → 4.0.5-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 (453) 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 +88 -0
  24. package/dist/graph-with-controls.js +154 -0
  25. package/dist/graph.d.ts +126 -0
  26. package/dist/graph.js +209 -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 +15 -0
  32. package/dist/index.js +7 -0
  33. package/dist/key-legend.d.ts +21 -0
  34. package/dist/key-legend.js +231 -0
  35. package/dist/label-svg-icon.d.ts +18 -0
  36. package/dist/label-svg-icon.js +42 -0
  37. package/dist/labels.d.ts +37 -0
  38. package/dist/labels.js +152 -0
  39. package/dist/mark-label.d.ts +58 -0
  40. package/dist/mark-label.js +171 -0
  41. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +101 -0
  42. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +63 -0
  43. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +44 -0
  44. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +9 -0
  45. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +14 -0
  46. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +21 -0
  47. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +16 -0
  48. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +8 -0
  49. package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +15 -0
  50. package/dist/node_modules/.bun/@visx_curve@3.12.0/node_modules/@visx/curve/esm/index.js +2 -0
  51. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +79 -0
  52. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +79 -0
  53. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +79 -0
  54. package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +6 -0
  55. package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +50 -0
  56. package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +18 -0
  57. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +10 -0
  58. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +9 -0
  59. package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +6 -0
  60. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +47 -0
  61. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +50 -0
  62. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +9 -0
  63. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +6 -0
  64. package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +53 -0
  65. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +57 -0
  66. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +91 -0
  67. package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +21 -0
  68. package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +32 -0
  69. package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +33 -0
  70. package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +32 -0
  71. package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +16 -0
  72. package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +28 -0
  73. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +21 -0
  74. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +21 -0
  75. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +10 -0
  76. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +21 -0
  77. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +9 -0
  78. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +14 -0
  79. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +15 -0
  80. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +16 -0
  81. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +9 -0
  82. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +8 -0
  83. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +14 -0
  84. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +15 -0
  85. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +19 -0
  86. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +11 -0
  87. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +13 -0
  88. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +12 -0
  89. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +18 -0
  90. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +14 -0
  91. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +14 -0
  92. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +12 -0
  93. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +16 -0
  94. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +11 -0
  95. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +14 -0
  96. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +14 -0
  97. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +13 -0
  98. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +14 -0
  99. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +19 -0
  100. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +14 -0
  101. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +13 -0
  102. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +13 -0
  103. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +14 -0
  104. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +9 -0
  105. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +12 -0
  106. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +10 -0
  107. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +20 -0
  108. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +11 -0
  109. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +16 -0
  110. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +12 -0
  111. package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +20 -0
  112. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +37 -0
  113. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +509 -0
  114. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +108 -0
  115. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +31 -0
  116. package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +45 -0
  117. package/dist/node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +471 -0
  118. package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +49 -0
  119. package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +34 -0
  120. package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +185 -0
  121. package/dist/node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js +198 -0
  122. 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
  123. 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
  124. package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +10 -0
  125. package/dist/toggle-bar.d.ts +40 -0
  126. package/dist/toggle-bar.js +155 -0
  127. package/dist/tool-menu.d.ts +29 -0
  128. package/dist/tool-menu.js +41 -0
  129. package/dist/tools/absolute/component.d.ts +16 -0
  130. package/dist/tools/absolute/component.js +15 -0
  131. package/dist/tools/absolute/index.d.ts +20 -0
  132. package/dist/tools/absolute/index.js +32 -0
  133. package/dist/tools/circle/bg-circle.d.ts +116 -0
  134. package/dist/tools/circle/bg-circle.js +72 -0
  135. package/dist/tools/circle/component.d.ts +83 -0
  136. package/dist/tools/circle/component.js +195 -0
  137. package/dist/tools/circle/index.d.ts +20 -0
  138. package/dist/tools/circle/index.js +22 -0
  139. package/dist/tools/exponential/component.d.ts +16 -0
  140. package/dist/tools/exponential/component.js +14 -0
  141. package/dist/tools/exponential/index.d.ts +20 -0
  142. package/dist/tools/exponential/index.js +32 -0
  143. package/dist/tools/index.d.ts +27 -0
  144. package/dist/tools/index.js +55 -0
  145. package/dist/tools/line/component.d.ts +124 -0
  146. package/dist/tools/line/component.js +72 -0
  147. package/dist/tools/line/index.d.ts +13 -0
  148. package/dist/tools/line/index.js +6 -0
  149. package/dist/tools/parabola/component.d.ts +16 -0
  150. package/dist/tools/parabola/component.js +14 -0
  151. package/dist/tools/parabola/index.d.ts +20 -0
  152. package/dist/tools/parabola/index.js +32 -0
  153. package/dist/tools/point/component.d.ts +50 -0
  154. package/dist/tools/point/component.js +85 -0
  155. package/dist/tools/point/index.d.ts +15 -0
  156. package/dist/tools/point/index.js +13 -0
  157. package/dist/tools/polygon/component.d.ts +120 -0
  158. package/dist/tools/polygon/component.js +262 -0
  159. package/dist/tools/polygon/index.d.ts +19 -0
  160. package/dist/tools/polygon/index.js +55 -0
  161. package/dist/tools/polygon/line.d.ts +125 -0
  162. package/dist/tools/polygon/line.js +63 -0
  163. package/dist/tools/polygon/polygon.d.ts +122 -0
  164. package/dist/tools/polygon/polygon.js +74 -0
  165. package/dist/tools/ray/component.d.ts +101 -0
  166. package/dist/tools/ray/component.js +71 -0
  167. package/dist/tools/ray/index.d.ts +13 -0
  168. package/dist/tools/ray/index.js +6 -0
  169. package/dist/tools/segment/component.d.ts +100 -0
  170. package/dist/tools/segment/component.js +52 -0
  171. package/dist/tools/segment/index.d.ts +13 -0
  172. package/dist/tools/segment/index.js +6 -0
  173. package/dist/tools/shared/arrow-head.d.ts +51 -0
  174. package/dist/tools/shared/arrow-head.js +63 -0
  175. package/dist/tools/shared/icons/CorrectSVG.d.ts +26 -0
  176. package/dist/tools/shared/icons/CorrectSVG.js +29 -0
  177. package/dist/tools/shared/icons/IncorrectSVG.d.ts +26 -0
  178. package/dist/tools/shared/icons/IncorrectSVG.js +27 -0
  179. package/dist/tools/shared/icons/MissingSVG.d.ts +26 -0
  180. package/dist/tools/shared/icons/MissingSVG.js +28 -0
  181. package/dist/tools/shared/line/index.d.ts +245 -0
  182. package/dist/tools/shared/line/index.js +319 -0
  183. package/dist/tools/shared/line/line-path.d.ts +57 -0
  184. package/dist/tools/shared/line/line-path.js +71 -0
  185. package/dist/tools/shared/line/with-root-edge.d.ts +142 -0
  186. package/dist/tools/shared/line/with-root-edge.js +73 -0
  187. package/dist/tools/shared/point/arrow-point.d.ts +56 -0
  188. package/dist/tools/shared/point/arrow-point.js +41 -0
  189. package/dist/tools/shared/point/arrow.d.ts +45 -0
  190. package/dist/tools/shared/point/arrow.js +35 -0
  191. package/dist/tools/shared/point/base-point.d.ts +52 -0
  192. package/dist/tools/shared/point/base-point.js +103 -0
  193. package/dist/tools/shared/point/index.d.ts +216 -0
  194. package/dist/tools/shared/point/index.js +45 -0
  195. package/dist/tools/shared/styles.d.ts +29 -0
  196. package/dist/tools/shared/styles.js +20 -0
  197. package/dist/tools/shared/types.d.ts +21 -0
  198. package/dist/tools/shared/types.js +11 -0
  199. package/dist/tools/sine/component.d.ts +16 -0
  200. package/dist/tools/sine/component.js +22 -0
  201. package/dist/tools/sine/index.d.ts +20 -0
  202. package/dist/tools/sine/index.js +32 -0
  203. package/dist/tools/vector/component.d.ts +100 -0
  204. package/dist/tools/vector/component.js +44 -0
  205. package/dist/tools/vector/index.d.ts +13 -0
  206. package/dist/tools/vector/index.js +6 -0
  207. package/dist/undo-redo.d.ts +22 -0
  208. package/dist/undo-redo.js +47 -0
  209. package/dist/use-debounce.d.ts +9 -0
  210. package/dist/use-debounce.js +13 -0
  211. package/dist/utils.d.ts +61 -0
  212. package/dist/utils.js +75 -0
  213. package/package.json +45 -33
  214. package/CHANGELOG.json +0 -1
  215. package/CHANGELOG.md +0 -1469
  216. package/LICENSE.md +0 -5
  217. package/lib/axis/arrow.js +0 -79
  218. package/lib/axis/arrow.js.map +0 -1
  219. package/lib/axis/axes.js +0 -329
  220. package/lib/axis/axes.js.map +0 -1
  221. package/lib/axis/index.js +0 -21
  222. package/lib/axis/index.js.map +0 -1
  223. package/lib/bg.js +0 -114
  224. package/lib/bg.js.map +0 -1
  225. package/lib/container/actions.js +0 -18
  226. package/lib/container/actions.js.map +0 -1
  227. package/lib/container/index.js +0 -127
  228. package/lib/container/index.js.map +0 -1
  229. package/lib/container/marks.js +0 -22
  230. package/lib/container/marks.js.map +0 -1
  231. package/lib/container/middleware.js +0 -19
  232. package/lib/container/middleware.js.map +0 -1
  233. package/lib/container/reducer.js +0 -18
  234. package/lib/container/reducer.js.map +0 -1
  235. package/lib/coordinates-label.js +0 -79
  236. package/lib/coordinates-label.js.map +0 -1
  237. package/lib/graph-with-controls.js +0 -294
  238. package/lib/graph-with-controls.js.map +0 -1
  239. package/lib/graph.js +0 -327
  240. package/lib/graph.js.map +0 -1
  241. package/lib/grid-setup.js +0 -414
  242. package/lib/grid-setup.js.map +0 -1
  243. package/lib/grid.js +0 -131
  244. package/lib/grid.js.map +0 -1
  245. package/lib/index.js +0 -47
  246. package/lib/index.js.map +0 -1
  247. package/lib/key-legend.js +0 -201
  248. package/lib/key-legend.js.map +0 -1
  249. package/lib/label-svg-icon.js +0 -50
  250. package/lib/label-svg-icon.js.map +0 -1
  251. package/lib/labels.js +0 -243
  252. package/lib/labels.js.map +0 -1
  253. package/lib/mark-label.js +0 -285
  254. package/lib/mark-label.js.map +0 -1
  255. package/lib/toggle-bar.js +0 -252
  256. package/lib/toggle-bar.js.map +0 -1
  257. package/lib/tool-menu.js +0 -78
  258. package/lib/tool-menu.js.map +0 -1
  259. package/lib/tools/absolute/component.js +0 -29
  260. package/lib/tools/absolute/component.js.map +0 -1
  261. package/lib/tools/absolute/index.js +0 -50
  262. package/lib/tools/absolute/index.js.map +0 -1
  263. package/lib/tools/circle/bg-circle.js +0 -123
  264. package/lib/tools/circle/bg-circle.js.map +0 -1
  265. package/lib/tools/circle/component.js +0 -321
  266. package/lib/tools/circle/component.js.map +0 -1
  267. package/lib/tools/circle/index.js +0 -41
  268. package/lib/tools/circle/index.js.map +0 -1
  269. package/lib/tools/exponential/component.js +0 -28
  270. package/lib/tools/exponential/component.js.map +0 -1
  271. package/lib/tools/exponential/index.js +0 -56
  272. package/lib/tools/exponential/index.js.map +0 -1
  273. package/lib/tools/index.js +0 -86
  274. package/lib/tools/index.js.map +0 -1
  275. package/lib/tools/line/component.js +0 -97
  276. package/lib/tools/line/component.js.map +0 -1
  277. package/lib/tools/line/index.js +0 -11
  278. package/lib/tools/line/index.js.map +0 -1
  279. package/lib/tools/parabola/component.js +0 -28
  280. package/lib/tools/parabola/component.js.map +0 -1
  281. package/lib/tools/parabola/index.js +0 -50
  282. package/lib/tools/parabola/index.js.map +0 -1
  283. package/lib/tools/point/component.js +0 -148
  284. package/lib/tools/point/component.js.map +0 -1
  285. package/lib/tools/point/index.js +0 -24
  286. package/lib/tools/point/index.js.map +0 -1
  287. package/lib/tools/polygon/component.js +0 -437
  288. package/lib/tools/polygon/component.js.map +0 -1
  289. package/lib/tools/polygon/index.js +0 -89
  290. package/lib/tools/polygon/index.js.map +0 -1
  291. package/lib/tools/polygon/line.js +0 -112
  292. package/lib/tools/polygon/line.js.map +0 -1
  293. package/lib/tools/polygon/polygon.js +0 -130
  294. package/lib/tools/polygon/polygon.js.map +0 -1
  295. package/lib/tools/ray/component.js +0 -95
  296. package/lib/tools/ray/component.js.map +0 -1
  297. package/lib/tools/ray/index.js +0 -11
  298. package/lib/tools/ray/index.js.map +0 -1
  299. package/lib/tools/segment/component.js +0 -71
  300. package/lib/tools/segment/component.js.map +0 -1
  301. package/lib/tools/segment/index.js +0 -11
  302. package/lib/tools/segment/index.js.map +0 -1
  303. package/lib/tools/shared/arrow-head.js +0 -111
  304. package/lib/tools/shared/arrow-head.js.map +0 -1
  305. package/lib/tools/shared/icons/CorrectSVG.js +0 -40
  306. package/lib/tools/shared/icons/CorrectSVG.js.map +0 -1
  307. package/lib/tools/shared/icons/IncorrectSVG.js +0 -40
  308. package/lib/tools/shared/icons/IncorrectSVG.js.map +0 -1
  309. package/lib/tools/shared/icons/MissingSVG.js +0 -39
  310. package/lib/tools/shared/icons/MissingSVG.js.map +0 -1
  311. package/lib/tools/shared/line/index.js +0 -550
  312. package/lib/tools/shared/line/index.js.map +0 -1
  313. package/lib/tools/shared/line/line-path.js +0 -118
  314. package/lib/tools/shared/line/line-path.js.map +0 -1
  315. package/lib/tools/shared/line/with-root-edge.js +0 -121
  316. package/lib/tools/shared/line/with-root-edge.js.map +0 -1
  317. package/lib/tools/shared/point/arrow-point.js +0 -72
  318. package/lib/tools/shared/point/arrow-point.js.map +0 -1
  319. package/lib/tools/shared/point/arrow.js +0 -67
  320. package/lib/tools/shared/point/arrow.js.map +0 -1
  321. package/lib/tools/shared/point/base-point.js +0 -157
  322. package/lib/tools/shared/point/base-point.js.map +0 -1
  323. package/lib/tools/shared/point/index.js +0 -68
  324. package/lib/tools/shared/point/index.js.map +0 -1
  325. package/lib/tools/shared/styles.js +0 -33
  326. package/lib/tools/shared/styles.js.map +0 -1
  327. package/lib/tools/shared/types.js +0 -16
  328. package/lib/tools/shared/types.js.map +0 -1
  329. package/lib/tools/sine/component.js +0 -40
  330. package/lib/tools/sine/component.js.map +0 -1
  331. package/lib/tools/sine/index.js +0 -50
  332. package/lib/tools/sine/index.js.map +0 -1
  333. package/lib/tools/vector/component.js +0 -68
  334. package/lib/tools/vector/component.js.map +0 -1
  335. package/lib/tools/vector/index.js +0 -11
  336. package/lib/tools/vector/index.js.map +0 -1
  337. package/lib/undo-redo.js +0 -86
  338. package/lib/undo-redo.js.map +0 -1
  339. package/lib/use-debounce.js +0 -25
  340. package/lib/use-debounce.js.map +0 -1
  341. package/lib/utils.js +0 -229
  342. package/lib/utils.js.map +0 -1
  343. package/src/__tests__/bg.test.jsx +0 -250
  344. package/src/__tests__/coordinates-label.test.jsx +0 -243
  345. package/src/__tests__/graph-with-controls.test.jsx +0 -198
  346. package/src/__tests__/graph.test.jsx +0 -721
  347. package/src/__tests__/grid-setup.test.jsx +0 -645
  348. package/src/__tests__/grid.test.jsx +0 -22
  349. package/src/__tests__/key-legend.test.jsx +0 -260
  350. package/src/__tests__/label-svg-icon.test.jsx +0 -278
  351. package/src/__tests__/labels.test.jsx +0 -55
  352. package/src/__tests__/mark-label.test.jsx +0 -63
  353. package/src/__tests__/toggle-bar.test.jsx +0 -146
  354. package/src/__tests__/tool-menu.test.jsx +0 -115
  355. package/src/__tests__/undo-redo.test.jsx +0 -24
  356. package/src/__tests__/use-debounce.test.js +0 -21
  357. package/src/__tests__/utils.js +0 -41
  358. package/src/__tests__/utils.test.js +0 -105
  359. package/src/axis/__tests__/arrow.test.jsx +0 -38
  360. package/src/axis/__tests__/axes.test.jsx +0 -216
  361. package/src/axis/arrow.jsx +0 -57
  362. package/src/axis/axes.jsx +0 -285
  363. package/src/axis/index.js +0 -3
  364. package/src/bg.jsx +0 -96
  365. package/src/container/__tests__/actions.test.js +0 -105
  366. package/src/container/__tests__/index.test.jsx +0 -319
  367. package/src/container/__tests__/marks.test.js +0 -172
  368. package/src/container/__tests__/middleware.test.js +0 -235
  369. package/src/container/__tests__/reducer.test.js +0 -324
  370. package/src/container/actions.js +0 -8
  371. package/src/container/index.jsx +0 -91
  372. package/src/container/marks.js +0 -14
  373. package/src/container/middleware.js +0 -7
  374. package/src/container/reducer.js +0 -5
  375. package/src/coordinates-label.jsx +0 -63
  376. package/src/graph-with-controls.jsx +0 -239
  377. package/src/graph.jsx +0 -303
  378. package/src/grid-setup.jsx +0 -432
  379. package/src/grid.jsx +0 -133
  380. package/src/index.js +0 -7
  381. package/src/key-legend.jsx +0 -142
  382. package/src/label-svg-icon.jsx +0 -39
  383. package/src/labels.jsx +0 -207
  384. package/src/mark-label.jsx +0 -244
  385. package/src/toggle-bar.jsx +0 -224
  386. package/src/tool-menu.jsx +0 -49
  387. package/src/tools/absolute/__tests__/component.test.jsx +0 -53
  388. package/src/tools/absolute/component.jsx +0 -23
  389. package/src/tools/absolute/index.js +0 -31
  390. package/src/tools/circle/__tests__/bg-circle.test.jsx +0 -26
  391. package/src/tools/circle/__tests__/component.test.jsx +0 -494
  392. package/src/tools/circle/__tests__/index.test.js +0 -480
  393. package/src/tools/circle/bg-circle.jsx +0 -81
  394. package/src/tools/circle/component.jsx +0 -264
  395. package/src/tools/circle/index.js +0 -25
  396. package/src/tools/exponential/__tests__/component.test.jsx +0 -53
  397. package/src/tools/exponential/__tests__/index.test.js +0 -729
  398. package/src/tools/exponential/component.jsx +0 -23
  399. package/src/tools/exponential/index.js +0 -39
  400. package/src/tools/index.js +0 -48
  401. package/src/tools/line/__tests__/component.test.jsx +0 -37
  402. package/src/tools/line/component.jsx +0 -93
  403. package/src/tools/line/index.js +0 -4
  404. package/src/tools/parabola/__tests__/component.test.jsx +0 -48
  405. package/src/tools/parabola/__tests__/index.test.js +0 -470
  406. package/src/tools/parabola/component.jsx +0 -23
  407. package/src/tools/parabola/index.js +0 -31
  408. package/src/tools/point/__tests__/component.test.jsx +0 -349
  409. package/src/tools/point/__tests__/index.test.js +0 -241
  410. package/src/tools/point/component.jsx +0 -126
  411. package/src/tools/point/index.js +0 -11
  412. package/src/tools/polygon/__tests__/component.test.jsx +0 -471
  413. package/src/tools/polygon/__tests__/index.test.js +0 -294
  414. package/src/tools/polygon/__tests__/line.test.jsx +0 -35
  415. package/src/tools/polygon/__tests__/polygon.test.jsx +0 -61
  416. package/src/tools/polygon/component.jsx +0 -409
  417. package/src/tools/polygon/index.js +0 -52
  418. package/src/tools/polygon/line.jsx +0 -74
  419. package/src/tools/polygon/polygon.jsx +0 -110
  420. package/src/tools/ray/__tests__/component.test.jsx +0 -29
  421. package/src/tools/ray/component.jsx +0 -92
  422. package/src/tools/ray/index.js +0 -4
  423. package/src/tools/segment/__tests__/component.test.jsx +0 -28
  424. package/src/tools/segment/component.jsx +0 -65
  425. package/src/tools/segment/index.js +0 -4
  426. package/src/tools/shared/__tests__/arrow-head.test.jsx +0 -31
  427. package/src/tools/shared/arrow-head.jsx +0 -102
  428. package/src/tools/shared/icons/CorrectSVG.jsx +0 -32
  429. package/src/tools/shared/icons/IncorrectSVG.jsx +0 -30
  430. package/src/tools/shared/icons/MissingSVG.jsx +0 -31
  431. package/src/tools/shared/line/__tests__/index.test.jsx +0 -109
  432. package/src/tools/shared/line/__tests__/line-path.test.jsx +0 -53
  433. package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +0 -73
  434. package/src/tools/shared/line/index.jsx +0 -487
  435. package/src/tools/shared/line/line-path.jsx +0 -80
  436. package/src/tools/shared/line/with-root-edge.jsx +0 -97
  437. package/src/tools/shared/point/__tests__/arrow-point.test.jsx +0 -91
  438. package/src/tools/shared/point/__tests__/base-point.test.jsx +0 -87
  439. package/src/tools/shared/point/arrow-point.jsx +0 -46
  440. package/src/tools/shared/point/arrow.jsx +0 -37
  441. package/src/tools/shared/point/base-point.jsx +0 -121
  442. package/src/tools/shared/point/index.jsx +0 -54
  443. package/src/tools/shared/styles.js +0 -27
  444. package/src/tools/shared/types.js +0 -10
  445. package/src/tools/sine/__tests__/component.test.jsx +0 -51
  446. package/src/tools/sine/component.jsx +0 -32
  447. package/src/tools/sine/index.js +0 -33
  448. package/src/tools/vector/__tests__/component.test.jsx +0 -25
  449. package/src/tools/vector/component.jsx +0 -56
  450. package/src/tools/vector/index.js +0 -4
  451. package/src/undo-redo.jsx +0 -45
  452. package/src/use-debounce.js +0 -13
  453. package/src/utils.js +0 -224
@@ -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 };
@@ -0,0 +1,34 @@
1
+ import { __commonJSMin as e } from "../../../../../_virtual/_rolldown/runtime.js";
2
+ import { require_balanced_match as t } from "../../../balanced-match@1.0.2/node_modules/balanced-match/index.js";
3
+ //#region ../../../node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js
4
+ var n = /* @__PURE__ */ e(((e, n) => {
5
+ var r = t();
6
+ n.exports = i;
7
+ function i(e, t, n) {
8
+ var r = e;
9
+ return a(e, t).reduce(function(e, i) {
10
+ return e.replace(i.functionIdentifier + "(" + i.matches.body + ")", o(i.matches.body, i.functionIdentifier, n, r, t));
11
+ }, e);
12
+ }
13
+ function a(e, t) {
14
+ var n = [], i = typeof t == "string" ? RegExp("\\b(" + t + ")\\(") : t;
15
+ do {
16
+ var a = i.exec(e);
17
+ if (!a) return n;
18
+ if (a[1] === void 0) throw Error("Missing the first couple of parenthesis to get the function identifier in " + t);
19
+ var o = a[1], s = a.index, c = r("(", ")", e.substring(s));
20
+ if (!c || c.start !== a[0].length - 1) throw SyntaxError(o + "(): missing closing ')' in the value '" + e + "'");
21
+ n.push({
22
+ matches: c,
23
+ functionIdentifier: o
24
+ }), e = c.post;
25
+ } while (i.test(e));
26
+ return n;
27
+ }
28
+ function o(e, t, n, r, a) {
29
+ return n(i(e, a, n), t, r);
30
+ }
31
+ }));
32
+ //#endregion
33
+ export default n();
34
+ export { n as require_reduce_function_call };