@pie-lib/graphing 4.0.5-next.30 → 4.0.5-next.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1 -0
- package/CHANGELOG.md +1469 -0
- package/LICENSE.md +5 -0
- package/lib/axis/arrow.js +79 -0
- package/lib/axis/arrow.js.map +1 -0
- package/lib/axis/axes.js +329 -0
- package/lib/axis/axes.js.map +1 -0
- package/lib/axis/index.js +21 -0
- package/lib/axis/index.js.map +1 -0
- package/lib/bg.js +114 -0
- package/lib/bg.js.map +1 -0
- package/lib/container/actions.js +18 -0
- package/lib/container/actions.js.map +1 -0
- package/lib/container/index.js +127 -0
- package/lib/container/index.js.map +1 -0
- package/lib/container/marks.js +22 -0
- package/lib/container/marks.js.map +1 -0
- package/lib/container/middleware.js +19 -0
- package/lib/container/middleware.js.map +1 -0
- package/lib/container/reducer.js +18 -0
- package/lib/container/reducer.js.map +1 -0
- package/lib/coordinates-label.js +79 -0
- package/lib/coordinates-label.js.map +1 -0
- package/lib/graph-with-controls.js +294 -0
- package/lib/graph-with-controls.js.map +1 -0
- package/lib/graph.js +327 -0
- package/lib/graph.js.map +1 -0
- package/lib/grid-setup.js +414 -0
- package/lib/grid-setup.js.map +1 -0
- package/lib/grid.js +131 -0
- package/lib/grid.js.map +1 -0
- package/lib/index.js +47 -0
- package/lib/index.js.map +1 -0
- package/lib/key-legend.js +201 -0
- package/lib/key-legend.js.map +1 -0
- package/lib/label-svg-icon.js +50 -0
- package/lib/label-svg-icon.js.map +1 -0
- package/lib/labels.js +243 -0
- package/lib/labels.js.map +1 -0
- package/lib/mark-label.js +285 -0
- package/lib/mark-label.js.map +1 -0
- package/lib/toggle-bar.js +252 -0
- package/lib/toggle-bar.js.map +1 -0
- package/lib/tool-menu.js +78 -0
- package/lib/tool-menu.js.map +1 -0
- package/lib/tools/absolute/component.js +29 -0
- package/lib/tools/absolute/component.js.map +1 -0
- package/lib/tools/absolute/index.js +50 -0
- package/lib/tools/absolute/index.js.map +1 -0
- package/lib/tools/circle/bg-circle.js +123 -0
- package/lib/tools/circle/bg-circle.js.map +1 -0
- package/lib/tools/circle/component.js +321 -0
- package/lib/tools/circle/component.js.map +1 -0
- package/lib/tools/circle/index.js +41 -0
- package/lib/tools/circle/index.js.map +1 -0
- package/lib/tools/exponential/component.js +28 -0
- package/lib/tools/exponential/component.js.map +1 -0
- package/lib/tools/exponential/index.js +56 -0
- package/lib/tools/exponential/index.js.map +1 -0
- package/lib/tools/index.js +86 -0
- package/lib/tools/index.js.map +1 -0
- package/lib/tools/line/component.js +97 -0
- package/lib/tools/line/component.js.map +1 -0
- package/lib/tools/line/index.js +11 -0
- package/lib/tools/line/index.js.map +1 -0
- package/lib/tools/parabola/component.js +28 -0
- package/lib/tools/parabola/component.js.map +1 -0
- package/lib/tools/parabola/index.js +50 -0
- package/lib/tools/parabola/index.js.map +1 -0
- package/lib/tools/point/component.js +148 -0
- package/lib/tools/point/component.js.map +1 -0
- package/lib/tools/point/index.js +24 -0
- package/lib/tools/point/index.js.map +1 -0
- package/lib/tools/polygon/component.js +437 -0
- package/lib/tools/polygon/component.js.map +1 -0
- package/lib/tools/polygon/index.js +89 -0
- package/lib/tools/polygon/index.js.map +1 -0
- package/lib/tools/polygon/line.js +112 -0
- package/lib/tools/polygon/line.js.map +1 -0
- package/lib/tools/polygon/polygon.js +130 -0
- package/lib/tools/polygon/polygon.js.map +1 -0
- package/lib/tools/ray/component.js +95 -0
- package/lib/tools/ray/component.js.map +1 -0
- package/lib/tools/ray/index.js +11 -0
- package/lib/tools/ray/index.js.map +1 -0
- package/lib/tools/segment/component.js +71 -0
- package/lib/tools/segment/component.js.map +1 -0
- package/lib/tools/segment/index.js +11 -0
- package/lib/tools/segment/index.js.map +1 -0
- package/lib/tools/shared/arrow-head.js +111 -0
- package/lib/tools/shared/arrow-head.js.map +1 -0
- package/lib/tools/shared/icons/CorrectSVG.js +40 -0
- package/lib/tools/shared/icons/CorrectSVG.js.map +1 -0
- package/lib/tools/shared/icons/IncorrectSVG.js +40 -0
- package/lib/tools/shared/icons/IncorrectSVG.js.map +1 -0
- package/lib/tools/shared/icons/MissingSVG.js +39 -0
- package/lib/tools/shared/icons/MissingSVG.js.map +1 -0
- package/lib/tools/shared/line/index.js +550 -0
- package/lib/tools/shared/line/index.js.map +1 -0
- package/lib/tools/shared/line/line-path.js +118 -0
- package/lib/tools/shared/line/line-path.js.map +1 -0
- package/lib/tools/shared/line/with-root-edge.js +121 -0
- package/lib/tools/shared/line/with-root-edge.js.map +1 -0
- package/lib/tools/shared/point/arrow-point.js +72 -0
- package/lib/tools/shared/point/arrow-point.js.map +1 -0
- package/lib/tools/shared/point/arrow.js +67 -0
- package/lib/tools/shared/point/arrow.js.map +1 -0
- package/lib/tools/shared/point/base-point.js +157 -0
- package/lib/tools/shared/point/base-point.js.map +1 -0
- package/lib/tools/shared/point/index.js +68 -0
- package/lib/tools/shared/point/index.js.map +1 -0
- package/lib/tools/shared/styles.js +33 -0
- package/lib/tools/shared/styles.js.map +1 -0
- package/lib/tools/shared/types.js +16 -0
- package/lib/tools/shared/types.js.map +1 -0
- package/lib/tools/sine/component.js +40 -0
- package/lib/tools/sine/component.js.map +1 -0
- package/lib/tools/sine/index.js +50 -0
- package/lib/tools/sine/index.js.map +1 -0
- package/lib/tools/vector/component.js +68 -0
- package/lib/tools/vector/component.js.map +1 -0
- package/lib/tools/vector/index.js +11 -0
- package/lib/tools/vector/index.js.map +1 -0
- package/lib/undo-redo.js +86 -0
- package/lib/undo-redo.js.map +1 -0
- package/lib/use-debounce.js +25 -0
- package/lib/use-debounce.js.map +1 -0
- package/lib/utils.js +229 -0
- package/lib/utils.js.map +1 -0
- package/package.json +33 -45
- package/src/__tests__/bg.test.jsx +250 -0
- package/src/__tests__/coordinates-label.test.jsx +243 -0
- package/src/__tests__/graph-with-controls.test.jsx +198 -0
- package/src/__tests__/graph.test.jsx +721 -0
- package/src/__tests__/grid-setup.test.jsx +645 -0
- package/src/__tests__/grid.test.jsx +22 -0
- package/src/__tests__/key-legend.test.jsx +260 -0
- package/src/__tests__/label-svg-icon.test.jsx +278 -0
- package/src/__tests__/labels.test.jsx +55 -0
- package/src/__tests__/mark-label.test.jsx +63 -0
- package/src/__tests__/toggle-bar.test.jsx +146 -0
- package/src/__tests__/tool-menu.test.jsx +115 -0
- package/src/__tests__/undo-redo.test.jsx +24 -0
- package/src/__tests__/use-debounce.test.js +21 -0
- package/src/__tests__/utils.js +41 -0
- package/src/__tests__/utils.test.js +105 -0
- package/src/axis/__tests__/arrow.test.jsx +38 -0
- package/src/axis/__tests__/axes.test.jsx +216 -0
- package/src/axis/arrow.jsx +57 -0
- package/src/axis/axes.jsx +285 -0
- package/src/axis/index.js +3 -0
- package/src/bg.jsx +96 -0
- package/src/container/__tests__/actions.test.js +105 -0
- package/src/container/__tests__/index.test.jsx +319 -0
- package/src/container/__tests__/marks.test.js +172 -0
- package/src/container/__tests__/middleware.test.js +235 -0
- package/src/container/__tests__/reducer.test.js +324 -0
- package/src/container/actions.js +8 -0
- package/src/container/index.jsx +91 -0
- package/src/container/marks.js +14 -0
- package/src/container/middleware.js +7 -0
- package/src/container/reducer.js +5 -0
- package/src/coordinates-label.jsx +63 -0
- package/src/graph-with-controls.jsx +239 -0
- package/src/graph.jsx +303 -0
- package/src/grid-setup.jsx +432 -0
- package/src/grid.jsx +133 -0
- package/src/index.js +7 -0
- package/src/key-legend.jsx +142 -0
- package/src/label-svg-icon.jsx +39 -0
- package/src/labels.jsx +207 -0
- package/src/mark-label.jsx +244 -0
- package/src/toggle-bar.jsx +224 -0
- package/src/tool-menu.jsx +49 -0
- package/src/tools/absolute/__tests__/component.test.jsx +53 -0
- package/src/tools/absolute/component.jsx +23 -0
- package/src/tools/absolute/index.js +31 -0
- package/src/tools/circle/__tests__/bg-circle.test.jsx +26 -0
- package/src/tools/circle/__tests__/component.test.jsx +494 -0
- package/src/tools/circle/__tests__/index.test.js +480 -0
- package/src/tools/circle/bg-circle.jsx +81 -0
- package/src/tools/circle/component.jsx +264 -0
- package/src/tools/circle/index.js +25 -0
- package/src/tools/exponential/__tests__/component.test.jsx +53 -0
- package/src/tools/exponential/__tests__/index.test.js +729 -0
- package/src/tools/exponential/component.jsx +23 -0
- package/src/tools/exponential/index.js +39 -0
- package/src/tools/index.js +48 -0
- package/src/tools/line/__tests__/component.test.jsx +37 -0
- package/src/tools/line/component.jsx +93 -0
- package/src/tools/line/index.js +4 -0
- package/src/tools/parabola/__tests__/component.test.jsx +48 -0
- package/src/tools/parabola/__tests__/index.test.js +470 -0
- package/src/tools/parabola/component.jsx +23 -0
- package/src/tools/parabola/index.js +31 -0
- package/src/tools/point/__tests__/component.test.jsx +349 -0
- package/src/tools/point/__tests__/index.test.js +241 -0
- package/src/tools/point/component.jsx +126 -0
- package/src/tools/point/index.js +11 -0
- package/src/tools/polygon/__tests__/component.test.jsx +471 -0
- package/src/tools/polygon/__tests__/index.test.js +294 -0
- package/src/tools/polygon/__tests__/line.test.jsx +35 -0
- package/src/tools/polygon/__tests__/polygon.test.jsx +61 -0
- package/src/tools/polygon/component.jsx +409 -0
- package/src/tools/polygon/index.js +52 -0
- package/src/tools/polygon/line.jsx +74 -0
- package/src/tools/polygon/polygon.jsx +110 -0
- package/src/tools/ray/__tests__/component.test.jsx +29 -0
- package/src/tools/ray/component.jsx +92 -0
- package/src/tools/ray/index.js +4 -0
- package/src/tools/segment/__tests__/component.test.jsx +28 -0
- package/src/tools/segment/component.jsx +65 -0
- package/src/tools/segment/index.js +4 -0
- package/src/tools/shared/__tests__/arrow-head.test.jsx +31 -0
- package/src/tools/shared/arrow-head.jsx +102 -0
- package/src/tools/shared/icons/CorrectSVG.jsx +32 -0
- package/src/tools/shared/icons/IncorrectSVG.jsx +30 -0
- package/src/tools/shared/icons/MissingSVG.jsx +31 -0
- package/src/tools/shared/line/__tests__/index.test.jsx +109 -0
- package/src/tools/shared/line/__tests__/line-path.test.jsx +53 -0
- package/src/tools/shared/line/__tests__/with-root-edge.test.jsx +73 -0
- package/src/tools/shared/line/index.jsx +487 -0
- package/src/tools/shared/line/line-path.jsx +80 -0
- package/src/tools/shared/line/with-root-edge.jsx +97 -0
- package/src/tools/shared/point/__tests__/arrow-point.test.jsx +91 -0
- package/src/tools/shared/point/__tests__/base-point.test.jsx +87 -0
- package/src/tools/shared/point/arrow-point.jsx +46 -0
- package/src/tools/shared/point/arrow.jsx +37 -0
- package/src/tools/shared/point/base-point.jsx +121 -0
- package/src/tools/shared/point/index.jsx +54 -0
- package/src/tools/shared/styles.js +27 -0
- package/src/tools/shared/types.js +10 -0
- package/src/tools/sine/__tests__/component.test.jsx +51 -0
- package/src/tools/sine/component.jsx +32 -0
- package/src/tools/sine/index.js +33 -0
- package/src/tools/vector/__tests__/component.test.jsx +25 -0
- package/src/tools/vector/component.jsx +56 -0
- package/src/tools/vector/index.js +4 -0
- package/src/undo-redo.jsx +45 -0
- package/src/use-debounce.js +13 -0
- package/src/utils.js +224 -0
- package/dist/_virtual/_rolldown/runtime.js +0 -23
- package/dist/autosize-input.d.ts +0 -10
- package/dist/autosize-input.js +0 -66
- package/dist/axis/arrow.d.ts +0 -13
- package/dist/axis/arrow.js +0 -34
- package/dist/axis/axes.d.ts +0 -132
- package/dist/axis/axes.js +0 -214
- package/dist/axis/index.d.ts +0 -10
- package/dist/bg.d.ts +0 -51
- package/dist/bg.js +0 -44
- package/dist/container/actions.d.ts +0 -15
- package/dist/container/actions.js +0 -7
- package/dist/container/index.d.ts +0 -58
- package/dist/container/index.js +0 -48
- package/dist/container/marks.d.ts +0 -10
- package/dist/container/marks.js +0 -11
- package/dist/container/middleware.d.ts +0 -10
- package/dist/container/middleware.js +0 -4
- package/dist/container/reducer.d.ts +0 -14
- package/dist/container/reducer.js +0 -7
- package/dist/coordinates-label.d.ts +0 -50
- package/dist/coordinates-label.js +0 -46
- package/dist/graph-with-controls.d.ts +0 -88
- package/dist/graph-with-controls.js +0 -154
- package/dist/graph.d.ts +0 -126
- package/dist/graph.js +0 -209
- package/dist/grid-setup.d.ts +0 -27
- package/dist/grid-setup.js +0 -307
- package/dist/grid.d.ts +0 -43
- package/dist/grid.js +0 -59
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -7
- package/dist/key-legend.d.ts +0 -21
- package/dist/key-legend.js +0 -231
- package/dist/label-svg-icon.d.ts +0 -18
- package/dist/label-svg-icon.js +0 -42
- package/dist/labels.d.ts +0 -37
- package/dist/labels.js +0 -152
- package/dist/mark-label.d.ts +0 -58
- package/dist/mark-label.js +0 -171
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Axis.js +0 -101
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/AxisRenderer.js +0 -63
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/axis/Ticks.js +0 -44
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/constants/orientation.js +0 -9
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/createPoint.js +0 -14
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getAxisRangePaddingConfig.js +0 -21
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getLabelTransform.js +0 -16
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickFormatter.js +0 -8
- package/dist/node_modules/.bun/@visx_axis@3.12.0_f4eacebf2041cd4f/node_modules/@visx/axis/esm/utils/getTickPosition.js +0 -15
- package/dist/node_modules/.bun/@visx_curve@3.12.0/node_modules/@visx/curve/esm/index.js +0 -2
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/Grid.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridColumns.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/grids/GridRows.js +0 -79
- package/dist/node_modules/.bun/@visx_grid@3.12.0_f4eacebf2041cd4f/node_modules/@visx/grid/esm/utils/getScaleBandwidth.js +0 -6
- package/dist/node_modules/.bun/@visx_group@3.12.0_f4eacebf2041cd4f/node_modules/@visx/group/esm/Group.js +0 -50
- package/dist/node_modules/.bun/@visx_point@3.12.0/node_modules/@visx/point/esm/Point.js +0 -18
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/coerceNumber.js +0 -10
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/getTicks.js +0 -9
- package/dist/node_modules/.bun/@visx_scale@3.12.0/node_modules/@visx/scale/esm/utils/toString.js +0 -6
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/Line.js +0 -47
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/shapes/LinePath.js +0 -50
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/D3ShapeFactories.js +0 -9
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/esm/util/setNumberOrNumberAccessor.js +0 -6
- package/dist/node_modules/.bun/@visx_shape@3.12.0_f4eacebf2041cd4f/node_modules/@visx/shape/lib/shapes/Line.js +0 -53
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/Text.js +0 -57
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/hooks/useText.js +0 -91
- package/dist/node_modules/.bun/@visx_text@3.12.0_f4eacebf2041cd4f/node_modules/@visx/text/esm/util/getStringWidth.js +0 -21
- package/dist/node_modules/.bun/balanced-match@0.4.2/node_modules/balanced-match/index.js +0 -32
- package/dist/node_modules/.bun/balanced-match@1.0.2/node_modules/balanced-match/index.js +0 -33
- package/dist/node_modules/.bun/classnames@2.5.1/node_modules/classnames/index.js +0 -32
- package/dist/node_modules/.bun/clsx@2.1.1/node_modules/clsx/dist/clsx.js +0 -16
- package/dist/node_modules/.bun/invariant@2.2.4/node_modules/invariant/browser.js +0 -28
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Hash.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_ListCache.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Map.js +0 -10
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_MapCache.js +0 -21
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_Symbol.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_assocIndexOf.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseGetTag.js +0 -15
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_baseIsNative.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_coreJsData.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_freeGlobal.js +0 -8
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getMapData.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getNative.js +0 -15
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getRawTag.js +0 -19
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_getValue.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashClear.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashDelete.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashGet.js +0 -18
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashHas.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_hashSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isKeyable.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_isMasked.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheClear.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheDelete.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheGet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheHas.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_listCacheSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheClear.js +0 -19
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheDelete.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheGet.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheHas.js +0 -13
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_mapCacheSet.js +0 -14
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_nativeCreate.js +0 -9
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_objectToString.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_root.js +0 -10
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/_toSource.js +0 -20
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/eq.js +0 -11
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isFunction.js +0 -16
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/isObject.js +0 -12
- package/dist/node_modules/.bun/lodash@4.18.1/node_modules/lodash/memoize.js +0 -20
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/formula_evaluator.js +0 -37
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/lexer.js +0 -509
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/math_function.js +0 -108
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix.js +0 -31
- package/dist/node_modules/.bun/math-expression-evaluator@1.4.0/node_modules/math-expression-evaluator/src/postfix_evaluator.js +0 -45
- package/dist/node_modules/.bun/react-redux@9.3.0_9e2203c65d1d5fa1/node_modules/react-redux/dist/react-redux.js +0 -471
- package/dist/node_modules/.bun/reduce-css-calc@1.3.0/node_modules/reduce-css-calc/index.js +0 -49
- package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js +0 -34
- package/dist/node_modules/.bun/redux-undo@1.1.0/node_modules/redux-undo/dist/redux-undo.js +0 -185
- package/dist/node_modules/.bun/redux@5.0.1/node_modules/redux/dist/redux.js +0 -198
- 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 +0 -53
- 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 +0 -51
- package/dist/node_modules/.bun/use-sync-external-store@1.6.0_f4eacebf2041cd4f/node_modules/use-sync-external-store/with-selector.js +0 -10
- package/dist/toggle-bar.d.ts +0 -40
- package/dist/toggle-bar.js +0 -155
- package/dist/tool-menu.d.ts +0 -29
- package/dist/tool-menu.js +0 -41
- package/dist/tools/absolute/component.d.ts +0 -16
- package/dist/tools/absolute/component.js +0 -15
- package/dist/tools/absolute/index.d.ts +0 -20
- package/dist/tools/absolute/index.js +0 -32
- package/dist/tools/circle/bg-circle.d.ts +0 -116
- package/dist/tools/circle/bg-circle.js +0 -72
- package/dist/tools/circle/component.d.ts +0 -83
- package/dist/tools/circle/component.js +0 -195
- package/dist/tools/circle/index.d.ts +0 -20
- package/dist/tools/circle/index.js +0 -22
- package/dist/tools/exponential/component.d.ts +0 -16
- package/dist/tools/exponential/component.js +0 -14
- package/dist/tools/exponential/index.d.ts +0 -20
- package/dist/tools/exponential/index.js +0 -32
- package/dist/tools/index.d.ts +0 -27
- package/dist/tools/index.js +0 -55
- package/dist/tools/line/component.d.ts +0 -124
- package/dist/tools/line/component.js +0 -72
- package/dist/tools/line/index.d.ts +0 -13
- package/dist/tools/line/index.js +0 -6
- package/dist/tools/parabola/component.d.ts +0 -16
- package/dist/tools/parabola/component.js +0 -14
- package/dist/tools/parabola/index.d.ts +0 -20
- package/dist/tools/parabola/index.js +0 -32
- package/dist/tools/point/component.d.ts +0 -50
- package/dist/tools/point/component.js +0 -85
- package/dist/tools/point/index.d.ts +0 -15
- package/dist/tools/point/index.js +0 -13
- package/dist/tools/polygon/component.d.ts +0 -120
- package/dist/tools/polygon/component.js +0 -262
- package/dist/tools/polygon/index.d.ts +0 -19
- package/dist/tools/polygon/index.js +0 -55
- package/dist/tools/polygon/line.d.ts +0 -125
- package/dist/tools/polygon/line.js +0 -63
- package/dist/tools/polygon/polygon.d.ts +0 -122
- package/dist/tools/polygon/polygon.js +0 -74
- package/dist/tools/ray/component.d.ts +0 -101
- package/dist/tools/ray/component.js +0 -71
- package/dist/tools/ray/index.d.ts +0 -13
- package/dist/tools/ray/index.js +0 -6
- package/dist/tools/segment/component.d.ts +0 -100
- package/dist/tools/segment/component.js +0 -52
- package/dist/tools/segment/index.d.ts +0 -13
- package/dist/tools/segment/index.js +0 -6
- package/dist/tools/shared/arrow-head.d.ts +0 -51
- package/dist/tools/shared/arrow-head.js +0 -63
- package/dist/tools/shared/icons/CorrectSVG.d.ts +0 -26
- package/dist/tools/shared/icons/CorrectSVG.js +0 -29
- package/dist/tools/shared/icons/IncorrectSVG.d.ts +0 -26
- package/dist/tools/shared/icons/IncorrectSVG.js +0 -27
- package/dist/tools/shared/icons/MissingSVG.d.ts +0 -26
- package/dist/tools/shared/icons/MissingSVG.js +0 -28
- package/dist/tools/shared/line/index.d.ts +0 -245
- package/dist/tools/shared/line/index.js +0 -319
- package/dist/tools/shared/line/line-path.d.ts +0 -57
- package/dist/tools/shared/line/line-path.js +0 -71
- package/dist/tools/shared/line/with-root-edge.d.ts +0 -142
- package/dist/tools/shared/line/with-root-edge.js +0 -73
- package/dist/tools/shared/point/arrow-point.d.ts +0 -56
- package/dist/tools/shared/point/arrow-point.js +0 -41
- package/dist/tools/shared/point/arrow.d.ts +0 -45
- package/dist/tools/shared/point/arrow.js +0 -35
- package/dist/tools/shared/point/base-point.d.ts +0 -52
- package/dist/tools/shared/point/base-point.js +0 -103
- package/dist/tools/shared/point/index.d.ts +0 -216
- package/dist/tools/shared/point/index.js +0 -45
- package/dist/tools/shared/styles.d.ts +0 -29
- package/dist/tools/shared/styles.js +0 -20
- package/dist/tools/shared/types.d.ts +0 -21
- package/dist/tools/shared/types.js +0 -11
- package/dist/tools/sine/component.d.ts +0 -16
- package/dist/tools/sine/component.js +0 -22
- package/dist/tools/sine/index.d.ts +0 -20
- package/dist/tools/sine/index.js +0 -32
- package/dist/tools/vector/component.d.ts +0 -100
- package/dist/tools/vector/component.js +0 -44
- package/dist/tools/vector/index.d.ts +0 -13
- package/dist/tools/vector/index.js +0 -6
- package/dist/undo-redo.d.ts +0 -22
- package/dist/undo-redo.js +0 -47
- package/dist/use-debounce.d.ts +0 -9
- package/dist/use-debounce.js +0 -13
- package/dist/utils.d.ts +0 -61
- package/dist/utils.js +0 -75
|
@@ -1,45 +0,0 @@
|
|
|
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 };
|
|
@@ -1,471 +0,0 @@
|
|
|
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 };
|
|
@@ -1,49 +0,0 @@
|
|
|
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 };
|
package/dist/node_modules/.bun/reduce-function-call@1.0.3/node_modules/reduce-function-call/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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 };
|