@antv/g2 4.2.4 → 5.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -3
- package/README.en-US.md +9 -8
- package/README.md +17 -6
- package/dist/g2.min.js +10 -16
- package/esm/adjust/index.d.ts +1 -0
- package/esm/adjust/index.js +2 -0
- package/esm/adjust/index.js.map +1 -0
- package/esm/adjust/pack.d.ts +8 -0
- package/esm/adjust/pack.js +55 -0
- package/esm/adjust/pack.js.map +1 -0
- package/esm/animation/fadeIn.d.ts +7 -0
- package/esm/animation/fadeIn.js +23 -0
- package/esm/animation/fadeIn.js.map +1 -0
- package/esm/animation/fadeOut.d.ts +7 -0
- package/esm/animation/fadeOut.js +21 -0
- package/esm/animation/fadeOut.js.map +1 -0
- package/esm/animation/index.d.ts +7 -0
- package/esm/animation/index.js +8 -0
- package/esm/animation/index.js.map +1 -0
- package/esm/animation/morphing.d.ts +13 -0
- package/esm/animation/morphing.js +161 -0
- package/esm/animation/morphing.js.map +1 -0
- package/esm/animation/scaleInX.d.ts +7 -0
- package/esm/animation/scaleInX.js +46 -0
- package/esm/animation/scaleInX.js.map +1 -0
- package/esm/animation/scaleInY.d.ts +7 -0
- package/esm/animation/scaleInY.js +46 -0
- package/esm/animation/scaleInY.js.map +1 -0
- package/esm/animation/scaleOutX.d.ts +7 -0
- package/esm/animation/scaleOutX.js +46 -0
- package/esm/animation/scaleOutX.js.map +1 -0
- package/esm/animation/scaleOutY.d.ts +7 -0
- package/esm/animation/scaleOutY.js +46 -0
- package/esm/animation/scaleOutY.js.map +1 -0
- package/esm/animation/utils.d.ts +2 -0
- package/esm/animation/utils.js +17 -0
- package/esm/animation/utils.js.map +1 -0
- package/esm/api/chart.d.ts +30 -0
- package/esm/api/chart.js +102 -0
- package/esm/api/chart.js.map +1 -0
- package/esm/api/composition/circle.d.ts +21 -0
- package/esm/api/composition/circle.js +30 -0
- package/esm/api/composition/circle.js.map +1 -0
- package/esm/api/composition/flex.d.ts +17 -0
- package/esm/api/composition/flex.js +26 -0
- package/esm/api/composition/flex.js.map +1 -0
- package/esm/api/composition/index.d.ts +26 -0
- package/esm/api/composition/index.js +27 -0
- package/esm/api/composition/index.js.map +1 -0
- package/esm/api/composition/keyframe.d.ts +17 -0
- package/esm/api/composition/keyframe.js +26 -0
- package/esm/api/composition/keyframe.js.map +1 -0
- package/esm/api/composition/layer.d.ts +14 -0
- package/esm/api/composition/layer.js +23 -0
- package/esm/api/composition/layer.js.map +1 -0
- package/esm/api/composition/matrix.d.ts +21 -0
- package/esm/api/composition/matrix.js +30 -0
- package/esm/api/composition/matrix.js.map +1 -0
- package/esm/api/composition/rect.d.ts +23 -0
- package/esm/api/composition/rect.js +32 -0
- package/esm/api/composition/rect.js.map +1 -0
- package/esm/api/composition/view.d.ts +20 -0
- package/esm/api/composition/view.js +30 -0
- package/esm/api/composition/view.js.map +1 -0
- package/esm/api/index.d.ts +1 -0
- package/esm/api/index.js +2 -0
- package/esm/api/index.js.map +1 -0
- package/esm/api/mark/index.d.ts +41 -0
- package/esm/api/mark/index.js +22 -0
- package/esm/api/mark/index.js.map +1 -0
- package/esm/api/mark/mark.d.ts +114 -0
- package/esm/api/mark/mark.js +190 -0
- package/esm/api/mark/mark.js.map +1 -0
- package/esm/api/mark/types.d.ts +21 -0
- package/esm/{util → api/mark}/types.js +0 -0
- package/esm/api/mark/types.js.map +1 -0
- package/esm/api/node.d.ts +31 -0
- package/esm/api/node.js +55 -0
- package/esm/api/node.js.map +1 -0
- package/esm/api/props.d.ts +12 -0
- package/esm/api/props.js +75 -0
- package/esm/api/props.js.map +1 -0
- package/esm/api/types.d.ts +10 -0
- package/esm/api/types.js +2 -0
- package/esm/api/types.js.map +1 -0
- package/esm/component/axis.d.ts +13 -0
- package/esm/component/axis.js +294 -0
- package/esm/component/axis.js.map +1 -0
- package/esm/component/axisX.d.ts +7 -0
- package/esm/component/axisX.js +9 -0
- package/esm/component/axisX.js.map +1 -0
- package/esm/component/axisY.d.ts +7 -0
- package/esm/component/axisY.js +9 -0
- package/esm/component/axisY.js.map +1 -0
- package/esm/component/index.d.ts +5 -0
- package/esm/component/index.js +6 -0
- package/esm/component/index.js.map +1 -0
- package/esm/component/legendCategory.d.ts +10 -0
- package/esm/component/legendCategory.js +84 -0
- package/esm/component/legendCategory.js.map +1 -0
- package/esm/component/legendContinuous.d.ts +9 -0
- package/esm/component/legendContinuous.js +38 -0
- package/esm/component/legendContinuous.js.map +1 -0
- package/esm/component/title.d.ts +6 -0
- package/esm/component/title.js +54 -0
- package/esm/component/title.js.map +1 -0
- package/esm/component/utils.d.ts +8 -0
- package/esm/component/utils.js +27 -0
- package/esm/component/utils.js.map +1 -0
- package/esm/composition/circle.d.ts +7 -0
- package/esm/composition/circle.js +85 -0
- package/esm/composition/circle.js.map +1 -0
- package/esm/composition/flex.d.ts +7 -0
- package/esm/composition/flex.js +38 -0
- package/esm/composition/flex.js.map +1 -0
- package/esm/composition/index.d.ts +8 -0
- package/esm/composition/index.js +9 -0
- package/esm/composition/index.js.map +1 -0
- package/esm/composition/keyframe.d.ts +7 -0
- package/esm/composition/keyframe.js +75 -0
- package/esm/composition/keyframe.js.map +1 -0
- package/esm/composition/layer.d.ts +7 -0
- package/esm/composition/layer.js +32 -0
- package/esm/composition/layer.js.map +1 -0
- package/esm/composition/mark.d.ts +4 -0
- package/esm/composition/mark.js +40 -0
- package/esm/composition/mark.js.map +1 -0
- package/esm/composition/matrix.d.ts +8 -0
- package/esm/composition/matrix.js +151 -0
- package/esm/composition/matrix.js.map +1 -0
- package/esm/composition/rect.d.ts +30 -0
- package/esm/composition/rect.js +287 -0
- package/esm/composition/rect.js.map +1 -0
- package/esm/composition/utils.d.ts +10 -0
- package/esm/composition/utils.js +14 -0
- package/esm/composition/utils.js.map +1 -0
- package/esm/composition/view.d.ts +9 -0
- package/esm/composition/view.js +32 -0
- package/esm/composition/view.js.map +1 -0
- package/esm/coordinate/cartesian.d.ts +7 -0
- package/esm/coordinate/cartesian.js +6 -0
- package/esm/coordinate/cartesian.js.map +1 -0
- package/esm/coordinate/fisheye.d.ts +7 -0
- package/esm/coordinate/fisheye.js +6 -0
- package/esm/coordinate/fisheye.js.map +1 -0
- package/esm/coordinate/index.d.ts +5 -0
- package/esm/coordinate/index.js +6 -0
- package/esm/coordinate/index.js.map +1 -0
- package/esm/coordinate/parallel.d.ts +7 -0
- package/esm/coordinate/parallel.js +6 -0
- package/esm/coordinate/parallel.js.map +1 -0
- package/esm/coordinate/polar.d.ts +8 -0
- package/esm/coordinate/polar.js +12 -0
- package/esm/coordinate/polar.js.map +1 -0
- package/esm/coordinate/transpose.d.ts +7 -0
- package/esm/coordinate/transpose.js +11 -0
- package/esm/coordinate/transpose.js.map +1 -0
- package/esm/encode/column.d.ts +7 -0
- package/esm/encode/column.js +8 -0
- package/esm/encode/column.js.map +1 -0
- package/esm/encode/constant.d.ts +7 -0
- package/esm/encode/constant.js +8 -0
- package/esm/encode/constant.js.map +1 -0
- package/esm/encode/field.d.ts +7 -0
- package/esm/encode/field.js +8 -0
- package/esm/encode/field.js.map +1 -0
- package/esm/encode/index.d.ts +4 -0
- package/esm/encode/index.js +5 -0
- package/esm/encode/index.js.map +1 -0
- package/esm/encode/transform.d.ts +9 -0
- package/esm/encode/transform.js +10 -0
- package/esm/encode/transform.js.map +1 -0
- package/esm/index.d.ts +4 -107
- package/esm/index.js +3 -588
- package/esm/index.js.map +1 -1
- package/esm/interaction/action/index.d.ts +23 -2
- package/esm/interaction/action/index.js +23 -2
- package/esm/interaction/action/index.js.map +1 -1
- package/esm/interaction/action/service/elementSelection.d.ts +4 -0
- package/esm/interaction/action/service/elementSelection.js +90 -0
- package/esm/interaction/action/service/elementSelection.js.map +1 -0
- package/esm/interaction/action/service/fisheyeFocus.d.ts +4 -0
- package/esm/interaction/action/service/fisheyeFocus.js +47 -0
- package/esm/interaction/action/service/fisheyeFocus.js.map +1 -0
- package/esm/interaction/action/service/legendItemSelection.d.ts +4 -0
- package/esm/interaction/action/service/legendItemSelection.js +17 -0
- package/esm/interaction/action/service/legendItemSelection.js.map +1 -0
- package/esm/interaction/action/service/recordCurrentPoint.d.ts +4 -0
- package/esm/interaction/action/service/recordCurrentPoint.js +16 -0
- package/esm/interaction/action/service/recordCurrentPoint.js.map +1 -0
- package/esm/interaction/action/service/recordPoint.d.ts +4 -0
- package/esm/interaction/action/service/recordPoint.js +28 -0
- package/esm/interaction/action/service/recordPoint.js.map +1 -0
- package/esm/interaction/action/service/recordRegion.d.ts +4 -0
- package/esm/interaction/action/service/recordRegion.js +30 -0
- package/esm/interaction/action/service/recordRegion.js.map +1 -0
- package/esm/interaction/action/service/recordState.d.ts +4 -0
- package/esm/interaction/action/service/recordState.js +10 -0
- package/esm/interaction/action/service/recordState.js.map +1 -0
- package/esm/interaction/action/service/recordTip.d.ts +8 -0
- package/esm/interaction/action/service/recordTip.js +15 -0
- package/esm/interaction/action/service/recordTip.js.map +1 -0
- package/esm/interaction/action/service/surfacePointSelection.d.ts +4 -0
- package/esm/interaction/action/service/surfacePointSelection.js +19 -0
- package/esm/interaction/action/service/surfacePointSelection.js.map +1 -0
- package/esm/interaction/action/service/triggerInfoSelection.d.ts +4 -0
- package/esm/interaction/action/service/triggerInfoSelection.js +18 -0
- package/esm/interaction/action/service/triggerInfoSelection.js.map +1 -0
- package/esm/interaction/action/transformer/activeElement.d.ts +4 -0
- package/esm/interaction/action/transformer/activeElement.js +23 -0
- package/esm/interaction/action/transformer/activeElement.js.map +1 -0
- package/esm/interaction/action/transformer/activeRegion.d.ts +4 -0
- package/esm/interaction/action/transformer/activeRegion.js +52 -0
- package/esm/interaction/action/transformer/activeRegion.js.map +1 -0
- package/esm/interaction/action/transformer/button.d.ts +4 -0
- package/esm/interaction/action/transformer/button.js +76 -0
- package/esm/interaction/action/transformer/button.js.map +1 -0
- package/esm/interaction/action/transformer/cursor.d.ts +4 -0
- package/esm/interaction/action/transformer/cursor.js +15 -0
- package/esm/interaction/action/transformer/cursor.js.map +1 -0
- package/esm/interaction/action/transformer/filter.d.ts +7 -0
- package/esm/interaction/action/transformer/filter.js +39 -0
- package/esm/interaction/action/transformer/filter.js.map +1 -0
- package/esm/interaction/action/transformer/filterElement.d.ts +4 -0
- package/esm/interaction/action/transformer/filterElement.js +41 -0
- package/esm/interaction/action/transformer/filterElement.js.map +1 -0
- package/esm/interaction/action/transformer/highlightElement.d.ts +4 -0
- package/esm/interaction/action/transformer/highlightElement.js +48 -0
- package/esm/interaction/action/transformer/highlightElement.js.map +1 -0
- package/esm/interaction/action/transformer/mask.d.ts +7 -0
- package/esm/interaction/action/transformer/mask.js +106 -0
- package/esm/interaction/action/transformer/mask.js.map +1 -0
- package/esm/interaction/action/transformer/move.d.ts +7 -0
- package/esm/interaction/action/transformer/move.js +70 -0
- package/esm/interaction/action/transformer/move.js.map +1 -0
- package/esm/interaction/action/transformer/plot.d.ts +4 -0
- package/esm/interaction/action/transformer/plot.js +10 -0
- package/esm/interaction/action/transformer/plot.js.map +1 -0
- package/esm/interaction/action/transformer/poptip.d.ts +4 -0
- package/esm/interaction/action/transformer/poptip.js +39 -0
- package/esm/interaction/action/transformer/poptip.js.map +1 -0
- package/esm/interaction/action/transformer/setItemState.d.ts +4 -0
- package/esm/interaction/action/transformer/setItemState.js +31 -0
- package/esm/interaction/action/transformer/setItemState.js.map +1 -0
- package/esm/interaction/action/transformer/tooltip.d.ts +9 -0
- package/esm/interaction/action/transformer/tooltip.js +289 -0
- package/esm/interaction/action/transformer/tooltip.js.map +1 -0
- package/esm/interaction/builtin/activeRegion.d.ts +19 -0
- package/esm/interaction/builtin/activeRegion.js +18 -0
- package/esm/interaction/builtin/activeRegion.js.map +1 -0
- package/esm/interaction/builtin/brush.d.ts +132 -0
- package/esm/interaction/builtin/brush.js +93 -0
- package/esm/interaction/builtin/brush.js.map +1 -0
- package/esm/interaction/builtin/brushHighlight.d.ts +98 -0
- package/esm/interaction/builtin/brushHighlight.js +111 -0
- package/esm/interaction/builtin/brushHighlight.js.map +1 -0
- package/esm/interaction/builtin/brushVisible.d.ts +88 -0
- package/esm/interaction/builtin/brushVisible.js +62 -0
- package/esm/interaction/builtin/brushVisible.js.map +1 -0
- package/esm/interaction/builtin/elementActive.d.ts +22 -0
- package/esm/interaction/builtin/elementActive.js +25 -0
- package/esm/interaction/builtin/elementActive.js.map +1 -0
- package/esm/interaction/builtin/elementHighlight.d.ts +19 -0
- package/esm/interaction/builtin/elementHighlight.js +24 -0
- package/esm/interaction/builtin/elementHighlight.js.map +1 -0
- package/esm/interaction/builtin/elementHighlightByColor.d.ts +23 -0
- package/esm/interaction/builtin/elementHighlightByColor.js +24 -0
- package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -0
- package/esm/interaction/builtin/elementHighlightByX.d.ts +23 -0
- package/esm/interaction/builtin/elementHighlightByX.js +24 -0
- package/esm/interaction/builtin/elementHighlightByX.js.map +1 -0
- package/esm/interaction/builtin/elementListHighlight.d.ts +43 -0
- package/esm/interaction/builtin/elementListHighlight.js +28 -0
- package/esm/interaction/builtin/elementListHighlight.js.map +1 -0
- package/esm/interaction/builtin/elementSelected.d.ts +20 -0
- package/esm/interaction/builtin/elementSelected.js +18 -0
- package/esm/interaction/builtin/elementSelected.js.map +1 -0
- package/esm/interaction/builtin/ellipsisText.d.ts +19 -0
- package/esm/interaction/builtin/ellipsisText.js +17 -0
- package/esm/interaction/builtin/ellipsisText.js.map +1 -0
- package/esm/interaction/builtin/fisheye.d.ts +33 -0
- package/esm/interaction/builtin/fisheye.js +20 -0
- package/esm/interaction/builtin/fisheye.js.map +1 -0
- package/esm/interaction/builtin/legendActive.d.ts +43 -0
- package/esm/interaction/builtin/legendActive.js +30 -0
- package/esm/interaction/builtin/legendActive.js.map +1 -0
- package/esm/interaction/builtin/legendHighlight.d.ts +43 -0
- package/esm/interaction/builtin/legendHighlight.js +30 -0
- package/esm/interaction/builtin/legendHighlight.js.map +1 -0
- package/esm/interaction/builtin/tooltip.d.ts +44 -0
- package/esm/interaction/builtin/tooltip.js +28 -0
- package/esm/interaction/builtin/tooltip.js.map +1 -0
- package/esm/interaction/create.d.ts +3 -0
- package/esm/interaction/create.js +96 -0
- package/esm/interaction/create.js.map +1 -0
- package/esm/interaction/index.d.ts +18 -25
- package/esm/interaction/index.js +18 -42
- package/esm/interaction/index.js.map +1 -1
- package/esm/interaction/interactor/index.d.ts +2 -0
- package/esm/interaction/interactor/index.js +3 -0
- package/esm/interaction/interactor/index.js.map +1 -0
- package/esm/interaction/interactor/mousePosition.d.ts +3 -0
- package/esm/interaction/interactor/mousePosition.js +10 -0
- package/esm/interaction/interactor/mousePosition.js.map +1 -0
- package/esm/interaction/interactor/touchPosition.d.ts +3 -0
- package/esm/interaction/interactor/touchPosition.js +10 -0
- package/esm/interaction/interactor/touchPosition.js.map +1 -0
- package/esm/interaction/stdlib.d.ts +2 -0
- package/esm/interaction/stdlib.js +32 -0
- package/esm/interaction/stdlib.js.map +1 -0
- package/esm/interaction/types.d.ts +57 -0
- package/esm/interaction/types.js +2 -0
- package/esm/interaction/types.js.map +1 -0
- package/esm/interaction/utils.d.ts +3 -0
- package/esm/interaction/utils.js +40 -0
- package/esm/interaction/utils.js.map +1 -0
- package/esm/mark/annotation/connector.d.ts +4 -0
- package/esm/mark/annotation/connector.js +18 -0
- package/esm/mark/annotation/connector.js.map +1 -0
- package/esm/mark/annotation/index.d.ts +7 -0
- package/esm/mark/annotation/index.js +8 -0
- package/esm/mark/annotation/index.js.map +1 -0
- package/esm/mark/annotation/lineX.d.ts +4 -0
- package/esm/mark/annotation/lineX.js +21 -0
- package/esm/mark/annotation/lineX.js.map +1 -0
- package/esm/mark/annotation/lineY.d.ts +4 -0
- package/esm/mark/annotation/lineY.js +21 -0
- package/esm/mark/annotation/lineY.js.map +1 -0
- package/esm/mark/annotation/range.d.ts +8 -0
- package/esm/mark/annotation/range.js +44 -0
- package/esm/mark/annotation/range.js.map +1 -0
- package/esm/mark/annotation/rangeX.d.ts +4 -0
- package/esm/mark/annotation/rangeX.js +14 -0
- package/esm/mark/annotation/rangeX.js.map +1 -0
- package/esm/mark/annotation/rangeY.d.ts +4 -0
- package/esm/mark/annotation/rangeY.js +14 -0
- package/esm/mark/annotation/rangeY.js.map +1 -0
- package/esm/mark/annotation/text.d.ts +4 -0
- package/esm/mark/annotation/text.js +21 -0
- package/esm/mark/annotation/text.js.map +1 -0
- package/esm/mark/geometry/area.d.ts +4 -0
- package/esm/mark/geometry/area.js +70 -0
- package/esm/mark/geometry/area.js.map +1 -0
- package/esm/mark/geometry/edge.d.ts +13 -0
- package/esm/mark/geometry/edge.js +31 -0
- package/esm/mark/geometry/edge.js.map +1 -0
- package/esm/mark/geometry/grid.d.ts +9 -0
- package/esm/mark/geometry/grid.js +46 -0
- package/esm/mark/geometry/grid.js.map +1 -0
- package/esm/mark/geometry/image.d.ts +4 -0
- package/esm/mark/geometry/image.js +34 -0
- package/esm/mark/geometry/image.js.map +1 -0
- package/esm/mark/geometry/index.d.ts +13 -0
- package/esm/mark/geometry/index.js +14 -0
- package/esm/mark/geometry/index.js.map +1 -0
- package/esm/mark/geometry/interval.d.ts +12 -0
- package/esm/mark/geometry/interval.js +59 -0
- package/esm/mark/geometry/interval.js.map +1 -0
- package/esm/mark/geometry/line.d.ts +7 -0
- package/esm/mark/geometry/line.js +76 -0
- package/esm/mark/geometry/line.js.map +1 -0
- package/esm/mark/geometry/link.d.ts +7 -0
- package/esm/mark/geometry/link.js +33 -0
- package/esm/mark/geometry/link.js.map +1 -0
- package/esm/mark/geometry/node.d.ts +8 -0
- package/esm/mark/geometry/node.js +27 -0
- package/esm/mark/geometry/node.js.map +1 -0
- package/esm/mark/geometry/point.d.ts +10 -0
- package/esm/mark/geometry/point.js +71 -0
- package/esm/mark/geometry/point.js.map +1 -0
- package/esm/mark/geometry/polygon.d.ts +7 -0
- package/esm/mark/geometry/polygon.js +43 -0
- package/esm/mark/geometry/polygon.js.map +1 -0
- package/esm/mark/geometry/schema.d.ts +34 -0
- package/esm/mark/geometry/schema.js +90 -0
- package/esm/mark/geometry/schema.js.map +1 -0
- package/esm/mark/geometry/text.d.ts +4 -0
- package/esm/mark/geometry/text.js +35 -0
- package/esm/mark/geometry/text.js.map +1 -0
- package/esm/mark/geometry/vector.d.ts +8 -0
- package/esm/mark/geometry/vector.js +43 -0
- package/esm/mark/geometry/vector.js.map +1 -0
- package/esm/mark/utils.d.ts +10 -0
- package/esm/mark/utils.js +30 -0
- package/esm/mark/utils.js.map +1 -0
- package/esm/palette/category10.d.ts +7 -0
- package/esm/palette/category10.js +19 -0
- package/esm/palette/category10.js.map +1 -0
- package/esm/palette/category20.d.ts +7 -0
- package/esm/palette/category20.js +29 -0
- package/esm/palette/category20.js.map +1 -0
- package/esm/palette/index.d.ts +2 -0
- package/esm/palette/index.js +3 -0
- package/esm/palette/index.js.map +1 -0
- package/esm/renderer/canvas.d.ts +10 -0
- package/esm/renderer/canvas.js +18 -0
- package/esm/renderer/canvas.js.map +1 -0
- package/esm/renderer/index.d.ts +1 -0
- package/esm/renderer/index.js +2 -0
- package/esm/renderer/index.js.map +1 -0
- package/esm/runtime/component.d.ts +5 -0
- package/esm/runtime/component.js +132 -0
- package/esm/runtime/component.js.map +1 -0
- package/esm/runtime/coordinate.d.ts +7 -0
- package/esm/runtime/coordinate.js +34 -0
- package/esm/runtime/coordinate.js.map +1 -0
- package/esm/runtime/index.d.ts +7 -0
- package/esm/runtime/index.js +8 -0
- package/esm/runtime/index.js.map +1 -0
- package/esm/runtime/layout.d.ts +5 -0
- package/esm/runtime/layout.js +115 -0
- package/esm/runtime/layout.js.map +1 -0
- package/esm/runtime/library.d.ts +3 -0
- package/esm/runtime/library.js +26 -0
- package/esm/runtime/library.js.map +1 -0
- package/esm/runtime/mark.d.ts +6 -0
- package/esm/runtime/mark.js +183 -0
- package/esm/runtime/mark.js.map +1 -0
- package/esm/runtime/plot.d.ts +3 -0
- package/esm/runtime/plot.js +554 -0
- package/esm/runtime/plot.js.map +1 -0
- package/esm/runtime/render.d.ts +2 -0
- package/esm/runtime/render.js +78 -0
- package/esm/runtime/render.js.map +1 -0
- package/esm/runtime/scale.d.ts +8 -0
- package/esm/runtime/scale.js +326 -0
- package/esm/runtime/scale.js.map +1 -0
- package/esm/runtime/types/common.d.ts +125 -0
- package/esm/runtime/types/common.js +2 -0
- package/esm/runtime/types/common.js.map +1 -0
- package/esm/runtime/types/component.d.ts +73 -0
- package/esm/runtime/types/component.js +2 -0
- package/esm/runtime/types/component.js.map +1 -0
- package/esm/runtime/types/encode.d.ts +21 -0
- package/esm/runtime/types/encode.js +2 -0
- package/esm/runtime/types/encode.js.map +1 -0
- package/esm/runtime/types/mark.d.ts +20 -0
- package/esm/runtime/types/mark.js +2 -0
- package/esm/runtime/types/mark.js.map +1 -0
- package/esm/runtime/types/options.d.ts +106 -0
- package/esm/runtime/types/options.js +2 -0
- package/esm/runtime/types/options.js.map +1 -0
- package/esm/runtime/types/transform.d.ts +23 -0
- package/esm/runtime/types/transform.js +2 -0
- package/esm/runtime/types/transform.js.map +1 -0
- package/esm/scale/band.d.ts +4 -0
- package/esm/scale/band.js +6 -0
- package/esm/scale/band.js.map +1 -0
- package/esm/scale/identity.d.ts +4 -0
- package/esm/scale/identity.js +6 -0
- package/esm/scale/identity.js.map +1 -0
- package/esm/scale/index.d.ts +11 -0
- package/esm/scale/index.js +12 -0
- package/esm/scale/index.js.map +1 -0
- package/esm/scale/linear.d.ts +4 -0
- package/esm/scale/linear.js +6 -0
- package/esm/scale/linear.js.map +1 -0
- package/esm/scale/log.d.ts +4 -0
- package/esm/scale/log.js +6 -0
- package/esm/scale/log.js.map +1 -0
- package/esm/scale/ordinal.d.ts +4 -0
- package/esm/scale/ordinal.js +6 -0
- package/esm/scale/ordinal.js.map +1 -0
- package/esm/scale/point.d.ts +4 -0
- package/esm/scale/point.js +6 -0
- package/esm/scale/point.js.map +1 -0
- package/esm/scale/pow.d.ts +4 -0
- package/esm/scale/pow.js +6 -0
- package/esm/scale/pow.js.map +1 -0
- package/esm/scale/quantile.d.ts +4 -0
- package/esm/scale/quantile.js +6 -0
- package/esm/scale/quantile.js.map +1 -0
- package/esm/scale/quantize.d.ts +4 -0
- package/esm/scale/quantize.js +6 -0
- package/esm/scale/quantize.js.map +1 -0
- package/esm/scale/threshold.d.ts +4 -0
- package/esm/scale/threshold.js +6 -0
- package/esm/scale/threshold.js.map +1 -0
- package/esm/scale/time.d.ts +4 -0
- package/esm/scale/time.js +6 -0
- package/esm/scale/time.js.map +1 -0
- package/esm/shape/annotation/badge.d.ts +14 -0
- package/esm/shape/annotation/badge.js +93 -0
- package/esm/shape/annotation/badge.js.map +1 -0
- package/esm/shape/annotation/connector.d.ts +15 -0
- package/esm/shape/annotation/connector.js +101 -0
- package/esm/shape/annotation/connector.js.map +1 -0
- package/esm/shape/annotation/line.d.ts +3 -0
- package/esm/shape/annotation/line.js +56 -0
- package/esm/shape/annotation/line.js.map +1 -0
- package/esm/shape/annotation/text.d.ts +20 -0
- package/esm/shape/annotation/text.js +162 -0
- package/esm/shape/annotation/text.js.map +1 -0
- package/esm/shape/area/area.d.ts +3 -0
- package/esm/shape/area/area.js +11 -0
- package/esm/shape/area/area.js.map +1 -0
- package/esm/shape/area/curveArea.d.ts +8 -0
- package/esm/shape/area/curveArea.js +60 -0
- package/esm/shape/area/curveArea.js.map +1 -0
- package/esm/shape/area/smoothArea.d.ts +5 -0
- package/esm/shape/area/smoothArea.js +23 -0
- package/esm/shape/area/smoothArea.js.map +1 -0
- package/esm/shape/edge/arc.d.ts +8 -0
- package/esm/shape/edge/arc.js +51 -0
- package/esm/shape/edge/arc.js.map +1 -0
- package/esm/shape/edge/edge.d.ts +6 -0
- package/esm/shape/edge/edge.js +11 -0
- package/esm/shape/edge/edge.js.map +1 -0
- package/esm/shape/edge/ribbon.d.ts +15 -0
- package/esm/shape/edge/ribbon.js +69 -0
- package/esm/shape/edge/ribbon.js.map +1 -0
- package/esm/shape/edge/smoothEdge.d.ts +6 -0
- package/esm/shape/edge/smoothEdge.js +39 -0
- package/esm/shape/edge/smoothEdge.js.map +1 -0
- package/esm/shape/edge/vhv.d.ts +12 -0
- package/esm/shape/edge/vhv.js +69 -0
- package/esm/shape/edge/vhv.js.map +1 -0
- package/esm/shape/image/image.d.ts +3 -0
- package/esm/shape/image/image.js +38 -0
- package/esm/shape/image/image.js.map +1 -0
- package/esm/shape/index.d.ts +48 -0
- package/esm/shape/index.js +50 -0
- package/esm/shape/index.js.map +1 -0
- package/esm/shape/interval/colorRect.d.ts +14 -0
- package/esm/shape/interval/colorRect.js +80 -0
- package/esm/shape/interval/colorRect.js.map +1 -0
- package/esm/shape/interval/funnel.d.ts +10 -0
- package/esm/shape/interval/funnel.js +43 -0
- package/esm/shape/interval/funnel.js.map +1 -0
- package/esm/shape/interval/hollowRect.d.ts +6 -0
- package/esm/shape/interval/hollowRect.js +9 -0
- package/esm/shape/interval/hollowRect.js.map +1 -0
- package/esm/shape/interval/pyramid.d.ts +6 -0
- package/esm/shape/interval/pyramid.js +38 -0
- package/esm/shape/interval/pyramid.js.map +1 -0
- package/esm/shape/interval/rect.d.ts +7 -0
- package/esm/shape/interval/rect.js +10 -0
- package/esm/shape/interval/rect.js.map +1 -0
- package/esm/shape/label/label.d.ts +7 -0
- package/esm/shape/label/label.js +29 -0
- package/esm/shape/label/label.js.map +1 -0
- package/esm/shape/line/curveLine.d.ts +8 -0
- package/esm/shape/line/curveLine.js +41 -0
- package/esm/shape/line/curveLine.js.map +1 -0
- package/esm/shape/line/hv.d.ts +3 -0
- package/esm/shape/line/hv.js +7 -0
- package/esm/shape/line/hv.js.map +1 -0
- package/esm/shape/line/hvh.d.ts +3 -0
- package/esm/shape/line/hvh.js +7 -0
- package/esm/shape/line/hvh.js.map +1 -0
- package/esm/shape/line/line.d.ts +3 -0
- package/esm/shape/line/line.js +7 -0
- package/esm/shape/line/line.js.map +1 -0
- package/esm/shape/line/smooth.d.ts +5 -0
- package/esm/shape/line/smooth.js +19 -0
- package/esm/shape/line/smooth.js.map +1 -0
- package/esm/shape/line/vh.d.ts +3 -0
- package/esm/shape/line/vh.js +7 -0
- package/esm/shape/line/vh.js.map +1 -0
- package/esm/shape/link/link.d.ts +13 -0
- package/esm/shape/link/link.js +49 -0
- package/esm/shape/link/link.js.map +1 -0
- package/esm/shape/node/point.d.ts +6 -0
- package/esm/shape/node/point.js +27 -0
- package/esm/shape/node/point.js.map +1 -0
- package/esm/shape/node/polygon.d.ts +3 -0
- package/esm/shape/node/polygon.js +8 -0
- package/esm/shape/node/polygon.js.map +1 -0
- package/esm/shape/point/bowtie.d.ts +6 -0
- package/esm/shape/point/bowtie.js +9 -0
- package/esm/shape/point/bowtie.js.map +1 -0
- package/esm/shape/point/colorPoint.d.ts +11 -0
- package/esm/shape/point/colorPoint.js +59 -0
- package/esm/shape/point/colorPoint.js.map +1 -0
- package/esm/shape/point/cross.d.ts +6 -0
- package/esm/shape/point/cross.js +9 -0
- package/esm/shape/point/cross.js.map +1 -0
- package/esm/shape/point/diamond.d.ts +6 -0
- package/esm/shape/point/diamond.js +9 -0
- package/esm/shape/point/diamond.js.map +1 -0
- package/esm/shape/point/hexagon.d.ts +6 -0
- package/esm/shape/point/hexagon.js +9 -0
- package/esm/shape/point/hexagon.js.map +1 -0
- package/esm/shape/point/hollowBowtie.d.ts +6 -0
- package/esm/shape/point/hollowBowtie.js +9 -0
- package/esm/shape/point/hollowBowtie.js.map +1 -0
- package/esm/shape/point/hollowDiamond.d.ts +6 -0
- package/esm/shape/point/hollowDiamond.js +9 -0
- package/esm/shape/point/hollowDiamond.js.map +1 -0
- package/esm/shape/point/hollowHexagon.d.ts +6 -0
- package/esm/shape/point/hollowHexagon.js +9 -0
- package/esm/shape/point/hollowHexagon.js.map +1 -0
- package/esm/shape/point/hollowPoint.d.ts +6 -0
- package/esm/shape/point/hollowPoint.js +9 -0
- package/esm/shape/point/hollowPoint.js.map +1 -0
- package/esm/shape/point/hollowSquare.d.ts +6 -0
- package/esm/shape/point/hollowSquare.js +9 -0
- package/esm/shape/point/hollowSquare.js.map +1 -0
- package/esm/shape/point/hollowTriangle.d.ts +6 -0
- package/esm/shape/point/hollowTriangle.js +9 -0
- package/esm/shape/point/hollowTriangle.js.map +1 -0
- package/esm/shape/point/hollowTriangleDown.d.ts +6 -0
- package/esm/shape/point/hollowTriangleDown.js +9 -0
- package/esm/shape/point/hollowTriangleDown.js.map +1 -0
- package/esm/shape/point/hyphen.d.ts +6 -0
- package/esm/shape/point/hyphen.js +9 -0
- package/esm/shape/point/hyphen.js.map +1 -0
- package/esm/shape/point/line.d.ts +6 -0
- package/esm/shape/point/line.js +9 -0
- package/esm/shape/point/line.js.map +1 -0
- package/esm/shape/point/plus.d.ts +6 -0
- package/esm/shape/point/plus.js +9 -0
- package/esm/shape/point/plus.js.map +1 -0
- package/esm/shape/point/point.d.ts +6 -0
- package/esm/shape/point/point.js +9 -0
- package/esm/shape/point/point.js.map +1 -0
- package/esm/shape/point/square.d.ts +6 -0
- package/esm/shape/point/square.js +9 -0
- package/esm/shape/point/square.js.map +1 -0
- package/esm/shape/point/symbol.d.ts +49 -0
- package/esm/shape/point/symbol.js +142 -0
- package/esm/shape/point/symbol.js.map +1 -0
- package/esm/shape/point/tick.d.ts +6 -0
- package/esm/shape/point/tick.js +9 -0
- package/esm/shape/point/tick.js.map +1 -0
- package/esm/shape/point/triangle.d.ts +6 -0
- package/esm/shape/point/triangle.js +9 -0
- package/esm/shape/point/triangle.js.map +1 -0
- package/esm/shape/point/triangleDown.d.ts +6 -0
- package/esm/shape/point/triangleDown.js +9 -0
- package/esm/shape/point/triangleDown.js.map +1 -0
- package/esm/shape/polygon/polygon.d.ts +3 -0
- package/esm/shape/polygon/polygon.js +67 -0
- package/esm/shape/polygon/polygon.js.map +1 -0
- package/esm/shape/schema/box.d.ts +3 -0
- package/esm/shape/schema/box.js +87 -0
- package/esm/shape/schema/box.js.map +1 -0
- package/esm/shape/text/text.d.ts +6 -0
- package/esm/shape/text/text.js +41 -0
- package/esm/shape/text/text.js.map +1 -0
- package/esm/shape/utils.d.ts +52 -0
- package/esm/shape/utils.js +67 -0
- package/esm/shape/utils.js.map +1 -0
- package/esm/shape/vector/vector.d.ts +13 -0
- package/esm/shape/vector/vector.js +48 -0
- package/esm/shape/vector/vector.js.map +1 -0
- package/esm/spec/action.d.ts +122 -0
- package/esm/spec/action.js +2 -0
- package/esm/spec/action.js.map +1 -0
- package/esm/spec/animate.d.ts +8 -0
- package/esm/spec/animate.js +2 -0
- package/esm/spec/animate.js.map +1 -0
- package/esm/spec/composition.d.ts +124 -0
- package/esm/spec/composition.js +2 -0
- package/esm/spec/composition.js.map +1 -0
- package/esm/spec/coordinate.d.ts +30 -0
- package/esm/spec/coordinate.js +2 -0
- package/esm/spec/coordinate.js.map +1 -0
- package/esm/spec/encode.d.ts +23 -0
- package/esm/spec/encode.js +2 -0
- package/esm/spec/encode.js.map +1 -0
- package/esm/spec/geometry.d.ts +60 -0
- package/esm/spec/geometry.js +2 -0
- package/esm/spec/geometry.js.map +1 -0
- package/esm/spec/index.d.ts +16 -0
- package/esm/spec/index.js +12 -0
- package/esm/spec/index.js.map +1 -0
- package/esm/spec/interaction.d.ts +66 -0
- package/esm/spec/interaction.js +2 -0
- package/esm/spec/interaction.js.map +1 -0
- package/esm/spec/palette.d.ts +13 -0
- package/esm/spec/palette.js +2 -0
- package/esm/spec/palette.js.map +1 -0
- package/esm/spec/scale.d.ts +27 -0
- package/esm/spec/scale.js +2 -0
- package/esm/spec/scale.js.map +1 -0
- package/esm/spec/statistic.d.ts +69 -0
- package/esm/spec/statistic.js +2 -0
- package/esm/spec/statistic.js.map +1 -0
- package/esm/spec/theme.d.ts +12 -0
- package/esm/spec/theme.js +2 -0
- package/esm/spec/theme.js.map +1 -0
- package/esm/spec/title.d.ts +2 -0
- package/esm/spec/title.js +2 -0
- package/esm/spec/title.js.map +1 -0
- package/esm/spec/transform.d.ts +177 -0
- package/esm/spec/transform.js +2 -0
- package/esm/spec/transform.js.map +1 -0
- package/esm/stdlib/index.d.ts +2 -0
- package/esm/stdlib/index.js +185 -0
- package/esm/stdlib/index.js.map +1 -0
- package/esm/theme/index.d.ts +1 -12
- package/esm/theme/index.js +1 -22
- package/esm/theme/index.js.map +1 -1
- package/esm/theme/light.d.ts +7 -0
- package/esm/theme/light.js +30 -0
- package/esm/theme/light.js.map +1 -0
- package/esm/transform/index.d.ts +36 -0
- package/esm/transform/index.js +40 -0
- package/esm/transform/index.js.map +1 -0
- package/esm/transform/inference/maybeArrayField.d.ts +8 -0
- package/esm/transform/inference/maybeArrayField.js +47 -0
- package/esm/transform/inference/maybeArrayField.js.map +1 -0
- package/esm/transform/inference/maybeKey.d.ts +9 -0
- package/esm/transform/inference/maybeKey.js +33 -0
- package/esm/transform/inference/maybeKey.js.map +1 -0
- package/esm/transform/inference/maybeSeries.d.ts +7 -0
- package/esm/transform/inference/maybeSeries.js +23 -0
- package/esm/transform/inference/maybeSeries.js.map +1 -0
- package/esm/transform/inference/maybeSize.d.ts +7 -0
- package/esm/transform/inference/maybeSize.js +14 -0
- package/esm/transform/inference/maybeSize.js.map +1 -0
- package/esm/transform/inference/maybeStackY.d.ts +9 -0
- package/esm/transform/inference/maybeStackY.js +32 -0
- package/esm/transform/inference/maybeStackY.js.map +1 -0
- package/esm/transform/inference/maybeTitleX.d.ts +7 -0
- package/esm/transform/inference/maybeTitleX.js +23 -0
- package/esm/transform/inference/maybeTitleX.js.map +1 -0
- package/esm/transform/inference/maybeTooltip.d.ts +9 -0
- package/esm/transform/inference/maybeTooltip.js +30 -0
- package/esm/transform/inference/maybeTooltip.js.map +1 -0
- package/esm/transform/inference/maybeTooltipPosition.d.ts +7 -0
- package/esm/transform/inference/maybeTooltipPosition.js +12 -0
- package/esm/transform/inference/maybeTooltipPosition.js.map +1 -0
- package/esm/transform/inference/maybeTooltipY.d.ts +7 -0
- package/esm/transform/inference/maybeTooltipY.js +12 -0
- package/esm/transform/inference/maybeTooltipY.js.map +1 -0
- package/esm/transform/inference/maybeZeroX.d.ts +7 -0
- package/esm/transform/inference/maybeZeroX.js +14 -0
- package/esm/transform/inference/maybeZeroX.js.map +1 -0
- package/esm/transform/inference/maybeZeroY.d.ts +7 -0
- package/esm/transform/inference/maybeZeroY.js +14 -0
- package/esm/transform/inference/maybeZeroY.js.map +1 -0
- package/esm/transform/inference/maybeZeroY1.d.ts +7 -0
- package/esm/transform/inference/maybeZeroY1.js +14 -0
- package/esm/transform/inference/maybeZeroY1.js.map +1 -0
- package/esm/transform/preprocessor/arc.d.ts +7 -0
- package/esm/transform/preprocessor/arc.js +16 -0
- package/esm/transform/preprocessor/arc.js.map +1 -0
- package/esm/transform/preprocessor/cluster.d.ts +5 -0
- package/esm/transform/preprocessor/cluster.js +40 -0
- package/esm/transform/preprocessor/cluster.js.map +1 -0
- package/esm/transform/preprocessor/connector.d.ts +7 -0
- package/esm/transform/preprocessor/connector.js +16 -0
- package/esm/transform/preprocessor/connector.js.map +1 -0
- package/esm/transform/preprocessor/fetch.d.ts +8 -0
- package/esm/transform/preprocessor/fetch.js +36 -0
- package/esm/transform/preprocessor/fetch.js.map +1 -0
- package/esm/transform/preprocessor/filterBy.d.ts +8 -0
- package/esm/transform/preprocessor/filterBy.js +18 -0
- package/esm/transform/preprocessor/filterBy.js.map +1 -0
- package/esm/transform/preprocessor/fold.d.ts +8 -0
- package/esm/transform/preprocessor/fold.js +27 -0
- package/esm/transform/preprocessor/fold.js.map +1 -0
- package/esm/transform/preprocessor/pick.d.ts +7 -0
- package/esm/transform/preprocessor/pick.js +12 -0
- package/esm/transform/preprocessor/pick.js.map +1 -0
- package/esm/transform/preprocessor/rename.d.ts +8 -0
- package/esm/transform/preprocessor/rename.js +20 -0
- package/esm/transform/preprocessor/rename.js.map +1 -0
- package/esm/transform/preprocessor/sankey.d.ts +8 -0
- package/esm/transform/preprocessor/sankey.js +80 -0
- package/esm/transform/preprocessor/sankey.js.map +1 -0
- package/esm/transform/preprocessor/sortBy.d.ts +7 -0
- package/esm/transform/preprocessor/sortBy.js +19 -0
- package/esm/transform/preprocessor/sortBy.js.map +1 -0
- package/esm/transform/preprocessor/subset.d.ts +7 -0
- package/esm/transform/preprocessor/subset.js +31 -0
- package/esm/transform/preprocessor/subset.js.map +1 -0
- package/esm/transform/preprocessor/tree.d.ts +4 -0
- package/esm/transform/preprocessor/tree.js +7 -0
- package/esm/transform/preprocessor/tree.js.map +1 -0
- package/esm/transform/preprocessor/voronoi.d.ts +4 -0
- package/esm/transform/preprocessor/voronoi.js +20 -0
- package/esm/transform/preprocessor/voronoi.js.map +1 -0
- package/esm/transform/preprocessor/wordCloud.d.ts +6 -0
- package/esm/transform/preprocessor/wordCloud.js +106 -0
- package/esm/transform/preprocessor/wordCloud.js.map +1 -0
- package/esm/transform/statistic/Select.d.ts +9 -0
- package/esm/transform/statistic/Select.js +58 -0
- package/esm/transform/statistic/Select.js.map +1 -0
- package/esm/transform/statistic/SelectX.d.ts +7 -0
- package/esm/transform/statistic/SelectX.js +23 -0
- package/esm/transform/statistic/SelectX.js.map +1 -0
- package/esm/transform/statistic/SelectY.d.ts +7 -0
- package/esm/transform/statistic/SelectY.js +23 -0
- package/esm/transform/statistic/SelectY.js.map +1 -0
- package/esm/transform/statistic/dodgeX.d.ts +9 -0
- package/esm/transform/statistic/dodgeX.js +56 -0
- package/esm/transform/statistic/dodgeX.js.map +1 -0
- package/esm/transform/statistic/groupX.d.ts +8 -0
- package/esm/transform/statistic/groupX.js +85 -0
- package/esm/transform/statistic/groupX.js.map +1 -0
- package/esm/transform/statistic/jitter.d.ts +9 -0
- package/esm/transform/statistic/jitter.js +40 -0
- package/esm/transform/statistic/jitter.js.map +1 -0
- package/esm/transform/statistic/jitterY.d.ts +8 -0
- package/esm/transform/statistic/jitterY.js +27 -0
- package/esm/transform/statistic/jitterY.js.map +1 -0
- package/esm/transform/statistic/normalizeY.d.ts +9 -0
- package/esm/transform/statistic/normalizeY.js +70 -0
- package/esm/transform/statistic/normalizeY.js.map +1 -0
- package/esm/transform/statistic/stackEnter.d.ts +13 -0
- package/esm/transform/statistic/stackEnter.js +59 -0
- package/esm/transform/statistic/stackEnter.js.map +1 -0
- package/esm/transform/statistic/stackY.d.ts +9 -0
- package/esm/transform/statistic/stackY.js +55 -0
- package/esm/transform/statistic/stackY.js.map +1 -0
- package/esm/transform/statistic/symmetryY.d.ts +8 -0
- package/esm/transform/statistic/symmetryY.js +61 -0
- package/esm/transform/statistic/symmetryY.js.map +1 -0
- package/esm/transform/statistic/utils.d.ts +9 -0
- package/esm/transform/statistic/utils.js +70 -0
- package/esm/transform/statistic/utils.js.map +1 -0
- package/esm/transform/utils/arc/arc.d.ts +8 -0
- package/esm/transform/utils/arc/arc.js +161 -0
- package/esm/transform/utils/arc/arc.js.map +1 -0
- package/esm/transform/utils/arc/index.d.ts +2 -0
- package/esm/transform/utils/arc/index.js +2 -0
- package/esm/transform/utils/arc/index.js.map +1 -0
- package/esm/transform/utils/arc/sort.d.ts +4 -0
- package/esm/transform/utils/arc/sort.js +13 -0
- package/esm/transform/utils/arc/sort.js.map +1 -0
- package/esm/transform/utils/arc/types.d.ts +26 -0
- package/esm/transform/utils/arc/types.js +2 -0
- package/esm/transform/utils/arc/types.js.map +1 -0
- package/esm/transform/utils/d3-cloud/index.d.ts +1 -0
- package/esm/transform/utils/d3-cloud/index.js +395 -0
- package/esm/transform/utils/d3-cloud/index.js.map +1 -0
- package/esm/transform/utils/d3-sankey/align.d.ts +4 -0
- package/esm/transform/utils/d3-sankey/align.js +21 -0
- package/esm/transform/utils/d3-sankey/align.js.map +1 -0
- package/esm/transform/utils/d3-sankey/constant.d.ts +1 -0
- package/esm/transform/utils/d3-sankey/constant.js +6 -0
- package/esm/transform/utils/d3-sankey/constant.js.map +1 -0
- package/esm/transform/utils/d3-sankey/index.d.ts +12 -0
- package/esm/transform/utils/d3-sankey/index.js +13 -0
- package/esm/transform/utils/d3-sankey/index.js.map +1 -0
- package/esm/transform/utils/d3-sankey/sankey.d.ts +24 -0
- package/esm/transform/utils/d3-sankey/sankey.js +388 -0
- package/esm/transform/utils/d3-sankey/sankey.js.map +1 -0
- package/esm/transform/utils/flow.d.ts +9 -0
- package/esm/transform/utils/flow.js +45 -0
- package/esm/transform/utils/flow.js.map +1 -0
- package/esm/transform/utils/helper.d.ts +14 -0
- package/esm/transform/utils/helper.js +40 -0
- package/esm/transform/utils/helper.js.map +1 -0
- package/esm/transform/utils/memo.d.ts +17 -0
- package/esm/transform/utils/memo.js +79 -0
- package/esm/transform/utils/memo.js.map +1 -0
- package/esm/utils/array.d.ts +14 -0
- package/esm/utils/array.js +42 -0
- package/esm/utils/array.js.map +1 -0
- package/esm/utils/container.d.ts +8 -0
- package/esm/utils/container.js +16 -0
- package/esm/utils/container.js.map +1 -0
- package/esm/utils/coordinate.d.ts +5 -0
- package/esm/utils/coordinate.js +20 -0
- package/esm/utils/coordinate.js.map +1 -0
- package/esm/utils/helper.d.ts +17 -0
- package/esm/utils/helper.js +63 -0
- package/esm/utils/helper.js.map +1 -0
- package/esm/utils/selection.d.ts +64 -0
- package/esm/utils/selection.js +285 -0
- package/esm/utils/selection.js.map +1 -0
- package/esm/utils/vector.d.ts +13 -0
- package/esm/utils/vector.js +42 -0
- package/esm/utils/vector.js.map +1 -0
- package/lib/adjust/index.d.ts +1 -0
- package/lib/adjust/index.js +6 -0
- package/lib/adjust/index.js.map +1 -0
- package/lib/adjust/pack.d.ts +8 -0
- package/lib/adjust/pack.js +59 -0
- package/lib/adjust/pack.js.map +1 -0
- package/lib/animation/fadeIn.d.ts +7 -0
- package/lib/animation/fadeIn.js +27 -0
- package/lib/animation/fadeIn.js.map +1 -0
- package/lib/animation/fadeOut.d.ts +7 -0
- package/lib/animation/fadeOut.js +25 -0
- package/lib/animation/fadeOut.js.map +1 -0
- package/lib/animation/index.d.ts +7 -0
- package/lib/animation/index.js +18 -0
- package/lib/animation/index.js.map +1 -0
- package/lib/animation/morphing.d.ts +13 -0
- package/lib/animation/morphing.js +165 -0
- package/lib/animation/morphing.js.map +1 -0
- package/lib/animation/scaleInX.d.ts +7 -0
- package/lib/animation/scaleInX.js +50 -0
- package/lib/animation/scaleInX.js.map +1 -0
- package/lib/animation/scaleInY.d.ts +7 -0
- package/lib/animation/scaleInY.js +50 -0
- package/lib/animation/scaleInY.js.map +1 -0
- package/lib/animation/scaleOutX.d.ts +7 -0
- package/lib/animation/scaleOutX.js +50 -0
- package/lib/animation/scaleOutX.js.map +1 -0
- package/lib/animation/scaleOutY.d.ts +7 -0
- package/lib/animation/scaleOutY.js +50 -0
- package/lib/animation/scaleOutY.js.map +1 -0
- package/lib/animation/utils.d.ts +2 -0
- package/lib/animation/utils.js +21 -0
- package/lib/animation/utils.js.map +1 -0
- package/lib/api/chart.d.ts +30 -0
- package/lib/api/chart.js +106 -0
- package/lib/api/chart.js.map +1 -0
- package/lib/api/composition/circle.d.ts +21 -0
- package/lib/api/composition/circle.js +33 -0
- package/lib/api/composition/circle.js.map +1 -0
- package/lib/api/composition/flex.d.ts +17 -0
- package/lib/api/composition/flex.js +29 -0
- package/lib/api/composition/flex.js.map +1 -0
- package/lib/api/composition/index.d.ts +26 -0
- package/lib/api/composition/index.js +36 -0
- package/lib/api/composition/index.js.map +1 -0
- package/lib/api/composition/keyframe.d.ts +17 -0
- package/lib/api/composition/keyframe.js +29 -0
- package/lib/api/composition/keyframe.js.map +1 -0
- package/lib/api/composition/layer.d.ts +14 -0
- package/lib/api/composition/layer.js +26 -0
- package/lib/api/composition/layer.js.map +1 -0
- package/lib/api/composition/matrix.d.ts +21 -0
- package/lib/api/composition/matrix.js +33 -0
- package/lib/api/composition/matrix.js.map +1 -0
- package/lib/api/composition/rect.d.ts +23 -0
- package/lib/api/composition/rect.js +35 -0
- package/lib/api/composition/rect.js.map +1 -0
- package/lib/api/composition/view.d.ts +20 -0
- package/lib/api/composition/view.js +33 -0
- package/lib/api/composition/view.js.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +6 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/mark/index.d.ts +41 -0
- package/lib/api/mark/index.js +25 -0
- package/lib/api/mark/index.js.map +1 -0
- package/lib/api/mark/mark.d.ts +114 -0
- package/lib/api/mark/mark.js +193 -0
- package/lib/api/mark/mark.js.map +1 -0
- package/lib/api/mark/types.d.ts +21 -0
- package/lib/{util → api/mark}/types.js +0 -0
- package/lib/api/mark/types.js.map +1 -0
- package/lib/api/node.d.ts +31 -0
- package/lib/api/node.js +59 -0
- package/lib/api/node.js.map +1 -0
- package/lib/api/props.d.ts +12 -0
- package/lib/api/props.js +81 -0
- package/lib/api/props.js.map +1 -0
- package/lib/api/types.d.ts +10 -0
- package/lib/api/types.js +3 -0
- package/lib/api/types.js.map +1 -0
- package/lib/component/axis.d.ts +13 -0
- package/lib/component/axis.js +298 -0
- package/lib/component/axis.js.map +1 -0
- package/lib/component/axisX.d.ts +7 -0
- package/lib/component/axisX.js +13 -0
- package/lib/component/axisX.js.map +1 -0
- package/lib/component/axisY.d.ts +7 -0
- package/lib/component/axisY.js +13 -0
- package/lib/component/axisY.js.map +1 -0
- package/lib/component/index.d.ts +5 -0
- package/lib/component/index.js +14 -0
- package/lib/component/index.js.map +1 -0
- package/lib/component/legendCategory.d.ts +10 -0
- package/lib/component/legendCategory.js +88 -0
- package/lib/component/legendCategory.js.map +1 -0
- package/lib/component/legendContinuous.d.ts +9 -0
- package/lib/component/legendContinuous.js +42 -0
- package/lib/component/legendContinuous.js.map +1 -0
- package/lib/component/title.d.ts +6 -0
- package/lib/component/title.js +58 -0
- package/lib/component/title.js.map +1 -0
- package/lib/component/utils.d.ts +8 -0
- package/lib/component/utils.js +32 -0
- package/lib/component/utils.js.map +1 -0
- package/lib/composition/circle.d.ts +7 -0
- package/lib/composition/circle.js +89 -0
- package/lib/composition/circle.js.map +1 -0
- package/lib/composition/flex.d.ts +7 -0
- package/lib/composition/flex.js +42 -0
- package/lib/composition/flex.js.map +1 -0
- package/lib/composition/index.d.ts +8 -0
- package/lib/composition/index.js +20 -0
- package/lib/composition/index.js.map +1 -0
- package/lib/composition/keyframe.d.ts +7 -0
- package/lib/composition/keyframe.js +79 -0
- package/lib/composition/keyframe.js.map +1 -0
- package/lib/composition/layer.d.ts +7 -0
- package/lib/composition/layer.js +36 -0
- package/lib/composition/layer.js.map +1 -0
- package/lib/composition/mark.d.ts +4 -0
- package/lib/composition/mark.js +44 -0
- package/lib/composition/mark.js.map +1 -0
- package/lib/composition/matrix.d.ts +8 -0
- package/lib/composition/matrix.js +155 -0
- package/lib/composition/matrix.js.map +1 -0
- package/lib/composition/rect.d.ts +30 -0
- package/lib/composition/rect.js +292 -0
- package/lib/composition/rect.js.map +1 -0
- package/lib/composition/utils.d.ts +10 -0
- package/lib/composition/utils.js +19 -0
- package/lib/composition/utils.js.map +1 -0
- package/lib/composition/view.d.ts +9 -0
- package/lib/composition/view.js +36 -0
- package/lib/composition/view.js.map +1 -0
- package/lib/coordinate/cartesian.d.ts +7 -0
- package/lib/coordinate/cartesian.js +10 -0
- package/lib/coordinate/cartesian.js.map +1 -0
- package/lib/coordinate/fisheye.d.ts +7 -0
- package/lib/coordinate/fisheye.js +10 -0
- package/lib/coordinate/fisheye.js.map +1 -0
- package/lib/coordinate/index.d.ts +5 -0
- package/lib/coordinate/index.js +14 -0
- package/lib/coordinate/index.js.map +1 -0
- package/lib/coordinate/parallel.d.ts +7 -0
- package/lib/coordinate/parallel.js +10 -0
- package/lib/coordinate/parallel.js.map +1 -0
- package/lib/coordinate/polar.d.ts +8 -0
- package/lib/coordinate/polar.js +16 -0
- package/lib/coordinate/polar.js.map +1 -0
- package/lib/coordinate/transpose.d.ts +7 -0
- package/lib/coordinate/transpose.js +15 -0
- package/lib/coordinate/transpose.js.map +1 -0
- package/lib/encode/column.d.ts +7 -0
- package/lib/encode/column.js +12 -0
- package/lib/encode/column.js.map +1 -0
- package/lib/encode/constant.d.ts +7 -0
- package/lib/encode/constant.js +12 -0
- package/lib/encode/constant.js.map +1 -0
- package/lib/encode/field.d.ts +7 -0
- package/lib/encode/field.js +12 -0
- package/lib/encode/field.js.map +1 -0
- package/lib/encode/index.d.ts +4 -0
- package/lib/encode/index.js +12 -0
- package/lib/encode/index.js.map +1 -0
- package/lib/encode/transform.d.ts +9 -0
- package/lib/encode/transform.js +14 -0
- package/lib/encode/transform.js.map +1 -0
- package/lib/index.d.ts +4 -107
- package/lib/index.js +20 -591
- package/lib/index.js.map +1 -1
- package/lib/interaction/action/index.d.ts +23 -2
- package/lib/interaction/action/index.js +47 -10
- package/lib/interaction/action/index.js.map +1 -1
- package/lib/interaction/action/service/elementSelection.d.ts +4 -0
- package/lib/interaction/action/service/elementSelection.js +94 -0
- package/lib/interaction/action/service/elementSelection.js.map +1 -0
- package/lib/interaction/action/service/fisheyeFocus.d.ts +4 -0
- package/lib/interaction/action/service/fisheyeFocus.js +51 -0
- package/lib/interaction/action/service/fisheyeFocus.js.map +1 -0
- package/lib/interaction/action/service/legendItemSelection.d.ts +4 -0
- package/lib/interaction/action/service/legendItemSelection.js +21 -0
- package/lib/interaction/action/service/legendItemSelection.js.map +1 -0
- package/lib/interaction/action/service/recordCurrentPoint.d.ts +4 -0
- package/lib/interaction/action/service/recordCurrentPoint.js +20 -0
- package/lib/interaction/action/service/recordCurrentPoint.js.map +1 -0
- package/lib/interaction/action/service/recordPoint.d.ts +4 -0
- package/lib/interaction/action/service/recordPoint.js +32 -0
- package/lib/interaction/action/service/recordPoint.js.map +1 -0
- package/lib/interaction/action/service/recordRegion.d.ts +4 -0
- package/lib/interaction/action/service/recordRegion.js +34 -0
- package/lib/interaction/action/service/recordRegion.js.map +1 -0
- package/lib/interaction/action/service/recordState.d.ts +4 -0
- package/lib/interaction/action/service/recordState.js +14 -0
- package/lib/interaction/action/service/recordState.js.map +1 -0
- package/lib/interaction/action/service/recordTip.d.ts +8 -0
- package/lib/interaction/action/service/recordTip.js +19 -0
- package/lib/interaction/action/service/recordTip.js.map +1 -0
- package/lib/interaction/action/service/surfacePointSelection.d.ts +4 -0
- package/lib/interaction/action/service/surfacePointSelection.js +23 -0
- package/lib/interaction/action/service/surfacePointSelection.js.map +1 -0
- package/lib/interaction/action/service/triggerInfoSelection.d.ts +4 -0
- package/lib/interaction/action/service/triggerInfoSelection.js +22 -0
- package/lib/interaction/action/service/triggerInfoSelection.js.map +1 -0
- package/lib/interaction/action/transformer/activeElement.d.ts +4 -0
- package/lib/interaction/action/transformer/activeElement.js +27 -0
- package/lib/interaction/action/transformer/activeElement.js.map +1 -0
- package/lib/interaction/action/transformer/activeRegion.d.ts +4 -0
- package/lib/interaction/action/transformer/activeRegion.js +56 -0
- package/lib/interaction/action/transformer/activeRegion.js.map +1 -0
- package/lib/interaction/action/transformer/button.d.ts +4 -0
- package/lib/interaction/action/transformer/button.js +80 -0
- package/lib/interaction/action/transformer/button.js.map +1 -0
- package/lib/interaction/action/transformer/cursor.d.ts +4 -0
- package/lib/interaction/action/transformer/cursor.js +19 -0
- package/lib/interaction/action/transformer/cursor.js.map +1 -0
- package/lib/interaction/action/transformer/filter.d.ts +7 -0
- package/lib/interaction/action/transformer/filter.js +43 -0
- package/lib/interaction/action/transformer/filter.js.map +1 -0
- package/lib/interaction/action/transformer/filterElement.d.ts +4 -0
- package/lib/interaction/action/transformer/filterElement.js +45 -0
- package/lib/interaction/action/transformer/filterElement.js.map +1 -0
- package/lib/interaction/action/transformer/highlightElement.d.ts +4 -0
- package/lib/interaction/action/transformer/highlightElement.js +52 -0
- package/lib/interaction/action/transformer/highlightElement.js.map +1 -0
- package/lib/interaction/action/transformer/mask.d.ts +7 -0
- package/lib/interaction/action/transformer/mask.js +110 -0
- package/lib/interaction/action/transformer/mask.js.map +1 -0
- package/lib/interaction/action/transformer/move.d.ts +7 -0
- package/lib/interaction/action/transformer/move.js +74 -0
- package/lib/interaction/action/transformer/move.js.map +1 -0
- package/lib/interaction/action/transformer/plot.d.ts +4 -0
- package/lib/interaction/action/transformer/plot.js +14 -0
- package/lib/interaction/action/transformer/plot.js.map +1 -0
- package/lib/interaction/action/transformer/poptip.d.ts +4 -0
- package/lib/interaction/action/transformer/poptip.js +43 -0
- package/lib/interaction/action/transformer/poptip.js.map +1 -0
- package/lib/interaction/action/transformer/setItemState.d.ts +4 -0
- package/lib/interaction/action/transformer/setItemState.js +35 -0
- package/lib/interaction/action/transformer/setItemState.js.map +1 -0
- package/lib/interaction/action/transformer/tooltip.d.ts +9 -0
- package/lib/interaction/action/transformer/tooltip.js +293 -0
- package/lib/interaction/action/transformer/tooltip.js.map +1 -0
- package/lib/interaction/builtin/activeRegion.d.ts +19 -0
- package/lib/interaction/builtin/activeRegion.js +22 -0
- package/lib/interaction/builtin/activeRegion.js.map +1 -0
- package/lib/interaction/builtin/brush.d.ts +132 -0
- package/lib/interaction/builtin/brush.js +97 -0
- package/lib/interaction/builtin/brush.js.map +1 -0
- package/lib/interaction/builtin/brushHighlight.d.ts +98 -0
- package/lib/interaction/builtin/brushHighlight.js +115 -0
- package/lib/interaction/builtin/brushHighlight.js.map +1 -0
- package/lib/interaction/builtin/brushVisible.d.ts +88 -0
- package/lib/interaction/builtin/brushVisible.js +66 -0
- package/lib/interaction/builtin/brushVisible.js.map +1 -0
- package/lib/interaction/builtin/elementActive.d.ts +22 -0
- package/lib/interaction/builtin/elementActive.js +29 -0
- package/lib/interaction/builtin/elementActive.js.map +1 -0
- package/lib/interaction/builtin/elementHighlight.d.ts +19 -0
- package/lib/interaction/builtin/elementHighlight.js +28 -0
- package/lib/interaction/builtin/elementHighlight.js.map +1 -0
- package/lib/interaction/builtin/elementHighlightByColor.d.ts +23 -0
- package/lib/interaction/builtin/elementHighlightByColor.js +28 -0
- package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -0
- package/lib/interaction/builtin/elementHighlightByX.d.ts +23 -0
- package/lib/interaction/builtin/elementHighlightByX.js +28 -0
- package/lib/interaction/builtin/elementHighlightByX.js.map +1 -0
- package/lib/interaction/builtin/elementListHighlight.d.ts +43 -0
- package/lib/interaction/builtin/elementListHighlight.js +32 -0
- package/lib/interaction/builtin/elementListHighlight.js.map +1 -0
- package/lib/interaction/builtin/elementSelected.d.ts +20 -0
- package/lib/interaction/builtin/elementSelected.js +22 -0
- package/lib/interaction/builtin/elementSelected.js.map +1 -0
- package/lib/interaction/builtin/ellipsisText.d.ts +19 -0
- package/lib/interaction/builtin/ellipsisText.js +21 -0
- package/lib/interaction/builtin/ellipsisText.js.map +1 -0
- package/lib/interaction/builtin/fisheye.d.ts +33 -0
- package/lib/interaction/builtin/fisheye.js +24 -0
- package/lib/interaction/builtin/fisheye.js.map +1 -0
- package/lib/interaction/builtin/legendActive.d.ts +43 -0
- package/lib/interaction/builtin/legendActive.js +34 -0
- package/lib/interaction/builtin/legendActive.js.map +1 -0
- package/lib/interaction/builtin/legendHighlight.d.ts +43 -0
- package/lib/interaction/builtin/legendHighlight.js +34 -0
- package/lib/interaction/builtin/legendHighlight.js.map +1 -0
- package/lib/interaction/builtin/tooltip.d.ts +44 -0
- package/lib/interaction/builtin/tooltip.js +32 -0
- package/lib/interaction/builtin/tooltip.js.map +1 -0
- package/lib/interaction/create.d.ts +3 -0
- package/lib/interaction/create.js +100 -0
- package/lib/interaction/create.js.map +1 -0
- package/lib/interaction/index.d.ts +18 -25
- package/lib/interaction/index.js +50 -51
- package/lib/interaction/index.js.map +1 -1
- package/lib/interaction/interactor/index.d.ts +2 -0
- package/lib/interaction/interactor/index.js +8 -0
- package/lib/interaction/interactor/index.js.map +1 -0
- package/lib/interaction/interactor/mousePosition.d.ts +3 -0
- package/lib/interaction/interactor/mousePosition.js +14 -0
- package/lib/interaction/interactor/mousePosition.js.map +1 -0
- package/lib/interaction/interactor/touchPosition.d.ts +3 -0
- package/lib/interaction/interactor/touchPosition.js +14 -0
- package/lib/interaction/interactor/touchPosition.js.map +1 -0
- package/lib/interaction/stdlib.d.ts +2 -0
- package/lib/interaction/stdlib.js +36 -0
- package/lib/interaction/stdlib.js.map +1 -0
- package/lib/interaction/types.d.ts +57 -0
- package/lib/interaction/types.js +3 -0
- package/lib/interaction/types.js.map +1 -0
- package/lib/interaction/utils.d.ts +3 -0
- package/lib/interaction/utils.js +45 -0
- package/lib/interaction/utils.js.map +1 -0
- package/lib/mark/annotation/connector.d.ts +4 -0
- package/lib/mark/annotation/connector.js +22 -0
- package/lib/mark/annotation/connector.js.map +1 -0
- package/lib/mark/annotation/index.d.ts +7 -0
- package/lib/mark/annotation/index.js +18 -0
- package/lib/mark/annotation/index.js.map +1 -0
- package/lib/mark/annotation/lineX.d.ts +4 -0
- package/lib/mark/annotation/lineX.js +25 -0
- package/lib/mark/annotation/lineX.js.map +1 -0
- package/lib/mark/annotation/lineY.d.ts +4 -0
- package/lib/mark/annotation/lineY.js +25 -0
- package/lib/mark/annotation/lineY.js.map +1 -0
- package/lib/mark/annotation/range.d.ts +8 -0
- package/lib/mark/annotation/range.js +49 -0
- package/lib/mark/annotation/range.js.map +1 -0
- package/lib/mark/annotation/rangeX.d.ts +4 -0
- package/lib/mark/annotation/rangeX.js +18 -0
- package/lib/mark/annotation/rangeX.js.map +1 -0
- package/lib/mark/annotation/rangeY.d.ts +4 -0
- package/lib/mark/annotation/rangeY.js +18 -0
- package/lib/mark/annotation/rangeY.js.map +1 -0
- package/lib/mark/annotation/text.d.ts +4 -0
- package/lib/mark/annotation/text.js +25 -0
- package/lib/mark/annotation/text.js.map +1 -0
- package/lib/mark/geometry/area.d.ts +4 -0
- package/lib/mark/geometry/area.js +74 -0
- package/lib/mark/geometry/area.js.map +1 -0
- package/lib/mark/geometry/edge.d.ts +13 -0
- package/lib/mark/geometry/edge.js +35 -0
- package/lib/mark/geometry/edge.js.map +1 -0
- package/lib/mark/geometry/grid.d.ts +9 -0
- package/lib/mark/geometry/grid.js +50 -0
- package/lib/mark/geometry/grid.js.map +1 -0
- package/lib/mark/geometry/image.d.ts +4 -0
- package/lib/mark/geometry/image.js +38 -0
- package/lib/mark/geometry/image.js.map +1 -0
- package/lib/mark/geometry/index.d.ts +13 -0
- package/lib/mark/geometry/index.js +30 -0
- package/lib/mark/geometry/index.js.map +1 -0
- package/lib/mark/geometry/interval.d.ts +12 -0
- package/lib/mark/geometry/interval.js +63 -0
- package/lib/mark/geometry/interval.js.map +1 -0
- package/lib/mark/geometry/line.d.ts +7 -0
- package/lib/mark/geometry/line.js +80 -0
- package/lib/mark/geometry/line.js.map +1 -0
- package/lib/mark/geometry/link.d.ts +7 -0
- package/lib/mark/geometry/link.js +37 -0
- package/lib/mark/geometry/link.js.map +1 -0
- package/lib/mark/geometry/node.d.ts +8 -0
- package/lib/mark/geometry/node.js +31 -0
- package/lib/mark/geometry/node.js.map +1 -0
- package/lib/mark/geometry/point.d.ts +10 -0
- package/lib/mark/geometry/point.js +75 -0
- package/lib/mark/geometry/point.js.map +1 -0
- package/lib/mark/geometry/polygon.d.ts +7 -0
- package/lib/mark/geometry/polygon.js +47 -0
- package/lib/mark/geometry/polygon.js.map +1 -0
- package/lib/mark/geometry/schema.d.ts +34 -0
- package/lib/mark/geometry/schema.js +94 -0
- package/lib/mark/geometry/schema.js.map +1 -0
- package/lib/mark/geometry/text.d.ts +4 -0
- package/lib/mark/geometry/text.js +39 -0
- package/lib/mark/geometry/text.js.map +1 -0
- package/lib/mark/geometry/vector.d.ts +8 -0
- package/lib/mark/geometry/vector.js +47 -0
- package/lib/mark/geometry/vector.js.map +1 -0
- package/lib/mark/utils.d.ts +10 -0
- package/lib/mark/utils.js +38 -0
- package/lib/mark/utils.js.map +1 -0
- package/lib/palette/category10.d.ts +7 -0
- package/lib/palette/category10.js +23 -0
- package/lib/palette/category10.js.map +1 -0
- package/lib/palette/category20.d.ts +7 -0
- package/lib/palette/category20.js +33 -0
- package/lib/palette/category20.js.map +1 -0
- package/lib/palette/index.d.ts +2 -0
- package/lib/palette/index.js +8 -0
- package/lib/palette/index.js.map +1 -0
- package/lib/renderer/canvas.d.ts +10 -0
- package/lib/renderer/canvas.js +22 -0
- package/lib/renderer/canvas.js.map +1 -0
- package/lib/renderer/index.d.ts +1 -0
- package/lib/renderer/index.js +6 -0
- package/lib/renderer/index.js.map +1 -0
- package/lib/runtime/component.d.ts +5 -0
- package/lib/runtime/component.js +137 -0
- package/lib/runtime/component.js.map +1 -0
- package/lib/runtime/coordinate.d.ts +7 -0
- package/lib/runtime/coordinate.js +41 -0
- package/lib/runtime/coordinate.js.map +1 -0
- package/lib/runtime/index.d.ts +7 -0
- package/lib/runtime/index.js +26 -0
- package/lib/runtime/index.js.map +1 -0
- package/lib/runtime/layout.d.ts +5 -0
- package/lib/runtime/layout.js +120 -0
- package/lib/runtime/layout.js.map +1 -0
- package/lib/runtime/library.d.ts +3 -0
- package/lib/runtime/library.js +30 -0
- package/lib/runtime/library.js.map +1 -0
- package/lib/runtime/mark.d.ts +6 -0
- package/lib/runtime/mark.js +188 -0
- package/lib/runtime/mark.js.map +1 -0
- package/lib/runtime/plot.d.ts +3 -0
- package/lib/runtime/plot.js +558 -0
- package/lib/runtime/plot.js.map +1 -0
- package/lib/runtime/render.d.ts +2 -0
- package/lib/runtime/render.js +82 -0
- package/lib/runtime/render.js.map +1 -0
- package/lib/runtime/scale.d.ts +8 -0
- package/lib/runtime/scale.js +333 -0
- package/lib/runtime/scale.js.map +1 -0
- package/lib/runtime/types/common.d.ts +125 -0
- package/lib/runtime/types/common.js +3 -0
- package/lib/runtime/types/common.js.map +1 -0
- package/lib/runtime/types/component.d.ts +73 -0
- package/lib/runtime/types/component.js +3 -0
- package/lib/runtime/types/component.js.map +1 -0
- package/lib/runtime/types/encode.d.ts +21 -0
- package/lib/runtime/types/encode.js +3 -0
- package/lib/runtime/types/encode.js.map +1 -0
- package/lib/runtime/types/mark.d.ts +20 -0
- package/lib/runtime/types/mark.js +3 -0
- package/lib/runtime/types/mark.js.map +1 -0
- package/lib/runtime/types/options.d.ts +106 -0
- package/lib/runtime/types/options.js +3 -0
- package/lib/runtime/types/options.js.map +1 -0
- package/lib/runtime/types/transform.d.ts +23 -0
- package/lib/runtime/types/transform.js +3 -0
- package/lib/runtime/types/transform.js.map +1 -0
- package/lib/scale/band.d.ts +4 -0
- package/lib/scale/band.js +10 -0
- package/lib/scale/band.js.map +1 -0
- package/lib/scale/identity.d.ts +4 -0
- package/lib/scale/identity.js +10 -0
- package/lib/scale/identity.js.map +1 -0
- package/lib/scale/index.d.ts +11 -0
- package/lib/scale/index.js +26 -0
- package/lib/scale/index.js.map +1 -0
- package/lib/scale/linear.d.ts +4 -0
- package/lib/scale/linear.js +10 -0
- package/lib/scale/linear.js.map +1 -0
- package/lib/scale/log.d.ts +4 -0
- package/lib/scale/log.js +10 -0
- package/lib/scale/log.js.map +1 -0
- package/lib/scale/ordinal.d.ts +4 -0
- package/lib/scale/ordinal.js +10 -0
- package/lib/scale/ordinal.js.map +1 -0
- package/lib/scale/point.d.ts +4 -0
- package/lib/scale/point.js +10 -0
- package/lib/scale/point.js.map +1 -0
- package/lib/scale/pow.d.ts +4 -0
- package/lib/scale/pow.js +10 -0
- package/lib/scale/pow.js.map +1 -0
- package/lib/scale/quantile.d.ts +4 -0
- package/lib/scale/quantile.js +10 -0
- package/lib/scale/quantile.js.map +1 -0
- package/lib/scale/quantize.d.ts +4 -0
- package/lib/scale/quantize.js +10 -0
- package/lib/scale/quantize.js.map +1 -0
- package/lib/scale/threshold.d.ts +4 -0
- package/lib/scale/threshold.js +10 -0
- package/lib/scale/threshold.js.map +1 -0
- package/lib/scale/time.d.ts +4 -0
- package/lib/scale/time.js +10 -0
- package/lib/scale/time.js.map +1 -0
- package/lib/shape/annotation/badge.d.ts +14 -0
- package/lib/shape/annotation/badge.js +97 -0
- package/lib/shape/annotation/badge.js.map +1 -0
- package/lib/shape/annotation/connector.d.ts +15 -0
- package/lib/shape/annotation/connector.js +105 -0
- package/lib/shape/annotation/connector.js.map +1 -0
- package/lib/shape/annotation/line.d.ts +3 -0
- package/lib/shape/annotation/line.js +60 -0
- package/lib/shape/annotation/line.js.map +1 -0
- package/lib/shape/annotation/text.d.ts +20 -0
- package/lib/shape/annotation/text.js +166 -0
- package/lib/shape/annotation/text.js.map +1 -0
- package/lib/shape/area/area.d.ts +3 -0
- package/lib/shape/area/area.js +15 -0
- package/lib/shape/area/area.js.map +1 -0
- package/lib/shape/area/curveArea.d.ts +8 -0
- package/lib/shape/area/curveArea.js +64 -0
- package/lib/shape/area/curveArea.js.map +1 -0
- package/lib/shape/area/smoothArea.d.ts +5 -0
- package/lib/shape/area/smoothArea.js +27 -0
- package/lib/shape/area/smoothArea.js.map +1 -0
- package/lib/shape/edge/arc.d.ts +8 -0
- package/lib/shape/edge/arc.js +55 -0
- package/lib/shape/edge/arc.js.map +1 -0
- package/lib/shape/edge/edge.d.ts +6 -0
- package/lib/shape/edge/edge.js +15 -0
- package/lib/shape/edge/edge.js.map +1 -0
- package/lib/shape/edge/ribbon.d.ts +15 -0
- package/lib/shape/edge/ribbon.js +73 -0
- package/lib/shape/edge/ribbon.js.map +1 -0
- package/lib/shape/edge/smoothEdge.d.ts +6 -0
- package/lib/shape/edge/smoothEdge.js +43 -0
- package/lib/shape/edge/smoothEdge.js.map +1 -0
- package/lib/shape/edge/vhv.d.ts +12 -0
- package/lib/shape/edge/vhv.js +73 -0
- package/lib/shape/edge/vhv.js.map +1 -0
- package/lib/shape/image/image.d.ts +3 -0
- package/lib/shape/image/image.js +42 -0
- package/lib/shape/image/image.js.map +1 -0
- package/lib/shape/index.d.ts +48 -0
- package/lib/shape/index.js +101 -0
- package/lib/shape/index.js.map +1 -0
- package/lib/shape/interval/colorRect.d.ts +14 -0
- package/lib/shape/interval/colorRect.js +84 -0
- package/lib/shape/interval/colorRect.js.map +1 -0
- package/lib/shape/interval/funnel.d.ts +10 -0
- package/lib/shape/interval/funnel.js +47 -0
- package/lib/shape/interval/funnel.js.map +1 -0
- package/lib/shape/interval/hollowRect.d.ts +6 -0
- package/lib/shape/interval/hollowRect.js +13 -0
- package/lib/shape/interval/hollowRect.js.map +1 -0
- package/lib/shape/interval/pyramid.d.ts +6 -0
- package/lib/shape/interval/pyramid.js +42 -0
- package/lib/shape/interval/pyramid.js.map +1 -0
- package/lib/shape/interval/rect.d.ts +7 -0
- package/lib/shape/interval/rect.js +14 -0
- package/lib/shape/interval/rect.js.map +1 -0
- package/lib/shape/label/label.d.ts +7 -0
- package/lib/shape/label/label.js +33 -0
- package/lib/shape/label/label.js.map +1 -0
- package/lib/shape/line/curveLine.d.ts +8 -0
- package/lib/shape/line/curveLine.js +45 -0
- package/lib/shape/line/curveLine.js.map +1 -0
- package/lib/shape/line/hv.d.ts +3 -0
- package/lib/shape/line/hv.js +11 -0
- package/lib/shape/line/hv.js.map +1 -0
- package/lib/shape/line/hvh.d.ts +3 -0
- package/lib/shape/line/hvh.js +11 -0
- package/lib/shape/line/hvh.js.map +1 -0
- package/lib/shape/line/line.d.ts +3 -0
- package/lib/shape/line/line.js +11 -0
- package/lib/shape/line/line.js.map +1 -0
- package/lib/shape/line/smooth.d.ts +5 -0
- package/lib/shape/line/smooth.js +23 -0
- package/lib/shape/line/smooth.js.map +1 -0
- package/lib/shape/line/vh.d.ts +3 -0
- package/lib/shape/line/vh.js +11 -0
- package/lib/shape/line/vh.js.map +1 -0
- package/lib/shape/link/link.d.ts +13 -0
- package/lib/shape/link/link.js +53 -0
- package/lib/shape/link/link.js.map +1 -0
- package/lib/shape/node/point.d.ts +6 -0
- package/lib/shape/node/point.js +31 -0
- package/lib/shape/node/point.js.map +1 -0
- package/lib/shape/node/polygon.d.ts +3 -0
- package/lib/shape/node/polygon.js +12 -0
- package/lib/shape/node/polygon.js.map +1 -0
- package/lib/shape/point/bowtie.d.ts +6 -0
- package/lib/shape/point/bowtie.js +13 -0
- package/lib/shape/point/bowtie.js.map +1 -0
- package/lib/shape/point/colorPoint.d.ts +11 -0
- package/lib/shape/point/colorPoint.js +86 -0
- package/lib/shape/point/colorPoint.js.map +1 -0
- package/lib/shape/point/cross.d.ts +6 -0
- package/lib/shape/point/cross.js +13 -0
- package/lib/shape/point/cross.js.map +1 -0
- package/lib/shape/point/diamond.d.ts +6 -0
- package/lib/shape/point/diamond.js +13 -0
- package/lib/shape/point/diamond.js.map +1 -0
- package/lib/shape/point/hexagon.d.ts +6 -0
- package/lib/shape/point/hexagon.js +13 -0
- package/lib/shape/point/hexagon.js.map +1 -0
- package/lib/shape/point/hollowBowtie.d.ts +6 -0
- package/lib/shape/point/hollowBowtie.js +13 -0
- package/lib/shape/point/hollowBowtie.js.map +1 -0
- package/lib/shape/point/hollowDiamond.d.ts +6 -0
- package/lib/shape/point/hollowDiamond.js +13 -0
- package/lib/shape/point/hollowDiamond.js.map +1 -0
- package/lib/shape/point/hollowHexagon.d.ts +6 -0
- package/lib/shape/point/hollowHexagon.js +13 -0
- package/lib/shape/point/hollowHexagon.js.map +1 -0
- package/lib/shape/point/hollowPoint.d.ts +6 -0
- package/lib/shape/point/hollowPoint.js +13 -0
- package/lib/shape/point/hollowPoint.js.map +1 -0
- package/lib/shape/point/hollowSquare.d.ts +6 -0
- package/lib/shape/point/hollowSquare.js +13 -0
- package/lib/shape/point/hollowSquare.js.map +1 -0
- package/lib/shape/point/hollowTriangle.d.ts +6 -0
- package/lib/shape/point/hollowTriangle.js +13 -0
- package/lib/shape/point/hollowTriangle.js.map +1 -0
- package/lib/shape/point/hollowTriangleDown.d.ts +6 -0
- package/lib/shape/point/hollowTriangleDown.js +13 -0
- package/lib/shape/point/hollowTriangleDown.js.map +1 -0
- package/lib/shape/point/hyphen.d.ts +6 -0
- package/lib/shape/point/hyphen.js +13 -0
- package/lib/shape/point/hyphen.js.map +1 -0
- package/lib/shape/point/line.d.ts +6 -0
- package/lib/shape/point/line.js +13 -0
- package/lib/shape/point/line.js.map +1 -0
- package/lib/shape/point/plus.d.ts +6 -0
- package/lib/shape/point/plus.js +13 -0
- package/lib/shape/point/plus.js.map +1 -0
- package/lib/shape/point/point.d.ts +6 -0
- package/lib/shape/point/point.js +13 -0
- package/lib/shape/point/point.js.map +1 -0
- package/lib/shape/point/square.d.ts +6 -0
- package/lib/shape/point/square.js +13 -0
- package/lib/shape/point/square.js.map +1 -0
- package/lib/shape/point/symbol.d.ts +49 -0
- package/lib/shape/point/symbol.js +157 -0
- package/lib/shape/point/symbol.js.map +1 -0
- package/lib/shape/point/tick.d.ts +6 -0
- package/lib/shape/point/tick.js +13 -0
- package/lib/shape/point/tick.js.map +1 -0
- package/lib/shape/point/triangle.d.ts +6 -0
- package/lib/shape/point/triangle.js +13 -0
- package/lib/shape/point/triangle.js.map +1 -0
- package/lib/shape/point/triangleDown.d.ts +6 -0
- package/lib/shape/point/triangleDown.js +13 -0
- package/lib/shape/point/triangleDown.js.map +1 -0
- package/lib/shape/polygon/polygon.d.ts +3 -0
- package/lib/shape/polygon/polygon.js +71 -0
- package/lib/shape/polygon/polygon.js.map +1 -0
- package/lib/shape/schema/box.d.ts +3 -0
- package/lib/shape/schema/box.js +91 -0
- package/lib/shape/schema/box.js.map +1 -0
- package/lib/shape/text/text.d.ts +6 -0
- package/lib/shape/text/text.js +45 -0
- package/lib/shape/text/text.js.map +1 -0
- package/lib/shape/utils.d.ts +52 -0
- package/lib/shape/utils.js +75 -0
- package/lib/shape/utils.js.map +1 -0
- package/lib/shape/vector/vector.d.ts +13 -0
- package/lib/shape/vector/vector.js +52 -0
- package/lib/shape/vector/vector.js.map +1 -0
- package/lib/spec/action.d.ts +122 -0
- package/lib/spec/action.js +3 -0
- package/lib/spec/action.js.map +1 -0
- package/lib/spec/animate.d.ts +8 -0
- package/lib/spec/animate.js +3 -0
- package/lib/spec/animate.js.map +1 -0
- package/lib/spec/composition.d.ts +124 -0
- package/lib/spec/composition.js +3 -0
- package/lib/spec/composition.js.map +1 -0
- package/lib/spec/coordinate.d.ts +30 -0
- package/lib/spec/coordinate.js +3 -0
- package/lib/spec/coordinate.js.map +1 -0
- package/lib/spec/encode.d.ts +23 -0
- package/lib/spec/encode.js +3 -0
- package/lib/spec/encode.js.map +1 -0
- package/lib/spec/geometry.d.ts +60 -0
- package/lib/spec/geometry.js +3 -0
- package/lib/spec/geometry.js.map +1 -0
- package/lib/spec/index.d.ts +16 -0
- package/lib/spec/index.js +28 -0
- package/lib/spec/index.js.map +1 -0
- package/lib/spec/interaction.d.ts +66 -0
- package/lib/spec/interaction.js +3 -0
- package/lib/spec/interaction.js.map +1 -0
- package/lib/spec/palette.d.ts +13 -0
- package/lib/spec/palette.js +3 -0
- package/lib/spec/palette.js.map +1 -0
- package/lib/spec/scale.d.ts +27 -0
- package/lib/spec/scale.js +3 -0
- package/lib/spec/scale.js.map +1 -0
- package/lib/spec/statistic.d.ts +69 -0
- package/lib/spec/statistic.js +3 -0
- package/lib/spec/statistic.js.map +1 -0
- package/lib/spec/theme.d.ts +12 -0
- package/lib/spec/theme.js +3 -0
- package/lib/spec/theme.js.map +1 -0
- package/lib/spec/title.d.ts +2 -0
- package/lib/spec/title.js +3 -0
- package/lib/spec/title.js.map +1 -0
- package/lib/spec/transform.d.ts +177 -0
- package/lib/spec/transform.js +3 -0
- package/lib/spec/transform.js.map +1 -0
- package/lib/stdlib/index.d.ts +2 -0
- package/lib/stdlib/index.js +189 -0
- package/lib/stdlib/index.js.map +1 -0
- package/lib/theme/index.d.ts +1 -12
- package/lib/theme/index.js +3 -25
- package/lib/theme/index.js.map +1 -1
- package/lib/theme/light.d.ts +7 -0
- package/lib/theme/light.js +34 -0
- package/lib/theme/light.js.map +1 -0
- package/lib/transform/index.d.ts +36 -0
- package/lib/transform/index.js +79 -0
- package/lib/transform/index.js.map +1 -0
- package/lib/transform/inference/maybeArrayField.d.ts +8 -0
- package/lib/transform/inference/maybeArrayField.js +51 -0
- package/lib/transform/inference/maybeArrayField.js.map +1 -0
- package/lib/transform/inference/maybeKey.d.ts +9 -0
- package/lib/transform/inference/maybeKey.js +37 -0
- package/lib/transform/inference/maybeKey.js.map +1 -0
- package/lib/transform/inference/maybeSeries.d.ts +7 -0
- package/lib/transform/inference/maybeSeries.js +27 -0
- package/lib/transform/inference/maybeSeries.js.map +1 -0
- package/lib/transform/inference/maybeSize.d.ts +7 -0
- package/lib/transform/inference/maybeSize.js +18 -0
- package/lib/transform/inference/maybeSize.js.map +1 -0
- package/lib/transform/inference/maybeStackY.d.ts +9 -0
- package/lib/transform/inference/maybeStackY.js +36 -0
- package/lib/transform/inference/maybeStackY.js.map +1 -0
- package/lib/transform/inference/maybeTitleX.d.ts +7 -0
- package/lib/transform/inference/maybeTitleX.js +27 -0
- package/lib/transform/inference/maybeTitleX.js.map +1 -0
- package/lib/transform/inference/maybeTooltip.d.ts +9 -0
- package/lib/transform/inference/maybeTooltip.js +34 -0
- package/lib/transform/inference/maybeTooltip.js.map +1 -0
- package/lib/transform/inference/maybeTooltipPosition.d.ts +7 -0
- package/lib/transform/inference/maybeTooltipPosition.js +16 -0
- package/lib/transform/inference/maybeTooltipPosition.js.map +1 -0
- package/lib/transform/inference/maybeTooltipY.d.ts +7 -0
- package/lib/transform/inference/maybeTooltipY.js +16 -0
- package/lib/transform/inference/maybeTooltipY.js.map +1 -0
- package/lib/transform/inference/maybeZeroX.d.ts +7 -0
- package/lib/transform/inference/maybeZeroX.js +18 -0
- package/lib/transform/inference/maybeZeroX.js.map +1 -0
- package/lib/transform/inference/maybeZeroY.d.ts +7 -0
- package/lib/transform/inference/maybeZeroY.js +18 -0
- package/lib/transform/inference/maybeZeroY.js.map +1 -0
- package/lib/transform/inference/maybeZeroY1.d.ts +7 -0
- package/lib/transform/inference/maybeZeroY1.js +18 -0
- package/lib/transform/inference/maybeZeroY1.js.map +1 -0
- package/lib/transform/preprocessor/arc.d.ts +7 -0
- package/lib/transform/preprocessor/arc.js +20 -0
- package/lib/transform/preprocessor/arc.js.map +1 -0
- package/lib/transform/preprocessor/cluster.d.ts +5 -0
- package/lib/transform/preprocessor/cluster.js +44 -0
- package/lib/transform/preprocessor/cluster.js.map +1 -0
- package/lib/transform/preprocessor/connector.d.ts +7 -0
- package/lib/transform/preprocessor/connector.js +20 -0
- package/lib/transform/preprocessor/connector.js.map +1 -0
- package/lib/transform/preprocessor/fetch.d.ts +8 -0
- package/lib/transform/preprocessor/fetch.js +40 -0
- package/lib/transform/preprocessor/fetch.js.map +1 -0
- package/lib/transform/preprocessor/filterBy.d.ts +8 -0
- package/lib/transform/preprocessor/filterBy.js +22 -0
- package/lib/transform/preprocessor/filterBy.js.map +1 -0
- package/lib/transform/preprocessor/fold.d.ts +8 -0
- package/lib/transform/preprocessor/fold.js +32 -0
- package/lib/transform/preprocessor/fold.js.map +1 -0
- package/lib/transform/preprocessor/pick.d.ts +7 -0
- package/lib/transform/preprocessor/pick.js +16 -0
- package/lib/transform/preprocessor/pick.js.map +1 -0
- package/lib/transform/preprocessor/rename.d.ts +8 -0
- package/lib/transform/preprocessor/rename.js +25 -0
- package/lib/transform/preprocessor/rename.js.map +1 -0
- package/lib/transform/preprocessor/sankey.d.ts +8 -0
- package/lib/transform/preprocessor/sankey.js +84 -0
- package/lib/transform/preprocessor/sankey.js.map +1 -0
- package/lib/transform/preprocessor/sortBy.d.ts +7 -0
- package/lib/transform/preprocessor/sortBy.js +23 -0
- package/lib/transform/preprocessor/sortBy.js.map +1 -0
- package/lib/transform/preprocessor/subset.d.ts +7 -0
- package/lib/transform/preprocessor/subset.js +35 -0
- package/lib/transform/preprocessor/subset.js.map +1 -0
- package/lib/transform/preprocessor/tree.d.ts +4 -0
- package/lib/transform/preprocessor/tree.js +10 -0
- package/lib/transform/preprocessor/tree.js.map +1 -0
- package/lib/transform/preprocessor/voronoi.d.ts +4 -0
- package/lib/transform/preprocessor/voronoi.js +24 -0
- package/lib/transform/preprocessor/voronoi.js.map +1 -0
- package/lib/transform/preprocessor/wordCloud.d.ts +6 -0
- package/lib/transform/preprocessor/wordCloud.js +112 -0
- package/lib/transform/preprocessor/wordCloud.js.map +1 -0
- package/lib/transform/statistic/Select.d.ts +9 -0
- package/lib/transform/statistic/Select.js +62 -0
- package/lib/transform/statistic/Select.js.map +1 -0
- package/lib/transform/statistic/SelectX.d.ts +7 -0
- package/lib/transform/statistic/SelectX.js +27 -0
- package/lib/transform/statistic/SelectX.js.map +1 -0
- package/lib/transform/statistic/SelectY.d.ts +7 -0
- package/lib/transform/statistic/SelectY.js +27 -0
- package/lib/transform/statistic/SelectY.js.map +1 -0
- package/lib/transform/statistic/dodgeX.d.ts +9 -0
- package/lib/transform/statistic/dodgeX.js +60 -0
- package/lib/transform/statistic/dodgeX.js.map +1 -0
- package/lib/transform/statistic/groupX.d.ts +8 -0
- package/lib/transform/statistic/groupX.js +89 -0
- package/lib/transform/statistic/groupX.js.map +1 -0
- package/lib/transform/statistic/jitter.d.ts +9 -0
- package/lib/transform/statistic/jitter.js +45 -0
- package/lib/transform/statistic/jitter.js.map +1 -0
- package/lib/transform/statistic/jitterY.d.ts +8 -0
- package/lib/transform/statistic/jitterY.js +31 -0
- package/lib/transform/statistic/jitterY.js.map +1 -0
- package/lib/transform/statistic/normalizeY.d.ts +9 -0
- package/lib/transform/statistic/normalizeY.js +74 -0
- package/lib/transform/statistic/normalizeY.js.map +1 -0
- package/lib/transform/statistic/stackEnter.d.ts +13 -0
- package/lib/transform/statistic/stackEnter.js +63 -0
- package/lib/transform/statistic/stackEnter.js.map +1 -0
- package/lib/transform/statistic/stackY.d.ts +9 -0
- package/lib/transform/statistic/stackY.js +59 -0
- package/lib/transform/statistic/stackY.js.map +1 -0
- package/lib/transform/statistic/symmetryY.d.ts +8 -0
- package/lib/transform/statistic/symmetryY.js +65 -0
- package/lib/transform/statistic/symmetryY.js.map +1 -0
- package/lib/transform/statistic/utils.d.ts +9 -0
- package/lib/transform/statistic/utils.js +77 -0
- package/lib/transform/statistic/utils.js.map +1 -0
- package/lib/transform/utils/arc/arc.d.ts +8 -0
- package/lib/transform/utils/arc/arc.js +188 -0
- package/lib/transform/utils/arc/arc.js.map +1 -0
- package/lib/transform/utils/arc/index.d.ts +2 -0
- package/lib/transform/utils/arc/index.js +6 -0
- package/lib/transform/utils/arc/index.js.map +1 -0
- package/lib/transform/utils/arc/sort.d.ts +4 -0
- package/lib/transform/utils/arc/sort.js +20 -0
- package/lib/transform/utils/arc/sort.js.map +1 -0
- package/lib/transform/utils/arc/types.d.ts +26 -0
- package/lib/transform/utils/arc/types.js +3 -0
- package/lib/transform/utils/arc/types.js.map +1 -0
- package/lib/transform/utils/d3-cloud/index.d.ts +1 -0
- package/lib/transform/utils/d3-cloud/index.js +399 -0
- package/lib/transform/utils/d3-cloud/index.js.map +1 -0
- package/lib/transform/utils/d3-sankey/align.d.ts +4 -0
- package/lib/transform/utils/d3-sankey/align.js +28 -0
- package/lib/transform/utils/d3-sankey/align.js.map +1 -0
- package/lib/transform/utils/d3-sankey/constant.d.ts +1 -0
- package/lib/transform/utils/d3-sankey/constant.js +10 -0
- package/lib/transform/utils/d3-sankey/constant.js.map +1 -0
- package/lib/transform/utils/d3-sankey/index.d.ts +12 -0
- package/lib/transform/utils/d3-sankey/index.js +20 -0
- package/lib/transform/utils/d3-sankey/index.js.map +1 -0
- package/lib/transform/utils/d3-sankey/sankey.d.ts +24 -0
- package/lib/transform/utils/d3-sankey/sankey.js +392 -0
- package/lib/transform/utils/d3-sankey/sankey.js.map +1 -0
- package/lib/transform/utils/flow.d.ts +9 -0
- package/lib/transform/utils/flow.js +49 -0
- package/lib/transform/utils/flow.js.map +1 -0
- package/lib/transform/utils/helper.d.ts +14 -0
- package/lib/transform/utils/helper.js +48 -0
- package/lib/transform/utils/helper.js.map +1 -0
- package/lib/transform/utils/memo.d.ts +17 -0
- package/lib/transform/utils/memo.js +85 -0
- package/lib/transform/utils/memo.js.map +1 -0
- package/lib/utils/array.d.ts +14 -0
- package/lib/utils/array.js +52 -0
- package/lib/utils/array.js.map +1 -0
- package/lib/utils/container.d.ts +8 -0
- package/lib/utils/container.js +19 -0
- package/lib/utils/container.js.map +1 -0
- package/lib/utils/coordinate.d.ts +5 -0
- package/lib/utils/coordinate.js +27 -0
- package/lib/utils/coordinate.js.map +1 -0
- package/lib/utils/helper.d.ts +17 -0
- package/lib/utils/helper.js +76 -0
- package/lib/utils/helper.js.map +1 -0
- package/lib/utils/selection.d.ts +64 -0
- package/lib/utils/selection.js +290 -0
- package/lib/utils/selection.js.map +1 -0
- package/lib/utils/vector.d.ts +13 -0
- package/lib/utils/vector.js +51 -0
- package/lib/utils/vector.js.map +1 -0
- package/package.json +85 -120
- package/src/adjust/index.ts +1 -0
- package/src/adjust/pack.ts +67 -0
- package/src/animation/fadeIn.ts +30 -0
- package/src/animation/fadeOut.ts +26 -0
- package/src/animation/index.ts +7 -0
- package/src/animation/morphing.ts +212 -0
- package/src/animation/scaleInX.ts +60 -0
- package/src/animation/scaleInY.ts +60 -0
- package/src/animation/scaleOutX.ts +60 -0
- package/src/animation/scaleOutY.ts +60 -0
- package/src/animation/utils.ts +26 -0
- package/src/api/chart.ts +124 -0
- package/src/api/composition/circle.ts +43 -0
- package/src/api/composition/flex.ts +30 -0
- package/src/api/composition/index.ts +39 -0
- package/src/api/composition/keyframe.ts +30 -0
- package/src/api/composition/layer.ts +24 -0
- package/src/api/composition/matrix.ts +43 -0
- package/src/api/composition/rect.ts +47 -0
- package/src/api/composition/view.ts +42 -0
- package/src/api/index.ts +1 -0
- package/src/api/mark/index.ts +62 -0
- package/src/api/mark/mark.ts +249 -0
- package/src/api/mark/types.ts +22 -0
- package/src/api/node.ts +79 -0
- package/src/api/props.ts +86 -0
- package/src/api/types.ts +20 -0
- package/src/component/axis.ts +391 -0
- package/src/component/axisX.ts +16 -0
- package/src/component/axisY.ts +16 -0
- package/src/component/index.ts +5 -0
- package/src/component/legendCategory.ts +99 -0
- package/src/component/legendContinuous.ts +54 -0
- package/src/component/title.ts +76 -0
- package/src/component/utils.ts +38 -0
- package/src/composition/circle.ts +102 -0
- package/src/composition/flex.ts +47 -0
- package/src/composition/index.ts +8 -0
- package/src/composition/keyframe.ts +90 -0
- package/src/composition/layer.ts +25 -0
- package/src/composition/mark.ts +52 -0
- package/src/composition/matrix.ts +170 -0
- package/src/composition/rect.ts +340 -0
- package/src/composition/utils.ts +17 -0
- package/src/composition/view.ts +27 -0
- package/src/coordinate/cartesian.ts +11 -0
- package/src/coordinate/fisheye.ts +16 -0
- package/src/coordinate/index.ts +5 -0
- package/src/coordinate/parallel.ts +11 -0
- package/src/coordinate/polar.ts +22 -0
- package/src/coordinate/transpose.ts +16 -0
- package/src/encode/column.ts +13 -0
- package/src/encode/constant.ts +13 -0
- package/src/encode/field.ts +13 -0
- package/src/encode/index.ts +4 -0
- package/src/encode/transform.ts +15 -0
- package/src/index.ts +4 -738
- package/src/interaction/action/index.ts +47 -2
- package/src/interaction/action/service/elementSelection.ts +125 -0
- package/src/interaction/action/service/fisheyeFocus.ts +62 -0
- package/src/interaction/action/service/legendItemSelection.ts +34 -0
- package/src/interaction/action/service/recordCurrentPoint.ts +22 -0
- package/src/interaction/action/service/recordPoint.ts +35 -0
- package/src/interaction/action/service/recordRegion.ts +41 -0
- package/src/interaction/action/service/recordState.ts +15 -0
- package/src/interaction/action/service/recordTip.ts +20 -0
- package/src/interaction/action/service/surfacePointSelection.ts +28 -0
- package/src/interaction/action/service/triggerInfoSelection.ts +33 -0
- package/src/interaction/action/transformer/activeElement.ts +32 -0
- package/src/interaction/action/transformer/activeRegion.ts +73 -0
- package/src/interaction/action/transformer/button.ts +113 -0
- package/src/interaction/action/transformer/cursor.ts +21 -0
- package/src/interaction/action/transformer/filter.ts +53 -0
- package/src/interaction/action/transformer/filterElement.ts +54 -0
- package/src/interaction/action/transformer/highlightElement.ts +61 -0
- package/src/interaction/action/transformer/mask.ts +115 -0
- package/src/interaction/action/transformer/move.ts +76 -0
- package/src/interaction/action/transformer/plot.ts +15 -0
- package/src/interaction/action/transformer/poptip.ts +51 -0
- package/src/interaction/action/transformer/setItemState.ts +39 -0
- package/src/interaction/action/transformer/tooltip.ts +404 -0
- package/src/interaction/builtin/activeRegion.ts +25 -0
- package/src/interaction/builtin/brush.ts +99 -0
- package/src/interaction/builtin/brushHighlight.ts +122 -0
- package/src/interaction/builtin/brushVisible.ts +69 -0
- package/src/interaction/builtin/elementActive.ts +32 -0
- package/src/interaction/builtin/elementHighlight.ts +31 -0
- package/src/interaction/builtin/elementHighlightByColor.ts +35 -0
- package/src/interaction/builtin/elementHighlightByX.ts +35 -0
- package/src/interaction/builtin/elementListHighlight.ts +39 -0
- package/src/interaction/builtin/elementSelected.ts +25 -0
- package/src/interaction/builtin/ellipsisText.ts +24 -0
- package/src/interaction/builtin/fisheye.ts +25 -0
- package/src/interaction/builtin/legendActive.ts +37 -0
- package/src/interaction/builtin/legendHighlight.ts +37 -0
- package/src/interaction/builtin/tooltip.ts +33 -0
- package/src/interaction/create.ts +153 -0
- package/src/interaction/index.ts +18 -48
- package/src/interaction/interactor/index.ts +2 -0
- package/src/interaction/interactor/mousePosition.ts +13 -0
- package/src/interaction/interactor/touchPosition.ts +13 -0
- package/src/interaction/stdlib.ts +57 -0
- package/src/interaction/types.ts +80 -0
- package/src/interaction/utils.ts +65 -0
- package/src/mark/annotation/connector.ts +27 -0
- package/src/mark/annotation/index.ts +25 -0
- package/src/mark/annotation/lineX.ts +31 -0
- package/src/mark/annotation/lineY.ts +31 -0
- package/src/mark/annotation/range.ts +55 -0
- package/src/mark/annotation/rangeX.ts +23 -0
- package/src/mark/annotation/rangeY.ts +23 -0
- package/src/mark/annotation/text.ts +30 -0
- package/src/mark/geometry/area.ts +85 -0
- package/src/mark/geometry/edge.ts +40 -0
- package/src/mark/geometry/grid.ts +56 -0
- package/src/mark/geometry/image.ts +41 -0
- package/src/mark/geometry/index.ts +13 -0
- package/src/mark/geometry/interval.ts +71 -0
- package/src/mark/geometry/line.ts +94 -0
- package/src/mark/geometry/link.ts +44 -0
- package/src/mark/geometry/node.ts +36 -0
- package/src/mark/geometry/point.ts +80 -0
- package/src/mark/geometry/polygon.ts +54 -0
- package/src/mark/geometry/schema.ts +105 -0
- package/src/mark/geometry/text.ts +43 -0
- package/src/mark/geometry/vector.ts +56 -0
- package/src/mark/utils.ts +35 -0
- package/src/palette/category10.ts +24 -0
- package/src/palette/category20.ts +34 -0
- package/src/palette/index.ts +2 -0
- package/src/renderer/canvas.ts +27 -0
- package/src/renderer/index.ts +1 -0
- package/src/runtime/component.ts +189 -0
- package/src/runtime/coordinate.ts +51 -0
- package/src/runtime/index.ts +7 -0
- package/src/runtime/layout.ts +180 -0
- package/src/runtime/library.ts +27 -0
- package/src/runtime/mark.ts +262 -0
- package/src/runtime/plot.ts +832 -0
- package/src/runtime/render.ts +81 -0
- package/src/runtime/scale.ts +443 -0
- package/src/runtime/types/common.ts +155 -0
- package/src/runtime/types/component.ts +213 -0
- package/src/runtime/types/encode.ts +32 -0
- package/src/runtime/types/mark.ts +31 -0
- package/src/runtime/types/options.ts +159 -0
- package/src/runtime/types/transform.ts +34 -0
- package/src/scale/band.ts +11 -0
- package/src/scale/identity.ts +11 -0
- package/src/scale/index.ts +11 -0
- package/src/scale/linear.ts +11 -0
- package/src/scale/log.ts +11 -0
- package/src/scale/ordinal.ts +11 -0
- package/src/scale/point.ts +12 -0
- package/src/scale/pow.ts +11 -0
- package/src/scale/quantile.ts +11 -0
- package/src/scale/quantize.ts +11 -0
- package/src/scale/threshold.ts +11 -0
- package/src/scale/time.ts +11 -0
- package/src/shape/annotation/badge.ts +114 -0
- package/src/shape/annotation/connector.ts +138 -0
- package/src/shape/annotation/line.ts +55 -0
- package/src/shape/annotation/text.ts +224 -0
- package/src/shape/area/area.ts +17 -0
- package/src/shape/area/curveArea.ts +61 -0
- package/src/shape/area/smoothArea.ts +25 -0
- package/src/shape/edge/arc.ts +46 -0
- package/src/shape/edge/edge.ts +15 -0
- package/src/shape/edge/ribbon.ts +93 -0
- package/src/shape/edge/smoothEdge.ts +41 -0
- package/src/shape/edge/vhv.ts +85 -0
- package/src/shape/image/image.ts +33 -0
- package/src/shape/index.ts +66 -0
- package/src/shape/interval/colorRect.ts +81 -0
- package/src/shape/interval/funnel.ts +58 -0
- package/src/shape/interval/hollowRect.ts +15 -0
- package/src/shape/interval/pyramid.ts +50 -0
- package/src/shape/interval/rect.ts +16 -0
- package/src/shape/label/label.ts +33 -0
- package/src/shape/line/curveLine.ts +44 -0
- package/src/shape/line/hv.ts +13 -0
- package/src/shape/line/hvh.ts +13 -0
- package/src/shape/line/line.ts +13 -0
- package/src/shape/line/smooth.ts +16 -0
- package/src/shape/line/vh.ts +13 -0
- package/src/shape/link/link.ts +51 -0
- package/src/shape/node/point.ts +32 -0
- package/src/shape/node/polygon.ts +12 -0
- package/src/shape/point/bowtie.ts +15 -0
- package/src/shape/point/colorPoint.ts +65 -0
- package/src/shape/point/cross.ts +15 -0
- package/src/shape/point/diamond.ts +15 -0
- package/src/shape/point/hexagon.ts +15 -0
- package/src/shape/point/hollowBowtie.ts +15 -0
- package/src/shape/point/hollowDiamond.ts +19 -0
- package/src/shape/point/hollowHexagon.ts +19 -0
- package/src/shape/point/hollowPoint.ts +15 -0
- package/src/shape/point/hollowSquare.ts +15 -0
- package/src/shape/point/hollowTriangle.ts +19 -0
- package/src/shape/point/hollowTriangleDown.ts +19 -0
- package/src/shape/point/hyphen.ts +15 -0
- package/src/shape/point/line.ts +15 -0
- package/src/shape/point/plus.ts +15 -0
- package/src/shape/point/point.ts +15 -0
- package/src/shape/point/square.ts +15 -0
- package/src/shape/point/symbol.ts +153 -0
- package/src/shape/point/tick.ts +15 -0
- package/src/shape/point/triangle.ts +15 -0
- package/src/shape/point/triangleDown.ts +19 -0
- package/src/shape/polygon/polygon.ts +67 -0
- package/src/shape/schema/box.ts +96 -0
- package/src/shape/text/text.ts +43 -0
- package/src/shape/utils.ts +129 -0
- package/src/shape/vector/vector.ts +51 -0
- package/src/spec/action.ts +196 -0
- package/src/spec/animate.ts +16 -0
- package/src/spec/composition.ts +142 -0
- package/src/spec/coordinate.ts +49 -0
- package/src/spec/encode.ts +46 -0
- package/src/spec/geometry.ts +167 -0
- package/src/spec/index.ts +18 -0
- package/src/spec/interaction.ts +115 -0
- package/src/spec/palette.ts +18 -0
- package/src/spec/scale.ts +78 -0
- package/src/spec/statistic.ts +135 -0
- package/src/spec/theme.ts +20 -0
- package/src/spec/title.ts +3 -0
- package/src/spec/transform.ts +223 -0
- package/src/stdlib/index.ts +345 -0
- package/src/theme/index.ts +1 -28
- package/src/theme/light.ts +34 -0
- package/src/transform/index.ts +47 -0
- package/src/transform/inference/maybeArrayField.ts +55 -0
- package/src/transform/inference/maybeKey.ts +29 -0
- package/src/transform/inference/maybeSeries.ts +26 -0
- package/src/transform/inference/maybeSize.ts +18 -0
- package/src/transform/inference/maybeStackY.ts +38 -0
- package/src/transform/inference/maybeTitleX.ts +26 -0
- package/src/transform/inference/maybeTooltip.ts +35 -0
- package/src/transform/inference/maybeTooltipPosition.ts +16 -0
- package/src/transform/inference/maybeTooltipY.ts +16 -0
- package/src/transform/inference/maybeZeroX.ts +18 -0
- package/src/transform/inference/maybeZeroY.ts +18 -0
- package/src/transform/inference/maybeZeroY1.ts +18 -0
- package/src/transform/preprocessor/arc.ts +21 -0
- package/src/transform/preprocessor/cluster.ts +56 -0
- package/src/transform/preprocessor/connector.ts +22 -0
- package/src/transform/preprocessor/fetch.ts +32 -0
- package/src/transform/preprocessor/filterBy.ts +24 -0
- package/src/transform/preprocessor/fold.ts +32 -0
- package/src/transform/preprocessor/pick.ts +17 -0
- package/src/transform/preprocessor/rename.ts +29 -0
- package/src/transform/preprocessor/sankey.ts +105 -0
- package/src/transform/preprocessor/sortBy.ts +28 -0
- package/src/transform/preprocessor/subset.ts +40 -0
- package/src/transform/preprocessor/tree.ts +12 -0
- package/src/transform/preprocessor/voronoi.ts +30 -0
- package/src/transform/preprocessor/wordCloud.ts +115 -0
- package/src/transform/statistic/dodgeX.ts +56 -0
- package/src/transform/statistic/groupX.ts +91 -0
- package/src/transform/statistic/jitter.ts +49 -0
- package/src/transform/statistic/jitterY.ts +32 -0
- package/src/transform/statistic/normalizeY.ts +69 -0
- package/src/transform/statistic/select.ts +58 -0
- package/src/transform/statistic/selectX.ts +17 -0
- package/src/transform/statistic/selectY.ts +17 -0
- package/src/transform/statistic/stackEnter.ts +65 -0
- package/src/transform/statistic/stackY.ts +58 -0
- package/src/transform/statistic/symmetryY.ts +59 -0
- package/src/transform/statistic/utils.ts +120 -0
- package/src/transform/utils/arc/arc.ts +210 -0
- package/src/transform/utils/arc/index.ts +2 -0
- package/src/transform/utils/arc/sort.ts +15 -0
- package/src/transform/utils/arc/types.ts +27 -0
- package/src/transform/utils/d3-cloud/index.ts +499 -0
- package/src/transform/utils/d3-sankey/align.ts +25 -0
- package/src/transform/utils/d3-sankey/constant.ts +5 -0
- package/src/transform/utils/d3-sankey/index.ts +12 -0
- package/src/transform/utils/d3-sankey/sankey.ts +436 -0
- package/src/transform/utils/flow.ts +36 -0
- package/src/transform/utils/helper.ts +54 -0
- package/src/transform/utils/memo.ts +79 -0
- package/src/utils/array.ts +50 -0
- package/src/utils/container.ts +21 -0
- package/src/utils/coordinate.ts +24 -0
- package/src/utils/helper.ts +69 -0
- package/src/utils/selection.ts +403 -0
- package/src/utils/vector.ts +47 -0
- package/dist/g2.min.js.map +0 -1
- package/esm/animate/animation/fade.d.ts +0 -21
- package/esm/animate/animation/fade.js +0 -42
- package/esm/animate/animation/fade.js.map +0 -1
- package/esm/animate/animation/grow-in.d.ts +0 -30
- package/esm/animate/animation/grow-in.js +0 -38
- package/esm/animate/animation/grow-in.js.map +0 -1
- package/esm/animate/animation/index.d.ts +0 -16
- package/esm/animate/animation/index.js +0 -17
- package/esm/animate/animation/index.js.map +0 -1
- package/esm/animate/animation/path-in.d.ts +0 -12
- package/esm/animate/animation/path-in.js +0 -21
- package/esm/animate/animation/path-in.js.map +0 -1
- package/esm/animate/animation/position-update.d.ts +0 -11
- package/esm/animate/animation/position-update.js +0 -24
- package/esm/animate/animation/position-update.js.map +0 -1
- package/esm/animate/animation/scale-in.d.ts +0 -19
- package/esm/animate/animation/scale-in.js +0 -60
- package/esm/animate/animation/scale-in.js.map +0 -1
- package/esm/animate/animation/sector-path-update.d.ts +0 -27
- package/esm/animate/animation/sector-path-update.js +0 -131
- package/esm/animate/animation/sector-path-update.js.map +0 -1
- package/esm/animate/animation/util.d.ts +0 -19
- package/esm/animate/animation/util.js +0 -89
- package/esm/animate/animation/util.js.map +0 -1
- package/esm/animate/animation/wave-in.d.ts +0 -13
- package/esm/animate/animation/wave-in.js +0 -30
- package/esm/animate/animation/wave-in.js.map +0 -1
- package/esm/animate/animation/zoom.d.ts +0 -21
- package/esm/animate/animation/zoom.js +0 -66
- package/esm/animate/animation/zoom.js.map +0 -1
- package/esm/animate/index.d.ts +0 -48
- package/esm/animate/index.js +0 -249
- package/esm/animate/index.js.map +0 -1
- package/esm/animate/interface.d.ts +0 -18
- package/esm/animate/interface.js +0 -2
- package/esm/animate/interface.js.map +0 -1
- package/esm/api.d.ts +0 -2
- package/esm/api.js +0 -3
- package/esm/api.js.map +0 -1
- package/esm/base.d.ts +0 -33
- package/esm/base.js +0 -55
- package/esm/base.js.map +0 -1
- package/esm/chart/chart.d.ts +0 -61
- package/esm/chart/chart.js +0 -157
- package/esm/chart/chart.js.map +0 -1
- package/esm/chart/controller/annotation.d.ts +0 -162
- package/esm/chart/controller/annotation.js +0 -591
- package/esm/chart/controller/annotation.js.map +0 -1
- package/esm/chart/controller/axis.d.ts +0 -93
- package/esm/chart/controller/axis.js +0 -578
- package/esm/chart/controller/axis.js.map +0 -1
- package/esm/chart/controller/base.d.ts +0 -64
- package/esm/chart/controller/base.js +0 -62
- package/esm/chart/controller/base.js.map +0 -1
- package/esm/chart/controller/coordinate.d.ts +0 -74
- package/esm/chart/controller/coordinate.js +0 -145
- package/esm/chart/controller/coordinate.js.map +0 -1
- package/esm/chart/controller/gesture.d.ts +0 -37
- package/esm/chart/controller/gesture.js +0 -258
- package/esm/chart/controller/gesture.js.map +0 -1
- package/esm/chart/controller/index.d.ts +0 -25
- package/esm/chart/controller/index.js +0 -34
- package/esm/chart/controller/index.js.map +0 -1
- package/esm/chart/controller/legend.d.ts +0 -106
- package/esm/chart/controller/legend.js +0 -484
- package/esm/chart/controller/legend.js.map +0 -1
- package/esm/chart/controller/scrollbar.d.ts +0 -64
- package/esm/chart/controller/scrollbar.js +0 -316
- package/esm/chart/controller/scrollbar.js.map +0 -1
- package/esm/chart/controller/slider.d.ts +0 -88
- package/esm/chart/controller/slider.js +0 -296
- package/esm/chart/controller/slider.js.map +0 -1
- package/esm/chart/controller/tooltip.d.ts +0 -68
- package/esm/chart/controller/tooltip.js +0 -692
- package/esm/chart/controller/tooltip.js.map +0 -1
- package/esm/chart/event.d.ts +0 -47
- package/esm/chart/event.js +0 -91
- package/esm/chart/event.js.map +0 -1
- package/esm/chart/index.d.ts +0 -4
- package/esm/chart/index.js +0 -5
- package/esm/chart/index.js.map +0 -1
- package/esm/chart/layout/auto.d.ts +0 -8
- package/esm/chart/layout/auto.js +0 -64
- package/esm/chart/layout/auto.js.map +0 -1
- package/esm/chart/layout/constraint/bounds.d.ts +0 -32
- package/esm/chart/layout/constraint/bounds.js +0 -30
- package/esm/chart/layout/constraint/bounds.js.map +0 -1
- package/esm/chart/layout/constraint/constraint.d.ts +0 -31
- package/esm/chart/layout/constraint/constraint.js +0 -82
- package/esm/chart/layout/constraint/constraint.js.map +0 -1
- package/esm/chart/layout/constraint/gauss.d.ts +0 -11
- package/esm/chart/layout/constraint/gauss.js +0 -63
- package/esm/chart/layout/constraint/gauss.js.map +0 -1
- package/esm/chart/layout/constraint/index.d.ts +0 -5
- package/esm/chart/layout/constraint/index.js +0 -30
- package/esm/chart/layout/constraint/index.js.map +0 -1
- package/esm/chart/layout/constraint/solver.d.ts +0 -40
- package/esm/chart/layout/constraint/solver.js +0 -78
- package/esm/chart/layout/constraint/solver.js.map +0 -1
- package/esm/chart/layout/constraint/types.d.ts +0 -21
- package/esm/chart/layout/constraint/types.js +0 -13
- package/esm/chart/layout/constraint/types.js.map +0 -1
- package/esm/chart/layout/constraint/variable.d.ts +0 -24
- package/esm/chart/layout/constraint/variable.js +0 -28
- package/esm/chart/layout/constraint/variable.js.map +0 -1
- package/esm/chart/layout/index.d.ts +0 -15
- package/esm/chart/layout/index.js +0 -26
- package/esm/chart/layout/index.js.map +0 -1
- package/esm/chart/layout/padding-cal.d.ts +0 -53
- package/esm/chart/layout/padding-cal.js +0 -108
- package/esm/chart/layout/padding-cal.js.map +0 -1
- package/esm/chart/util/scale-pool.d.ts +0 -57
- package/esm/chart/util/scale-pool.js +0 -212
- package/esm/chart/util/scale-pool.js.map +0 -1
- package/esm/chart/util/sync-view-padding.d.ts +0 -9
- package/esm/chart/util/sync-view-padding.js +0 -14
- package/esm/chart/util/sync-view-padding.js.map +0 -1
- package/esm/chart/view.d.ts +0 -747
- package/esm/chart/view.js +0 -1636
- package/esm/chart/view.js.map +0 -1
- package/esm/component/labels.d.ts +0 -46
- package/esm/component/labels.js +0 -305
- package/esm/component/labels.js.map +0 -1
- package/esm/component/update-label.d.ts +0 -21
- package/esm/component/update-label.js +0 -57
- package/esm/component/update-label.js.map +0 -1
- package/esm/constant.d.ts +0 -124
- package/esm/constant.js +0 -136
- package/esm/constant.js.map +0 -1
- package/esm/core.d.ts +0 -46
- package/esm/core.js +0 -60
- package/esm/core.js.map +0 -1
- package/esm/dependents.d.ts +0 -21
- package/esm/dependents.js +0 -33
- package/esm/dependents.js.map +0 -1
- package/esm/engine/index.d.ts +0 -13
- package/esm/engine/index.js +0 -22
- package/esm/engine/index.js.map +0 -1
- package/esm/facet/circle.d.ts +0 -36
- package/esm/facet/circle.js +0 -119
- package/esm/facet/circle.js.map +0 -1
- package/esm/facet/facet.d.ts +0 -165
- package/esm/facet/facet.js +0 -292
- package/esm/facet/facet.js.map +0 -1
- package/esm/facet/index.d.ts +0 -13
- package/esm/facet/index.js +0 -22
- package/esm/facet/index.js.map +0 -1
- package/esm/facet/list.d.ts +0 -46
- package/esm/facet/list.js +0 -134
- package/esm/facet/list.js.map +0 -1
- package/esm/facet/matrix.d.ts +0 -34
- package/esm/facet/matrix.js +0 -119
- package/esm/facet/matrix.js.map +0 -1
- package/esm/facet/mirror.d.ts +0 -31
- package/esm/facet/mirror.js +0 -144
- package/esm/facet/mirror.js.map +0 -1
- package/esm/facet/rect.d.ts +0 -35
- package/esm/facet/rect.js +0 -141
- package/esm/facet/rect.js.map +0 -1
- package/esm/facet/tree.d.ts +0 -40
- package/esm/facet/tree.js +0 -298
- package/esm/facet/tree.js.map +0 -1
- package/esm/geometry/area.d.ts +0 -46
- package/esm/geometry/area.js +0 -62
- package/esm/geometry/area.js.map +0 -1
- package/esm/geometry/base.d.ts +0 -796
- package/esm/geometry/base.js +0 -1556
- package/esm/geometry/base.js.map +0 -1
- package/esm/geometry/edge.d.ts +0 -15
- package/esm/geometry/edge.js +0 -24
- package/esm/geometry/edge.js.map +0 -1
- package/esm/geometry/element/index.d.ts +0 -127
- package/esm/geometry/element/index.js +0 -438
- package/esm/geometry/element/index.js.map +0 -1
- package/esm/geometry/heatmap.d.ts +0 -31
- package/esm/geometry/heatmap.js +0 -200
- package/esm/geometry/heatmap.js.map +0 -1
- package/esm/geometry/interval.d.ts +0 -41
- package/esm/geometry/interval.js +0 -98
- package/esm/geometry/interval.js.map +0 -1
- package/esm/geometry/label/base.d.ts +0 -76
- package/esm/geometry/label/base.js +0 -416
- package/esm/geometry/label/base.js.map +0 -1
- package/esm/geometry/label/index.d.ts +0 -38
- package/esm/geometry/label/index.js +0 -35
- package/esm/geometry/label/index.js.map +0 -1
- package/esm/geometry/label/interface.d.ts +0 -62
- package/esm/geometry/label/interface.js +0 -2
- package/esm/geometry/label/interface.js.map +0 -1
- package/esm/geometry/label/interval.d.ts +0 -27
- package/esm/geometry/label/interval.js +0 -146
- package/esm/geometry/label/interval.js.map +0 -1
- package/esm/geometry/label/layout/adjust-color.d.ts +0 -3
- package/esm/geometry/label/layout/adjust-color.js +0 -36
- package/esm/geometry/label/layout/adjust-color.js.map +0 -1
- package/esm/geometry/label/layout/hide-overlap.d.ts +0 -8
- package/esm/geometry/label/layout/hide-overlap.js +0 -75
- package/esm/geometry/label/layout/hide-overlap.js.map +0 -1
- package/esm/geometry/label/layout/interval/adjust-position.d.ts +0 -9
- package/esm/geometry/label/layout/interval/adjust-position.js +0 -61
- package/esm/geometry/label/layout/interval/adjust-position.js.map +0 -1
- package/esm/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
- package/esm/geometry/label/layout/interval/hide-overlap.js +0 -79
- package/esm/geometry/label/layout/interval/hide-overlap.js.map +0 -1
- package/esm/geometry/label/layout/limit-in-canvas.d.ts +0 -9
- package/esm/geometry/label/layout/limit-in-canvas.js +0 -44
- package/esm/geometry/label/layout/limit-in-canvas.js.map +0 -1
- package/esm/geometry/label/layout/limit-in-plot.d.ts +0 -18
- package/esm/geometry/label/layout/limit-in-plot.js +0 -75
- package/esm/geometry/label/layout/limit-in-plot.js.map +0 -1
- package/esm/geometry/label/layout/limit-in-shape.d.ts +0 -7
- package/esm/geometry/label/layout/limit-in-shape.js +0 -18
- package/esm/geometry/label/layout/limit-in-shape.js.map +0 -1
- package/esm/geometry/label/layout/overlap.d.ts +0 -15
- package/esm/geometry/label/layout/overlap.js +0 -223
- package/esm/geometry/label/layout/overlap.js.map +0 -1
- package/esm/geometry/label/layout/path/adjust-position.d.ts +0 -17
- package/esm/geometry/label/layout/path/adjust-position.js +0 -95
- package/esm/geometry/label/layout/path/adjust-position.js.map +0 -1
- package/esm/geometry/label/layout/pie/distribute.d.ts +0 -3
- package/esm/geometry/label/layout/pie/distribute.js +0 -196
- package/esm/geometry/label/layout/pie/distribute.js.map +0 -1
- package/esm/geometry/label/layout/pie/outer.d.ts +0 -6
- package/esm/geometry/label/layout/pie/outer.js +0 -218
- package/esm/geometry/label/layout/pie/outer.js.map +0 -1
- package/esm/geometry/label/layout/pie/spider.d.ts +0 -7
- package/esm/geometry/label/layout/pie/spider.js +0 -193
- package/esm/geometry/label/layout/pie/spider.js.map +0 -1
- package/esm/geometry/label/layout/pie/util.d.ts +0 -10
- package/esm/geometry/label/layout/pie/util.js +0 -73
- package/esm/geometry/label/layout/pie/util.js.map +0 -1
- package/esm/geometry/label/layout/point/adjust-position.d.ts +0 -17
- package/esm/geometry/label/layout/point/adjust-position.js +0 -95
- package/esm/geometry/label/layout/point/adjust-position.js.map +0 -1
- package/esm/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
- package/esm/geometry/label/layout/worker/hide-overlap.js +0 -155
- package/esm/geometry/label/layout/worker/hide-overlap.js.map +0 -1
- package/esm/geometry/label/pie.d.ts +0 -22
- package/esm/geometry/label/pie.js +0 -95
- package/esm/geometry/label/pie.js.map +0 -1
- package/esm/geometry/label/polar.d.ts +0 -64
- package/esm/geometry/label/polar.js +0 -221
- package/esm/geometry/label/polar.js.map +0 -1
- package/esm/geometry/label/util/createWorker.d.ts +0 -1
- package/esm/geometry/label/util/createWorker.js +0 -16
- package/esm/geometry/label/util/createWorker.js.map +0 -1
- package/esm/geometry/label/util/index.d.ts +0 -28
- package/esm/geometry/label/util/index.js +0 -62
- package/esm/geometry/label/util/index.js.map +0 -1
- package/esm/geometry/line.d.ts +0 -11
- package/esm/geometry/line.js +0 -21
- package/esm/geometry/line.js.map +0 -1
- package/esm/geometry/path.d.ts +0 -40
- package/esm/geometry/path.js +0 -150
- package/esm/geometry/path.js.map +0 -1
- package/esm/geometry/point.d.ts +0 -19
- package/esm/geometry/point.js +0 -30
- package/esm/geometry/point.js.map +0 -1
- package/esm/geometry/polygon.d.ts +0 -19
- package/esm/geometry/polygon.js +0 -62
- package/esm/geometry/polygon.js.map +0 -1
- package/esm/geometry/schema.d.ts +0 -18
- package/esm/geometry/schema.js +0 -48
- package/esm/geometry/schema.js.map +0 -1
- package/esm/geometry/shape/area/index.d.ts +0 -2
- package/esm/geometry/shape/area/index.js +0 -44
- package/esm/geometry/shape/area/index.js.map +0 -1
- package/esm/geometry/shape/area/line.d.ts +0 -1
- package/esm/geometry/shape/area/line.js +0 -31
- package/esm/geometry/shape/area/line.js.map +0 -1
- package/esm/geometry/shape/area/smooth-line.d.ts +0 -1
- package/esm/geometry/shape/area/smooth-line.js +0 -30
- package/esm/geometry/shape/area/smooth-line.js.map +0 -1
- package/esm/geometry/shape/area/smooth.d.ts +0 -1
- package/esm/geometry/shape/area/smooth.js +0 -31
- package/esm/geometry/shape/area/smooth.js.map +0 -1
- package/esm/geometry/shape/area/util.d.ts +0 -22
- package/esm/geometry/shape/area/util.js +0 -88
- package/esm/geometry/shape/area/util.js.map +0 -1
- package/esm/geometry/shape/base.d.ts +0 -22
- package/esm/geometry/shape/base.js +0 -162
- package/esm/geometry/shape/base.js.map +0 -1
- package/esm/geometry/shape/constant.d.ts +0 -4
- package/esm/geometry/shape/constant.js +0 -5
- package/esm/geometry/shape/constant.js.map +0 -1
- package/esm/geometry/shape/edge/arc.d.ts +0 -1
- package/esm/geometry/shape/edge/arc.js +0 -84
- package/esm/geometry/shape/edge/arc.js.map +0 -1
- package/esm/geometry/shape/edge/index.d.ts +0 -2
- package/esm/geometry/shape/edge/index.js +0 -31
- package/esm/geometry/shape/edge/index.js.map +0 -1
- package/esm/geometry/shape/edge/smooth.d.ts +0 -1
- package/esm/geometry/shape/edge/smooth.js +0 -30
- package/esm/geometry/shape/edge/smooth.js.map +0 -1
- package/esm/geometry/shape/edge/util.d.ts +0 -17
- package/esm/geometry/shape/edge/util.js +0 -32
- package/esm/geometry/shape/edge/util.js.map +0 -1
- package/esm/geometry/shape/edge/vhv.d.ts +0 -1
- package/esm/geometry/shape/edge/vhv.js +0 -42
- package/esm/geometry/shape/edge/vhv.js.map +0 -1
- package/esm/geometry/shape/interval/funnel.d.ts +0 -1
- package/esm/geometry/shape/interval/funnel.js +0 -31
- package/esm/geometry/shape/interval/funnel.js.map +0 -1
- package/esm/geometry/shape/interval/hollow-rect.d.ts +0 -1
- package/esm/geometry/shape/interval/hollow-rect.js +0 -51
- package/esm/geometry/shape/interval/hollow-rect.js.map +0 -1
- package/esm/geometry/shape/interval/index.d.ts +0 -3
- package/esm/geometry/shape/interval/index.js +0 -63
- package/esm/geometry/shape/interval/index.js.map +0 -1
- package/esm/geometry/shape/interval/line.d.ts +0 -1
- package/esm/geometry/shape/interval/line.js +0 -54
- package/esm/geometry/shape/interval/line.js.map +0 -1
- package/esm/geometry/shape/interval/pyramid.d.ts +0 -1
- package/esm/geometry/shape/interval/pyramid.js +0 -31
- package/esm/geometry/shape/interval/pyramid.js.map +0 -1
- package/esm/geometry/shape/interval/tick.d.ts +0 -1
- package/esm/geometry/shape/interval/tick.js +0 -78
- package/esm/geometry/shape/interval/tick.js.map +0 -1
- package/esm/geometry/shape/interval/util.d.ts +0 -55
- package/esm/geometry/shape/interval/util.js +0 -318
- package/esm/geometry/shape/interval/util.js.map +0 -1
- package/esm/geometry/shape/line/index.d.ts +0 -8
- package/esm/geometry/shape/line/index.js +0 -105
- package/esm/geometry/shape/line/index.js.map +0 -1
- package/esm/geometry/shape/line/step.d.ts +0 -1
- package/esm/geometry/shape/line/step.js +0 -84
- package/esm/geometry/shape/line/step.js.map +0 -1
- package/esm/geometry/shape/line/util.d.ts +0 -16
- package/esm/geometry/shape/line/util.js +0 -83
- package/esm/geometry/shape/line/util.js.map +0 -1
- package/esm/geometry/shape/point/hollow.d.ts +0 -1
- package/esm/geometry/shape/point/hollow.js +0 -24
- package/esm/geometry/shape/point/hollow.js.map +0 -1
- package/esm/geometry/shape/point/image.d.ts +0 -1
- package/esm/geometry/shape/point/image.js +0 -59
- package/esm/geometry/shape/point/image.js.map +0 -1
- package/esm/geometry/shape/point/index.d.ts +0 -2
- package/esm/geometry/shape/point/index.js +0 -32
- package/esm/geometry/shape/point/index.js.map +0 -1
- package/esm/geometry/shape/point/solid.d.ts +0 -1
- package/esm/geometry/shape/point/solid.js +0 -23
- package/esm/geometry/shape/point/solid.js.map +0 -1
- package/esm/geometry/shape/point/util.d.ts +0 -15
- package/esm/geometry/shape/point/util.js +0 -49
- package/esm/geometry/shape/point/util.js.map +0 -1
- package/esm/geometry/shape/polygon/index.d.ts +0 -2
- package/esm/geometry/shape/polygon/index.js +0 -65
- package/esm/geometry/shape/polygon/index.js.map +0 -1
- package/esm/geometry/shape/polygon/square.d.ts +0 -1
- package/esm/geometry/shape/polygon/square.js +0 -44
- package/esm/geometry/shape/polygon/square.js.map +0 -1
- package/esm/geometry/shape/schema/box.d.ts +0 -1
- package/esm/geometry/shape/schema/box.js +0 -142
- package/esm/geometry/shape/schema/box.js.map +0 -1
- package/esm/geometry/shape/schema/candle.d.ts +0 -1
- package/esm/geometry/shape/schema/candle.js +0 -80
- package/esm/geometry/shape/schema/candle.js.map +0 -1
- package/esm/geometry/shape/schema/index.d.ts +0 -2
- package/esm/geometry/shape/schema/index.js +0 -6
- package/esm/geometry/shape/schema/index.js.map +0 -1
- package/esm/geometry/shape/util/get-path-points.d.ts +0 -38
- package/esm/geometry/shape/util/get-path-points.js +0 -131
- package/esm/geometry/shape/util/get-path-points.js.map +0 -1
- package/esm/geometry/shape/util/get-style.d.ts +0 -18
- package/esm/geometry/shape/util/get-style.js +0 -47
- package/esm/geometry/shape/util/get-style.js.map +0 -1
- package/esm/geometry/shape/util/path.d.ts +0 -32
- package/esm/geometry/shape/util/path.js +0 -313
- package/esm/geometry/shape/util/path.js.map +0 -1
- package/esm/geometry/shape/util/split-points.d.ts +0 -13
- package/esm/geometry/shape/util/split-points.js +0 -24
- package/esm/geometry/shape/util/split-points.js.map +0 -1
- package/esm/geometry/shape/violin/hollow.d.ts +0 -1
- package/esm/geometry/shape/violin/hollow.js +0 -51
- package/esm/geometry/shape/violin/hollow.js.map +0 -1
- package/esm/geometry/shape/violin/index.d.ts +0 -2
- package/esm/geometry/shape/violin/index.js +0 -60
- package/esm/geometry/shape/violin/index.js.map +0 -1
- package/esm/geometry/shape/violin/smooth.d.ts +0 -1
- package/esm/geometry/shape/violin/smooth.js +0 -28
- package/esm/geometry/shape/violin/smooth.js.map +0 -1
- package/esm/geometry/util/diff.d.ts +0 -11
- package/esm/geometry/util/diff.js +0 -30
- package/esm/geometry/util/diff.js.map +0 -1
- package/esm/geometry/util/get-shape-type.d.ts +0 -8
- package/esm/geometry/util/get-shape-type.js +0 -16
- package/esm/geometry/util/get-shape-type.js.map +0 -1
- package/esm/geometry/util/group-data.d.ts +0 -3
- package/esm/geometry/util/group-data.js +0 -42
- package/esm/geometry/util/group-data.js.map +0 -1
- package/esm/geometry/util/is-model-change.d.ts +0 -9
- package/esm/geometry/util/is-model-change.js +0 -14
- package/esm/geometry/util/is-model-change.js.map +0 -1
- package/esm/geometry/util/parse-fields.d.ts +0 -2
- package/esm/geometry/util/parse-fields.js +0 -9
- package/esm/geometry/util/parse-fields.js.map +0 -1
- package/esm/geometry/util/shape-size.d.ts +0 -2
- package/esm/geometry/util/shape-size.js +0 -124
- package/esm/geometry/util/shape-size.js.map +0 -1
- package/esm/geometry/violin.d.ts +0 -25
- package/esm/geometry/violin.js +0 -67
- package/esm/geometry/violin.js.map +0 -1
- package/esm/interaction/action/active-region.d.ts +0 -33
- package/esm/interaction/action/active-region.js +0 -226
- package/esm/interaction/action/active-region.js.map +0 -1
- package/esm/interaction/action/base.d.ts +0 -29
- package/esm/interaction/action/base.js +0 -36
- package/esm/interaction/action/base.js.map +0 -1
- package/esm/interaction/action/callback.d.ts +0 -17
- package/esm/interaction/action/callback.js +0 -27
- package/esm/interaction/action/callback.js.map +0 -1
- package/esm/interaction/action/component/axis/axis-description.d.ts +0 -9
- package/esm/interaction/action/component/axis/axis-description.js +0 -73
- package/esm/interaction/action/component/axis/axis-description.js.map +0 -1
- package/esm/interaction/action/component/list-active.d.ts +0 -14
- package/esm/interaction/action/component/list-active.js +0 -24
- package/esm/interaction/action/component/list-active.js.map +0 -1
- package/esm/interaction/action/component/list-checked.d.ts +0 -30
- package/esm/interaction/action/component/list-checked.js +0 -82
- package/esm/interaction/action/component/list-checked.js.map +0 -1
- package/esm/interaction/action/component/list-focus.d.ts +0 -5
- package/esm/interaction/action/component/list-focus.js +0 -92
- package/esm/interaction/action/component/list-focus.js.map +0 -1
- package/esm/interaction/action/component/list-highlight-util.d.ts +0 -7
- package/esm/interaction/action/component/list-highlight-util.js +0 -20
- package/esm/interaction/action/component/list-highlight-util.js.map +0 -1
- package/esm/interaction/action/component/list-highlight.d.ts +0 -20
- package/esm/interaction/action/component/list-highlight.js +0 -97
- package/esm/interaction/action/component/list-highlight.js.map +0 -1
- package/esm/interaction/action/component/list-radio.d.ts +0 -24
- package/esm/interaction/action/component/list-radio.js +0 -116
- package/esm/interaction/action/component/list-radio.js.map +0 -1
- package/esm/interaction/action/component/list-selected.d.ts +0 -10
- package/esm/interaction/action/component/list-selected.js +0 -20
- package/esm/interaction/action/component/list-selected.js.map +0 -1
- package/esm/interaction/action/component/list-state.d.ts +0 -46
- package/esm/interaction/action/component/list-state.js +0 -167
- package/esm/interaction/action/component/list-state.js.map +0 -1
- package/esm/interaction/action/component/list-unchecked.d.ts +0 -13
- package/esm/interaction/action/component/list-unchecked.js +0 -23
- package/esm/interaction/action/component/list-unchecked.js.map +0 -1
- package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
- package/esm/interaction/action/component/tooltip/ellipsis-text.js +0 -93
- package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
- package/esm/interaction/action/component/tooltip/geometry.d.ts +0 -24
- package/esm/interaction/action/component/tooltip/geometry.js +0 -71
- package/esm/interaction/action/component/tooltip/geometry.js.map +0 -1
- package/esm/interaction/action/component/tooltip/sibling.d.ts +0 -21
- package/esm/interaction/action/component/tooltip/sibling.js +0 -39
- package/esm/interaction/action/component/tooltip/sibling.js.map +0 -1
- package/esm/interaction/action/cursor.d.ts +0 -69
- package/esm/interaction/action/cursor.js +0 -113
- package/esm/interaction/action/cursor.js.map +0 -1
- package/esm/interaction/action/data/filter.d.ts +0 -13
- package/esm/interaction/action/data/filter.js +0 -66
- package/esm/interaction/action/data/filter.js.map +0 -1
- package/esm/interaction/action/data/range-filter.d.ts +0 -56
- package/esm/interaction/action/data/range-filter.js +0 -163
- package/esm/interaction/action/data/range-filter.js.map +0 -1
- package/esm/interaction/action/data/sibling-filter.d.ts +0 -22
- package/esm/interaction/action/data/sibling-filter.js +0 -39
- package/esm/interaction/action/data/sibling-filter.js.map +0 -1
- package/esm/interaction/action/element/active.d.ts +0 -14
- package/esm/interaction/action/element/active.js +0 -24
- package/esm/interaction/action/element/active.js.map +0 -1
- package/esm/interaction/action/element/filter.d.ts +0 -20
- package/esm/interaction/action/element/filter.js +0 -89
- package/esm/interaction/action/element/filter.js.map +0 -1
- package/esm/interaction/action/element/highlight-by-color.d.ts +0 -10
- package/esm/interaction/action/element/highlight-by-color.js +0 -30
- package/esm/interaction/action/element/highlight-by-color.js.map +0 -1
- package/esm/interaction/action/element/highlight-by-x.d.ts +0 -15
- package/esm/interaction/action/element/highlight-by-x.js +0 -51
- package/esm/interaction/action/element/highlight-by-x.js.map +0 -1
- package/esm/interaction/action/element/highlight-util.d.ts +0 -18
- package/esm/interaction/action/element/highlight-util.js +0 -45
- package/esm/interaction/action/element/highlight-util.js.map +0 -1
- package/esm/interaction/action/element/highlight.d.ts +0 -21
- package/esm/interaction/action/element/highlight.js +0 -93
- package/esm/interaction/action/element/highlight.js.map +0 -1
- package/esm/interaction/action/element/link-by-color.d.ts +0 -51
- package/esm/interaction/action/element/link-by-color.js +0 -156
- package/esm/interaction/action/element/link-by-color.js.map +0 -1
- package/esm/interaction/action/element/range-active.d.ts +0 -13
- package/esm/interaction/action/element/range-active.js +0 -23
- package/esm/interaction/action/element/range-active.js.map +0 -1
- package/esm/interaction/action/element/range-highlight.d.ts +0 -27
- package/esm/interaction/action/element/range-highlight.js +0 -54
- package/esm/interaction/action/element/range-highlight.js.map +0 -1
- package/esm/interaction/action/element/range-selected.d.ts +0 -13
- package/esm/interaction/action/element/range-selected.js +0 -23
- package/esm/interaction/action/element/range-selected.js.map +0 -1
- package/esm/interaction/action/element/range-state.d.ts +0 -38
- package/esm/interaction/action/element/range-state.js +0 -164
- package/esm/interaction/action/element/range-state.js.map +0 -1
- package/esm/interaction/action/element/selected.d.ts +0 -14
- package/esm/interaction/action/element/selected.js +0 -24
- package/esm/interaction/action/element/selected.js.map +0 -1
- package/esm/interaction/action/element/sibling-filter.d.ts +0 -19
- package/esm/interaction/action/element/sibling-filter.js +0 -93
- package/esm/interaction/action/element/sibling-filter.js.map +0 -1
- package/esm/interaction/action/element/single-active.d.ts +0 -13
- package/esm/interaction/action/element/single-active.js +0 -23
- package/esm/interaction/action/element/single-active.js.map +0 -1
- package/esm/interaction/action/element/single-highlight.d.ts +0 -16
- package/esm/interaction/action/element/single-highlight.js +0 -35
- package/esm/interaction/action/element/single-highlight.js.map +0 -1
- package/esm/interaction/action/element/single-selected.d.ts +0 -13
- package/esm/interaction/action/element/single-selected.js +0 -23
- package/esm/interaction/action/element/single-selected.js.map +0 -1
- package/esm/interaction/action/element/single-state.d.ts +0 -18
- package/esm/interaction/action/element/single-state.js +0 -53
- package/esm/interaction/action/element/single-state.js.map +0 -1
- package/esm/interaction/action/element/state-base.d.ts +0 -39
- package/esm/interaction/action/element/state-base.js +0 -59
- package/esm/interaction/action/element/state-base.js.map +0 -1
- package/esm/interaction/action/element/state.d.ts +0 -28
- package/esm/interaction/action/element/state.js +0 -99
- package/esm/interaction/action/element/state.js.map +0 -1
- package/esm/interaction/action/mask/base.d.ts +0 -62
- package/esm/interaction/action/mask/base.js +0 -169
- package/esm/interaction/action/mask/base.js.map +0 -1
- package/esm/interaction/action/mask/circle.d.ts +0 -14
- package/esm/interaction/action/mask/circle.js +0 -37
- package/esm/interaction/action/mask/circle.js.map +0 -1
- package/esm/interaction/action/mask/dim-rect.d.ts +0 -11
- package/esm/interaction/action/mask/dim-rect.js +0 -62
- package/esm/interaction/action/mask/dim-rect.js.map +0 -1
- package/esm/interaction/action/mask/path.d.ts +0 -16
- package/esm/interaction/action/mask/path.js +0 -44
- package/esm/interaction/action/mask/path.js.map +0 -1
- package/esm/interaction/action/mask/rect.d.ts +0 -17
- package/esm/interaction/action/mask/rect.js +0 -39
- package/esm/interaction/action/mask/rect.js.map +0 -1
- package/esm/interaction/action/mask/smooth-path.d.ts +0 -9
- package/esm/interaction/action/mask/smooth-path.js +0 -21
- package/esm/interaction/action/mask/smooth-path.js.map +0 -1
- package/esm/interaction/action/register.d.ts +0 -36
- package/esm/interaction/action/register.js +0 -60
- package/esm/interaction/action/register.js.map +0 -1
- package/esm/interaction/action/util.d.ts +0 -140
- package/esm/interaction/action/util.js +0 -361
- package/esm/interaction/action/util.js.map +0 -1
- package/esm/interaction/action/view/button.d.ts +0 -25
- package/esm/interaction/action/view/button.js +0 -116
- package/esm/interaction/action/view/button.js.map +0 -1
- package/esm/interaction/action/view/drag.d.ts +0 -24
- package/esm/interaction/action/view/drag.js +0 -73
- package/esm/interaction/action/view/drag.js.map +0 -1
- package/esm/interaction/action/view/mousewheel-scroll.d.ts +0 -5
- package/esm/interaction/action/view/mousewheel-scroll.js +0 -35
- package/esm/interaction/action/view/mousewheel-scroll.js.map +0 -1
- package/esm/interaction/action/view/move.d.ts +0 -28
- package/esm/interaction/action/view/move.js +0 -80
- package/esm/interaction/action/view/move.js.map +0 -1
- package/esm/interaction/action/view/scale-transform.d.ts +0 -18
- package/esm/interaction/action/view/scale-transform.js +0 -51
- package/esm/interaction/action/view/scale-transform.js.map +0 -1
- package/esm/interaction/action/view/scale-translate.d.ts +0 -30
- package/esm/interaction/action/view/scale-translate.js +0 -112
- package/esm/interaction/action/view/scale-translate.js.map +0 -1
- package/esm/interaction/action/view/scale-zoom.d.ts +0 -20
- package/esm/interaction/action/view/scale-zoom.js +0 -83
- package/esm/interaction/action/view/scale-zoom.js.map +0 -1
- package/esm/interaction/context.d.ts +0 -65
- package/esm/interaction/context.js +0 -142
- package/esm/interaction/context.js.map +0 -1
- package/esm/interaction/grammar-interaction.d.ts +0 -158
- package/esm/interaction/grammar-interaction.js +0 -285
- package/esm/interaction/grammar-interaction.js.map +0 -1
- package/esm/interaction/interaction.d.ts +0 -29
- package/esm/interaction/interaction.js +0 -32
- package/esm/interaction/interaction.js.map +0 -1
- package/esm/interface.d.ts +0 -3686
- package/esm/interface.js +0 -2
- package/esm/interface.js.map +0 -1
- package/esm/theme/style-sheet/dark.d.ts +0 -545
- package/esm/theme/style-sheet/dark.js +0 -500
- package/esm/theme/style-sheet/dark.js.map +0 -1
- package/esm/theme/style-sheet/light.d.ts +0 -541
- package/esm/theme/style-sheet/light.js +0 -496
- package/esm/theme/style-sheet/light.js.map +0 -1
- package/esm/theme/util/create-by-style-sheet.d.ts +0 -6
- package/esm/theme/util/create-by-style-sheet.js +0 -1425
- package/esm/theme/util/create-by-style-sheet.js.map +0 -1
- package/esm/theme/util/create-theme.d.ts +0 -6
- package/esm/theme/util/create-theme.js +0 -12
- package/esm/theme/util/create-theme.js.map +0 -1
- package/esm/theme/util/index.d.ts +0 -1
- package/esm/theme/util/index.js +0 -2
- package/esm/theme/util/index.js.map +0 -1
- package/esm/util/annotation.d.ts +0 -7
- package/esm/util/annotation.js +0 -39
- package/esm/util/annotation.js.map +0 -1
- package/esm/util/attr.d.ts +0 -10
- package/esm/util/attr.js +0 -25
- package/esm/util/attr.js.map +0 -1
- package/esm/util/axis.d.ts +0 -100
- package/esm/util/axis.js +0 -236
- package/esm/util/axis.js.map +0 -1
- package/esm/util/bbox.d.ts +0 -105
- package/esm/util/bbox.js +0 -283
- package/esm/util/bbox.js.map +0 -1
- package/esm/util/collision-detect.d.ts +0 -20
- package/esm/util/collision-detect.js +0 -129
- package/esm/util/collision-detect.js.map +0 -1
- package/esm/util/color.d.ts +0 -1
- package/esm/util/color.js +0 -19
- package/esm/util/color.js.map +0 -1
- package/esm/util/context.d.ts +0 -4
- package/esm/util/context.js +0 -11
- package/esm/util/context.js.map +0 -1
- package/esm/util/coordinate.d.ts +0 -86
- package/esm/util/coordinate.js +0 -147
- package/esm/util/coordinate.js.map +0 -1
- package/esm/util/direction.d.ts +0 -19
- package/esm/util/direction.js +0 -120
- package/esm/util/direction.js.map +0 -1
- package/esm/util/dom.d.ts +0 -19
- package/esm/util/dom.js +0 -61
- package/esm/util/dom.js.map +0 -1
- package/esm/util/event.d.ts +0 -8
- package/esm/util/event.js +0 -14
- package/esm/util/event.js.map +0 -1
- package/esm/util/facet.d.ts +0 -16
- package/esm/util/facet.js +0 -43
- package/esm/util/facet.js.map +0 -1
- package/esm/util/graphics.d.ts +0 -58
- package/esm/util/graphics.js +0 -203
- package/esm/util/graphics.js.map +0 -1
- package/esm/util/grid.d.ts +0 -36
- package/esm/util/grid.js +0 -118
- package/esm/util/grid.js.map +0 -1
- package/esm/util/helper.d.ts +0 -34
- package/esm/util/helper.js +0 -83
- package/esm/util/helper.js.map +0 -1
- package/esm/util/legend.d.ts +0 -45
- package/esm/util/legend.js +0 -145
- package/esm/util/legend.js.map +0 -1
- package/esm/util/marker.d.ts +0 -10
- package/esm/util/marker.js +0 -58
- package/esm/util/marker.js.map +0 -1
- package/esm/util/padding.d.ts +0 -14
- package/esm/util/padding.js +0 -40
- package/esm/util/padding.js.map +0 -1
- package/esm/util/scale.d.ts +0 -42
- package/esm/util/scale.js +0 -129
- package/esm/util/scale.js.map +0 -1
- package/esm/util/stat.d.ts +0 -10
- package/esm/util/stat.js +0 -36
- package/esm/util/stat.js.map +0 -1
- package/esm/util/text.d.ts +0 -23
- package/esm/util/text.js +0 -84
- package/esm/util/text.js.map +0 -1
- package/esm/util/tooltip.d.ts +0 -26
- package/esm/util/tooltip.js +0 -469
- package/esm/util/tooltip.js.map +0 -1
- package/esm/util/transform.d.ts +0 -33
- package/esm/util/transform.js +0 -61
- package/esm/util/transform.js.map +0 -1
- package/esm/util/types.d.ts +0 -6
- package/esm/util/types.js.map +0 -1
- package/lib/animate/animation/fade.d.ts +0 -21
- package/lib/animate/animation/fade.js +0 -47
- package/lib/animate/animation/fade.js.map +0 -1
- package/lib/animate/animation/grow-in.d.ts +0 -30
- package/lib/animate/animation/grow-in.js +0 -44
- package/lib/animate/animation/grow-in.js.map +0 -1
- package/lib/animate/animation/index.d.ts +0 -16
- package/lib/animate/animation/index.js +0 -22
- package/lib/animate/animation/index.js.map +0 -1
- package/lib/animate/animation/path-in.d.ts +0 -12
- package/lib/animate/animation/path-in.js +0 -25
- package/lib/animate/animation/path-in.js.map +0 -1
- package/lib/animate/animation/position-update.d.ts +0 -11
- package/lib/animate/animation/position-update.js +0 -28
- package/lib/animate/animation/position-update.js.map +0 -1
- package/lib/animate/animation/scale-in.d.ts +0 -19
- package/lib/animate/animation/scale-in.js +0 -65
- package/lib/animate/animation/scale-in.js.map +0 -1
- package/lib/animate/animation/sector-path-update.d.ts +0 -27
- package/lib/animate/animation/sector-path-update.js +0 -136
- package/lib/animate/animation/sector-path-update.js.map +0 -1
- package/lib/animate/animation/util.d.ts +0 -19
- package/lib/animate/animation/util.js +0 -94
- package/lib/animate/animation/util.js.map +0 -1
- package/lib/animate/animation/wave-in.d.ts +0 -13
- package/lib/animate/animation/wave-in.js +0 -34
- package/lib/animate/animation/wave-in.js.map +0 -1
- package/lib/animate/animation/zoom.d.ts +0 -21
- package/lib/animate/animation/zoom.js +0 -71
- package/lib/animate/animation/zoom.js.map +0 -1
- package/lib/animate/index.d.ts +0 -48
- package/lib/animate/index.js +0 -255
- package/lib/animate/index.js.map +0 -1
- package/lib/animate/interface.d.ts +0 -18
- package/lib/animate/interface.js +0 -3
- package/lib/animate/interface.js.map +0 -1
- package/lib/api.d.ts +0 -2
- package/lib/api.js +0 -7
- package/lib/api.js.map +0 -1
- package/lib/base.d.ts +0 -33
- package/lib/base.js +0 -57
- package/lib/base.js.map +0 -1
- package/lib/chart/chart.d.ts +0 -61
- package/lib/chart/chart.js +0 -159
- package/lib/chart/chart.js.map +0 -1
- package/lib/chart/controller/annotation.d.ts +0 -162
- package/lib/chart/controller/annotation.js +0 -593
- package/lib/chart/controller/annotation.js.map +0 -1
- package/lib/chart/controller/axis.d.ts +0 -93
- package/lib/chart/controller/axis.js +0 -580
- package/lib/chart/controller/axis.js.map +0 -1
- package/lib/chart/controller/base.d.ts +0 -64
- package/lib/chart/controller/base.js +0 -65
- package/lib/chart/controller/base.js.map +0 -1
- package/lib/chart/controller/coordinate.d.ts +0 -74
- package/lib/chart/controller/coordinate.js +0 -147
- package/lib/chart/controller/coordinate.js.map +0 -1
- package/lib/chart/controller/gesture.d.ts +0 -37
- package/lib/chart/controller/gesture.js +0 -260
- package/lib/chart/controller/gesture.js.map +0 -1
- package/lib/chart/controller/index.d.ts +0 -25
- package/lib/chart/controller/index.js +0 -41
- package/lib/chart/controller/index.js.map +0 -1
- package/lib/chart/controller/legend.d.ts +0 -106
- package/lib/chart/controller/legend.js +0 -486
- package/lib/chart/controller/legend.js.map +0 -1
- package/lib/chart/controller/scrollbar.d.ts +0 -64
- package/lib/chart/controller/scrollbar.js +0 -318
- package/lib/chart/controller/scrollbar.js.map +0 -1
- package/lib/chart/controller/slider.d.ts +0 -88
- package/lib/chart/controller/slider.js +0 -298
- package/lib/chart/controller/slider.js.map +0 -1
- package/lib/chart/controller/tooltip.d.ts +0 -68
- package/lib/chart/controller/tooltip.js +0 -694
- package/lib/chart/controller/tooltip.js.map +0 -1
- package/lib/chart/event.d.ts +0 -47
- package/lib/chart/event.js +0 -93
- package/lib/chart/event.js.map +0 -1
- package/lib/chart/index.d.ts +0 -4
- package/lib/chart/index.js +0 -16
- package/lib/chart/index.js.map +0 -1
- package/lib/chart/layout/auto.d.ts +0 -8
- package/lib/chart/layout/auto.js +0 -68
- package/lib/chart/layout/auto.js.map +0 -1
- package/lib/chart/layout/constraint/bounds.d.ts +0 -32
- package/lib/chart/layout/constraint/bounds.js +0 -33
- package/lib/chart/layout/constraint/bounds.js.map +0 -1
- package/lib/chart/layout/constraint/constraint.d.ts +0 -31
- package/lib/chart/layout/constraint/constraint.js +0 -85
- package/lib/chart/layout/constraint/constraint.js.map +0 -1
- package/lib/chart/layout/constraint/gauss.d.ts +0 -11
- package/lib/chart/layout/constraint/gauss.js +0 -68
- package/lib/chart/layout/constraint/gauss.js.map +0 -1
- package/lib/chart/layout/constraint/index.d.ts +0 -5
- package/lib/chart/layout/constraint/index.js +0 -38
- package/lib/chart/layout/constraint/index.js.map +0 -1
- package/lib/chart/layout/constraint/solver.d.ts +0 -40
- package/lib/chart/layout/constraint/solver.js +0 -81
- package/lib/chart/layout/constraint/solver.js.map +0 -1
- package/lib/chart/layout/constraint/types.d.ts +0 -21
- package/lib/chart/layout/constraint/types.js +0 -16
- package/lib/chart/layout/constraint/types.js.map +0 -1
- package/lib/chart/layout/constraint/variable.d.ts +0 -24
- package/lib/chart/layout/constraint/variable.js +0 -31
- package/lib/chart/layout/constraint/variable.js.map +0 -1
- package/lib/chart/layout/index.d.ts +0 -15
- package/lib/chart/layout/index.js +0 -29
- package/lib/chart/layout/index.js.map +0 -1
- package/lib/chart/layout/padding-cal.d.ts +0 -53
- package/lib/chart/layout/padding-cal.js +0 -111
- package/lib/chart/layout/padding-cal.js.map +0 -1
- package/lib/chart/util/scale-pool.d.ts +0 -57
- package/lib/chart/util/scale-pool.js +0 -215
- package/lib/chart/util/scale-pool.js.map +0 -1
- package/lib/chart/util/sync-view-padding.d.ts +0 -9
- package/lib/chart/util/sync-view-padding.js +0 -18
- package/lib/chart/util/sync-view-padding.js.map +0 -1
- package/lib/chart/view.d.ts +0 -747
- package/lib/chart/view.js +0 -1640
- package/lib/chart/view.js.map +0 -1
- package/lib/component/labels.d.ts +0 -46
- package/lib/component/labels.js +0 -307
- package/lib/component/labels.js.map +0 -1
- package/lib/component/update-label.d.ts +0 -21
- package/lib/component/update-label.js +0 -61
- package/lib/component/update-label.js.map +0 -1
- package/lib/constant.d.ts +0 -124
- package/lib/constant.js +0 -139
- package/lib/constant.js.map +0 -1
- package/lib/core.d.ts +0 -46
- package/lib/core.js +0 -101
- package/lib/core.js.map +0 -1
- package/lib/dependents.d.ts +0 -21
- package/lib/dependents.js +0 -55
- package/lib/dependents.js.map +0 -1
- package/lib/engine/index.d.ts +0 -13
- package/lib/engine/index.js +0 -27
- package/lib/engine/index.js.map +0 -1
- package/lib/facet/circle.d.ts +0 -36
- package/lib/facet/circle.js +0 -121
- package/lib/facet/circle.js.map +0 -1
- package/lib/facet/facet.d.ts +0 -165
- package/lib/facet/facet.js +0 -295
- package/lib/facet/facet.js.map +0 -1
- package/lib/facet/index.d.ts +0 -13
- package/lib/facet/index.js +0 -28
- package/lib/facet/index.js.map +0 -1
- package/lib/facet/list.d.ts +0 -46
- package/lib/facet/list.js +0 -136
- package/lib/facet/list.js.map +0 -1
- package/lib/facet/matrix.d.ts +0 -34
- package/lib/facet/matrix.js +0 -121
- package/lib/facet/matrix.js.map +0 -1
- package/lib/facet/mirror.d.ts +0 -31
- package/lib/facet/mirror.js +0 -146
- package/lib/facet/mirror.js.map +0 -1
- package/lib/facet/rect.d.ts +0 -35
- package/lib/facet/rect.js +0 -143
- package/lib/facet/rect.js.map +0 -1
- package/lib/facet/tree.d.ts +0 -40
- package/lib/facet/tree.js +0 -300
- package/lib/facet/tree.js.map +0 -1
- package/lib/geometry/area.d.ts +0 -46
- package/lib/geometry/area.js +0 -64
- package/lib/geometry/area.js.map +0 -1
- package/lib/geometry/base.d.ts +0 -796
- package/lib/geometry/base.js +0 -1558
- package/lib/geometry/base.js.map +0 -1
- package/lib/geometry/edge.d.ts +0 -15
- package/lib/geometry/edge.js +0 -26
- package/lib/geometry/edge.js.map +0 -1
- package/lib/geometry/element/index.d.ts +0 -127
- package/lib/geometry/element/index.js +0 -440
- package/lib/geometry/element/index.js.map +0 -1
- package/lib/geometry/heatmap.d.ts +0 -31
- package/lib/geometry/heatmap.js +0 -202
- package/lib/geometry/heatmap.js.map +0 -1
- package/lib/geometry/interval.d.ts +0 -41
- package/lib/geometry/interval.js +0 -100
- package/lib/geometry/interval.js.map +0 -1
- package/lib/geometry/label/base.d.ts +0 -76
- package/lib/geometry/label/base.js +0 -418
- package/lib/geometry/label/base.js.map +0 -1
- package/lib/geometry/label/index.d.ts +0 -38
- package/lib/geometry/label/index.js +0 -42
- package/lib/geometry/label/index.js.map +0 -1
- package/lib/geometry/label/interface.d.ts +0 -62
- package/lib/geometry/label/interface.js +0 -3
- package/lib/geometry/label/interface.js.map +0 -1
- package/lib/geometry/label/interval.d.ts +0 -27
- package/lib/geometry/label/interval.js +0 -148
- package/lib/geometry/label/interval.js.map +0 -1
- package/lib/geometry/label/layout/adjust-color.d.ts +0 -3
- package/lib/geometry/label/layout/adjust-color.js +0 -40
- package/lib/geometry/label/layout/adjust-color.js.map +0 -1
- package/lib/geometry/label/layout/hide-overlap.d.ts +0 -8
- package/lib/geometry/label/layout/hide-overlap.js +0 -79
- package/lib/geometry/label/layout/hide-overlap.js.map +0 -1
- package/lib/geometry/label/layout/interval/adjust-position.d.ts +0 -9
- package/lib/geometry/label/layout/interval/adjust-position.js +0 -65
- package/lib/geometry/label/layout/interval/adjust-position.js.map +0 -1
- package/lib/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
- package/lib/geometry/label/layout/interval/hide-overlap.js +0 -83
- package/lib/geometry/label/layout/interval/hide-overlap.js.map +0 -1
- package/lib/geometry/label/layout/limit-in-canvas.d.ts +0 -9
- package/lib/geometry/label/layout/limit-in-canvas.js +0 -48
- package/lib/geometry/label/layout/limit-in-canvas.js.map +0 -1
- package/lib/geometry/label/layout/limit-in-plot.d.ts +0 -18
- package/lib/geometry/label/layout/limit-in-plot.js +0 -79
- package/lib/geometry/label/layout/limit-in-plot.js.map +0 -1
- package/lib/geometry/label/layout/limit-in-shape.d.ts +0 -7
- package/lib/geometry/label/layout/limit-in-shape.js +0 -22
- package/lib/geometry/label/layout/limit-in-shape.js.map +0 -1
- package/lib/geometry/label/layout/overlap.d.ts +0 -15
- package/lib/geometry/label/layout/overlap.js +0 -228
- package/lib/geometry/label/layout/overlap.js.map +0 -1
- package/lib/geometry/label/layout/path/adjust-position.d.ts +0 -17
- package/lib/geometry/label/layout/path/adjust-position.js +0 -99
- package/lib/geometry/label/layout/path/adjust-position.js.map +0 -1
- package/lib/geometry/label/layout/pie/distribute.d.ts +0 -3
- package/lib/geometry/label/layout/pie/distribute.js +0 -200
- package/lib/geometry/label/layout/pie/distribute.js.map +0 -1
- package/lib/geometry/label/layout/pie/outer.d.ts +0 -6
- package/lib/geometry/label/layout/pie/outer.js +0 -222
- package/lib/geometry/label/layout/pie/outer.js.map +0 -1
- package/lib/geometry/label/layout/pie/spider.d.ts +0 -7
- package/lib/geometry/label/layout/pie/spider.js +0 -197
- package/lib/geometry/label/layout/pie/spider.js.map +0 -1
- package/lib/geometry/label/layout/pie/util.d.ts +0 -10
- package/lib/geometry/label/layout/pie/util.js +0 -77
- package/lib/geometry/label/layout/pie/util.js.map +0 -1
- package/lib/geometry/label/layout/point/adjust-position.d.ts +0 -17
- package/lib/geometry/label/layout/point/adjust-position.js +0 -99
- package/lib/geometry/label/layout/point/adjust-position.js.map +0 -1
- package/lib/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
- package/lib/geometry/label/layout/worker/hide-overlap.js +0 -158
- package/lib/geometry/label/layout/worker/hide-overlap.js.map +0 -1
- package/lib/geometry/label/pie.d.ts +0 -22
- package/lib/geometry/label/pie.js +0 -97
- package/lib/geometry/label/pie.js.map +0 -1
- package/lib/geometry/label/polar.d.ts +0 -64
- package/lib/geometry/label/polar.js +0 -223
- package/lib/geometry/label/polar.js.map +0 -1
- package/lib/geometry/label/util/createWorker.d.ts +0 -1
- package/lib/geometry/label/util/createWorker.js +0 -20
- package/lib/geometry/label/util/createWorker.js.map +0 -1
- package/lib/geometry/label/util/index.d.ts +0 -28
- package/lib/geometry/label/util/index.js +0 -69
- package/lib/geometry/label/util/index.js.map +0 -1
- package/lib/geometry/line.d.ts +0 -11
- package/lib/geometry/line.js +0 -23
- package/lib/geometry/line.js.map +0 -1
- package/lib/geometry/path.d.ts +0 -40
- package/lib/geometry/path.js +0 -152
- package/lib/geometry/path.js.map +0 -1
- package/lib/geometry/point.d.ts +0 -19
- package/lib/geometry/point.js +0 -32
- package/lib/geometry/point.js.map +0 -1
- package/lib/geometry/polygon.d.ts +0 -19
- package/lib/geometry/polygon.js +0 -64
- package/lib/geometry/polygon.js.map +0 -1
- package/lib/geometry/schema.d.ts +0 -18
- package/lib/geometry/schema.js +0 -50
- package/lib/geometry/schema.js.map +0 -1
- package/lib/geometry/shape/area/index.d.ts +0 -2
- package/lib/geometry/shape/area/index.js +0 -46
- package/lib/geometry/shape/area/index.js.map +0 -1
- package/lib/geometry/shape/area/line.d.ts +0 -1
- package/lib/geometry/shape/area/line.js +0 -33
- package/lib/geometry/shape/area/line.js.map +0 -1
- package/lib/geometry/shape/area/smooth-line.d.ts +0 -1
- package/lib/geometry/shape/area/smooth-line.js +0 -32
- package/lib/geometry/shape/area/smooth-line.js.map +0 -1
- package/lib/geometry/shape/area/smooth.d.ts +0 -1
- package/lib/geometry/shape/area/smooth.js +0 -33
- package/lib/geometry/shape/area/smooth.js.map +0 -1
- package/lib/geometry/shape/area/util.d.ts +0 -22
- package/lib/geometry/shape/area/util.js +0 -93
- package/lib/geometry/shape/area/util.js.map +0 -1
- package/lib/geometry/shape/base.d.ts +0 -22
- package/lib/geometry/shape/base.js +0 -168
- package/lib/geometry/shape/base.js.map +0 -1
- package/lib/geometry/shape/constant.d.ts +0 -4
- package/lib/geometry/shape/constant.js +0 -8
- package/lib/geometry/shape/constant.js.map +0 -1
- package/lib/geometry/shape/edge/arc.d.ts +0 -1
- package/lib/geometry/shape/edge/arc.js +0 -86
- package/lib/geometry/shape/edge/arc.js.map +0 -1
- package/lib/geometry/shape/edge/index.d.ts +0 -2
- package/lib/geometry/shape/edge/index.js +0 -33
- package/lib/geometry/shape/edge/index.js.map +0 -1
- package/lib/geometry/shape/edge/smooth.d.ts +0 -1
- package/lib/geometry/shape/edge/smooth.js +0 -32
- package/lib/geometry/shape/edge/smooth.js.map +0 -1
- package/lib/geometry/shape/edge/util.d.ts +0 -17
- package/lib/geometry/shape/edge/util.js +0 -37
- package/lib/geometry/shape/edge/util.js.map +0 -1
- package/lib/geometry/shape/edge/vhv.d.ts +0 -1
- package/lib/geometry/shape/edge/vhv.js +0 -44
- package/lib/geometry/shape/edge/vhv.js.map +0 -1
- package/lib/geometry/shape/interval/funnel.d.ts +0 -1
- package/lib/geometry/shape/interval/funnel.js +0 -33
- package/lib/geometry/shape/interval/funnel.js.map +0 -1
- package/lib/geometry/shape/interval/hollow-rect.d.ts +0 -1
- package/lib/geometry/shape/interval/hollow-rect.js +0 -53
- package/lib/geometry/shape/interval/hollow-rect.js.map +0 -1
- package/lib/geometry/shape/interval/index.d.ts +0 -3
- package/lib/geometry/shape/interval/index.js +0 -65
- package/lib/geometry/shape/interval/index.js.map +0 -1
- package/lib/geometry/shape/interval/line.d.ts +0 -1
- package/lib/geometry/shape/interval/line.js +0 -56
- package/lib/geometry/shape/interval/line.js.map +0 -1
- package/lib/geometry/shape/interval/pyramid.d.ts +0 -1
- package/lib/geometry/shape/interval/pyramid.js +0 -33
- package/lib/geometry/shape/interval/pyramid.js.map +0 -1
- package/lib/geometry/shape/interval/tick.d.ts +0 -1
- package/lib/geometry/shape/interval/tick.js +0 -80
- package/lib/geometry/shape/interval/tick.js.map +0 -1
- package/lib/geometry/shape/interval/util.d.ts +0 -55
- package/lib/geometry/shape/interval/util.js +0 -328
- package/lib/geometry/shape/interval/util.js.map +0 -1
- package/lib/geometry/shape/line/index.d.ts +0 -8
- package/lib/geometry/shape/line/index.js +0 -109
- package/lib/geometry/shape/line/index.js.map +0 -1
- package/lib/geometry/shape/line/step.d.ts +0 -1
- package/lib/geometry/shape/line/step.js +0 -86
- package/lib/geometry/shape/line/step.js.map +0 -1
- package/lib/geometry/shape/line/util.d.ts +0 -16
- package/lib/geometry/shape/line/util.js +0 -87
- package/lib/geometry/shape/line/util.js.map +0 -1
- package/lib/geometry/shape/point/hollow.d.ts +0 -1
- package/lib/geometry/shape/point/hollow.js +0 -26
- package/lib/geometry/shape/point/hollow.js.map +0 -1
- package/lib/geometry/shape/point/image.d.ts +0 -1
- package/lib/geometry/shape/point/image.js +0 -61
- package/lib/geometry/shape/point/image.js.map +0 -1
- package/lib/geometry/shape/point/index.d.ts +0 -2
- package/lib/geometry/shape/point/index.js +0 -34
- package/lib/geometry/shape/point/index.js.map +0 -1
- package/lib/geometry/shape/point/solid.d.ts +0 -1
- package/lib/geometry/shape/point/solid.js +0 -25
- package/lib/geometry/shape/point/solid.js.map +0 -1
- package/lib/geometry/shape/point/util.d.ts +0 -15
- package/lib/geometry/shape/point/util.js +0 -53
- package/lib/geometry/shape/point/util.js.map +0 -1
- package/lib/geometry/shape/polygon/index.d.ts +0 -2
- package/lib/geometry/shape/polygon/index.js +0 -67
- package/lib/geometry/shape/polygon/index.js.map +0 -1
- package/lib/geometry/shape/polygon/square.d.ts +0 -1
- package/lib/geometry/shape/polygon/square.js +0 -46
- package/lib/geometry/shape/polygon/square.js.map +0 -1
- package/lib/geometry/shape/schema/box.d.ts +0 -1
- package/lib/geometry/shape/schema/box.js +0 -144
- package/lib/geometry/shape/schema/box.js.map +0 -1
- package/lib/geometry/shape/schema/candle.d.ts +0 -1
- package/lib/geometry/shape/schema/candle.js +0 -82
- package/lib/geometry/shape/schema/candle.js.map +0 -1
- package/lib/geometry/shape/schema/index.d.ts +0 -2
- package/lib/geometry/shape/schema/index.js +0 -8
- package/lib/geometry/shape/schema/index.js.map +0 -1
- package/lib/geometry/shape/util/get-path-points.d.ts +0 -38
- package/lib/geometry/shape/util/get-path-points.js +0 -137
- package/lib/geometry/shape/util/get-path-points.js.map +0 -1
- package/lib/geometry/shape/util/get-style.d.ts +0 -18
- package/lib/geometry/shape/util/get-style.js +0 -52
- package/lib/geometry/shape/util/get-style.js.map +0 -1
- package/lib/geometry/shape/util/path.d.ts +0 -32
- package/lib/geometry/shape/util/path.js +0 -322
- package/lib/geometry/shape/util/path.js.map +0 -1
- package/lib/geometry/shape/util/split-points.d.ts +0 -13
- package/lib/geometry/shape/util/split-points.js +0 -28
- package/lib/geometry/shape/util/split-points.js.map +0 -1
- package/lib/geometry/shape/violin/hollow.d.ts +0 -1
- package/lib/geometry/shape/violin/hollow.js +0 -53
- package/lib/geometry/shape/violin/hollow.js.map +0 -1
- package/lib/geometry/shape/violin/index.d.ts +0 -2
- package/lib/geometry/shape/violin/index.js +0 -62
- package/lib/geometry/shape/violin/index.js.map +0 -1
- package/lib/geometry/shape/violin/smooth.d.ts +0 -1
- package/lib/geometry/shape/violin/smooth.js +0 -30
- package/lib/geometry/shape/violin/smooth.js.map +0 -1
- package/lib/geometry/util/diff.d.ts +0 -11
- package/lib/geometry/util/diff.js +0 -34
- package/lib/geometry/util/diff.js.map +0 -1
- package/lib/geometry/util/get-shape-type.d.ts +0 -8
- package/lib/geometry/util/get-shape-type.js +0 -20
- package/lib/geometry/util/get-shape-type.js.map +0 -1
- package/lib/geometry/util/group-data.d.ts +0 -3
- package/lib/geometry/util/group-data.js +0 -46
- package/lib/geometry/util/group-data.js.map +0 -1
- package/lib/geometry/util/is-model-change.d.ts +0 -9
- package/lib/geometry/util/is-model-change.js +0 -18
- package/lib/geometry/util/is-model-change.js.map +0 -1
- package/lib/geometry/util/parse-fields.d.ts +0 -2
- package/lib/geometry/util/parse-fields.js +0 -13
- package/lib/geometry/util/parse-fields.js.map +0 -1
- package/lib/geometry/util/shape-size.d.ts +0 -2
- package/lib/geometry/util/shape-size.js +0 -128
- package/lib/geometry/util/shape-size.js.map +0 -1
- package/lib/geometry/violin.d.ts +0 -25
- package/lib/geometry/violin.js +0 -69
- package/lib/geometry/violin.js.map +0 -1
- package/lib/interaction/action/active-region.d.ts +0 -33
- package/lib/interaction/action/active-region.js +0 -230
- package/lib/interaction/action/active-region.js.map +0 -1
- package/lib/interaction/action/base.d.ts +0 -29
- package/lib/interaction/action/base.js +0 -38
- package/lib/interaction/action/base.js.map +0 -1
- package/lib/interaction/action/callback.d.ts +0 -17
- package/lib/interaction/action/callback.js +0 -29
- package/lib/interaction/action/callback.js.map +0 -1
- package/lib/interaction/action/component/axis/axis-description.d.ts +0 -9
- package/lib/interaction/action/component/axis/axis-description.js +0 -75
- package/lib/interaction/action/component/axis/axis-description.js.map +0 -1
- package/lib/interaction/action/component/list-active.d.ts +0 -14
- package/lib/interaction/action/component/list-active.js +0 -26
- package/lib/interaction/action/component/list-active.js.map +0 -1
- package/lib/interaction/action/component/list-checked.d.ts +0 -30
- package/lib/interaction/action/component/list-checked.js +0 -84
- package/lib/interaction/action/component/list-checked.js.map +0 -1
- package/lib/interaction/action/component/list-focus.d.ts +0 -5
- package/lib/interaction/action/component/list-focus.js +0 -94
- package/lib/interaction/action/component/list-focus.js.map +0 -1
- package/lib/interaction/action/component/list-highlight-util.d.ts +0 -7
- package/lib/interaction/action/component/list-highlight-util.js +0 -24
- package/lib/interaction/action/component/list-highlight-util.js.map +0 -1
- package/lib/interaction/action/component/list-highlight.d.ts +0 -20
- package/lib/interaction/action/component/list-highlight.js +0 -99
- package/lib/interaction/action/component/list-highlight.js.map +0 -1
- package/lib/interaction/action/component/list-radio.d.ts +0 -24
- package/lib/interaction/action/component/list-radio.js +0 -118
- package/lib/interaction/action/component/list-radio.js.map +0 -1
- package/lib/interaction/action/component/list-selected.d.ts +0 -10
- package/lib/interaction/action/component/list-selected.js +0 -22
- package/lib/interaction/action/component/list-selected.js.map +0 -1
- package/lib/interaction/action/component/list-state.d.ts +0 -46
- package/lib/interaction/action/component/list-state.js +0 -169
- package/lib/interaction/action/component/list-state.js.map +0 -1
- package/lib/interaction/action/component/list-unchecked.d.ts +0 -13
- package/lib/interaction/action/component/list-unchecked.js +0 -25
- package/lib/interaction/action/component/list-unchecked.js.map +0 -1
- package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
- package/lib/interaction/action/component/tooltip/ellipsis-text.js +0 -95
- package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
- package/lib/interaction/action/component/tooltip/geometry.d.ts +0 -24
- package/lib/interaction/action/component/tooltip/geometry.js +0 -73
- package/lib/interaction/action/component/tooltip/geometry.js.map +0 -1
- package/lib/interaction/action/component/tooltip/sibling.d.ts +0 -21
- package/lib/interaction/action/component/tooltip/sibling.js +0 -41
- package/lib/interaction/action/component/tooltip/sibling.js.map +0 -1
- package/lib/interaction/action/cursor.d.ts +0 -69
- package/lib/interaction/action/cursor.js +0 -115
- package/lib/interaction/action/cursor.js.map +0 -1
- package/lib/interaction/action/data/filter.d.ts +0 -13
- package/lib/interaction/action/data/filter.js +0 -68
- package/lib/interaction/action/data/filter.js.map +0 -1
- package/lib/interaction/action/data/range-filter.d.ts +0 -56
- package/lib/interaction/action/data/range-filter.js +0 -166
- package/lib/interaction/action/data/range-filter.js.map +0 -1
- package/lib/interaction/action/data/sibling-filter.d.ts +0 -22
- package/lib/interaction/action/data/sibling-filter.js +0 -41
- package/lib/interaction/action/data/sibling-filter.js.map +0 -1
- package/lib/interaction/action/element/active.d.ts +0 -14
- package/lib/interaction/action/element/active.js +0 -26
- package/lib/interaction/action/element/active.js.map +0 -1
- package/lib/interaction/action/element/filter.d.ts +0 -20
- package/lib/interaction/action/element/filter.js +0 -91
- package/lib/interaction/action/element/filter.js.map +0 -1
- package/lib/interaction/action/element/highlight-by-color.d.ts +0 -10
- package/lib/interaction/action/element/highlight-by-color.js +0 -32
- package/lib/interaction/action/element/highlight-by-color.js.map +0 -1
- package/lib/interaction/action/element/highlight-by-x.d.ts +0 -15
- package/lib/interaction/action/element/highlight-by-x.js +0 -53
- package/lib/interaction/action/element/highlight-by-x.js.map +0 -1
- package/lib/interaction/action/element/highlight-util.d.ts +0 -18
- package/lib/interaction/action/element/highlight-util.js +0 -50
- package/lib/interaction/action/element/highlight-util.js.map +0 -1
- package/lib/interaction/action/element/highlight.d.ts +0 -21
- package/lib/interaction/action/element/highlight.js +0 -96
- package/lib/interaction/action/element/highlight.js.map +0 -1
- package/lib/interaction/action/element/link-by-color.d.ts +0 -51
- package/lib/interaction/action/element/link-by-color.js +0 -158
- package/lib/interaction/action/element/link-by-color.js.map +0 -1
- package/lib/interaction/action/element/range-active.d.ts +0 -13
- package/lib/interaction/action/element/range-active.js +0 -25
- package/lib/interaction/action/element/range-active.js.map +0 -1
- package/lib/interaction/action/element/range-highlight.d.ts +0 -27
- package/lib/interaction/action/element/range-highlight.js +0 -57
- package/lib/interaction/action/element/range-highlight.js.map +0 -1
- package/lib/interaction/action/element/range-selected.d.ts +0 -13
- package/lib/interaction/action/element/range-selected.js +0 -25
- package/lib/interaction/action/element/range-selected.js.map +0 -1
- package/lib/interaction/action/element/range-state.d.ts +0 -38
- package/lib/interaction/action/element/range-state.js +0 -166
- package/lib/interaction/action/element/range-state.js.map +0 -1
- package/lib/interaction/action/element/selected.d.ts +0 -14
- package/lib/interaction/action/element/selected.js +0 -26
- package/lib/interaction/action/element/selected.js.map +0 -1
- package/lib/interaction/action/element/sibling-filter.d.ts +0 -19
- package/lib/interaction/action/element/sibling-filter.js +0 -95
- package/lib/interaction/action/element/sibling-filter.js.map +0 -1
- package/lib/interaction/action/element/single-active.d.ts +0 -13
- package/lib/interaction/action/element/single-active.js +0 -25
- package/lib/interaction/action/element/single-active.js.map +0 -1
- package/lib/interaction/action/element/single-highlight.d.ts +0 -16
- package/lib/interaction/action/element/single-highlight.js +0 -37
- package/lib/interaction/action/element/single-highlight.js.map +0 -1
- package/lib/interaction/action/element/single-selected.d.ts +0 -13
- package/lib/interaction/action/element/single-selected.js +0 -25
- package/lib/interaction/action/element/single-selected.js.map +0 -1
- package/lib/interaction/action/element/single-state.d.ts +0 -18
- package/lib/interaction/action/element/single-state.js +0 -55
- package/lib/interaction/action/element/single-state.js.map +0 -1
- package/lib/interaction/action/element/state-base.d.ts +0 -39
- package/lib/interaction/action/element/state-base.js +0 -61
- package/lib/interaction/action/element/state-base.js.map +0 -1
- package/lib/interaction/action/element/state.d.ts +0 -28
- package/lib/interaction/action/element/state.js +0 -101
- package/lib/interaction/action/element/state.js.map +0 -1
- package/lib/interaction/action/mask/base.d.ts +0 -62
- package/lib/interaction/action/mask/base.js +0 -171
- package/lib/interaction/action/mask/base.js.map +0 -1
- package/lib/interaction/action/mask/circle.d.ts +0 -14
- package/lib/interaction/action/mask/circle.js +0 -39
- package/lib/interaction/action/mask/circle.js.map +0 -1
- package/lib/interaction/action/mask/dim-rect.d.ts +0 -11
- package/lib/interaction/action/mask/dim-rect.js +0 -64
- package/lib/interaction/action/mask/dim-rect.js.map +0 -1
- package/lib/interaction/action/mask/path.d.ts +0 -16
- package/lib/interaction/action/mask/path.js +0 -46
- package/lib/interaction/action/mask/path.js.map +0 -1
- package/lib/interaction/action/mask/rect.d.ts +0 -17
- package/lib/interaction/action/mask/rect.js +0 -41
- package/lib/interaction/action/mask/rect.js.map +0 -1
- package/lib/interaction/action/mask/smooth-path.d.ts +0 -9
- package/lib/interaction/action/mask/smooth-path.js +0 -23
- package/lib/interaction/action/mask/smooth-path.js.map +0 -1
- package/lib/interaction/action/register.d.ts +0 -36
- package/lib/interaction/action/register.js +0 -69
- package/lib/interaction/action/register.js.map +0 -1
- package/lib/interaction/action/util.d.ts +0 -140
- package/lib/interaction/action/util.js +0 -387
- package/lib/interaction/action/util.js.map +0 -1
- package/lib/interaction/action/view/button.d.ts +0 -25
- package/lib/interaction/action/view/button.js +0 -118
- package/lib/interaction/action/view/button.js.map +0 -1
- package/lib/interaction/action/view/drag.d.ts +0 -24
- package/lib/interaction/action/view/drag.js +0 -75
- package/lib/interaction/action/view/drag.js.map +0 -1
- package/lib/interaction/action/view/mousewheel-scroll.d.ts +0 -5
- package/lib/interaction/action/view/mousewheel-scroll.js +0 -37
- package/lib/interaction/action/view/mousewheel-scroll.js.map +0 -1
- package/lib/interaction/action/view/move.d.ts +0 -28
- package/lib/interaction/action/view/move.js +0 -82
- package/lib/interaction/action/view/move.js.map +0 -1
- package/lib/interaction/action/view/scale-transform.d.ts +0 -18
- package/lib/interaction/action/view/scale-transform.js +0 -53
- package/lib/interaction/action/view/scale-transform.js.map +0 -1
- package/lib/interaction/action/view/scale-translate.d.ts +0 -30
- package/lib/interaction/action/view/scale-translate.js +0 -114
- package/lib/interaction/action/view/scale-translate.js.map +0 -1
- package/lib/interaction/action/view/scale-zoom.d.ts +0 -20
- package/lib/interaction/action/view/scale-zoom.js +0 -85
- package/lib/interaction/action/view/scale-zoom.js.map +0 -1
- package/lib/interaction/context.d.ts +0 -65
- package/lib/interaction/context.js +0 -144
- package/lib/interaction/context.js.map +0 -1
- package/lib/interaction/grammar-interaction.d.ts +0 -158
- package/lib/interaction/grammar-interaction.js +0 -289
- package/lib/interaction/grammar-interaction.js.map +0 -1
- package/lib/interaction/interaction.d.ts +0 -29
- package/lib/interaction/interaction.js +0 -34
- package/lib/interaction/interaction.js.map +0 -1
- package/lib/interface.d.ts +0 -3686
- package/lib/interface.js +0 -3
- package/lib/interface.js.map +0 -1
- package/lib/theme/style-sheet/dark.d.ts +0 -545
- package/lib/theme/style-sheet/dark.js +0 -504
- package/lib/theme/style-sheet/dark.js.map +0 -1
- package/lib/theme/style-sheet/light.d.ts +0 -541
- package/lib/theme/style-sheet/light.js +0 -500
- package/lib/theme/style-sheet/light.js.map +0 -1
- package/lib/theme/util/create-by-style-sheet.d.ts +0 -6
- package/lib/theme/util/create-by-style-sheet.js +0 -1429
- package/lib/theme/util/create-by-style-sheet.js.map +0 -1
- package/lib/theme/util/create-theme.d.ts +0 -6
- package/lib/theme/util/create-theme.js +0 -16
- package/lib/theme/util/create-theme.js.map +0 -1
- package/lib/theme/util/index.d.ts +0 -1
- package/lib/theme/util/index.js +0 -6
- package/lib/theme/util/index.js.map +0 -1
- package/lib/util/annotation.d.ts +0 -7
- package/lib/util/annotation.js +0 -43
- package/lib/util/annotation.js.map +0 -1
- package/lib/util/attr.d.ts +0 -10
- package/lib/util/attr.js +0 -29
- package/lib/util/attr.js.map +0 -1
- package/lib/util/axis.d.ts +0 -100
- package/lib/util/axis.js +0 -251
- package/lib/util/axis.js.map +0 -1
- package/lib/util/bbox.d.ts +0 -105
- package/lib/util/bbox.js +0 -288
- package/lib/util/bbox.js.map +0 -1
- package/lib/util/collision-detect.d.ts +0 -20
- package/lib/util/collision-detect.js +0 -134
- package/lib/util/collision-detect.js.map +0 -1
- package/lib/util/color.d.ts +0 -1
- package/lib/util/color.js +0 -23
- package/lib/util/color.js.map +0 -1
- package/lib/util/context.d.ts +0 -4
- package/lib/util/context.js +0 -15
- package/lib/util/context.js.map +0 -1
- package/lib/util/coordinate.d.ts +0 -86
- package/lib/util/coordinate.js +0 -157
- package/lib/util/coordinate.js.map +0 -1
- package/lib/util/direction.d.ts +0 -19
- package/lib/util/direction.js +0 -125
- package/lib/util/direction.js.map +0 -1
- package/lib/util/dom.d.ts +0 -19
- package/lib/util/dom.js +0 -68
- package/lib/util/dom.js.map +0 -1
- package/lib/util/event.d.ts +0 -8
- package/lib/util/event.js +0 -18
- package/lib/util/event.js.map +0 -1
- package/lib/util/facet.d.ts +0 -16
- package/lib/util/facet.js +0 -48
- package/lib/util/facet.js.map +0 -1
- package/lib/util/graphics.d.ts +0 -58
- package/lib/util/graphics.js +0 -212
- package/lib/util/graphics.js.map +0 -1
- package/lib/util/grid.d.ts +0 -36
- package/lib/util/grid.js +0 -125
- package/lib/util/grid.js.map +0 -1
- package/lib/util/helper.d.ts +0 -34
- package/lib/util/helper.js +0 -90
- package/lib/util/helper.js.map +0 -1
- package/lib/util/legend.d.ts +0 -45
- package/lib/util/legend.js +0 -152
- package/lib/util/legend.js.map +0 -1
- package/lib/util/marker.d.ts +0 -10
- package/lib/util/marker.js +0 -61
- package/lib/util/marker.js.map +0 -1
- package/lib/util/padding.d.ts +0 -14
- package/lib/util/padding.js +0 -45
- package/lib/util/padding.js.map +0 -1
- package/lib/util/scale.d.ts +0 -42
- package/lib/util/scale.js +0 -138
- package/lib/util/scale.js.map +0 -1
- package/lib/util/stat.d.ts +0 -10
- package/lib/util/stat.js +0 -41
- package/lib/util/stat.js.map +0 -1
- package/lib/util/text.d.ts +0 -23
- package/lib/util/text.js +0 -88
- package/lib/util/text.js.map +0 -1
- package/lib/util/tooltip.d.ts +0 -26
- package/lib/util/tooltip.js +0 -476
- package/lib/util/tooltip.js.map +0 -1
- package/lib/util/transform.d.ts +0 -33
- package/lib/util/transform.js +0 -69
- package/lib/util/transform.js.map +0 -1
- package/lib/util/types.d.ts +0 -6
- package/lib/util/types.js.map +0 -1
- package/src/animate/animation/fade.ts +0 -52
- package/src/animate/animation/grow-in.ts +0 -44
- package/src/animate/animation/index.ts +0 -29
- package/src/animate/animation/path-in.ts +0 -24
- package/src/animate/animation/position-update.ts +0 -33
- package/src/animate/animation/scale-in.ts +0 -75
- package/src/animate/animation/sector-path-update.ts +0 -158
- package/src/animate/animation/util.ts +0 -104
- package/src/animate/animation/wave-in.ts +0 -37
- package/src/animate/animation/zoom.ts +0 -78
- package/src/animate/index.ts +0 -268
- package/src/animate/interface.ts +0 -19
- package/src/api.ts +0 -3
- package/src/base.ts +0 -61
- package/src/chart/chart.ts +0 -218
- package/src/chart/controller/annotation.ts +0 -759
- package/src/chart/controller/axis.ts +0 -699
- package/src/chart/controller/base.ts +0 -105
- package/src/chart/controller/coordinate.ts +0 -177
- package/src/chart/controller/gesture.ts +0 -293
- package/src/chart/controller/index.ts +0 -39
- package/src/chart/controller/legend.ts +0 -566
- package/src/chart/controller/scrollbar.ts +0 -392
- package/src/chart/controller/slider.ts +0 -360
- package/src/chart/controller/tooltip.ts +0 -745
- package/src/chart/event.ts +0 -86
- package/src/chart/index.ts +0 -5
- package/src/chart/layout/auto.ts +0 -76
- package/src/chart/layout/constraint/bounds.ts +0 -51
- package/src/chart/layout/constraint/constraint.ts +0 -97
- package/src/chart/layout/constraint/gauss.ts +0 -71
- package/src/chart/layout/constraint/index.ts +0 -30
- package/src/chart/layout/constraint/solver.ts +0 -97
- package/src/chart/layout/constraint/types.ts +0 -29
- package/src/chart/layout/constraint/variable.ts +0 -33
- package/src/chart/layout/index.ts +0 -33
- package/src/chart/layout/padding-cal.ts +0 -123
- package/src/chart/util/scale-pool.ts +0 -250
- package/src/chart/util/sync-view-padding.ts +0 -17
- package/src/chart/view.ts +0 -2112
- package/src/component/labels.ts +0 -330
- package/src/component/update-label.ts +0 -69
- package/src/constant.ts +0 -143
- package/src/core.ts +0 -81
- package/src/dependents.ts +0 -99
- package/src/engine/index.ts +0 -27
- package/src/facet/circle.ts +0 -135
- package/src/facet/facet.ts +0 -373
- package/src/facet/index.ts +0 -25
- package/src/facet/list.ts +0 -167
- package/src/facet/matrix.ts +0 -149
- package/src/facet/mirror.ts +0 -167
- package/src/facet/rect.ts +0 -177
- package/src/facet/tree.ts +0 -317
- package/src/geometry/area.ts +0 -76
- package/src/geometry/base.ts +0 -2145
- package/src/geometry/edge.ts +0 -16
- package/src/geometry/element/index.ts +0 -519
- package/src/geometry/heatmap.ts +0 -223
- package/src/geometry/interval.ts +0 -109
- package/src/geometry/label/base.ts +0 -458
- package/src/geometry/label/index.ts +0 -59
- package/src/geometry/label/interface.ts +0 -61
- package/src/geometry/label/interval.ts +0 -160
- package/src/geometry/label/layout/adjust-color.ts +0 -40
- package/src/geometry/label/layout/hide-overlap.ts +0 -85
- package/src/geometry/label/layout/interval/adjust-position.ts +0 -72
- package/src/geometry/label/layout/interval/hide-overlap.ts +0 -86
- package/src/geometry/label/layout/limit-in-canvas.ts +0 -48
- package/src/geometry/label/layout/limit-in-plot.ts +0 -99
- package/src/geometry/label/layout/limit-in-shape.ts +0 -22
- package/src/geometry/label/layout/overlap.ts +0 -251
- package/src/geometry/label/layout/path/adjust-position.ts +0 -129
- package/src/geometry/label/layout/pie/distribute.ts +0 -203
- package/src/geometry/label/layout/pie/outer.ts +0 -247
- package/src/geometry/label/layout/pie/spider.ts +0 -201
- package/src/geometry/label/layout/pie/util.ts +0 -85
- package/src/geometry/label/layout/point/adjust-position.ts +0 -129
- package/src/geometry/label/layout/worker/hide-overlap.ts +0 -192
- package/src/geometry/label/pie.ts +0 -97
- package/src/geometry/label/polar.ts +0 -225
- package/src/geometry/label/util/createWorker.ts +0 -15
- package/src/geometry/label/util/index.ts +0 -81
- package/src/geometry/line.ts +0 -18
- package/src/geometry/path.ts +0 -140
- package/src/geometry/point.ts +0 -28
- package/src/geometry/polygon.ts +0 -55
- package/src/geometry/schema.ts +0 -43
- package/src/geometry/shape/area/index.ts +0 -49
- package/src/geometry/shape/area/line.ts +0 -33
- package/src/geometry/shape/area/smooth-line.ts +0 -33
- package/src/geometry/shape/area/smooth.ts +0 -34
- package/src/geometry/shape/area/util.ts +0 -111
- package/src/geometry/shape/base.ts +0 -191
- package/src/geometry/shape/constant.ts +0 -4
- package/src/geometry/shape/edge/arc.ts +0 -104
- package/src/geometry/shape/edge/index.ts +0 -38
- package/src/geometry/shape/edge/smooth.ts +0 -37
- package/src/geometry/shape/edge/util.ts +0 -36
- package/src/geometry/shape/edge/vhv.ts +0 -51
- package/src/geometry/shape/interval/funnel.ts +0 -36
- package/src/geometry/shape/interval/hollow-rect.ts +0 -62
- package/src/geometry/shape/interval/index.ts +0 -77
- package/src/geometry/shape/interval/line.ts +0 -63
- package/src/geometry/shape/interval/pyramid.ts +0 -37
- package/src/geometry/shape/interval/tick.ts +0 -86
- package/src/geometry/shape/interval/util.ts +0 -348
- package/src/geometry/shape/line/index.ts +0 -141
- package/src/geometry/shape/line/step.ts +0 -97
- package/src/geometry/shape/line/util.ts +0 -85
- package/src/geometry/shape/point/hollow.ts +0 -27
- package/src/geometry/shape/point/image.ts +0 -51
- package/src/geometry/shape/point/index.ts +0 -37
- package/src/geometry/shape/point/solid.ts +0 -26
- package/src/geometry/shape/point/util.ts +0 -54
- package/src/geometry/shape/polygon/index.ts +0 -78
- package/src/geometry/shape/polygon/square.ts +0 -52
- package/src/geometry/shape/schema/box.ts +0 -154
- package/src/geometry/shape/schema/candle.ts +0 -90
- package/src/geometry/shape/schema/index.ts +0 -7
- package/src/geometry/shape/util/get-path-points.ts +0 -136
- package/src/geometry/shape/util/get-style.ts +0 -56
- package/src/geometry/shape/util/path.ts +0 -348
- package/src/geometry/shape/util/split-points.ts +0 -26
- package/src/geometry/shape/violin/hollow.ts +0 -59
- package/src/geometry/shape/violin/index.ts +0 -69
- package/src/geometry/shape/violin/smooth.ts +0 -32
- package/src/geometry/util/diff.ts +0 -29
- package/src/geometry/util/get-shape-type.ts +0 -17
- package/src/geometry/util/group-data.ts +0 -30
- package/src/geometry/util/is-model-change.ts +0 -18
- package/src/geometry/util/parse-fields.ts +0 -10
- package/src/geometry/util/shape-size.ts +0 -128
- package/src/geometry/violin.ts +0 -64
- package/src/interaction/action/active-region.ts +0 -216
- package/src/interaction/action/base.ts +0 -49
- package/src/interaction/action/callback.ts +0 -25
- package/src/interaction/action/component/axis/axis-description.ts +0 -84
- package/src/interaction/action/component/list-active.ts +0 -18
- package/src/interaction/action/component/list-checked.ts +0 -84
- package/src/interaction/action/component/list-focus.ts +0 -36
- package/src/interaction/action/component/list-highlight-util.ts +0 -22
- package/src/interaction/action/component/list-highlight.ts +0 -93
- package/src/interaction/action/component/list-radio.ts +0 -128
- package/src/interaction/action/component/list-selected.ts +0 -14
- package/src/interaction/action/component/list-state.ts +0 -175
- package/src/interaction/action/component/list-unchecked.ts +0 -17
- package/src/interaction/action/component/tooltip/ellipsis-text.ts +0 -102
- package/src/interaction/action/component/tooltip/geometry.ts +0 -77
- package/src/interaction/action/component/tooltip/sibling.ts +0 -36
- package/src/interaction/action/cursor.ts +0 -117
- package/src/interaction/action/data/filter.ts +0 -59
- package/src/interaction/action/data/range-filter.ts +0 -173
- package/src/interaction/action/data/sibling-filter.ts +0 -38
- package/src/interaction/action/element/active.ts +0 -18
- package/src/interaction/action/element/filter.ts +0 -88
- package/src/interaction/action/element/highlight-by-color.ts +0 -26
- package/src/interaction/action/element/highlight-by-x.ts +0 -48
- package/src/interaction/action/element/highlight-util.ts +0 -50
- package/src/interaction/action/element/highlight.ts +0 -93
- package/src/interaction/action/element/link-by-color.ts +0 -161
- package/src/interaction/action/element/range-active.ts +0 -17
- package/src/interaction/action/element/range-highlight.ts +0 -54
- package/src/interaction/action/element/range-selected.ts +0 -17
- package/src/interaction/action/element/range-state.ts +0 -162
- package/src/interaction/action/element/selected.ts +0 -18
- package/src/interaction/action/element/sibling-filter.ts +0 -85
- package/src/interaction/action/element/single-active.ts +0 -17
- package/src/interaction/action/element/single-highlight.ts +0 -33
- package/src/interaction/action/element/single-selected.ts +0 -17
- package/src/interaction/action/element/single-state.ts +0 -49
- package/src/interaction/action/element/state-base.ts +0 -63
- package/src/interaction/action/element/state.ts +0 -110
- package/src/interaction/action/mask/base.ts +0 -182
- package/src/interaction/action/mask/circle.ts +0 -31
- package/src/interaction/action/mask/dim-rect.ts +0 -57
- package/src/interaction/action/mask/path.ts +0 -40
- package/src/interaction/action/mask/rect.ts +0 -34
- package/src/interaction/action/mask/smooth-path.ts +0 -16
- package/src/interaction/action/register.ts +0 -76
- package/src/interaction/action/util.ts +0 -386
- package/src/interaction/action/view/button.ts +0 -125
- package/src/interaction/action/view/drag.ts +0 -73
- package/src/interaction/action/view/mousewheel-scroll.ts +0 -38
- package/src/interaction/action/view/move.ts +0 -79
- package/src/interaction/action/view/scale-transform.ts +0 -49
- package/src/interaction/action/view/scale-translate.ts +0 -111
- package/src/interaction/action/view/scale-zoom.ts +0 -80
- package/src/interaction/context.ts +0 -150
- package/src/interaction/grammar-interaction.ts +0 -417
- package/src/interaction/interaction.ts +0 -43
- package/src/interface.ts +0 -3956
- package/src/theme/style-sheet/dark.ts +0 -564
- package/src/theme/style-sheet/light.ts +0 -560
- package/src/theme/util/create-by-style-sheet.ts +0 -1461
- package/src/theme/util/create-theme.ts +0 -17
- package/src/theme/util/index.ts +0 -1
- package/src/util/annotation.ts +0 -42
- package/src/util/attr.ts +0 -26
- package/src/util/axis.ts +0 -261
- package/src/util/bbox.ts +0 -271
- package/src/util/collision-detect.ts +0 -163
- package/src/util/color.ts +0 -21
- package/src/util/context.ts +0 -12
- package/src/util/coordinate.ts +0 -160
- package/src/util/direction.ts +0 -138
- package/src/util/dom.ts +0 -73
- package/src/util/event.ts +0 -14
- package/src/util/facet.ts +0 -48
- package/src/util/graphics.ts +0 -236
- package/src/util/grid.ts +0 -135
- package/src/util/helper.ts +0 -74
- package/src/util/legend.ts +0 -174
- package/src/util/marker.ts +0 -57
- package/src/util/padding.ts +0 -42
- package/src/util/scale.ts +0 -146
- package/src/util/stat.ts +0 -45
- package/src/util/text.ts +0 -106
- package/src/util/tooltip.ts +0 -482
- package/src/util/transform.ts +0 -69
- package/src/util/types.ts +0 -4
package/dist/g2.min.js
CHANGED
|
@@ -1,16 +1,10 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.G2=e():t.G2=e()}(window,(function(){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=232)}([function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldIn=e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArray=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};e.__extends=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||(0,e.__createBinding)(n,t,r)},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__spreadArray=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||l(t,e)}))})}function l(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function f(t,e){t(e),a.shift(),a.length&&l(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t};var l=Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e};e.__importStar=function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&(0,e.__createBinding)(n,t,r);return l(n,t),n},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(t):r?r.value:e.get(t)},e.__classPrivateFieldSet=function(t,e,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(t,n):i?i.value=n:e.set(t,n),n},e.__classPrivateFieldIn=function(t,e){if(null===e||"object"!==r(e)&&"function"!=typeof e)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof t?e===t:t.has(e)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.has=e.forIn=e.toRadian=e.toInteger=e.toDegree=e.mod=e.minBy=e.min=e.maxBy=e.max=e.isPositive=e.isOdd=e.isNumberEqual=e.isNegative=e.isInteger=e.isEven=e.isDecimal=e.fixedBase=e.clamp=e.parseRadius=e.number2color=e.wrapBehavior=e.getWrapBehavior=e.groupToMap=e.groupBy=e.group=e.some=e.every=e.filter=e.endsWith=e.startsWith=e.last=e.head=e.valuesOfKey=e.uniq=e.union=e.sortBy=e.remove=e.reduce=e.pullAt=e.pull=e.getRange=e.flattenDeep=e.flatten=e.firstValue=e.findIndex=e.find=e.difference=e.includes=e.contains=void 0,e.set=e.get=e.assign=e.mix=e.mapValues=e.map=e.isEqualWith=e.isEqual=e.isEmpty=e.indexOf=e.extend=e.each=e.deepMix=e.memoize=e.debounce=e.clone=e.augment=e.clearAnimationFrame=e.requestAnimationFrame=e.isElement=e.isUndefined=e.isType=e.isString=e.isRegExp=e.isPrototype=e.isPlainObject=e.isObjectLike=e.isObject=e.isNumber=e.isNull=e.isNil=e.isFinite=e.isFunction=e.isError=e.isDate=e.isBoolean=e.isArrayLike=e.isArray=e.isArguments=e.getType=e.upperFirst=e.upperCase=e.substitute=e.lowerFirst=e.lowerCase=e.values=e.isMatch=e.keys=e.hasValue=e.hasKey=void 0,e.Cache=e.getEllipsisText=e.measureTextWidth=e.size=e.identity=e.noop=e.uniqueId=e.toString=e.toArray=e.throttle=e.omit=e.pick=void 0;var i=n(84);Object.defineProperty(e,"contains",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(e,"includes",{enumerable:!0,get:function(){return r(i).default}});var a=n(234);Object.defineProperty(e,"difference",{enumerable:!0,get:function(){return r(a).default}});var o=n(235);Object.defineProperty(e,"find",{enumerable:!0,get:function(){return r(o).default}});var s=n(236);Object.defineProperty(e,"findIndex",{enumerable:!0,get:function(){return r(s).default}});var l=n(237);Object.defineProperty(e,"firstValue",{enumerable:!0,get:function(){return r(l).default}});var u=n(238);Object.defineProperty(e,"flatten",{enumerable:!0,get:function(){return r(u).default}});var c=n(239);Object.defineProperty(e,"flattenDeep",{enumerable:!0,get:function(){return r(c).default}});var f=n(240);Object.defineProperty(e,"getRange",{enumerable:!0,get:function(){return r(f).default}});var h=n(241);Object.defineProperty(e,"pull",{enumerable:!0,get:function(){return r(h).default}});var p=n(139);Object.defineProperty(e,"pullAt",{enumerable:!0,get:function(){return r(p).default}});var d=n(140);Object.defineProperty(e,"reduce",{enumerable:!0,get:function(){return r(d).default}});var g=n(242);Object.defineProperty(e,"remove",{enumerable:!0,get:function(){return r(g).default}});var y=n(243);Object.defineProperty(e,"sortBy",{enumerable:!0,get:function(){return r(y).default}});var v=n(244);Object.defineProperty(e,"union",{enumerable:!0,get:function(){return r(v).default}});var m=n(141);Object.defineProperty(e,"uniq",{enumerable:!0,get:function(){return r(m).default}});var _=n(245);Object.defineProperty(e,"valuesOfKey",{enumerable:!0,get:function(){return r(_).default}});var x=n(246);Object.defineProperty(e,"head",{enumerable:!0,get:function(){return r(x).default}});var b=n(247);Object.defineProperty(e,"last",{enumerable:!0,get:function(){return r(b).default}});var M=n(248);Object.defineProperty(e,"startsWith",{enumerable:!0,get:function(){return r(M).default}});var C=n(249);Object.defineProperty(e,"endsWith",{enumerable:!0,get:function(){return r(C).default}});var P=n(134);Object.defineProperty(e,"filter",{enumerable:!0,get:function(){return r(P).default}});var S=n(250);Object.defineProperty(e,"every",{enumerable:!0,get:function(){return r(S).default}});var O=n(251);Object.defineProperty(e,"some",{enumerable:!0,get:function(){return r(O).default}});var w=n(252);Object.defineProperty(e,"group",{enumerable:!0,get:function(){return r(w).default}});var A=n(143);Object.defineProperty(e,"groupBy",{enumerable:!0,get:function(){return r(A).default}});var T=n(142);Object.defineProperty(e,"groupToMap",{enumerable:!0,get:function(){return r(T).default}});var E=n(253);Object.defineProperty(e,"getWrapBehavior",{enumerable:!0,get:function(){return r(E).default}});var I=n(254);Object.defineProperty(e,"wrapBehavior",{enumerable:!0,get:function(){return r(I).default}});var L=n(255);Object.defineProperty(e,"number2color",{enumerable:!0,get:function(){return r(L).default}});var D=n(256);Object.defineProperty(e,"parseRadius",{enumerable:!0,get:function(){return r(D).default}});var B=n(257);Object.defineProperty(e,"clamp",{enumerable:!0,get:function(){return r(B).default}});var j=n(258);Object.defineProperty(e,"fixedBase",{enumerable:!0,get:function(){return r(j).default}});var R=n(259);Object.defineProperty(e,"isDecimal",{enumerable:!0,get:function(){return r(R).default}});var k=n(260);Object.defineProperty(e,"isEven",{enumerable:!0,get:function(){return r(k).default}});var F=n(261);Object.defineProperty(e,"isInteger",{enumerable:!0,get:function(){return r(F).default}});var N=n(262);Object.defineProperty(e,"isNegative",{enumerable:!0,get:function(){return r(N).default}});var G=n(263);Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r(G).default}});var Y=n(264);Object.defineProperty(e,"isOdd",{enumerable:!0,get:function(){return r(Y).default}});var V=n(265);Object.defineProperty(e,"isPositive",{enumerable:!0,get:function(){return r(V).default}});var H=n(137);Object.defineProperty(e,"max",{enumerable:!0,get:function(){return r(H).default}});var z=n(266);Object.defineProperty(e,"maxBy",{enumerable:!0,get:function(){return r(z).default}});var X=n(138);Object.defineProperty(e,"min",{enumerable:!0,get:function(){return r(X).default}});var W=n(267);Object.defineProperty(e,"minBy",{enumerable:!0,get:function(){return r(W).default}});var q=n(268);Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r(q).default}});var U=n(269);Object.defineProperty(e,"toDegree",{enumerable:!0,get:function(){return r(U).default}});var Z=n(270);Object.defineProperty(e,"toInteger",{enumerable:!0,get:function(){return r(Z).default}});var Q=n(271);Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r(Q).default}});var K=n(272);Object.defineProperty(e,"forIn",{enumerable:!0,get:function(){return r(K).default}});var $=n(144);Object.defineProperty(e,"has",{enumerable:!0,get:function(){return r($).default}});var J=n(273);Object.defineProperty(e,"hasKey",{enumerable:!0,get:function(){return r(J).default}});var tt=n(274);Object.defineProperty(e,"hasValue",{enumerable:!0,get:function(){return r(tt).default}});var et=n(136);Object.defineProperty(e,"keys",{enumerable:!0,get:function(){return r(et).default}});var nt=n(135);Object.defineProperty(e,"isMatch",{enumerable:!0,get:function(){return r(nt).default}});var rt=n(86);Object.defineProperty(e,"values",{enumerable:!0,get:function(){return r(rt).default}});var it=n(275);Object.defineProperty(e,"lowerCase",{enumerable:!0,get:function(){return r(it).default}});var at=n(276);Object.defineProperty(e,"lowerFirst",{enumerable:!0,get:function(){return r(at).default}});var ot=n(277);Object.defineProperty(e,"substitute",{enumerable:!0,get:function(){return r(ot).default}});var st=n(278);Object.defineProperty(e,"upperCase",{enumerable:!0,get:function(){return r(st).default}});var lt=n(279);Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r(lt).default}});var ut=n(145);Object.defineProperty(e,"getType",{enumerable:!0,get:function(){return r(ut).default}});var ct=n(280);Object.defineProperty(e,"isArguments",{enumerable:!0,get:function(){return r(ct).default}});var ft=n(7);Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r(ft).default}});var ht=n(17);Object.defineProperty(e,"isArrayLike",{enumerable:!0,get:function(){return r(ht).default}});var pt=n(281);Object.defineProperty(e,"isBoolean",{enumerable:!0,get:function(){return r(pt).default}});var dt=n(282);Object.defineProperty(e,"isDate",{enumerable:!0,get:function(){return r(dt).default}});var gt=n(283);Object.defineProperty(e,"isError",{enumerable:!0,get:function(){return r(gt).default}});var yt=n(18);Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r(yt).default}});var vt=n(284);Object.defineProperty(e,"isFinite",{enumerable:!0,get:function(){return r(vt).default}});var mt=n(35);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r(mt).default}});var _t=n(285);Object.defineProperty(e,"isNull",{enumerable:!0,get:function(){return r(_t).default}});var xt=n(31);Object.defineProperty(e,"isNumber",{enumerable:!0,get:function(){return r(xt).default}});var bt=n(66);Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r(bt).default}});var Mt=n(85);Object.defineProperty(e,"isObjectLike",{enumerable:!0,get:function(){return r(Mt).default}});var Ct=n(57);Object.defineProperty(e,"isPlainObject",{enumerable:!0,get:function(){return r(Ct).default}});var Pt=n(146);Object.defineProperty(e,"isPrototype",{enumerable:!0,get:function(){return r(Pt).default}});var St=n(286);Object.defineProperty(e,"isRegExp",{enumerable:!0,get:function(){return r(St).default}});var Ot=n(30);Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r(Ot).default}});var wt=n(24);Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return r(wt).default}});var At=n(287);Object.defineProperty(e,"isUndefined",{enumerable:!0,get:function(){return r(At).default}});var Tt=n(288);Object.defineProperty(e,"isElement",{enumerable:!0,get:function(){return r(Tt).default}});var Et=n(289);Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r(Et).default}});var It=n(290);Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r(It).default}});var Lt=n(291);Object.defineProperty(e,"augment",{enumerable:!0,get:function(){return r(Lt).default}});var Dt=n(292);Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return r(Dt).default}});var Bt=n(293);Object.defineProperty(e,"debounce",{enumerable:!0,get:function(){return r(Bt).default}});var jt=n(147);Object.defineProperty(e,"memoize",{enumerable:!0,get:function(){return r(jt).default}});var Rt=n(294);Object.defineProperty(e,"deepMix",{enumerable:!0,get:function(){return r(Rt).default}});var kt=n(45);Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r(kt).default}});var Ft=n(295);Object.defineProperty(e,"extend",{enumerable:!0,get:function(){return r(Ft).default}});var Nt=n(296);Object.defineProperty(e,"indexOf",{enumerable:!0,get:function(){return r(Nt).default}});var Gt=n(297);Object.defineProperty(e,"isEmpty",{enumerable:!0,get:function(){return r(Gt).default}});var Yt=n(148);Object.defineProperty(e,"isEqual",{enumerable:!0,get:function(){return r(Yt).default}});var Vt=n(298);Object.defineProperty(e,"isEqualWith",{enumerable:!0,get:function(){return r(Vt).default}});var Ht=n(299);Object.defineProperty(e,"map",{enumerable:!0,get:function(){return r(Ht).default}});var zt=n(300);Object.defineProperty(e,"mapValues",{enumerable:!0,get:function(){return r(zt).default}});var Xt=n(87);Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r(Xt).default}}),Object.defineProperty(e,"assign",{enumerable:!0,get:function(){return r(Xt).default}});var Wt=n(301);Object.defineProperty(e,"get",{enumerable:!0,get:function(){return r(Wt).default}});var qt=n(302);Object.defineProperty(e,"set",{enumerable:!0,get:function(){return r(qt).default}});var Ut=n(303);Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return r(Ut).default}});var Zt=n(304);Object.defineProperty(e,"omit",{enumerable:!0,get:function(){return r(Zt).default}});var Qt=n(305);Object.defineProperty(e,"throttle",{enumerable:!0,get:function(){return r(Qt).default}});var Kt=n(306);Object.defineProperty(e,"toArray",{enumerable:!0,get:function(){return r(Kt).default}});var $t=n(46);Object.defineProperty(e,"toString",{enumerable:!0,get:function(){return r($t).default}});var Jt=n(307);Object.defineProperty(e,"uniqueId",{enumerable:!0,get:function(){return r(Jt).default}});var te=n(308);Object.defineProperty(e,"noop",{enumerable:!0,get:function(){return r(te).default}});var ee=n(309);Object.defineProperty(e,"identity",{enumerable:!0,get:function(){return r(ee).default}});var ne=n(310);Object.defineProperty(e,"size",{enumerable:!0,get:function(){return r(ne).default}});var re=n(149);Object.defineProperty(e,"measureTextWidth",{enumerable:!0,get:function(){return r(re).default}});var ie=n(311);Object.defineProperty(e,"getEllipsisText",{enumerable:!0,get:function(){return r(ie).default}});var ae=n(312);Object.defineProperty(e,"Cache",{enumerable:!0,get:function(){return r(ae).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.COMPONENT_MAX_VIEW_PERCENTAGE=e.MIN_CHART_HEIGHT=e.MIN_CHART_WIDTH=e.FIELD_ORIGIN=e.GROUP_ATTRS=e.ELEMENT_STATE=e.PLOT_EVENTS=e.GEOMETRY_LIFE_CIRCLE=e.VIEW_LIFE_CIRCLE=e.GROUP_Z_INDEX=e.COMPONENT_TYPE=e.DIRECTION=e.LAYER=void 0,function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(e.LAYER||(e.LAYER={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(e.DIRECTION||(e.DIRECTION={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(e.COMPONENT_TYPE||(e.COMPONENT_TYPE={})),e.GROUP_Z_INDEX={FORE:3,MID:2,BG:1},function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(e.VIEW_LIFE_CIRCLE||(e.VIEW_LIFE_CIRCLE={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(e.GEOMETRY_LIFE_CIRCLE||(e.GEOMETRY_LIFE_CIRCLE={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(e.PLOT_EVENTS||(e.PLOT_EVENTS={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(e.ELEMENT_STATE||(e.ELEMENT_STATE={})),e.GROUP_ATTRS=["color","shape","size"],e.FIELD_ORIGIN="_origin",e.MIN_CHART_WIDTH=1,e.MIN_CHART_HEIGHT=1,e.COMPONENT_MAX_VIEW_PERCENTAGE=.25},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShapeFactory=e.registerShape=e.registerShapeFactory=void 0;var r=n(0),i=n(50),a=n(1),o=n(52),s={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return(0,a.get)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=(0,a.get)(i,[t,"default"],{}),s=n.getMarker(e);return(0,a.deepMix)({},o,s)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},l={coordinate:null,parsePath:function(t){var e=this.coordinate,n=(0,i.parsePathString)(t);return n=e.isPolar?(0,o.convertPolarPath)(e,n):(0,o.convertNormalPath)(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},u={};e.registerShapeFactory=function(t,e){var n=(0,a.upperFirst)(t),i=r.__assign(r.__assign(r.__assign({},s),e),{geometryType:t});return u[n]=i,i},e.registerShape=function(t,e,n){var i=(0,a.upperFirst)(t),o=u[i],s=r.__assign(r.__assign({},l),n);return o[e]=s,s},e.getShapeFactory=function(t){var e=(0,a.upperFirst)(t);return u[e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getScaleByField=e.isInRecords=e.getSiblingPoint=e.getSilbings=e.isInBox=e.getSpline=e.distance=e.getComponents=e.getElementsByPath=e.getIntersectElements=e.intersectRect=e.getElementValue=e.getElementsByState=e.getElementsByField=e.getElements=e.getSiblingMaskElements=e.getMaskedElements=e.isMask=e.isSlider=e.isList=e.isElementChange=e.getDelegationObject=e.getCurrentElement=void 0;var r=n(1),i=n(52),a=n(29),o=n(50);function s(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function l(t){var e=t.geometries,n=[];return(0,r.each)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&(0,r.each)(t.views,(function(t){n=n.concat(l(t))})),n}function u(t,e){var n=t.getModel().data;return(0,r.isArray)(n)?n[0][e]:n[e]}function c(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function f(t,e){var n=l(t),i=[];return(0,r.each)(n,(function(t){var n=t.shape.getCanvasBBox();c(e,n)&&i.push(t)})),i}function h(t){var e=[];return(0,r.each)(t,(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function p(t,e){var n=l(t),r=h(e);return n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=h(n.attr("path"));else{var i=n.getCanvasBBox();e=(0,a.toPoints)(i)}return(0,o.isPolygonsIntersect)(r,e)}))}function d(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}e.getCurrentElement=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e},e.getDelegationObject=function(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e},e.isElementChange=function(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))},e.isList=function(t){return t&&t.component&&t.component.isList()},e.isSlider=function(t){return t&&t.component&&t.component.isSlider()},e.isMask=function(t){var e=t.event.target;return e&&"mask"===e.get("name")},e.getMaskedElements=function(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return p(t.view,n)}var r=s(t,e);return r?f(t.view,r):null},e.getSiblingMaskElements=function(t,e,n){var r=s(t,n);if(!r)return null;var i=t.view,a=d(i,e,{x:r.x,y:r.y}),o=d(i,e,{x:r.maxX,y:r.maxY});return f(e,{minX:a.x,minY:a.y,maxX:o.x,maxY:o.y})},e.getElements=l,e.getElementsByField=function(t,e,n){return l(t).filter((function(t){return u(t,e)===n}))},e.getElementsByState=function(t,e){var n=t.geometries,i=[];return(0,r.each)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i},e.getElementValue=u,e.intersectRect=c,e.getIntersectElements=f,e.getElementsByPath=p,e.getComponents=function(t){return t.getComponents().map((function(t){return t.component}))},e.distance=function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)},e.getSpline=function(t,e){if(t.length<=2)return(0,i.getLinePath)(t,!1);var n=t[0],a=[];(0,r.each)(t,(function(t){a.push(t.x),a.push(t.y)}));var o=(0,i.catmullRom2bezier)(a,e,null);return o.unshift(["M",n.x,n.y]),o},e.isInBox=function(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y},e.getSilbings=function(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n},e.getSiblingPoint=d,e.isInRecords=function(t,e,n,i){var a=!1;return(0,r.each)(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return a=!0,!1})),a},e.getScaleByField=function t(e,n){var i=e.getScaleByField(n);return!i&&e.views&&(0,r.each)(e.views,(function(e){if(i=t(e,n))return!1})),i}},function(t,e,n){"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
-
***************************************************************************** */function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.__classPrivateFieldSet=e.__classPrivateFieldGet=e.__importDefault=e.__importStar=e.__makeTemplateObject=e.__asyncValues=e.__asyncDelegator=e.__asyncGenerator=e.__await=e.__spreadArrays=e.__spread=e.__read=e.__values=e.__exportStar=e.__createBinding=e.__generator=e.__awaiter=e.__metadata=e.__param=e.__decorate=e.__rest=e.__assign=e.__extends=void 0;var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};e.__extends=function(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)};function a(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,a=n.call(t),o=[];try{for(;(void 0===e||e-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function s(t){return this instanceof s?(this.v=t,this):new s(t)}e.__assign=function(){return e.__assign=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},e.__assign.apply(this,arguments)},e.__rest=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},e.__decorate=function(t,e,n,i){var a,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,i);else for(var l=t.length-1;l>=0;l--)(a=t[l])&&(s=(o<3?a(s):o>3?a(e,n,s):a(e,n))||s);return o>3&&s&&Object.defineProperty(e,n,s),s},e.__param=function(t,e){return function(n,r){e(n,r,t)}},e.__metadata=function(t,e){if("object"===("undefined"==typeof Reflect?"undefined":r(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},e.__awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(i,a){function o(t){try{l(r.next(t))}catch(t){a(t)}}function s(t){try{l(r.throw(t))}catch(t){a(t)}}function l(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,s)}l((r=r.apply(t,e||[])).next())}))},e.__generator=function(t,e){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=e.call(t,o)}catch(t){a=[6,t],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}},e.__createBinding=function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]},e.__exportStar=function(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])},e.__values=a,e.__read=o,e.__spread=function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t},e.__spreadArrays=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r},e.__await=s,e.__asyncGenerator=function(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(t,e||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(t){i[t]&&(r[t]=function(e){return new Promise((function(n,r){a.push([t,e,n,r])>1||l(t,e)}))})}function l(t,e){try{(n=i[t](e)).value instanceof s?Promise.resolve(n.value.v).then(u,c):f(a[0][2],n)}catch(t){f(a[0][3],t)}var n}function u(t){l("next",t)}function c(t){l("throw",t)}function f(t,e){t(e),a.shift(),a.length&&l(a[0][0],a[0][1])}},e.__asyncDelegator=function(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:s(t[r](e)),done:"return"===r}:i?i(e):e}:i}},e.__asyncValues=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=a(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){(function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)})(r,i,(e=t[n](e)).done,e.value)}))}}},e.__makeTemplateObject=function(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t},e.__importStar=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e},e.__importDefault=function(t){return t&&t.__esModule?t:{default:t}},e.__classPrivateFieldGet=function(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)},e.__classPrivateFieldSet=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getBackgroundRectStyle=e.getStyle=void 0;var r=n(0),i=n(1);e.getStyle=function(t,e,n,a){void 0===a&&(a="");var o=t.style,s=void 0===o?{}:o,l=t.defaultStyle,u=t.color,c=t.size,f=r.__assign(r.__assign({},l),s);return u&&(e&&(s.stroke||(f.stroke=u)),n&&(s.fill||(f.fill=u))),a&&(0,i.isNil)(s[a])&&!(0,i.isNil)(c)&&(f[a]=c),f},e.getBackgroundRectStyle=function(t){return(0,i.deepMix)({},{fill:"#CCD6EC",fillOpacity:.3},(0,i.get)(t,["background","style"]))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return Array.isArray?Array.isArray(t):(0,r.default)(t,"Array")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ext=e.vec3=e.vec2=e.mat3=void 0;var r=n(0),i=n(67);Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var a=r.__importStar(n(327));e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(199),s=n(33),l=n(10),u=r.__importDefault(n(106)),c=["visible","tip","delegateObject"],f=["container","group","shapesMap","isRegister","isUpdating","destroyed"],h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear(),this.get("group").remove()},e.prototype.clear=function(){this.get("group").clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t);return e&&e.get("component")},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return(0,a.each)(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){this.get("group").show(),this.set("visible",!0)},e.prototype.hide=function(){this.get("group").hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){this.get("group").set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=(0,s.applyMatrix2BBox)(n,e)),e},e.prototype.on=function(t,e,n){return this.get("group").on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){this.get("group").emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),(0,o.propagationDelegate)(n,t,e)},e.prototype.createOffScreenGroup=function(){return new(this.get("group").getGroupBase())({delegateObject:this.getDelegateObject()})},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",(0,l.getBBoxWithClip)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,r=e.component,a=(0,i.__rest)(e,["id","component"]),o=new r((0,i.__assign)((0,i.__assign)({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){this.get("group").off()},e.prototype.getElementId=function(t){return this.get("id")+"-"+this.get("name")+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=(0,s.getMatrixByTranslate)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");(0,a.isNil)(r)&&(r=1),e.attr("opacity",0),e.animate({opacity:r},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,r){e.animate(n,r)},e.prototype.updateElements=function(t,e){var n,r=this,i=this.get("animate"),o=this.get("animateOption"),s=t.getChildren().slice(0);(0,a.each)(s,(function(t){var s=t.get("id"),u=r.getElementById(s),h=t.get("name");if(u)if(t.get("isComponent")){var p=t.get("component"),d=u.get("component"),g=(0,a.pick)(p.cfg,(0,a.difference)((0,a.keys)(p.cfg),f));d.update(g),u.set("update_status","update")}else{var y=r.getReplaceAttrs(u,t);i&&o.update?r.updateAnimation(h,u,y,o.update):u.attr(y),t.isGroup()&&r.updateElements(t,u),(0,a.each)(c,(function(e){u.set(e,t.get(e))})),(0,l.updateClip)(u,t),n=u,u.set("update_status","update")}else{e.add(t);var v=e.getChildren();if(v.splice(v.length-1,1),n){var m=v.indexOf(n);v.splice(m+1,0,t)}else v.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(p=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,i){var _=r.get("isInit")?o.appear:o.enter;_&&r.addAnimation(h,t,_)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();(0,a.each)(e,(function(t){t.set("update_status",null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t;return(t={})[this.get("name")]=this,t.component=this,t},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),(0,a.mix)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return(0,a.each)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();(0,a.each)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];(0,a.each)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),i=this.get("animateOption");(0,a.each)(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var l=s.get("name");if(r&&i.leave){var u=(0,a.mix)({callback:function(){t.removeElement(s)}},i.leave);t.removeAnimation(l,s,u)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(u.default);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTextPoint=e.toPx=e.updateClip=e.getBBoxWithClip=e.mergeBBox=e.intersectBBox=e.near=e.wait=e.distance=e.getCirclePoint=e.getValueByPercent=e.createBBox=e.pointsToBBox=e.regionToBBox=e.hasClass=e.clearDom=e.formatPadding=void 0;var r=n(1);function i(t,e,n,r){var i=t+n,a=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(a)?0:a}}function a(t,e,n){return(1-n)*t+e*n}function o(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}e.formatPadding=function(t){var e=0,n=0,i=0,a=0;return(0,r.isNumber)(t)?e=n=i=a=t:(0,r.isArray)(t)&&(e=t[0],i=(0,r.isNil)(t[1])?t[0]:t[1],a=(0,r.isNil)(t[2])?t[0]:t[2],n=(0,r.isNil)(t[3])?i:t[3]),[e,i,a,n]},e.clearDom=function(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])},e.hasClass=function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},e.regionToBBox=function(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.pointsToBBox=function(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),r=Math.min.apply(Math,e),i=Math.min.apply(Math,n),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:a,maxY:o,width:a-r,height:o-i}},e.createBBox=i,e.getValueByPercent=a,e.getCirclePoint=function(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}},e.distance=o;e.wait=function(t){return new Promise((function(e){setTimeout(e,t)}))};function s(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return i(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}e.near=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n},e.intersectBBox=s,e.mergeBBox=function(t,e){var n=Math.min(t.minX,e.minX),r=Math.min(t.minY,e.minY);return i(n,r,Math.max(t.maxX,e.maxX)-n,Math.max(t.maxY,e.maxY)-r)},e.getBBoxWithClip=function t(e){var n,a=e.getClip(),o=a&&a.getBBox();if(e.isGroup()){var l=1/0,u=-1/0,c=1/0,f=-1/0,h=e.getChildren();h.length>0?(0,r.each)(h,(function(e){if(e.get("visible")){if(e.isGroup()&&0===e.get("children").length)return!0;var n=t(e),r=e.applyToMatrix([n.minX,n.minY,1]),i=e.applyToMatrix([n.minX,n.maxY,1]),a=e.applyToMatrix([n.maxX,n.minY,1]),o=e.applyToMatrix([n.maxX,n.maxY,1]),s=Math.min(r[0],i[0],a[0],o[0]),h=Math.max(r[0],i[0],a[0],o[0]),p=Math.min(r[1],i[1],a[1],o[1]),d=Math.max(r[1],i[1],a[1],o[1]);s<l&&(l=s),h>u&&(u=h),p<c&&(c=p),d>f&&(f=d)}})):(l=0,u=0,c=0,f=0),n=i(l,c,u-l,f-c)}else n=e.getBBox();return o?s(n,o):n},e.updateClip=function(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var r={type:n.get("type"),attrs:n.attr()};t.setClip(r)}else t.setClip(null)}},e.toPx=function(t){return t+"px"},e.getTextPoint=function(t,e,n,r){var i=r/o(t,e),s=0;return"start"===n?s=0-i:"end"===n&&(s=1+i),{x:a(t.x,e.x,s),y:a(t.y,e.y,s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){(0,r.assign)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.registerEasing=e.getOffScreenContext=e.invert=e.multiplyVec2=e.isAllowCapture=e.assembleFont=e.getTextHeight=e.registerBBox=e.getBBoxMethod=e.PathUtil=e.AbstractShape=e.AbstractGroup=e.AbstractCanvas=e.Base=e.Event=void 0;var r=n(0),i=r.__importStar(n(155));e.PathUtil=i,r.__exportStar(n(320),e),r.__exportStar(n(321),e);var a=n(156);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(157);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(322);Object.defineProperty(e,"AbstractCanvas",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var l=n(361);Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(362);Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var c=n(363);Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return c.getBBoxMethod}}),Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return c.registerBBox}});var f=n(179);Object.defineProperty(e,"getTextHeight",{enumerable:!0,get:function(){return f.getTextHeight}}),Object.defineProperty(e,"assembleFont",{enumerable:!0,get:function(){return f.assembleFont}});var h=n(39);Object.defineProperty(e,"isAllowCapture",{enumerable:!0,get:function(){return h.isAllowCapture}});var p=n(92);Object.defineProperty(e,"multiplyVec2",{enumerable:!0,get:function(){return p.multiplyVec2}}),Object.defineProperty(e,"invert",{enumerable:!0,get:function(){return p.invert}});var d=n(180);Object.defineProperty(e,"getOffScreenContext",{enumerable:!0,get:function(){return d.getOffScreenContext}});var g=n(174);Object.defineProperty(e,"registerEasing",{enumerable:!0,get:function(){return g.registerEasing}}),e.version="0.5.11"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getReplaceAttrs=e.getPolygonCentroid=e.getAngle=e.getArcPath=e.getSectorPath=e.polarToCartesian=void 0;var r=n(1);function i(t){return 1===Array.from(new Set(t)).length}function a(t){return((0,r.min)(t)+(0,r.max)(t))/2}function o(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}e.polarToCartesian=o,e.getSectorPath=function(t,e,n,r,i,a){void 0===a&&(a=0);var s=o(t,e,n,r),l=o(t,e,n,i),u=o(t,e,a,r),c=o(t,e,a,i);if(i-r==2*Math.PI){var f=o(t,e,n,r+Math.PI),h=o(t,e,a,r+Math.PI),p=[["M",s.x,s.y],["A",n,n,0,1,1,f.x,f.y],["A",n,n,0,1,1,l.x,l.y],["M",u.x,u.y]];return a&&(p.push(["A",a,a,0,1,0,h.x,h.y]),p.push(["A",a,a,0,1,0,c.x,c.y])),p.push(["M",s.x,s.y]),p.push(["Z"]),p}var d=i-r<=Math.PI?0:1,g=[["M",s.x,s.y],["A",n,n,0,d,1,l.x,l.y],["L",c.x,c.y]];return a&&g.push(["A",a,a,0,d,0,u.x,u.y]),g.push(["L",s.x,s.y]),g.push(["Z"]),g},e.getArcPath=function(t,e,n,i,a){var s=o(t,e,n,i),l=o(t,e,n,a);if((0,r.isNumberEqual)(a-i,2*Math.PI)){var u=o(t,e,n,i+Math.PI);return[["M",s.x,s.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,0,u.x,u.y],["A",n,n,0,1,0,s.x,s.y],["Z"]]}var c=a-i<=Math.PI?0:1;return[["M",s.x,s.y],["A",n,n,0,c,1,l.x,l.y]]},e.getAngle=function(t,e){var n,i,a=function(t){if((0,r.isEmpty)(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,a=t[0].y;return(0,r.each)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,a=a<t.y?t.y:a})),{minX:e,maxX:n,minY:i,maxY:a,centerX:(e+n)/2,centerY:(i+a)/2}}(t.points),o=e.startAngle,s=e.endAngle-o;return e.isTransposed?(n=a.maxY*s,i=a.minY*s):(n=a.maxX*s,i=a.minX*s),{startAngle:i+=o,endAngle:n+=o}},e.getPolygonCentroid=function(t,e){if((0,r.isNumber)(t)&&(0,r.isNumber)(e))return[t,e];if(e=e,i(t=t)||i(e))return[a(t),a(e)];for(var n,o,s=-1,l=0,u=0,c=t.length-1,f=0;++s<t.length;)n=c,c=s,f+=o=t[n]*e[c]-t[c]*e[n],l+=(t[n]+t[c])*o,u+=(e[n]+e[c])*o;return[l/(f*=3),u/f]},e.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return(0,r.each)(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getCoordinateBBox=e.getCoordinateClipCfg=e.getAngleByPoint=e.isPointInCoordinate=e.getDistanceToCenter=e.isFullCircle=e.getXDimensionLength=void 0;var r=n(13),i=n(25),a=n(29);e.getXDimensionLength=function(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))},e.isFullCircle=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e==2*Math.PI}return!1},e.getDistanceToCenter=function(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))},e.isPointInCoordinate=function(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,a=t.end;n=(0,i.isBetween)(e.x,r.x,a.x)&&(0,i.isBetween)(e.y,r.y,a.y)}else{var o=t.invert(e);n=(0,i.isBetween)(o.x,0,1)&&(0,i.isBetween)(o.y,0,1)}return n},e.getAngleByPoint=function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},e.getCoordinateClipCfg=function(t,e){void 0===e&&(e=0);var n,i=t.start,a=t.end,o=t.getWidth(),s=t.getHeight();if(t.isPolar){var l=t.startAngle,u=t.endAngle,c=t.getCenter(),f=t.getRadius();return{type:"path",startState:{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,l)},endState:function(t){var n=(u-l)*t+l;return{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,n)}},attrs:{path:(0,r.getSectorPath)(c.x,c.y,f+e,l,u)}}}return n=t.isTransposed?{height:s+2*e}:{width:o+2*e},{type:"rect",startState:{x:i.x-e,y:a.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:s+2*e},endState:n,attrs:{x:i.x-e,y:a.y-e,width:o+2*e,height:s+2*e}}},e.getCoordinateBBox=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),s=Math.min(n.x,r.x),l=Math.min(n.y,r.y);return a.BBox.fromRange(s-e,l-e,s+i+e,l+o+e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearAnimationFrame=e.requestAnimationFrame=e.isNumberEqual=e.mod=e.toRadian=e.each=e.isArray=e.isFunction=e.isString=e.isNil=e.isSamePoint=e.mergeRegion=e.intersectRect=e.inBox=e.distance=e.getPixelRatio=void 0,e.getPixelRatio=function(){return window?window.devicePixelRatio:1},e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.inBox=function(t,e,n,r,i,a){return i>=t&&i<=t+n&&a>=e&&a<=e+r},e.intersectRect=function(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)},e.mergeRegion=function(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e},e.isSamePoint=function(t,e){return t[0]===e[0]&&t[1]===e[1]};var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"toRadian",{enumerable:!0,get:function(){return r.toRadian}}),Object.defineProperty(e,"mod",{enumerable:!0,get:function(){return r.mod}}),Object.defineProperty(e,"isNumberEqual",{enumerable:!0,get:function(){return r.isNumberEqual}}),Object.defineProperty(e,"requestAnimationFrame",{enumerable:!0,get:function(){return r.requestAnimationFrame}}),Object.defineProperty(e,"clearAnimationFrame",{enumerable:!0,get:function(){return r.clearAnimationFrame}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=e.SVG_ATTR_MAP=e.SHAPE_TO_TAGS=void 0,e.SHAPE_TO_TAGS={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},e.SVG_ATTR_MAP={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"},e.EVENTS=["click","mousedown","mouseup","dblclick","contextmenu","mouseenter","mouseleave","mouseover","mouseout","mousemove","wheel"]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Function")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CrosshairTextCfg=e.CrosshairLineCfg=e.ContinueLegendHandlerCfg=e.ContinueLegendLabelCfg=e.ContinueLegendRailCfg=e.ContinueLegendTrackCfg=e.ContinueLegendCfg=e.LegendPageNavigatorCfg=e.LegendItemValueCfg=e.LegendItemNameCfg=e.LegendBackgroundCfg=e.LegendTitleCfg=e.LegendMarkerCfg=e.GridLineCfg=e.AxisLabelCfg=e.AxisTitleCfg=e.AxisSubTickLineCfg=e.AxisTickLineCfg=e.AxisLineCfg=e.ListItem=e.GroupComponentCfg=e.LineAxisCfg=e.CircleAxisCfg=e.CategoryLegendCfg=e.Tick=e.ScaleConfig=e.Scale=e.registerScale=e.getScale=e.CoordinateCfg=e.Coordinate=e.registerCoordinate=e.getCoordinate=e.Color=e.Attribute=e.getAttribute=e.Adjust=e.getAdjust=e.registerAdjust=e.AbstractShape=e.AbstractGroup=e.Event=e.ShapeAttrs=e.Point=e.BBox=e.PathCommand=e.IShape=e.IGroup=e.IElement=e.ICanvas=void 0,e.Scrollbar=e.Slider=e.HtmlTooltip=e.ContinuousLegend=e.CategoryLegend=e.CircleGrid=e.LineGrid=e.CircleAxis=e.LineAxis=e.Annotation=e.Crosshair=e.Component=e.GroupComponent=e.HtmlComponent=e.IList=e.IComponent=e.LineAnnotationTextCfg=e.EnhancedTextCfg=e.TrendCfg=e.SliderCfg=e.CrosshairTextBackgroundCfg=void 0;var r=n(12);Object.defineProperty(e,"ICanvas",{enumerable:!0,get:function(){return r.ICanvas}}),Object.defineProperty(e,"IElement",{enumerable:!0,get:function(){return r.IElement}}),Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return r.IGroup}}),Object.defineProperty(e,"IShape",{enumerable:!0,get:function(){return r.IShape}}),Object.defineProperty(e,"PathCommand",{enumerable:!0,get:function(){return r.PathCommand}}),Object.defineProperty(e,"BBox",{enumerable:!0,get:function(){return r.BBox}}),Object.defineProperty(e,"Point",{enumerable:!0,get:function(){return r.Point}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return r.ShapeAttrs}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r.Event}}),Object.defineProperty(e,"AbstractGroup",{enumerable:!0,get:function(){return r.AbstractGroup}}),Object.defineProperty(e,"AbstractShape",{enumerable:!0,get:function(){return r.AbstractShape}});var i=n(188);Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}}),Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"Adjust",{enumerable:!0,get:function(){return i.Adjust}});var a=n(102);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return a.getAttribute}}),Object.defineProperty(e,"Attribute",{enumerable:!0,get:function(){return a.Attribute}});var o=n(102);Object.defineProperty(e,"Color",{enumerable:!0,get:function(){return o.Color}});var s=n(423);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return s.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return s.registerCoordinate}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return s.Coordinate}}),Object.defineProperty(e,"CoordinateCfg",{enumerable:!0,get:function(){return s.CoordinateCfg}});var l=n(103);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return l.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return l.registerScale}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return l.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return l.ScaleConfig}}),Object.defineProperty(e,"Tick",{enumerable:!0,get:function(){return l.Tick}});var u=n(41);Object.defineProperty(e,"Annotation",{enumerable:!0,get:function(){return u.Annotation}}),Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return u.Component}}),Object.defineProperty(e,"Crosshair",{enumerable:!0,get:function(){return u.Crosshair}}),Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return u.GroupComponent}}),Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return u.HtmlComponent}}),Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return u.Slider}}),Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return u.Scrollbar}});var c=n(41);Object.defineProperty(e,"CategoryLegendCfg",{enumerable:!0,get:function(){return c.CategoryLegendCfg}}),Object.defineProperty(e,"CircleAxisCfg",{enumerable:!0,get:function(){return c.CircleAxisCfg}}),Object.defineProperty(e,"LineAxisCfg",{enumerable:!0,get:function(){return c.LineAxisCfg}}),Object.defineProperty(e,"GroupComponentCfg",{enumerable:!0,get:function(){return c.GroupComponentCfg}}),Object.defineProperty(e,"ListItem",{enumerable:!0,get:function(){return c.ListItem}}),Object.defineProperty(e,"AxisLineCfg",{enumerable:!0,get:function(){return c.AxisLineCfg}}),Object.defineProperty(e,"AxisTickLineCfg",{enumerable:!0,get:function(){return c.AxisTickLineCfg}}),Object.defineProperty(e,"AxisSubTickLineCfg",{enumerable:!0,get:function(){return c.AxisSubTickLineCfg}}),Object.defineProperty(e,"AxisTitleCfg",{enumerable:!0,get:function(){return c.AxisTitleCfg}}),Object.defineProperty(e,"AxisLabelCfg",{enumerable:!0,get:function(){return c.AxisLabelCfg}}),Object.defineProperty(e,"GridLineCfg",{enumerable:!0,get:function(){return c.GridLineCfg}}),Object.defineProperty(e,"LegendMarkerCfg",{enumerable:!0,get:function(){return c.LegendMarkerCfg}}),Object.defineProperty(e,"LegendTitleCfg",{enumerable:!0,get:function(){return c.LegendTitleCfg}}),Object.defineProperty(e,"LegendBackgroundCfg",{enumerable:!0,get:function(){return c.LegendBackgroundCfg}}),Object.defineProperty(e,"LegendItemNameCfg",{enumerable:!0,get:function(){return c.LegendItemNameCfg}}),Object.defineProperty(e,"LegendItemValueCfg",{enumerable:!0,get:function(){return c.LegendItemValueCfg}}),Object.defineProperty(e,"LegendPageNavigatorCfg",{enumerable:!0,get:function(){return c.LegendPageNavigatorCfg}}),Object.defineProperty(e,"ContinueLegendCfg",{enumerable:!0,get:function(){return c.ContinueLegendCfg}}),Object.defineProperty(e,"ContinueLegendTrackCfg",{enumerable:!0,get:function(){return c.ContinueLegendTrackCfg}}),Object.defineProperty(e,"ContinueLegendRailCfg",{enumerable:!0,get:function(){return c.ContinueLegendRailCfg}}),Object.defineProperty(e,"ContinueLegendLabelCfg",{enumerable:!0,get:function(){return c.ContinueLegendLabelCfg}}),Object.defineProperty(e,"ContinueLegendHandlerCfg",{enumerable:!0,get:function(){return c.ContinueLegendHandlerCfg}}),Object.defineProperty(e,"CrosshairLineCfg",{enumerable:!0,get:function(){return c.CrosshairLineCfg}}),Object.defineProperty(e,"CrosshairTextCfg",{enumerable:!0,get:function(){return c.CrosshairTextCfg}}),Object.defineProperty(e,"CrosshairTextBackgroundCfg",{enumerable:!0,get:function(){return c.CrosshairTextBackgroundCfg}}),Object.defineProperty(e,"SliderCfg",{enumerable:!0,get:function(){return c.SliderCfg}}),Object.defineProperty(e,"TrendCfg",{enumerable:!0,get:function(){return c.TrendCfg}}),Object.defineProperty(e,"EnhancedTextCfg",{enumerable:!0,get:function(){return c.EnhancedTextCfg}}),Object.defineProperty(e,"LineAnnotationTextCfg",{enumerable:!0,get:function(){return c.LineAnnotationTextCfg}}),Object.defineProperty(e,"IComponent",{enumerable:!0,get:function(){return c.IComponent}}),Object.defineProperty(e,"IList",{enumerable:!0,get:function(){return c.IList}});var f=u.Axis.Line,h=u.Axis.Circle;e.LineAxis=f,e.CircleAxis=h;var p=u.Grid.Line,d=u.Grid.Circle;e.LineGrid=p,e.CircleGrid=d;var g=u.Legend.Category,y=u.Legend.Continuous;e.CategoryLegend=g,e.ContinuousLegend=y;var v=u.Tooltip.Html;e.HtmlTooltip=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.Polyline=e.Polygon=e.Line=e.Arc=e.Cubic=e.Quad=void 0;var r=n(0),i=r.__importDefault(n(368));e.Quad=i.default;var a=r.__importDefault(n(369));e.Cubic=a.default;var o=r.__importDefault(n(370));e.Arc=o.default;var s=r.__importDefault(n(69));e.Line=s.default;var l=r.__importDefault(n(372));e.Polygon=l.default;var u=r.__importDefault(n(178));e.Polyline=u.default;var c=r.__importStar(n(32));e.Util=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(64),s=n(27),l=n(121),u=n(16),c=r.__importStar(n(82)),f=r.__importDefault(n(122)),h=n(12),p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.draw(r,e)}},e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.default},e.prototype.onCanvasChange=function(t){(0,l.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=(0,h.getBBoxMethod)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,a=e.width,o=e.height,s=this.getHitLineWidth(),l=s/2,u=r-l,c=i-l;return{x:u,y:c,minX:u,minY:c,maxX:r+a+l,maxY:i+o+l,width:a+s,height:o+s}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||(0,s.createDom)(this),(0,o.setClip)(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),r=n.fill,i=n.fillStyle,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,c=n.lineWidth,f=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",r):"fillStyle"in n&&this._setColor(t,"fill",i):this._setColor(t,"fill",r||i),s&&f.setAttribute(u.SVG_ATTR_MAP.fillOpacity,s)),this.canStroke&&c>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),l&&f.setAttribute(u.SVG_ATTR_MAP.strokeOpacity,l),c&&f.setAttribute(u.SVG_ATTR_MAP.lineWidth,c))},e.prototype._setColor=function(t,e,n){var r=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n))(i=t.find("gradient",n))||(i=t.addGradient(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(u.SVG_ATTR_MAP[e],"url(#"+i+")")}else r.setAttribute(u.SVG_ATTR_MAP[e],n);else r.setAttribute(u.SVG_ATTR_MAP[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,a=r.shadowOffsetY,s=r.shadowBlur,l=r.shadowColor;(i||a||s||l)&&(0,o.setShadow)(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&(0,o.setTransform)(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),r=this.get("canvas").get("el").getBoundingClientRect(),i=t+r.left,a=e+r.top,o=document.elementFromPoint(i,a);return!(!o||!o.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(a.AbstractShape);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Util=e.ScaleConfig=e.Scale=e.Coordinate=e.ShapeAttrs=e.IGroup=e.DIRECTION=e.LAYER=e.getAnimation=e.registerAnimation=e.getEngine=e.registerEngine=e.registerTheme=e.getTheme=e.registerFacet=e.getFacet=e.getActionClass=e.registerAction=e.registerInteraction=e.getInteraction=e.getGeometryLabelLayout=e.getGeometryLabel=e.registerGeometryLabelLayout=e.registerGeometryLabel=e.getShapeFactory=e.registerShapeFactory=e.registerShape=e.registerGeometry=e.registerComponentController=e.InteractionAction=e.Facet=e.Action=e.Interaction=e.GeometryLabel=e.Element=e.Geometry=e.TooltipController=e.ComponentController=e.Event=e.View=e.Chart=e.VERSION=void 0;var r=n(0);e.VERSION="4.2.4";var i=n(56);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return i.Chart}}),Object.defineProperty(e,"View",{enumerable:!0,get:function(){return i.View}}),Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return i.Event}});var a=n(42);Object.defineProperty(e,"ComponentController",{enumerable:!0,get:function(){return a.Controller}});var o=n(210);Object.defineProperty(e,"TooltipController",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(34);Object.defineProperty(e,"Geometry",{enumerable:!0,get:function(){return r.__importDefault(s).default}});var l=n(115);Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(79);Object.defineProperty(e,"GeometryLabel",{enumerable:!0,get:function(){return r.__importDefault(u).default}});var c=n(112);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return c.Interaction}}),Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return c.Action}});var f=n(89);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return f.Facet}});var h=n(11);Object.defineProperty(e,"InteractionAction",{enumerable:!0,get:function(){return r.__importDefault(h).default}});var p=n(56);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return p.registerComponentController}});var d=n(56);Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return d.registerGeometry}});var g=n(3);Object.defineProperty(e,"registerShape",{enumerable:!0,get:function(){return g.registerShape}}),Object.defineProperty(e,"registerShapeFactory",{enumerable:!0,get:function(){return g.registerShapeFactory}}),Object.defineProperty(e,"getShapeFactory",{enumerable:!0,get:function(){return g.getShapeFactory}});var y=n(117);Object.defineProperty(e,"registerGeometryLabel",{enumerable:!0,get:function(){return y.registerGeometryLabel}}),Object.defineProperty(e,"registerGeometryLabelLayout",{enumerable:!0,get:function(){return y.registerGeometryLabelLayout}}),Object.defineProperty(e,"getGeometryLabel",{enumerable:!0,get:function(){return y.getGeometryLabel}}),Object.defineProperty(e,"getGeometryLabelLayout",{enumerable:!0,get:function(){return y.getGeometryLabelLayout}});var v=n(112);Object.defineProperty(e,"getInteraction",{enumerable:!0,get:function(){return v.getInteraction}}),Object.defineProperty(e,"registerInteraction",{enumerable:!0,get:function(){return v.registerInteraction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return v.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return v.getActionClass}});var m=n(89);Object.defineProperty(e,"getFacet",{enumerable:!0,get:function(){return m.getFacet}}),Object.defineProperty(e,"registerFacet",{enumerable:!0,get:function(){return m.registerFacet}});var _=n(205);Object.defineProperty(e,"getTheme",{enumerable:!0,get:function(){return _.getTheme}}),Object.defineProperty(e,"registerTheme",{enumerable:!0,get:function(){return _.registerTheme}});var x=n(150);Object.defineProperty(e,"registerEngine",{enumerable:!0,get:function(){return x.registerEngine}}),Object.defineProperty(e,"getEngine",{enumerable:!0,get:function(){return x.getEngine}});var b=n(211);Object.defineProperty(e,"registerAnimation",{enumerable:!0,get:function(){return b.registerAnimation}}),Object.defineProperty(e,"getAnimation",{enumerable:!0,get:function(){return b.getAnimation}});var M=n(2);Object.defineProperty(e,"LAYER",{enumerable:!0,get:function(){return M.LAYER}}),Object.defineProperty(e,"DIRECTION",{enumerable:!0,get:function(){return M.DIRECTION}});r.__importStar(n(487));var C=n(19);Object.defineProperty(e,"IGroup",{enumerable:!0,get:function(){return C.IGroup}}),Object.defineProperty(e,"ShapeAttrs",{enumerable:!0,get:function(){return C.ShapeAttrs}}),Object.defineProperty(e,"Coordinate",{enumerable:!0,get:function(){return C.Coordinate}}),Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return C.Scale}}),Object.defineProperty(e,"ScaleConfig",{enumerable:!0,get:function(){return C.ScaleConfig}});var P=n(214),S=n(215),O=n(13),w=n(54),A=n(78),T=n(4),E=n(43),I=n(118);e.Util={getLegendItems:S.getLegendItems,translate:w.translate,rotate:w.rotate,zoom:w.zoom,transform:w.transform,getAngle:O.getAngle,getSectorPath:O.getSectorPath,polarToCartesian:O.polarToCartesian,getDelegationObject:T.getDelegationObject,getTooltipItems:A.getTooltipItems,getMappingValue:P.getMappingValue,getPath:I.getPath,getPathPoints:E.getPathPoints}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t,e){return r.call(t)==="[object "+e+"]"}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.uniq=e.omit=e.padEnd=e.isBetween=void 0;var i=n(0),a=n(1);e.isBetween=function(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i},e.padEnd=function(t,e,n){if((0,a.isString)(t))return t.padEnd(e,n);if((0,a.isArray)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t},e.omit=function(t,e){return"object"===r(t)&&e.forEach((function(e){delete t[e]})),t},e.uniq=function(t,e,n){var r,a;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=i.__values(t),s=o.next();!s.done;s=o.next()){var l=s.value;n.has(l)||(e.push(l),n.set(l,!0))}}catch(t){r={error:t}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(r)throw r.error}}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(15),s=n(63),l=n(12),u=r.__importStar(n(62)),c=r.__importDefault(n(120)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return u},e.prototype.getGroupBase=function(){return c.default},e.prototype.onCanvasChange=function(t){(0,s.refreshElement)(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=(0,l.getBBoxMethod)(t)(this),r=e/2,i=n.x-r,a=n.y-r,o=n.x+n.width+r,s=n.y+n.height+r;return{x:i,minX:i,y:a,minY:a,width:n.width+e,height:n.height+e,maxX:o,maxY:s}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),(0,s.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var r=this.getCanvasBBox();if(!(0,o.intersectRect)(e,r))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),(0,s.applyAttrsToContext)(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=(0,o.intersectRect)(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=i),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),r=this.isFill(),i=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t.lineWidth+t.lineAppendWidth},e}(a.AbstractShape);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.moveTo=e.sortDom=e.createDom=e.createSVGElement=void 0;var r=n(1),i=n(16);function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e.createSVGElement=a,e.createDom=function(t){var e=i.SHAPE_TO_TAGS[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=a(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(r)}return r},e.sortDom=function(t,e){var n=t.get("el"),i=(0,r.toArray)(n.children).sort(e),a=document.createDocumentFragment();i.forEach((function(t){a.appendChild(t)})),n.appendChild(a)},e.moveTo=function(t,e){var n=t.parentNode,r=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),i=r[e],a=r.indexOf(t);if(i){if(a>e)n.insertBefore(t,i);else if(a<e){var o=r[e+1];o?n.insertBefore(t,o):n.appendChild(t)}}else n.appendChild(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.toRadian=e.setMatrixArrayType=e.RANDOM=e.ARRAY_TYPE=e.EPSILON=void 0,e.EPSILON=1e-6,e.ARRAY_TYPE="undefined"!=typeof Float32Array?Float32Array:Array,e.RANDOM=Math.random,e.setMatrixArrayType=function(t){e.ARRAY_TYPE=t};var r=Math.PI/180;e.toRadian=function(t){return t*r},e.equals=function(t,n){return Math.abs(t-n)<=e.EPSILON*Math.max(1,Math.abs(t),Math.abs(n))},Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toPoints=e.getRegionBBox=e.BBox=void 0;var r=n(0),i=n(1),a=n(2),o=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,i.each)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return(0,i.each)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case a.DIRECTION.TOP:case a.DIRECTION.TOP_LEFT:case a.DIRECTION.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case a.DIRECTION.RIGHT:case a.DIRECTION.RIGHT_TOP:case a.DIRECTION.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case a.DIRECTION.BOTTOM:case a.DIRECTION.BOTTOM_LEFT:case a.DIRECTION.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case a.DIRECTION.LEFT:case a.DIRECTION.LEFT_TOP:case a.DIRECTION.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=r.__read(e,4),i=n[0],a=n[1],o=n[2],s=n[3];return new t(this.x+s,this.y+i,this.width-s-a,this.height-i-o)},t.prototype.expand=function(e){var n=r.__read(e,4),i=n[0],a=n[1],o=n[2],s=n[3];return new t(this.x-s,this.y-i,this.width+s+a,this.height+i+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();e.BBox=o;e.getRegionBBox=function(t,e){var n=e.start,r=e.end;return new o(t.x+t.width*n.x,t.y+t.height*n.y,t.width*Math.abs(r.x-n.x),t.height*Math.abs(r.y-n.y))},e.toPoints=function(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"String")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Number")}},function(t,e,n){"use strict";function r(t){return Math.min.apply(null,t)}function i(t){return Math.max.apply(null,t)}Object.defineProperty(e,"__esModule",{value:!0}),e.piMod=e.getBBoxRange=e.getBBoxByArray=e.isNumberEqual=e.distance=void 0,e.distance=function(t,e,n,r){var i=t-n,a=e-r;return Math.sqrt(i*i+a*a)},e.isNumberEqual=function(t,e){return Math.abs(t-e)<.001},e.getBBoxByArray=function(t,e){var n=r(t),a=r(e);return{x:n,y:a,width:i(t)-n,height:i(e)-a}},e.getBBoxRange=function(t,e,n,a){return{minX:r([t,n]),maxX:i([t,n]),minY:r([e,a]),maxY:i([e,a])}},e.piMod=function(t){return(t+2*Math.PI)%(2*Math.PI)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.applyTranslate=e.applyRotate=e.applyMatrix2BBox=e.getAngleByMatrix=e.getMatrixByTranslate=e.getMatrixByAngle=void 0;var r=n(8),i=[1,0,0,0,1,0,0,0,1];function a(t,e,n){return void 0===n&&(n=i),e?r.ext.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function o(t,e){return t.x||t.y?r.ext.transform(e||i,[["t",t.x,t.y]]):null}function s(t,e){var n=[0,0];return r.vec2.transformMat3(n,e,t),n}e.getMatrixByAngle=a,e.getMatrixByTranslate=o,e.getAngleByMatrix=function(t){var e=[0,0,0];return r.vec3.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])},e.applyMatrix2BBox=function(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),a=s(t,[e.maxX,e.maxY]),o=Math.min(n[0],r[0],i[0],a[0]),l=Math.max(n[0],r[0],i[0],a[0]),u=Math.min(n[1],r[1],i[1],a[1]),c=Math.max(n[1],r[1],i[1],a[1]);return{x:o,y:u,minX:o,minY:u,maxX:l,maxY:c,width:l-o,height:c-u}},e.applyRotate=function(t,e,n,r){if(e){var i=a({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}},e.applyTranslate=function(t,e,n){var r=o({x:e,y:n});t.attr("matrix",r)}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(188),o=n(102),s=n(1),l=n(36),u=i.__importDefault(n(88)),c=n(2),f=n(25),h=i.__importDefault(n(115)),p=n(117),d=n(3),g=n(483),y=n(212),v=n(484),m=n(213),_=n(38),x=n(14),b=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var r=e.container,i=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,l=void 0!==s&&s,u=e.visible,c=void 0===u||u,f=e.theme,h=e.scales,p=void 0===h?{}:h,d=e.scaleDefs,g=void 0===d?{}:d,y=e.intervalPadding,v=e.dodgePadding,m=e.maxColumnWidth,_=e.minColumnWidth,x=e.columnWidthRatio,b=e.roseWidthRatio,M=e.multiplePieWidthRatio,C=e.zIndexReversed,P=e.sortZIndex,S=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=a,n.data=o,n.sortable=l,n.visible=c,n.userTheme=f,n.scales=p,n.scaleDefs=g,n.intervalPadding=y,n.dodgePadding=v,n.maxColumnWidth=m,n.minColumnWidth=_,n.columnWidthRatio=x,n.roseWidthRatio=b,n.multiplePieWidthRatio=M,n.zIndexReversed=C,n.sortZIndex=P,n.useDeferredLabel=S?"number"==typeof S?S:1/0:null,n}return i.__extends(e,t),e.prototype.position=function(t){var e=t;(0,s.isPlainObject)(t)||(e={fields:(0,v.parseFields)(t)});var n=(0,s.get)(e,"fields");return 1===n.length&&(n.unshift("1"),(0,s.set)(e,"fields",n)),(0,s.set)(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return((0,s.isString)(t)||(0,s.isPlainObject)(t))&&(e=[t]),(0,s.each)(e,(function(t,n){(0,s.isObject)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if((0,s.isString)(t)){var n=(0,v.parseFields)(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),a=r.cfg;this.styleOption=n||i||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if((0,s.isString)(t)){var n=(0,v.parseFields)(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if((0,s.isString)(t)){var r={},i=(0,v.parseFields)(t);r.fields=i,(0,s.isFunction)(e)?r.callback=e:(0,s.isPlainObject)(e)&&(r.cfg=e),n&&(r.cfg=n),this.labelOption=r}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,r=t.isCoordinateChanged,i=this.attributeOption,a=this.lastAttributeOption;(0,s.isEqual)(i,a)?!e||!n&&(0,s.isEqual)(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=r},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=(0,s.deepMix)({},(0,l.getDefaultAnimateCfg)(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,r=this.beforeMapping(n);this.dataArray=new Array(r.length);for(var a=0;a<r.length;a++){var o=r[a];this.dataArray[a]=this.mapping(o)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var u=this.container,c=this.type,f=this.coordinate,h=(0,s.get)(this.animateOption,"appear"),p=this.getYScale(),d=f.convert({x:0,y:p.scale(this.getYMinValue())});(0,l.doGroupAppearAnimate)(u,h,c,f,d)}if(this.labelOption){var g=this.useDeferredLabel,y=function(){return e.renderLabels((0,s.flatten)(e.dataArray),t)}.bind(this);if("number"==typeof g){var v="number"==typeof g&&g!==1/0?g:0;if(window.requestIdleCallback){var m=v&&v!==1/0?{timeout:v}:void 0;window.requestIdleCallback(y,m)}else setTimeout(y,v)}else y()}this.lastAttributeOption=i.__assign({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return(0,s.each)(this.attributes,(function(e){c.GROUP_ATTRS.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&(0,s.isEmpty)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,a=0,o=r.length;a<o;a++){var s=r[a],l=s.field;s.isIdentity?n.push(s.values):n.push(e[l])}return t.mapping.apply(t,i.__spreadArray([],i.__read(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){var e=(t=(0,s.isArray)(t)?t[0]:t)[c.FIELD_ORIGIN];if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,a,o=this.type,l=this.getXScale(),u=this.getYScale(),f=l.field||"x",h=e[u.field||"y"];i="identity"===l.type?l.values[0]:e[f],a="interval"===o||"schema"===o?"".concat(i):"line"===o||"area"===o||"path"===o?o:"".concat(i,"-").concat(h);for(var p=this.groupScales,d=(r=0,p.length);r<d;r++){var g=p[r].field;a="".concat(a,"-").concat(e[g])}var y=this.getAdjust("dodge");if(y){var v=y.dodgeBy;v&&(a="".concat(a,"-").concat(e[v]))}return this.getAdjust("jitter")&&(a="".concat(a,"-").concat(t.x,"-").concat(t.y)),a},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this.attributeOption,r=this.labelOption,i=this.tooltipOption;for(var a in n)if(n.hasOwnProperty(a)){var o=n[a];o.fields?(0,f.uniq)(o.fields,t,e):o.values&&(0,f.uniq)(o.values,t,e)}return r&&r.fields&&(0,f.uniq)(r.fields,t,e),(0,s.isObject)(i)&&i.fields&&(0,f.uniq)(i.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){((null==n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=c.GROUP_ATTRS.length;n<r;n++){var i=c.GROUP_ATTRS[n],a=this.attributeOption[i];a&&a.fields&&(0,f.uniq)(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=i.__read(this.attributeOption.position.fields,2);return[t[0],t[1]]},e.prototype.getXField=function(){return(0,s.get)(this.getXYFields(),[0])},e.prototype.getYField=function(){return(0,s.get)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t[c.FIELD_ORIGIN][n])-e.translate(r[c.FIELD_ORIGIN][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if((0,d.getShapeFactory)(t))return this.shapeFactory||(this.shapeFactory=(0,s.clone)((0,d.getShapeFactory)(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),a=this.getShapeFactory(),o=new h.default({shapeFactory:a,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return o.animate=this.animateOption,o.geometry=this,o.draw(i,n),o},e.prototype.getDrawCfg=function(t){var e=t[c.FIELD_ORIGIN],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=(0,s.get)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var a=this.styleOption;return a&&(n.style=this.getStyleCfg(a,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,r,a,o,s,l;void 0===e&&(e=!1);for(var u=new Map,c=[],f=new Map,h=0,p=0;p<t.length;p++)for(var d=t[p],g=0;g<d.length;g++){var v=d[g],_=this.getElementId(v),x=u.has(_)?"".concat(_,"-").concat(p,"-").concat(g):_;c.push(x),u.set(x,v),f.set(x,h),h++}this.elements=new Array(h);var b=(0,m.diff)(this.lastElementsMap,c),M=b.added,C=b.updated,P=b.removed;try{for(var S=i.__values(M),O=S.next();!O.done;O=S.next()){_=O.value,v=u.get(_),p=f.get(_);var w=this.createElement(v,p,e);this.elements[p]=w,this.elementsMap[_]=w,w.shape&&w.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){n={error:t}}finally{try{O&&!O.done&&(r=S.return)&&r.call(S)}finally{if(n)throw n.error}}try{for(var A=i.__values(C),T=A.next();!T.done;T=A.next()){_=T.value,w=this.lastElementsMap[_],v=u.get(_);var E=this.getDrawCfg(v),I=w.getModel();p=f.get(_);(this.isCoordinateChanged||(0,y.isModelChange)(E,I))&&(w.animate=this.animateOption,w.update(E)),this.elements[p]=w,this.elementsMap[_]=w,w.shape&&w.shape.set("zIndex",this.zIndexReversed?this.elements.length-p:p)}}catch(t){a={error:t}}finally{try{T&&!T.done&&(o=A.return)&&o.call(A)}finally{if(a)throw a.error}}this.container&&this.container.sort();try{for(var L=i.__values(P),D=L.next();!D.done;D=L.next()){_=D.value;(w=this.lastElementsMap[_]).animate=this.animateOption,w.destroy()}}catch(t){s={error:t}}finally{try{D&&!D.done&&(l=L.return)&&l.call(L)}finally{if(s)throw s.error}}},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,r=e.type,i=e.isTransposed,a=(0,s.get)(t,["cfg","type"]);return a||(a="polar"===r?i?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),a},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if((0,s.isNil)(e)||(0,s.isObject)(e))(0,s.isObject)(e)&&(0,s.isEqual)(Object.keys(e),["values"])?(0,s.set)(this.attributeOption,t,{fields:e.values}):(0,s.set)(this.attributeOption,t,e);else{var r={};(0,s.isNumber)(e)?r.values=[e]:r.fields=(0,v.parseFields)(e),n&&((0,s.isFunction)(n)?r.callback=n:r.values=n),(0,s.set)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,a=this.theme,l=this.shapeType;this.groupScales=[];var u={},f=function(r){if(n.hasOwnProperty(r)){var f=n[r];if(!f)return{value:void 0};var h=i.__assign({},f),p=h.callback,d=h.values,g=h.fields,y=(void 0===g?[]:g).map((function(e){var n=t.scales[e];!u[e]&&c.GROUP_ATTRS.includes(r)&&("cat"===(0,_.inferScaleType)(n,(0,s.get)(t.scaleDefs,e),r,t.type)&&(t.groupScales.push(n),u[e]=!0));return n}));h.scales=y,"position"!==r&&1===y.length&&"identity"===y[0].type?h.values=y[0].values:p||d||("size"===r?h.values=a.sizes:"shape"===r?h.values=a.shapes[l]||[]:"color"===r&&(y.length?h.values=y[0].values.length<=10?a.colors10:a.colors20:h.values=a.colors10));var v=(0,o.getAttribute)(r);e[r]=new v(h)}};for(var h in n){var p=f(h);if("object"===r(p))return p.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),a=this.groupData(t),o=[],s=0,l=a.length;s<l;s++){for(var u=a[s],f=[],h=0,p=u.length;h<p;h++){var d=u[h],g={};for(var y in d)g[y]=d[y];g[c.FIELD_ORIGIN]=d;try{for(var v=(e=void 0,i.__values(r)),m=v.next();!m.done;m=v.next()){var _=m.value,x=_.field;g[x]=_.translate(g[x])}}catch(t){e={error:t}}finally{try{m&&!m.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}f.push(g)}o.push(f)}var b=this.adjustData(o);return this.beforeMappingData=b,b},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,r=this.dodgePadding,o=this.theme,l=this.maxColumnWidth||o.maxColumnWidth,u=this.minColumnWidth||o.minColumnWidth,c=this.columnWidthRatio||o.columnWidthRatio,f=t;if(e){var h=this.getXScale(),p=this.getYScale(),d=h.field,g=p?p.field:null,y=(0,x.getXDimensionLength)(this.coordinate),v=h.values.length,m=this.getAttribute("size"),_=void 0;m&&(_=m.values[0]);for(var b=0,M=e.length;b<M;b++){var C=e[b],P=i.__assign({xField:d,yField:g,intervalPadding:n,dodgePadding:r,xDimensionLength:y,groupNum:v,defaultSize:_,maxColumnWidth:l,minColumnWidth:u,columnWidthRatio:c},C),S=C.type;if("dodge"===S){var O=[];if(h.isCategory||"identity"===h.type)O.push("x");else{if(p)throw new Error("dodge is not support linear attribute, please use category attribute!");O.push("y")}P.adjustNames=O,P.dodgeRatio=c}else if("stack"===S){var w=this.coordinate;if(!p){P.height=w.getHeight();var A=this.getDefaultValue("size")||3;P.size=A}!w.isTransposed&&(0,s.isNil)(P.reverseOrder)&&(P.reverseOrder=!0)}var T=(0,a.getAdjust)(S);P.dimValuesMap={},h&&h.values&&(P.dimValuesMap[h.field]=h.values.map((function(t){return h.translate(t)})));var E=new T(P);f=E.process(f),this.adjusts[S]=E}}return f},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],a=0;a<e.length;a++){var o=e[a].field;i.push(o),(0,s.get)(n,[o,"values"])&&(r[o]=n[o].values)}return(0,g.group)(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=(0,s.flatten)(e),r=t.field,i=t.min,a=t.max,o=0;o<n.length;o++){var l=n[o],u=Math.min.apply(null,l[r]),c=Math.max.apply(null,l[r]);u<i&&(i=u),c>a&&(a=c)}var f=this.scaleDefs,h={};i<t.min&&!(0,s.get)(f,[r,"min"])&&(h.min=i),a>t.max&&!(0,s.get)(f,[r,"max"])&&(h.max=a),t.change(h)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var a=e[n+1];a&&(this.generateShapePoints(a),i[0].nextPoints=a[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],a=this.createShapePointsCfg(i),o=n?this.getAttributeValues(n,i):null,s=e.getShapePoints(o,a);i.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if((0,s.isArray)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],a={_origin:i[c.FIELD_ORIGIN],points:i.points,nextPoints:i.nextPoints};for(var o in e)if(e.hasOwnProperty(o)){var l=e[o],u=l.names,f=this.getAttributeValues(l,i);if(u.length>1)for(var h=0;h<f.length;h+=1){var p=f[h];a[u[h]]=(0,s.isArray)(p)&&1===p.length?p[0]:p}else a[u[0]]=1===f.length?f[0]:f}this.convertPoint(a),n.push(a)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,a=t.y,o=this.coordinate;if((0,s.isArray)(i)&&(0,s.isArray)(a)){e=[],n=[];for(var l=0,u=0,c=i.length,f=a.length;l<c&&u<f;l+=1,u+=1)r=o.convert({x:i[l],y:a[u]}),e.push(r.x),n.push(r.y)}else if((0,s.isArray)(a)){n=[];for(var h=0;h<a.length;h++){var p=a[h];r=o.convert({x:i,y:p}),e&&e!==r.x?((0,s.isArray)(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if((0,s.isArray)(i)){e=[];for(h=0;h<i.length;h++){var d=i[h];r=o.convert({x:d,y:a}),n&&n!==r.y?((0,s.isArray)(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var g=o.convert({x:i,y:a});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,a=t.callback,o=t.cfg;if(o)return o;var s=r.map((function(t){return e[t]}));return a.apply(void 0,i.__spreadArray([],i.__read(s),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,a=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),a&&(this.scaleDefs=a,this.idFields=[],(0,s.each)(a,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?(0,s.deepMix)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),i.__awaiter(this,void 0,void 0,(function(){var n,r,a,o,l,u,f,h,d,g,y,v,m=this;return i.__generator(this,(function(_){switch(_.label){case 0:return n=this.geometryLabel,this.emit(c.GEOMETRY_LIFE_CIRCLE.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),a=(0,p.getGeometryLabel)(r),n=new a(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:_.sent(),o=n.labelsRenderer.shapesMap,l=new Map,(0,s.each)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],a=m.elementsMap[i.get("elementId")||e.split(" ")[0]];if(a){i.cfg.name=["element","label"],i.cfg.element=a;var o=l.get(a)||new Set;o.add(t),l.set(a,o)}}}));try{for(u=i.__values(l.entries()),f=u.next();!f.done;f=u.next())h=i.__read(f.value,2),d=h[0],g=h[1],d.labelShape=i.__spreadArray([],i.__read(g),!1)}catch(t){y={error:t}}finally{try{f&&!f.done&&(v=u.return)&&v.call(u)}finally{if(y)throw y.error}}return this.emit(c.GEOMETRY_LIFE_CIRCLE.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===(0,s.get)(this.animateOption,"appear")||(0,s.get)(this.animateOption,"appear")&&void 0===(0,s.get)(this.animateOption,["appear","animation"]))},e}(u.default);e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doGroupAppearAnimate=e.doAnimate=e.getDefaultAnimateCfg=e.DEFAULT_ANIMATE_CFG=void 0;var r=n(0),i=n(1),a=n(2),o=n(211);e.DEFAULT_ANIMATE_CFG={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}};var s={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},l={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};e.getDefaultAnimateCfg=function(t,n,r){var a=s[t];return a&&((0,i.isFunction)(a)&&(a=a(n)),a=(0,i.deepMix)({},e.DEFAULT_ANIMATE_CFG,a),r)?a[r]:a},e.doAnimate=function(t,e,n){var r=(0,i.get)(t.get("origin"),"data",a.FIELD_ORIGIN),s=e.animation,l=function(t,e){return{delay:(0,i.isFunction)(t.delay)?t.delay(e):t.delay,easing:(0,i.isFunction)(t.easing)?t.easing(e):t.easing,duration:(0,i.isFunction)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(s){var u=(0,o.getAnimation)(s);u&&u(t,l,n)}else t.animate(n.toAttrs,l)},e.doGroupAppearAnimate=function(t,n,a,s,u){if(l[a]){var c=l[a](s),f=(0,o.getAnimation)((0,i.get)(c,"animation",""));if(f){var h=r.__assign(r.__assign(r.__assign({},e.DEFAULT_ANIMATE_CFG.appear),c),n);t.stopAnimate(),f(t,h,{coordinate:s,minYPoint:u,toAttrs:null})}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Facet=void 0;var r=n(0),i=n(1),a=n(2),o=n(90),s=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=(0,i.deepMix)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,a=this.view.createView({region:e,padding:i});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){return this.view.getLayer(a.LAYER.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;(0,i.each)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height;return this.cfg.spacing.map((function(t,r){return(0,i.isNumber)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return(0,i.each)(t,(function(t){var a=t[e];(0,i.isNil)(a)||r[a]||(n.push(a),r[a]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var a=r.__read(this.parseSpacing(),2),o=a[0],s=a[1],l=(1+o)/(0===e?1:e)-o,u=(1+s)/(0===t?1:t)-s,c={x:(l+o)*n,y:(u+s)*i};return{start:c,end:{x:c.x+l,y:c.y+u}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),a=n.coordinate,s=t.geometries;if("rect"===(0,i.get)(a,"type","rect")&&s.length){(0,i.isNil)(n.axes)&&(n.axes={});var l=n.axes,u=r.__read(s[0].getXYFields(),2),c=u[0],f=u[1],h=(0,o.getAxisOption)(l,c),p=(0,o.getAxisOption)(l,f);!1!==h&&(n.axes[c]=this.getXAxisOption(c,l,h,e)),!1!==p&&(n.axes[f]=this.getYAxisOption(f,l,p,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return(0,i.every)(t,(function(t){var n=t.field,r=t.value;return!(!(0,i.isNil)(r)&&n)||e[n]===r}))}},t}();e.Facet=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMaxScale=e.getDefaultCategoryScaleRange=e.getName=e.syncScale=e.createScaleByField=e.inferScaleType=void 0;var r=n(0),i=n(1),a=n(2),o=n(19),s=n(14),l=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;e.inferScaleType=function(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&a.GROUP_ATTRS.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type},e.createScaleByField=function(t,e,n){var a=e||[];if((0,i.isNumber)(t)||(0,i.isNil)((0,i.firstValue)(a,t))&&(0,i.isEmpty)(n))return new((0,o.getScale)("identity"))({field:t.toString(),values:[t]});var s=(0,i.valuesOfKey)(a,t),u=(0,i.get)(n,"type",function(t){var e="linear";return l.test(t)?e="timeCat":(0,i.isString)(t)&&(e="cat"),e}(s[0]));return new((0,o.getScale)(u))(r.__assign({field:t,values:s},n))},e.syncScale=function(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);t.change(n)}},e.getName=function(t){return t.alias||t.field},e.getDefaultCategoryScaleRange=function(t,e,n){var r,a=t.values.length;if(1===a)r=[.5,1];else{var o=0;r=(0,s.isFullCircle)(e)?e.isTransposed?[(o=1/a*(0,i.get)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/a]:[o=1/a/2,1-o]}return r},e.getMaxScale=function(t){var e=t.values.filter((function(t){return!(0,i.isNil)(t)&&!isNaN(t)}));return Math.max.apply(Math,r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[(0,i.isNil)(t.max)?-1/0:t.max],!1))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isAllowCapture=e.isParent=e.upperFirst=e.each=e.mix=e.isArray=e.isObject=e.isString=e.isFunction=e.isNil=e.isBrowser=e.removeFromArray=void 0,e.removeFromArray=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},e.isBrowser="undefined"!=typeof window&&void 0!==window.document;var r=n(1);Object.defineProperty(e,"isNil",{enumerable:!0,get:function(){return r.isNil}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return r.isFunction}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return r.isString}}),Object.defineProperty(e,"isObject",{enumerable:!0,get:function(){return r.isObject}}),Object.defineProperty(e,"isArray",{enumerable:!0,get:function(){return r.isArray}}),Object.defineProperty(e,"mix",{enumerable:!0,get:function(){return r.mix}}),Object.defineProperty(e,"each",{enumerable:!0,get:function(){return r.each}}),Object.defineProperty(e,"upperFirst",{enumerable:!0,get:function(){return r.upperFirst}}),e.isParent=function(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r},e.isAllowCapture=function(t){return t.cfg.visible&&t.cfg.capture}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=function(t,e){return(0,r.isString)(e)?e:t.invert(t.scale(e))},a=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,a=t.names,o=void 0===a?[]:a,s=t.scales,l=void 0===s?[]:s,u=t.values,c=void 0===u?[]:u,f=t.callback;this.type=i,this.scales=l,this.values=c,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(f){var i=f.apply(void 0,t);if(!(0,r.isNil)(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:(0,r.isArray)(t)?t.map((function(t){return i(e,t)})):i(e,t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TOOLTIP_CSS_CONST=e.propagationDelegate=e.Scrollbar=e.Slider=e.Crosshair=e.Tooltip=e.Legend=e.Grid=e.Annotation=e.Axis=e.HtmlComponent=e.GroupComponent=e.Component=void 0;var r=n(0),i=r.__importStar(n(429));e.Annotation=i;var a=r.__importStar(n(441));e.Axis=a;var o=r.__importStar(n(447));e.Crosshair=o;var s=r.__importStar(n(452));e.Grid=s;var l=r.__importStar(n(455));e.Legend=l;var u=r.__importStar(n(458));e.Tooltip=u;var c=n(106);Object.defineProperty(e,"Component",{enumerable:!0,get:function(){return r.__importDefault(c).default}});var f=n(9);Object.defineProperty(e,"GroupComponent",{enumerable:!0,get:function(){return r.__importDefault(f).default}});var h=n(76);Object.defineProperty(e,"HtmlComponent",{enumerable:!0,get:function(){return r.__importDefault(h).default}});var p=n(462);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return p.Slider}});var d=n(469);Object.defineProperty(e,"Scrollbar",{enumerable:!0,get:function(){return d.Scrollbar}}),r.__exportStar(n(471),e),r.__exportStar(n(472),e);var g=n(199);Object.defineProperty(e,"propagationDelegate",{enumerable:!0,get:function(){return g.propagationDelegate}});var y=r.__importStar(n(111));e.TOOLTIP_CSS_CONST=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Controller=void 0;var r=n(1),i=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){(0,r.each)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();e.Controller=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getSmoothViolinPath=e.getViolinPath=e.getPathPoints=void 0;var r=n(1),i=n(52);function a(t){return!t&&(null==t||isNaN(t))}function o(t){if((0,r.isArray)(t))return a(t[1].y);var e=t.y;return(0,r.isArray)(e)?a(e[0]):a(e)}e.getPathPoints=function(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var r=[],i=0,a=t.length;i<a;i++){o(u=t[i])||r.push(u)}return[r]}var s=[],l=[];for(i=0,a=t.length;i<a;i++){var u;o(u=t[i])?l.length&&((1!==l.length||n)&&s.push(l),l=[]):l.push(u)}return l.length&&s.push(l),s},e.getViolinPath=function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var a=t[0];return a&&(e.push(["L",a.x,a.y]),e.push(["z"])),e},e.getSmoothViolinPath=function(t){for(var e=t.length/2,n=[],r=[],a=0;a<t.length;a++)a<e?n.push(t[a]):r.push(t[a]);var o=(0,i.getSplinePath)(n,!1),s=(0,i.getSplinePath)(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),s.shift();var l=o.concat(s);return n.length&&l.push(["L",n[0].x,n[0].y]),l.push(["z"]),l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=n(4),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return r.__extends(e,t),e.prototype.getTriggerListInfo=function(){var t=(0,s.getDelegationObject)(this.context),e=null;return(0,s.isList)(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=(0,o.getComponents)(e),r=[];return(0,i.each)(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&r.push(e)})),r},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();(0,i.each)(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var r=this.context.view,i=(0,s.getScaleByField)(r,e);return i&&i.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;return!n.length||0===n.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByElement=function(t,e,n){var r=t.get("field"),i=this.context.view,a=(0,s.getScaleByField)(i,r),o=(0,s.getElementValue)(e,r),l=a.getText(o);this.setItemsState(t,l,n)},e.prototype.setStateEnable=function(t){var e=this,n=(0,s.getCurrentElement)(this.context);if(n){var r=this.getAllowComponents();(0,i.each)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var a=(0,s.getDelegationObject)(this.context);if((0,s.isList)(a)){var o=a.item,l=a.component;this.allowSetStateByElement(l)&&this.allowSetStateByItem(o,l)&&this.setItemState(l,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,a=t.getItems();(0,i.each)(a,(function(i){i.name===e&&r.setItemState(t,i,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,r=this.hasState(e,n);this.setItemState(e,n,!r)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(66));e.default=function(t,e){if(t)if((0,i.default)(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if((0,a.default)(t))for(var o in t)if(t.hasOwnProperty(o)&&!1===e(t[o],o))break}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(35));e.default=function(t){return(0,r.default)(t)?"":t.toString()}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.getWidth=e.getStyle=e.getRatio=e.getOuterWidth=e.getOuterHeight=e.getHeight=e.createDom=e.addEventListener=void 0;var i=n(314);Object.defineProperty(e,"addEventListener",{enumerable:!0,get:function(){return r(i).default}});var a=n(315);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return r(a).default}});var o=n(151);Object.defineProperty(e,"getHeight",{enumerable:!0,get:function(){return r(o).default}});var s=n(316);Object.defineProperty(e,"getOuterHeight",{enumerable:!0,get:function(){return r(s).default}});var l=n(317);Object.defineProperty(e,"getOuterWidth",{enumerable:!0,get:function(){return r(l).default}});var u=n(318);Object.defineProperty(e,"getRatio",{enumerable:!0,get:function(){return r(u).default}});var c=n(58);Object.defineProperty(e,"getStyle",{enumerable:!0,get:function(){return r(c).default}});var f=n(152);Object.defineProperty(e,"getWidth",{enumerable:!0,get:function(){return r(f).default}});var h=n(319);Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return r(h).default}})},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.cubehelix=e.gray=e.lch=e.hcl=e.lab=e.hsl=e.rgb=e.color=void 0;var i=n(95);Object.defineProperty(e,"color",{enumerable:!0,get:function(){return r(i).default}}),Object.defineProperty(e,"rgb",{enumerable:!0,get:function(){return i.rgb}}),Object.defineProperty(e,"hsl",{enumerable:!0,get:function(){return i.hsl}});var a=n(333);Object.defineProperty(e,"lab",{enumerable:!0,get:function(){return r(a).default}}),Object.defineProperty(e,"hcl",{enumerable:!0,get:function(){return a.hcl}}),Object.defineProperty(e,"lch",{enumerable:!0,get:function(){return a.lch}}),Object.defineProperty(e,"gray",{enumerable:!0,get:function(){return a.gray}});var o=n(334);Object.defineProperty(e,"cubehelix",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.gamma=e.hue=void 0;var r=n(0).__importDefault(n(169));function i(t,e){return function(n){return t+n*e}}function a(t,e){var n=e-t;return n?i(t,n):(0,r.default)(isNaN(t)?e:t)}e.hue=function(t,e){var n=e-t;return n?i(t,n>180||n<-180?n-360*Math.round(n/360):n):(0,r.default)(isNaN(t)?e:t)},e.gamma=function(t){return 1==(t=+t)?a:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):(0,r.default)(isNaN(e)?n:e)}},e.default=a},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isPointInPolygon=e.isPolygonsIntersect=e.getLineIntersect=e.path2Segments=e.getArcParams=e.reactPath=e.path2Absolute=e.path2Curve=e.parsePathString=e.parsePathArray=e.pathIntersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRom2Bezier=e.parsePath=void 0;var i=n(181);Object.defineProperty(e,"parsePath",{enumerable:!0,get:function(){return r(i).default}});var a=n(376);Object.defineProperty(e,"catmullRom2Bezier",{enumerable:!0,get:function(){return r(a).default}});var o=n(379);Object.defineProperty(e,"fillPath",{enumerable:!0,get:function(){return r(o).default}});var s=n(380);Object.defineProperty(e,"fillPathByDiff",{enumerable:!0,get:function(){return r(s).default}});var l=n(381);Object.defineProperty(e,"formatPath",{enumerable:!0,get:function(){return r(l).default}});var u=n(382);Object.defineProperty(e,"pathIntersection",{enumerable:!0,get:function(){return r(u).default}});var c=n(387);Object.defineProperty(e,"parsePathArray",{enumerable:!0,get:function(){return r(c).default}});var f=n(185);Object.defineProperty(e,"parsePathString",{enumerable:!0,get:function(){return r(f).default}});var h=n(183);Object.defineProperty(e,"path2Curve",{enumerable:!0,get:function(){return r(h).default}});var p=n(184);Object.defineProperty(e,"path2Absolute",{enumerable:!0,get:function(){return r(p).default}});var d=n(182);Object.defineProperty(e,"reactPath",{enumerable:!0,get:function(){return r(d).default}});var g=n(100);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return r(g).default}});var y=n(388);Object.defineProperty(e,"path2Segments",{enumerable:!0,get:function(){return r(y).default}});var v=n(186);Object.defineProperty(e,"getLineIntersect",{enumerable:!0,get:function(){return r(v).default}});var m=n(389);Object.defineProperty(e,"isPolygonsIntersect",{enumerable:!0,get:function(){return r(m).default}});var _=n(187);Object.defineProperty(e,"isPointInPolygon",{enumerable:!0,get:function(){return r(_).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5).__importStar(n(1)),i=n(101),a=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,a=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=a}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(r=0,i=1):s>1?(r=n[0===o?0:o-1],i=n[o===s-1?s-1:o+1],0!==o?r+=(e-r)/2:r-=(i-e)/2,o!==s-1?i-=(i-e)/2:i+=(e-n[s-2])/2):(r=0===e?0:e-.5,i=0===e?1:e+.5),{pre:r,next:i}},t.prototype.adjustData=function(t,e){var n=this,i=this.getDimValues(e);r.each(t,(function(t,e){r.each(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.each(t,(function(t){void 0===t[e]&&(t[e]=i.DEFAULT_Y)})),r.groupBy(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,a=r.assign({},this.dimValuesMap),o=[];if(e&&this.isAdjust("x")&&o.push(e),n&&this.isAdjust("y")&&o.push(n),o.forEach((function(e){a&&a[e]||(a[e]=r.valuesOfKey(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){a.y=[i.DEFAULT_Y,1]}return a},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.convertPolarPath=e.convertNormalPath=e.getSplinePath=e.getLinePath=e.catmullRom2bezier=e.smoothBezier=void 0;var r=n(0),i=n(8),a=n(1),o=n(14);function s(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var a=e.convert({x:t[r],y:t[r+1]});n.push(a.x,a.y)}return n}function l(t,e){var n=e.isTransposed,r=t[1],i=t[6],a=t[7],o=e.convert({x:i,y:a});return["A",r,r,0,0,n?0:1,o.x,o.y]}function u(t,n,r){for(var i=!!n,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var l,u,c,f=(0,e.smoothBezier)(a,.4,i,r),h=a.length,p=[];for(o=0;o<h-1;o++)l=f[2*o],u=f[2*o+1],c=a[o+1],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return i&&(l=f[h],u=f[h+1],c=a[0],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),p}function c(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var a=t[r];n.push(["L",a.x,a.y])}e&&n.push(["Z"])}return n}(t,e)}e.smoothBezier=function(t,e,n,a){var o,s,l,u,c,f,h,p,d=[],g=!!a;if(g){u=(o=r.__read(a,2))[0],c=o[1];for(var y=0,v=t.length;y<v;y++){var m=t[y];u=i.vec2.min([0,0],u,m),c=i.vec2.max([0,0],c,m)}}y=0;for(var _=t.length;y<_;y++){m=t[y];if(0!==y||n)if(y!==_-1||n){s=t[n?y?y-1:_-1:y-1],l=t[n?(y+1)%_:y+1];var x=[0,0];x=i.vec2.sub(x,l,s),x=i.vec2.scale(x,x,e);var b=i.vec2.distance(m,s),M=i.vec2.distance(m,l),C=b+M;0!==C&&(b/=C,M/=C);var P=i.vec2.scale([0,0],x,-b),S=i.vec2.scale([0,0],x,M);h=i.vec2.add([0,0],m,P),f=i.vec2.add([0,0],m,S),f=i.vec2.min([0,0],f,i.vec2.max([0,0],l,m)),f=i.vec2.max([0,0],f,i.vec2.min([0,0],l,m)),P=i.vec2.sub([0,0],f,m),P=i.vec2.scale([0,0],P,-b/M),h=i.vec2.add([0,0],m,P),h=i.vec2.min([0,0],h,i.vec2.max([0,0],s,m)),h=i.vec2.max([0,0],h,i.vec2.min([0,0],s,m)),S=i.vec2.sub([0,0],m,h),S=i.vec2.scale([0,0],S,M/b),f=i.vec2.add([0,0],m,S),g&&(h=i.vec2.max([0,0],h,u),h=i.vec2.min([0,0],h,c),f=i.vec2.max([0,0],f,u),f=i.vec2.min([0,0],f,c)),d.push(p),d.push(h),p=f}else h=m,d.push(p),d.push(h);else p=m}return n&&d.push(d.shift()),d},e.catmullRom2bezier=u,e.getLinePath=c,e.getSplinePath=function(t,e,n){var r=[],i=t[0],a=null;if(t.length<=2)return c(t,e);for(var o=0,s=t.length;o<s;o++){var l=t[o];a&&a.x===l.x&&a.y===l.y||(r.push(l.x),r.push(l.y),a=l)}var f=u(r,e,n||[[0,0],[1,1]]);return f.unshift(["M",i.x,i.y]),f},e.convertNormalPath=function(t,e){var n=[];return(0,a.each)(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(s(e,t));break;case"a":n.push(l(e,t));break;case"z":default:n.push(e)}})),n},e.convertPolarPath=function(t,e){var n,r,i,u=[];return(0,a.each)(e,(function(a,c){switch(a[0].toLowerCase()){case"m":case"c":case"q":u.push(s(a,t));break;case"l":n=e[c-1],r=a,i=t.isTransposed,(i?n[n.length-2]===r[1]:n[n.length-1]===r[2])?u=u.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,a=n.endAngle,s="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},l={x:e[1],y:e[2]},u=[],c=r?"y":"x",f=Math.abs(l[c]-s[c])*(a-i),h=l[c]>=s[c]?1:0,p=f>Math.PI?1:0,d=n.convert(l),g=(0,o.getDistanceToCenter)(n,d);if(g>=.5)if(f===2*Math.PI){var y={x:(l.x+s.x)/2,y:(l.y+s.y)/2},v=n.convert(y);u.push(["A",g,g,0,p,h,v.x,v.y]),u.push(["A",g,g,0,p,h,d.x,d.y])}else u.push(["A",g,g,0,p,h,d.x,d.y]);return u}(n,r,t)):u.push(s(a,t));break;case"a":u.push(l(a,t));break;case"z":default:u.push(a)}})),function(t){(0,a.each)(t,(function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],i=t[n+1];i&&"a"===i[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&i&&"l"===i[0].toLowerCase()&&(i[0]="M")}}))}(u),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.checkShapeOverlap=e.getOverlapArea=e.getLabelBackgroundInfo=e.findLabelTextShape=void 0;var r=n(1),i=n(54);function a(t,e,n){return void 0===n&&(n=0),Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n))*Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n))}e.findLabelTextShape=function(t){return t.find((function(t){return"text"===t.get("type")}))},e.getLabelBackgroundInfo=function(t,e,n){void 0===n&&(n=[0,0,0,0]);var a=t&&t.getChildren()[0];if(a){var o=a.clone();(null==e?void 0:e.rotate)&&(0,i.rotate)(o,-e.rotate);var s=o.getCanvasBBox(),l=s.x,u=s.y,c=s.width,f=s.height;o.destroy();var h=n;return(0,r.isNil)(h)?h=[2,2,2,2]:(0,r.isNumber)(h)&&(h=new Array(4).fill(h)),{x:l-h[3],y:u-h[0],width:c+h[1]+h[3],height:f+h[0]+h[2],rotation:(null==e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}},e.getOverlapArea=a,e.checkShapeOverlap=function(t,e){var n=t.getBBox();return(0,r.some)(e,(function(t){var e=t.getBBox();return a(n,e,2)>0}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoom=e.getIdentityMatrix=e.rotate=e.getRotateMatrix=e.translate=e.transform=void 0;var r=n(8).ext.transform;function i(t,e){var n=t.attr(),i=n.x,a=n.y;return r(t.getMatrix(),[["t",-i,-a],["r",e],["t",i,a]])}e.transform=r,e.translate=function(t,e,n){var i=r(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)},e.getRotateMatrix=i,e.rotate=function(t,e){var n=i(t,e);t.setMatrix(n)},e.getIdentityMatrix=function(){return[1,0,0,0,1,0,0,0,1]},e.zoom=function(t,e){var n=t.getBBox(),i=(n.minX+n.maxX)/2,a=(n.minY+n.maxY)/2;t.applyToMatrix([i,a,1]);var o=r(t.getMatrix(),[["t",-i,-a],["s",e,e],["t",i,a]]);t.setMatrix(o)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnglePoint=e.getFactTitleConfig=void 0;var r=n(2);e.getFactTitleConfig=function(t){return[r.DIRECTION.TOP,r.DIRECTION.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.DIRECTION.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.DIRECTION.TOP?"bottom":"top"}}:[r.DIRECTION.LEFT,r.DIRECTION.RIGHT].includes(t)?{offsetX:t===r.DIRECTION.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.DIRECTION.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}},e.getAnglePoint=function(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.registerComponentController=e.Event=e.registerGeometry=e.View=e.Chart=void 0;var i=n(233);Object.defineProperty(e,"Chart",{enumerable:!0,get:function(){return r(i).default}});var a=n(153);Object.defineProperty(e,"View",{enumerable:!0,get:function(){return r(a).default}}),Object.defineProperty(e,"registerGeometry",{enumerable:!0,get:function(){return a.registerGeometry}});var o=n(114);Object.defineProperty(e,"Event",{enumerable:!0,get:function(){return r(o).default}});var s=n(208);Object.defineProperty(e,"registerComponentController",{enumerable:!0,get:function(){return s.registerComponentController}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(85)),a=r.__importDefault(n(24));e.default=function(t){if(!(0,i.default)(t)||!(0,a.default)(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;try{r=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(t){}finally{r=void 0===r?n:r}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(191),a=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){(0,r.assign)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return(0,r.map)(this.ticks,(function(e,n){return(0,r.isObject)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return(0,r.isNil)(i)||!(0,r.isFunction)(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){(0,r.assign)(this,this.__cfg__),this.setDomain(),(0,r.isEmpty)(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if((0,r.isString)(t)){var n=(0,i.getTickMethod)(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else(0,r.isFunction)(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return this.range[0]},t.prototype.rangeMax=function(){return this.range[1]},t.prototype.calcPercent=function(t,e,n){return(0,r.isNumber)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisLabel=e.testLabel=e.getLabelLength=e.getMaxLabelWidth=void 0;var r=n(1),i=n(431);function a(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}e.getMaxLabelWidth=function(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return(0,r.isNil)(e)?"":""+e})),n=0,i=0,a=0;a<e.length;a+=1){for(var o=0,s=0;s<=e[a].length;s+=1){var l=e[a].charCodeAt(s);o+=l>=19968&&l<=40869?2:1}o>n&&(n=o,i=a)}return t[i].getBBox().width}(t);var e=0;return(0,r.each)(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e},e.getLabelLength=a,e.testLabel=function(t,e){return t.getBBox().width<e},e.ellipsisLabel=function(t,e,n,o){var s;void 0===o&&(o="tail");var l=null!==(s=e.attr("text"))&&void 0!==s?s:"";if("tail"===o){var u=(0,r.pick)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),c=(0,r.getEllipsisText)(l,n,u,"…");return l!==c?(e.attr("text",c),e.set("tip",l),!0):(e.set("tip",null),!1)}var f=a(t,e),h=(0,i.strLen)(l),p=!1;if(n<f){var d=Math.floor(n/f*h)-2,g=void 0;(g=d>=0?(0,i.ellipsisString)(l,d,o):"…")&&(e.attr("text",g),p=!0)}return p?e.set("tip",l):e.set("tip",null),p}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MarkerSymbols=void 0,e.MarkerSymbols={hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.Rect=e.Polyline=e.Polygon=e.Path=e.Marker=e.Line=e.Image=e.Ellipse=e.Circle=e.Base=void 0;var i=n(26);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(489);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(490);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(o).default}});var s=n(491);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(s).default}});var l=n(492);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(l).default}});var u=n(493);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(u).default}});var c=n(494);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(c).default}});var f=n(496);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(f).default}});var h=n(497);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(h).default}});var p=n(498);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(p).default}});var d=n(501);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(d).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeView=e.getMergedRegion=e.getRefreshRegion=e.refreshElement=e.drawPath=e.clearChanged=e.checkChildrenRefresh=e.checkRefresh=e.drawChildren=e.applyAttrsToContext=void 0;var r=n(0),i=n(1),a=n(218),o=r.__importDefault(n(219)),s=n(15),l=r.__importStar(n(80)),u={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){for(var n=0;n<t.length;n++){var r=t[n];if(r.cfg.visible)if(r.cfg.hasChanged)r.cfg.refresh=!0,r.isGroup()&&f(r.cfg.children,e);else if(r.cfg.refresh)r.isGroup()&&c(r.cfg.children,e);else{var i=h(r,e);r.cfg.refresh=i,i&&r.isGroup()&&c(r.cfg.children,e)}}}function f(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&f(r.get("children"),e)}}function h(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&(0,s.intersectRect)(n,e)}function p(t){var e;if(t.destroyed)e=t._cacheCanvasBBox;else{var n=t.get("cacheCanvasBBox"),r=n&&!(!n.width||!n.height),i=t.getCanvasBBox(),a=i&&!(!i.width||!i.height);r&&a?e=(0,s.mergeRegion)(n,i):r?e=n:a&&(e=i)}return e}e.applyAttrsToContext=function(t,e){var n=e.attr();for(var r in n){var o=n[r],s=u[r]?u[r]:r;"matrix"===s&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===s&&t.setLineDash?(0,i.isArray)(o)&&t.setLineDash(o):("strokeStyle"===s||"fillStyle"===s?o=(0,a.parseStyle)(t,e,o):"globalAlpha"===s&&(o*=t.globalAlpha),t[s]=o)}},e.drawChildren=function(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}},e.checkRefresh=function(t,e,n){var r=t.get("refreshElements");(0,i.each)(r,(function(e){if(e!==t)for(var n=e.cfg.parent;n&&n!==t&&!n.cfg.refresh;)n.cfg.refresh=!0,n=n.cfg.parent})),r[0]===t?f(e,n):c(e,n)},e.checkChildrenRefresh=c,e.clearChanged=function t(e){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&t(r.cfg.children)}},e.drawPath=function(t,e,n,r){var i=n.path,a=n.startArrow,s=n.endArrow;if(i){var u=[0,0],c=[0,0],f={dx:0,dy:0};e.beginPath();for(var h=0;h<i.length;h++){var p=i[h],d=p[0];if(0===h&&a&&a.d){var g=t.getStartTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],a.d)}else if(h===i.length-2&&"Z"===i[h+1][0]&&s&&s.d){if("Z"===i[h+1][0]){g=t.getEndTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}}else if(h===i.length-1&&s&&s.d&&"Z"!==i[0]){g=t.getEndTangent();f=l.getShortenOffset(g[0][0],g[0][1],g[1][0],g[1][1],s.d)}var y=f.dx,v=f.dy;switch(d){case"M":e.moveTo(p[1]-y,p[2]-v),c=[p[1],p[2]];break;case"L":e.lineTo(p[1]-y,p[2]-v);break;case"Q":e.quadraticCurveTo(p[1],p[2],p[3]-y,p[4]-v);break;case"C":e.bezierCurveTo(p[1],p[2],p[3],p[4],p[5]-y,p[6]-v);break;case"A":var m=void 0;r?(m=r[h])||(m=(0,o.default)(u,p),r[h]=m):m=(0,o.default)(u,p);var _=m.cx,x=m.cy,b=m.rx,M=m.ry,C=m.startAngle,P=m.endAngle,S=m.xRotation,O=m.sweepFlag;if(e.ellipse)e.ellipse(_,x,b,M,S,C,P,1-O);else{var w=b>M?b:M,A=b>M?1:b/M,T=b>M?M/b:1;e.translate(_,x),e.rotate(S),e.scale(A,T),e.arc(0,0,w,C,P,1-O),e.scale(1/A,1/T),e.rotate(-S),e.translate(-_,-x)}break;case"Z":e.closePath()}if("Z"===d)u=c;else{var E=p.length;u=[p[E-2],p[E-1]]}}}},e.refreshElement=function(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))},e.getRefreshRegion=p,e.getMergedRegion=function(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return(0,i.each)(t,(function(t){var i=p(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:(0,i.min)(e),minY:(0,i.min)(n),maxX:(0,i.max)(r),maxY:(0,i.max)(a)}},e.mergeView=function(t,e){return t&&e&&(0,s.intersectRect)(t,e)?{minX:Math.max(t.minX,e.minX),minY:Math.max(t.minY,e.minY),maxX:Math.min(t.maxX,e.maxX),maxY:Math.min(t.maxY,e.maxY)}:null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setClip=e.setTransform=e.setShadow=void 0;var r=n(27);e.setShadow=function(t,e){var n=t.cfg.el,r=t.attr(),i={dx:r.shadowOffsetX,dy:r.shadowOffsetY,blur:r.shadowBlur,color:r.shadowColor};if(i.dx||i.dy||i.blur||i.color){var a=e.find("filter",i);a||(a=e.addShadow(i)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")},e.setTransform=function(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,r=[],i=0;i<9;i+=3)r.push(e[i]+","+e[i+1]);-1===(r=r.join(",")).indexOf("NaN")?n.setAttribute("transform","matrix("+r+")"):console.warn("invalid matrix:",e)}},e.setClip=function(t,e){var n=t.getClip(),i=t.get("el");if(n){if(n&&!i.hasAttribute("clip-path")){(0,r.createDom)(n),n.createPath(e);var a=e.addClip(n);i.setAttribute("clip-path","url(#"+a+")")}}else i.removeAttribute("clip-path")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getRectWithCornerRadius=e.getFunnelPath=e.getIntervalRectPath=e.getBackgroundRectPath=e.parseRadius=e.getRectPath=e.getRectPoints=void 0;var r=n(0),i=n(1),a=n(13);function o(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,a=t.length;i<a;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function s(t,e){var n=0,r=0,a=0,o=0;return(0,i.isArray)(t)?1===t.length?n=r=a=o=t[0]:2===t.length?(n=a=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],a=t[2]):(n=t[0],r=t[1],a=t[2],o=t[3]):n=r=a=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),a+o>e&&(o=e-(a=a?e/(1+o/a):0)),[n||0,r||0,a||0,o||0]}function l(t,e){return[e,t]}e.getRectPoints=function(t){var e,n,a,o,s,l,u=t.x,c=t.y,f=t.y0,h=t.size;(0,i.isArray)(c)?(a=(e=r.__read(c,2))[0],o=e[1]):(a=f,o=c),(0,i.isArray)(u)?(s=(n=r.__read(u,2))[0],l=n[1]):(s=u-h/2,l=u+h/2);var p=[{x:s,y:a},{x:s,y:o}];return p.push({x:l,y:o},{x:l,y:a}),p},e.getRectPath=o,e.parseRadius=s,e.getBackgroundRectPath=function(t,e,n){var o=[];if(n.isRect){var l=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},u=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},c=(0,i.get)(t,["background","style","radius"]);if(c){var f=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,h=n.isTransposed?n.getWidth():n.getHeight(),p=r.__read(s(c,Math.min(f,h)),4),d=p[0],g=p[1],y=p[2],v=p[3],m=n.isTransposed&&n.isReflect("y"),_=m?0:1,x=function(t){return m?-t:t};o.push(["M",l.x,u.y+x(d)]),0!==d&&o.push(["A",d,d,0,0,_,l.x+d,u.y]),o.push(["L",u.x-g,u.y]),0!==g&&o.push(["A",g,g,0,0,_,u.x,u.y+x(g)]),o.push(["L",u.x,l.y-x(y)]),0!==y&&o.push(["A",y,y,0,0,_,u.x-y,l.y]),o.push(["L",l.x+v,l.y]),0!==v&&o.push(["A",v,v,0,0,_,l.x,l.y-x(v)])}else o.push(["M",l.x,l.y]),o.push(["L",u.x,l.y]),o.push(["L",u.x,u.y]),o.push(["L",l.x,u.y]),o.push(["L",l.x,l.y]);o.push(["z"])}if(n.isPolar){var b=n.getCenter(),M=(0,a.getAngle)(t,n),C=M.startAngle,P=M.endAngle;if("theta"===n.type||n.isTransposed){var S=function(t){return Math.pow(t,2)};d=Math.sqrt(S(b.x-e[0].x)+S(b.y-e[0].y)),g=Math.sqrt(S(b.x-e[2].x)+S(b.y-e[2].y));o=(0,a.getSectorPath)(b.x,b.y,d,n.startAngle,n.endAngle,g)}else o=(0,a.getSectorPath)(b.x,b.y,n.getRadius(),C,P)}return o},e.getIntervalRectPath=function(t,e,n){var r=n.getWidth(),i=n.getHeight(),a="rect"===n.type,s=[],l=(t[2].x-t[1].x)/2,u=n.isTransposed?l*i/r:l*r/i;return"round"===e?(a?(s.push(["M",t[0].x,t[0].y+u]),s.push(["L",t[1].x,t[1].y-u]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y-u]),s.push(["L",t[3].x,t[3].y+u]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y+u])):(s.push(["M",t[0].x,t[0].y]),s.push(["L",t[1].x,t[1].y]),s.push(["A",l,l,0,0,1,t[2].x,t[2].y]),s.push(["L",t[3].x,t[3].y]),s.push(["A",l,l,0,0,1,t[0].x,t[0].y])),s.push(["z"])):s=o(t),s},e.getFunnelPath=function(t,e,n){var r=[];return(0,i.isNil)(e)?n?r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):r.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),r},e.getRectWithCornerRadius=function(t,e,n){var i,a,o,u,c,f,h,p=r.__read(r.__spreadArray([],r.__read(t),!1),4),d=p[0],g=p[1],y=p[2],v=p[3],m=r.__read("number"==typeof n?Array(4).fill(n):n,4),_=m[0],x=m[1],b=m[2],M=m[3];e.isTransposed&&(g=(i=r.__read(l(g,v),2))[0],v=i[1]),e.isReflect("y")&&(d=(a=r.__read(l(d,g),2))[0],g=a[1],y=(o=r.__read(l(y,v),2))[0],v=o[1]),e.isReflect("x")&&(d=(u=r.__read(l(d,v),2))[0],v=u[1],g=(c=r.__read(l(g,y),2))[0],y=c[1]);var C=[],P=function(t){return Math.abs(t)};return _=(f=r.__read(s([_,x,b,M],Math.min(P(v.x-d.x),P(g.y-d.y))).map((function(t){return P(t)})),4))[0],x=f[1],b=f[2],M=f[3],e.isTransposed&&(_=(h=r.__read([M,_,x,b],4))[0],x=h[1],b=h[2],M=h[3]),d.y<g.y?(C.push(["M",v.x,v.y+b]),0!==b&&C.push(["A",b,b,0,0,0,v.x-b,v.y]),C.push(["L",d.x+M,d.y]),0!==M&&C.push(["A",M,M,0,0,0,d.x,d.y+M]),C.push(["L",g.x,g.y-_]),0!==_&&C.push(["A",_,_,0,0,0,g.x+_,g.y]),C.push(["L",y.x-x,y.y]),0!==x&&C.push(["A",x,x,0,0,0,y.x,y.y-x]),C.push(["L",v.x,v.y+b]),C.push(["z"])):v.x<d.x?(C.push(["M",y.x+x,y.y]),0!==x&&C.push(["A",x,x,0,0,0,y.x,y.y+x]),C.push(["L",v.x,v.y-b]),0!==b&&C.push(["A",b,b,0,0,0,v.x+b,v.y]),C.push(["L",d.x-M,d.y]),0!==M&&C.push(["A",M,M,0,0,0,d.x,d.y-M]),C.push(["L",g.x,g.y+_]),0!==_&&C.push(["A",_,_,0,0,0,g.x-_,g.y]),C.push(["L",y.x+x,y.y]),C.push(["z"])):(C.push(["M",g.x,g.y+_]),0!==_&&C.push(["A",_,_,0,0,1,g.x+_,g.y]),C.push(["L",y.x-x,y.y]),0!==x&&C.push(["A",x,x,0,0,1,y.x,y.y+x]),C.push(["L",v.x,v.y-b]),0!==b&&C.push(["A",b,b,0,0,1,v.x-b,v.y]),C.push(["L",d.x+M,d.y]),0!==M&&C.push(["A",M,M,0,0,1,d.x,d.y-M]),C.push(["L",g.x,g.y+_]),C.push(["z"])),C}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=r(t);return null!==t&&"object"===e||"function"===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vec4=e.vec3=e.vec2=e.quat2=e.quat=e.mat4=e.mat3=e.mat2d=e.mat2=e.glMatrix=void 0;var r=n(0),i=r.__importStar(n(28));e.glMatrix=i;var a=r.__importStar(n(324));e.mat2=a;var o=r.__importStar(n(325));e.mat2d=o;var s=r.__importStar(n(161));e.mat3=s;var l=r.__importStar(n(162));e.mat4=l;var u=r.__importStar(n(163));e.quat=u;var c=r.__importStar(n(326));e.quat2=c;var f=r.__importStar(n(165));e.vec2=f;var h=r.__importStar(n(91));e.vec3=h;var p=r.__importStar(n(164));e.vec4=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importStar(n(165));e.default={box:function(t,e,n,r){return(0,i.getBBoxByArray)([t,n],[e,r])},length:function(t,e,n,r){return(0,i.distance)(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,a,o){var s=(n-t)*(a-t)+(r-e)*(o-e);return s<0?(0,i.distance)(t,e,a,o):s>(n-t)*(n-t)+(r-e)*(r-e)?(0,i.distance)(n,r,a,o):this.pointToLine(t,e,n,r,a,o)},pointToLine:function(t,e,n,r,i,o){var s=[n-t,r-e];if(a.exactEquals(s,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var l=[-s[1],s[0]];a.normalize(l,l);var u=[i-t,o-e];return Math.abs(a.dot(u,l))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,l=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function u(t){return"#"+h(t[0])+h(t[1])+h(t[2])}var c,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},h=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},p=function(t){if("#"===t[0]&&7===t.length)return t;var e;c||((e=document.createElement("i")).title="Web Colour Picker",e.style.display="none",document.body.appendChild(e),c=e),c.style.color=t;var n=document.defaultView.getComputedStyle(c,"").getPropertyValue("color");return n=u(i.exec(n)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.default={rgb2arr:f,gradient:function(t){var e=(0,r.isString)(t)?t.split("-"):t,n=(0,r.map)(e,(function(t){return f(-1===t.indexOf("#")?p(t):t)}));return function(t){return function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),r=t.length-1,i=Math.floor(r*n),a=r*n-i,o=t[i],s=i===r?o:t[i+1];return u([l(o,s,a,0),l(o,s,a,1),l(o,s,a,2)])}(n,t)}},toRGB:(0,r.memoize)(p),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(l=a.exec(t))[1]+90;n=l[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var l;e="radial-gradient(",n=(l=o.exec(t))[4]}var u=n.match(s);return(0,r.each)(u,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")"}return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTickInterval=e.YEAR=e.MONTH=e.DAY=e.HOUR=e.MINUTE=e.SECOND=e.toTimeStamp=e.timeFormat=void 0;var r=n(0),i=n(1),a=r.__importDefault(n(193)),o=r.__importStar(n(193)),s=r.__importDefault(n(404));e.timeFormat=function(t,e){return(o.format||a.default.format)(t,e)},e.toTimeStamp=function(t){return(0,i.isString)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),(0,i.isDate)(t)&&(t=t.getTime()),t};e.SECOND=1e3;e.MINUTE=6e4;var l=36e5;e.HOUR=l;var u=24*l;e.DAY=u;var c=31*u;e.MONTH=c;e.YEAR=31536e6;var f=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",l],["HH",6*l],["HH",12*l],["YYYY-MM-DD",u],["YYYY-MM-DD",4*u],["YYYY-WW",7*u],["YYYY-MM",c],["YYYY-MM",4*c],["YYYY-MM",6*c],["YYYY",380*u]];e.getTickInterval=function(t,e,n){var r=(e-t)/n,a=(0,s.default)((function(t){return t[1]}))(f,r)-1,o=f[a];return a<0?o=f[0]:a>=f.length&&(o=(0,i.last)(f)),o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return(0,i.__extends)(e,t),e.prototype.scale=function(t){if((0,a.isNil)(t))return NaN;var e=this.rangeMin(),n=this.rangeMax();return this.max===this.min?e:e+this.getScalePercent(t)*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=(0,a.head)(e),r=(0,a.last)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),(0,a.isNil)(this.minLimit)||(this.min=n),(0,a.isNil)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=(0,a.getRange)(this.values),e=t.min,n=t.max;(0,a.isNil)(this.min)&&(this.min=e),(0,a.isNil)(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=(0,a.filter)(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.precisionAdd=e.getLogPositiveMin=e.log=e.calBase=void 0;var r=n(1);function i(t){var e=t.toString().split(/[eE]/),n=(e[0].split(".")[1]||"").length-+(e[1]||0);return n>0?n:0}e.calBase=function(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)},e.log=function(t,e){return 1===t?1:Math.log(e)/Math.log(t)},e.getLogPositiveMin=function(t,e,n){(0,r.isNil)(n)&&(n=Math.max.apply(null,t));var i=n;return(0,r.each)(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(i=1),i},e.precisionAdd=function(t,e){var n=i(t),r=i(e),a=Math.pow(10,Math.max(n,r));return(t*a+e*a)/a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(1),o=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,a=void 0===i?[1,0,0,0,1,0,0,0,1]:i,o=t.isTransposed,s=void 0!==o&&o;this.start=e,this.end=n,this.matrix=a,this.originalMatrix=(0,r.__spreadArray)([],a),this.isTransposed=s}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){(0,a.assign)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),i+t*(a-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,a=r.end;return this.isReflect(e)&&(i=(n=[a,i])[0],a=n[1]),(t-i)/(a-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=[t,e,n];return i.vec3.transformMat3(a,a,r),a},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,a=i.mat3.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return a&&i.vec3.transformMat3(o,o,a),o},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,i=this.applyMatrix(n,r,1);return{x:i[0],y:i[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return i.ext.leftTranslate(e,e,[-n.x,-n.y]),i.ext.leftRotate(e,e,t),i.ext.leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return i.ext.leftTranslate(n,n,[-r.x,-r.y]),i.ext.leftScale(n,n,[t,e]),i.ext.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return i.ext.leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||(0,r.__spreadArray)([],this.originalMatrix)},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderTag=void 0;var r=n(0),i=n(1),a=n(60),o=n(33),s=n(10);e.renderTag=function(t,e){var n=e.x,l=e.y,u=e.content,c=e.style,f=e.id,h=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,y=e.isVertical,v=e.ellipsisPosition,m=e.background,_=t.addGroup({id:f+"-group",name:h+"-group",attrs:{x:n,y:l}}),x=_.addShape({type:"text",id:f,name:h,attrs:(0,r.__assign)({x:0,y:0,text:u},c)}),b=(0,s.formatPadding)((0,i.get)(m,"padding",0));if(d&&g){var M=d-(b[1]+b[3]);(0,a.ellipsisLabel)(!y,x,M,v)}if(m){var C=(0,i.get)(m,"style",{}),P=x.getCanvasBBox(),S=P.minX,O=P.minY,w=P.width,A=P.height;_.addShape("rect",{id:f+"-bg",name:f+"-bg",attrs:(0,r.__assign)({x:S-b[3],y:O-b[0],width:w+b[1]+b[3],height:A+b[0]+b[2]},C)}).toBack()}(0,o.applyTranslate)(_,n,l),(0,o.applyRotate)(_,p,n,l)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){this.get("container").style.display="",this.set("visible",!0)},e.prototype.hide=function(){this.get("container").style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=t?"auto":"none";this.getContainer().style.pointerEvents=e,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return(0,s.createBBox)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");(0,s.clearDom)(t)},e.prototype.destroy=function(){this.removeEvent(),this.removeDom(),t.prototype.destroy.call(this)},e.prototype.init=function(){t.prototype.init.call(this),this.initContainer(),this.initDom(),this.resetStyles(),this.applyStyles(),this.initEvent(),this.initCapture(),this.initVisible()},e.prototype.initCapture=function(){this.setCapture(this.get("capture"))},e.prototype.initVisible=function(){this.get("visible")?this.show():this.hide()},e.prototype.initDom=function(){},e.prototype.initContainer=function(){var t=this.get("container");if((0,o.isNil)(t)){t=this.createDom();var e=this.get("parent");(0,o.isString)(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else(0,o.isString)(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?(0,o.deepMix)({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&(0,s.hasClass)(e,n)){var r=t[n];(0,a.modifyCSS)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){(0,o.each)(e,(function(e,n){var r=t.getElementsByClassName(n);(0,o.each)(r,(function(t){(0,a.modifyCSS)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");(0,a.modifyCSS)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return(0,a.createDom)(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){(0,o.hasKey)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(r.__importDefault(n(106)).default);e.default=l},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.createAction=e.Action=void 0;var i=n(11);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return r(i).default}});var a=n(203);Object.defineProperty(e,"createAction",{enumerable:!0,get:function(){return a.createAction}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return a.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return a.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findItemsFromViewRecurisive=e.findItemsFromView=e.getTooltipItems=e.findDataByPoint=void 0;var r=n(0),i=n(1),a=n(2),o=n(38);function s(t,e,n){var r=n.translate(t),a=n.translate(e);return(0,i.isNumberEqual)(r,a)}function l(t,e,n){var r=n.coordinate,o=n.getYScale(),s=o.field,l=r.invert(e),u=o.invert(l.y);return(0,i.find)(t,(function(t){var e=t[a.FIELD_ORIGIN];return e[s][0]<=u&&e[s][1]>=u}))||t[t.length-1]}var u=(0,i.memoize)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,a=0;a<n;a++){var o=e[a],s=t.translate(o);s<r&&(r=s),s>i&&(i=s)}return(i-r)/(n-1)}));function c(t){var e,n,s,l=function(t){var e=(0,i.values)(t.attributes);return(0,i.filter)(e,(function(t){return(0,i.contains)(a.GROUP_ATTRS,t.type)}))}(t);try{for(var u=r.__values(l),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.getScale(f.type);if(h&&h.isLinear){var p=(0,i.get)(t.scaleDefs,h.field);if("cat"!==(0,o.inferScaleType)(h,p,f.type,t.type)){s=h;break}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}var d=t.getXScale(),g=t.getYScale();return s||g||d}function f(t,e,n){if(0===e.length)return null;var r=n.type,o=n.getXScale(),c=n.getYScale(),f=o.field,h=c.field,p=null;if("heatmap"===r||"point"===r){for(var d=n.coordinate.invert(t),g=o.invert(d.x),y=c.invert(d.y),v=1/0,m=0;m<e.length;m++){var _=e[m],x=_[a.FIELD_ORIGIN],b=Math.pow(x[f]-g,2)+Math.pow(x[h]-y,2);b<v&&(v=b,p=_)}return p}var M=e[0],C=e[e.length-1],P=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,a=i[i.length-1],o=i[0],s=n.invert(t).x;return n.isPolar&&s>(1+a)/2&&(s=o),r.translate(r.invert(s))}(t,n),S=M[a.FIELD_ORIGIN][f],O=M[a.FIELD_ORIGIN][h],w=C[a.FIELD_ORIGIN][f],A=c.isLinear&&(0,i.isArray)(O);if((0,i.isArray)(S)){for(m=0;m<e.length;m++){x=(B=e[m])[a.FIELD_ORIGIN];if(o.translate(x[f][0])<=P&&o.translate(x[f][1])>=P){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}}(0,i.isArray)(p)&&(p=l(p,t,n))}else{var T=void 0;if(o.isLinear||"timeCat"===o.type){if((P>o.translate(w)||P<o.translate(S))&&(P>o.max||P<o.min))return null;for(var E=0,I=e.length-1,L=void 0;E<=I;){var D=e[L=Math.floor((E+I)/2)][a.FIELD_ORIGIN][f];if(s(D,P,o))return e[L];o.translate(D)<=o.translate(P)?(E=L+1,C=e[L],T=e[L+1]):(0===I&&(C=e[0]),I=L-1)}}else{for(m=0;m<e.length;m++){var B;if(s((x=(B=e[m])[a.FIELD_ORIGIN])[f],P,o)){if(!A){p=B;break}(0,i.isArray)(p)||(p=[]),p.push(B)}else o.translate(x[f])<=P&&(C=B,T=e[m+1])}(0,i.isArray)(p)&&(p=l(p,t,n))}C&&T&&Math.abs(o.translate(C[a.FIELD_ORIGIN][f])-P)>Math.abs(o.translate(T[a.FIELD_ORIGIN][f])-P)&&(C=T)}var j=u(n.getXScale());return!p&&Math.abs(o.translate(C[a.FIELD_ORIGIN][f])-P)<=j/2&&(p=C),p}function h(t,e,n,s){var l,u;void 0===n&&(n=""),void 0===s&&(s=!1);var f,h=t[a.FIELD_ORIGIN],p=function(t,e,n){var r=e.getAttribute("position").getFields(),a=e.scales,o=(0,i.isFunction)(n)||!n?r[0]:n,s=a[o],l=s?s.getText(t[o]):t[o]||o;return(0,i.isFunction)(n)?n(l,t):l}(h,e,n),d=e.tooltipOption,g=e.theme.defaultColor,y=[];function v(e,n){if(s||!(0,i.isNil)(n)&&""!==n){var r={title:p,data:h,mappingData:t,name:e,value:n,color:t.color||g,marker:!0};y.push(r)}}if((0,i.isObject)(d)){var m=d.fields,_=d.callback;if(_){var x=m.map((function(e){return t[a.FIELD_ORIGIN][e]})),b=_.apply(void 0,r.__spreadArray([],r.__read(x),!1)),M=r.__assign({data:t[a.FIELD_ORIGIN],mappingData:t,title:p,color:t.color||g,marker:!0},b);y.push(M)}else{var C=e.scales;try{for(var P=r.__values(m),S=P.next();!S.done;S=P.next()){var O=S.value;if(!(0,i.isNil)(h[O])){var w=C[O];v((0,o.getName)(w),f=w.getText(h[O]))}}}catch(t){l={error:t}}finally{try{S&&!S.done&&(u=P.return)&&u.call(P)}finally{if(l)throw l.error}}}}else{var A=c(e);f=function(t,e){var n=t[e.field];return(0,i.isArray)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(h,A),v(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}var a=c(e);return(0,o.getName)(a)}(h,e),f)}return y}function p(t,e,n,a){var o,s,l=a.showNil,u=[],c=t.dataArray;if(!(0,i.isEmpty)(c)){t.sort(c);try{for(var p=r.__values(c),d=p.next();!d.done;d=p.next()){var g=f(e,d.value,t);if(g){var y=t.getElementId(g),v=t.elementsMap[y];if("heatmap"===t.type||v.visible){var m=h(g,t,n,l);m.length&&u.push(m)}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}}return u}function d(t,e,n,r){var i=r.showNil,a=[],o=t.container.getShape(e.x,e.y);if(o&&o.get("visible")&&o.get("origin")){var s=h(o.get("origin").mappingData,t,n,i);s.length&&a.push(s)}return a}function g(t,e,n){var i,a,o=[],s=t.geometries,l=n.shared,u=n.title,c=n.reversed;try{for(var f=r.__values(s),h=f.next();!h.done;h=f.next()){var g=h.value;if(g.visible&&!1!==g.tooltipOption){var y=g.type,v=void 0;(v=["point","edge","polygon"].includes(y)?d(g,e,u,n):["area","line","path","heatmap"].includes(y)||!1!==l?p(g,e,u,n):d(g,e,u,n)).length&&(c&&v.reverse(),o.push(v))}}}catch(t){i={error:t}}finally{try{h&&!h.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return o}e.findDataByPoint=f,e.getTooltipItems=h,e.findItemsFromView=g,e.findItemsFromViewRecurisive=function(t,e,n){var i,a,o=g(t,e,n);try{for(var s=r.__values(t.views),l=s.next();!l.done;l=s.next()){var u=l.value;o=o.concat(g(u,e,n))}}catch(t){i={error:t}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(i)throw i.error}}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(36),s=n(13),l=r.__importDefault(n(485));function u(t){var e=0;return(0,i.each)(t,(function(t){e+=t})),e/t.length}var c=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],a=this.getLabelCfgs(t);return(0,i.each)(t,(function(t,o){var s=a[o];if(!s||(0,i.isNil)(t.x)||(0,i.isNil)(t.y))n.push(null);else{var l=(0,i.isArray)(s.content)?s.content:[s.content];s.content=l;var u=l.length;(0,i.each)(l,(function(a,o){if((0,i.isNil)(a)||""===a)n.push(null);else{var l=r.__assign(r.__assign({},s),e.getLabelPoint(s,t,o));l.textAlign||(l.textAlign=e.getLabelAlign(l,o,u)),l.offset<=0&&(l.labelLine=null),n.push(l)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),r.__awaiter(this,void 0,void 0,(function(){var n,i,a;return r.__generator(this,(function(r){switch(r.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),a=this.getGeometryShapes(),[4,i.render(n,a,e)];case 1:return r.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,a=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?(0,i.get)(a,"innerLabels",{}):(0,i.get)(a,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,a=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?(0,i.deepMix)({},n,a.innerLabels,t):(0,i.deepMix)({},n,a.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,a=i?"x":"y",o=i?1:-1,s={x:0,y:0};return s[a]=e>0||1===n?r*o:r*o*-1,s},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),a=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var a=e;return(0,i.isArray)(a)&&(a=1===t.content.length?r?u(a):a.length<=2?a[e.length-1]:u(a):a[n]),a}var l={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=(0,i.isArray)(e.shape)?e.shape[0]:e.shape,f="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var h=(0,s.getPolygonCentroid)(e.x,e.y);l.x=h[0],l.y=h[1]}else"interval"!==this.geometry.type||f?(l.x=o(e.x,n),l.y=o(e.y,n)):(l.x=o(e.x,n,!0),l.y=o(e.y,n));if(f){var p=(0,i.get)(e,"nextPoints"),d=(0,i.get)(e,"points");if(p){var g=r.convert(d[1]),y=r.convert(p[1]);l.x=(g.x+y.x)/2,l.y=(g.y+y.y)/2}else if("pyramid"===c){g=r.convert(d[1]),y=r.convert(d[2]);l.x=(g.x+y.x)/2,l.y=(g.y+y.y)/2}}t.position&&this.setLabelPosition(l,e,n,t.position);var v=this.getLabelOffsetPoint(t,n,a);return l.start={x:l.x,y:l.y},l.x+=v.x,l.y+=v.y,l.color=e.color,l},t.prototype.getLabelAlign=function(t,e,n){var r="center";if(this.getCoordinate().isTransposed){var i=t.offset;r=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===r?r="left":"left"===r&&(r="right"))}return r},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,r=e.getXScale(),i=e.getYScale(),o=t[a.FIELD_ORIGIN],s=e.getElementId(t);return"line"===n||"area"===n?s+=" ".concat(o[r.field]):"path"===n&&(s+=" ".concat(o[r.field],"-").concat(o[i.field])),s},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,a=t.animateOption,s=this.geometry.coordinate,u=this.labelsRenderer;return u||(u=new l.default({container:e,layout:(0,i.get)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=u),u.region=r,u.animate=!!a&&(0,o.getDefaultAnimateCfg)("label",s),u},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,o=n.labelOption,s=n.scales,l=n.coordinate,u=o,c=u.fields,f=u.callback,h=u.cfg,p=c.map((function(t){return s[t]})),d=[];return(0,i.each)(t,(function(t,n){var o,s=t[a.FIELD_ORIGIN],u=e.getLabelText(s,p);if(f){var g=c.map((function(t){return s[t]}));if(o=f.apply(void 0,r.__spreadArray([],r.__read(g),!1)),(0,i.isNil)(o))return void d.push(null)}var y=r.__assign(r.__assign({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:s,mappingData:t,coordinate:l},h),o);(0,i.isFunction)(y.position)&&(y.position=y.position(s,t,n));var v=e.getLabelOffset(y.offset||0),m=e.getDefaultLabelCfg(v,y.position);(y=(0,i.deepMix)({},m,y)).offset=e.getLabelOffset(y.offset||0);var _=y.content;(0,i.isFunction)(_)?y.content=_(s,t,n):(0,i.isUndefined)(_)&&(y.content=u[0]),d.push(y)})),d},t.prototype.getLabelText=function(t,e){var n=[];return(0,i.each)(e,(function(e){var r=t[e.field];r=(0,i.isArray)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),(0,i.isNil)(r)||""===r?n.push(null):n.push(r)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return(0,i.isNumber)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return(0,i.each)(t.elementsMap,(function(t,n){e[n]=t.shape})),(0,i.each)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();e.default=c},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.addEndArrow=e.addStartArrow=e.getShortenOffset=void 0;var i=n(0),a=n(62),o=Math.sin,s=Math.cos,l=Math.atan2,u=Math.PI;function c(t,e,n,r,i,c,f){var h=e.stroke,p=e.lineWidth,d=l(r-c,n-i),g=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*s(u/6)+","+10*o(u/6)+" L0,0 L"+10*s(u/6)+",-"+10*o(u/6),stroke:h,lineWidth:p}});g.translate(i,c),g.rotateAtPoint(i,c,d),t.set(f?"startArrowShape":"endArrowShape",g)}function f(t,e,n,r,u,c,f){var h=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,y=f?h:p,v=y.d,m=y.fill,_=y.stroke,x=y.lineWidth,b=(0,i.__rest)(y,["d","fill","stroke","lineWidth"]),M=l(r-c,n-u);v&&(u-=s(M)*v,c-=o(M)*v);var C=new a.Path({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:(0,i.__assign)((0,i.__assign)({},b),{stroke:_||d,lineWidth:x||g,fill:m})});C.translate(u,c),C.rotateAtPoint(u,c,M),t.set(f?"startArrowShape":"endArrowShape",C)}e.getShortenOffset=function(t,e,n,r,i){var a=l(r-e,n-t);return{dx:s(a)*i,dy:o(a)*i}},e.addStartArrow=function(t,e,n,i,a,o){"object"===r(e.startArrow)?f(t,e,n,i,a,o,!0):e.startArrow?c(t,e,n,i,a,o,!0):t.set("startArrowShape",null)},e.addEndArrow=function(t,e,n,i,a,o){"object"===r(e.endArrow)?f(t,e,n,i,a,o,!1):e.endArrow?c(t,e,n,i,a,o,!1):t.set("startArrowShape",null)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20);e.default=function(t,e,n,i,a,o,s){var l=Math.min(t,n),u=Math.max(t,n),c=Math.min(e,i),f=Math.max(e,i),h=a/2;return o>=l-h&&o<=u+h&&s>=c-h&&s<=f+h&&r.Line.pointToLine(t,e,n,i,o,s)<=a/2}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Text=e.Rect=e.Polyline=e.Polygon=e.Path=e.Marker=e.Line=e.Image=e.Ellipse=e.Dom=e.Circle=e.Base=void 0;var i=n(22);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(505);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(506);Object.defineProperty(e,"Dom",{enumerable:!0,get:function(){return r(o).default}});var s=n(507);Object.defineProperty(e,"Ellipse",{enumerable:!0,get:function(){return r(s).default}});var l=n(508);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(l).default}});var u=n(509);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(u).default}});var c=n(510);Object.defineProperty(e,"Marker",{enumerable:!0,get:function(){return r(c).default}});var f=n(512);Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return r(f).default}});var h=n(513);Object.defineProperty(e,"Polygon",{enumerable:!0,get:function(){return r(h).default}});var p=n(514);Object.defineProperty(e,"Polyline",{enumerable:!0,get:function(){return r(p).default}});var d=n(515);Object.defineProperty(e,"Rect",{enumerable:!0,get:function(){return r(d).default}});var g=n(517);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(g).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getConstraint=e.getShapeAttrs=void 0;var r=n(1),i=n(43),a=n(6),o=n(52);function s(t,e,n,i,a){var s=[];if(t.length){for(var l=[],u=[],c=0,f=t.length;c<f;c++){var h=t[c];l.push(h[1]),u.push(h[0])}u=u.reverse(),(0,r.each)([l,u],(function(t,r){var c=[],f=i.parsePoints(t),h=f[0];1===l.length&&1===u.length?c=0===r?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&f.push({x:h.x,y:h.y}),c=n?(0,o.getSplinePath)(f,!1,a):(0,o.getLinePath)(f,!1),r>0&&(c[0][0]="L")),s=s.concat(c)})),s.push(["Z"])}return s}e.getShapeAttrs=function(t,e,n,r,o){for(var l=(0,a.getStyle)(t,e,!e,"lineWidth"),u=t.connectNulls,c=t.isInCircle,f=t.points,h=t.showSinglePoint,p=(0,i.getPathPoints)(f,u,h),d=[],g=0,y=p.length;g<y;g++){var v=p[g];d=d.concat(s(v,c,n,r,o))}return l.path=d,l},e.getConstraint=function(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){return!!(0,r.default)(t)&&t.indexOf(e)>-1}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return"object"===r(t)&&null!==t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(18)),o=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return(0,i.default)(t,(function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(n)})),e};e.default=o},function(t,e,n){"use strict";function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){return e&&r(t,e),n&&r(t,n),i&&r(t,i),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=e.visible,i=void 0===r||r;return n.visible=i,n}return r.__extends(e,t),e.prototype.show=function(){this.visible||this.changeVisible(!0)},e.prototype.hide=function(){this.visible&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(r.__importDefault(n(154)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerFacet=e.getFacet=e.Facet=void 0;var r=n(1),i=n(37);Object.defineProperty(e,"Facet",{enumerable:!0,get:function(){return i.Facet}});var a={};e.getFacet=function(t){return a[(0,r.lowerCase)(t)]};e.registerFacet=function(t,e){a[(0,r.lowerCase)(t)]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAxisTitleText=e.getAxisDirection=e.getAxisOption=e.getCircleAxisCenterRadius=e.getAxisTitleOptions=e.getAxisThemeCfg=e.getAxisFactorByRegion=e.isVertical=e.getAxisFactor=e.getAxisRegion=e.getCircleAxisRelativeRegion=e.getLineAxisRelativeRegion=void 0;var r=n(1),i=n(2),a=n(38),o=n(8);function s(t){var e,n;switch(t){case i.DIRECTION.TOP:e={x:0,y:1},n={x:1,y:1};break;case i.DIRECTION.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case i.DIRECTION.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case i.DIRECTION.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function l(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function u(t){var e=t.start,n=t.end;return e.x===n.x}e.getLineAxisRelativeRegion=s,e.getCircleAxisRelativeRegion=l,e.getAxisRegion=function(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=s(e):t.isPolar&&(n=l(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}},e.getAxisFactor=function(t,e){return t.isRect?t.isTransposed?[i.DIRECTION.RIGHT,i.DIRECTION.BOTTOM].includes(e)?1:-1:[i.DIRECTION.BOTTOM,i.DIRECTION.RIGHT].includes(e)?-1:1:t.isPolar&&t.x.start<0?-1:1},e.isVertical=u,e.getAxisFactorByRegion=function(t,e){var n=t.start,r=t.end;return u(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1},e.getAxisThemeCfg=function(t,e){var n=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(n,["common"],{}),(0,r.deepMix)({},(0,r.get)(n,[e],{})))},e.getAxisTitleOptions=function(t,e,n){var i=(0,r.get)(t,["components","axis"],{});return(0,r.deepMix)({},(0,r.get)(i,["common","title"],{}),(0,r.deepMix)({},(0,r.get)(i,[e,"title"],{})),n)},e.getCircleAxisCenterRadius=function(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,a=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),s=[a.x-r.x,a.y-r.y],l=[1,0],u=a.y>r.y?o.vec2.angle(s,l):-1*o.vec2.angle(s,l),c=u+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(a.x-r.x,2)+Math.pow(a.y-r.y,2)),startAngle:u,endAngle:c}},e.getAxisOption=function(t,e){return(0,r.isBoolean)(t)?!1!==t&&{}:(0,r.get)(t,[e])},e.getAxisDirection=function(t,e){return(0,r.get)(t,"position",e)},e.getAxisTitleText=function(t,e){return(0,r.get)(e,["title","text"],(0,a.getName)(t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotateZ=e.rotateY=e.rotateX=e.transformQuat=e.transformMat3=e.transformMat4=e.random=e.bezier=e.hermite=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.length=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(3);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function s(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function l(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function u(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return Math.hypot(n,r,i)}function f(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2];return n*n+r*r+i*i}function h(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function p(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},e.length=o,e.fromValues=function(t,e,n){var r=new i.ARRAY_TYPE(3);return r[0]=t,r[1]=e,r[2]=n,r},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},e.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},e.subtract=s,e.multiply=l,e.divide=u,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},e.distance=c,e.squaredDistance=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=n*n+r*r+i*i;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t},e.dot=p,e.cross=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],l=n[2];return t[0]=i*l-a*s,t[1]=a*o-r*l,t[2]=r*s-i*o,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t},e.hermite=function(t,e,n,r,i,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,u=o*(a-1),c=o*(3-2*a);return t[0]=e[0]*s+n[0]*l+r[0]*u+i[0]*c,t[1]=e[1]*s+n[1]*l+r[1]*u+i[1]*c,t[2]=e[2]*s+n[2]*l+r[2]*u+i[2]*c,t},e.bezier=function(t,e,n,r,i,a){var o=1-a,s=o*o,l=a*a,u=s*o,c=3*a*s,f=3*l*o,h=l*a;return t[0]=e[0]*u+n[0]*c+r[0]*f+i[0]*h,t[1]=e[1]*u+n[1]*c+r[1]*f+i[1]*h,t[2]=e[2]*u+n[2]*c+r[2]*f+i[2]*h,t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI,r=2*i.RANDOM()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[3]*r+n[7]*i+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*r+n[4]*i+n[8]*a+n[12])/o,t[1]=(n[1]*r+n[5]*i+n[9]*a+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*a+n[14])/o,t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1],a=e[2];return t[0]=r*n[0]+i*n[3]+a*n[6],t[1]=r*n[1]+i*n[4]+a*n[7],t[2]=r*n[2]+i*n[5]+a*n[8],t},e.transformQuat=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=i*u-a*l,f=a*s-r*u,h=r*l-i*s,p=i*h-a*f,d=a*c-r*h,g=r*f-i*c,y=2*o;return c*=y,f*=y,h*=y,p*=2,d*=2,g*=2,t[0]=s+c+p,t[1]=l+f+d,t[2]=u+h+g,t},e.rotateX=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0],a[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),a[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateY=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),a[1]=i[1],a[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.rotateZ=function(t,e,n,r){var i=[],a=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],a[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),a[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),a[2]=i[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t},e.angle=function(t,e){var n=t[0],r=t[1],i=t[2],a=e[0],o=e[1],s=e[2],l=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(a*a+o*o+s*s),u=l&&p(t,e)/l;return Math.acos(Math.min(Math.max(u,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t},e.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(n-o)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-l)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(l))},e.sub=s,e.mul=l,e.div=u,e.dist=c,e.sqrDist=f,e.len=o,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=3),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.invert=e.multiplyVec2=e.multiplyMatrix=void 0,e.multiplyMatrix=function(t,e){var n=[],r=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],x=e[8];return n[0]=h*r+p*o+d*u,n[1]=h*i+p*s+d*c,n[2]=h*a+p*l+d*f,n[3]=g*r+y*o+v*u,n[4]=g*i+y*s+v*c,n[5]=g*a+y*l+v*f,n[6]=m*r+_*o+x*u,n[7]=m*i+_*s+x*c,n[8]=m*a+_*l+x*f,n},e.multiplyVec2=function(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n},e.invert=function(t){var e=[],n=t[0],r=t[1],i=t[2],a=t[3],o=t[4],s=t[5],l=t[6],u=t[7],c=t[8],f=c*o-s*u,h=-c*a+s*l,p=u*a-o*l,d=n*f+r*h+i*p;return d?(d=1/d,e[0]=f*d,e[1]=(-c*r+i*u)*d,e[2]=(s*r-i*o)*d,e[3]=h*d,e[4]=(c*n-i*l)*d,e[5]=(-s*n+i*a)*d,e[6]=p*d,e[7]=(-u*n+r*l)*d,e[8]=(o*n-r*a)*d,e):null}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.timerFlush=e.timer=e.Timer=e.now=void 0;var i,a,o=0,s=0,l=0,u=0,c=0,f=0,h="object"===("undefined"==typeof performance?"undefined":r(performance))&&performance.now?performance:Date,p="object"===("undefined"==typeof window?"undefined":r(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function d(){return c||(p(g),c=h.now()+f)}function g(){c=0}function y(){this._call=this._time=this._next=null}function v(t,e,n){var r=new y;return r.restart(t,e,n),r}function m(){d(),++o;for(var t,e=i;e;)(t=c-e._time)>=0&&e._call.call(null,t),e=e._next;--o}function _(){c=(u=h.now())+f,o=s=0;try{m()}finally{o=0,function(){var t,e,n=i,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);a=t,b(r)}(),c=0}}function x(){var t=h.now(),e=t-u;e>1e3&&(f-=e,u=t)}function b(t){o||(s&&(s=clearTimeout(s)),t-c>24?(t<1/0&&(s=setTimeout(_,t-h.now()-f)),l&&(l=clearInterval(l))):(l||(u=h.now(),l=setInterval(x,1e3)),o=1,p(_)))}e.now=d,e.Timer=y,y.prototype=v.prototype={constructor:y,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:i=this,a=this),this._call=t,this._time=n,b()},stop:function(){this._call&&(this._call=null,this._time=1/0,b())}},e.timer=v,e.timerFlush=m},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),a=n(48),o=i.__importDefault(n(167)),s=n(170),l=i.__importDefault(n(171)),u=i.__importDefault(n(68)),c=i.__importDefault(n(172)),f=i.__importDefault(n(173)),h=i.__importDefault(n(169)),p=i.__importStar(n(98));e.default=function(t,e){var n,i=r(e);return null==e||"boolean"===i?(0,h.default)(e):("number"===i?u.default:"string"===i?(n=(0,a.color)(e))?(e=n,o.default):f.default:e instanceof a.color?o.default:e instanceof Date?l.default:(0,p.isNumberArray)(e)?p.default:Array.isArray(e)?s.genericArray:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.default:u.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hsl=e.hslConvert=e.Rgb=e.rgb=e.rgbConvert=e.brighter=e.darker=e.Color=void 0;var r=n(0).__importStar(n(96));function i(){}e.Color=i,e.darker=.7,e.brighter=1/e.darker;var a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",l=/^#([0-9a-f]{3,8})$/,u=new RegExp("^rgb\\("+[a,a,a]+"\\)$"),c=new RegExp("^rgb\\("+[s,s,s]+"\\)$"),f=new RegExp("^rgba\\("+[a,a,a,o]+"\\)$"),h=new RegExp("^rgba\\("+[s,s,s,o]+"\\)$"),p=new RegExp("^hsl\\("+[o,s,s]+"\\)$"),d=new RegExp("^hsla\\("+[o,s,s,o]+"\\)$"),g={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function y(){return this.rgb().formatHex()}function v(){return this.rgb().formatRgb()}function m(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=l.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?_(e):3===n?new C(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?x(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?x(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=u.exec(t))?new C(e[1],e[2],e[3],1):(e=c.exec(t))?new C(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=f.exec(t))?x(e[1],e[2],e[3],e[4]):(e=h.exec(t))?x(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=p.exec(t))?w(e[1],e[2]/100,e[3]/100,1):(e=d.exec(t))?w(e[1],e[2]/100,e[3]/100,e[4]):g.hasOwnProperty(t)?_(g[t]):"transparent"===t?new C(NaN,NaN,NaN,0):null}function _(t){return new C(t>>16&255,t>>8&255,255&t,1)}function x(t,e,n,r){return r<=0&&(t=e=n=NaN),new C(t,e,n,r)}function b(t){return t instanceof i||(t=m(t)),t?new C((t=t.rgb()).r,t.g,t.b,t.opacity):new C}function M(t,e,n,r){return 1===arguments.length?b(t):new C(t,e,n,null==r?1:r)}function C(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function P(){return"#"+O(this.r)+O(this.g)+O(this.b)}function S(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function O(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function w(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new E(t,e,n,r)}function A(t){if(t instanceof E)return new E(t.h,t.s,t.l,t.opacity);if(t instanceof i||(t=m(t)),!t)return new E;if(t instanceof E)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,a=Math.min(e,n,r),o=Math.max(e,n,r),s=NaN,l=o-a,u=(o+a)/2;return l?(s=e===o?(n-r)/l+6*(n<r):n===o?(r-e)/l+2:(e-n)/l+4,l/=u<.5?o+a:2-o-a,s*=60):l=u>0&&u<1?0:s,new E(s,l,u,t.opacity)}function T(t,e,n,r){return 1===arguments.length?A(t):new E(t,e,n,null==r?1:r)}function E(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function I(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}(0,r.default)(i,m,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:y,formatHex:y,formatHsl:function(){return A(this).formatHsl()},formatRgb:v,toString:v}),e.default=m,e.rgbConvert=b,e.rgb=M,e.Rgb=C,(0,r.default)(C,M,(0,r.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new C(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:P,formatHex:P,formatRgb:S,toString:S})),e.hslConvert=A,e.hsl=T,(0,r.default)(E,T,(0,r.extend)(i,{brighter:function(t){return t=null==t?e.brighter:Math.pow(e.brighter,t),new E(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?e.darker:Math.pow(e.darker,t),new E(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new C(I(t>=240?t-240:t+120,i,r),I(t,i,r),I(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.extend=void 0,e.default=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t},e.extend=function(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}},function(t,e,n){"use strict";function r(t,e,n,r,i){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*r+o*i)/6}Object.defineProperty(e,"__esModule",{value:!0}),e.basis=void 0,e.basis=r,e.default=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),a=t[i],o=t[i+1],s=i>0?t[i-1]:2*a-o,l=i<e-1?t[i+2]:2*o-a;return r((n-i/e)*e,s,a,o,l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isNumberArray=void 0,e.default=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(a){for(n=0;n<r;++n)i[n]=t[n]*(1-a)+e[n]*a;return i}},e.isNumberArray=function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}},function(t,e,n){"use strict";function r(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}Object.defineProperty(e,"__esModule",{value:!0}),e.mergeArrowBBox=e.mergeBBox=void 0,e.mergeBBox=r,e.mergeArrowBBox=function(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape");return n&&(e=r(e,n.getCanvasBBox())),i&&(e=r(e,i.getCanvasBBox())),e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isSamePoint=void 0;var r=n(1);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}function s(t,e){return t[0]===e[0]&&t[1]===e[1]}e.isSamePoint=s,e.default=function(t,e){var n=e[1],i=e[2],l=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),u=e[4],c=e[5],f=t[0],h=t[1],p=e[6],d=e[7],g=Math.cos(l)*(f-p)/2+Math.sin(l)*(h-d)/2,y=-1*Math.sin(l)*(f-p)/2+Math.cos(l)*(h-d)/2,v=g*g/(n*n)+y*y/(i*i);v>1&&(n*=Math.sqrt(v),i*=Math.sqrt(v));var m=n*n*(y*y)+i*i*(g*g),_=m?Math.sqrt((n*n*(i*i)-m)/m):1;u===c&&(_*=-1),isNaN(_)&&(_=0);var x=i?_*n*y/i:0,b=n?_*-i*g/n:0,M=(f+p)/2+Math.cos(l)*x-Math.sin(l)*b,C=(h+d)/2+Math.sin(l)*x+Math.cos(l)*b,P=[(g-x)/n,(y-b)/i],S=[(-1*g-x)/n,(-1*y-b)/i],O=o([1,0],P),w=o(P,S);return a(P,S)<=-1&&(w=Math.PI),a(P,S)>=1&&(w=0),0===c&&w>0&&(w-=2*Math.PI),1===c&&w<0&&(w+=2*Math.PI),{cx:M,cy:C,rx:s(t,[p,d])?0:n,ry:s(t,[p,d])?0:i,startAngle:O,endAngle:O+w,xRotation:l,arcFlag:u,sweepFlag:c}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GAP=e.DODGE_RATIO=e.MARGIN_RATIO=e.DEFAULT_Y=void 0,e.DEFAULT_Y=0,e.MARGIN_RATIO=.5,e.DODGE_RATIO=.5,e.GAP=.05},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Size=e.Shape=e.Position=e.Opacity=e.Color=e.Attribute=e.getAttribute=e.registerAttribute=void 0;var r=n(5),i=r.__importDefault(n(40));e.Attribute=i.default;var a=r.__importDefault(n(397));e.Color=a.default;var o=r.__importDefault(n(398));e.Opacity=o.default;var s=r.__importDefault(n(399));e.Position=s.default;var l=r.__importDefault(n(400));e.Shape=l.default;var u=r.__importDefault(n(401));e.Size=u.default;var c=n(402);Object.defineProperty(e,"getAttribute",{enumerable:!0,get:function(){return c.getAttribute}}),Object.defineProperty(e,"registerAttribute",{enumerable:!0,get:function(){return c.registerAttribute}}),(0,c.registerAttribute)("Color",a.default),(0,c.registerAttribute)("Opacity",o.default),(0,c.registerAttribute)("Position",s.default),(0,c.registerAttribute)("Shape",l.default),(0,c.registerAttribute)("Size",u.default),r.__exportStar(n(190),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=e.registerScale=e.getScale=e.Scale=e.Quantize=e.Quantile=e.TimeCat=e.Time=e.Pow=e.Log=e.Linear=e.Identity=e.Category=void 0;var r=n(0),i=r.__importDefault(n(59));e.Scale=i.default;var a=r.__importDefault(n(192));e.Category=a.default;var o=r.__importDefault(n(403));e.TimeCat=o.default;var s=r.__importDefault(n(194));e.Linear=s.default;var l=r.__importDefault(n(405));e.Log=l.default;var u=r.__importDefault(n(406));e.Pow=u.default;var c=r.__importDefault(n(407));e.Time=c.default;var f=r.__importDefault(n(195));e.Quantize=f.default;var h=r.__importDefault(n(408));e.Quantile=h.default;var p=n(409);Object.defineProperty(e,"getScale",{enumerable:!0,get:function(){return p.getScale}}),Object.defineProperty(e,"registerScale",{enumerable:!0,get:function(){return p.registerScale}});var d=r.__importDefault(n(410));e.Identity=d.default;var g=n(411);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return g.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return g.registerTickMethod}}),(0,p.registerScale)("cat",a.default),(0,p.registerScale)("category",a.default),(0,p.registerScale)("identity",d.default),(0,p.registerScale)("linear",s.default),(0,p.registerScale)("log",l.default),(0,p.registerScale)("pow",u.default),(0,p.registerScale)("time",c.default),(0,p.registerScale)("timeCat",o.default),(0,p.registerScale)("quantize",f.default),(0,p.registerScale)("quantile",h.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}e.default=function(t,e,n){var a=i(t,n,"floor"),o=i(e,n,"ceil");a=(0,r.fixedBase)(a,n),o=(0,r.fixedBase)(o,n);for(var s=[],l=Math.max((o-a)/(Math.pow(2,12)-1),n),u=a;u<=o;u+=l){var c=(0,r.fixedBase)(u,l);s.push(c)}return{min:a,max:o,ticks:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,l=t.max,u=t.tickCount,c=void 0===u?5:u,f=(0,r.isNil)(a)?(0,r.isNil)(e)?s:e:a,h=(0,r.isNil)(o)?(0,r.isNil)(n)?l:n:o;if(f>h&&(h=(i=[f,h])[0],f=i[1]),c<=2)return[f,h];for(var p=(h-f)/(c-1),d=[],g=0;g<c;g++)d.push(f+p*g);return d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(12),a=n(1),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return(0,r.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};(0,a.each)(t,(function(t,r){var i=t;e.get(r)!==t&&((0,a.isObject)(t)&&n[r]&&(i=(0,a.deepMix)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){(0,a.hasKey)(t,"visible")&&(t.visible?this.show():this.hide()),(0,a.hasKey)(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=(0,r.__assign)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=o[n];return(0,a.each)(r,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");(0,a.each)(e,(function(e,n){var r=t.get(n);if((0,a.isObject)(r)){var i=(0,a.deepMix)({},e,r);t.set(n,i)}}))},e}(i.Base);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=r.__importDefault(n(9)),l=n(33),u=n(200),c=r.__importDefault(n(21)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:c.default.lineColor}},tickLine:{style:{lineWidth:1,stroke:c.default.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:c.default.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:c.default.textColor,fontFamily:c.default.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:c.default.textColor,textBaseline:"middle",fontFamily:c.default.fontFamily,textAlign:"center"},iconStyle:{fill:c.default.descriptionIconFill,stroke:c.default.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:c.default.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){(0,o.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return(0,o.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,o.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,o.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return(0,o.isNumberEqual)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return(0,o.isNumberEqual)(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:(0,o.mix)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,a=r.length,s=1;return t.length>=2&&(s=t[1].value-t[0].value),(0,o.each)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-s/2));var o=e.getSidePoint(r,a);n.push({startPoint:r,tickValue:t.value,endPoint:o,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),r=n.count,i=t.length;if(i>=2)for(var a=0;a<i-1;a++)for(var o=t[a],s=t[a+1],l=0;l<r;l++){var u=(l+1)/(r+1),c=(1-u)*o.tickValue+u*s.tickValue,f=this.getTickPoint(c),h=this.getSidePoint(f,n.length);e.push({startPoint:f,endPoint:h,tickValue:c,id:"sub-"+o.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var a=this.get(e).style,s={points:[t.startPoint,t.endPoint]},l=(0,o.get)(this.get("theme"),["tickLine","style"],{});a=(0,o.isFunction)(a)?(0,o.mix)({},l,a(s,n,r)):a;var u=t.startPoint,c=t.endPoint;return(0,i.__assign)({x1:u.x,y1:u.y,x2:c.x,y2:c.y},a)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),a=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),s=this.get("tickLine");if((0,o.each)(i,(function(n,r){if(s.displayWithLabel){var o=e.getElementId("label-"+n.tickId);t.findById(o)&&e.drawTick(n,a,"tickLine",r,i)}else e.drawTick(n,a,"tickLine",r,i)})),r){var l=this.getSubTickLineItems(i);(0,o.each)(l,(function(t,n){e.drawTick(t,a,"subTickLine",n,l)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");(0,o.each)(e,(function(e){e.point=t.getTickPoint(e.value),(0,o.isNil)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");(0,o.each)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=(0,o.size)(e);if(n>t.threshold){var r=Math.ceil(n/t.threshold),i=e.filter((function(t,e){return e%r==0}));this.set("ticks",i),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var r=this.get("label"),i=r.offset,a=r.offsetX,s=r.offsetY,u=r.rotate,c=r.formatter,f=this.getSidePoint(t.point,i),h=this.getSideVector(i,f),p=c?c(t.name,t,e):t.name,d=r.style;d=(0,o.isFunction)(d)?(0,o.get)(this.get("theme"),["label","style"],{}):d;var g=(0,o.mix)({x:f.x+a,y:f.y+s,text:p,textAlign:this.getTextAnchor(h),textBaseline:this.getTextBaseline(h)},d);return u&&(g.matrix=(0,l.getMatrixByAngle)(f,u)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),r=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});(0,o.each)(n,(function(t,i){e.addShape(r,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,i,n),delegateObject:{tick:t,item:t,index:i}})})),this.processOverlap(r);var i=r.getChildren(),a=(0,o.get)(this.get("theme"),["label","style"],{}),s=this.get("label"),l=s.style,u=s.formatter;if((0,o.isFunction)(l)){var c=i.map((function(t){return(0,o.get)(t.get("delegateObject"),"tick")}));(0,o.each)(i,(function(t,e){var n=t.get("delegateObject").tick,r=u?u(n.name,n,e):n.name,i=(0,o.mix)({},a,l(r,e,c));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,s=void 0===i?0:i,u=t.autoRotate,c=e.fontSize,f=.5;"start"===n?f=0:"end"===n&&(f=1);var h=this.getTickPoint(f),p=this.getSidePoint(h,r||s+c/2),d=(0,o.mix)({x:p.x,y:p.y,text:t.text},e),g=t.rotate,y=g;if((0,o.isNil)(g)&&u){var v=this.getAxisVector(h);y=a.ext.angleTo(v,[1,0],!0)}if(y){var m=(0,l.getMatrixByAngle)(p,y);d.matrix=m}return d},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),r=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,r,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var r=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),a=e.getBBox(),o=a.maxX,s=a.maxY,l=a.height,u=this.get("title").iconStyle,c=l/2,f=c/6,h=o+4,p=s-l/2,d=[h+c,p-c],g=d[0],y=d[1],v=[g+c,y+c],m=v[0],_=v[1],x=[g,_+c],b=x[0],M=x[1],C=[h,y+c],P=C[0],S=C[1],O=[h+c,p-l/4],w=O[0],A=O[1],T=[w,A+f],E=T[0],I=T[1],L=[E,I+f],D=L[0],B=L[1],j=[D,B+3*c/4],R=j[0],k=j[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:(0,i.__assign)({path:[["M",g,y],["A",c,c,0,0,1,m,_],["A",c,c,0,0,1,b,M],["A",c,c,0,0,1,P,S],["A",c,c,0,0,1,g,y],["M",w,A],["L",E,I],["M",D,B],["L",R,k]],lineWidth:f,matrix:n},u)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:p-l/2,width:l,height:l,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){if(this.getItemStates(t).length){var n=this.get("tickStates"),r=this.getElementId("label-"+t.id),i=e.findById(r);if(i){var a=(0,u.getStatesStyle)(t,"label",n);a&&i.attr(a)}var o=this.getElementId("tickline-"+t.id),s=e.findById(o);if(s){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&s.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var s=(0,u.getStatesStyle)(t,"label",n);s&&i.attr(s)}if(o){var l=(0,u.getStatesStyle)(t,"tickLine",n);l&&o.attr(l)}}else i&&i.attr(r.style),o&&o.attr(a.style)},e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(33),l=r.__importDefault(n(21)),u=n(10),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l.default.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l.default.textColor,textAlign:"center",textBaseline:"middle",fontFamily:l.default.fontFamily}},textBackground:{padding:5,style:{stroke:l.default.lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,r=e.autoRotate,o=e.content;if(!(0,a.isNil)(o)){var l=this.getTextPoint(),u=null;if(r){var c=this.getRotateAngle();u=(0,s.getMatrixByAngle)(l,c)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:(0,i.__assign)((0,i.__assign)((0,i.__assign)({},l),{text:o,matrix:u}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line").style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:(0,i.__assign)({path:e},n)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),r=this.get("textBackground");if(r&&n){var a=n.getBBox(),o=(0,u.formatPadding)(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:(0,i.__assign)({x:a.x-o[3],y:a.y-o[0],width:a.width+o[1]+o[3],height:a.height+o[0]+o[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=r.__importDefault(n(21)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:s.default.lineColor}}}})},e.prototype.getLineType=function(){return(this.get("line")||this.get("defaultCfg").line).type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),r=e.slice(0).reverse(),i=this.getGridPath(r,!0);return this.get("closed")?n=n.concat(i):(i[0][0]="L",(n=n.concat(i)).push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),r=this.get("items"),i=this.get("alternateColor"),o=null;(0,a.each)(r,(function(s,l){var u=s.id||l;if(n){var c=e.getPathStyle();c=(0,a.isFunction)(c)?c(s,l,r):c;var f=e.getElementId("line-"+u),h=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:(0,a.mix)({path:h},c)})}if(i&&l>0){var p=e.getElementId("region-"+u),d=l%2==0;if((0,a.isString)(i))d&&e.drawAlternateRegion(p,t,o.points,s.points,i);else{var g=d?i[1]:i[0];e.drawAlternateRegion(p,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var a=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:i}})},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),r=this.get("maxHeight"),i=e.width,a=e.height;return n&&(i=Math.min(i,n)),r&&(a=Math.min(a,r)),(0,o.createBBox)(e.minX,e.minY,i,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),r=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+r})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=(0,o.formatPadding)(e.padding),a=(0,i.__assign)({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:(0,i.__assign)({text:o,x:e.x,y:e.y},a)}).getBBox();this.set("currentPoint",{x:e.x,y:s.maxY+r})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=(0,o.formatPadding)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_Y=e.CROSSHAIR_X=e.NAME_CLASS=e.VALUE_CLASS=e.MARKER_CLASS=e.LIST_ITEM_CLASS=e.LIST_CLASS=e.TITLE_CLASS=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-tooltip",e.TITLE_CLASS="g2-tooltip-title",e.LIST_CLASS="g2-tooltip-list",e.LIST_ITEM_CLASS="g2-tooltip-list-item",e.MARKER_CLASS="g2-tooltip-marker",e.VALUE_CLASS="g2-tooltip-value",e.NAME_CLASS="g2-tooltip-name",e.CROSSHAIR_X="g2-tooltip-crosshair-x",e.CROSSHAIR_Y="g2-tooltip-crosshair-y"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getActionClass=e.registerAction=e.Action=e.Interaction=e.createInteraction=e.registerInteraction=e.getInteraction=void 0;var r=n(0),i=n(1),a=r.__importDefault(n(473)),o={};function s(t){return o[(0,i.lowerCase)(t)]}e.getInteraction=s,e.registerInteraction=function(t,e){o[(0,i.lowerCase)(t)]=e},e.createInteraction=function(t,e,n){var r=s(t);if(!r)return null;if((0,i.isPlainObject)(r)){var o=(0,i.mix)((0,i.clone)(r),n);return new a.default(e,o)}return new r(e,n)};var l=n(204);Object.defineProperty(e,"Interaction",{enumerable:!0,get:function(){return r.__importDefault(l).default}});var u=n(77);Object.defineProperty(e,"Action",{enumerable:!0,get:function(){return u.Action}}),Object.defineProperty(e,"registerAction",{enumerable:!0,get:function(){return u.registerAction}}),Object.defineProperty(e,"getActionClass",{enumerable:!0,get:function(){return u.getActionClass}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePadding=e.isAutoPadding=void 0;var r=n(0),i=n(1);e.isAutoPadding=function(t){return!(0,i.isNumber)(t)&&!(0,i.isArray)(t)},e.parsePadding=function(t){void 0===t&&(t=0);var e=(0,i.isArray)(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=r.__spreadArray(r.__spreadArray([],r.__read(e),!1),r.__read(e),!1);break;case 3:e=r.__spreadArray(r.__spreadArray([],r.__read(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(19),i=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new r.Event(n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(41),o=n(36),s=r.__importDefault(n(88)),l=n(13),u=n(2),c=n(116),f=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible,l=void 0===s||s;return n.shapeFactory=r,n.container=i,n.offscreenGroup=a,n.visible=l,n.elementIndex=o,n}return r.__extends(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this.shapeFactory,n=this.shape;if(n){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(n,t);var r=this.getOffscreenGroup(),i=e.drawShape(this.shapeType,t,r);i.cfg.data=this.data,i.cfg.origin=t,i.cfg.element=this,this.syncShapeStyle(n,i,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this.shapeFactory,n=this.shape;if(n){var i=this.getAnimateCfg("leave");i?(0,o.doAnimate)(n,i,{coordinate:e.coordinate,toAttrs:r.__assign({},n.attr())}):n.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,r=n.states,i=n.shapeFactory,o=n.model,s=n.shape,l=n.shapeType,u=r.indexOf(t);if(e){if(u>-1)return;r.push(t),"active"!==t&&"selected"!==t||null==s||s.toFront()}else{if(-1===u)return;if(r.splice(u,1),"active"===t||"selected"===t){var c=this.geometry,f=c.sortZIndex,h=c.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;f?s.setZIndex(h):s.set("zIndex",h)}}var p=i.drawShape(l,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(s,p,r,null):this.syncShapeStyle(s,p,["reset"],null),p.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),(0,a.propagationDelegate)(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;(0,i.each)(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this.shape,e=this.labelShape,n={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return t&&(n=t.getCanvasBBox()),e&&e.forEach((function(t){var e=t.getCanvasBBox();n.x=Math.min(e.x,n.x),n.y=Math.min(e.y,n.y),n.minX=Math.min(e.minX,n.minX),n.minY=Math.min(e.minY,n.minY),n.maxX=Math.max(e.maxX,n.maxX),n.maxY=Math.max(e.maxY,n.maxY)})),n.width=n.maxX-n.minX,n.height=n.maxY-n.minY,n},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,a=n.defaultShapeType,o=n.theme[t]||n.theme[a];this.statesStyle=(0,i.deepMix)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=(0,i.get)(n,[t,"style"],{}),a=r[e]||r;return(0,i.isFunction)(a)?a(this):a},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var a=n[t];return a?r.__assign(r.__assign({},a),{callback:function(){var t;(0,i.isFunction)(a.callback)&&a.callback(),null===(t=e.geometry)||void 0===t||t.emit(u.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE)}}):a}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var a=this.shapeFactory,s=this.container,l=this.shapeType;if(this.shape=a.drawShape(l,t,s),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?(0,i.isString)(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var f=e?"enter":"appear",h=this.getAnimateCfg(f);h&&(null===(n=this.geometry)||void 0===n||n.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(this.shape,h,{coordinate:a.coordinate,toAttrs:r.__assign({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;(t.cfg.origin=e,t.cfg.element=this,t.isGroup())&&t.get("children").forEach((function(t){n.setShapeInfo(t,e)}))},e.prototype.syncShapeStyle=function(t,e,n,r,a){var s,f=this;if(void 0===n&&(n=[]),void 0===a&&(a=0),t&&e){var h=t.get("clipShape"),p=e.get("clipShape");if(this.syncShapeStyle(h,p,n,r),t.isGroup())for(var d=t.get("children"),g=e.get("children"),y=0;y<d.length;y++)this.syncShapeStyle(d[y],g[y],n,r,a+y);else{if(!(0,i.isEmpty)(n)&&!(0,i.isEqual)(n,["reset"])){var v=t.get("name");(0,i.isArray)(v)&&(v=v[1]),(0,i.each)(n,(function(t){if(e.get("name")!==c.BACKGROUND_SHAPE){var n=f.getStateStyle(t,v||a);e.attr(n)}}))}var m=(0,l.getReplaceAttrs)(t,e);this.animate?r?(null===(s=this.geometry)||void 0===s||s.emit(u.GEOMETRY_LIFE_CIRCLE.BEFORE_DRAW_ANIMATE),(0,o.doAnimate)(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:m,shapeModel:this.model})):(0,i.isEmpty)(n)?t.attr(m):(t.stopAnimate(),t.animate(m,{duration:300})):t.attr(m)}}},e.prototype.getShapeType=function(t){var e=(0,i.get)(t,"shape");return(0,i.isArray)(e)?e[0]:e},e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BACKGROUND_SHAPE=void 0,e.BACKGROUND_SHAPE="element-background"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerGeometryLabelLayout=e.getGeometryLabelLayout=e.registerGeometryLabel=e.getGeometryLabel=void 0;var r={},i={};e.getGeometryLabel=function(t){return r[t.toLowerCase()]},e.registerGeometryLabel=function(t,e){r[t.toLowerCase()]=e},e.getGeometryLabelLayout=function(t){return i[t.toLowerCase()]},e.registerGeometryLabelLayout=function(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getPath=void 0;var r=n(1),i=n(3),a=n(43),o=n(6),s=n(52),l=n(119),u=n(216);function c(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),a=(0,s.getSplinePath)(t,!1,r)):(a=(0,s.getLinePath)(t,!1),e&&a.push(["Z"])),a);var a}function f(t,e,n,i,a,o){if(t.length){var s=t[0];return(0,r.isArray)(s.y)?function(t,e,n,i,a,o){var s=[],u=[];(0,r.each)(t,(function(t){var e=(0,l.splitPoints)(t);s.push(e[1]),u.push(e[0])}));var f=c(s,e,i,a,o),h=c(u,e,i,a,o);return n?f:f.concat(h)}(t,e,n,i,a,o):c(t,e,i,a,o)}return[]}e.getPath=f;var h=(0,i.registerShapeFactory)("line",{defaultShapeType:"line"});(0,r.each)(["line","dot","dash","smooth"],(function(t){(0,i.registerShape)("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var s=this.coordinate,l=s.start,u=s.end;r=[[l.x,u.y],[u.x,l.y]]}var c=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,s=t.isInCircle,l=t.showSinglePoint,u=(0,o.getStyle)(t,!0,!1,"lineWidth"),c=(0,a.getPathPoints)(t.points,i,l),h=[],p=0,d=c.length;p<d;p++){var g=c[p];h=h.concat(f(g,s,r,e,n,u))}return u.path=h,u}(e,i,r);return n.addShape({type:"path",attrs:c,name:"line",capture:!i})},getMarker:function(e){return(0,u.getLineMarker)(e,t)}})})),e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.splitPoints=void 0;var r=n(1);e.splitPoints=function(t){var e=t.x;return((0,r.isArray)(t.y)?t.y:[t.y]).map((function(t,n){return{x:(0,r.isArray)(e)?e[n]:e,y:t}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=r.__importStar(n(62)),s=n(63),l=n(1),u=n(15),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.onCanvasChange=function(t){(0,s.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),(0,s.applyAttrsToContext)(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];(0,l.each)(t,(function(t){var r=t.cfg.cacheCanvasBBox;r&&t.cfg.isInView&&(e.push(r.minX,r.maxX),n.push(r.minY,r.maxY))}));var r=null;if(e.length){var i=(0,l.min)(e),a=(0,l.max)(e),o=(0,l.min)(n),s=(0,l.max)(n);r={minX:i,minY:o,x:i,y:o,maxX:a,maxY:s,width:a-i,height:s-o};var c=this.cfg.canvas;if(c){var f=c.getViewRange();this.set("isInView",(0,u.intersectRect)(r,f))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",r)},e.prototype.draw=function(t,e){var n=this.cfg.children,r=!e||this.cfg.refresh;n.length&&r&&(t.save(),(0,s.applyAttrsToContext)(t,this),this._applyClip(t,this.getClip()),(0,s.drawChildren)(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(a.AbstractGroup);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.refreshElement=e.drawChildren=void 0;var r=n(64),i=n(27);e.drawChildren=function(t,e){e.forEach((function(e){e.draw(t)}))},e.refreshElement=function(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var a=n.get("context"),o=t.getParent(),s=o?o.getChildren():[n],l=t.get("el");if("remove"===e)if(t.get("isClipShape")){var u=l&&l.parentNode,c=u&&u.parentNode;u&&c&&c.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l);else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)(0,i.moveTo)(l,s.indexOf(t));else if("sort"===e){var f=t.get("children");f&&f.length&&(0,i.sortDom)(t,(function(t,e){return f.indexOf(t)-f.indexOf(e)?1:0}))}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?(0,r.setTransform)(t):"clip"===e?(0,r.setClip)(t,a):"attr"===e||"add"===e&&t.draw(a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(1),s=r.__importStar(n(82)),l=n(121),u=n(64),c=n(16),f=n(27),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=(0,f.createSVGElement)("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context");this.createPath(r,e)}},e.prototype.onCanvasChange=function(t){(0,l.refreshElement)(this,t)},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),(0,u.setClip)(this,t),this.createPath(t),e.length&&(0,l.drawChildren)(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,(function(t,e){c.SVG_ATTR_MAP[e]&&r.setAttribute(c.SVG_ATTR_MAP[e],t)})),(0,u.setTransform)(this)},e}(a.AbstractGroup);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=r.__importDefault(n(34)),o=r.__importDefault(n(115));n(118);var s=n(212),l=n(213),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,a=e.showSinglePoint,o=void 0===a||a;return n.connectNulls=i,n.showSinglePoint=o,n}return r.__extends(e,t),e.prototype.updateElements=function(t,e){var n,i,a,u,c,f;void 0===e&&(e=!1);for(var h=new Map,p=new Map,d=[],g=0,y=0;y<t.length;y++){var v=t[y],m=this.getElementId(v);d.push(m),h.set(m,v),p.set(m,g),g++}this.elements=new Array(g);var _=(0,l.diff)(this.lastElementsMap,d),x=_.added,b=_.updated,M=_.removed;try{for(var C=r.__values(x),P=C.next();!P.done;P=C.next()){m=P.value,v=h.get(m);var S=this.getShapeFactory(),O=this.getShapeInfo(v);y=p.get(m);(T=new o.default({shapeFactory:S,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:y})).geometry=this,T.animate=this.animateOption,T.draw(O,e),this.elementsMap[m]=T,this.elements[y]=T}}catch(t){n={error:t}}finally{try{P&&!P.done&&(i=C.return)&&i.call(C)}finally{if(n)throw n.error}}try{for(var w=r.__values(b),A=w.next();!A.done;A=w.next()){m=A.value,v=h.get(m);var T=this.lastElementsMap[m],E=(y=p.get(m),O=this.getShapeInfo(v),T.getModel());(this.isCoordinateChanged||(0,s.isModelChange)(E,O))&&(T.animate=this.animateOption,T.update(O)),this.elementsMap[m]=T,this.elements[y]=T}}catch(t){a={error:t}}finally{try{A&&!A.done&&(u=w.return)&&u.call(w)}finally{if(a)throw a.error}}try{for(var I=r.__values(M),L=I.next();!L.done;L=I.next()){m=L.value;(T=this.lastElementsMap[m]).animate=this.animateOption,T.destroy()}}catch(t){c={error:t}}finally{try{L&&!L.done&&(f=I.return)&&f.call(I)}finally{if(c)throw c.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;r<a;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultSize=void 0;var r=n(1),i=n(14);e.getDefaultSize=function(t){var e=t.theme,n=t.coordinate,a=t.getXScale(),o=a.values,s=t.beforeMappingData,l=o.length,u=(0,i.getXDimensionLength)(t.coordinate),c=t.intervalPadding,f=t.dodgePadding,h=t.maxColumnWidth||e.maxColumnWidth,p=t.minColumnWidth||e.minColumnWidth,d=t.columnWidthRatio||e.columnWidthRatio,g=t.multiplePieWidthRatio||e.multiplePieWidthRatio,y=t.roseWidthRatio||e.roseWidthRatio;if(a.isLinear&&o.length>1){o.sort();var v=function(t,e){var n=t.length,i=t;(0,r.isString)(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var a=i[1]-i[0],o=2;o<n;o++){var s=i[o]-i[o-1];a>s&&(a=s)}return a}(o,a);l=(a.max-a.min)/v,o.length>l&&(l=o.length)}var m=a.range,_=1/l,x=1;if(n.isPolar?x=n.isTransposed&&l>1?g:y:(a.isLinear&&(_*=m[1]-m[0]),x=d),!(0,r.isNil)(c)&&c>=0?_=(1-(l-1)*(c/u))/l:_*=x,t.getAdjust("dodge")){var b=function(t,e){if(e){var n=(0,r.flatten)(t);return(0,r.valuesOfKey)(n,e).length}return t.length}(s,t.getAdjust("dodge").dodgeBy);if(!(0,r.isNil)(f)&&f>=0)_=(_-f/u*(b-1))/b;else!(0,r.isNil)(c)&&c>=0?(_*=x,_/=b):_/=b;_=_>=0?_:0}if(!(0,r.isNil)(h)&&h>=0){var M=h/u;_>M&&(_=M)}if(!(0,r.isNil)(p)&&p>=0){var C=p/u;_<C&&(_=C)}return _}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.drawPoints=e.HOLLOW_SHAPES=e.SHAPES=void 0;var r=n(0),i=n(61),a=n(6);e.SHAPES=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],e.HOLLOW_SHAPES=["cross","tick","plus","hyphen","line"],e.drawPoints=function(t,e,n,o,s){var l,u,c=(0,a.getStyle)(e,s,!s,"r"),f=t.parsePoints(e.points),h=f[0];if(e.isStack)h=f[1];else if(f.length>1){var p=n.addGroup();try{for(var d=r.__values(f),g=d.next();!g.done;g=d.next()){var y=g.value;p.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),y)})}}catch(t){l={error:t}}finally{try{g&&!g.done&&(u=d.return)&&u.call(d)}finally{if(l)throw l.error}}return p}return n.addShape({type:"marker",attrs:r.__assign(r.__assign(r.__assign({},c),{symbol:i.MarkerSymbols[o]||o}),h)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getTranslateDirection=e.directionToPosition=void 0;var r=n(2);function i(t){return t===r.DIRECTION.LEFT?r.DIRECTION.RIGHT:t===r.DIRECTION.RIGHT?r.DIRECTION.LEFT:t}function a(t){return t===r.DIRECTION.TOP?r.DIRECTION.BOTTOM:t===r.DIRECTION.BOTTOM?r.DIRECTION.TOP:t}e.directionToPosition=function(t,e,n){return n===r.DIRECTION.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===r.DIRECTION.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===r.DIRECTION.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===r.DIRECTION.TOP_LEFT||n===r.DIRECTION.LEFT_TOP?[t.tl.x,t.tl.y]:n===r.DIRECTION.TOP_RIGHT||n===r.DIRECTION.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===r.DIRECTION.BOTTOM_LEFT||n===r.DIRECTION.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===r.DIRECTION.BOTTOM_RIGHT||n===r.DIRECTION.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]},e.getTranslateDirection=function(t,e){var n=t;return n=function(t,e){var n=t;return e.isReflect("x")&&(n=i(n)),e.isReflect("y")&&(n=a(n)),n}(n=function(t,e){var n=e.matrix[0],r=e.matrix[4],o=t;return n<0&&(o=i(o)),r<0&&(o=a(o)),o}(n=function(t,e){if(e.isTransposed)switch(t){case r.DIRECTION.BOTTOM:return r.DIRECTION.LEFT;case r.DIRECTION.LEFT:return r.DIRECTION.BOTTOM;case r.DIRECTION.RIGHT:return r.DIRECTION.TOP;case r.DIRECTION.TOP:return r.DIRECTION.RIGHT}return t}(n,e),e),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4);function o(t){return(0,i.get)(t.get("delegateObject"),"item")}var s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=(0,a.getElements)(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=this.context.view,o=(0,a.getScaleByField)(r,e),s=(0,a.getElementValue)(t,e);return!(0,i.isNil)(s)&&n.name===o.getText(s)},e.prototype.setElementsStateByItem=function(t,e,n,r){var a=this;(0,i.each)(t,(function(t){a.isMathItem(t,e,n)&&t.setState(a.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=(0,a.getCurrentElement)(this.context);if(e)(0,a.isElementChange)(this.context)&&this.setStateByElement(e,t);else{var n=(0,a.getDelegationObject)(this.context);if((0,a.isList)(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var s=this.context.event.gEvent;if(s&&s.fromShape&&s.toShape&&o(s.fromShape)===o(s.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=(0,a.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(r.__importDefault(n(128)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return r.__extends(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=(0,o.getElementsByState)(t,this.stateName);(0,i.each)(n,(function(t){e.setElementState(t,!1)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return r.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if((0,a.isMask)(this.context))t=(0,a.getMaskedElements)(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},i=this.context.view;t=(0,a.getIntersectElements)(i,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=(0,a.getElements)(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,o=(0,a.getSilbings)(r),s=t.map((function(t){return t.getModel().data})),l=r.getXScale().field,u=r.getYScales()[0].field;(0,i.each)(o,(function(t){var r=(0,a.getElements)(t),i=r.filter((function(t){var e=t.getModel().data;return(0,a.isInRecords)(s,e,l,u)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,r=(0,a.getSilbings)(n);(0,a.isMask)(this.context)&&(0,i.each)(r,(function(n){var r=(0,a.getElements)(n),i=(0,a.getSiblingMaskElements)(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;(0,i.each)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=(0,a.getSilbings)(e);(0,i.each)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(r.__importDefault(n(128)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setStateEnable=function(t){var e=(0,i.getCurrentElement)(this.context);if(e){if(!(0,i.isElementChange)(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=(0,i.getCurrentElement)(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(r.__importDefault(n(128)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.STATUS_ACTIVE=e.STATUS_UNACTIVE=void 0;var r=n(0),i=n(1),a=n(4),o=n(132),s=r.__importDefault(n(127)),l=n(2);e.STATUS_UNACTIVE=l.ELEMENT_STATE.INACTIVE,e.STATUS_ACTIVE=l.ELEMENT_STATE.ACTIVE;var u=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.stateName=e.STATUS_ACTIVE,n}return r.__extends(n,t),n.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},n.prototype.setElementHighlight=function(t,n){n(t)?(t.hasState(e.STATUS_UNACTIVE)&&t.setState(e.STATUS_UNACTIVE,!1),t.setState(e.STATUS_ACTIVE,!0)):t.hasState(e.STATUS_ACTIVE)||t.setState(e.STATUS_UNACTIVE,!0)},n.prototype.setHighlightBy=function(t,n,r){var o=this;if(r)(0,i.each)(t,(function(t){o.setElementHighlight(t,n)}));else{var s=(0,a.getElementsByState)(this.context.view,e.STATUS_ACTIVE),l=!0;(0,i.each)(s,(function(t){if(!n(t))return l=!1,!1})),l?this.clear():(0,i.each)(t,(function(t){n(t)&&(t.hasState(e.STATUS_ACTIVE)&&t.setState(e.STATUS_ACTIVE,!1),t.setState(e.STATUS_UNACTIVE,!0))}))}},n.prototype.setElementState=function(t,e){var n=this.context.view,r=(0,a.getElements)(n);this.setHighlightBy(r,(function(e){return t===e}),e)},n.prototype.highlight=function(){this.setState()},n.prototype.clear=function(){var t=this.context.view;(0,o.clearHighlight)(t)},n}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setHighlightBy=e.clearHighlight=void 0;var r=n(1),i=n(4);e.clearHighlight=function(t){var e=(0,i.getElements)(t);(0,r.each)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))},e.setHighlightBy=function(t,e,n){(0,r.each)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return r.__extends(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:r.__assign({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null==t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,a=this.points;(0,i.each)(a,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=(0,i.deepMix)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(r.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];e(a,i)&&n.push(a)}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(136));e.default=function(t,e){var n=(0,a.default)(e),r=n.length;if((0,i.default)(t))return!r;for(var o=0;o<r;o+=1){var s=n[o];if(e[s]!==t[s]||!(s in t))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(18)),o=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return(0,i.default)(t,(function(n,r){(0,a.default)(t)&&"prototype"===r||e.push(r)})),e};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if((0,r.default)(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if((0,r.default)(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17)),i=Array.prototype.splice;e.default=function(t,e){if(!(0,r.default)(t))return[];for(var n=t?e.length:0,a=n-1;n--;){var o=void 0,s=e[n];n!==a&&s===o||(o=s,i.call(t,s,1))}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(7)),o=r.__importDefault(n(57));e.default=function(t,e,n){if(!(0,a.default)(t)&&!(0,o.default)(t))return t;var r=n;return(0,i.default)(t,(function(t,n){r=e(r,t,n)})),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var a=t[r];e.has(a)||(n.push(a),e.set(a,!0))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18)),o=r.__importDefault(n(143));e.default=function(t,e){if(!e)return{0:t};if(!(0,a.default)(e)){var n=(0,i.default)(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return(0,o.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18)),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(!e||!(0,i.default)(t))return{};for(var n,r={},s=(0,a.default)(e)?e:function(t){return t[e]},l=0;l<t.length;l++){var u=t[l];n=s(u),o.call(r,n)?r[n].push(u):r[n]=[u]}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t.hasOwnProperty(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={}.toString;e.default=function(t){return r.call(t).replace(/^\[object /,"").replace(/]$/,"")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.prototype;e.default=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(18));e.default=function(t,e){if(!(0,r.default)(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=e?e.apply(this,r):r[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,r);return o.set(a,s),s};return n.cache=new Map,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(85)),a=r.__importDefault(n(17)),o=r.__importDefault(n(30));e.default=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if((0,o.default)(e)||(0,o.default)(n))return!1;if((0,a.default)(e)||(0,a.default)(n)){if(e.length!==n.length)return!1;for(var r=!0,s=0;s<e.length&&(r=t(e[s],n[s]));s++);return r}if((0,i.default)(e)||(0,i.default)(n)){var l=Object.keys(e),u=Object.keys(n);if(l.length!==u.length)return!1;for(r=!0,s=0;s<l.length&&(r=t(e[l[s]],n[l[s]]));s++);return r}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=n(0),o=i.__importDefault(n(86)),s=i.__importDefault(n(147)),l=i.__importDefault(n(30));e.default=(0,s.default)((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,a=e.fontWeight,o=e.fontStyle,s=e.fontVariant;return r||(r=document.createElement("canvas").getContext("2d")),r.font=[o,s,a,n+"px",i].join(" "),r.measureText((0,l.default)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),(0,a.__spreadArrays)([t],(0,o.default)(e)).join("")}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerEngine=e.getEngine=void 0;var r={};e.getEngine=function(t){var e=r[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e},e.registerEngine=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(58));e.default=function(t,e){var n=(0,r.default)(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(58));e.default=function(t,e){var n=(0,r.default)(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerGeometry=e.View=void 0;var r=n(0),i=n(1),a=n(2),o=r.__importDefault(n(88)),s=n(89),l=n(112),u=n(205),c=n(29),f=n(14),h=n(25),p=n(78),d=n(113),g=n(38),y=n(206),v=n(208),m=r.__importDefault(n(478)),_=r.__importDefault(n(114)),x=r.__importDefault(n(479)),b=n(480),M=n(209),C=n(481),P=n(482),S=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=(0,v.getComponentControllerNames)(),n.scalePool=new b.ScalePool,n.layoutFunc=x.default,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var a=e.id,o=void 0===a?(0,i.uniqueId)("view"):a,s=e.parent,l=e.canvas,c=e.backgroundGroup,f=e.middleGroup,h=e.foregroundGroup,p=e.region,d=void 0===p?{start:{x:0,y:0},end:{x:1,y:1}}:p,g=e.padding,m=e.appendPadding,_=e.theme,M=e.options,C=e.limitInPlot,P=e.syncViewPadding;return n.parent=s,n.canvas=l,n.backgroundGroup=c,n.middleGroup=f,n.foregroundGroup=h,n.region=d,n.padding=g,n.appendPadding=m,n.options=r.__assign(r.__assign({},n.options),M),n.limitInPlot=C,n.id=o,n.syncViewPadding=P,n.themeObject=(0,i.isObject)(_)?(0,i.deepMix)({},(0,u.getTheme)("default"),(0,y.createTheme)(_)):(0,u.getTheme)(_),n.init(),n}return r.__extends(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.BEFORE_RENDER,e)),this.paint(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_DESTROY);var e=this.interactions;(0,i.each)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,o=n.length;r<o;r++){n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var a=this.controllers;for(r=0,i=a.length;r<i;r++){a[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return(0,i.set)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return(0,i.isFunction)(e)?((0,i.set)(this.options,["filters",t],e),this):(!e&&(0,i.get)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return(0,i.isBoolean)(t)?(0,i.set)(this.options,["axes"],t):(0,i.set)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return(0,i.isBoolean)(t)?(0,i.set)(this.options,["legends"],t):(0,i.isString)(t)?((0,i.set)(this.options,["legends",t],e),(0,i.isPlainObject)(e)&&(null==e?void 0:e.selected)&&(0,i.set)(this.options,["filters",t],(function(t){var n;return null===(n=null==e?void 0:e.selected[t])||void 0===n||n}))):(0,i.set)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return(0,i.isString)(t)?(0,i.set)(this.options,["scales",t],e):(0,i.isObject)(t)&&(0,i.each)(t,(function(t,e){(0,i.set)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return(0,i.set)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return(0,i.isString)(t)?(0,i.set)(this.options,"coordinate",{type:t,cfg:e}):(0,i.set)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=(0,s.getFacet)(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,r.__assign(r.__assign({},e),{type:t})),this},e.prototype.animate=function(t){return(0,i.set)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),(0,i.mix)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return(0,i.set)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=(0,i.isObject)(t)?(0,i.deepMix)({},this.themeObject,(0,y.createTheme)(t)):(0,u.getTheme)(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=(0,l.createInteraction)(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,_.default.fromData(this,a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:(0,i.clone)(this.options.scales),axes:(0,i.clone)(this.options.axes),coordinate:(0,i.clone)(this.coordinateController.getOption()),tooltip:(0,i.clone)(this.options.tooltip),legends:(0,i.clone)(this.options.legends),animate:this.options.animate,visible:this.visible},o=new e(r.__assign(r.__assign({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:this.middleGroup.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),theme:this.themeObject,padding:this.padding},t),{options:r.__assign(r.__assign({},n),(0,i.get)(t,"options",{}))}));return this.views.push(o),o},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=(0,i.remove)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var a=e[r],o="x"===t?a.getXScale():a.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return(0,i.reduce)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===a.LAYER.BG?this.backgroundGroup:t===a.LAYER.MID?this.middleGroup:(a.LAYER.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return(0,f.isPointInCoordinate)(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return(0,i.flatten)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return(0,h.uniq)((0,i.flatten)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),a=this.getScalesByDim("x"),o=this.getScalesByDim("y");if((0,i.each)(t,(function(t,r){a[r]&&(e=a[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!(0,i.isNil)(e)&&!(0,i.isNil)(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return(0,i.find)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var a=e[r],o=a.dataArray;a.sort(o);for(var s=void 0,l=0,u=o.length;l<u;l++){var c=o[l];(s=(0,p.findDataByPoint)(t,c,a))&&n.push(s)}}var f=this.views;for(r=0,i=f.length;r<i;r++){var h=f[r].getSnapRecords(t);n=n.concat(h)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===(0,i.size)(e)?t:(0,i.filter)(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=(0,i.get)(n,t);return(0,i.isUndefined)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,a=this.coordinateBBox.tr;(0,i.isEqual)(e,r)&&(0,i.isEqual)(n,a)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,a))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=(0,i.get)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,a=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:a,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=(0,C.calculatePadding)(this).shrink((0,d.parsePadding)(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(t){return"tooltip"===t.name})).update();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?P.defaultSyncViewPadding:(0,i.isFunction)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,M.PaddingCal),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,a=n.length;r<a;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=(0,f.getCoordinateClipCfg)(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var a=this.views,o=0,s=a.length;o<s;o++){a[o].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,a){var o=(0,i.get)(this.options.scales,[t]),s=r.__assign(r.__assign({},o),n);return this.parent?this.parent.createScale(t,e,s,a):this.scalePool.createScale(t,e,s,a)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var a=this.region,o=a.start,s=a.end,l=new c.BBox(t+n*o.x,e+r*o.y,n*(s.x-o.x),r*(s.y-o.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new c.BBox(t+n*o.x,e+r*o.y,n*(s.x-o.x),r*(s.y-o.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=(0,v.getComponentController)(r);i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new _.default(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var o="plot:".concat(e);i.type=o,this.emit(o,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=a.PLOT_EVENTS.MOUSE_ENTER,this.emit(a.PLOT_EVENTS.MOUSE_ENTER,i)),i.type=a.PLOT_EVENTS.ENTER,this.emit(a.PLOT_EVENTS.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=a.PLOT_EVENTS.MOUSE_LEAVE,this.emit(a.PLOT_EVENTS.MOUSE_LEAVE,i)),i.type=a.PLOT_EVENTS.LEAVE,this.emit(a.PLOT_EVENTS.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=(0,i.get)(this.options,"scales",{}),r=this.geometries,a=0,o=r.length;a<o;a++){var s=r[a];s.scales=this.getGeometryScales();var l={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?s.update(l):s.init(l)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,a=void 0===i?{}:i,o=this.filteredData,s=0,l=t.length;s<l;s++){var u=t[s],c=a[u],f=this.getScaleKey(u);this.createScale(u,e.includes(u)?r:o,c,f),this.createdScaleKeys.set(f,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r].getScaleFields();(0,h.uniq)(i,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){var i=n[r].getGroupFields();(0,h.uniq)(i,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=r.__spreadArray([this.getXScale()],r.__read(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),a=this.options.scales;(0,i.each)(e,(function(e){var r=e.field,o=e.values,s=e.isCategory,l=e.isIdentity;(s||l)&&o&&!(0,i.get)(a,[r,"range"])&&(e.range=(0,g.getDefaultCategoryScaleRange)(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,a=0;a<i.length;a++){var o=i[a];o.coordinate=n,o.canvasRegion=r,e||o.animate(!1),o.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){this.getComponents()[e].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,a=void 0===n?[]:n,o=e.interactions,s=void 0===o?[]:o,l=e.views,u=void 0===l?[]:l,c=e.annotations,f=void 0===c?[]:c,h=e.coordinate,p=e.events,d=e.facets;this.coordinateController?h&&this.coordinateController.update(h):this.coordinateController=new m.default(h);for(var g=0;g<a.length;g++){var y=a[g];this.createGeometry(y)}for(var v=0;v<s.length;v++){var _=s[v],x=_.type,b=_.cfg;this.interaction(x,b)}for(var M=0;M<u.length;M++){var C=u[M];this.createView(C)}for(var P=this.getController("annotation"),S=0;S<f.length;S++){var O=f[S];P.annotation(O)}p&&(0,i.each)(p,(function(e,n){t.on(n,e)})),d&&(0,i.each)(d,(function(e){var n=e.type,i=r.__rest(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var a=this[e](r);(0,i.each)(t,(function(t,e){(0,i.isFunction)(a[e])&&a[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(o.default);e.View=S,e.registerGeometry=function(t,e){S.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=r.__assign({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}},e.default=S},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],a=this._events["*"]||[],o=function(r){for(var i=r.length,a=0;a<i;a++)if(r[a]){var o=r[a],s=o.callback;o.once&&(r.splice(a,1),0===r.length&&delete e._events[t],i--,a--),s.apply(e,n)}};o(i),o(a)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rectPath=e.pathToCurve=e.pathToAbsolute=e.parsePathString=e.parsePathArray=e.intersection=e.formatPath=e.fillPathByDiff=e.fillPath=e.catmullRomToBezier=void 0;var r=n(1),i="\t\n\v\f\r \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig"),s=function(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(r,i,a){var s=[],l=i.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(n.push([i].concat(s.splice(0,2))),l="l",i="m"===i?"l":"L"),"o"===l&&1===s.length&&n.push([i,s[0]]),"r"===l)n.push([i].concat(s));else for(;s.length>=e[l]&&(n.push([i].concat(s.splice(0,e[l]))),e[l]););return t})),n};e.parsePathString=s;var l=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var a=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?i-4===r?a[3]={x:+t[0],y:+t[1]}:i-2===r&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?a[3]=a[2]:r||(a[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n};e.catmullRomToBezier=l;var u=function(t,e,n,r,i){var a=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var o=Math.PI/180,s=t+n*Math.cos(-r*o),l=t+n*Math.cos(-i*o);a=[["M",s,e+n*Math.sin(-r*o)],["A",n,n,0,+(i-r>180),0,l,e+n*Math.sin(-i*o)]]}else a=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return a},c=function(t){if(!(t=s(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,a=0,o=0,c=0,f=0;"M"===t[0][0]&&(o=i=+t[0][1],c=a=+t[0][2],f++,r[0]=["M",i,a]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=f,y=t.length;g<y;g++){if(r.push(p=[]),(e=(d=t[g])[0])!==e.toUpperCase())switch(p[0]=e.toUpperCase(),p[0]){case"A":p[1]=d[1],p[2]=d[2],p[3]=d[3],p[4]=d[4],p[5]=d[5],p[6]=+d[6]+i,p[7]=+d[7]+a;break;case"V":p[1]=+d[1]+a;break;case"H":p[1]=+d[1]+i;break;case"R":for(var v=2,m=(n=[i,a].concat(d.slice(1))).length;v<m;v++)n[v]=+n[v]+i,n[++v]=+n[v]+a;r.pop(),r=r.concat(l(n,h));break;case"O":r.pop(),(n=u(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(u(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));break;case"M":o=+d[1]+i,c=+d[2]+a;break;default:for(v=1,m=d.length;v<m;v++)p[v]=+d[v]+(v%2?i:a)}else if("R"===e)n=[i,a].concat(d.slice(1)),r.pop(),r=r.concat(l(n,h)),p=["R"].concat(d.slice(-2));else if("O"===e)r.pop(),(n=u(i,a,d[1],d[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(u(i,a,d[1],d[2],d[3])),p=["U"].concat(r[r.length-1].slice(-2));else for(var _=0,x=d.length;_<x;_++)p[_]=d[_];if("O"!==(e=e.toUpperCase()))switch(p[0]){case"Z":i=+o,a=+c;break;case"H":i=p[1];break;case"V":a=p[1];break;case"M":o=p[p.length-2],c=p[p.length-1];break;default:i=p[p.length-2],a=p[p.length-1]}}return r};e.pathToAbsolute=c;var f=function(t,e,n,r){return[t,e,n,r,n,r]},h=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]},p=function t(e,n,r,i,a,o,s,l,u,c){r===i&&(r+=1);var f,h,p,d,g,y=120*Math.PI/180,v=Math.PI/180*(+a||0),m=[],_=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(c)h=c[0],p=c[1],d=c[2],g=c[3];else{e=(f=_(e,n,-v)).x,n=f.y,l=(f=_(l,u,-v)).x,u=f.y,e===l&&n===u&&(l+=1,u+=1);var x=(e-l)/2,b=(n-u)/2,M=x*x/(r*r)+b*b/(i*i);M>1&&(r*=M=Math.sqrt(M),i*=M);var C=r*r,P=i*i,S=(o===s?-1:1)*Math.sqrt(Math.abs((C*P-C*b*b-P*x*x)/(C*b*b+P*x*x)));d=S*r*b/i+(e+l)/2,g=S*-i*x/r+(n+u)/2,h=Math.asin(((n-g)/i).toFixed(9)),p=Math.asin(((u-g)/i).toFixed(9)),h=e<d?Math.PI-h:h,p=l<d?Math.PI-p:p,h<0&&(h=2*Math.PI+h),p<0&&(p=2*Math.PI+p),s&&h>p&&(h-=2*Math.PI),!s&&p>h&&(p-=2*Math.PI)}var O=p-h;if(Math.abs(O)>y){var w=p,A=l,T=u;p=h+y*(s&&p>h?1:-1),m=t(l=d+r*Math.cos(p),u=g+i*Math.sin(p),r,i,a,0,s,A,T,[p,w,d,g])}O=p-h;var E=Math.cos(h),I=Math.sin(h),L=Math.cos(p),D=Math.sin(p),B=Math.tan(O/4),j=4/3*r*B,R=4/3*i*B,k=[e,n],F=[e+j*I,n-R*E],N=[l+j*D,u-R*L],G=[l,u];if(F[0]=2*k[0]-F[0],F[1]=2*k[1]-F[1],c)return[F,N,G].concat(m);for(var Y=[],V=0,H=(m=[F,N,G].concat(m).join().split(",")).length;V<H;V++)Y[V]=V%2?_(m[V-1],m[V],v).y:_(m[V],m[V+1],v).x;return Y},d=function(t,e){var n,r=c(t),i=e&&c(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],u="",d="",g=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(p.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(h(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(h(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(f(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(f(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(f(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(f(e.x,e.y,e.X,e.Y))}return t},y=function(t,e){if(t[e].length>7){t[e].shift();for(var a=t[e];a.length;)s[e]="A",i&&(l[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},v=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(u=r[m][0]),"C"!==u&&(s[m]=u,m&&(d=s[m-1])),r[m]=g(r[m],a,d),"A"!==s[m]&&"C"===u&&(s[m]="C"),y(r,m),i&&(i[m]&&(u=i[m][0]),"C"!==u&&(l[m]=u,m&&(d=l[m-1])),i[m]=g(i[m],o,d),"A"!==l[m]&&"C"===u&&(l[m]="C"),y(i,m)),v(r,i,a,o,m),v(i,r,o,a,m);var _=r[m],x=i&&i[m],b=_.length,M=i&&x.length;a.x=_[b-2],a.y=_[b-1],a.bx=parseFloat(_[b-4])||a.x,a.by=parseFloat(_[b-3])||a.y,o.bx=i&&(parseFloat(x[M-4])||o.x),o.by=i&&(parseFloat(x[M-3])||o.y),o.x=i&&x[M-2],o.y=i&&x[M-1]}return i?[r,i]:r};e.pathToCurve=d;var g=/,?([a-z]),?/gi,y=function(t){return t.join(",").replace(g,"$1")};e.parsePathArray=y;var v=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},m=function(t,e,n,r,i,a,o,s,l){null===l&&(l=1);for(var u=(l=l>1?1:l<0?0:l)/2,c=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],h=0,p=0;p<12;p++){var d=u*c[p]+u,g=v(d,t,n,i,o),y=v(d,e,r,a,s),m=g*g+y*y;h+=f[p]*Math.sqrt(m)}return u*h},_=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&h.push(f)}else{var g=u*u-4*c*l,y=Math.sqrt(g);if(!(g<0)){var v=(-u+y)/(2*l);v>0&&v<1&&h.push(v);var m=(-u-y)/(2*l);m>0&&m<1&&h.push(m)}}for(var _,x=h.length,b=x;x--;)_=1-(f=h[x]),p[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*a+f*f*f*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},b=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},M=function(t,e,n,r,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]];var a=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return a.parsePathArray=y,a};e.rectPath=M;var C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:M(t,e,n,r),vb:[t,e,n,r].join(" ")}},P=function(t,e,n,i,a,o,s,l){(0,r.isArray)(t)||(t=[t,e,n,i,a,o,s,l]);var u=_.apply(null,t);return C(u.min.x,u.min.y,u.max.x-u.min.x,u.max.y-u.min.y)},S=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),h=l*l,p=h*l,d=t+2*l*(n-t)+h*(i-2*n+t),g=e+2*l*(r-e)+h*(a-2*r+e),y=n+2*l*(i-n)+h*(o-2*i+n),v=r+2*l*(a-r)+h*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},O=function(t,e,n){if(!function(t,e){return t=C(t),e=C(e),b(e,t.x,t.y)||b(e,t.x2,t.y)||b(e,t.x,t.y2)||b(e,t.x2,t.y2)||b(t,e.x,e.y)||b(t,e.x2,e.y)||b(t,e.x,e.y2)||b(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(P(t),P(e)))return n?0:[];for(var r=~~(m.apply(0,t)/8),i=~~(m.apply(0,e)/8),a=[],o=[],s={},l=n?0:[],u=0;u<r+1;u++){var c=S.apply(0,t.concat(u/r));a.push({x:c.x,y:c.y,t:u/r})}for(u=0;u<i+1;u++){c=S.apply(0,e.concat(u/i));o.push({x:c.x,y:c.y,t:u/i})}for(u=0;u<r;u++)for(var f=0;f<i;f++){var h=a[u],p=a[u+1],d=o[f],g=o[f+1],y=Math.abs(p.x-h.x)<.001?"y":"x",v=Math.abs(g.x-d.x)<.001?"y":"x",_=x(h.x,h.y,p.x,p.y,d.x,d.y,g.x,g.y);if(_){if(s[_.x.toFixed(4)]===_.y.toFixed(4))continue;s[_.x.toFixed(4)]=_.y.toFixed(4);var M=h.t+Math.abs((_[y]-h[y])/(p[y]-h[y]))*(p.t-h.t),O=d.t+Math.abs((_[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);M>=0&&M<=1&&O>=0&&O<=1&&(n?l+=1:l.push({x:_.x,y:_.y,t1:M,t2:O}))}}return l};function w(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}e.intersection=function(t,e){return function(t,e,n){var r,i,a,o,s,l,u,c,f,h;t=d(t),e=d(e);for(var p=n?0:[],g=0,y=t.length;g<y;g++){var v=t[g];if("M"===v[0])r=s=v[1],i=l=v[2];else{"C"===v[0]?(f=[r,i].concat(v.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,s,l,s,l],r=s,i=l);for(var m=0,_=e.length;m<_;m++){var x=e[m];if("M"===x[0])a=u=x[1],o=c=x[2];else{"C"===x[0]?(h=[a,o].concat(x.slice(1)),a=h[6],o=h[7]):(h=[a,o,a,o,u,c,u,c],a=u,o=c);var b=O(f,h,n);if(n)p+=b;else{for(var M=0,C=b.length;M<C;M++)b[M].segment1=g,b[M].segment2=m,b[M].bez1=f,b[M].bez2=h;p=p.concat(b)}}}}}return p}(t,e)};var A=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var a=r,o=1/n,s=0;s<n-1;s++){var l=w(a,o/(1-o*s));i.push(l.left),a=l.right}return i.push(a),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var a=0;a<=n-1;a++)r.push(i)}return r};e.fillPath=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o<r-n;o++)t.push(t[0]);return t}for(o=0;o<r;o++){var s=Math.floor(i*o);a[s]=(a[s]||0)+1}var l=a.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(A(t[i],t[i+1],r))}),[]);return l.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||l.push("Z"),l};var T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return(0,r.each)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function E(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}function I(t,e,n){for(var r,i=[].concat(t),a=1/(n+1),o=L(e)[0],s=1;s<=n;s++)a*=s,0===(r=Math.floor(t.length*a))?i.unshift([o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]):i.splice(r,0,[o[0]*a+t[r][0]*(1-a),o[1]*a+t[r][1]*(1-a)]);return i}function L(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}e.fillPathByDiff=function(t,e){var n=function(t,e){var n,r,i=t.length,a=e.length,o=0;if(0===i||0===a)return null;for(var s=[],l=0;l<=i;l++)s[l]=[],s[l][0]={min:l};for(var u=0;u<=a;u++)s[0][u]={min:u};for(l=1;l<=i;l++){n=t[l-1];for(u=1;u<=a;u++){r=e[u-1],o=T(n,r)?0:1;var c=s[l-1][u].min+1,f=s[l][u-1].min+1,h=s[l-1][u-1].min+o;s[l][u]=E(c,f,h)}}return s}(t,e),r=t.length,i=e.length,a=[],o=1,s=1;if(n[r][i].min!==r){for(var l=1;l<=r;l++){var u=n[l][l].min;s=l;for(var c=o;c<=i;c++)n[l][c].min<u&&(u=n[l][c].min,s=c);o=s,n[l][o].type&&a.push({index:l-1,type:n[l][o].type})}for(l=a.length-1;l>=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}var f=i-(r=t.length);if(r<i)for(l=0;l<f;l++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};e.formatPath=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=L(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[r]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],2)}t[r]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=I(n,t[r-1],1)}t[r]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[r]=e[r]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(154)),o=n(39),s=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=(0,o.mix)(r,e),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(a.default);e.default=s},function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.getNodeVersion=e.detectOS=e.parseUserAgent=e.browserName=e.detect=e.ReactNativeInfo=e.BotInfo=e.SearchBotDeviceInfo=e.NodeInfo=e.BrowserInfo=void 0;var n=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,a=e.length;i<a;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},r=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"};e.BrowserInfo=r;var i=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform};e.NodeInfo=i;var a=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"};e.SearchBotDeviceInfo=a;var o=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null};e.BotInfo=o;var s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null};e.ReactNativeInfo=s;var l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],c=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function f(t){return""!==t&&u.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var a=i.exec(t);return!!a&&[r,a]}),!1)}function h(t){var e=f(t);if(!e)return null;var i=e[0],s=e[1];if("searchbot"===i)return new o;var u=s[1]&&s[1].split(".").join("_").split("_").slice(0,3);u?u.length<3&&(u=n(n([],u,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-u.length),!0)):u=[];var c=u.join("."),h=p(t),d=l.exec(t);return d&&d[1]?new a(i,c,h,d[1]):new r(i,c,h)}function p(t){for(var e=0,n=c.length;e<n;e++){var r=c[e],i=r[0];if(r[1].exec(t))return i}return null}function d(){return void 0!==t&&t.version?new i(t.version.slice(1)):null}e.detect=function(t){return t?h(t):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?h(navigator.userAgent):d()},e.browserName=function(t){var e=f(t);return e?e[0]:null},e.parseUserAgent=h,e.detectOS=p,e.getNodeVersion=d}).call(this,n(323))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(160)),s=n(39),l={};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,r=-1/0,i=[],o=[],l=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return l.length>0?((0,s.each)(l,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=(0,a.min)(i),e=(0,a.max)(i),n=(0,a.min)(o),r=(0,a.max)(o)):(t=0,e=0,n=0,r=0),{x:t,y:n,minX:t,minY:n,maxX:e,maxY:r,width:e-t,height:r-n}},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.children=[],e},e.prototype.onAttrChange=function(e,n,r){if(t.prototype.onAttrChange.call(this,e,n,r),"matrix"===e){var i=this.getTotalMatrix();this._applyChildrenMarix(i)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var r=this.getTotalMatrix();r!==n&&this._applyChildrenMarix(r)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();(0,s.each)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];(0,s.isObject)(n)?r=n:r.type=n;var i=l[r.type];i||(i=(0,s.upperFirst)(r.type),l[r.type]=i);var a=this.getShapeBase(),o=new a[i](r);return this.add(o),o},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if((0,s.isFunction)(r))n=new r(i||{parent:this});else{var a=r||{},o=this.getGroupBase();n=new o(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!(0,s.isAllowCapture)(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var a=[t,e,1];a=this.invertFromMatrix(a),this.isClipped(a[0],a[1])||(r=this._findShape(i,a[0],a[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,a=t.length-1;a>=0;a--){var o=t[a];if((0,s.isAllowCapture)(o)&&(o.isGroup()?i=o.getShape(e,n,r):o.isHit(e,n)&&(i=o)),i)break}return i},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),r=this.get("timeline"),i=t.getParent();i&&function(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),(0,s.removeFromArray)(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,r),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t,e=this.getChildren();(0,s.each)(e,(function(t,e){return t._INDEX=e,t})),e.sort((t=function(t,e){return t.get("zIndex")-e.get("zIndex")},function(e,n){var r=t(e,n);return 0===r?e._INDEX-n._INDEX:r})),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){return this.getChildren()[t]},e.prototype.getCount=function(){return this.getChildren().length},e.prototype.contain=function(t){return this.getChildren().indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return(0,s.each)(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return(0,s.each)(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(8),s=n(39),l=n(92),u=r.__importDefault(n(157)),c=o.ext.transform,f=["zIndex","capture","visible","type"],h=["repeat"];function p(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function d(t,e){var n={},r=e.attr();return(0,a.each)(t,(function(t,e){-1!==h.indexOf(e)||(0,a.isEqual)(r[e],t)||(n[e]=t)})),n}function g(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,o=Object.prototype.hasOwnProperty;return(0,a.each)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&(0,a.each)(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var y=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return(0,a.mix)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if((0,a.isObject)(r)){for(var o in r)this.setAttr(o,r[o]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?((0,s.removeFromArray)(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?(0,l.multiplyMatrix)(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?(0,l.multiplyMatrix)(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?(0,l.multiplyVec2)(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=(0,l.invert)(e);if(n)return(0,l.multiplyVec2)(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[(0,a.upperFirst)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};(0,a.each)(e,(function(t,r){(0,a.isArray)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)(0,a.isArray)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return(0,a.each)(f,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,o,s,l,u,c=t[0],f=t[1],h=t[2],y=void 0===h?"easeLinear":h,v=t[3],m=void 0===v?a.noop:v,_=t[4],x=void 0===_?0:_;(0,a.isFunction)(c)?(i=c,c={}):(0,a.isObject)(c)&&c.onFrame&&(i=c.onFrame,o=c.repeat),(0,a.isObject)(f)?(f=(u=f).duration,y=u.easing||"easeLinear",x=u.delay||0,o=u.repeat||o||!1,m=u.callback||a.noop,s=u.pauseCallback||a.noop,l=u.resumeCallback||a.noop):((0,a.isNumber)(m)&&(x=m,m=null),(0,a.isFunction)(y)?(m=y,y="easeLinear"):y=y||"easeLinear");var b=d(c,this),M={fromAttrs:p(b,this),toAttrs:b,duration:f,easing:y,repeat:o,callback:m,pauseCallback:s,resumeCallback:l,delay:x,startTime:n.getTime(),id:(0,a.uniqueId)(),onFrame:i,pathFormatted:!1};r.length>0?r=g(r,M):n.addAnimator(this),r.push(M),this.set("animations",r),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");(0,a.each)(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return(0,a.each)(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline").getTime(),e=this.get("animations"),n=this.get("_pause").pauseTime;return(0,a.each)(e,(function(e){e.startTime=e.startTime+(t-n),e._paused=!1,e._pauseTime=null,e.resumeCallback&&e.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",e),this},e.prototype.emitDelegation=function(t,e){var n,r=this,i=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var o=function(t){var o=i[t],u=o.get("name");if(u){if((o.isGroup()||o.isCanvas&&o.isCanvas())&&n&&(0,s.isParent)(o,n))return"break";(0,a.isArray)(u)?(0,a.each)(u,(function(t){r.emitDelegateEvent(o,t,e)})):l.emitDelegateEvent(o,u,e)}},l=this,u=0;u<i.length;u++){if("break"===o(u))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=c(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=c(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),a=c(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=c(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(u.default);e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.projection=e.normalFromMat4=e.fromQuat=e.fromMat2d=e.fromScaling=e.fromRotation=e.fromTranslation=e.scale=e.rotate=e.translate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.identity=e.set=e.fromValues=e.copy=e.clone=e.fromMat4=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=n[0],p=n[1],d=n[2],g=n[3],y=n[4],v=n[5],m=n[6],_=n[7],x=n[8];return t[0]=h*r+p*o+d*u,t[1]=h*i+p*s+d*c,t[2]=h*a+p*l+d*f,t[3]=g*r+y*o+v*u,t[4]=g*i+y*s+v*c,t[5]=g*a+y*l+v*f,t[6]=m*r+_*o+x*u,t[7]=m*i+_*s+x*c,t[8]=m*a+_*l+x*f,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}e.create=function(){var t=new r.ARRAY_TYPE(9);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t},e.fromMat4=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t},e.clone=function(t){var e=new r.ARRAY_TYPE(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromValues=function(t,e,n,i,a,o,s,l,u){var c=new r.ARRAY_TYPE(9);return c[0]=t,c[1]=e,c[2]=n,c[3]=i,c[4]=a,c[5]=o,c[6]=s,c[7]=l,c[8]=u,c},e.set=function(t,e,n,r,i,a,o,s,l,u){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=c*o-s*u,h=-c*a+s*l,p=u*a-o*l,d=n*f+r*h+i*p;return d?(d=1/d,t[0]=f*d,t[1]=(-c*r+i*u)*d,t[2]=(s*r-i*o)*d,t[3]=h*d,t[4]=(c*n-i*l)*d,t[5]=(-s*n+i*a)*d,t[6]=p*d,t[7]=(-u*n+r*l)*d,t[8]=(o*n-r*a)*d,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8];return t[0]=o*c-s*u,t[1]=i*u-r*c,t[2]=r*s-i*o,t[3]=s*l-a*c,t[4]=n*c-i*l,t[5]=i*a-n*s,t[6]=a*u-o*l,t[7]=r*l-n*u,t[8]=n*o-r*a,t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8];return e*(u*a-o*l)+n*(-u*i+o*s)+r*(l*i-a*s)},e.multiply=i,e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=n[0],p=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=h*r+p*o+u,t[7]=h*i+p*s+c,t[8]=h*a+p*l+f,t},e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=Math.sin(n),p=Math.cos(n);return t[0]=p*r+h*o,t[1]=p*i+h*s,t[2]=p*a+h*l,t[3]=p*o-h*r,t[4]=p*s-h*i,t[5]=p*l-h*a,t[6]=u,t[7]=c,t[8]=f,t},e.scale=function(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},e.fromMat2d=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,l=i+i,u=n*o,c=r*o,f=r*s,h=i*o,p=i*s,d=i*l,g=a*o,y=a*s,v=a*l;return t[0]=1-f-d,t[3]=c-v,t[6]=h+y,t[1]=c+v,t[4]=1-u-d,t[7]=p-g,t[2]=h-y,t[5]=p+g,t[8]=1-u-f,t},e.normalFromMat4=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,_=n*l-i*o,x=n*u-a*o,b=r*l-i*s,M=r*u-a*s,C=i*u-a*l,P=c*g-f*d,S=c*y-h*d,O=c*v-p*d,w=f*y-h*g,A=f*v-p*g,T=h*v-p*y,E=m*T-_*A+x*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-l*A+u*w)*E,t[1]=(l*O-o*T-u*S)*E,t[2]=(o*A-s*O+u*P)*E,t[3]=(i*A-r*T-a*w)*E,t[4]=(n*T-i*O+a*S)*E,t[5]=(r*O-n*A-a*P)*E,t[6]=(g*C-y*M+v*b)*E,t[7]=(y*x-d*C-v*_)*E,t[8]=(d*M-g*x+v*m)*E,t):null},e.projection=function(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},e.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=e[0],p=e[1],d=e[2],g=e[3],y=e[4],v=e[5],m=e[6],_=e[7],x=e[8];return Math.abs(n-h)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(i-p)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(a-d)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(d))&&Math.abs(o-g)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-y)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(l-v)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(v))&&Math.abs(u-m)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(m))&&Math.abs(c-_)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(_))&&Math.abs(f-x)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(x))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.targetTo=e.lookAt=e.orthoZO=e.ortho=e.orthoNO=e.perspectiveFromFieldOfView=e.perspectiveZO=e.perspective=e.perspectiveNO=e.frustum=e.fromQuat=e.fromRotationTranslationScaleOrigin=e.fromRotationTranslationScale=e.getRotation=e.getScaling=e.getTranslation=e.fromQuat2=e.fromRotationTranslation=e.fromZRotation=e.fromYRotation=e.fromXRotation=e.fromRotation=e.fromScaling=e.fromTranslation=e.rotateZ=e.rotateY=e.rotateX=e.rotate=e.scale=e.translate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.identity=e.set=e.fromValues=e.copy=e.clone=e.create=void 0,e.sub=void 0;var r=n(0).__importStar(n(28));function i(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function a(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=e[9],p=e[10],d=e[11],g=e[12],y=e[13],v=e[14],m=e[15],_=n[0],x=n[1],b=n[2],M=n[3];return t[0]=_*r+x*s+b*f+M*g,t[1]=_*i+x*l+b*h+M*y,t[2]=_*a+x*u+b*p+M*v,t[3]=_*o+x*c+b*d+M*m,_=n[4],x=n[5],b=n[6],M=n[7],t[4]=_*r+x*s+b*f+M*g,t[5]=_*i+x*l+b*h+M*y,t[6]=_*a+x*u+b*p+M*v,t[7]=_*o+x*c+b*d+M*m,_=n[8],x=n[9],b=n[10],M=n[11],t[8]=_*r+x*s+b*f+M*g,t[9]=_*i+x*l+b*h+M*y,t[10]=_*a+x*u+b*p+M*v,t[11]=_*o+x*c+b*d+M*m,_=n[12],x=n[13],b=n[14],M=n[15],t[12]=_*r+x*s+b*f+M*g,t[13]=_*i+x*l+b*h+M*y,t[14]=_*a+x*u+b*p+M*v,t[15]=_*o+x*c+b*d+M*m,t}function o(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=r+r,l=i+i,u=a+a,c=r*s,f=r*l,h=r*u,p=i*l,d=i*u,g=a*u,y=o*s,v=o*l,m=o*u;return t[0]=1-(p+g),t[1]=f+m,t[2]=h-v,t[3]=0,t[4]=f-m,t[5]=1-(c+g),t[6]=d+y,t[7]=0,t[8]=h+v,t[9]=d-y,t[10]=1-(c+p),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function s(t,e){var n=e[0],r=e[1],i=e[2],a=e[4],o=e[5],s=e[6],l=e[8],u=e[9],c=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(a,o,s),t[2]=Math.hypot(l,u,c),t}function l(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=(i+r)*a,t[14]=2*i*r*a):(t[10]=-1,t[14]=-2*r),t}function u(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(o+a)*u,t[15]=1,t}function c(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}e.create=function(){var t=new r.ARRAY_TYPE(16);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.fromValues=function(t,e,n,i,a,o,s,l,u,c,f,h,p,d,g,y){var v=new r.ARRAY_TYPE(16);return v[0]=t,v[1]=e,v[2]=n,v[3]=i,v[4]=a,v[5]=o,v[6]=s,v[7]=l,v[8]=u,v[9]=c,v[10]=f,v[11]=h,v[12]=p,v[13]=d,v[14]=g,v[15]=y,v},e.set=function(t,e,n,r,i,a,o,s,l,u,c,f,h,p,d,g,y){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=f,t[11]=h,t[12]=p,t[13]=d,t[14]=g,t[15]=y,t},e.identity=i,e.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],i=e[3],a=e[6],o=e[7],s=e[11];t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=a,t[11]=e[14],t[12]=i,t[13]=o,t[14]=s}else t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15],m=n*s-r*o,_=n*l-i*o,x=n*u-a*o,b=r*l-i*s,M=r*u-a*s,C=i*u-a*l,P=c*g-f*d,S=c*y-h*d,O=c*v-p*d,w=f*y-h*g,A=f*v-p*g,T=h*v-p*y,E=m*T-_*A+x*w+b*O-M*S+C*P;return E?(E=1/E,t[0]=(s*T-l*A+u*w)*E,t[1]=(i*A-r*T-a*w)*E,t[2]=(g*C-y*M+v*b)*E,t[3]=(h*M-f*C-p*b)*E,t[4]=(l*O-o*T-u*S)*E,t[5]=(n*T-i*O+a*S)*E,t[6]=(y*x-d*C-v*_)*E,t[7]=(c*C-h*x+p*_)*E,t[8]=(o*A-s*O+u*P)*E,t[9]=(r*O-n*A-a*P)*E,t[10]=(d*M-g*x+v*m)*E,t[11]=(f*x-c*M-p*m)*E,t[12]=(s*S-o*w-l*P)*E,t[13]=(n*w-r*S+i*P)*E,t[14]=(g*_-d*b-y*m)*E,t[15]=(c*b-f*_+h*m)*E,t):null},e.adjoint=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],f=e[9],h=e[10],p=e[11],d=e[12],g=e[13],y=e[14],v=e[15];return t[0]=s*(h*v-p*y)-f*(l*v-u*y)+g*(l*p-u*h),t[1]=-(r*(h*v-p*y)-f*(i*v-a*y)+g*(i*p-a*h)),t[2]=r*(l*v-u*y)-s*(i*v-a*y)+g*(i*u-a*l),t[3]=-(r*(l*p-u*h)-s*(i*p-a*h)+f*(i*u-a*l)),t[4]=-(o*(h*v-p*y)-c*(l*v-u*y)+d*(l*p-u*h)),t[5]=n*(h*v-p*y)-c*(i*v-a*y)+d*(i*p-a*h),t[6]=-(n*(l*v-u*y)-o*(i*v-a*y)+d*(i*u-a*l)),t[7]=n*(l*p-u*h)-o*(i*p-a*h)+c*(i*u-a*l),t[8]=o*(f*v-p*g)-c*(s*v-u*g)+d*(s*p-u*f),t[9]=-(n*(f*v-p*g)-c*(r*v-a*g)+d*(r*p-a*f)),t[10]=n*(s*v-u*g)-o*(r*v-a*g)+d*(r*u-a*s),t[11]=-(n*(s*p-u*f)-o*(r*p-a*f)+c*(r*u-a*s)),t[12]=-(o*(f*y-h*g)-c*(s*y-l*g)+d*(s*h-l*f)),t[13]=n*(f*y-h*g)-c*(r*y-i*g)+d*(r*h-i*f),t[14]=-(n*(s*y-l*g)-o*(r*y-i*g)+d*(r*l-i*s)),t[15]=n*(s*h-l*f)-o*(r*h-i*f)+c*(r*l-i*s),t},e.determinant=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],a=t[4],o=t[5],s=t[6],l=t[7],u=t[8],c=t[9],f=t[10],h=t[11],p=t[12],d=t[13],g=t[14],y=t[15];return(e*o-n*a)*(f*y-h*g)-(e*s-r*a)*(c*y-h*d)+(e*l-i*a)*(c*g-f*d)+(n*s-r*o)*(u*y-h*p)-(n*l-i*o)*(u*g-f*p)+(r*l-i*s)*(u*d-c*p)},e.multiply=a,e.translate=function(t,e,n){var r,i,a,o,s,l,u,c,f,h,p,d,g=n[0],y=n[1],v=n[2];return e===t?(t[12]=e[0]*g+e[4]*y+e[8]*v+e[12],t[13]=e[1]*g+e[5]*y+e[9]*v+e[13],t[14]=e[2]*g+e[6]*y+e[10]*v+e[14],t[15]=e[3]*g+e[7]*y+e[11]*v+e[15]):(r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=e[6],c=e[7],f=e[8],h=e[9],p=e[10],d=e[11],t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=f,t[9]=h,t[10]=p,t[11]=d,t[12]=r*g+s*y+f*v+e[12],t[13]=i*g+l*y+h*v+e[13],t[14]=a*g+u*y+p*v+e[14],t[15]=o*g+c*y+d*v+e[15]),t},e.scale=function(t,e,n){var r=n[0],i=n[1],a=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*a,t[9]=e[9]*a,t[10]=e[10]*a,t[11]=e[11]*a,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.rotate=function(t,e,n,i){var a,o,s,l,u,c,f,h,p,d,g,y,v,m,_,x,b,M,C,P,S,O,w,A,T=i[0],E=i[1],I=i[2],L=Math.hypot(T,E,I);return L<r.EPSILON?null:(T*=L=1/L,E*=L,I*=L,a=Math.sin(n),s=1-(o=Math.cos(n)),l=e[0],u=e[1],c=e[2],f=e[3],h=e[4],p=e[5],d=e[6],g=e[7],y=e[8],v=e[9],m=e[10],_=e[11],x=T*T*s+o,b=E*T*s+I*a,M=I*T*s-E*a,C=T*E*s-I*a,P=E*E*s+o,S=I*E*s+T*a,O=T*I*s+E*a,w=E*I*s-T*a,A=I*I*s+o,t[0]=l*x+h*b+y*M,t[1]=u*x+p*b+v*M,t[2]=c*x+d*b+m*M,t[3]=f*x+g*b+_*M,t[4]=l*C+h*P+y*S,t[5]=u*C+p*P+v*S,t[6]=c*C+d*P+m*S,t[7]=f*C+g*P+_*S,t[8]=l*O+h*w+y*A,t[9]=u*O+p*w+v*A,t[10]=c*O+d*w+m*A,t[11]=f*O+g*w+_*A,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},e.rotateX=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c=e[9],f=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=a*i+u*r,t[5]=o*i+c*r,t[6]=s*i+f*r,t[7]=l*i+h*r,t[8]=u*i-a*r,t[9]=c*i-o*r,t[10]=f*i-s*r,t[11]=h*i-l*r,t},e.rotateY=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],l=e[3],u=e[8],c=e[9],f=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i-u*r,t[1]=o*i-c*r,t[2]=s*i-f*r,t[3]=l*i-h*r,t[8]=a*r+u*i,t[9]=o*r+c*i,t[10]=s*r+f*i,t[11]=l*r+h*i,t},e.rotateZ=function(t,e,n){var r=Math.sin(n),i=Math.cos(n),a=e[0],o=e[1],s=e[2],l=e[3],u=e[4],c=e[5],f=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=a*i+u*r,t[1]=o*i+c*r,t[2]=s*i+f*r,t[3]=l*i+h*r,t[4]=u*i-a*r,t[5]=c*i-o*r,t[6]=f*i-s*r,t[7]=h*i-l*r,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotation=function(t,e,n){var i,a,o,s=n[0],l=n[1],u=n[2],c=Math.hypot(s,l,u);return c<r.EPSILON?null:(s*=c=1/c,l*=c,u*=c,i=Math.sin(e),o=1-(a=Math.cos(e)),t[0]=s*s*o+a,t[1]=l*s*o+u*i,t[2]=u*s*o-l*i,t[3]=0,t[4]=s*l*o-u*i,t[5]=l*l*o+a,t[6]=u*l*o+s*i,t[7]=0,t[8]=s*u*o+l*i,t[9]=l*u*o-s*i,t[10]=u*u*o+a,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},e.fromXRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=r,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromYRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromZRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=r,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.fromRotationTranslation=o,e.fromQuat2=function(t,e){var n=new r.ARRAY_TYPE(3),i=-e[0],a=-e[1],s=-e[2],l=e[3],u=e[4],c=e[5],f=e[6],h=e[7],p=i*i+a*a+s*s+l*l;return p>0?(n[0]=2*(u*l+h*i+c*s-f*a)/p,n[1]=2*(c*l+h*a+f*i-u*s)/p,n[2]=2*(f*l+h*s+u*a-c*i)/p):(n[0]=2*(u*l+h*i+c*s-f*a),n[1]=2*(c*l+h*a+f*i-u*s),n[2]=2*(f*l+h*s+u*a-c*i)),o(t,e,n),t},e.getTranslation=function(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t},e.getScaling=s,e.getRotation=function(t,e){var n=new r.ARRAY_TYPE(3);s(n,e);var i=1/n[0],a=1/n[1],o=1/n[2],l=e[0]*i,u=e[1]*a,c=e[2]*o,f=e[4]*i,h=e[5]*a,p=e[6]*o,d=e[8]*i,g=e[9]*a,y=e[10]*o,v=l+h+y,m=0;return v>0?(m=2*Math.sqrt(v+1),t[3]=.25*m,t[0]=(p-g)/m,t[1]=(d-c)/m,t[2]=(u-f)/m):l>h&&l>y?(m=2*Math.sqrt(1+l-h-y),t[3]=(p-g)/m,t[0]=.25*m,t[1]=(u+f)/m,t[2]=(d+c)/m):h>y?(m=2*Math.sqrt(1+h-l-y),t[3]=(d-c)/m,t[0]=(u+f)/m,t[1]=.25*m,t[2]=(p+g)/m):(m=2*Math.sqrt(1+y-l-h),t[3]=(u-f)/m,t[0]=(d+c)/m,t[1]=(p+g)/m,t[2]=.25*m),t},e.fromRotationTranslationScale=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3],l=i+i,u=a+a,c=o+o,f=i*l,h=i*u,p=i*c,d=a*u,g=a*c,y=o*c,v=s*l,m=s*u,_=s*c,x=r[0],b=r[1],M=r[2];return t[0]=(1-(d+y))*x,t[1]=(h+_)*x,t[2]=(p-m)*x,t[3]=0,t[4]=(h-_)*b,t[5]=(1-(f+y))*b,t[6]=(g+v)*b,t[7]=0,t[8]=(p+m)*M,t[9]=(g-v)*M,t[10]=(1-(f+d))*M,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},e.fromRotationTranslationScaleOrigin=function(t,e,n,r,i){var a=e[0],o=e[1],s=e[2],l=e[3],u=a+a,c=o+o,f=s+s,h=a*u,p=a*c,d=a*f,g=o*c,y=o*f,v=s*f,m=l*u,_=l*c,x=l*f,b=r[0],M=r[1],C=r[2],P=i[0],S=i[1],O=i[2],w=(1-(g+v))*b,A=(p+x)*b,T=(d-_)*b,E=(p-x)*M,I=(1-(h+v))*M,L=(y+m)*M,D=(d+_)*C,B=(y-m)*C,j=(1-(h+g))*C;return t[0]=w,t[1]=A,t[2]=T,t[3]=0,t[4]=E,t[5]=I,t[6]=L,t[7]=0,t[8]=D,t[9]=B,t[10]=j,t[11]=0,t[12]=n[0]+P-(w*P+E*S+D*O),t[13]=n[1]+S-(A*P+I*S+B*O),t[14]=n[2]+O-(T*P+L*S+j*O),t[15]=1,t},e.fromQuat=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n+n,s=r+r,l=i+i,u=n*o,c=r*o,f=r*s,h=i*o,p=i*s,d=i*l,g=a*o,y=a*s,v=a*l;return t[0]=1-f-d,t[1]=c+v,t[2]=h-y,t[3]=0,t[4]=c-v,t[5]=1-u-d,t[6]=p+g,t[7]=0,t[8]=h+y,t[9]=p-g,t[10]=1-u-f,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},e.frustum=function(t,e,n,r,i,a,o){var s=1/(n-e),l=1/(i-r),u=1/(a-o);return t[0]=2*a*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*a*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(o+a)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=o*a*2*u,t[15]=0,t},e.perspectiveNO=l,e.perspective=l,e.perspectiveZO=function(t,e,n,r,i){var a,o=1/Math.tan(e/2);return t[0]=o/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=o,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(a=1/(r-i),t[10]=i*a,t[14]=i*r*a):(t[10]=-1,t[14]=-r),t},e.perspectiveFromFieldOfView=function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),a=Math.tan(e.downDegrees*Math.PI/180),o=Math.tan(e.leftDegrees*Math.PI/180),s=Math.tan(e.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return t[0]=l,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=u,t[6]=0,t[7]=0,t[8]=-(o-s)*l*.5,t[9]=(i-a)*u*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},e.orthoNO=u,e.ortho=u,e.orthoZO=function(t,e,n,r,i,a,o){var s=1/(e-n),l=1/(r-i),u=1/(a-o);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=a*u,t[15]=1,t},e.lookAt=function(t,e,n,a){var o,s,l,u,c,f,h,p,d,g,y=e[0],v=e[1],m=e[2],_=a[0],x=a[1],b=a[2],M=n[0],C=n[1],P=n[2];return Math.abs(y-M)<r.EPSILON&&Math.abs(v-C)<r.EPSILON&&Math.abs(m-P)<r.EPSILON?i(t):(h=y-M,p=v-C,d=m-P,o=x*(d*=g=1/Math.hypot(h,p,d))-b*(p*=g),s=b*(h*=g)-_*d,l=_*p-x*h,(g=Math.hypot(o,s,l))?(o*=g=1/g,s*=g,l*=g):(o=0,s=0,l=0),u=p*l-d*s,c=d*o-h*l,f=h*s-p*o,(g=Math.hypot(u,c,f))?(u*=g=1/g,c*=g,f*=g):(u=0,c=0,f=0),t[0]=o,t[1]=u,t[2]=h,t[3]=0,t[4]=s,t[5]=c,t[6]=p,t[7]=0,t[8]=l,t[9]=f,t[10]=d,t[11]=0,t[12]=-(o*y+s*v+l*m),t[13]=-(u*y+c*v+f*m),t[14]=-(h*y+p*v+d*m),t[15]=1,t)},e.targetTo=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=r[0],l=r[1],u=r[2],c=i-n[0],f=a-n[1],h=o-n[2],p=c*c+f*f+h*h;p>0&&(c*=p=1/Math.sqrt(p),f*=p,h*=p);var d=l*h-u*f,g=u*c-s*h,y=s*f-l*c;return(p=d*d+g*g+y*y)>0&&(d*=p=1/Math.sqrt(p),g*=p,y*=p),t[0]=d,t[1]=g,t[2]=y,t[3]=0,t[4]=f*y-h*g,t[5]=h*d-c*y,t[6]=c*g-f*d,t[7]=0,t[8]=c,t[9]=f,t[10]=h,t[11]=0,t[12]=i,t[13]=a,t[14]=o,t[15]=1,t},e.str=function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},e.subtract=c,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=t[8],h=t[9],p=t[10],d=t[11],g=t[12],y=t[13],v=t[14],m=t[15],_=e[0],x=e[1],b=e[2],M=e[3],C=e[4],P=e[5],S=e[6],O=e[7],w=e[8],A=e[9],T=e[10],E=e[11],I=e[12],L=e[13],D=e[14],B=e[15];return Math.abs(n-_)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(_))&&Math.abs(i-x)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(x))&&Math.abs(a-b)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(b))&&Math.abs(o-M)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-C)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(C))&&Math.abs(l-P)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(u-S)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(S))&&Math.abs(c-O)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(O))&&Math.abs(f-w)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(w))&&Math.abs(h-A)<=r.EPSILON*Math.max(1,Math.abs(h),Math.abs(A))&&Math.abs(p-T)<=r.EPSILON*Math.max(1,Math.abs(p),Math.abs(T))&&Math.abs(d-E)<=r.EPSILON*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(g-I)<=r.EPSILON*Math.max(1,Math.abs(g),Math.abs(I))&&Math.abs(y-L)<=r.EPSILON*Math.max(1,Math.abs(y),Math.abs(L))&&Math.abs(v-D)<=r.EPSILON*Math.max(1,Math.abs(v),Math.abs(D))&&Math.abs(m-B)<=r.EPSILON*Math.max(1,Math.abs(m),Math.abs(B))},e.mul=a,e.sub=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setAxes=e.sqlerp=e.rotationTo=e.equals=e.exactEquals=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.lerp=e.dot=e.scale=e.mul=e.add=e.set=e.copy=e.fromValues=e.clone=e.str=e.fromEuler=e.fromMat3=e.conjugate=e.invert=e.random=e.slerp=e.pow=e.ln=e.exp=e.calculateW=e.rotateZ=e.rotateY=e.rotateX=e.multiply=e.getAngle=e.getAxisAngle=e.setAxisAngle=e.identity=e.create=void 0;var r,i,a,o,s,l,u=n(0),c=u.__importStar(n(28)),f=u.__importStar(n(161)),h=u.__importStar(n(91)),p=u.__importStar(n(164));function d(){var t=new c.ARRAY_TYPE(4);return c.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function g(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function y(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,t}function v(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=Math.exp(a),l=o>0?s*Math.sin(o)/o:0;return t[0]=n*l,t[1]=r*l,t[2]=i*l,t[3]=s*Math.cos(o),t}function m(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=Math.sqrt(n*n+r*r+i*i),s=o>0?Math.atan2(o,a)/o:0;return t[0]=n*s,t[1]=r*s,t[2]=i*s,t[3]=.5*Math.log(n*n+r*r+i*i+a*a),t}function _(t,e,n,r){var i,a,o,s,l,u=e[0],f=e[1],h=e[2],p=e[3],d=n[0],g=n[1],y=n[2],v=n[3];return(a=u*d+f*g+h*y+p*v)<0&&(a=-a,d=-d,g=-g,y=-y,v=-v),1-a>c.EPSILON?(i=Math.acos(a),o=Math.sin(i),s=Math.sin((1-r)*i)/o,l=Math.sin(r*i)/o):(s=1-r,l=r),t[0]=s*u+l*d,t[1]=s*f+l*g,t[2]=s*h+l*y,t[3]=s*p+l*v,t}function x(t,e){var n,r=e[0]+e[4]+e[8];if(r>0)n=Math.sqrt(r+1),t[3]=.5*n,n=.5/n,t[0]=(e[5]-e[7])*n,t[1]=(e[6]-e[2])*n,t[2]=(e[1]-e[3])*n;else{var i=0;e[4]>e[0]&&(i=1),e[8]>e[3*i+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(e[3*i+i]-e[3*a+a]-e[3*o+o]+1),t[i]=.5*n,n=.5/n,t[3]=(e[3*a+o]-e[3*o+a])*n,t[a]=(e[3*a+i]+e[3*i+a])*n,t[o]=(e[3*o+i]+e[3*i+o])*n}return t}e.create=d,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},e.setAxisAngle=g,e.getAxisAngle=function(t,e){var n=2*Math.acos(e[3]),r=Math.sin(n/2);return r>c.EPSILON?(t[0]=e[0]/r,t[1]=e[1]/r,t[2]=e[2]/r):(t[0]=1,t[1]=0,t[2]=0),n},e.getAngle=function(t,n){var r=(0,e.dot)(t,n);return Math.acos(2*r*r-1)},e.multiply=y,e.rotateX=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+o*s,t[1]=i*l+a*s,t[2]=a*l-i*s,t[3]=o*l-r*s,t},e.rotateY=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l-a*s,t[1]=i*l+o*s,t[2]=a*l+r*s,t[3]=o*l-i*s,t},e.rotateZ=function(t,e,n){n*=.5;var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+i*s,t[1]=i*l-r*s,t[2]=a*l+o*s,t[3]=o*l-a*s,t},e.calculateW=function(t,e){var n=e[0],r=e[1],i=e[2];return t[0]=n,t[1]=r,t[2]=i,t[3]=Math.sqrt(Math.abs(1-n*n-r*r-i*i)),t},e.exp=v,e.ln=m,e.pow=function(t,n,r){return m(t,n),(0,e.scale)(t,t,r),v(t,t),t},e.slerp=_,e.random=function(t){var e=c.RANDOM(),n=c.RANDOM(),r=c.RANDOM(),i=Math.sqrt(1-e),a=Math.sqrt(e);return t[0]=i*Math.sin(2*Math.PI*n),t[1]=i*Math.cos(2*Math.PI*n),t[2]=a*Math.sin(2*Math.PI*r),t[3]=a*Math.cos(2*Math.PI*r),t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a,s=o?1/o:0;return t[0]=-n*s,t[1]=-r*s,t[2]=-i*s,t[3]=a*s,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t},e.fromMat3=x,e.fromEuler=function(t,e,n,r){var i=.5*Math.PI/180;e*=i,n*=i,r*=i;var a=Math.sin(e),o=Math.cos(e),s=Math.sin(n),l=Math.cos(n),u=Math.sin(r),c=Math.cos(r);return t[0]=a*l*c-o*s*u,t[1]=o*s*c+a*l*u,t[2]=o*l*u-a*s*c,t[3]=o*l*c+a*s*u,t},e.str=function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.clone=p.clone,e.fromValues=p.fromValues,e.copy=p.copy,e.set=p.set,e.add=p.add,e.mul=y,e.scale=p.scale,e.dot=p.dot,e.lerp=p.lerp,e.length=p.length,e.len=e.length,e.squaredLength=p.squaredLength,e.sqrLen=e.squaredLength,e.normalize=p.normalize,e.exactEquals=p.exactEquals,e.equals=p.equals,e.rotationTo=(r=h.create(),i=h.fromValues(1,0,0),a=h.fromValues(0,1,0),function(t,n,o){var s=h.dot(n,o);return s<-.999999?(h.cross(r,i,n),h.len(r)<1e-6&&h.cross(r,a,n),h.normalize(r,r),g(t,r,Math.PI),t):s>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(h.cross(r,n,o),t[0]=r[0],t[1]=r[1],t[2]=r[2],t[3]=1+s,(0,e.normalize)(t,t))}),e.sqlerp=(o=d(),s=d(),function(t,e,n,r,i,a){return _(o,e,i,a),_(s,n,r,a),_(t,o,s,2*a*(1-a)),t}),e.setAxes=(l=f.create(),function(t,n,r,i){return l[0]=r[0],l[3]=r[1],l[6]=r[2],l[1]=i[0],l[4]=i[1],l[7]=i[2],l[2]=-n[0],l[5]=-n[1],l[8]=-n[2],(0,e.normalize)(t,x(t,l))})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.len=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.equals=e.exactEquals=e.str=e.zero=e.transformQuat=e.transformMat4=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(4);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t[3]=e[3]*n[3],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t[3]=e[3]/n[3],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return Math.hypot(n,r,i,a)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1],i=e[2]-t[2],a=e[3]-t[3];return n*n+r*r+i*i+a*a}function f(t){var e=t[0],n=t[1],r=t[2],i=t[3];return Math.hypot(e,n,r,i)}function h(t){var e=t[0],n=t[1],r=t[2],i=t[3];return e*e+n*n+r*r+i*i}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.fromValues=function(t,e,n,r){var a=new i.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=r,a},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=o,e.multiply=s,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t[3]=Math.ceil(e[3]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t[3]=Math.floor(e[3]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t[3]=Math.min(e[3],n[3]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t[3]=Math.max(e[3],n[3]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t[3]=Math.round(e[3]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.distance=u,e.squaredDistance=c,e.length=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=-e[3],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t[3]=1/e[3],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*n+r*r+i*i+a*a;return o>0&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=a*o,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]+t[3]*e[3]},e.cross=function(t,e,n,r){var i=n[0]*r[1]-n[1]*r[0],a=n[0]*r[2]-n[2]*r[0],o=n[0]*r[3]-n[3]*r[0],s=n[1]*r[2]-n[2]*r[1],l=n[1]*r[3]-n[3]*r[1],u=n[2]*r[3]-n[3]*r[2],c=e[0],f=e[1],h=e[2],p=e[3];return t[0]=f*u-h*l+p*s,t[1]=-c*u+h*o-p*a,t[2]=c*l-f*o+p*i,t[3]=-c*s+f*a-h*i,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1],o=e[2],s=e[3];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t[2]=o+r*(n[2]-o),t[3]=s+r*(n[3]-s),t},e.random=function(t,e){var n,r,a,o,s,l;e=e||1;do{s=(n=2*i.RANDOM()-1)*n+(r=2*i.RANDOM()-1)*r}while(s>=1);do{l=(a=2*i.RANDOM()-1)*a+(o=2*i.RANDOM()-1)*o}while(l>=1);var u=Math.sqrt((1-s)/l);return t[0]=e*n,t[1]=e*r,t[2]=e*a*u,t[3]=e*o*u,t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*a+n[12]*o,t[1]=n[1]*r+n[5]*i+n[9]*a+n[13]*o,t[2]=n[2]*r+n[6]*i+n[10]*a+n[14]*o,t[3]=n[3]*r+n[7]*i+n[11]*a+n[15]*o,t},e.transformQuat=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=n[0],s=n[1],l=n[2],u=n[3],c=u*r+s*a-l*i,f=u*i+l*r-o*a,h=u*a+o*i-s*r,p=-o*r-s*i-l*a;return t[0]=c*u+p*-o+f*-l-h*-s,t[1]=f*u+p*-s+h*-o-c*-l,t[2]=h*u+p*-l+c*-s-f*-o,t[3]=e[3],t},e.zero=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=0,t},e.str=function(t){return"vec4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(r-l)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(l))&&Math.abs(a-u)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.len=f,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=4),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;s+=e)r[0]=t[s],r[1]=t[s+1],r[2]=t[s+2],r[3]=t[s+3],a(r,r,o),t[s]=r[0],t[s+1]=r[1],t[s+2]=r[2],t[s+3]=r[3];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.sqrLen=e.sqrDist=e.dist=e.div=e.mul=e.sub=e.len=e.equals=e.exactEquals=e.str=e.zero=e.angle=e.rotate=e.transformMat4=e.transformMat3=e.transformMat2d=e.transformMat2=e.random=e.lerp=e.cross=e.dot=e.normalize=e.inverse=e.negate=e.squaredLength=e.length=e.squaredDistance=e.distance=e.scaleAndAdd=e.scale=e.round=e.max=e.min=e.floor=e.ceil=e.divide=e.multiply=e.subtract=e.add=e.set=e.copy=e.fromValues=e.clone=e.create=void 0;var r,i=n(0).__importStar(n(28));function a(){var t=new i.ARRAY_TYPE(2);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function s(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function l(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function u(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function c(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function f(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function h(t){var e=t[0],n=t[1];return e*e+n*n}e.create=a,e.clone=function(t){var e=new i.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},e.fromValues=function(t,e){var n=new i.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},e.set=function(t,e,n){return t[0]=e,t[1]=n,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},e.subtract=o,e.multiply=s,e.divide=l,e.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},e.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},e.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},e.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},e.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},e.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},e.distance=u,e.squaredDistance=c,e.length=f,e.squaredLength=h,e.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},e.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},e.normalize=function(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t},e.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},e.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},e.lerp=function(t,e,n,r){var i=e[0],a=e[1];return t[0]=i+r*(n[0]-i),t[1]=a+r*(n[1]-a),t},e.random=function(t,e){e=e||1;var n=2*i.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},e.transformMat2=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i,t[1]=n[1]*r+n[3]*i,t},e.transformMat2d=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t},e.transformMat3=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[3]*i+n[6],t[1]=n[1]*r+n[4]*i+n[7],t},e.transformMat4=function(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[4]*i+n[12],t[1]=n[1]*r+n[5]*i+n[13],t},e.rotate=function(t,e,n,r){var i=e[0]-n[0],a=e[1]-n[1],o=Math.sin(r),s=Math.cos(r);return t[0]=i*s-a*o+n[0],t[1]=i*o+a*s+n[1],t},e.angle=function(t,e){var n=t[0],r=t[1],i=e[0],a=e[1],o=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+a*a),s=o&&(n*i+r*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))},e.zero=function(t){return t[0]=0,t[1]=0,t},e.str=function(t){return"vec2("+t[0]+", "+t[1]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]},e.equals=function(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(o))},e.len=f,e.sub=o,e.mul=s,e.div=l,e.dist=u,e.sqrDist=c,e.sqrLen=h,e.forEach=(r=a(),function(t,e,n,i,a,o){var s,l;for(e||(e=2),n||(n=0),l=i?Math.min(i*e+n,t.length):t.length,s=n;s<l;s+=e)r[0]=t[s],r[1]=t[s+1],a(r,r,o),t[s]=r[0],t[s+1]=r[1];return t})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rad2deg=e.deg2rad=void 0,e.deg2rad=Math.PI/180,e.rad2deg=180/Math.PI},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.rgbBasisClosed=e.rgbBasis=void 0;var r=n(0),i=n(48),a=r.__importDefault(n(97)),o=r.__importDefault(n(168)),s=r.__importStar(n(49));function l(t){return function(e){var n,r,a=e.length,o=new Array(a),s=new Array(a),l=new Array(a);for(n=0;n<a;++n)r=(0,i.rgb)(e[n]),o[n]=r.r||0,s[n]=r.g||0,l[n]=r.b||0;return o=t(o),s=t(s),l=t(l),r.opacity=1,function(t){return r.r=o(t),r.g=s(t),r.b=l(t),r+""}}}e.default=function t(e){var n=(0,s.gamma)(e);function r(t,e){var r=n((t=(0,i.rgb)(t)).r,(e=(0,i.rgb)(e)).r),a=n(t.g,e.g),o=n(t.b,e.b),l=(0,s.default)(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=a(e),t.b=o(e),t.opacity=l(e),t+""}}return r.gamma=t,r}(1),e.rgbBasis=l(a.default),e.rgbBasisClosed=l(o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97);e.default=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),a=t[(i+e-1)%e],o=t[i%e],s=t[(i+1)%e],l=t[(i+2)%e];return(0,r.basis)((n-i/e)*e,a,o,s,l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){return t}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.genericArray=void 0;var r=n(0),i=r.__importDefault(n(94)),a=r.__importStar(n(98));function o(t,e){var n,r=e?e.length:0,a=t?Math.min(r,t.length):0,o=new Array(a),s=new Array(r);for(n=0;n<a;++n)o[n]=(0,i.default)(t[n],e[n]);for(;n<r;++n)s[n]=e[n];return function(t){for(n=0;n<a;++n)s[n]=o[n](t);return s}}e.default=function(t,e){return((0,a.isNumberArray)(e)?a.default:o)(t,e)},e.genericArray=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0).__importDefault(n(94));e.default=function(t,e){var n,a={},o={};for(n in null!==t&&"object"===r(t)||(t={}),null!==e&&"object"===r(e)||(e={}),e)n in t?a[n]=(0,i.default)(t[n],e[n]):o[n]=e[n];return function(t){for(n in a)o[n]=a[n](t);return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(68)),i=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,a=new RegExp(i.source,"g");e.default=function(t,e){var n,o,s,l=i.lastIndex=a.lastIndex=0,u=-1,c=[],f=[];for(t+="",e+="";(n=i.exec(t))&&(o=a.exec(e));)(s=o.index)>l&&(s=e.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(n=n[0])===(o=o[0])?c[u]?c[u]+=o:c[++u]=o:(c[++u]=null,f.push({i:u,x:(0,r.default)(n,o)})),l=a.lastIndex;return l<e.length&&(s=e.slice(l),c[u]?c[u]+=s:c[++u]=s),c.length<2?f[0]?function(t){return function(e){return t(e)+""}}(f[0].x):function(t){return function(){return t}}(e):(e=f.length,function(t){for(var n,r=0;r<e;++r)c[(n=f[r]).i]=n.x(t);return c.join("")})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerEasing=e.getEasing=void 0;var r=n(0).__importStar(n(348)),i={};e.getEasing=function(t){return i[t.toLowerCase()]||r[t]},e.registerEasing=function(t,e){i[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.tpmt=void 0,e.tpmt=function(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.snapLength=e.nearestPoint=void 0;var r=n(32);e.nearestPoint=function(t,e,n,i,a,o){var s,l=1/0,u=[n,i],c=20;o&&o>200&&(c=o/10);for(var f=1/c,h=f/10,p=0;p<=c;p++){var d=p*f,g=[a.apply(null,t.concat([d])),a.apply(null,e.concat([d]))];(_=(0,r.distance)(u[0],u[1],g[0],g[1]))<l&&(s=d,l=_)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}for(l=1/0,p=0;p<32&&!(h<1e-4);p++){var v=s-h,m=s+h,_=(g=[a.apply(null,t.concat([v])),a.apply(null,e.concat([v]))],(0,r.distance)(u[0],u[1],g[0],g[1]));if(v>=0&&_<l)s=v,l=_;else{var x=[a.apply(null,t.concat([m])),a.apply(null,e.concat([m]))],b=(0,r.distance)(u[0],u[1],x[0],x[1]);m<=1&&b<l?(s=m,l=b):h*=.5}}return{x:a.apply(null,t.concat([s])),y:a.apply(null,e.concat([s]))}},e.snapLength=function(t,e){for(var n=0,i=t.length,a=0;a<i;a++){var o=t[a],s=e[a],l=t[(a+1)%i],u=e[(a+1)%i];n+=(0,r.distance)(o,s,l,u)}return n/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distanceAtSegment=e.angleAtSegments=e.pointAtSegments=e.lengthOfSegment=void 0;var r=n(0).__importDefault(n(69)),i=n(32);function a(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var a=t[r],o=t[r+1],s=(0,i.distance)(a[0],a[1],o[0],o[1]),l={from:a,to:o,length:s};n.push(l),e+=s}return{segments:n,totalLength:e}}e.lengthOfSegment=function(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],a=t[n+1];e+=(0,i.distance)(r[0],r[1],a[0],a[1])}return e},e.pointAtSegments=function(t,e){if(e>1||e<0||t.length<2)return null;var n=a(t),i=n.segments,o=n.totalLength;if(0===o)return{x:t[0][0],y:t[0][1]};for(var s=0,l=null,u=0;u<i.length;u++){var c=i[u],f=c.from,h=c.to,p=c.length/o;if(e>=s&&e<=s+p){var d=(e-s)/p;l=r.default.pointAt(f[0],f[1],h[0],h[1],d);break}s+=p}return l},e.angleAtSegments=function(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=a(t),r=n.segments,i=n.totalLength,o=0,s=0,l=0;l<r.length;l++){var u=r[l],c=u.from,f=u.to,h=u.length/i;if(e>=o&&e<=o+h){s=Math.atan2(f[1]-c[1],f[0]-c[0]);break}o+=h}return s},e.distanceAtSegment=function(t,e,n){for(var i=1/0,a=0;a<t.length-1;a++){var o=t[a],s=t[a+1],l=r.default.pointDistance(o[0],o[1],s[0],s[1],e,n);l<i&&(i=l)}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(177),i=n(32);e.default={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var a=t[r];e.push(a[0]),n.push(a[1])}return(0,i.getBBoxByArray)(e,n)},length:function(t){return(0,r.lengthOfSegment)(t)},pointAt:function(t,e){return(0,r.pointAtSegments)(t,e)},pointDistance:function(t,e,n){return(0,r.distanceAtSegment)(t,e,n)},tangentAngle:function(t,e){return(0,r.angleAtSegments)(t,e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.assembleFont=e.getTextWidth=e.getLineSpaceing=e.getTextHeight=void 0;var r=n(39),i=n(180);function a(t,e){return e?e-t:.14*t}e.getTextHeight=function(t,e,n){var i=1;return(0,r.isString)(t)&&(i=t.split("\n").length),i>1?e*i+a(e,n)*(i-1):e},e.getLineSpaceing=a,e.getTextWidth=function(t,e){var n=(0,i.getOffScreenContext)(),a=0;if((0,r.isNil)(t)||""===t)return a;if(n.save(),n.font=e,(0,r.isString)(t)&&t.includes("\n")){var o=t.split("\n");(0,r.each)(o,(function(t){var e=n.measureText(t).width;a<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a},e.assembleFont=function(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getOffScreenContext=void 0;var r=null;e.getOffScreenContext=function(){if(!r){var t=document.createElement("canvas");t.width=1,t.height=1,r=t.getContext("2d")}return r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;e.default=function(t){var e=t||[];return(0,r.isArray)(e)?e:(0,r.isString)(e)?(e=e.match(i),(0,r.each)(e,(function(t,n){if((t=t.match(a))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}(0,r.each)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r,i){return i?[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,r-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-r],["a",i,i,0,0,1,i,-i],["z"]]:[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(184)),i=n(383);function a(t,e,n){if(t[n].length>7){t[n].shift();for(var r=t[n],i=n;r.length;)e[n]="A",t.splice(i+=1,0,["C"].concat(r.splice(0,6)));t.splice(n,1)}}e.default=function(t,e){void 0===e&&(e=!1);for(var n,o,s=(0,r.default)(t),l={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null},u=[],c="",f=s.length,h=[],p=0;p<f;p+=1)s[p]&&(c=s[p][0]),u[p]=c,s[p]=(0,i.segmentToCubic)(s[p],l),a(s,u,p),f=s.length,"Z"===c&&h.push(p),o=(n=s[p]).length,l.x1=+n[o-2],l.y1=+n[o-1],l.x2=+n[o-4]||l.x1,l.y2=+n[o-3]||l.y1;return e?[s,h]:s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(185)),i=/[a-z]/;function a(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){var e=(0,r.default)(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,o=0;o<e.length;o++){var s=e[o][0];if(i.test(s)||["V","H","T","S"].indexOf(s)>=0){n=!0;break}}if(!n)return e;var l=[],u=0,c=0,f=0,h=0,p=0,d=e[0];"M"!==d[0]&&"m"!==d[0]||(f=u=+d[1],h=c=+d[2],p++,l[0]=["M",u,c]),o=p;for(var g=e.length;o<g;o++){var y=e[o],v=l[o-1],m=[],_=(s=y[0]).toUpperCase();if(s!==_)switch(m[0]=_,_){case"A":m[1]=y[1],m[2]=y[2],m[3]=y[3],m[4]=y[4],m[5]=y[5],m[6]=+y[6]+u,m[7]=+y[7]+c;break;case"V":m[1]=+y[1]+c;break;case"H":m[1]=+y[1]+u;break;case"M":f=+y[1]+u,h=+y[2]+c,m[1]=f,m[2]=h;break;default:for(var x=1,b=y.length;x<b;x++)m[x]=+y[x]+(x%2?u:c)}else m=e[o];switch(_){case"Z":u=+f,c=+h;break;case"H":m=["L",u=m[1],c];break;case"V":m=["L",u,c=m[1]];break;case"T":u=m[1],c=m[2];var M=a([v[1],v[2]],[v[3],v[4]]);m=["Q",M[0],M[1],u,c];break;case"S":u=m[m.length-2],c=m[m.length-1];var C=v.length,P=a([v[C-4],v[C-3]],[v[C-2],v[C-1]]);m=["C",P[0],P[1],m[1],m[2],u,c];break;case"M":f=m[m.length-2],h=m[m.length-1];break;default:u=m[m.length-2],c=m[m.length-1]}l.push(m)}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i="\t\n\v\f\r \u2028\u2029",a=new RegExp("([a-z])["+i+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+i+"]*,?["+i+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+i+"]*,?["+i+"]*","ig");e.default=function(t){if(!t)return null;if((0,r.isArray)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(a,(function(t,r,i){var a=[],s=r.toLowerCase();if(i.replace(o,(function(t,e){e&&a.push(+e)})),"m"===s&&a.length>2&&(n.push([r].concat(a.splice(0,2))),s="l",r="m"===r?"l":"L"),"o"===s&&1===a.length&&n.push([r,a[0]]),"r"===s)n.push([r].concat(a));else for(;a.length>=e[s]&&(n.push([r].concat(a.splice(0,e[s]))),e[s]););return""})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t,e,n){return t>=e&&t<=n};e.default=function(t,e,n,i){var a=n.x-t.x,o=n.y-t.y,s=e.x-t.x,l=e.y-t.y,u=i.x-n.x,c=i.y-n.y,f=s*c-l*u,h=null;if(f*f>.001*(s*s+l*l)*(u*u+c*c)){var p=(a*c-o*u)/f,d=(a*l-o*s)/f;r(p,0,1)&&r(d,0,1)&&(h={x:t.x+p*s,y:t.y+p*l})}return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var l=t[s],u=t[(s+1)%o];if(i(l,u,[e,n]))return!0;r(l[1]-n)>0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(5),i=n(392);Object.defineProperty(e,"getAdjust",{enumerable:!0,get:function(){return i.getAdjust}}),Object.defineProperty(e,"registerAdjust",{enumerable:!0,get:function(){return i.registerAdjust}});var a=r.__importDefault(n(51));e.Adjust=a.default;var o=r.__importDefault(n(393)),s=r.__importDefault(n(394)),l=r.__importDefault(n(395)),u=r.__importDefault(n(396));(0,i.registerAdjust)("Dodge",o.default),(0,i.registerAdjust)("Jitter",s.default),(0,i.registerAdjust)("Stack",l.default),(0,i.registerAdjust)("Symmetric",u.default),r.__exportStar(n(189),e)},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scale=void 0;var r=n(103);Object.defineProperty(e,"Scale",{enumerable:!0,get:function(){return r.Scale}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r={};e.getTickMethod=function(t){return r[t]},e.registerTickMethod=function(t,e){r[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return(0,i.__extends)(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=(0,a.isNumber)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=e;return(0,a.isNumber)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,(0,i.__spreadArrays)([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if((0,a.isNil)(this.getConfig("min"))&&(this.min=0),(0,a.isNil)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setGlobalDateMasks=e.setGlobalDateI18n=e.defaultI18n=e.parse=e.format=e.assign=void 0;var r=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,i="[^\\s]+",a=/\[([^]*?)\]/gm;function o(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var s=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return r>-1?r:null}};function l(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var a=i[r];for(var o in a)t[o]=a[o]}return t}e.assign=l;var u=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],c=["January","February","March","April","May","June","July","August","September","October","November","December"],f=o(c,3),h={dayNamesShort:o(u,3),dayNames:u,monthNamesShort:f,monthNames:c,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!=10?1:0)*t%10]}};e.defaultI18n=h;var p=l({},h),d=function(t){return p=l(p,t)};e.setGlobalDateI18n=d;var g=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},y=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},v={D:function(t){return String(t.getDate())},DD:function(t){return y(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return y(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return y(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return y(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return y(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return y(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return y(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return y(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return y(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return y(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return y(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+y(Math.floor(Math.abs(e)/60),2)+":"+y(Math.abs(e)%60,2)}},m=function(t){return+t-1},_=[null,"\\d\\d?"],x=[null,i],b=["isPm",i,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],M=["timezoneOffset","[^\\s]*?[\\+\\-]\\d\\d:?\\d\\d|[^\\s]*?Z?",function(t){var e=(t+"").match(/([+-]|\d\d)/gi);if(e){var n=60*+e[1]+parseInt(e[2],10);return"+"===e[0]?n:-n}return 0}],C={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+i,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",m],MM:["month","\\d\\d",m],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:_,dd:_,ddd:x,dddd:x,MMM:["month",i,s("monthNamesShort")],MMMM:["month",i,s("monthNames")],a:b,A:b,ZZ:M,Z:M},P={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},S=function(t){return l(P,t)};e.setGlobalDateMasks=S;var O=function(t,e,n){if(void 0===e&&(e=P.default),void 0===n&&(n={}),"number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");var i=[];e=(e=P[e]||e).replace(a,(function(t,e){return i.push(e),"@@@"}));var o=l(l({},p),n);return(e=e.replace(r,(function(e){return v[e](t,o)}))).replace(/@@@/g,(function(){return i.shift()}))};function w(t,e,n){if(void 0===n&&(n={}),"string"!=typeof e)throw new Error("Invalid format in fecha parse");if(e=P[e]||e,t.length>1e3)return null;var i={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],s=[],u=e.replace(a,(function(t,e){return s.push(g(e)),"@@@"})),c={},f={};u=g(u).replace(r,(function(t){var e=C[t],n=e[0],r=e[1],i=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,i&&(f[i]=!0),o.push(e),"("+r+")"})),Object.keys(f).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),u=u.replace(/@@@/g,(function(){return s.shift()}));var h=t.match(new RegExp(u,"i"));if(!h)return null;for(var d,y=l(l({},p),n),v=1;v<h.length;v++){var m=o[v-1],_=m[0],x=m[2],b=x?x(h[v],y):+h[v];if(null==b)return null;i[_]=b}if(1===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:0===i.isPm&&12==+i.hour&&(i.hour=0),null==i.timezoneOffset){d=new Date(i.year,i.month,i.day,i.hour,i.minute,i.second,i.millisecond);for(var M=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],S=(v=0,M.length);v<S;v++)if(c[M[v][0]]&&i[M[v][0]]!==d[M[v][1]]())return null}else if(d=new Date(Date.UTC(i.year,i.month,i.day,i.hour,i.minute-i.timezoneOffset,i.second,i.millisecond)),i.month>11||i.month<0||i.day>31||i.day<1||i.hour>23||i.hour<0||i.minute>59||i.minute<0||i.second>59||i.second<0)return null;return d}e.format=O,e.parse=w;var A={format:O,parse:w,defaultI18n:h,setGlobalDateI18n:d,setGlobalDateMasks:S};e.default=A},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(r.__importDefault(n(72)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),i=Math.floor(r*(n-1));if(i>=n-1)return(0,a.last)(e);if(i<0)return(0,a.head)(e);var o=e[i],s=i/(n-1);return o+(r-s)/((i+1)/(n-1)-s)*(e[i+1]-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||((0,a.last)(e)!==this.max&&e.push(this.max),(0,a.head)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<(0,a.head)(e))return 0;if(t>(0,a.last)(e))return 1;var n=0;return(0,a.each)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=t.showLast;if((0,r.isNumber)(n)){var o=(0,r.filter)(e,(function(t,e){return e%n==0})),s=(0,r.last)(e);return a&&(0,r.last)(o)!==s&&o.push(s),o}var l=e.length,u=t.min,c=t.max;if((0,r.isNil)(u)&&(u=0),(0,r.isNil)(c)&&(c=e.length-1),!(0,r.isNumber)(i)||i>=l)return e.slice(u,c+1);if(i<=0||c<=0)return[];for(var f=1===i?l:Math.floor(l/(i-1)),h=[],p=u,d=0;d<i&&!(p>=c);d++)p=Math.min(u+d*f,c),d===i-1&&a?h.push(e[c]):h.push(e[p]);return h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prettyNumber=void 0,e.prettyNumber=function(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(197);e.default=function(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var i=n<0?0:Math.round(n);if(0===i)return{max:e,min:t,ticks:[]};var a=(e-t)/i,o=Math.pow(10,Math.floor(Math.log10(a))),s=o;2*o-a<1.5*(a-s)&&5*o-a<2.75*(a-(s=2*o))&&10*o-a<1.5*(a-(s=5*o))&&(s=10*o);for(var l=Math.ceil(e/s),u=Math.floor(t/s),c=Math.max(l*s,e),f=Math.min(u*s,t),h=Math.floor((c-f)/s)+1,p=new Array(h),d=0;d<h;d++)p[d]=(0,r.prettyNumber)(f+d*s);return{min:f,max:c,ticks:p}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.propagationDelegate=void 0;var r=n(12);e.propagationDelegate=function(t,e,n){var i=new r.Event(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var a=t.getParent();a;)a.emitDelegation(e,i),i.propagationPath.push(a),a=a.getParent()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getStatesStyle=void 0;var r=n(1);e.getStatesStyle=function(t,e,n){var i=e+"Style",a=null;return(0,r.each)(n,(function(e,n){t[n]&&e[i]&&(a||(a={}),(0,r.mix)(a,e[i]))})),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.autoEllipsis=e.autoRotate=e.autoHide=void 0;var r=n(0),i=r.__importStar(n(443));e.autoEllipsis=i;var a=r.__importStar(n(444));e.autoHide=a;var o=r.__importStar(n(445));e.autoRotate=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CROSSHAIR_TEXT=e.CROSSHAIR_LINE=e.CONTAINER_CLASS=void 0,e.CONTAINER_CLASS="g2-crosshair",e.CROSSHAIR_LINE=e.CONTAINER_CLASS+"-line",e.CROSSHAIR_TEXT=e.CONTAINER_CLASS+"-text"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createCallbackAction=e.unregisterAction=e.registerAction=e.getActionClass=e.createAction=void 0;var r=n(0).__importDefault(n(474)),i=n(1),a={};e.createAction=function(t,e){var n=a[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r},e.getActionClass=function(t){var e=a[t];return(0,i.get)(e,"ActionClass")},e.registerAction=function(t,e,n){a[t]={ActionClass:e,cfg:n}},e.unregisterAction=function(t){delete a[t]},e.createCallbackAction=function(t,e){var n=new r.default(e);return n.callback=t,n.name="callback",n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTheme=e.getTheme=void 0;var r=n(1),i=n(206),a={default:(0,i.createTheme)({})};e.getTheme=function(t){return(0,r.get)(a,(0,r.lowerCase)(t),a.default)},e.registerTheme=function(t,e){a[(0,r.lowerCase)(t)]=(0,i.createTheme)(e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(476);Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return r.createTheme}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createThemeByStyleSheet=void 0;var r=n(0),i=n(41),a=n(8),o=n(1),s=n(13);e.createThemeByStyleSheet=function(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},l=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),u=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=(0,s.getAngle)(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,o=7.5*Math.cos(i),l=7.5*Math.sin(i);return{matrix:a.ext.transform(null,[["t",o,l]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:r.__assign(r.__assign({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:r.__assign(r.__assign({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:r.__assign(r.__assign({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:r.__assign(r.__assign({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:r.__assign(r.__assign({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:r.__assign(r.__assign({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:r.__assign(r.__assign({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:r.__assign(r.__assign({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:l,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:(0,o.deepMix)({},l.grid,{line:{type:"line"}})},radius:{title:null,grid:(0,o.deepMix)({},l.grid,{line:{type:"circle"}})}},legend:{common:u,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:u.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(i.TOOLTIP_CSS_CONST.CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(i.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(i.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(i.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(i.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(i.TOOLTIP_CSS_CONST.VALUE_CLASS)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getComponentController=e.getComponentControllerNames=e.unregisterComponentController=e.registerComponentController=void 0;var r={};e.registerComponentController=function(t,e){r[t]=e},e.unregisterComponentController=function(t){delete r[t]},e.getComponentControllerNames=function(){return Object.keys(r)},e.getComponentController=function(t){return r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PaddingCal=void 0;var r=n(0),i=n(2),a=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=r.__read(t,4),n=e[0],i=e[1],a=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,a),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=r.__read(t,4),n=e[0],i=e[1],a=e[2],o=e[3];return this.top+=n,this.right+=i,this.bottom+=a,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case i.DIRECTION.TOP:case i.DIRECTION.TOP_LEFT:case i.DIRECTION.TOP_RIGHT:this.top+=r;break;case i.DIRECTION.RIGHT:case i.DIRECTION.RIGHT_TOP:case i.DIRECTION.RIGHT_BOTTOM:this.right+=n;break;case i.DIRECTION.BOTTOM:case i.DIRECTION.BOTTOM_LEFT:case i.DIRECTION.BOTTOM_RIGHT:this.bottom+=r;break;case i.DIRECTION.LEFT:case i.DIRECTION.LEFT_TOP:case i.DIRECTION.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,r.__spreadArray([void 0],r.__read(this.getPadding()),!1)))},t}();e.PaddingCal=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(19),o=n(14),s=n(13),l=n(78),u=n(29),c=n(42),f=r.__importDefault(n(114));var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){return!1!==this.view.getOptions().tooltip},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var a=this.getTitle(n),o={x:n[0].x,y:n[0].y};e.emit("tooltip:show",f.default.fromData(e,"tooltip:show",r.__assign({items:n,title:a},t)));var s=this.getTooltipCfg(),l=s.follow,u=s.showMarkers,c=s.showCrosshairs,h=s.showContent,p=s.marker,d=this.items,g=this.title;if((0,i.isEqual)(g,a)&&(0,i.isEqual)(d,n)?(this.tooltip&&l&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",f.default.fromData(e,"tooltip:change",r.__assign({items:n,title:a},t))),((0,i.isFunction)(h)?h(n):h)&&(this.tooltip||this.renderTooltip(),this.tooltip.update((0,i.mix)({},s,{items:this.getItemsAfterProcess(n),title:a},l?t:{})),this.tooltip.show()),u&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=a,c){var y=(0,i.get)(s,["crosshairs","follow"],!1);this.renderCrosshairs(y?t:o,s)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){if(this.getTooltipCfg().follow){var t=this.tooltipMarkersGroup;t&&t.hide();var e=this.xCrosshair,n=this.yCrosshair;e&&e.hide(),n&&n.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",f.default.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null==t?void 0:t.get("customContent"))&&(this.tooltip.destroy(),this.tooltip=null),this.title=null,this.items=null},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,a,o,s,l,u=this.findItemsFromView(this.view,t);if(u.length){u=(0,i.flatten)(u);try{for(var c=r.__values(u),f=c.next();!f.done;f=c.next()){var h=f.value;try{for(var p=(a=void 0,r.__values(h)),d=p.next();!d.done;d=p.next()){var g=d.value,y=g.mappingData,v=y.x,m=y.y;g.x=(0,i.isArray)(v)?v[v.length-1]:v,g.y=(0,i.isArray)(m)?m[m.length-1]:m}}catch(t){a={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(a)throw a.error}}}}catch(t){e={error:t}}finally{try{f&&!f.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&u.length>1){var _=u[0],x=Math.abs(t.y-_[0].y);try{for(var b=r.__values(u),M=b.next();!M.done;M=b.next()){var C=M.value,P=Math.abs(t.y-C[0].y);P<=x&&(_=C,x=P)}}catch(t){s={error:t}}finally{try{M&&!M.done&&(l=b.return)&&l.call(b)}finally{if(s)throw s.error}}u=[_]}return function(t){for(var e=[],n=function(n){var r=t[n];(0,i.find)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}((0,i.flatten)(u))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,a=r.y,o=r.width,s=r.height;return new u.BBox(i,a,o,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),a=(0,i.get)(r,["components","tooltip"],{}),o=(0,i.get)(n,"enterable",a.enterable);return(0,i.deepMix)({},a,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if((0,i.isBoolean)(t)||!(0,i.get)(t,"customContent"))return t;var e=t.customContent;return r.__assign(r.__assign({},t),{customContent:function(t,n){var r=e(t,n)||"";return(0,i.isString)(r)?'<div class="g2-tooltip">'+r+"</div>":r}})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new a.HtmlTooltip(r.__assign(r.__assign({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,i,a=this.getTooltipMarkersGroup(),s=this.view.getRootView(),l=s.limitInPlot;try{for(var u=r.__values(t),c=u.next();!c.done;c=u.next()){var f=c.value,h=f.x,p=f.y;if(l||(null==a?void 0:a.getClip())){var d=(0,o.getCoordinateClipCfg)(s.getCoordinate()),g=d.type,y=d.attrs;null==a||a.setClip({type:g,attrs:y})}else null==a||a.setClip(void 0);var v=r.__assign(r.__assign({fill:f.color,symbol:"circle",shadowColor:f.color},e),{x:h,y:p});a.addShape("marker",{attrs:v})}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=(0,i.get)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,o.isPointInCoordinate)(n,t)){var r,l;if(n.isRect)n.isTransposed?(r={x:n.start.x,y:t.y},l={x:n.end.x,y:t.y}):(r={x:t.x,y:n.end.y},l={x:t.x,y:n.start.y});else{var u=(0,o.getAngleByPoint)(n,t),c=n.getCenter(),f=n.getRadius();l=(0,s.polarToCartesian)(c.x,c.y,f,u),r=c}var h=(0,i.deepMix)({start:r,end:l,container:this.getTooltipCrosshairsGroup()},(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete h.type;var p=this.xCrosshair;p?p.update(h):(p=new a.Crosshair.Line(h)).init(),p.render(),p.show(),this.xCrosshair=p}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if((0,o.isPointInCoordinate)(n,t)){var r,s;if(n.isRect){var l=void 0,u=void 0;n.isTransposed?(l={x:t.x,y:n.end.y},u={x:t.x,y:n.start.y}):(l={x:n.start.x,y:t.y},u={x:n.end.x,y:t.y}),r={start:l,end:u},s="Line"}else r={center:n.getCenter(),radius:(0,o.getDistanceToCenter)(n,t),startAngle:n.startAngle,endAngle:n.endAngle},s="Circle";delete(r=(0,i.deepMix)({container:this.getTooltipCrosshairsGroup()},r,(0,i.get)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?n.isRect&&"circle"===c.get("type")||!n.isRect&&"line"===c.get("type")?(c=new a.Crosshair[s](r)).init():c.update(r):(c=new a.Crosshair[s](r)).init(),c.render(),c.show(),this.yCrosshair=c}},e.prototype.getCrosshairsText=function(t,e,n){var r=(0,i.get)(n,["crosshairs","text"]),a=(0,i.get)(n,["crosshairs","follow"]),o=this.items;if(r){var s=this.getViewWithGeometry(this.view),l=o[0],u=s.getXScale(),c=s.getYScales()[0],f=void 0,h=void 0;if(a){var p=this.view.getCoordinate().invert(e);f=u.invert(p.x),h=c.invert(p.y)}else f=l.data[u.field],h=l.data[c.field];var d="x"===t?f:h;return(0,i.isFunction)(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var a=this.getTooltipCfg(),o=(0,l.findItemsFromView)(t,e,a);try{for(var s=r.__values(t.views),u=s.next();!u.done;u=s.next()){var c=u.value;o=o.concat(this.findItemsFromView(c,e))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return o},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:(0,i.find)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(c.Controller);e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=e.getAnimation=void 0;var r={};e.getAnimation=function(t){return r[t.toLowerCase()]},e.registerAnimation=function(t,e){r[t.toLowerCase()]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isModelChange=void 0;var r=n(1);e.isModelChange=function(t,e){return(0,r.some)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!(0,r.isEqual)(t[n],e[n])}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.diff=void 0,e.diff=function(t,e){for(var n=[],r=[],i=[],a=new Map,o=0;o<e.length;o++){var s=e[o];t[s]?r.push(s):n.push(s),a.set(s,!0)}return Object.keys(t).forEach((function(t){a.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMappingValue=void 0;var r=n(0);e.getMappingValue=function(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var a=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,r.__spreadArray([e],r.__read(a),!1)).join("")}else i=t.mapping(e).join("");return i||n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLegendThemeCfg=e.getCustomLegendItems=e.getLegendItems=e.getLegendLayout=void 0;var r=n(0),i=n(1),a=n(2),o=n(214),s=n(25),l=n(61),u=["line","cross","tick","plus","hyphen"];function c(t){var e=t.symbol;(0,i.isString)(e)&&l.MarkerSymbols[e]&&(t.symbol=l.MarkerSymbols[e])}e.getLegendLayout=function(t){return t.startsWith(a.DIRECTION.LEFT)||t.startsWith(a.DIRECTION.RIGHT)?"vertical":"horizontal"},e.getLegendItems=function(t,e,n,a,l){var f=n.getScale(n.type);if(f.isCategory){var h=f.field,p=e.getAttribute("color"),d=e.getAttribute("shape"),g=t.getTheme().defaultColor,y=e.coordinate.isPolar;return f.getTicks().map((function(n,v){var m,_=n.text,x=n.value,b=_,M=f.invert(x),C=0===t.filterFieldData(h,[(m={},m[h]=M,m)]).length;(0,i.each)(t.views,(function(t){var e;t.filterFieldData(h,[(e={},e[h]=M,e)]).length||(C=!0)}));var P,S,O=(0,o.getMappingValue)(p,M,g),w=(0,o.getMappingValue)(d,M,"point"),A=e.getShapeMarker(w,{color:O,isInPolar:y}),T=l;return(0,i.isFunction)(T)&&(T=T(b,v,r.__assign({name:b,value:M},(0,i.deepMix)({},a,A)))),function(t,e){var n=t.symbol;if((0,i.isString)(n)&&-1!==u.indexOf(n)){var r=(0,i.get)(t,"style",{}),a=(0,i.get)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=(0,i.deepMix)({},t.style,{lineWidth:a,stroke:o,fill:null})}}(A=(0,i.deepMix)({},a,A,(0,s.omit)(r.__assign({},T),["style"])),O),T&&T.style&&(A.style=(P=A.style,S=T.style,(0,i.isFunction)(S)?S(P):(0,i.deepMix)({},P,S))),c(A),{id:M,name:b,value:M,marker:A,unchecked:C}}))}return[]},e.getCustomLegendItems=function(t,e,n){return n.map((function(n,r){var a=e;(0,i.isFunction)(a)&&(a=a(n.name,r,(0,i.deepMix)({},t,n)));var o=(0,i.isFunction)(n.marker)?n.marker(n.name,r,(0,i.deepMix)({},t,n)):n.marker,s=(0,i.deepMix)({},t,a,o);return c(s),n.marker=s,n}))},e.getLegendThemeCfg=function(t,e){var n=(0,i.get)(t,["components","legend"],{});return(0,i.deepMix)({},(0,i.get)(n,["common"],{}),(0,i.deepMix)({},(0,i.get)(n,[e],{})))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLineMarker=void 0;var r={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};e.getLineMarker=function(t,e){var n=t.color;return{symbol:r[e],style:{lineWidth:2,r:6,stroke:n}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.getArcParams=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=r.__importStar(n(62));e.Shape=i,r.__exportStar(n(12),e);var a=n(502);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(120);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var s=n(219);Object.defineProperty(e,"getArcParams",{enumerable:!0,get:function(){return r.__importDefault(s).default}}),e.version="0.5.12"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseRadius=e.parseStyle=e.parsePattern=e.parseRadialGradient=e.parseLineGradient=void 0;var r=n(15),i=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function l(t,e){var n=t.match(s);(0,r.each)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function u(t,e,n){var r,a,o=i.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),u=o[2],c=e.getBBox();s>=0&&s<.5*Math.PI?(r={x:c.minX,y:c.minY},a={x:c.maxX,y:c.maxY}):.5*Math.PI<=s&&s<Math.PI?(r={x:c.maxX,y:c.minY},a={x:c.minX,y:c.maxY}):Math.PI<=s&&s<1.5*Math.PI?(r={x:c.maxX,y:c.maxY},a={x:c.minX,y:c.minY}):(r={x:c.minX,y:c.maxY},a={x:c.maxX,y:c.minY});var f=Math.tan(s),h=f*f,p=(a.x-r.x+f*(a.y-r.y))/(h+1)+r.x,d=f*(a.x-r.x+f*(a.y-r.y))/(h+1)+r.y,g=t.createLinearGradient(r.x,r.y,p,d);return l(u,g),g}function c(t,e,n){var r=a.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),u=parseFloat(r[3]),c=r[4];if(0===u){var f=c.match(s);return f[f.length-1].split(":")[1]}var h=e.getBBox(),p=h.maxX-h.minX,d=h.maxY-h.minY,g=Math.sqrt(p*p+d*d)/2,y=t.createRadialGradient(h.minX+p*i,h.minY+d*o,0,h.minX+p/2,h.minY+d/2,u*g);return l(c,y),y}function f(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,a=o.exec(n),s=a[1],l=a[2];function u(){r=t.createPattern(i,s),e.set("pattern",r),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return i=new Image,l.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=l,i.complete?u():(i.onload=u,i.src=i.src),r}e.parseLineGradient=u,e.parseRadialGradient=c,e.parsePattern=f,e.parseStyle=function(t,e,n){var i=e.getBBox();if(isNaN(i.x)||isNaN(i.y)||isNaN(i.width)||isNaN(i.height))return n;if((0,r.isString)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return u(t,e,n);if("r"===n[0])return c(t,e,n);if("p"===n[0])return f(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0},e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,[e,n,i,a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return i(t)*i(e)?(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e)):1}function o(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}e.default=function(t,e){var n=e[1],i=e[2],s=(0,r.mod)((0,r.toRadian)(e[3]),2*Math.PI),l=e[4],u=e[5],c=t[0],f=t[1],h=e[6],p=e[7],d=Math.cos(s)*(c-h)/2+Math.sin(s)*(f-p)/2,g=-1*Math.sin(s)*(c-h)/2+Math.cos(s)*(f-p)/2,y=d*d/(n*n)+g*g/(i*i);y>1&&(n*=Math.sqrt(y),i*=Math.sqrt(y));var v=n*n*(g*g)+i*i*(d*d),m=v?Math.sqrt((n*n*(i*i)-v)/v):1;l===u&&(m*=-1),isNaN(m)&&(m=0);var _=i?m*n*g/i:0,x=n?m*-i*d/n:0,b=(c+h)/2+Math.cos(s)*_-Math.sin(s)*x,M=(f+p)/2+Math.sin(s)*_+Math.cos(s)*x,C=[(d-_)/n,(g-x)/i],P=[(-1*d-_)/n,(-1*g-x)/i],S=o([1,0],C),O=o(C,P);return a(C,P)<=-1&&(O=Math.PI),a(C,P)>=1&&(O=0),0===u&&O>0&&(O-=2*Math.PI),1===u&&O<0&&(O+=2*Math.PI),{cx:b,cy:M,rx:(0,r.isSamePoint)(t,[h,p])?0:n,ry:(0,r.isSamePoint)(t,[h,p])?0:i,startAngle:S,endAngle:S+O,xRotation:s,arcFlag:l,sweepFlag:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(12);e.default=function(t,e,n){var i=(0,r.getOffScreenContext)();return t.createPath(i),i.isPointInPath(e,n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});function r(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function i(t,e,n){return(n[0]-t[0])*(e[1]-t[1])==(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}e.default=function(t,e,n){var a=!1,o=t.length;if(o<=2)return!1;for(var s=0;s<o;s++){var l=t[s],u=t[(s+1)%o];if(i(l,u,[e,n]))return!0;r(l[1]-n)>0!=r(u[1]-n)>0&&r(e-(n-l[1])*(l[0]-u[0])/(l[1]-u[1])-l[0])<0&&(a=!a)}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t,e,n,i,a,o,s,l){var u=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(u<i||u>a)return!1;var c={x:t+n*Math.cos(u),y:e+n*Math.sin(u)};return(0,r.distance)(c.x,c.y,s,l)<=o/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(81));e.default=function(t,e,n,i,a){var o=t.length;if(o<2)return!1;for(var s=0;s<o-1;s++){var l=t[s][0],u=t[s][1],c=t[s+1][0],f=t[s+1][1];if((0,r.default)(l,u,c,f,e,n,i))return!0}if(a){var h=t[0],p=t[o-1];if((0,r.default)(h[0],h[1],p[0],p[1],e,n,i))return!0}return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getQPath=e.getCPath=void 0;var r=n(1);e.getCPath=function(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]},e.getQPath=function(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return(0,r.each)(n,(function(t){i.push(t.x,t.y)})),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=n(14),s=r.__importDefault(n(79)),l=Math.PI/2,u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if((0,i.isNumber)(t))n=t;else if((0,i.isString)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),a=this.geometry.getYScale();return(0,i.map)(n,(function(t){if(t&&a){var e=a.scale((0,i.get)(t.data,a.field));return r.__assign(r.__assign({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var r=n.getCenter(),i=t.offset;e=Math.abs(t.x-r.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var r,i=1,a=t.content[n];this.isToMiddle(e)?r=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(i=-1),r=this.getArcPoint(e,n));var o=t.offset*i,s=this.getPointAngle(r),l=t.labelEmit,u=this.getCirclePoint(s,o,r,l);return 0===u.r?u.content="":(u.content=a,u.angle=s,u.color=e.color),u.rotate=t.autoRotate?this.getLabelRotate(s,o,l):t.rotate,u.start={x:r.x,y:r.y},u},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),(0,i.isArray)(t.x)||(0,i.isArray)(t.y)?{x:(0,i.isArray)(t.x)?t.x[e]:t.x,y:(0,i.isArray)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return(0,o.getAngleByPoint)(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var o=this.getCoordinate(),s=o.getCenter(),l=(0,a.getDistanceToCenter)(o,n);if(0===l)return r.__assign(r.__assign({},s),{r:l});var u=t;o.isTransposed&&l>e&&!i?u=t+2*Math.asin(e/(2*l)):l+=e;return{x:s.x+l*Math.cos(u),y:s.y+l*Math.sin(u),r:l}},e.prototype.getLabelRotate=function(t,e,n){var r=t+l;return n&&(r-=l),r&&(r>l?r-=Math.PI:r<-l&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return(0,i.each)(t,(function(t){r.x+=t.x,r.y+=t.y})),r.x/=n,r.y/=n,r=e.convert(r)},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antiCollision=void 0,e.antiCollision=function(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,a=!0,o=n.minY,s=n.maxY,l=Math.abs(o-s),u=0,c=Number.MIN_VALUE,f=r.map((function(t){return t.y>u&&(u=t.y),t.y<c&&(c=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));for(c-=o,u-o>l&&(l=u-o);a;)for(f.forEach((function(t){var e=(Math.min.apply(c,t.targets)+Math.max.apply(c,t.targets))/2;t.pos=Math.min(Math.max(c,e-t.size/2),l-t.size),t.pos=Math.max(0,t.pos)})),a=!1,i=f.length;i--;)if(i>0){var h=f[i-1],p=f[i];h.pos+h.size>p.pos&&(h.size+=p.size,h.targets=h.targets.concat(p.targets),h.pos+h.size>l&&(h.pos=l-h.size),f.splice(i,1),a=!0)}i=0,f.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,a=+new Date;if(a-r>(0,i.get)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,s={x:e.x,y:e.y};o&&(0,i.isEqual)(o,s)||this.showTooltip(n,s),this.timeStamp=a,this.location=s}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,r=n.clientX,i=n.clientY;e.isCursorEntered({x:r,y:i})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(r.__importDefault(n(11)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:(0,i.head)(t),end:(0,i.last)(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return{x:Math.min(e.x,n.x),y:Math.min(e.y,n.y),width:Math.abs(n.x-e.x),height:Math.abs(n.y-e.y)}},e}(r.__importDefault(n(133)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&((0,i.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(r.__importDefault(n(133)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BRUSH_FILTER_EVENTS=void 0;var r,i=n(0),a=n(56),o=i.__importDefault(n(11)),s=n(4);function l(t,e,n,r){var a=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),s=i.__read(t.range,2),l=s[0],u=s[1];if(a<l&&(a=l),o>u&&(o=u),a===u&&o===u)return null;var c=t.invert(a),f=t.invert(o);if(t.isCategory){var h=t.values.indexOf(c),p=t.values.indexOf(f),d=t.values.slice(h,p+1);return function(t){return d.includes(t)}}return function(t){return t>=c&&t<=f}}!function(t){t.FILTER="brush-filter-processing",t.RESET="brush-filter-reset",t.BEFORE_FILTER="brush-filter:beforefilter",t.AFTER_FILTER="brush-filter:afterfilter",t.BEFORE_RESET="brush-filter:beforereset",t.AFTER_RESET="brush-filter:afterreset"}(r||(r={})),e.BRUSH_FILTER_EVENTS=r;var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.startPoint=null,e.isStarted=!1,e}return i.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if((0,s.isMask)(this.context)){var n=this.context.event.target.getCanvasBBox();t={x:n.x,y:n.y},e={x:n.maxX,y:n.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var i=this.context,o=i.view,u={view:o,event:i.event,dims:this.dims};o.emit(r.BEFORE_FILTER,a.Event.fromData(o,r.BEFORE_FILTER,u));var c=o.getCoordinate(),f=c.invert(e),h=c.invert(t);if(this.hasDim("x")){var p=o.getXScale(),d=l(p,"x",f,h);this.filterView(o,p.field,d)}if(this.hasDim("y")){var g=o.getYScales()[0];d=l(g,"y",f,h);this.filterView(o,g.field,d)}this.reRender(o,{source:r.FILTER}),o.emit(r.AFTER_FILTER,a.Event.fromData(o,r.AFTER_FILTER,u))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(r.BEFORE_RESET,a.Event.fromData(t,r.BEFORE_RESET,{})),this.isStarted=!1,this.hasDim("x")){var e=t.getXScale();this.filterView(t,e.field,null)}if(this.hasDim("y")){var n=t.getYScales()[0];this.filterView(t,n.field,null)}this.reRender(t,{source:r.RESET}),t.emit(r.AFTER_RESET,a.Event.fromData(t,r.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(77),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=["x","y"],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return r.__extends(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim("x"),this.resetDim("y"),this.context.view.render(!0)},e}(i.Action);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=e.BRUSH_FILTER_EVENTS=e.VIEW_LIFE_CIRCLE=void 0;var r=n(0),i=n(23),a=n(488),o=n(207);(0,i.registerTheme)("dark",(0,o.createThemeByStyleSheet)(a.antvDark));var s=r.__importStar(n(217)),l=r.__importStar(n(504)),u=n(23);(0,u.registerEngine)("canvas",s),(0,u.registerEngine)("svg",l);var c=n(23),f=r.__importDefault(n(525)),h=r.__importDefault(n(527)),p=r.__importDefault(n(529)),d=r.__importDefault(n(530)),g=r.__importDefault(n(532)),y=r.__importDefault(n(123)),v=r.__importDefault(n(533)),m=r.__importDefault(n(535)),_=r.__importDefault(n(537)),x=r.__importDefault(n(539));(0,c.registerGeometry)("Polygon",m.default),(0,c.registerGeometry)("Interval",d.default),(0,c.registerGeometry)("Schema",_.default),(0,c.registerGeometry)("Path",y.default),(0,c.registerGeometry)("Point",v.default),(0,c.registerGeometry)("Line",g.default),(0,c.registerGeometry)("Area",f.default),(0,c.registerGeometry)("Edge",h.default),(0,c.registerGeometry)("Heatmap",p.default),(0,c.registerGeometry)("Violin",x.default),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560);var b=n(23),M=r.__importDefault(n(79)),C=r.__importDefault(n(561)),P=r.__importDefault(n(562)),S=r.__importDefault(n(225));(0,b.registerGeometryLabel)("base",M.default),(0,b.registerGeometryLabel)("interval",C.default),(0,b.registerGeometryLabel)("pie",P.default),(0,b.registerGeometryLabel)("polar",S.default);var O=n(23),w=n(563),A=n(564),T=n(565),E=n(566),I=n(567),L=n(568),D=n(569),B=n(573),j=n(575),R=n(576),k=n(577),F=n(578),N=n(579);(0,O.registerGeometryLabelLayout)("overlap",L.overlap),(0,O.registerGeometryLabelLayout)("distribute",w.distribute),(0,O.registerGeometryLabelLayout)("fixed-overlap",L.fixedOverlap),(0,O.registerGeometryLabelLayout)("hide-overlap",D.hideOverlap),(0,O.registerGeometryLabelLayout)("limit-in-shape",I.limitInShape),(0,O.registerGeometryLabelLayout)("limit-in-canvas",E.limitInCanvas),(0,O.registerGeometryLabelLayout)("limit-in-plot",N.limitInPlot),(0,O.registerGeometryLabelLayout)("pie-outer",A.pieOuterLabelLayout),(0,O.registerGeometryLabelLayout)("adjust-color",B.adjustColor),(0,O.registerGeometryLabelLayout)("interval-adjust-position",j.intervalAdjustPosition),(0,O.registerGeometryLabelLayout)("interval-hide-overlap",R.intervalHideOverlap),(0,O.registerGeometryLabelLayout)("point-adjust-position",k.pointAdjustPosition),(0,O.registerGeometryLabelLayout)("pie-spider",T.pieSpiderLabelLayout),(0,O.registerGeometryLabelLayout)("path-adjust-position",F.pathAdjustPosition);var G=n(582),Y=n(583),V=n(585),H=n(586),z=n(587),X=n(588),W=n(589),q=n(590),U=n(23);(0,U.registerAnimation)("fade-in",G.fadeIn),(0,U.registerAnimation)("fade-out",G.fadeOut),(0,U.registerAnimation)("grow-in-x",Y.growInX),(0,U.registerAnimation)("grow-in-xy",Y.growInXY),(0,U.registerAnimation)("grow-in-y",Y.growInY),(0,U.registerAnimation)("scale-in-x",z.scaleInX),(0,U.registerAnimation)("scale-in-y",z.scaleInY),(0,U.registerAnimation)("wave-in",W.waveIn),(0,U.registerAnimation)("zoom-in",q.zoomIn),(0,U.registerAnimation)("zoom-out",q.zoomOut),(0,U.registerAnimation)("position-update",H.positionUpdate),(0,U.registerAnimation)("sector-path-update",X.sectorPathUpdate),(0,U.registerAnimation)("path-in",V.pathIn);var Z=n(23),Q=r.__importDefault(n(591)),K=r.__importDefault(n(592)),$=r.__importDefault(n(593)),J=r.__importDefault(n(594)),tt=r.__importDefault(n(595)),et=r.__importDefault(n(596));(0,Z.registerFacet)("rect",tt.default),(0,Z.registerFacet)("mirror",J.default),(0,Z.registerFacet)("list",K.default),(0,Z.registerFacet)("matrix",$.default),(0,Z.registerFacet)("circle",Q.default),(0,Z.registerFacet)("tree",et.default);var nt=n(23),rt=r.__importDefault(n(597)),it=r.__importDefault(n(600)),at=r.__importDefault(n(602)),ot=r.__importDefault(n(603)),st=r.__importDefault(n(210)),lt=r.__importDefault(n(604));(0,nt.registerComponentController)("axis",it.default),(0,nt.registerComponentController)("legend",at.default),(0,nt.registerComponentController)("tooltip",st.default),(0,nt.registerComponentController)("annotation",rt.default),(0,nt.registerComponentController)("slider",ot.default),(0,nt.registerComponentController)("scrollbar",lt.default);var ut=n(23),ct=r.__importDefault(n(605)),ft=r.__importDefault(n(606)),ht=r.__importDefault(n(227)),pt=r.__importDefault(n(607)),dt=r.__importDefault(n(608)),gt=r.__importDefault(n(609)),yt=r.__importDefault(n(610)),vt=r.__importDefault(n(611)),mt=r.__importDefault(n(131)),_t=r.__importDefault(n(612)),xt=r.__importDefault(n(613)),bt=r.__importStar(n(614));Object.defineProperty(e,"ELEMENT_RANGE_HIGHLIGHT_EVENTS",{enumerable:!0,get:function(){return bt.ELEMENT_RANGE_HIGHLIGHT_EVENTS}});var Mt=r.__importDefault(n(615)),Ct=r.__importDefault(n(616)),Pt=r.__importDefault(n(617)),St=r.__importDefault(n(618)),Ot=r.__importDefault(n(619)),wt=r.__importDefault(n(620)),At=r.__importDefault(n(622)),Tt=r.__importDefault(n(623)),Et=r.__importDefault(n(624)),It=r.__importDefault(n(625)),Lt=r.__importDefault(n(626)),Dt=r.__importDefault(n(627)),Bt=r.__importDefault(n(628)),jt=r.__importDefault(n(229)),Rt=r.__importDefault(n(228)),kt=r.__importDefault(n(629)),Ft=r.__importDefault(n(630)),Nt=r.__importDefault(n(631)),Gt=r.__importStar(n(230));Object.defineProperty(e,"BRUSH_FILTER_EVENTS",{enumerable:!0,get:function(){return Gt.BRUSH_FILTER_EVENTS}});var Yt=r.__importDefault(n(632)),Vt=r.__importDefault(n(633)),Ht=r.__importDefault(n(634)),zt=r.__importDefault(n(635)),Xt=r.__importDefault(n(636)),Wt=r.__importDefault(n(637)),qt=r.__importDefault(n(638)),Ut=r.__importDefault(n(639)),Zt=r.__importDefault(n(640)),Qt=r.__importDefault(n(641));(0,ut.registerAction)("tooltip",ht.default),(0,ut.registerAction)("sibling-tooltip",ft.default),(0,ut.registerAction)("ellipsis-text",pt.default),(0,ut.registerAction)("element-active",dt.default),(0,ut.registerAction)("element-single-active",vt.default),(0,ut.registerAction)("element-range-active",yt.default),(0,ut.registerAction)("element-highlight",mt.default),(0,ut.registerAction)("element-highlight-by-x",xt.default),(0,ut.registerAction)("element-highlight-by-color",_t.default),(0,ut.registerAction)("element-single-highlight",Mt.default),(0,ut.registerAction)("element-range-highlight",bt.default),(0,ut.registerAction)("element-sibling-highlight",bt.default,{effectSiblings:!0,effectByRecord:!0}),(0,ut.registerAction)("element-selected",Pt.default),(0,ut.registerAction)("element-single-selected",St.default),(0,ut.registerAction)("element-range-selected",Ct.default),(0,ut.registerAction)("element-link-by-color",gt.default),(0,ut.registerAction)("active-region",ct.default),(0,ut.registerAction)("list-active",Ot.default),(0,ut.registerAction)("list-selected",At.default),(0,ut.registerAction)("list-highlight",wt.default),(0,ut.registerAction)("list-unchecked",Tt.default),(0,ut.registerAction)("list-checked",Et.default),(0,ut.registerAction)("list-focus",It.default),(0,ut.registerAction)("list-radio",Lt.default),(0,ut.registerAction)("legend-item-highlight",wt.default,{componentNames:["legend"]}),(0,ut.registerAction)("axis-label-highlight",wt.default,{componentNames:["axis"]}),(0,ut.registerAction)("axis-description",Qt.default),(0,ut.registerAction)("rect-mask",Rt.default),(0,ut.registerAction)("x-rect-mask",Bt.default,{dim:"x"}),(0,ut.registerAction)("y-rect-mask",Bt.default,{dim:"y"}),(0,ut.registerAction)("circle-mask",Dt.default),(0,ut.registerAction)("path-mask",jt.default),(0,ut.registerAction)("smooth-path-mask",kt.default),(0,ut.registerAction)("cursor",Ft.default),(0,ut.registerAction)("data-filter",Nt.default),(0,ut.registerAction)("brush",Gt.default),(0,ut.registerAction)("brush-x",Gt.default,{dims:["x"]}),(0,ut.registerAction)("brush-y",Gt.default,{dims:["y"]}),(0,ut.registerAction)("sibling-filter",Yt.default),(0,ut.registerAction)("sibling-x-filter",Yt.default),(0,ut.registerAction)("sibling-y-filter",Yt.default),(0,ut.registerAction)("element-filter",Vt.default),(0,ut.registerAction)("element-sibling-filter",Ht.default),(0,ut.registerAction)("element-sibling-filter-record",Ht.default,{byRecord:!0}),(0,ut.registerAction)("view-drag",Xt.default),(0,ut.registerAction)("view-move",Wt.default),(0,ut.registerAction)("scale-translate",qt.default),(0,ut.registerAction)("scale-zoom",Ut.default),(0,ut.registerAction)("reset-button",zt.default,{name:"reset-button",text:"reset"}),(0,ut.registerAction)("mousewheel-scroll",Zt.default);var Kt=n(23);function $t(t){return t.isInPlot()}function Jt(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}(0,Kt.registerInteraction)("tooltip",{start:[{trigger:"plot:mousemove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"plot:touchmove",action:"tooltip:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseleave",action:"tooltip:hide"},{trigger:"plot:leave",action:"tooltip:hide"},{trigger:"plot:touchend",action:"tooltip:hide"}]}),(0,Kt.registerInteraction)("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),(0,Kt.registerInteraction)("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),(0,Kt.registerInteraction)("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),(0,Kt.registerInteraction)("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),(0,Kt.registerInteraction)("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),(0,Kt.registerInteraction)("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),(0,Kt.registerInteraction)("legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","element-active:reset"]}]}),(0,Kt.registerInteraction)("legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("axis-label-highlight",{start:[{trigger:"axis-label:mouseenter",action:["axis-label-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"axis-label:mouseleave",action:["axis-label-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("element-list-highlight",{start:[{trigger:"element:mouseenter",action:["list-highlight:highlight","element-highlight:highlight"]}],end:[{trigger:"element:mouseleave",action:["list-highlight:reset","element-highlight:reset"]}]}),(0,Kt.registerInteraction)("element-range-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:["rect-mask:start","rect-mask:show"]},{trigger:"mask:dragstart",action:["rect-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:drag",action:["rect-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end"]},{trigger:"mask:dragend",action:["rect-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear","rect-mask:end","rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear","rect-mask:hide"]}]}),(0,Kt.registerInteraction)("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:$t,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:$t,action:["brush:filter","brush:end","rect-mask:end","rect-mask:hide","reset-button:show"]}],rollback:[{trigger:"reset-button:click",action:["brush:reset","reset-button:hide","cursor:crosshair"]}]}),(0,Kt.registerInteraction)("brush-visible",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"plot:mousedown",action:["rect-mask:start","rect-mask:show"]}],processing:[{trigger:"plot:mousemove",action:["rect-mask:resize"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:["rect-mask:end","rect-mask:hide","element-filter:filter","element-range-highlight:clear"]}],rollback:[{trigger:"dblclick",action:["element-filter:clear"]}]}),(0,Kt.registerInteraction)("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:$t,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:$t,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),(0,Kt.registerInteraction)("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:$t,action:"path-mask:start"},{trigger:"mousedown",isEnable:$t,action:"path-mask:show"}],processing:[{trigger:"mousemove",action:"path-mask:addPoint"}],end:[{trigger:"mouseup",action:"path-mask:end"}],rollback:[{trigger:"dblclick",action:"path-mask:hide"}]}),(0,Kt.registerInteraction)("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),(0,Kt.registerInteraction)("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),(0,Kt.registerInteraction)("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),(0,Kt.registerInteraction)("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),(0,Kt.registerInteraction)("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),(0,Kt.registerInteraction)("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),(0,Kt.registerInteraction)("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),(0,Kt.registerInteraction)("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Jt(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Jt(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),(0,Kt.registerInteraction)("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),(0,Kt.registerInteraction)("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]});var te=n(2);Object.defineProperty(e,"VIEW_LIFE_CIRCLE",{enumerable:!0,get:function(){return te.VIEW_LIFE_CIRCLE}}),r.__exportStar(n(23),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(150),s=n(313),l=function(t){function e(e){var n=this,l=e.container,u=e.width,c=e.height,f=e.autoFit,h=void 0!==f&&f,p=e.padding,d=e.appendPadding,g=e.renderer,y=void 0===g?"canvas":g,v=e.pixelRatio,m=e.localRefresh,_=void 0===m||m,x=e.visible,b=void 0===x||x,M=e.supportCSSTransform,C=void 0!==M&&M,P=e.defaultInteractions,S=void 0===P?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:P,O=e.options,w=e.limitInPlot,A=e.theme,T=e.syncViewPadding,E=(0,i.isString)(l)?document.getElementById(l):l,I=(0,s.createDom)('<div style="position:relative;"></div>');E.appendChild(I);var L=(0,s.getChartSize)(E,h,u,c),D=new((0,o.getEngine)(y).Canvas)(r.__assign({container:I,pixelRatio:v,localRefresh:_,supportCSSTransform:C},L));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.BG}),middleGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.MID}),foregroundGroup:D.addGroup({zIndex:a.GROUP_Z_INDEX.FORE}),padding:p,appendPadding:d,visible:b,options:O,limitInPlot:w,theme:A,syncViewPadding:T})||this).onResize=(0,i.debounce)((function(){n.forceFit()}),300),n.ele=E,n.canvas=D,n.width=L.width,n.height=L.height,n.autoFit=h,n.localRefresh=_,n.renderer=y,n.wrapperElement=I,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(S),n}return r.__extends(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;(0,i.each)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(a.VIEW_LIFE_CIRCLE.AFTER_CHANGE_SIZE)),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.aria(!1)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),(0,s.removeDom)(this.wrapperElement),this.wrapperElement=null},e.prototype.changeVisible=function(e){return t.prototype.changeVisible.call(this,e),this.wrapperElement.style.display=e?"":"none",this},e.prototype.forceFit=function(){if(!this.destroyed){var t=(0,s.getChartSize)(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){(0,s.modifyCSS)(this.canvas.get("el"),{display:"inline-block",verticalAlign:"middle"})},e.prototype.bindAutoFit=function(){this.autoFit&&window.addEventListener("resize",this.onResize)},e.prototype.unbindAutoFit=function(){this.autoFit&&window.removeEventListener("resize",this.onResize)},e}(r.__importDefault(n(153)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(134)),a=r.__importDefault(n(84));e.default=function(t,e){return void 0===e&&(e=[]),(0,i.default)(t,(function(t){return!(0,a.default)(e,t)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(18)),a=r.__importDefault(n(135)),o=r.__importDefault(n(7)),s=r.__importDefault(n(57));e.default=function(t,e){if(!(0,o.default)(t))return null;var n;if((0,i.default)(e)&&(n=e),(0,s.default)(e)&&(n=function(t){return(0,a.default)(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(7));e.default=function(t,e){for(var n=null,r=0;r<t.length;r++){var o=t[r][e];if(!(0,i.default)(o)){n=(0,a.default)(o)?o[0]:o;break}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){if(!(0,r.default)(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function t(e,n){if(void 0===n&&(n=[]),(0,r.default)(e))for(var i=0;i<e.length;i+=1)t(e[i],n);else n.push(e);return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(137)),o=r.__importDefault(n(138));e.default=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if((0,i.default)(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var s=(0,a.default)(e);return{min:(0,o.default)(e),max:s}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Array.prototype,i=r.splice,a=r.indexOf;e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r++)for(var o=e[r],s=-1;(s=a.call(t,o))>-1;)i.call(t,s,1);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(17)),a=r.__importDefault(n(139));e.default=function(t,e){var n=[];if(!(0,i.default)(t))return n;for(var r=-1,o=[],s=t.length;++r<s;){var l=t[r];e(l,r,t)&&(n.push(l),o.push(r))}return(0,a.default)(t,o),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(30)),o=r.__importDefault(n(18));e.default=function(t,e){var n;if((0,o.default)(e))n=function(t,n){return e(t)-e(n)};else{var r=[];(0,a.default)(e)?r.push(e):(0,i.default)(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(141));e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return(0,r.default)([].concat.apply([],t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(35));e.default=function(t,e){for(var n=[],r={},o=0;o<t.length;o++){var s=t[o][e];if(!(0,a.default)(s)){(0,i.default)(s)||(s=[s]);for(var l=0;l<s.length;l++){var u=s[l];r[u]||(n.push(u),r[u]=!0)}}}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t){if((0,r.default)(t))return t[0]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t){if((0,r.default)(t)){return t[t.length-1]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(30));e.default=function(t,e){return!(!(0,i.default)(t)&&!(0,a.default)(t))&&t[0]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(30));e.default=function(t,e){return!(!(0,i.default)(t)&&!(0,a.default)(t))&&t[t.length-1]===e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(142));e.default=function(t,e){if(!e)return[t];var n=(0,r.default)(t,e),i=[];for(var a in n)i.push(n[a]);return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t["_wrap_"+e]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){var e=r[t];if(!e){for(var n=t.toString(16),i=n.length;i<6;i++)n="0"+n;e="#"+n,r[t]=e}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(7));e.default=function(t){var e=0,n=0,i=0,a=0;return(0,r.default)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return t<e?e:t>n?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){var n=e.toString(),r=n.indexOf(".");if(-1===r)return Math.round(t);var i=n.substr(r+1).length;return i>20&&(i=20),parseFloat(t.toFixed(i))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t%1!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t%2==0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31)),i=Number.isInteger?Number.isInteger:function(t){return(0,r.default)(t)&&t%1==0};e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t<0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t%2!=0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&t>0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=-1/0,o=0;o<t.length;o++){var s=t[o],l=(0,a.default)(e)?e(s):s[e];l>r&&(n=s,r=l)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(18));e.default=function(t,e){if((0,i.default)(t)){for(var n,r=1/0,o=0;o<t.length;o++){var s=t[o],l=(0,a.default)(e)?e(s):s[e];l<r&&(n=s,r=l)}return n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t,e){return(t%e+e)%e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=180/Math.PI;e.default=function(t){return r*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=parseInt},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.PI/180;e.default=function(t){return r*t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(45));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(144));e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(84)),a=r.__importDefault(n(86));e.default=function(t,e){return(0,i.default)((0,a.default)(t),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));e.default=function(t){return(0,r.default)(t).toLowerCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));e.default=function(t){var e=(0,r.default)(t);return e.charAt(0).toLowerCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));e.default=function(t){return(0,r.default)(t).toUpperCase()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(46));e.default=function(t){var e=(0,r.default)(t);return e.charAt(0).toUpperCase()+e.substring(1)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Arguments")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Boolean")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Date")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"Error")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(31));e.default=function(t){return(0,r.default)(t)&&isFinite(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return null===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(24));e.default=function(t){return(0,r.default)(t,"RegExp")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return void 0===t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){return t instanceof Element||t instanceof HTMLDocument}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(87)),a=r.__importDefault(n(18));e.default=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=t[0],r=1;r<t.length;r++){var o=t[r];(0,a.default)(o)&&(o=o.prototype),(0,i.default)(n.prototype,o)}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0).__importDefault(n(7));e.default=function t(e){if("object"!==r(e)||null===e)return e;var n;if((0,i.default)(e)){n=[];for(var a=0,o=e.length;a<o;a++)"object"===r(e[a])&&null!=e[a]?n[a]=t(e[a]):n[a]=e[a]}else for(var s in n={},e)"object"===r(e[s])&&null!=e[s]?n[s]=t(e[s]):n[s]=e[s];return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r;return function(){var i=this,a=arguments,o=function(){r=null,n||t.apply(i,a)},s=n&&!r;clearTimeout(r),r=setTimeout(o,e),s&&t.apply(i,a)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(7)),a=r.__importDefault(n(57));function o(t,e,n,r){for(var s in n=n||0,r=r||5,e)if(e.hasOwnProperty(s)){var l=e[s];null!==l&&(0,a.default)(l)?((0,a.default)(t[s])||(t[s]={}),n<r?o(t[s],l,n+1,r):t[s]=e[s]):(0,i.default)(l)?(t[s]=[],t[s]=t[s].concat(l)):void 0!==l&&(t[s]=l)}}e.default=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)o(t,e[r]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(87)),a=r.__importDefault(n(18));e.default=function(t,e,n,r){(0,a.default)(e)||(n=e,e=t,t=function(){});var o=Object.create?function(t,e){return Object.create(t,{constructor:{value:e}})}:function(t,e){function n(){}n.prototype=t;var r=new n;return r.constructor=e,r},s=o(e.prototype,t);return t.prototype=(0,i.default)(s,t.prototype),t.superclass=o(e.prototype,e),(0,i.default)(s,n),(0,i.default)(t,r),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){if(!(0,r.default)(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(17)),o=r.__importDefault(n(145)),s=r.__importDefault(n(146)),l=Object.prototype.hasOwnProperty;e.default=function(t){if((0,i.default)(t))return!0;if((0,a.default)(t))return!t.length;var e=(0,o.default)(t);if("Map"===e||"Set"===e)return!t.size;if((0,s.default)(t))return!Object.keys(t).length;for(var n in t)if(l.call(t,n))return!1;return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(18)),a=r.__importDefault(n(148));e.default=function(t,e,n){return(0,i.default)(n)?!!n(t,e):(0,a.default)(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t,e){if(!(0,r.default)(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];n.push(e(a,i))}return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(66)),o=function(t){return t};e.default=function(t,e){void 0===e&&(e=o);var n={};return(0,a.default)(t)&&!(0,i.default)(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(30));e.default=function(t,e,n){for(var i=0,a=(0,r.default)(e)?e.split("."):e;t&&i<a.length;)t=t[a[i++]];return void 0===t||i<a.length?n:t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(66)),a=r.__importDefault(n(30)),o=r.__importDefault(n(31));e.default=function(t,e,n){var r=t,s=(0,a.default)(e)?e.split("."):e;return s.forEach((function(t,e){e<s.length-1?((0,i.default)(r[t])||(r[t]=(0,o.default)(s[e+1])?[]:{}),r=r[t]):r[t]=n})),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(45)),a=r.__importDefault(n(57)),o=Object.prototype.hasOwnProperty;e.default=function(t,e){if(null===t||!(0,a.default)(t))return{};var n={};return(0,i.default)(e,(function(e){o.call(t,e)&&(n[e]=t[e])})),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(140));e.default=function(t,e){return(0,r.default)(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){var r,i,a,o,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),r=null,o=t.apply(i,a),r||(i=a=null)},u=function(){var u=Date.now();s||!1!==n.leading||(s=u);var c=e-(u-s);return i=this,a=arguments,c<=0||c>e?(r&&(clearTimeout(r),r=null),s=u,o=t.apply(i,a),r||(i=a=null)):r||!1===n.trailing||(r=setTimeout(l,c)),o};return u.cancel=function(){clearTimeout(r),s=0,r=i=a=null},u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(17));e.default=function(t){return(0,r.default)(t)?Array.prototype.slice.call(t):[]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={};e.default=function(t){return r[t=t||"g"]?r[t]+=1:r[t]=1,t+r[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(35)),a=r.__importDefault(n(17));e.default=function(t){return(0,i.default)(t)?0:(0,a.default)(t)?t.length:Object.keys(t).length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(30)),a=r.__importDefault(n(46)),o=r.__importDefault(n(149));e.default=function(t,e,n,r){void 0===r&&(r="...");var s,l,u=(0,o.default)(r,n),c=(0,i.default)(t)?t:(0,a.default)(t),f=e,h=[];if((0,o.default)(t,n)<=e)return t;for(;s=c.substr(0,16),!((l=(0,o.default)(s,n))+u>f&&l>f);)if(h.push(s),f-=l,!(c=c.substr(16)))return h.join("");for(;s=c.substr(0,1),!((l=(0,o.default)(s,n))+u>f);)if(h.push(s),f-=l,!(c=c.substr(1)))return h.join("");return""+h.join("")+r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}();e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.modifyCSS=e.createDom=e.removeDom=e.getChartSize=void 0;var r=n(2);function i(t){return"number"==typeof t&&!isNaN(t)}e.getChartSize=function(t,e,n,a){var o=n,s=a;if(e){var l=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);o=l.width?l.width:o,s=l.height?l.height:s}return{width:Math.max(i(o)?o:r.MIN_CHART_WIDTH,r.MIN_CHART_WIDTH),height:Math.max(i(s)?s:r.MIN_CHART_HEIGHT,r.MIN_CHART_HEIGHT)}},e.removeDom=function(t){var e=t.parentNode;e&&e.removeChild(t)};var a=n(47);Object.defineProperty(e,"createDom",{enumerable:!0,get:function(){return a.createDom}}),Object.defineProperty(e,"modifyCSS",{enumerable:!0,get:function(){return a.modifyCSS}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n){if(t){if("function"==typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"==typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}},function(t,e,n){"use strict";var r,i,a,o;Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){r||(r=document.createElement("table"),i=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,o={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:i,th:i,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in o||(e="*");var n=o[e];t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var s=n.childNodes[0];return s&&n.contains(s)&&n.removeChild(s),s}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(58)),a=r.__importDefault(n(151));e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderTopWidth"))||0,o=parseFloat((0,i.default)(t,"paddingTop"))||0,s=parseFloat((0,i.default)(t,"paddingBottom"))||0;return n+r+(parseFloat((0,i.default)(t,"borderBottomWidth"))||0)+o+s+(parseFloat((0,i.default)(t,"marginTop"))||0)+(parseFloat((0,i.default)(t,"marginBottom"))||0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(58)),a=r.__importDefault(n(152));e.default=function(t,e){var n=(0,a.default)(t,e),r=parseFloat((0,i.default)(t,"borderLeftWidth"))||0,o=parseFloat((0,i.default)(t,"paddingLeft"))||0,s=parseFloat((0,i.default)(t,"paddingRight"))||0,l=parseFloat((0,i.default)(t,"borderRightWidth"))||0,u=parseFloat((0,i.default)(t,"marginRight"))||0;return n+r+l+o+s+(parseFloat((0,i.default)(t,"marginLeft"))||0)+u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){return window.devicePixelRatio?window.devicePixelRatio:2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(158),o=r.__importDefault(n(159)),s=n(39),l=r.__importDefault(n(328)),u=r.__importDefault(n(360)),c=(0,a.detect)(),f=c&&"firefox"===c.name,h=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.cursor="default",e.supportCSSTransform=!1,e},e.prototype.initContainer=function(){var t=this.get("container");(0,s.isString)(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t),this.get("container").appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new u.default({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new l.default(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");s.isBrowser&&(n.style.width=t+"px",n.style.height=e+"px")},e.prototype.changeSize=function(t,e){this.setDOMSize(t,e),this.set("width",t),this.set("height",e),this.onCanvasChange("changeSize")},e.prototype.getRenderer=function(){return this.get("renderer")},e.prototype.getCursor=function(){return this.get("cursor")},e.prototype.setCursor=function(t){this.set("cursor",t);var e=this.get("el");s.isBrowser&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(f&&!(0,s.isNil)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!(0,s.isNil)(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var e=this.getClientByEvent(t),n=e.x,r=e.y;return this.getPointByClient(n,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t-n.left,y:e-n.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el").getBoundingClientRect();return{x:t+n.left,y:e+n.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){this.get("eventController").destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o.default);e.default=h},function(t,e){var n,r,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(t){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(t){r=o}}();var l,u=[],c=!1,f=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++f<e;)l&&l[f].run();f=-1,e=u.length}l=null,c=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(e){try{return r.call(null,t)}catch(e){return r.call(this,t)}}}(t)}}function d(t,e){this.fun=t,this.array=e}function g(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new d(t,e)),1!==u.length||c||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.multiplyScalarAndAdd=e.multiplyScalar=e.equals=e.exactEquals=e.subtract=e.add=e.LDU=e.frob=e.str=e.fromScaling=e.fromRotation=e.scale=e.rotate=e.multiply=e.determinant=e.adjoint=e.invert=e.transpose=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*s+a*l,t[1]=i*s+o*l,t[2]=r*u+a*c,t[3]=i*u+o*c,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t}e.create=function(){var t=new r.ARRAY_TYPE(4);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(4);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t},e.fromValues=function(t,e,n,i){var a=new r.ARRAY_TYPE(4);return a[0]=t,a[1]=e,a[2]=n,a[3]=i,a},e.set=function(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t},e.transpose=function(t,e){if(t===e){var n=e[1];t[1]=e[2],t[2]=n}else t[0]=e[0],t[1]=e[2],t[2]=e[1],t[3]=e[3];return t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=n*a-i*r;return o?(o=1/o,t[0]=a*o,t[1]=-r*o,t[2]=-i*o,t[3]=n*o,t):null},e.adjoint=function(t,e){var n=e[0];return t[0]=e[3],t[1]=-e[1],t[2]=-e[2],t[3]=n,t},e.determinant=function(t){return t[0]*t[3]-t[2]*t[1]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=Math.sin(n),l=Math.cos(n);return t[0]=r*l+a*s,t[1]=i*l+o*s,t[2]=r*-s+a*l,t[3]=i*-s+o*l,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1];return t[0]=r*s,t[1]=i*s,t[2]=a*l,t[3]=o*l,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t},e.str=function(t){return"mat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3])},e.LDU=function(t,e,n,r){return t[2]=r[2]/r[0],n[0]=r[0],n[1]=r[1],n[3]=r[3]-t[2]*n[1],[t,e,n]},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t},e.subtract=a,e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=e[0],l=e[1],u=e[2],c=e[3];return Math.abs(n-s)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-l)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(l))&&Math.abs(a-u)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(u))&&Math.abs(o-c)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(c))},e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sub=e.mul=e.equals=e.exactEquals=e.multiplyScalarAndAdd=e.multiplyScalar=e.subtract=e.add=e.frob=e.str=e.fromTranslation=e.fromScaling=e.fromRotation=e.translate=e.scale=e.rotate=e.multiply=e.determinant=e.invert=e.set=e.fromValues=e.identity=e.copy=e.clone=e.create=void 0;var r=n(0).__importStar(n(28));function i(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1],f=n[2],h=n[3],p=n[4],d=n[5];return t[0]=r*u+a*c,t[1]=i*u+o*c,t[2]=r*f+a*h,t[3]=i*f+o*h,t[4]=r*p+a*d+s,t[5]=i*p+o*d+l,t}function a(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t}e.create=function(){var t=new r.ARRAY_TYPE(6);return r.ARRAY_TYPE!=Float32Array&&(t[1]=0,t[2]=0,t[4]=0,t[5]=0),t[0]=1,t[3]=1,t},e.clone=function(t){var e=new r.ARRAY_TYPE(6);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e},e.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t},e.identity=function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t},e.fromValues=function(t,e,n,i,a,o){var s=new r.ARRAY_TYPE(6);return s[0]=t,s[1]=e,s[2]=n,s[3]=i,s[4]=a,s[5]=o,s},e.set=function(t,e,n,r,i,a,o){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t},e.invert=function(t,e){var n=e[0],r=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=n*a-r*i;return l?(l=1/l,t[0]=a*l,t[1]=-r*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*o)*l,t[5]=(r*o-n*s)*l,t):null},e.determinant=function(t){return t[0]*t[3]-t[1]*t[2]},e.multiply=i,e.rotate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=r*c+a*u,t[1]=i*c+o*u,t[2]=r*-u+a*c,t[3]=i*-u+o*c,t[4]=s,t[5]=l,t},e.scale=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r*u,t[1]=i*u,t[2]=a*c,t[3]=o*c,t[4]=s,t[5]=l,t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=e[4],l=e[5],u=n[0],c=n[1];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=r*u+a*c+s,t[5]=i*u+o*c+l,t},e.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=-n,t[3]=r,t[4]=0,t[5]=0,t},e.fromScaling=function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=e[1],t[4]=0,t[5]=0,t},e.fromTranslation=function(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=e[0],t[5]=e[1],t},e.str=function(t){return"mat2d("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+")"},e.frob=function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],1)},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t},e.subtract=a,e.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t},e.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]},e.equals=function(t,e){var n=t[0],i=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=e[0],c=e[1],f=e[2],h=e[3],p=e[4],d=e[5];return Math.abs(n-u)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(u))&&Math.abs(i-c)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(a-f)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(f))&&Math.abs(o-h)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(s-p)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(p))&&Math.abs(l-d)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(d))},e.mul=i,e.sub=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equals=e.exactEquals=e.str=e.normalize=e.sqrLen=e.squaredLength=e.len=e.length=e.conjugate=e.invert=e.lerp=e.dot=e.scale=e.mul=e.multiply=e.add=e.rotateAroundAxis=e.rotateByQuatPrepend=e.rotateByQuatAppend=e.rotateZ=e.rotateY=e.rotateX=e.translate=e.getTranslation=e.setDual=e.setReal=e.getDual=e.getReal=e.set=e.identity=e.copy=e.fromMat4=e.fromRotation=e.fromTranslation=e.fromRotationTranslation=e.fromRotationTranslationValues=e.fromValues=e.clone=e.create=void 0;var r=n(0),i=r.__importStar(n(28)),a=r.__importStar(n(163)),o=r.__importStar(n(162));function s(t,e,n){var r=.5*n[0],i=.5*n[1],a=.5*n[2],o=e[0],s=e[1],l=e[2],u=e[3];return t[0]=o,t[1]=s,t[2]=l,t[3]=u,t[4]=r*u+i*l-a*s,t[5]=i*u+a*o-r*l,t[6]=a*u+r*s-i*o,t[7]=-r*o-i*s-a*l,t}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t}function u(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[4],l=n[5],u=n[6],c=n[7],f=e[4],h=e[5],p=e[6],d=e[7],g=n[0],y=n[1],v=n[2],m=n[3];return t[0]=r*m+o*g+i*v-a*y,t[1]=i*m+o*y+a*g-r*v,t[2]=a*m+o*v+r*y-i*g,t[3]=o*m-r*g-i*y-a*v,t[4]=r*c+o*s+i*u-a*l+f*m+d*g+h*v-p*y,t[5]=i*c+o*l+a*s-r*u+h*m+d*y+p*g-f*v,t[6]=a*c+o*u+r*l-i*s+p*m+d*v+f*y-h*g,t[7]=o*c-r*s-i*l-a*u+d*m-f*g-h*y-p*v,t}e.create=function(){var t=new i.ARRAY_TYPE(8);return i.ARRAY_TYPE!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[4]=0,t[5]=0,t[6]=0,t[7]=0),t[3]=1,t},e.clone=function(t){var e=new i.ARRAY_TYPE(8);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e},e.fromValues=function(t,e,n,r,a,o,s,l){var u=new i.ARRAY_TYPE(8);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=a,u[5]=o,u[6]=s,u[7]=l,u},e.fromRotationTranslationValues=function(t,e,n,r,a,o,s){var l=new i.ARRAY_TYPE(8);l[0]=t,l[1]=e,l[2]=n,l[3]=r;var u=.5*a,c=.5*o,f=.5*s;return l[4]=u*r+c*n-f*e,l[5]=c*r+f*t-u*n,l[6]=f*r+u*e-c*t,l[7]=-u*t-c*e-f*n,l},e.fromRotationTranslation=s,e.fromTranslation=function(t,e){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=.5*e[0],t[5]=.5*e[1],t[6]=.5*e[2],t[7]=0,t},e.fromRotation=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.fromMat4=function(t,e){var n=a.create();o.getRotation(n,e);var r=new i.ARRAY_TYPE(3);return o.getTranslation(r,e),s(t,n,r),t},e.copy=l,e.identity=function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t[6]=0,t[7]=0,t},e.set=function(t,e,n,r,i,a,o,s,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t},e.getReal=a.copy,e.getDual=function(t,e){return t[0]=e[4],t[1]=e[5],t[2]=e[6],t[3]=e[7],t},e.setReal=a.copy,e.setDual=function(t,e){return t[4]=e[0],t[5]=e[1],t[6]=e[2],t[7]=e[3],t},e.getTranslation=function(t,e){var n=e[4],r=e[5],i=e[6],a=e[7],o=-e[0],s=-e[1],l=-e[2],u=e[3];return t[0]=2*(n*u+a*o+r*l-i*s),t[1]=2*(r*u+a*s+i*o-n*l),t[2]=2*(i*u+a*l+n*s-r*o),t},e.translate=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=.5*n[0],l=.5*n[1],u=.5*n[2],c=e[4],f=e[5],h=e[6],p=e[7];return t[0]=r,t[1]=i,t[2]=a,t[3]=o,t[4]=o*s+i*u-a*l+c,t[5]=o*l+a*s-r*u+f,t[6]=o*u+r*l-i*s+h,t[7]=-r*s-i*l-a*u+p,t},e.rotateX=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateX(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*r-p*i-d*o,t},e.rotateY=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateY(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*r-p*i-d*o,t},e.rotateZ=function(t,e,n){var r=-e[0],i=-e[1],o=-e[2],s=e[3],l=e[4],u=e[5],c=e[6],f=e[7],h=l*s+f*r+u*o-c*i,p=u*s+f*i+c*r-l*o,d=c*s+f*o+l*i-u*r,g=f*s-l*r-u*i-c*o;return a.rotateZ(t,e,n),r=t[0],i=t[1],o=t[2],s=t[3],t[4]=h*s+g*r+p*o-d*i,t[5]=p*s+g*i+d*r-h*o,t[6]=d*s+g*o+h*i-p*r,t[7]=g*s-h*r-p*i-d*o,t},e.rotateByQuatAppend=function(t,e,n){var r=n[0],i=n[1],a=n[2],o=n[3],s=e[0],l=e[1],u=e[2],c=e[3];return t[0]=s*o+c*r+l*a-u*i,t[1]=l*o+c*i+u*r-s*a,t[2]=u*o+c*a+s*i-l*r,t[3]=c*o-s*r-l*i-u*a,s=e[4],l=e[5],u=e[6],c=e[7],t[4]=s*o+c*r+l*a-u*i,t[5]=l*o+c*i+u*r-s*a,t[6]=u*o+c*a+s*i-l*r,t[7]=c*o-s*r-l*i-u*a,t},e.rotateByQuatPrepend=function(t,e,n){var r=e[0],i=e[1],a=e[2],o=e[3],s=n[0],l=n[1],u=n[2],c=n[3];return t[0]=r*c+o*s+i*u-a*l,t[1]=i*c+o*l+a*s-r*u,t[2]=a*c+o*u+r*l-i*s,t[3]=o*c-r*s-i*l-a*u,s=n[4],l=n[5],u=n[6],c=n[7],t[4]=r*c+o*s+i*u-a*l,t[5]=i*c+o*l+a*s-r*u,t[6]=a*c+o*u+r*l-i*s,t[7]=o*c-r*s-i*l-a*u,t},e.rotateAroundAxis=function(t,e,n,r){if(Math.abs(r)<i.EPSILON)return l(t,e);var a=Math.hypot(n[0],n[1],n[2]);r*=.5;var o=Math.sin(r),s=o*n[0]/a,u=o*n[1]/a,c=o*n[2]/a,f=Math.cos(r),h=e[0],p=e[1],d=e[2],g=e[3];t[0]=h*f+g*s+p*c-d*u,t[1]=p*f+g*u+d*s-h*c,t[2]=d*f+g*c+h*u-p*s,t[3]=g*f-h*s-p*u-d*c;var y=e[4],v=e[5],m=e[6],_=e[7];return t[4]=y*f+_*s+v*c-m*u,t[5]=v*f+_*u+m*s-y*c,t[6]=m*f+_*c+y*u-v*s,t[7]=_*f-y*s-v*u-m*c,t},e.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t},e.multiply=u,e.mul=u,e.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t},e.dot=a.dot,e.lerp=function(t,n,r,i){var a=1-i;return(0,e.dot)(n,r)<0&&(i=-i),t[0]=n[0]*a+r[0]*i,t[1]=n[1]*a+r[1]*i,t[2]=n[2]*a+r[2]*i,t[3]=n[3]*a+r[3]*i,t[4]=n[4]*a+r[4]*i,t[5]=n[5]*a+r[5]*i,t[6]=n[6]*a+r[6]*i,t[7]=n[7]*a+r[7]*i,t},e.invert=function(t,n){var r=(0,e.squaredLength)(n);return t[0]=-n[0]/r,t[1]=-n[1]/r,t[2]=-n[2]/r,t[3]=n[3]/r,t[4]=-n[4]/r,t[5]=-n[5]/r,t[6]=-n[6]/r,t[7]=n[7]/r,t},e.conjugate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t[3]=e[3],t[4]=-e[4],t[5]=-e[5],t[6]=-e[6],t[7]=e[7],t},e.length=a.length,e.len=e.length,e.squaredLength=a.squaredLength,e.sqrLen=e.squaredLength,e.normalize=function(t,n){var r=(0,e.squaredLength)(n);if(r>0){r=Math.sqrt(r);var i=n[0]/r,a=n[1]/r,o=n[2]/r,s=n[3]/r,l=n[4],u=n[5],c=n[6],f=n[7],h=i*l+a*u+o*c+s*f;t[0]=i,t[1]=a,t[2]=o,t[3]=s,t[4]=(l-i*h)/r,t[5]=(u-a*h)/r,t[6]=(c-o*h)/r,t[7]=(f-s*h)/r}return t},e.str=function(t){return"quat2("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+")"},e.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]},e.equals=function(t,e){var n=t[0],r=t[1],a=t[2],o=t[3],s=t[4],l=t[5],u=t[6],c=t[7],f=e[0],h=e[1],p=e[2],d=e[3],g=e[4],y=e[5],v=e[6],m=e[7];return Math.abs(n-f)<=i.EPSILON*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(r-h)<=i.EPSILON*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(a-p)<=i.EPSILON*Math.max(1,Math.abs(a),Math.abs(p))&&Math.abs(o-d)<=i.EPSILON*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(s-g)<=i.EPSILON*Math.max(1,Math.abs(s),Math.abs(g))&&Math.abs(l-y)<=i.EPSILON*Math.max(1,Math.abs(l),Math.abs(y))&&Math.abs(u-v)<=i.EPSILON*Math.max(1,Math.abs(u),Math.abs(v))&&Math.abs(c-m)<=i.EPSILON*Math.max(1,Math.abs(c),Math.abs(m))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=e.angleTo=e.direction=e.transform=e.leftScale=e.leftRotate=e.leftTranslate=void 0;var r=n(67);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.leftTranslate=i,e.leftRotate=a,e.leftScale=o,e.transform=function(t,e){for(var n,s,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c<f;c++){var h=e[c];switch(h[0]){case"t":i(u,u,[h[1],h[2]]);break;case"s":o(u,u,[h[1],h[2]]);break;case"r":a(u,u,h[1]);break;case"m":n=u,s=u,l=h[1],r.mat3.multiply(n,l,s)}}return u},e.direction=s,e.angleTo=function(t,e,n){var i=r.vec2.angle(t,e),a=s(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importStar(n(329)),o=n(332),s=n(174),l=r.__importStar(n(155)),u=n(359),c=[1,0,0,0,1,0,0,0,1];function f(t,e,n){var r,a=e.startTime;if(n<a+e.delay||e._paused)return!1;var f=e.duration,h=e.easing,p=(0,s.getEasing)(h);if(n=n-a-e.delay,e.repeat)r=p(r=n%f/f);else{if(!((r=n/f)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=p(r)}if(e.onFrame){var d=e.onFrame(r);t.attr(d)}else!function(t,e,n){var r={},a=e.fromAttrs,s=e.toAttrs;if(!t.destroyed){var f;for(var h in s)if(!(0,i.isEqual)(a[h],s[h]))if("path"===h){var p=s[h],d=a[h];p.length>d.length?(p=l.parsePathString(s[h]),d=l.parsePathString(a[h]),d=l.fillPathByDiff(d,p),d=l.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p):e.pathFormatted||(p=l.parsePathString(s[h]),d=l.parsePathString(a[h]),d=l.formatPath(d,p),e.fromAttrs.path=d,e.toAttrs.path=p,e.pathFormatted=!0),r[h]=[];for(var g=0;g<p.length;g++){for(var y=p[g],v=d[g],m=[],_=0;_<y.length;_++)(0,i.isNumber)(y[_])&&v&&(0,i.isNumber)(v[_])?(f=(0,o.interpolate)(v[_],y[_]),m.push(f(n))):m.push(y[_]);r[h].push(m)}}else if("matrix"===h){var x=(0,o.interpolateArray)(a[h]||c,s[h]||c)(n);r[h]=x}else(0,u.isColorProp)(h)&&(0,u.isGradientColor)(s[h])?r[h]=s[h]:(0,i.isFunction)(s[h])||(f=(0,o.interpolate)(a[h],s[h]),r[h]=f(n));t.attr(r)}}(t,e,r);return!1}var h=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=a.timer((function(i){if(r.current=i,r.animators.length>0){for(var a=r.animators.length-1;a>=0;a--)if((t=r.animators[a]).destroyed)r.removeAnimator(a);else{if(!t.isAnimatePaused())for(var o=(e=t.get("animations")).length-1;o>=0;o--)n=e[o],f(t,n,i)&&(e.splice(o,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(a)}r.canvas.get("autoDraw")||r.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}();e.default=h},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.interval=e.timeout=e.timerFlush=e.timer=e.now=void 0;var i=n(93);Object.defineProperty(e,"now",{enumerable:!0,get:function(){return i.now}}),Object.defineProperty(e,"timer",{enumerable:!0,get:function(){return i.timer}}),Object.defineProperty(e,"timerFlush",{enumerable:!0,get:function(){return i.timerFlush}});var a=n(330);Object.defineProperty(e,"timeout",{enumerable:!0,get:function(){return r(a).default}});var o=n(331);Object.defineProperty(e,"interval",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);e.default=function(t,e,n){var i=new r.Timer;return e=null==e?0:+e,i.restart((function(n){i.stop(),t(n+e)}),e,n),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(93);e.default=function(t,e,n){var i=new r.Timer,a=e;return null==e?(i.restart(t,e,n),i):(e=+e,n=null==n?(0,r.now)():+n,i.restart((function r(o){o+=a,i.restart(r,a+=e,n),t(o)}),e,n),i)}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.quantize=e.piecewise=e.interpolateCubehelixLong=e.interpolateCubehelix=e.interpolateHclLong=e.interpolateHcl=e.interpolateLab=e.interpolateHslLong=e.interpolateHsl=e.interpolateRgbBasisClosed=e.interpolateRgbBasis=e.interpolateRgb=e.interpolateZoom=e.interpolateTransformSvg=e.interpolateTransformCss=e.interpolateString=e.interpolateRound=e.interpolateObject=e.interpolateNumberArray=e.interpolateNumber=e.interpolateHue=e.interpolateDiscrete=e.interpolateDate=e.interpolateBasisClosed=e.interpolateBasis=e.interpolateArray=e.interpolate=void 0;var i=n(94);Object.defineProperty(e,"interpolate",{enumerable:!0,get:function(){return r(i).default}});var a=n(170);Object.defineProperty(e,"interpolateArray",{enumerable:!0,get:function(){return r(a).default}});var o=n(97);Object.defineProperty(e,"interpolateBasis",{enumerable:!0,get:function(){return r(o).default}});var s=n(168);Object.defineProperty(e,"interpolateBasisClosed",{enumerable:!0,get:function(){return r(s).default}});var l=n(171);Object.defineProperty(e,"interpolateDate",{enumerable:!0,get:function(){return r(l).default}});var u=n(335);Object.defineProperty(e,"interpolateDiscrete",{enumerable:!0,get:function(){return r(u).default}});var c=n(336);Object.defineProperty(e,"interpolateHue",{enumerable:!0,get:function(){return r(c).default}});var f=n(68);Object.defineProperty(e,"interpolateNumber",{enumerable:!0,get:function(){return r(f).default}});var h=n(98);Object.defineProperty(e,"interpolateNumberArray",{enumerable:!0,get:function(){return r(h).default}});var p=n(172);Object.defineProperty(e,"interpolateObject",{enumerable:!0,get:function(){return r(p).default}});var d=n(337);Object.defineProperty(e,"interpolateRound",{enumerable:!0,get:function(){return r(d).default}});var g=n(173);Object.defineProperty(e,"interpolateString",{enumerable:!0,get:function(){return r(g).default}});var y=n(338);Object.defineProperty(e,"interpolateTransformCss",{enumerable:!0,get:function(){return y.interpolateTransformCss}}),Object.defineProperty(e,"interpolateTransformSvg",{enumerable:!0,get:function(){return y.interpolateTransformSvg}});var v=n(341);Object.defineProperty(e,"interpolateZoom",{enumerable:!0,get:function(){return r(v).default}});var m=n(167);Object.defineProperty(e,"interpolateRgb",{enumerable:!0,get:function(){return r(m).default}}),Object.defineProperty(e,"interpolateRgbBasis",{enumerable:!0,get:function(){return m.rgbBasis}}),Object.defineProperty(e,"interpolateRgbBasisClosed",{enumerable:!0,get:function(){return m.rgbBasisClosed}});var _=n(342);Object.defineProperty(e,"interpolateHsl",{enumerable:!0,get:function(){return r(_).default}}),Object.defineProperty(e,"interpolateHslLong",{enumerable:!0,get:function(){return _.hslLong}});var x=n(343);Object.defineProperty(e,"interpolateLab",{enumerable:!0,get:function(){return r(x).default}});var b=n(344);Object.defineProperty(e,"interpolateHcl",{enumerable:!0,get:function(){return r(b).default}}),Object.defineProperty(e,"interpolateHclLong",{enumerable:!0,get:function(){return b.hclLong}});var M=n(345);Object.defineProperty(e,"interpolateCubehelix",{enumerable:!0,get:function(){return r(M).default}}),Object.defineProperty(e,"interpolateCubehelixLong",{enumerable:!0,get:function(){return M.cubehelixLong}});var C=n(346);Object.defineProperty(e,"piecewise",{enumerable:!0,get:function(){return r(C).default}});var P=n(347);Object.defineProperty(e,"quantize",{enumerable:!0,get:function(){return r(P).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Hcl=e.hcl=e.lch=e.Lab=e.gray=void 0;var r=n(0).__importStar(n(96)),i=n(95),a=n(166),o=6/29,s=3*o*o;function l(t){if(t instanceof c)return new c(t.l,t.a,t.b,t.opacity);if(t instanceof v)return m(t);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e,n,r=d(t.r),a=d(t.g),o=d(t.b),s=f((.2225045*r+.7168786*a+.0606169*o)/1);return r===a&&a===o?e=n=s:(e=f((.4360747*r+.3850649*a+.1430804*o)/.96422),n=f((.0139322*r+.0971045*a+.7141733*o)/.82521)),new c(116*s-16,500*(e-s),200*(s-n),t.opacity)}function u(t,e,n,r){return 1===arguments.length?l(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.l=+t,this.a=+e,this.b=+n,this.opacity=+r}function f(t){return t>.008856451679035631?Math.pow(t,1/3):t/s+4/29}function h(t){return t>o?t*t*t:s*(t-4/29)}function p(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function d(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function g(t){if(t instanceof v)return new v(t.h,t.c,t.l,t.opacity);if(t instanceof c||(t=l(t)),0===t.a&&0===t.b)return new v(NaN,0<t.l&&t.l<100?0:NaN,t.l,t.opacity);var e=Math.atan2(t.b,t.a)*a.rad2deg;return new v(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function y(t,e,n,r){return 1===arguments.length?g(t):new v(t,e,n,null==r?1:r)}function v(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}function m(t){if(isNaN(t.h))return new c(t.l,0,0,t.opacity);var e=t.h*a.deg2rad;return new c(t.l,Math.cos(e)*t.c,Math.sin(e)*t.c,t.opacity)}e.gray=function(t,e){return new c(t,0,0,null==e?1:e)},e.default=u,e.Lab=c,(0,r.default)(c,u,(0,r.extend)(i.Color,{brighter:function(t){return new c(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new c(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return e=.96422*h(e),t=1*h(t),n=.82521*h(n),new i.Rgb(p(3.1338561*e-1.6168667*t-.4906146*n),p(-.9787684*e+1.9161415*t+.033454*n),p(.0719453*e-.2289914*t+1.4052427*n),this.opacity)}})),e.lch=function(t,e,n,r){return 1===arguments.length?g(t):new v(n,e,t,null==r?1:r)},e.hcl=y,e.Hcl=v,(0,r.default)(v,y,(0,r.extend)(i.Color,{brighter:function(t){return new v(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new v(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return m(this).rgb()}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Cubehelix=void 0;var r=n(0).__importStar(n(96)),i=n(95),a=n(166),o=-.14861,s=1.78277,l=-.29227,u=-.90649,c=1.97294,f=c*u,h=c*s,p=s*l-u*o;function d(t){if(t instanceof y)return new y(t.h,t.s,t.l,t.opacity);t instanceof i.Rgb||(t=(0,i.rgbConvert)(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(p*r+f*e-h*n)/(p+f-h),s=r-o,d=(c*(n-o)-l*s)/u,g=Math.sqrt(d*d+s*s)/(c*o*(1-o)),v=g?Math.atan2(d,s)*a.rad2deg-120:NaN;return new y(v<0?v+360:v,g,o,t.opacity)}function g(t,e,n,r){return 1===arguments.length?d(t):new y(t,e,n,null==r?1:r)}function y(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.default=g,e.Cubehelix=y,(0,r.default)(y,g,(0,r.extend)(i.Color,{brighter:function(t){return t=null==t?i.brighter:Math.pow(i.brighter,t),new y(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?i.darker:Math.pow(i.darker,t),new y(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*a.deg2rad,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),f=Math.sin(t);return new i.Rgb(255*(e+n*(o*r+s*f)),255*(e+n*(l*r+u*f)),255*(e+n*(c*r)),this.opacity)}}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(49);e.default=function(t,e){var n=(0,r.hue)(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.interpolateTransformSvg=e.interpolateTransformCss=void 0;var r=n(0).__importDefault(n(68)),i=n(339);function a(t,e,n,i){function a(t){return t.length?t.pop()+" ":""}return function(o,s){var l=[],u=[];return o=t(o),s=t(s),function(t,i,a,o,s,l){if(t!==a||i!==o){var u=s.push("translate(",null,e,null,n);l.push({i:u-4,x:(0,r.default)(t,a)},{i:u-2,x:(0,r.default)(i,o)})}else(a||o)&&s.push("translate("+a+e+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,l,u),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(a(n)+"rotate(",null,i)-2,x:(0,r.default)(t,e)})):e&&n.push(a(n)+"rotate("+e+i)}(o.rotate,s.rotate,l,u),function(t,e,n,o){t!==e?o.push({i:n.push(a(n)+"skewX(",null,i)-2,x:(0,r.default)(t,e)}):e&&n.push(a(n)+"skewX("+e+i)}(o.skewX,s.skewX,l,u),function(t,e,n,i,o,s){if(t!==n||e!==i){var l=o.push(a(o)+"scale(",null,",",null,")");s.push({i:l-4,x:(0,r.default)(t,n)},{i:l-2,x:(0,r.default)(e,i)})}else 1===n&&1===i||o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,l,u),o=s=null,function(t){for(var e,n=-1,r=u.length;++n<r;)l[(e=u[n]).i]=e.x(t);return l.join("")}}}e.interpolateTransformCss=a(i.parseCss,"px, ","px)","deg)"),e.interpolateTransformSvg=a(i.parseSvg,", ",")",")")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseSvg=e.parseCss=void 0;var r,i,a,o,s=n(0).__importStar(n(340));e.parseCss=function(t){return"none"===t?s.identity:(r||(r=document.createElement("DIV"),i=document.documentElement,a=document.defaultView),r.style.transform=t,t=a.getComputedStyle(i.appendChild(r),null).getPropertyValue("transform"),i.removeChild(r),t=t.slice(7,-1).split(","),(0,s.default)(+t[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},e.parseSvg=function(t){return null==t?s.identity:(o||(o=document.createElementNS("http://www.w3.org/2000/svg","g")),o.setAttribute("transform",t),(t=o.transform.baseVal.consolidate())?(t=t.matrix,(0,s.default)(t.a,t.b,t.c,t.d,t.e,t.f)):s.identity)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.identity=void 0;var r=180/Math.PI;e.identity={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},e.default=function(t,e,n,i,a,o){var s,l,u;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(u=t*n+e*i)&&(n-=t*u,i-=e*u),(l=Math.sqrt(n*n+i*i))&&(n/=l,i/=l,u/=l),t*i<e*n&&(t=-t,e=-e,u=-u,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(e,t)*r,skewX:Math.atan(u)*r,scaleX:s,scaleY:l}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Math.SQRT2;function i(t){return((t=Math.exp(t))+1/t)/2}e.default=function(t,e){var n,a,o=t[0],s=t[1],l=t[2],u=e[0],c=e[1],f=e[2],h=u-o,p=c-s,d=h*h+p*p;if(d<1e-12)a=Math.log(f/l)/r,n=function(t){return[o+t*h,s+t*p,l*Math.exp(r*t*a)]};else{var g=Math.sqrt(d),y=(f*f-l*l+4*d)/(2*l*2*g),v=(f*f-l*l-4*d)/(2*f*2*g),m=Math.log(Math.sqrt(y*y+1)-y),_=Math.log(Math.sqrt(v*v+1)-v);a=(_-m)/r,n=function(t){var e,n=t*a,u=i(m),c=l/(2*g)*(u*(e=r*n+m,((e=Math.exp(2*e))-1)/(e+1))-function(t){return((t=Math.exp(t))-1/t)/2}(m));return[o+c*h,s+c*p,l*u/i(r*n+m)]}}return n.duration=1e3*a,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hslLong=void 0;var r=n(0),i=n(48),a=r.__importStar(n(49));function o(t){return function(e,n){var r=t((e=(0,i.hsl)(e)).h,(n=(0,i.hsl)(n)).h),o=(0,a.default)(e.s,n.s),s=(0,a.default)(e.l,n.l),l=(0,a.default)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.s=o(t),e.l=s(t),e.opacity=l(t),e+""}}}e.default=o(a.hue),e.hslLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(48),a=r.__importDefault(n(49));e.default=function(t,e){var n=(0,a.default)((t=(0,i.lab)(t)).l,(e=(0,i.lab)(e)).l),r=(0,a.default)(t.a,e.a),o=(0,a.default)(t.b,e.b),s=(0,a.default)(t.opacity,e.opacity);return function(e){return t.l=n(e),t.a=r(e),t.b=o(e),t.opacity=s(e),t+""}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hclLong=void 0;var r=n(0),i=n(48),a=r.__importStar(n(49));function o(t){return function(e,n){var r=t((e=(0,i.hcl)(e)).h,(n=(0,i.hcl)(n)).h),o=(0,a.default)(e.c,n.c),s=(0,a.default)(e.l,n.l),l=(0,a.default)(e.opacity,n.opacity);return function(t){return e.h=r(t),e.c=o(t),e.l=s(t),e.opacity=l(t),e+""}}}e.default=o(a.hue),e.hclLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cubehelixLong=void 0;var r=n(0),i=n(48),a=r.__importStar(n(49));function o(t){return function e(n){function r(e,r){var o=t((e=(0,i.cubehelix)(e)).h,(r=(0,i.cubehelix)(r)).h),s=(0,a.default)(e.s,r.s),l=(0,a.default)(e.l,r.l),u=(0,a.default)(e.opacity,r.opacity);return function(t){return e.h=o(t),e.s=s(t),e.l=l(Math.pow(t,n)),e.opacity=u(t),e+""}}return n=+n,r.gamma=e,r}(1)}e.default=o(a.hue),e.cubehelixLong=o(a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);n<r;)a[n]=t(i,i=e[++n]);return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){for(var n=new Array(e),r=0;r<e;++r)n[r]=t(r/(e-1));return n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.easeElasticInOut=e.easeElasticOut=e.easeElasticIn=e.easeElastic=e.easeBackInOut=e.easeBackOut=e.easeBackIn=e.easeBack=e.easeBounceInOut=e.easeBounceOut=e.easeBounceIn=e.easeBounce=e.easeCircleInOut=e.easeCircleOut=e.easeCircleIn=e.easeCircle=e.easeExpInOut=e.easeExpOut=e.easeExpIn=e.easeExp=e.easeSinInOut=e.easeSinOut=e.easeSinIn=e.easeSin=e.easePolyInOut=e.easePolyOut=e.easePolyIn=e.easePoly=e.easeCubicInOut=e.easeCubicOut=e.easeCubicIn=e.easeCubic=e.easeQuadInOut=e.easeQuadOut=e.easeQuadIn=e.easeQuad=e.easeLinear=void 0;var r=n(349);Object.defineProperty(e,"easeLinear",{enumerable:!0,get:function(){return r.linear}});var i=n(350);Object.defineProperty(e,"easeQuad",{enumerable:!0,get:function(){return i.quadInOut}}),Object.defineProperty(e,"easeQuadIn",{enumerable:!0,get:function(){return i.quadIn}}),Object.defineProperty(e,"easeQuadOut",{enumerable:!0,get:function(){return i.quadOut}}),Object.defineProperty(e,"easeQuadInOut",{enumerable:!0,get:function(){return i.quadInOut}});var a=n(351);Object.defineProperty(e,"easeCubic",{enumerable:!0,get:function(){return a.cubicInOut}}),Object.defineProperty(e,"easeCubicIn",{enumerable:!0,get:function(){return a.cubicIn}}),Object.defineProperty(e,"easeCubicOut",{enumerable:!0,get:function(){return a.cubicOut}}),Object.defineProperty(e,"easeCubicInOut",{enumerable:!0,get:function(){return a.cubicInOut}});var o=n(352);Object.defineProperty(e,"easePoly",{enumerable:!0,get:function(){return o.polyInOut}}),Object.defineProperty(e,"easePolyIn",{enumerable:!0,get:function(){return o.polyIn}}),Object.defineProperty(e,"easePolyOut",{enumerable:!0,get:function(){return o.polyOut}}),Object.defineProperty(e,"easePolyInOut",{enumerable:!0,get:function(){return o.polyInOut}});var s=n(353);Object.defineProperty(e,"easeSin",{enumerable:!0,get:function(){return s.sinInOut}}),Object.defineProperty(e,"easeSinIn",{enumerable:!0,get:function(){return s.sinIn}}),Object.defineProperty(e,"easeSinOut",{enumerable:!0,get:function(){return s.sinOut}}),Object.defineProperty(e,"easeSinInOut",{enumerable:!0,get:function(){return s.sinInOut}});var l=n(354);Object.defineProperty(e,"easeExp",{enumerable:!0,get:function(){return l.expInOut}}),Object.defineProperty(e,"easeExpIn",{enumerable:!0,get:function(){return l.expIn}}),Object.defineProperty(e,"easeExpOut",{enumerable:!0,get:function(){return l.expOut}}),Object.defineProperty(e,"easeExpInOut",{enumerable:!0,get:function(){return l.expInOut}});var u=n(355);Object.defineProperty(e,"easeCircle",{enumerable:!0,get:function(){return u.circleInOut}}),Object.defineProperty(e,"easeCircleIn",{enumerable:!0,get:function(){return u.circleIn}}),Object.defineProperty(e,"easeCircleOut",{enumerable:!0,get:function(){return u.circleOut}}),Object.defineProperty(e,"easeCircleInOut",{enumerable:!0,get:function(){return u.circleInOut}});var c=n(356);Object.defineProperty(e,"easeBounce",{enumerable:!0,get:function(){return c.bounceOut}}),Object.defineProperty(e,"easeBounceIn",{enumerable:!0,get:function(){return c.bounceIn}}),Object.defineProperty(e,"easeBounceOut",{enumerable:!0,get:function(){return c.bounceOut}}),Object.defineProperty(e,"easeBounceInOut",{enumerable:!0,get:function(){return c.bounceInOut}});var f=n(357);Object.defineProperty(e,"easeBack",{enumerable:!0,get:function(){return f.backInOut}}),Object.defineProperty(e,"easeBackIn",{enumerable:!0,get:function(){return f.backIn}}),Object.defineProperty(e,"easeBackOut",{enumerable:!0,get:function(){return f.backOut}}),Object.defineProperty(e,"easeBackInOut",{enumerable:!0,get:function(){return f.backInOut}});var h=n(358);Object.defineProperty(e,"easeElastic",{enumerable:!0,get:function(){return h.elasticOut}}),Object.defineProperty(e,"easeElasticIn",{enumerable:!0,get:function(){return h.elasticIn}}),Object.defineProperty(e,"easeElasticOut",{enumerable:!0,get:function(){return h.elasticOut}}),Object.defineProperty(e,"easeElasticInOut",{enumerable:!0,get:function(){return h.elasticInOut}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linear=void 0,e.linear=function(t){return+t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quadInOut=e.quadOut=e.quadIn=void 0,e.quadIn=function(t){return t*t},e.quadOut=function(t){return t*(2-t)},e.quadInOut=function(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.cubicInOut=e.cubicOut=e.cubicIn=void 0,e.cubicIn=function(t){return t*t*t},e.cubicOut=function(t){return--t*t*t+1},e.cubicInOut=function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.polyInOut=e.polyOut=e.polyIn=void 0;e.polyIn=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),e.polyOut=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),e.polyInOut=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sinInOut=e.sinOut=e.sinIn=void 0;var r=Math.PI,i=r/2;e.sinIn=function(t){return 1==+t?1:1-Math.cos(t*i)},e.sinOut=function(t){return Math.sin(t*i)},e.sinInOut=function(t){return(1-Math.cos(r*t))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.expInOut=e.expOut=e.expIn=void 0;var r=n(175);e.expIn=function(t){return(0,r.tpmt)(1-+t)},e.expOut=function(t){return 1-(0,r.tpmt)(t)},e.expInOut=function(t){return((t*=2)<=1?(0,r.tpmt)(1-t):2-(0,r.tpmt)(t-1))/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.circleInOut=e.circleOut=e.circleIn=void 0,e.circleIn=function(t){return 1-Math.sqrt(1-t*t)},e.circleOut=function(t){return Math.sqrt(1- --t*t)},e.circleInOut=function(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.bounceInOut=e.bounceOut=e.bounceIn=void 0;var r=7.5625;function i(t){return(t=+t)<4/11?r*t*t:t<8/11?r*(t-=6/11)*t+3/4:t<10/11?r*(t-=9/11)*t+15/16:r*(t-=21/22)*t+63/64}e.bounceIn=function(t){return 1-i(1-t)},e.bounceOut=i,e.bounceInOut=function(t){return((t*=2)<=1?1-i(1-t):i(t-1)+1)/2}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.backInOut=e.backOut=e.backIn=void 0;e.backIn=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),e.backOut=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),e.backInOut=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.elasticInOut=e.elasticOut=e.elasticIn=void 0;var r=n(175),i=2*Math.PI;e.elasticIn=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return e*(0,r.tpmt)(- --t)*Math.sin((a-t)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),e.elasticOut=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return 1-e*(0,r.tpmt)(t=+t)*Math.sin((t+a)/n)}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3),e.elasticInOut=function t(e,n){var a=Math.asin(1/(e=Math.max(1,e)))*(n/=i);function o(t){return((t=2*t-1)<0?e*(0,r.tpmt)(-t)*Math.sin((a-t)/n):2-e*(0,r.tpmt)(t)*Math.sin((a+t)/n))/2}return o.amplitude=function(e){return t(e,n*i)},o.period=function(n){return t(e,n)},o}(1,.3)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isGradientColor=e.isColorProp=void 0;e.isColorProp=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)};e.isGradientColor=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(156)),i=n(39),a=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function o(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function s(t,e,n){if(n.bubbles){var r=void 0,a=!1;if("mouseenter"===e?(r=n.fromShape,a=!0):"mouseleave"===e&&(a=!0,r=n.toShape),t.isCanvas()&&a)return;if(r&&(0,i.isParent)(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var l=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(a,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");(0,i.each)(a,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,a,o){var s=new r.default(t,e);return s.fromShape=a,s.toShape=o,s.x=n.x,s.y=n.y,s.clientX=n.clientX,s.clientY=n.clientY,s.propagationPath.push(i),s},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],a=!1;if(i)i.call(this,n,r,e);else{var o=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(a||(this.currentShape=r),r&&!r.get("destroyed")){var s=this.canvas;s.get("el").style.cursor=r.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,l=n.timeStamp-this.mousedownTimeStamp,u=o.clientX-t.clientX,c=o.clientY-t.clientY;l>120||u*u+c*c>40?s&&s.get("draggable")?((a=this.mousedownShape).set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),this.mousedownShape=null,this.mousedownPoint=null):!s&&r.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,i,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,r,i,a){var l=this._getEventObj(t,e,n,r,i,a);if(r){l.shape=r,o(r,t,l);for(var u=r.getParent();u;)u.emitDelegation(t,l),l.propagationStopped||s(u,t,l),l.propagationPath.push(u),u=u.getParent()}else{o(this.canvas,t,l)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),r=0;r<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(r.__importDefault(n(159)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(160)),o=n(92),s=function(t){function e(e){return t.call(this,e)||this}return(0,i.__extends)(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,a=t.maxY;if(e){var s=(0,o.multiplyVec2)(e,[t.minX,t.minY]),l=(0,o.multiplyVec2)(e,[t.maxX,t.minY]),u=(0,o.multiplyVec2)(e,[t.minX,t.maxY]),c=(0,o.multiplyVec2)(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],u[0],c[0]),i=Math.max(s[0],l[0],u[0],c[0]),r=Math.min(s[1],l[1],u[1],c[1]),a=Math.max(s[1],l[1],u[1],c[1])}var f=this.attrs;if(f.shadowColor){var h=f.shadowBlur,p=void 0===h?0:h,d=f.shadowOffsetX,g=void 0===d?0:d,y=f.shadowOffsetY,v=void 0===y?0:y,m=n-p+g,_=i+p+g,x=r-p+v,b=a+p+v;n=Math.min(n,m),i=Math.max(i,_),r=Math.min(r,x),a=Math.max(a,b)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:a,width:i-n,height:a-r}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),r=this.get("endArrowShape"),i=[t,e,1],a=(i=this.invertFromMatrix(i))[0],o=i[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(r&&r.isHit(a,o))return!0}return!1},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerBBox=e.getBBoxMethod=void 0;var r=n(0),i=n(364);Object.defineProperty(e,"registerBBox",{enumerable:!0,get:function(){return i.register}}),Object.defineProperty(e,"getBBoxMethod",{enumerable:!0,get:function(){return i.getMethod}});var a=r.__importDefault(n(365)),o=r.__importDefault(n(366)),s=r.__importDefault(n(367)),l=r.__importDefault(n(373)),u=r.__importDefault(n(374)),c=r.__importDefault(n(375)),f=r.__importDefault(n(390)),h=r.__importDefault(n(391));(0,i.register)("rect",a.default),(0,i.register)("image",a.default),(0,i.register)("circle",o.default),(0,i.register)("marker",o.default),(0,i.register)("polyline",s.default),(0,i.register)("polygon",l.default),(0,i.register)("text",u.default),(0,i.register)("path",c.default),(0,i.register)("line",f.default),(0,i.register)("ellipse",h.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMethod=e.register=void 0;var r=new Map;e.register=function(t,e){r.set(t,e)},e.getMethod=function(t){return r.get(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.r;return{x:n-i,y:r-i,width:2*i,height:2*i}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(99);e.default=function(t){for(var e=t.attr().points,n=[],a=[],o=0;o<e.length;o++){var s=e[o];n.push(s[0]),a.push(s[1])}var l=r.Util.getBBoxByArray(n,a),u=l.x,c=l.y,f={minX:u,minY:c,maxX:u+l.width,maxY:c+l.height};return{x:(f=(0,i.mergeArrowBBox)(t,f)).minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0).__importDefault(n(69)),i=n(32),a=n(176);function o(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function s(t,e,n){var r=t+n-2*e;if((0,i.isNumberEqual)(r,0))return[.5];var a=(t-e)/r;return a<=1&&a>=0?[a]:[]}function l(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function u(t,e,n,i,a,s,l){var u=o(t,n,a,l),c=o(e,i,s,l),f=r.default.pointAt(t,e,n,i,l),h=r.default.pointAt(n,i,a,s,l);return[[t,e,f.x,f.y,u,c],[u,c,h.x,h.y,a,s]]}e.default={box:function(t,e,n,r,a,l){var u=s(t,n,a)[0],c=s(e,r,l)[0],f=[t,a],h=[e,l];return void 0!==u&&f.push(o(t,n,a,u)),void 0!==c&&h.push(o(e,r,l,c)),(0,i.getBBoxByArray)(f,h)},length:function(t,e,n,r,a,o){return function t(e,n,r,a,o,s,l){if(0===l)return((0,i.distance)(e,n,r,a)+(0,i.distance)(r,a,o,s)+(0,i.distance)(e,n,o,s))/2;var c=u(e,n,r,a,o,s,.5),f=c[0],h=c[1];return f.push(l-1),h.push(l-1),t.apply(null,f)+t.apply(null,h)}(t,e,n,r,a,o,3)},nearestPoint:function(t,e,n,r,i,s,l,u){return(0,a.nearestPoint)([t,n,i],[e,r,s],l,u,o)},pointDistance:function(t,e,n,r,a,o,s,l){var u=this.nearestPoint(t,e,n,r,a,o,s,l);return(0,i.distance)(u.x,u.y,s,l)},interpolationAt:o,pointAt:function(t,e,n,r,i,a,s){return{x:o(t,n,i,s),y:o(e,r,a,s)}},divide:function(t,e,n,r,i,a,o){return u(t,e,n,r,i,a,o)},tangentAngle:function(t,e,n,r,a,o,s){var u=l(t,n,a,s),c=l(e,r,o,s),f=Math.atan2(c,u);return(0,i.piMod)(f)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importDefault(n(69)),o=n(176);function s(t,e,n,r,i){var a=1-i;return a*a*a*t+3*e*i*a*a+3*n*i*i*a+r*i*i*i}function l(t,e,n,r,i){var a=1-i;return 3*(a*a*(e-t)+2*a*i*(n-e)+i*i*(r-n))}function u(t,e,n,r){var a,o,s,l=-3*t+9*e-9*n+3*r,u=6*t-12*e+6*n,c=3*e-3*t,f=[];if((0,i.isNumberEqual)(l,0))(0,i.isNumberEqual)(u,0)||(a=-c/u)>=0&&a<=1&&f.push(a);else{var h=u*u-4*l*c;(0,i.isNumberEqual)(h,0)?f.push(-u/(2*l)):h>0&&(o=(-u-(s=Math.sqrt(h)))/(2*l),(a=(-u+s)/(2*l))>=0&&a<=1&&f.push(a),o>=0&&o<=1&&f.push(o))}return f}function c(t,e,n,r,i,o,l,u,c){var f=s(t,n,i,l,c),h=s(e,r,o,u,c),p=a.default.pointAt(t,e,n,r,c),d=a.default.pointAt(n,r,i,o,c),g=a.default.pointAt(i,o,l,u,c),y=a.default.pointAt(p.x,p.y,d.x,d.y,c),v=a.default.pointAt(d.x,d.y,g.x,g.y,c);return[[t,e,p.x,p.y,y.x,y.y,f,h],[f,h,v.x,v.y,g.x,g.y,l,u]]}e.default={extrema:u,box:function(t,e,n,r,a,o,l,c){for(var f=[t,l],h=[e,c],p=u(t,n,a,l),d=u(e,r,o,c),g=0;g<p.length;g++)f.push(s(t,n,a,l,p[g]));for(g=0;g<d.length;g++)h.push(s(e,r,o,c,d[g]));return(0,i.getBBoxByArray)(f,h)},length:function(t,e,n,r,i,a,s,l){return function t(e,n,r,i,a,s,l,u,f){if(0===f)return(0,o.snapLength)([e,r,a,l],[n,i,s,u]);var h=c(e,n,r,i,a,s,l,u,.5),p=h[0],d=h[1];return p.push(f-1),d.push(f-1),t.apply(null,p)+t.apply(null,d)}(t,e,n,r,i,a,s,l,3)},nearestPoint:function(t,e,n,r,i,a,l,u,c,f,h){return(0,o.nearestPoint)([t,n,i,l],[e,r,a,u],c,f,s,h)},pointDistance:function(t,e,n,r,a,o,s,l,u,c,f){var h=this.nearestPoint(t,e,n,r,a,o,s,l,u,c,f);return(0,i.distance)(h.x,h.y,u,c)},interpolationAt:s,pointAt:function(t,e,n,r,i,a,o,l,u){return{x:s(t,n,i,o,u),y:s(e,r,a,l,u)}},divide:function(t,e,n,r,i,a,o,s,l){return c(t,e,n,r,i,a,o,s,l)},tangentAngle:function(t,e,n,r,a,o,s,u,c){var f=l(t,n,a,s,c),h=l(e,r,o,u,c);return(0,i.piMod)(Math.atan2(h,f))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(32),a=r.__importDefault(n(371));function o(t,e,n,r,i,a){return n*Math.cos(i)*Math.cos(a)-r*Math.sin(i)*Math.sin(a)+t}function s(t,e,n,r,i,a){return n*Math.sin(i)*Math.cos(a)+r*Math.cos(i)*Math.sin(a)+e}function l(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function u(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}e.default={box:function(t,e,n,r,i,a,l){for(var u=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),c=1/0,f=-1/0,h=[a,l],p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var d=u+p;a<l?a<d&&d<l&&h.push(d):l<d&&d<a&&h.push(d)}for(p=0;p<h.length;p++){var g=o(t,0,n,r,i,h[p]);g<c&&(c=g),g>f&&(f=g)}var y=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),v=1/0,m=-1/0,_=[a,l];for(p=2*-Math.PI;p<=2*Math.PI;p+=Math.PI){var x=y+p;a<l?a<x&&x<l&&_.push(x):l<x&&x<a&&_.push(x)}for(p=0;p<_.length;p++){var b=s(0,e,n,r,i,_[p]);b<v&&(v=b),b>m&&(m=b)}return{x:c,y:v,width:f-c,height:m-v}},length:function(t,e,n,r,i,a,o){},nearestPoint:function(t,e,n,r,i,o,s,c,f){var h=u(c-t,f-e,-i),p=h[0],d=h[1],g=a.default.nearestPoint(0,0,n,r,p,d),y=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,g.x,g.y);y<o?g=l(n,r,o):y>s&&(g=l(n,r,s));var v=u(g.x,g.y,i);return{x:v[0]+t,y:v[1]+e}},pointDistance:function(t,e,n,r,a,o,s,l,u){var c=this.nearestPoint(t,e,n,r,l,u);return(0,i.distance)(c.x,c.y,l,u)},pointAt:function(t,e,n,r,i,a,l,u){var c=(l-a)*u+a;return{x:o(t,0,n,r,i,c),y:s(0,e,n,r,i,c)}},tangentAngle:function(t,e,n,r,a,o,s,l){var u=(s-o)*l+o,c=function(t,e,n,r,i,a,o,s){return-1*n*Math.cos(i)*Math.sin(s)-r*Math.sin(i)*Math.cos(s)}(0,0,n,r,a,0,0,u),f=function(t,e,n,r,i,a,o,s){return-1*n*Math.sin(i)*Math.sin(s)+r*Math.cos(i)*Math.cos(s)}(0,0,n,r,a,0,0,u);return(0,i.piMod)(Math.atan2(f,c))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(32);function i(t,e){var n=Math.abs(t);return e>0?n:-1*n}e.default={box:function(t,e,n,r){return{x:t-n,y:e-r,width:2*n,height:2*r}},length:function(t,e,n,r){return Math.PI*(3*(n+r)-Math.sqrt((3*n+r)*(n+3*r)))},nearestPoint:function(t,e,n,r,a,o){var s=n,l=r;if(0===s||0===l)return{x:t,y:e};for(var u,c,f=a-t,h=o-e,p=Math.abs(f),d=Math.abs(h),g=s*s,y=l*l,v=Math.PI/4,m=0;m<4;m++){u=s*Math.cos(v),c=l*Math.sin(v);var _=(g-y)*Math.pow(Math.cos(v),3)/s,x=(y-g)*Math.pow(Math.sin(v),3)/l,b=u-_,M=c-x,C=p-_,P=d-x,S=Math.hypot(M,b),O=Math.hypot(P,C);v+=S*Math.asin((b*P-M*C)/(S*O))/Math.sqrt(g+y-u*u-c*c),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+i(u,f),y:e+i(c,h)}},pointDistance:function(t,e,n,i,a,o){var s=this.nearestPoint(t,e,n,i,a,o);return(0,r.distance)(s.x,s.y,a,o)},pointAt:function(t,e,n,r,i){var a=2*Math.PI*i;return{x:t+n*Math.cos(a),y:e+r*Math.sin(a)}},tangentAngle:function(t,e,n,i,a){var o=2*Math.PI*a,s=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return(0,r.piMod)(s)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(177),a=r.__importDefault(n(178));function o(t){var e=t.slice(0);return t.length&&e.push(t[0]),e}e.default={box:function(t){return a.default.box(t)},length:function(t){return(0,i.lengthOfSegment)(o(t))},pointAt:function(t,e){return(0,i.pointAtSegments)(o(t),e)},pointDistance:function(t,e,n){return(0,i.distanceAtSegment)(o(t),e,n)},tangentAngle:function(t,e){return(0,i.angleAtSegments)(o(t),e)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20);e.default=function(t){for(var e=t.attr().points,n=[],i=[],a=0;a<e.length;a++){var o=e[a];n.push(o[0]),i.push(o[1])}return r.Util.getBBoxByArray(n,i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(179);e.default=function(t){var e=t.attr(),n=e.x,i=e.y,a=e.text,o=e.fontSize,s=e.lineHeight,l=e.font;l||(l=(0,r.assembleFont)(e));var u,c=(0,r.getTextWidth)(a,l);if(c){var f=e.textAlign,h=e.textBaseline,p=(0,r.getTextHeight)(a,o,s),d={x:n,y:i-p};f&&("end"===f||"right"===f?d.x-=c:"center"===f&&(d.x-=c/2)),h&&("top"===h?d.y+=p:"middle"===h&&(d.y+=p/2)),u={x:d.x,y:d.y,width:c,height:p}}else u={x:n,y:i,width:0,height:0};return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(20),i=n(50),a=n(1),o=n(99);function s(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,o=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),s=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),l=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),u=Math.acos((o+s-l)/(2*Math.sqrt(o)*Math.sqrt(s)));if(!u||0===Math.sin(u)||(0,a.isNumberEqual)(u,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),f=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return c=c>Math.PI/2?Math.PI-c:c,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(u/2-c)*(e/2*(1/Math.sin(u/2)))-e/2||0,yExtra:Math.cos(f-u/2)*(e/2*(1/Math.sin(u/2)))-e/2||0}}e.default=function(t){var e=t.attr(),n=e.path,l=e.stroke?e.lineWidth:0,u=function(t,e){for(var n=[],i=[],o=[],l=0;l<t.length;l++){var u=(m=t[l]).currentPoint,c=m.params,f=m.prePoint,h=void 0;switch(m.command){case"Q":h=r.Quad.box(f[0],f[1],c[1],c[2],c[3],c[4]);break;case"C":h=r.Cubic.box(f[0],f[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var p=m.arcParams;h=r.Arc.box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(u[0]),i.push(u[1])}h&&(m.box=h,n.push(h.x,h.x+h.width),i.push(h.y,h.y+h.height)),e&&("L"===m.command||"M"===m.command)&&m.prePoint&&m.nextPoint&&o.push(m)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),i=i.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var d=(0,a.min)(n),g=(0,a.min)(i),y=(0,a.max)(n),v=(0,a.max)(i);if(0===o.length)return{x:d,y:g,width:y-d,height:v-g};for(l=0;l<o.length;l++){var m;(u=(m=o[l]).currentPoint)[0]===d?d-=s(m,e).xExtra:u[0]===y&&(y+=s(m,e).xExtra),u[1]===g?g-=s(m,e).yExtra:u[1]===v&&(v+=s(m,e).yExtra)}return{x:d,y:g,width:y-d,height:v-g}}(t.get("segments")||(0,i.path2Segments)(n),l),c=u.x,f=u.y,h={minX:c,minY:f,maxX:c+u.width,maxY:f+u.height};return{x:(h=(0,o.mergeArrowBBox)(t,h)).minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(377);e.default=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var i=!!e,a=[],o=0,s=t.length;o<s;o+=2)a.push([t[o],t[o+1]]);var l,u,c,f=function(t,e,n,i){var a,o,s,l,u,c,f,h=[],p=!!i;if(p){s=i[0],l=i[1];for(var d=0,g=t.length;d<g;d+=1){var y=t[d];s=r.vec2.min([0,0],s,y),l=r.vec2.max([0,0],l,y)}}d=0;for(var v=t.length;d<v;d+=1){y=t[d];if(0!==d||n)if(d!==v-1||n){a=t[[d?d-1:v-1,d-1][n?0:1]],o=t[n?(d+1)%v:d+1];var m=[0,0];m=r.vec2.sub(m,o,a),m=r.vec2.scale(m,m,e);var _=r.vec2.distance(y,a),x=r.vec2.distance(y,o),b=_+x;0!==b&&(_/=b,x/=b);var M=r.vec2.scale([0,0],m,-_),C=r.vec2.scale([0,0],m,x);c=r.vec2.add([0,0],y,M),u=r.vec2.add([0,0],y,C),u=r.vec2.min([0,0],u,r.vec2.max([0,0],o,y)),u=r.vec2.max([0,0],u,r.vec2.min([0,0],o,y)),M=r.vec2.sub([0,0],u,y),M=r.vec2.scale([0,0],M,-_/x),c=r.vec2.add([0,0],y,M),c=r.vec2.min([0,0],c,r.vec2.max([0,0],a,y)),c=r.vec2.max([0,0],c,r.vec2.min([0,0],a,y)),C=r.vec2.sub([0,0],y,c),C=r.vec2.scale([0,0],C,x/_),u=r.vec2.add([0,0],y,C),p&&(c=r.vec2.max([0,0],c,s),c=r.vec2.min([0,0],c,l),u=r.vec2.max([0,0],u,s),u=r.vec2.min([0,0],u,l)),h.push(f),h.push(c),f=u}else c=y,h.push(f),h.push(c);else f=y}return n&&h.push(h.shift()),h}(a,.4,i,n),h=a.length,p=[];for(o=0;o<h-1;o+=1)l=f[2*o],u=f[2*o+1],c=a[o+1],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]]);return i&&(l=f[h],u=f[h+1],c=a[0],p.push(["C",l[0],l[1],u[0],u[1],c[0],c[1]])),p}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ext=e.vec3=e.vec2=e.mat3=void 0;var r=n(0),i=n(67);Object.defineProperty(e,"mat3",{enumerable:!0,get:function(){return i.mat3}}),Object.defineProperty(e,"vec2",{enumerable:!0,get:function(){return i.vec2}}),Object.defineProperty(e,"vec3",{enumerable:!0,get:function(){return i.vec3}});var a=r.__importStar(n(378));e.ext=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.vertical=e.angleTo=e.direction=e.transform=e.leftScale=e.leftRotate=e.leftTranslate=void 0;var r=n(67);function i(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromTranslation(i,n),r.mat3.multiply(t,i,e)}function a(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromRotation(i,n),r.mat3.multiply(t,i,e)}function o(t,e,n){var i=[0,0,0,0,0,0,0,0,0];return r.mat3.fromScaling(i,n),r.mat3.multiply(t,i,e)}function s(t,e){return t[0]*e[1]-e[0]*t[1]}e.leftTranslate=i,e.leftRotate=a,e.leftScale=o,e.transform=function(t,e){for(var n,s,l,u=t?[].concat(t):[1,0,0,0,1,0,0,0,1],c=0,f=e.length;c<f;c++){var h=e[c];switch(h[0]){case"t":i(u,u,[h[1],h[2]]);break;case"s":o(u,u,[h[1],h[2]]);break;case"r":a(u,u,h[1]);break;case"m":n=u,s=u,l=h[1],r.mat3.multiply(n,l,s)}}return u},e.direction=s,e.angleTo=function(t,e,n){var i=r.vec2.angle(t,e),a=s(t,e)>=0;return n?a?2*Math.PI-i:i:a?i:2*Math.PI-i},e.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},function(t,e,n){"use strict";function r(t,e){var n=[],r=[];return t.length&&function t(e,i){if(1===e.length)n.push(e[0]),r.push(e[0]);else{for(var a=[],o=0;o<e.length-1;o++)0===o&&n.push(e[0]),o===e.length-2&&r.push(e[o+1]),a[o]=[(1-i)*e[o][0]+i*e[o+1][0],(1-i)*e[o][1]+i*e[o+1][1]];t(a,i)}}(t,e),{left:n,right:r.reverse()}}function i(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(function(t,e,n){var i=[[t[1],t[2]]];n=n||2;var a=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var o=i,s=1/n,l=0;l<n-1;l++){var u=r(o,s/(1-s*l));a.push(u.left),o=u.right}return a.push(o),a.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var a=[].concat(t);"M"===a[0]&&(a[0]="L");for(var o=0;o<=n-1;o++)i.push(a)}return i}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,a=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var s=0;s<r-n;s++)t.push(t[0]);return t}for(s=0;s<r;s++){var l=Math.floor(a*s);o[l]=(o[l]||0)+1}var u=o.reduce((function(e,r,a){return a===n?e.concat(t[n]):e.concat(i(t[a],t[a+1],r))}),[]);return u.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||u.push("Z"),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);function i(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}e.default=function(t,e){var n=function(t,e){var n,a,o=t.length,s=e.length,l=0;if(0===o||0===s)return null;for(var u=[],c=0;c<=o;c++)u[c]=[],u[c][0]={min:c};for(var f=0;f<=s;f++)u[0][f]={min:f};for(c=1;c<=o;c++){n=t[c-1];for(f=1;f<=s;f++){a=e[f-1],l=(0,r.isEqual)(n,a)?0:1;var h=u[c-1][f].min+1,p=u[c][f-1].min+1,d=u[c-1][f-1].min+l;u[c][f]=i(h,p,d)}}return u}(t,e),a=t.length,o=e.length,s=[],l=1,u=1;if(n[a][o]!==a){for(var c=1;c<=a;c++){var f=n[c][c].min;u=c;for(var h=l;h<=o;h++)n[c][h].min<f&&(f=n[c][h].min,u=h);l=u,n[c][l].type&&s.push({index:c-1,type:n[c][l].type})}for(c=s.length-1;c>=0;c--)l=s[c].index,"add"===s[c].type?t.splice(l,0,[].concat(t[l])):t.splice(l,1)}if((a=t.length)<o)for(c=0;c<o-a;c++)"z"===t[a-1][0]||"Z"===t[a-1][0]?t.splice(a-2,0,t[a-2]):t.push(t[a-1]);return t}},function(t,e,n){"use strict";function r(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}function i(t,e,n){for(var i,a=[].concat(t),o=1/(n+1),s=r(e)[0],l=1;l<=n;l++)o*=l,0===(i=Math.floor(t.length*o))?a.unshift([s[0]*o+t[i][0]*(1-o),s[1]*o+t[i][1]*(1-o)]):a.splice(i,0,[s[0]*o+t[i][0]*(1-o),s[1]*o+t[i][1]*(1-o)]);return a}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(t.length<=1)return t;for(var n,a=0;a<e.length;a++)if(t[a][0]!==e[a][0])switch(n=r(t[a]),e[a][0]){case"M":t[a]=["M"].concat(n[0]);break;case"L":t[a]=["L"].concat(n[0]);break;case"A":t[a]=[].concat(e[a]),t[a][6]=n[0][0],t[a][7]=n[0][1];break;case"Q":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[a]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],2)}t[a]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(a>0)){t[a]=e[a];break}n=i(n,t[a-1],1)}t[a]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[a]=e[a]}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(182)),o=r.__importDefault(n(183)),s=function(t,e,n,r,i){return t*(t*(-3*e+9*n-9*r+3*i)+6*e-12*n+6*r)-3*e+3*n},l=function(t,e,n,r,i,a,o,l,u){null===u&&(u=1);for(var c=(u=u>1?1:u<0?0:u)/2,f=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,d=0;d<12;d++){var g=c*f[d]+c,y=s(g,t,n,i,o),v=s(g,e,r,a,l),m=y*y+v*v;p+=h[d]*Math.sqrt(m)}return c*p},u=function(t,e,n,r,i,a,o,s){for(var l,u,c,f,h=[],p=[[],[]],d=0;d<2;++d)if(0===d?(u=6*t-12*n+6*i,l=-3*t+9*n-9*i+3*o,c=3*n-3*t):(u=6*e-12*r+6*a,l=-3*e+9*r-9*a+3*s,c=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(u)<1e-12)continue;(f=-c/u)>0&&f<1&&h.push(f)}else{var g=u*u-4*c*l,y=Math.sqrt(g);if(!(g<0)){var v=(-u+y)/(2*l);v>0&&v<1&&h.push(v);var m=(-u-y)/(2*l);m>0&&m<1&&h.push(m)}}for(var _,x=h.length,b=x;x--;)_=1-(f=h[x]),p[0][x]=_*_*_*t+3*_*_*f*n+3*_*f*f*i+f*f*f*o,p[1][x]=_*_*_*e+3*_*_*f*r+3*_*f*f*a+f*f*f*s;return p[0][b]=t,p[1][b]=e,p[0][b+1]=o,p[1][b+1]=s,p[0].length=p[1].length=b+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},c=function(t,e,n,r,i,a,o,s){if(!(Math.max(t,n)<Math.min(i,o)||Math.min(t,n)>Math.max(i,o)||Math.max(e,r)<Math.min(a,s)||Math.min(e,r)>Math.max(a,s))){var l=(t-n)*(a-s)-(e-r)*(i-o);if(l){var u=((t*r-e*n)*(i-o)-(t-n)*(i*s-a*o))/l,c=((t*r-e*n)*(a-s)-(e-r)*(i*s-a*o))/l,f=+u.toFixed(2),h=+c.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,o).toFixed(2)||f>+Math.max(i,o).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(a,s).toFixed(2)||h>+Math.max(a,s).toFixed(2)))return{x:u,y:c}}}},f=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},h=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:(0,a.default)(t,e,n,r),vb:[t,e,n,r].join(" ")}},p=function(t,e,n,r,a,o,s,l){(0,i.isArray)(t)||(t=[t,e,n,r,a,o,s,l]);var c=u.apply(null,t);return h(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},d=function(t,e,n,r,i,a,o,s,l){var u=1-l,c=Math.pow(u,3),f=Math.pow(u,2),h=l*l,p=h*l,d=t+2*l*(n-t)+h*(i-2*n+t),g=e+2*l*(r-e)+h*(a-2*r+e),y=n+2*l*(i-n)+h*(o-2*i+n),v=r+2*l*(a-r)+h*(s-2*a+r);return{x:c*t+3*f*l*n+3*u*l*l*i+p*o,y:c*e+3*f*l*r+3*u*l*l*a+p*s,m:{x:d,y:g},n:{x:y,y:v},start:{x:u*t+l*n,y:u*e+l*r},end:{x:u*i+l*o,y:u*a+l*s},alpha:90-180*Math.atan2(d-y,g-v)/Math.PI}},g=function(t,e,n){if(!function(t,e){return t=h(t),e=h(e),f(e,t.x,t.y)||f(e,t.x2,t.y)||f(e,t.x,t.y2)||f(e,t.x2,t.y2)||f(t,e.x,e.y)||f(t,e.x2,e.y)||f(t,e.x,e.y2)||f(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(p(t),p(e)))return n?0:[];for(var r=~~(l.apply(0,t)/8),i=~~(l.apply(0,e)/8),a=[],o=[],s={},u=n?0:[],g=0;g<r+1;g++){var y=d.apply(0,t.concat(g/r));a.push({x:y.x,y:y.y,t:g/r})}for(g=0;g<i+1;g++){y=d.apply(0,e.concat(g/i));o.push({x:y.x,y:y.y,t:g/i})}for(g=0;g<r;g++)for(var v=0;v<i;v++){var m=a[g],_=a[g+1],x=o[v],b=o[v+1],M=Math.abs(_.x-m.x)<.001?"y":"x",C=Math.abs(b.x-x.x)<.001?"y":"x",P=c(m.x,m.y,_.x,_.y,x.x,x.y,b.x,b.y);if(P){if(s[P.x.toFixed(4)]===P.y.toFixed(4))continue;s[P.x.toFixed(4)]=P.y.toFixed(4);var S=m.t+Math.abs((P[M]-m[M])/(_[M]-m[M]))*(_.t-m.t),O=x.t+Math.abs((P[C]-x[C])/(b[C]-x[C]))*(b.t-x.t);S>=0&&S<=1&&O>=0&&O<=1&&(n?u++:u.push({x:P.x,y:P.y,t1:S,t2:O}))}}return u};e.default=function(t,e){return function(t,e,n){var r,i,a,s,l,u,c,f,h,p;t=(0,o.default)(t),e=(0,o.default)(e);for(var d=n?0:[],y=0,v=t.length;y<v;y++){var m=t[y];if("M"===m[0])r=l=m[1],i=u=m[2];else{"C"===m[0]?(h=[r,i].concat(m.slice(1)),r=h[6],i=h[7]):(h=[r,i,r,i,l,u,l,u],r=l,i=u);for(var _=0,x=e.length;_<x;_++){var b=e[_];if("M"===b[0])a=c=b[1],s=f=b[2];else{"C"===b[0]?(p=[a,s].concat(b.slice(1)),a=p[6],s=p[7]):(p=[a,s,a,s,c,f,c,f],a=c,s=f);var M=g(h,p,n);if(n)d+=M;else{for(var C=0,P=M.length;C<P;C++)M[C].segment1=y,M[C].segment2=_,M[C].bez1=h,M[C].bez2=p;d=d.concat(M)}}}}}return d}(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.segmentToCubic=void 0;var r=n(384),i=n(385),a=n(386);e.segmentToCubic=function(t,e){"TQ".indexOf(t[0])<0&&(e.qx=null,e.qy=null);var n=t.slice(1),o=n[0],s=n[1];switch(t[0]){case"M":return e.x=o,e.y=s,t;case"A":return["C"].concat(r.arcToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"Q":return e.qx=o,e.qy=s,["C"].concat(i.quadToCubic.apply(0,[e.x1,e.y1].concat(t.slice(1))));case"L":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,t[1],t[2]));case"H":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,t[1],e.y1));case"V":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,e.x1,t[1]));case"Z":return["C"].concat((0,a.lineToCubic)(e.x1,e.y1,e.x,e.y))}return t}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.arcToCubic=void 0;var r=2*Math.PI,i=function(t,e,n,r,i,a,o){var s=t.x,l=t.y;return{x:r*(s*=e)-i*(l*=n)+a,y:i*s+r*l+o}},a=function(t,e){var n=1.5707963267948966===e?.551915024494:-1.5707963267948966===e?-.551915024494:4/3*Math.tan(e/4),r=Math.cos(t),i=Math.sin(t),a=Math.cos(t+e),o=Math.sin(t+e);return[{x:r-i*n,y:i+r*n},{x:a+o*n,y:o-a*n},{x:a,y:o}]},o=function(t,e,n,r){var i=t*n+e*r;return i>1&&(i=1),i<-1&&(i=-1),(t*r-e*n<0?-1:1)*Math.acos(i)},s=function(t){var e=t.px,n=t.py,s=t.cx,l=t.cy,u=t.rx,c=t.ry,f=t.xAxisRotation,h=void 0===f?0:f,p=t.largeArcFlag,d=void 0===p?0:p,g=t.sweepFlag,y=void 0===g?0:g,v=[];if(0===u||0===c)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];var m=Math.sin(h*r/360),_=Math.cos(h*r/360),x=_*(e-s)/2+m*(n-l)/2,b=-m*(e-s)/2+_*(n-l)/2;if(0===x&&0===b)return[{x1:0,y1:0,x2:0,y2:0,x:s,y:l}];u=Math.abs(u),c=Math.abs(c);var M=Math.pow(x,2)/Math.pow(u,2)+Math.pow(b,2)/Math.pow(c,2);M>1&&(u*=Math.sqrt(M),c*=Math.sqrt(M));var C=function(t,e,n,i,a,s,l,u,c,f,h,p){var d=Math.pow(a,2),g=Math.pow(s,2),y=Math.pow(h,2),v=Math.pow(p,2),m=d*g-d*v-g*y;m<0&&(m=0),m/=d*v+g*y;var _=(m=Math.sqrt(m)*(l===u?-1:1))*a/s*p,x=m*-s/a*h,b=f*_-c*x+(t+n)/2,M=c*_+f*x+(e+i)/2,C=(h-_)/a,P=(p-x)/s,S=(-h-_)/a,O=(-p-x)/s,w=o(1,0,C,P),A=o(C,P,S,O);return 0===u&&A>0&&(A-=r),1===u&&A<0&&(A+=r),[b,M,w,A]}(e,n,s,l,u,c,d,y,m,_,x,b),P=C[0],S=C[1],O=C[2],w=C[3],A=Math.abs(w)/(r/4);Math.abs(1-A)<1e-7&&(A=1);var T=Math.max(Math.ceil(A),1);w/=T;for(var E=0;E<T;E++)v.push(a(O,w)),O+=w;return v.map((function(t){var e=i(t[0],u,c,_,m,P,S),n=e.x,r=e.y,a=i(t[1],u,c,_,m,P,S),o=a.x,s=a.y,l=i(t[2],u,c,_,m,P,S);return{x1:n,y1:r,x2:o,y2:s,x:l.x,y:l.y}}))};e.arcToCubic=function(t,e,n,r,i,a,o,l,u){return s({px:t,py:e,cx:l,cy:u,rx:n,ry:r,xAxisRotation:i,largeArcFlag:a,sweepFlag:o}).reduce((function(t,e){var n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.x,s=e.y;return t.push(n,r,i,a,o,s),t}),[])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.quadToCubic=void 0,e.quadToCubic=function(t,e,n,r,i,a){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*a+2/3*r,i,a]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.lineToCubic=void 0,e.lineToCubic=function(t,e,n,r){return[t,e,n,r,n,r]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=/,?([a-z]),?/gi;e.default=function(t){return t.join(",").replace(r,"$1")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(100)),a=n(100),o=r.__importDefault(n(181));function s(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}e.default=function(t){for(var e=[],n=null,r=null,l=null,u=0,c=(t=(0,o.default)(t)).length,f=0;f<c;f++){var h=t[f];r=t[f+1];var p=h[0],d={command:p,prePoint:n,params:h,startTangent:null,endTangent:null};switch(p){case"M":l=[h[1],h[2]],u=f;break;case"A":var g=(0,i.default)(n,h);d.arcParams=g}if("Z"===p)n=l,r=t[u+1];else{var y=h.length;n=[h[y-2],h[y-1]]}r&&"Z"===r[0]&&(r=t[u],e[u]&&(e[u].prePoint=n)),d.currentPoint=n,e[u]&&(0,a.isSamePoint)(n,e[u].currentPoint)&&(e[u].prePoint=d.prePoint);var v=r?[r[r.length-2],r[r.length-1]]:null;d.nextPoint=v;var m=d.prePoint;if(["L","H","V"].includes(p))d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]];else if("Q"===p){var _=[h[1],h[2]];d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]}else if("T"===p){_=s((M=e[f-1]).currentPoint,m);"Q"===M.command?(d.command="Q",d.startTangent=[m[0]-_[0],m[1]-_[1]],d.endTangent=[n[0]-_[0],n[1]-_[1]]):(d.command="TL",d.startTangent=[m[0]-n[0],m[1]-n[1]],d.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("C"===p){var x=[h[1],h[2]],b=[h[3],h[4]];d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]],0===d.startTangent[0]&&0===d.startTangent[1]&&(d.startTangent=[x[0]-b[0],x[1]-b[1]]),0===d.endTangent[0]&&0===d.endTangent[1]&&(d.endTangent=[b[0]-x[0],b[1]-x[1]])}else if("S"===p){var M;x=s((M=e[f-1]).currentPoint,m),b=[h[1],h[2]];"C"===M.command?(d.command="C",d.startTangent=[m[0]-x[0],m[1]-x[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]]):(d.command="SQ",d.startTangent=[m[0]-b[0],m[1]-b[1]],d.endTangent=[n[0]-b[0],n[1]-b[1]])}else if("A"===p){var C=.001,P=d.arcParams||{},S=P.cx,O=void 0===S?0:S,w=P.cy,A=void 0===w?0:w,T=P.rx,E=void 0===T?0:T,I=P.ry,L=void 0===I?0:I,D=P.sweepFlag,B=void 0===D?0:D,j=P.startAngle,R=void 0===j?0:j,k=P.endAngle,F=void 0===k?0:k;0===B&&(C*=-1);var N=E*Math.cos(R-C)+O,G=L*Math.sin(R-C)+A;d.startTangent=[N-l[0],G-l[1]];var Y=E*Math.cos(R+F+C)+O,V=L*Math.sin(R+F-C)+A;d.endTangent=[m[0]-Y,m[1]-V]}e.push(d)}return e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(187)),a=r.__importDefault(n(186)),o=n(1);function s(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],a=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function l(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}e.default=function(t,e){if(t.length<2||e.length<2)return!1;var n,r,u=l(t),c=l(e);if(n=u,(r=c).minX>n.maxX||r.maxX<n.minX||r.minY>n.maxY||r.maxY<n.minY)return!1;var f=!1;if((0,o.each)(e,(function(e){if((0,i.default)(t,e[0],e[1]))return f=!0,!1})),f)return!0;if((0,o.each)(t,(function(t){if((0,i.default)(e,t[0],t[1]))return f=!0,!1})),f)return!0;var h=s(t),p=s(e),d=!1;return(0,o.each)(p,(function(t){if(function(t,e){var n=!1;return(0,o.each)(t,(function(t){if((0,a.default)(t.from,t.to,e.from,e.to))return n=!0,!1})),n}(h,t))return d=!0,!1})),d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99);e.default=function(t){var e=t.attr(),n=e.x1,i=e.y1,a=e.x2,o=e.y2,s={minX:Math.min(n,a),maxX:Math.max(n,a),minY:Math.min(i,o),maxY:Math.max(i,o)};return{x:(s=(0,r.mergeArrowBBox)(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;return{x:n-i,y:r-a,width:2*i,height:2*a}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Adjust=e.registerAdjust=e.getAdjust=void 0;var r=n(5),i=r.__importDefault(n(51));e.Adjust=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAdjust=o;e.registerAdjust=function(t,e){if(o(t))throw new Error("Adjust type '"+t+"' existed.");a[t.toLowerCase()]=e},r.__exportStar(n(189),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=n(101),s=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var r=e.marginRatio,i=void 0===r?o.MARGIN_RATIO:r,a=e.dodgeRatio,s=void 0===a?o.DODGE_RATIO:a,l=e.dodgeBy,u=e.intervalPadding,c=e.dodgePadding,f=e.xDimensionLength,h=e.groupNum,p=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,y=e.columnWidthRatio,v=e.customOffset;return n.marginRatio=i,n.dodgeRatio=s,n.dodgeBy=l,n.intervalPadding=u,n.dodgePadding=c,n.xDimensionLegenth=f,n.groupNum=h,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=y,n.customOffset=v,n}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e),r=this.dodgeBy,i=r?a.group(n,r):e;return this.cacheMap={},this.adjustDataArray=i,this.mergeData=n,this.adjustData(i,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var i=this,o=this.customOffset,s=this.getDistribution(t),l=this.groupData(n,t);return a.each(l,(function(n,l){var u;u=1===e.length?{pre:e[0]-1,next:e[0]+1}:i.getAdjustRange(t,parseFloat(l),e),a.each(n,(function(e){var n=e[t],l=s[n],c=l.indexOf(r);if(a.isNil(o))e[t]=i.getDodgeOffset(u,c,l.length);else{var f=u.pre,h=u.next;e[t]=a.isFunction(o)?o(e,u):(f+h)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,i=this.dodgeRatio,o=this.marginRatio,s=this.intervalPadding,l=this.dodgePadding,u=t.pre,c=t.next,f=c-u;if(!a.isNil(s)&&a.isNil(l)&&s>=0)r=u+this.getIntervalOnlyOffset(n,e);else if(!a.isNil(l)&&a.isNil(s)&&l>=0){r=u+this.getDodgeOnlyOffset(n,e)}else if(!a.isNil(s)&&!a.isNil(l)&&s>=0&&l>=0){r=u+this.getIntervalAndDodgeOffset(n,e)}else{var h=f*i/n,p=o*h;r=(u+c)/2+(.5*(f-n*h-(n-1)*p)+((e+1)*h+e*p)-.5*h-.5*f)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.dodgeRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,h=i/o,p=(1-(s-1)*h)/s*l/(t-1),d=((1-h*(s-1))/s-p*(t-1))/t;if(d=a.isNil(f)?d:1/s/t*f,!a.isNil(u)){var g=u/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*(p=((1-(s-1)*h)/s-t*d)/(t-1))+.5*h)*s-h/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,i=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.marginRatio,u=n.maxColumnWidth,c=n.minColumnWidth,f=n.columnWidthRatio,h=i/o,p=1*l/(s-1),d=((1-p*(s-1))/s-h*(t-1))/t;if(d=f?1/s/t*f:d,!a.isNil(u)){var g=u/o;d=Math.min(d,g)}if(!a.isNil(c)){var y=c/o;d=Math.max(d,y)}return((.5+e)*(d=r?r/o:d)+e*h+.5*(p=(1-(d*t+h*(t-1))*s)/(s-1)))*s-p/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,a=this.groupNum,o=n/i,s=r/i;return((.5+e)*(((1-o*(a-1))/a-s*(t-1))/t)+e*s+.5*o)*a-o/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},a.each(e,(function(e,n){var i=a.valuesOfKey(e,t);i.length||i.push(0),a.each(i,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(r.__importDefault(n(51)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=n(101);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.clone(t),n=a.flatten(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,i=this.groupData(n,t);return a.each(i,(function(n,i){return r.adjustGroup(n,t,parseFloat(i),e)}))},e.prototype.getAdjustOffset=function(t){var e,n=t.pre,r=t.next,i=(r-n)*o.GAP;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var i=this,o=this.getAdjustRange(e,n,r);return a.each(t,(function(t){t[e]=i.getAdjustOffset(o)})),t},e}(r.__importDefault(n(51)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=r.__importDefault(n(51)),s=a.Cache,l=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,a=e.height,o=void 0===a?NaN:a,s=e.size,l=void 0===s?10:s,u=e.reverseOrder,c=void 0!==u&&u;return n.adjustNames=i,n.height=o,n.size=l,n.reverseOrder=c,n}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=this.yField,n=this.reverseOrder,r=e?this.processStack(t):this.processOneDimStack(t);return n?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this.xField,n=this.yField,r=this.reverseOrder?this.reverse(t):t,o=new s,l=new s;return r.map((function(t){return t.map((function(t){var r,s=a.get(t,e,0),u=a.get(t,[n]),c=s.toString();if(u=a.isArray(u)?u[1]:u,!a.isNil(u)){var f=u>=0?o:l;f.has(c)||f.set(c,0);var h=f.get(c),p=u+h;return f.set(c,p),(0,i.__assign)((0,i.__assign)({},t),((r={})[n]=[h,p],r))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,r=this.height,a=this.reverseOrder,o=a?this.reverse(t):t,l=new s;return o.map((function(t){return t.map((function(t){var a,o=e.size,s=t[n],u=2*o/r;l.has(s)||l.set(s,u/2);var c=l.get(s);return l.set(s,c+u),(0,i.__assign)((0,i.__assign)({},t),((a={}).y=c,a))}))}))},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importStar(n(1)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.process=function(t){var e=a.flatten(t),n=this.xField,r=this.yField,o=this.getXValuesMaxMap(e),s=Math.max.apply(Math,Object.keys(o).map((function(t){return o[t]})));return a.map(t,(function(t){return a.map(t,(function(t){var e,l,u=t[r],c=t[n];if(a.isArray(u)){var f=(s-o[c])/2;return(0,i.__assign)((0,i.__assign)({},t),((e={})[r]=a.map(u,(function(t){return f+t})),e))}var h=(s-u)/2;return(0,i.__assign)((0,i.__assign)({},t),((l={})[r]=[h,u+h],l))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,i=a.groupBy(t,(function(t){return t[n]}));return a.mapValues(i,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=a.map(t,(function(t){return a.get(t,e,[])})),r=a.flatten(n);return Math.max.apply(Math,r)},e}(r.__importDefault(n(51)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=r.__importDefault(n(70)),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],(0,o.isString)(n.values)&&(n.linear=!0),n.gradient=a.default.gradient(n.values),n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(r.__importDefault(n(40)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return(0,i.__extends)(e,t),e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=n(1),o=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return(0,i.__extends)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return(0,a.isNil)(t)||(0,a.isNil)(e)?[]:[(0,a.isArray)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),(0,a.isArray)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(r.__importDefault(n(40)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return(0,i.__extends)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(5),i=n(5),a=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return(0,i.__extends)(e,t),e}(r.__importDefault(n(40)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Attribute=e.registerAttribute=e.getAttribute=void 0;var r=n(5),i=r.__importDefault(n(40));e.Attribute=i.default;var a={},o=function(t){return a[t.toLowerCase()]};e.getAttribute=o;e.registerAttribute=function(t,e){if(o(t))throw new Error("Attribute type '"+t+"' existed.");a[t.toLowerCase()]=e},r.__exportStar(n(190),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(71),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return(0,i.__extends)(e,t),e.prototype.translate=function(t){t=(0,o.toTimeStamp)(t);var e=this.values.indexOf(t);return-1===e&&(e=(0,a.isNumber)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):(0,o.timeFormat)(r,this.mask)}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;(0,a.each)(e,(function(t,n){e[n]=(0,o.toTimeStamp)(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(r.__importDefault(n(192)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1);e.default=function(t){return function(e,n,i,a){for(var o=(0,r.isNil)(i)?0:i,s=(0,r.isNil)(a)?e.length:a;o<s;){var l=o+s>>>1;t(e[l])>n?s=l:o=l+1}return o}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(73),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e,n=this.base,r=(0,a.log)(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,s=this.positiveMin;if(s){if(0===t)return 0;var l=1/(r-(e=(0,a.log)(n,s/n)))*o;if(t<l)return t/l*s}else e=(0,a.log)(n,this.min);var u=(t-i)/o*(r-e)+e;return Math.pow(n,u)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=(0,a.getLogPositiveMin)(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/((0,a.log)(r,e)-(0,a.log)(r,n)):((0,a.log)(r,t)-(0,a.log)(r,n))/((0,a.log)(r,e)-(0,a.log)(r,n))},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(73),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return(0,i.__extends)(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=(0,a.calBase)(n,this.max),i=(0,a.calBase)(n,this.min),o=e*(r-i)+i,s=o>=0?1:-1;return Math.pow(o,n)*s},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return((0,a.calBase)(r,t)-(0,a.calBase)(r,n))/((0,a.calBase)(r,e)-(0,a.calBase)(r,n))},e}(r.__importDefault(n(72)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(71),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return(0,i.__extends)(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):(0,o.timeFormat)(n,this.mask)},e.prototype.scale=function(e){var n=e;return((0,a.isString)(n)||(0,a.isDate)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return(0,o.toTimeStamp)(t)},e.prototype.initCfg=function(){this.tickMethod="time-pretty",this.mask="YYYY-MM-DD",this.tickCount=7,this.nice=!1},e.prototype.setDomain=function(){var t=this.values,e=this.getConfig("min"),n=this.getConfig("max");if((0,a.isNil)(e)&&(0,a.isNumber)(e)||(this.min=this.translate(this.min)),(0,a.isNil)(n)&&(0,a.isNumber)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],i=1/0,s=i,l=0;(0,a.each)(t,(function(t){var e=(0,o.toTimeStamp)(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");i>e?(s=i,i=e):s>e&&(s=e),l<e&&(l=e),r.push(e)})),t.length>1&&(this.minTickInterval=s-i),(0,a.isNil)(e)&&(this.min=i),(0,a.isNil)(n)&&(this.max=l)}},e}(r.__importDefault(n(194)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return(0,i.__extends)(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(r.__importDefault(n(195)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerScale=e.getScale=e.Scale=void 0;var r=n(0).__importDefault(n(59));e.Scale=r.default;var i={};function a(t){return i[t]}e.getScale=a,e.registerScale=function(t,e){if(a(t))throw new Error("type '"+t+"' existed.");i[t]=e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return(0,i.__extends)(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&(0,a.isNumber)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(r.__importDefault(n(59)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTickMethod=e.getTickMethod=void 0;var r=n(0),i=r.__importDefault(n(196)),a=r.__importDefault(n(412)),o=r.__importDefault(n(414)),s=r.__importDefault(n(416)),l=r.__importDefault(n(417)),u=r.__importDefault(n(418)),c=r.__importDefault(n(419)),f=n(191);Object.defineProperty(e,"getTickMethod",{enumerable:!0,get:function(){return f.getTickMethod}}),Object.defineProperty(e,"registerTickMethod",{enumerable:!0,get:function(){return f.registerTickMethod}});var h=r.__importDefault(n(420)),p=r.__importDefault(n(421)),d=r.__importDefault(n(422));(0,f.registerTickMethod)("cat",i.default),(0,f.registerTickMethod)("time-cat",p.default),(0,f.registerTickMethod)("wilkinson-extended",o.default),(0,f.registerTickMethod)("r-pretty",c.default),(0,f.registerTickMethod)("time",h.default),(0,f.registerTickMethod)("time-pretty",d.default),(0,f.registerTickMethod)("log",s.default),(0,f.registerTickMethod)("pow",l.default),(0,f.registerTickMethod)("quantile",u.default),(0,f.registerTickMethod)("d3-linear",a.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(413)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickInterval,l=t.minLimit,u=t.maxLimit,c=(0,a.default)(t);return(0,i.isNil)(l)&&(0,i.isNil)(u)?r?(0,o.default)(e,n,r).ticks:c:(0,s.default)(t,(0,i.head)(c),(0,i.last)(c))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.D3Linear=void 0,e.default=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,a=new o;return a.domain([e,n]),r&&a.nice(i),a.ticks(i)};var r=Math.sqrt(50),i=Math.sqrt(10),a=Math.sqrt(2),o=function(){function t(){this._domain=[0,1]}return t.prototype.domain=function(t){return t?(this._domain=Array.from(t,Number),this):this._domain.slice()},t.prototype.nice=function(t){var e,n;void 0===t&&(t=5);var r,i=this._domain.slice(),a=0,o=this._domain.length-1,l=this._domain[a],u=this._domain[o];return u<l&&(l=(e=[u,l])[0],u=e[1],a=(n=[o,a])[0],o=n[1]),(r=s(l,u,t))>0?r=s(l=Math.floor(l/r)*r,u=Math.ceil(u/r)*r,t):r<0&&(r=s(l=Math.ceil(l*r)/r,u=Math.floor(u*r)/r,t)),r>0?(i[a]=Math.floor(l/r)*r,i[o]=Math.ceil(u/r)*r,this.domain(i)):r<0&&(i[a]=Math.ceil(l*r)/r,i[o]=Math.floor(u*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,a,o,l=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(o=s(t,e,n))||!isFinite(o))return[];if(o>0)for(t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(i=Math.ceil(e-t+1));++l<i;)a[l]=(t+l)*o;else for(t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(i=Math.ceil(t-e+1));++l<i;)a[l]=(t-l)/o;r&&a.reverse();return a}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function s(t,e,n){var o=(e-t)/Math.max(0,n),s=Math.floor(Math.log(o)/Math.LN10),l=o/Math.pow(10,s);return s>=0?(l>=r?10:l>=i?5:l>=a?2:1)*Math.pow(10,s):-Math.pow(10,-s)/(l>=r?10:l>=i?5:l>=a?2:1)}e.D3Linear=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(415)),o=r.__importDefault(n(104)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.nice,u=t.tickInterval,c=t.minLimit,f=t.maxLimit,h=(0,a.default)(e,n,r,l).ticks;return(0,i.isNil)(c)&&(0,i.isNil)(f)?u?(0,o.default)(e,n,u).ticks:h:(0,s.default)(t,(0,i.head)(h),(0,i.last)(h))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ALL_Q=e.DEFAULT_Q=void 0;var r=n(1),i=n(197);e.DEFAULT_Q=[1,5,2,2.5,4,3],e.ALL_Q=[1,5,2,2.5,4,3,1.5,7,6,8,9];var a=100*Number.EPSILON;function o(t,e,n,i,o,s){var l=(0,r.size)(e),u=(0,r.indexOf)(e,t),c=0,f=function(t,e){return(t%e+e)%e}(i,s);return(f<a||s-f<a)&&i<=0&&o>=0&&(c=1),1-u/(l-1)-n+c}function s(t,e,n){var i=(0,r.size)(e);return 1-(0,r.indexOf)(e,t)/(i-1)-n+1}function l(t,e,n,r,i,a){var o=(t-1)/(a-i),s=(e-1)/(Math.max(a,r)-Math.min(n,i));return 2-Math.max(o/s,s/o)}function u(t,e){return t>=e?2-(t-1)/(e-1):1}function c(t,e,n,r){var i=e-t;return 1-.5*(Math.pow(e-r,2)+Math.pow(t-n,2))/Math.pow(.1*i,2)}function f(t,e,n){var r=e-t;if(n>r){var i=(n-r)/2;return 1-Math.pow(i,2)/Math.pow(.1*r,2)}return 1}e.default=function(t,n,a,h,p,d){void 0===a&&(a=5),void 0===h&&(h=!0),void 0===p&&(p=e.DEFAULT_Q),void 0===d&&(d=[.25,.2,.5,.05]);var g=a<0?0:Math.round(a);if(Number.isNaN(t)||Number.isNaN(n)||"number"!=typeof t||"number"!=typeof n||!g)return{min:0,max:0,ticks:[]};if(n-t<1e-15||1===g)return{min:t,max:n,ticks:[t]};if(n-t>1e148){var y=(n-t)/(E=a||5);return{min:t,max:n,ticks:Array(E).fill(null).map((function(e,n){return(0,i.prettyNumber)(t+y*n)}))}}for(var v={score:-2,lmin:0,lmax:0,lstep:0},m=1;m<1/0;){for(var _=0;_<p.length;_+=1){var x=p[_],b=s(x,p,m);if(d[0]*b+d[1]+d[2]+d[3]<v.score){m=1/0;break}for(var M=2;M<1/0;){var C=u(M,g);if(d[0]*b+d[1]+d[2]*C+d[3]<v.score)break;for(var P=(n-t)/(M+1)/m/x,S=Math.ceil(Math.log10(P));S<1/0;){var O=m*x*Math.pow(10,S),w=f(t,n,O*(M-1));if(d[0]*b+d[1]*w+d[2]*C+d[3]<v.score)break;var A=Math.floor(n/O)*m-(M-1)*m,T=Math.ceil(t/O)*m;if(A<=T)for(var E=T-A,I=0;I<=E;I+=1){var L=(A+I)*(O/m),D=L+O*(M-1),B=O,j=o(x,p,m,L,D,B),R=c(t,n,L,D),k=l(M,g,t,n,L,D),F=d[0]*j+d[1]*R+d[2]*k+1*d[3];F>v.score&&(!h||L<=t&&D>=n)&&(v.lmin=L,v.lmax=D,v.lstep=B,v.score=F)}S+=1}M+=1}}m+=1}var N=(0,i.prettyNumber)(v.lmax),G=(0,i.prettyNumber)(v.lmin),Y=(0,i.prettyNumber)(v.lstep),V=Math.floor(function(t){return Math.round(1e12*t)/1e12}((N-G)/Y))+1,H=new Array(V);for(H[0]=(0,i.prettyNumber)(G),_=1;_<V;_++)H[_]=(0,i.prettyNumber)(H[_-1]+Y);return{min:Math.min(t,(0,r.head)(H)),max:Math.max(n,(0,r.last)(H)),ticks:H}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(73);e.default=function(t){var e,n=t.base,i=t.tickCount,a=t.min,o=t.max,s=t.values,l=(0,r.log)(n,o);if(a>0)e=Math.floor((0,r.log)(n,a));else{var u=(0,r.getLogPositiveMin)(s,n,o);e=Math.floor((0,r.log)(n,u))}for(var c=l-e,f=Math.ceil(c/i),h=[],p=e;p<l+f;p+=f)h.push(Math.pow(n,p));return a<=0&&h.unshift(0),h}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(73),a=r.__importDefault(n(198));e.default=function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil((0,i.calBase)(e,t.max)),o=Math.floor((0,i.calBase)(e,t.min));return(0,a.default)(o,r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}},function(t,e,n){"use strict";function r(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!=0?t[Math.ceil(n)-1]:t.length%2==0?(t[n-1]+t[n])/2:t[n]}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),a=[],o=0;o<e;o++){var s=o/(e-1);a.push(r(i,s))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(104)),o=r.__importDefault(n(198)),s=r.__importDefault(n(105));e.default=function(t){var e=t.min,n=t.max,r=t.tickCount,l=t.tickInterval,u=t.minLimit,c=t.maxLimit,f=(0,o.default)(e,n,r).ticks;return(0,i.isNil)(u)&&(0,i.isNil)(c)?l?(0,a.default)(e,n,l).ticks:f:(0,s.default)(t,(0,i.head)(f),(0,i.last)(f))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(71);e.default=function(t){var e=t.min,n=t.max,i=t.minTickInterval,a=t.tickInterval,o=t.tickCount;if(a)o=Math.ceil((n-e)/a);else{var s=(n-e)/(a=(0,r.getTickInterval)(e,n,o)[1])/o;s>1&&(a*=Math.ceil(s)),i&&a<i&&(a=i)}a=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),a);for(var l=[],u=e;u<n+a;u+=a)l.push(u);return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(196));e.default=function(t){return(0,a.default)((0,i.__assign)({showLast:!0},t))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(71);function i(t){return new Date(t).getFullYear()}function a(t){return new Date(t,0,1).getTime()}function o(t){return new Date(t).getMonth()}function s(t,e){return new Date(t,e,1).getTime()}e.default=function(t){var e=t.min,n=t.max,l=t.minTickInterval,u=t.tickCount,c=t.tickInterval,f=[];c||(c=(n-e)/u,l&&c<l&&(c=l)),c=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),c);var h=i(e);if(c>r.YEAR)for(var p=i(n),d=Math.ceil(c/r.YEAR),g=h;g<=p+d;g+=d)f.push(a(g));else if(c>r.MONTH){var y=Math.ceil(c/r.MONTH),v=o(e),m=function(t,e){var n=i(t),r=i(e),a=o(t);return 12*(r-n)+(o(e)-a)%12}(e,n);for(g=0;g<=m+y;g+=y)f.push(s(h,g+v))}else if(c>r.DAY){var _=(P=new Date(e)).getFullYear(),x=P.getMonth(),b=P.getDate(),M=Math.ceil(c/r.DAY),C=function(t,e){return Math.ceil((e-t)/r.DAY)}(e,n);for(g=0;g<C+M;g+=M)f.push(new Date(_,x,b+g).getTime())}else if(c>r.HOUR){_=(P=new Date(e)).getFullYear(),x=P.getMonth(),M=P.getDate();var P,S=P.getHours(),O=Math.ceil(c/r.HOUR),w=function(t,e){return Math.ceil((e-t)/r.HOUR)}(e,n);for(g=0;g<=w+O;g+=O)f.push(new Date(_,x,M,S+g).getTime())}else if(c>r.MINUTE){var A=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),T=Math.ceil(c/r.MINUTE);for(g=0;g<=A+T;g+=T)f.push(e+g*r.MINUTE)}else{var E=c;E<r.SECOND&&(E=r.SECOND);var I=Math.floor(e/r.SECOND)*r.SECOND,L=Math.ceil((n-e)/r.SECOND),D=Math.ceil(E/r.SECOND);for(g=0;g<L+D;g+=D)f.push(I+g*r.SECOND)}return f.length>=512&&console.warn("Notice: current ticks length("+f.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+c+") is too small, increase the value to solve the problem!"),f}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Coordinate=e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i=r.__importDefault(n(74));e.Coordinate=i.default;var a=r.__importDefault(n(424)),o=r.__importDefault(n(425)),s=r.__importDefault(n(426)),l=n(427);Object.defineProperty(e,"getCoordinate",{enumerable:!0,get:function(){return l.getCoordinate}}),Object.defineProperty(e,"registerCoordinate",{enumerable:!0,get:function(){return l.registerCoordinate}}),(0,l.registerCoordinate)("rect",a.default),(0,l.registerCoordinate)("cartesian",a.default),(0,l.registerCoordinate)("polar",s.default),(0,l.registerCoordinate)("helix",o.default)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(r,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),r=this.invertDim(t.y,"y");return this.isTransposed&&(n=(e=[r,n])[0],r=e[1]),{x:n,y:r}},e}(r.__importDefault(n(74)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var r=e.startAngle,i=void 0===r?1.25*Math.PI:r,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,r=t.y;this.isTransposed&&(n=(e=[r,n])[0],r=e[1]);var i=this.convertDim(n,"x"),a=this.a*i,o=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(a+o),y:this.center.y+Math.sin(i)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=a.vec2.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=a.ext.angleTo(r,[1,0],!0),s=i*this.a;a.vec2.length(r)<s&&(s=a.vec2.length(r)),i=2*Math.floor((a.vec2.length(r)-s)/n)*Math.PI+i;var l=this.a*i,u=a.vec2.length(r)-l;u=(0,o.isNumberEqual)(u,0)?0:u;var c=this.invertDim(i,"x"),f=this.invertDim(u,"y");return c=(0,o.isNumberEqual)(c,0)?0:c,f=(0,o.isNumberEqual)(f,0)?0:f,this.isTransposed&&(c=(e=[f,c])[0],f=e[1]),{x:c,y:f}},e}(r.__importDefault(n(74)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,a=e.endAngle,o=void 0===a?3*Math.PI/2:a,s=e.innerRadius,l=void 0===s?0:s,u=e.radius;return n.startAngle=i,n.endAngle=o,n.innerRadius=l,n.radius=u,n.initial(),n}return(0,i.__extends)(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,a=Math.abs(n.minX)/r,o=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-a)*e*r,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),r=t.x,i=t.y;return this.isTransposed&&(r=(e=[i,r])[0],i=e[1]),r=this.convertDim(r,"x"),i=this.convertDim(i,"y"),{x:n.x+Math.cos(r)*i,y:n.y+Math.sin(r)*i}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),r=[t.x-n.x,t.y-n.y],i=this.startAngle,s=this.endAngle;this.isReflect("x")&&(i=(e=[s,i])[0],s=e[1]);var l=[1,0,0,0,1,0,0,0,1];a.ext.leftRotate(l,l,i);var u=[1,0,0];a.vec3.transformMat3(u,u,l);var c=[u[0],u[1]],f=a.ext.angleTo(c,r,s<i);(0,o.isNumberEqual)(f,2*Math.PI)&&(f=0);var h=a.vec2.length(r),p=f/(s-i);p=s-i>0?p:-p;var d=this.invertDim(h,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:p,g.y=this.isTransposed?p:d,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(r.__importDefault(n(74)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerCoordinate=e.getCoordinate=void 0;var r=n(0),i={};e.getCoordinate=function(t){return i[t.toLowerCase()]};e.registerCoordinate=function(t,e){i[t.toLowerCase()]=e},r.__exportStar(n(428),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=e.Shape=e.RegionFilter=e.DataRegion=e.DataMarker=e.Image=e.Region=e.Arc=e.Text=e.Line=void 0;var i=n(430);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(432);Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return r(a).default}});var o=n(433);Object.defineProperty(e,"Arc",{enumerable:!0,get:function(){return r(o).default}});var s=n(434);Object.defineProperty(e,"Region",{enumerable:!0,get:function(){return r(s).default}});var l=n(435);Object.defineProperty(e,"Image",{enumerable:!0,get:function(){return r(l).default}});var u=n(436);Object.defineProperty(e,"DataMarker",{enumerable:!0,get:function(){return r(u).default}});var c=n(437);Object.defineProperty(e,"DataRegion",{enumerable:!0,get:function(){return r(c).default}});var f=n(438);Object.defineProperty(e,"RegionFilter",{enumerable:!0,get:function(){return r(f).default}});var h=n(439);Object.defineProperty(e,"Shape",{enumerable:!0,get:function(){return r(h).default}});var p=n(440);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(p).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(75),l=r.__importDefault(n(21)),u=n(10),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:l.default.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:l.default.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:l.default.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:(0,i.__assign)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:(0,a.isString)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:(0,a.isNumber)(n)?n:1)>1||r<0)&&(r=1),{x:(0,u.getValueByPercent)(t.x,e.x,r),y:(0,u.getValueByPercent)(t.y,e.y,r)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),r=this.get("end"),i=e.position,a=e.content,o=e.style,l=e.offsetX,u=e.offsetY,c=e.autoRotate,f=e.maxLength,h=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,y=void 0!==g&&g,v=this.getLabelPoint(n,r,i),m=v.x+l,_=v.y+u,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:_,content:a,style:o,maxLength:f,autoEllipsis:h,ellipsisPosition:p,background:d,isVertical:y};if(c){var b=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(b[1],b[0])}(0,s.renderTag)(t,x)},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisString=e.charAtLength=e.strLen=void 0;function r(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}e.strLen=function(t){for(var e=0,n=0;n<t.length;n++)e+=r(t,n);return e},e.charAtLength=r,e.ellipsisString=function(t,e,n){void 0===n&&(n="tail");var i=t.length,a="";if("tail"===n){for(var o=0,s=0;o<e;){if(!(o+r(t,s)<=e))break;a+=t[s],o+=r(t,s),s++}a+="…"}else if("head"===n){for(o=0,s=i-1;o<e;){if(!(o+r(t,s)<=e))break;a+=t[s],o+=r(t,s),s--}a="…"+a}else{for(var l="",u="",c=(o=0,0),f=i-1;o<e;){var h=r(t,c),p=!1;h+o<=e&&(l+=t[c],c++,o+=h,p=!0);var d=r(t,f);if(d+o<=e&&(u=t[f]+u,o+=d,f--,p=!0),!p)break}a=l+"…"+u}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(75),s=n(33),l=r.__importDefault(n(21)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill:l.default.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:l.default.fontFamily}}})},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.renderInner=function(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("content"),a=this.get("style"),s={id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:a,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")};(0,o.renderTag)(t,s)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,r=e.y,i=this.get("rotate");(0,s.applyTranslate)(t,n,r),(0,s.applyRotate)(t,i,n,r)}},e}(a.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,a=(0,o.getCirclePoint)(e,n,r),s=(0,o.getCirclePoint)(e,n,i),l=i-r>Math.PI?1:0,u=[["M",a.x,a.y]];if(i-r==2*Math.PI){var c=(0,o.getCirclePoint)(e,n,r+Math.PI);u.push(["A",n,n,0,l,1,c.x,c.y]),u.push(["A",n,n,0,l,1,s.x,s.y])}else u.push(["A",n,n,0,l,1,s.x,s.y]);return u},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:(0,i.__assign)({path:e},n)})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=r.__importDefault(n(21)),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:o.default.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style"),a=(0,s.regionToBBox)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(10),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=(0,o.regionToBBox)({start:t,end:e}),a=this.get("src");return(0,i.__assign)({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(75),l=n(33),u=r.__importDefault(n(21)),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u.default.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.default.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.default.fontFamily}}}})},e.prototype.renderInner=function(t){(0,a.get)(this.get("line"),"display")&&this.renderLine(t),(0,a.get)(this.get("text"),"display")&&this.renderText(t),(0,a.get)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=(0,i.__rest)(e,["x","y","text"]),l=this.get("text"),u=l.background,c=l.maxLength,f=l.autoEllipsis,h=l.isVertival,p=l.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:u,maxLength:c,autoEllipsis:f,isVertival:h,ellipsisPosition:p};(0,s.renderTag)(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),i=(0,a.get)(this.get("line"),"length",0),o=this.get("coordinateBBox"),s=t.getBBox(),u=s.minX,c=s.maxX,f=s.minY,h=s.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(p){if(n+u<=o.minX){var y=o.minX-(n+u);(0,l.applyTranslate)(p,p.attr("x")+y,p.attr("y"))}if(n+c>=o.maxX){y=n+c-o.maxX;(0,l.applyTranslate)(p,p.attr("x")-y,p.attr("y"))}}if("upward"===e&&r+f<=o.minY||"upward"!==e&&r+h>=o.maxY){var v=void 0,m=void 0;"upward"===e&&r+f<=o.minY?(v="top",m=1):(v="bottom",m=-1),d.attr("textBaseline",v),g&&g.attr("path",[["M",0,0],["L",0,i*m]]),(0,l.applyTranslate)(p,p.attr("x"),(i+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=(0,a.get)(this.get("line"),"display"),e=(0,a.get)(this.get("point"),"style",{}),n=(0,a.get)(this.get("line"),"style",{}),r=(0,a.get)(this.get("text"),"style",{}),o=this.get("direction"),s=t?(0,a.get)(this.get("line"),"length",0):0,l="upward"===o?-1:1;return{point:(0,i.__assign)({x:0,y:0},e),line:(0,i.__assign)({path:[["M",0,0],["L",0,s*l]]},n),text:(0,i.__assign)({x:0,y:(s+2)*l,text:(0,a.get)(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},r)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=r.__importDefault(n(21)),l=n(10),u=n(75),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:s.default.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:s.default.textColor,fontFamily:s.default.fontFamily}}}})},e.prototype.renderInner=function(t){var e=(0,a.get)(this.get("region"),"style",{}),n=((0,a.get)(this.get("text"),"style",{}),this.get("lineLength")||0),r=this.get("points");if(r.length){var o=(0,l.pointsToBBox)(r),s=[];s.push(["M",r[0].x,o.minY-n]),r.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",r[r.length-1].x,r[r.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:(0,i.__assign)({path:s},e)});var c=(0,i.__assign)({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));(0,u.renderTag)(t,c)}},e}(o.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(10),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),r=this.get("end"),i=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});(0,a.each)(this.get("shapes"),(function(t,n){var r=t.get("type"),o=(0,a.clone)(t.attr());e.adjustShapeAttrs(o),e.addShape(i,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:o})}));var o=(0,s.regionToBBox)({start:n,end:r});i.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"shape",draw:a.noop})},e.prototype.renderInner=function(t){var e=this.get("render");(0,a.isFunction)(e)&&e(t)},e}(r.__importDefault(n(9)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=r.__importDefault(n(76)),l=n(10),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");(0,l.clearDom)(t);var n=(0,o.isFunction)(e)?e(t):e;if((0,o.isElement)(n))t.appendChild(n);else if((0,o.isString)(n)||(0,o.isNumber)(n)){var r=(0,a.createDom)(""+n);r&&t.appendChild(r)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,r=e.y,i=this.get("alignX"),o=this.get("alignY"),s=this.get("offsetX"),l=this.get("offsetY"),u=(0,a.getOuterWidth)(t),c=(0,a.getOuterHeight)(t),f={x:n,y:r};"middle"===i?f.x-=Math.round(u/2):"right"===i&&(f.x-=Math.round(u)),"middle"===o?f.y-=Math.round(c/2):"bottom"===o&&(f.y-=Math.round(c)),s&&(f.x+=s),l&&(f.y+=l),(0,a.modifyCSS)(t,{position:"absolute",left:f.x+"px",top:f.y+"px",zIndex:this.get("zIndex")})},e}(s.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=e.Circle=e.Line=void 0;var i=n(442);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(446);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(107);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(8),o=n(1),s=r.__importDefault(n(107)),l=r.__importStar(n(201)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),r=t.prototype.getInnerLayoutBBox.call(this),i=Math.min(e.x,n.x,r.x),a=Math.min(e.y,n.y,r.y),o=Math.max(e.x,n.x,r.maxX),s=Math.max(e.y,n.y,r.maxY);return{x:i,y:a,minX:i,minY:a,maxX:o,maxY:s,width:o-i,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return(0,o.isNumberEqual)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return(0,o.isNumberEqual)(t.y,e.y)},e.prototype.getTickPoint=function(t){var e=this.get("start"),n=this.get("end"),r=n.x-e.x,i=n.y-e.y;return{x:e.x+r*t,y:e.y+i*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=a.vec2.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return a.vec2.scale([0,0],i,t*r)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),r=this.isHorizontal();if(n||r){var i=this.get("label"),a=this.get("title"),s=this.get("verticalLimitLength"),l=i.offset,u=s,c=0,f=0;a&&(c=a.style.fontSize,f=a.spacing),u&&(u=u-l-f-c);var h=this.get("overlapOrder");if((0,o.each)(h,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,u)})),a&&(0,o.isNil)(a.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;a.offset=l+d+f+c/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,o.isNil)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,a=this.isVertical(),s=!1,u=l[t];if(!0===e){this.get("label");s=u.getDefault()(a,n,r)}else if((0,o.isFunction)(e))s=e(a,n,r);else if((0,o.isObject)(e)){var c=e;u[c.type]&&(s=u[c.type](a,n,r,c.cfg))}else u[e]&&(s=u[e](a,n,r));if("autoRotate"===t){if(s){var f=n.getChildren(),h=this.get("verticalFactor");(0,o.each)(f,(function(t){if("center"===t.attr("textAlign")){var e=h>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);(0,o.each)(p,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ellipsisMiddle=e.ellipsisTail=e.ellipsisHead=e.getDefault=void 0;var r=n(1),i=n(60);function a(t,e,n,a){var o=e.getChildren(),s=!1;return(0,r.each)(o,(function(e){var r=(0,i.ellipsisLabel)(t,e,n,a);s=s||r})),s}function o(t,e,n){return a(t,e,n,"tail")}e.getDefault=function(){return o},e.ellipsisHead=function(t,e,n){return a(t,e,n,"head")},e.ellipsisTail=o,e.ellipsisMiddle=function(t,e,n){return a(t,e,n,"middle")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.equidistanceWithReverseBoth=e.equidistance=e.reserveBoth=e.reserveLast=e.reserveFirst=e.getDefault=void 0;var r=n(60),i=n(33),a=n(10);function o(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?(0,i.getAngleByMatrix)(t.attr("matrix")):0)%360}function s(t,e,n,r){var i=!1,s=o(e),l=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),u=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}else{c=Math.abs(Math.sin(s));i=(0,a.near)(c,0,Math.PI/180)?u.width+r>l:u.height/c+r>l}return i}function l(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var l=a.length,u=a[0],c=1;c<l;c++){var f=a[c];f.getBBox();s(t,u,f,i)?(f.hide(),o=!0):u=f}return o}function u(t,e,n){var i=(null==n?void 0:n.minGap)||0,s=e.getChildren().slice();if(s.length<2)return!1;var l=!1,u=s[0],c=u.getBBox(),f=s[1],h=s.length,p=o(u),d=t?Math.abs(f.attr("y")-u.attr("y")):Math.abs(f.attr("x")-u.attr("x")),g=0;if(t){var y=Math.abs(Math.cos(p));if((0,a.near)(y,0,Math.PI/180))g=((0,r.getMaxLabelWidth)(s)+i)/d;else g=(c.height/y+i)/d}else{y=Math.abs(Math.sin(p));if((0,a.near)(y,0,Math.PI/180))g=((0,r.getMaxLabelWidth)(s)+i)/d;else g=(c.height/y+i)/d}if(g>1){g=Math.ceil(g);for(var v=0;v<h;v++)v%g!=0&&(s[v].hide(),l=!0)}return l}function c(t,e,n,r){var i=u(t,e,r);return l(t,e,!1)&&(i=!0),i}e.getDefault=function(){return c},e.reserveFirst=function(t,e,n,r){return l(t,e,!1,r)},e.reserveLast=function(t,e,n,r){return l(t,e,!0,r)},e.reserveBoth=function(t,e,n,r){var i=(null==r?void 0:r.minGap)||0,a=e.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,l=a.length,u=a[0],c=a[l-1],f=u,h=1;h<l-1;h++){var p=a[h];p.getBBox();s(t,f,p,i)?(p.hide(),o=!0):f=p}return s(t,f,c,i)&&(f.hide(),o=!0),o},e.equidistance=c,e.equidistanceWithReverseBoth=function(t,e,n,r){var i=e.getChildren().slice(),a=u(t,e,r);if(i.length>2){var o=i[0],s=i[i.length-1];o.get("visible")||(o.show(),l(t,e,!1,r)&&(a=!0)),s.get("visible")||(s.show(),l(t,e,!0,r)&&(a=!0))}return a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.unfixedAngle=e.fixedAngle=e.getDefault=void 0;var r=n(0),i=n(1),a=n(60),o=n(33),s=r.__importDefault(n(21));function l(t,e,n,r){var s=e.getChildren();if(!s.length)return!1;if(!t&&s.length<2)return!1;var l=(0,a.getMaxLabelWidth)(s),u=!1;t?u=!!n&&l>n:u=l>Math.abs(s[1].attr("x")-s[0].attr("x"));u&&function(t,e){(0,i.each)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=(0,o.getMatrixByAngle)({x:n,y:r},e);t.attr("matrix",i)}))}(s,r(n,l));return u}function u(t,e,n,r){return l(t,e,n,(function(){return(0,i.isNumber)(r)?r:t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate}))}e.getDefault=function(){return u},e.fixedAngle=u,e.unfixedAngle=function(t,e,n){return l(t,e,n,(function(e,n){if(!e)return t?s.default.verticalAxisRotate:s.default.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(8),s=r.__importDefault(n(107)),l=r.__importStar(n(201)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,r=this.get("radius"),i=r,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===2*Math.PI)s=[["M",e,n-i],["A",r,i,0,1,1,e,n+i],["A",r,i,0,1,1,e,n-i],["Z"]];else{var l=this.getCirclePoint(a),u=this.getCirclePoint(o),c=Math.abs(o-a)>Math.PI?1:0,f=a>o?0:1;s=[["M",e,n],["L",l.x,l.y],["A",r,i,0,c,f,u.x,u.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=e+(this.get("endAngle")-e)*t;return this.getCirclePoint(n)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),r=[e.x-n.x,e.y-n.y],i=this.get("verticalFactor"),a=o.vec2.length(r);return o.vec2.scale(r,r,i*t/a),r},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||(0,a.isNil)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,s=i,l=0,u=0;r&&(l=r.style.fontSize,u=r.spacing),s&&(s=s-o-u-l);var c=this.get("overlapOrder");if((0,a.each)(c,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,s)})),r&&(0,a.isNil)(r.offset)){var f=t.getCanvasBBox().height;r.offset=o+f+u+l/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,s=l[t];if(r>0)if(!0===e)o=s.getDefault()(!1,n,r);else if((0,a.isFunction)(e))o=e(!1,n,r);else if((0,a.isObject)(e)){var u=e;s[u.type]&&(o=s[u.type](!1,n,r,u.cfg))}else s[e]&&(o=s[e](!1,n,r));if("autoRotate"===t){if(o){var c=n.getChildren(),f=this.get("verticalFactor");(0,a.each)(c,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);(0,a.each)(h,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(s.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=e.Base=e.Circle=e.Line=void 0;var i=n(448);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(i).default}});var a=n(449);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(108);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}});var s=n(450);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(s).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(10),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text").position,i=Math.atan2(n.y-e.y,n.x-e.x);return"start"===r?i-Math.PI/2:i+Math.PI/2},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,o=r.offset;return(0,a.getTextPoint)(e,n,i,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(r.__importDefault(n(108)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(10),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle;return"start"===this.get("text").position?e+Math.PI/2:n-Math.PI/2},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,r=this.getLocation(),i=r.center,o=r.radius,s=r.startAngle,l=r.endAngle,u="start"===e?s:l,c=this.getRotateAngle()-Math.PI,f=(0,a.getCirclePoint)(i,o,u),h=Math.cos(c)*n,p=Math.sin(c)*n;return{x:f.x+h,y:f.y+p}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,o=null;if(i-r==2*Math.PI){var s=e.x,l=e.y;o=[["M",s,l-n],["A",n,n,0,1,1,s,l+n],["A",n,n,0,1,1,s,l-n],["Z"]]}else{var u=(0,a.getCirclePoint)(e,n,r),c=(0,a.getCirclePoint)(e,n,i),f=Math.abs(i-r)>Math.PI?1:0,h=r>i?0:1;o=[["M",u.x,u.y],["A",n,n,0,f,h,c.x,c.y]]}return o},e}(r.__importDefault(n(108)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(47),o=n(1),s=n(10),l=r.__importDefault(n(76)),u=r.__importStar(n(202)),c=r.__importDefault(n(451)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+u.CONTAINER_CLASS+'"></div>',crosshairTpl:'<div class="'+u.CROSSHAIR_LINE+'"></div>',textTpl:'<span class="'+u.CROSSHAIR_TEXT+'">{content}</span>',domStyles:null,containerClassName:u.CONTAINER_CLASS,defaultStyles:c.default,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=(0,a.createDom)(e);t.appendChild(n),this.applyStyle(u.CROSSHAIR_LINE,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,r=this.get("text"),i=r.position,a=r.offset;return(0,s.getTextPoint)(e,n,i,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var r=this.getContainer(),i=(0,o.substitute)(this.get("textTpl"),t);e=(0,a.createDom)(i),r.appendChild(e),this.applyStyle(u.CROSSHAIR_TEXT,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),r=Math.min(e.x,n.x),i=Math.min(e.y,n.y);this.isVertical(e,n)?(0,a.modifyCSS)(t,{width:"1px",height:(0,s.toPx)(Math.abs(n.y-e.y))}):(0,a.modifyCSS)(t,{height:"1px",width:(0,s.toPx)(Math.abs(n.x-e.x))}),(0,a.modifyCSS)(t,{top:(0,s.toPx)(i),left:(0,s.toPx)(r)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,r=this.getTextPoint();switch(e){case"center":r.x=r.x-n/2;break;case"right":r.x=r.x-n}(0,a.modifyCSS)(t,{top:(0,s.toPx)(r.y),left:(0,s.toPx)(r.x)})}},e.prototype.updateInner=function(e){(0,o.hasKey)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(21)),o=i.__importStar(n(202));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"relative"},r[""+o.CROSSHAIR_LINE]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_TEXT]={position:"absolute",color:a.default.textColor,fontFamily:a.default.fontFamily},r)},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Line=e.Circle=e.Base=void 0;var i=n(109);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(i).default}});var a=n(453);Object.defineProperty(e,"Circle",{enumerable:!0,get:function(){return r(a).default}});var o=n(454);Object.defineProperty(e,"Line",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n,r,i,o,s,l,u=this.getLineType(),c=this.get("closed"),f=[];if(t.length)if("circle"===u){var h=this.get("center"),p=t[0],d=(n=h.x,r=h.y,i=p.x,o=p.y,s=i-n,l=o-r,Math.sqrt(s*s+l*l)),g=e?0:1;c?(f.push(["M",h.x,h.y-d]),f.push(["A",d,d,0,0,g,h.x,h.y+d]),f.push(["A",d,d,0,0,g,h.x,h.y-d]),f.push(["Z"])):(0,a.each)(t,(function(t,e){0===e?f.push(["M",t.x,t.y]):f.push(["A",d,d,0,0,g,t.x,t.y])}))}else(0,a.each)(t,(function(t,e){0===e?f.push(["M",t.x,t.y]):f.push(["L",t.x,t.y])})),c&&f.push(["Z"]);return f},e}(r.__importDefault(n(109)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return(0,a.each)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(r.__importDefault(n(109)).default);e.default=o},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Base=e.Continuous=e.Category=void 0;var i=n(456);Object.defineProperty(e,"Category",{enumerable:!0,get:function(){return r(i).default}});var a=n(457);Object.defineProperty(e,"Continuous",{enumerable:!0,get:function(){return r(a).default}});var o=n(110);Object.defineProperty(e,"Base",{enumerable:!0,get:function(){return r(o).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(60),s=n(33),l=n(200),u=r.__importDefault(n(21)),c=r.__importDefault(n(110)),f={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},h={fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:u.default.fontFamily,fontWeight:"normal",lineHeight:12},p={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:u.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:u.default.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:f,itemName:{spacing:16,style:h},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:h,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:u.default.uncheckedColor},markerStyle:{fill:u.default.uncheckedColor,stroke:u.default.uncheckedColor}},inactive:{nameStyle:{fill:u.default.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){(0,a.mix)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i=this.getItems().indexOf(t),a=this.createOffScreenGroup(),o=this.drawItem(t,i,this.getItemHeight(),a);this.updateElements(o,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return(0,a.each)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);(0,a.each)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return(0,a.filter)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");(0,a.each)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),i=this.getItemHeight(),o=this.get("itemWidth"),s=this.get("itemSpacing"),l=this.get("itemMarginBottom"),u=this.get("currentPoint"),c=u.x,f=u.y,h=this.get("layout"),p=this.get("items"),d=!1,g=0,y=this.get("maxWidth"),v=this.get("maxHeight");(0,a.each)(p,(function(t,n){var a=e.drawItem(t,n,i,r),p=a.getBBox(),m=o||p.width;m>g&&(g=m),"horizontal"===h?(y&&y<u.x+m-c&&(d=!0,u.x=c,u.y+=i+l),e.moveElementTo(a,u),u.x+=m+s):(v&&v<u.y+i+l-f&&(d=!0,u.x+=g+s,u.y=f,g=0),e.moveElementTo(a,u),u.y+=i+l)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=c,this.startY=f,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if((0,a.isFunction)(e)){var n=this.getItems();n.forEach((function(r,a){var o=(0,i.__assign)((0,i.__assign)({},h),e(r,a,n)).fontSize;t<o&&(t=o)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,r){var o=(0,i.__assign)((0,i.__assign)((0,i.__assign)({x:0,y:r/2},e.style),{symbol:(0,a.get)(n.marker,"symbol","circle")}),(0,a.get)(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:o}),l=s.getBBox();s.attr("x",l.width/2);var u=s.attr(),c=u.stroke,f=u.fill;return c&&s.set("isStroke",!0),f&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,r,o,s,l){var u=n.formatter,c=n.style,f=(0,i.__assign)((0,i.__assign)({x:s,y:o/2,text:u?u(r[e],r,l):r[e]},h),(0,a.isFunction)(c)?c(r,l,this.getItems()):c);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:f})},e.prototype.drawRadio=function(t,e,n,r,a){var o,s,l=e.style||{},u=null!==(o=l.r)&&void 0!==o?o:r/2,c=3.6*u/8,f=[a+u,r/2-u],h=f[0],p=f[1],d=[h+u,p+u],g=d[0],y=d[1],v=[h,y+u],m=v[0],_=v[1],x=[a,p+u],b=x[0],M=x[1],C=n.showRadio,P=(0,i.__assign)((0,i.__assign)({path:[["M",h,p],["A",u,u,0,0,1,g,y],["L",g-c,y],["L",g,y],["A",u,u,0,0,1,m,_],["L",m,_-c],["L",m,_],["A",u,u,0,0,1,b,M],["L",b+c,M],["L",b,M],["A",u,u,0,0,1,h,p],["L",h,p+c]],stroke:"#000000",fill:"#ffffff"},l),{opacity:C?null!==(s=null==l?void 0:l.opacity)&&void 0!==s?s:.45:0}),S=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:P});return S.set("tip",e.tip),S},e.prototype.drawItem=function(t,e,n,r){var s="item-"+t.id,l=this.addGroup(r,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),u=this.addGroup(l,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),c=this.get("marker"),f=this.get("itemName"),h=this.get("itemValue"),p=this.get("itemBackground"),d=this.get("radio"),g=this.getLimitItemWidth(),y=0;if(c){var v=this.drawMarker(u,c,t,n),m=c.spacing,_=(0,a.get)(t,["marker","spacing"]);(0,a.isNumber)(_)&&(m=_),y=v.getBBox().maxX+m}if(f){var x=this.drawItemText(u,"name",f,t,n,y,e);g&&(0,o.ellipsisLabel)(!0,x,(0,a.clamp)(g-y,0,g)),y=x.getBBox().maxX+f.spacing}if(h){var b=this.drawItemText(u,"value",h,t,n,y,e);g&&(h.alignRight?(b.attr({textAlign:"right",x:g}),(0,o.ellipsisLabel)(!0,b,(0,a.clamp)(g-y,0,g),"head")):(0,o.ellipsisLabel)(!0,b,(0,a.clamp)(g-y,0,g))),y=b.getBBox().maxX+h.spacing}if(d&&this.drawRadio(u,d,t,n,y),p){var M=u.getBBox();this.addShape(u,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:(0,i.__assign)({x:0,y:0,width:M.width,height:n},p.style)}).toBack()}return this.applyItemStates(t,u),u},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,i=this.startY,o=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),l=this.get("maxWidth"),u=this.get("maxHeight"),c=this.get("itemWidth"),h=this.get("itemSpacing"),p=this.getItemHeight(),d=(0,a.deepMix)({},f,this.get("pageNavigator")),g=this.drawNavigation(t,o,"00/00",d),y=g.getBBox(),v={x:r,y:i},m=1,_=0,x=0,b=0,M=this.get("itemMarginBottom");if("horizontal"===o){var C=this.get("maxRow")||1,P=p+(1===C?0:M);this.pageHeight=P*C,(0,a.each)(s,(function(t){var e=t.getBBox(),i=c||e.width;(_&&_<v.x+i+h||l<v.x+i+h+y.width)&&(1===m&&(_=v.x+h,n.pageWidth=_,n.moveElementTo(g,{x:l-h-y.width-y.minX,y:v.y+p/2-y.height/2-y.minY})),m+=1,v.x=r,v.y+=P),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:i+h,height:p}}),v.x+=i+h}))}else{(0,a.each)(s,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),b=x,x+=h,l&&(x=Math.min(l,x),b=Math.min(l,b)),this.pageWidth=x,this.pageHeight=u-Math.max(y.height,p+M);var S=Math.floor(this.pageHeight/(p+M));(0,a.each)(s,(function(t,e){0!==e&&e%S==0&&(m+=1,v.x+=x,v.y=i),n.moveElementTo(t,v),t.getParent().setClip({type:"rect",attrs:{x:v.x,y:v.y,width:x,height:p}}),v.y+=p+M})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+b/2-y.width/2-y.minX,y:u-y.height-y.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),"horizontal"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(m/this.get("maxRow")):this.totalPagesCnt=m,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,r){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),l=(0,a.get)(r.marker,"style",{}),u=l.size,c=void 0===u?12:u,f=(0,i.__rest)(l,["size"]),h=this.drawArrow(s,o,"navigation-arrow-left","horizontal"===e?"up":"left",c,f);h.on("click",this.onNavigationBack);var p=h.getBBox();o.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:(0,i.__assign)({x:o.x,y:o.y+c/2,text:n,textBaseline:"middle"},(0,a.get)(r.text,"style"))}).getBBox();return o.x+=d.width+2,this.drawArrow(s,o,"navigation-arrow-right","horizontal"===e?"down":"right",c,f).on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=(0,a.deepMix)({},f,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,i=e.inactiveFill,o=e.inactiveOpacity,s=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),c=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right");l.attr("text",s),u.attr("opacity",1===this.currentPageIndex?o:r),u.attr("fill",1===this.currentPageIndex?i:n),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),c.attr("opacity",this.currentPageIndex===this.totalPagesCnt?o:r),c.attr("fill",this.currentPageIndex===this.totalPagesCnt?i:n),c.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var h=u.getBBox().maxX+2;l.attr("x",h),h+=l.getBBox().width+2,this.updateArrowPath(c,{x:h,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,o){var l=e.x,u=e.y,c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:(0,i.__assign)({size:a,direction:r,path:[["M",l+a/2,u],["L",l,u+a],["L",l+a,u+a],["Z"]],cursor:"pointer"},o)});return c.attr("matrix",(0,s.getMatrixByAngle)({x:l+a/2,y:u+a/2},p[r])),c},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),a=i.size,o=i.direction,l=(0,s.getMatrixByAngle)({x:n+a/2,y:r+a/2},p[o]);t.attr("path",[["M",n+a/2,r],["L",n,r+a],["L",n+a,r+a],["Z"]]),t.attr("matrix",l)},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return(0,s.getMatrixByTranslate)(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");(0,a.each)(n,(function(e){var n=e.get("name").split("-")[2],i=(0,l.getStatesStyle)(t,n,r);i&&(e.attr(i),"marker"!==n||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(c.default);e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(21)),s=n(10),l=r.__importDefault(n(110)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill:o.default.textColor,textBaseline:"middle",fontFamily:o.default.fontFamily}},handler:{size:10,style:{fill:"#fff",stroke:"#333"}},track:{},rail:{type:"color",size:20,defaultLength:100,style:{fill:"#DCDEE2"}},title:{spacing:5,style:{fill:o.default.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}}}})},e.prototype.isSlider=function(){return!0},e.prototype.getValue=function(){return this.getCurrentValue()},e.prototype.getRange=function(){return{min:this.get("min"),max:this.get("max")}},e.prototype.setRange=function(t,e){this.update({min:t,max:e})},e.prototype.setValue=function(t){var e=this.getValue();this.set("value",t);var n=this.get("group");this.resetTrackClip(),this.get("slidable")&&this.resetHandlers(n),this.delegateEmit("valuechanged",{originValue:e,value:t})},e.prototype.initEvent=function(){var t=this.get("group");this.bindSliderEvent(t),this.bindRailEvent(t),this.bindTrackEvent(t)},e.prototype.drawLegendContent=function(t){this.drawRail(t),this.drawLabels(t),this.fixedElements(t),this.resetTrack(t),this.resetTrackClip(t),this.get("slidable")&&this.resetHandlers(t)},e.prototype.bindSliderEvent=function(t){this.bindHandlersEvent(t)},e.prototype.bindHandlersEvent=function(t){var e=this;t.on("legend-handler-min:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[1];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),l=i-r;l<0?a[0]+l>s.min?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.min,s.min+o]):l>0&&(l>0&&a[1]+l<s.max?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.max-o,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),r=n.style,o=n.align,s=n.formatter,l=this.get(t),u=this.getLabelAlignAttrs(t,o),c="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(c),name:"legend-label-"+t,attrs:(0,i.__assign)((0,i.__assign)({x:0,y:0,text:(0,a.isFunction)(s)?s(l):l},r),u)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",r="middle";return this.isVertical()?(n="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",n="min"===t?"start":"end"):(n="start",r="middle"),{textAlign:n,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),a=i.size,o=i.defaultLength,s=i.type,l=this.isVertical(),u=n,c=r;u||(u=l?a:o),c||(c=l?o:a);var f=[];return"color"===s?(f.push(["M",t,e]),f.push(["L",t+u,e]),f.push(["L",t+u,e+c]),f.push(["L",t,e+c]),f.push(["Z"])):(f.push(["M",t+u,e]),f.push(["L",t+u,e+c]),f.push(["L",t,e+c]),f.push(["Z"])),f},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:(0,i.__assign)({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++){e+=" "+r/(n-1)+":"+t[r]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return(0,a.clone)(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,r,i,a=this.getCurrentValue(),o=a[0],s=a[1],l=this.getRailBBox(t),u=this.getPointByValue(o,t),c=this.getPointByValue(s,t);return this.isVertical()?(e=l.minX,n=u.y,r=l.width,i=c.y-u.y):(e=u.x,n=l.minY,r=c.x-u.x,i=l.height),{x:e,y:n,width:r,height:i}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return(0,a.mix)({path:r,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),a=this.getClipTrackAttrs(t);i?i.attr(a):r.setClip({type:"rect",attrs:a})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i=(t-r)/(n.max-r),a=this.getRailBBox(e),o={x:0,y:0};return this.isVertical()?(o.x=a.minX+a.width/2,o.y=(0,s.getValueByPercent)(a.minY,a.maxY,i)):(o.x=(0,s.getValueByPercent)(a.minX,a.maxX,i),o.y=a.minY+a.height/2),o},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,r=this.getRange(),i=r.min,a=r.max,o=this.getRailCanvasBBox(),l=this.isVertical(),u=this.get("step");n=l?(e-o.minY)/o.height:(t-o.minX)/o.width;var c=(0,s.getValueByPercent)(i,a,n);u&&(c=i+Math.round((c-i)/u)*u);return c>a&&(c=a),c<i&&(c=i),c},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,(0,i.__spreadArrays)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,(0,i.__spreadArrays)(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,a=e.x,o=e.y,s=1.4*i,l=i/2,u=i/6;if(n){var c=a+.4*s;r.push(["M",a,o]),r.push(["L",c,o+l]),r.push(["L",a+s,o+l]),r.push(["L",a+s,o-l]),r.push(["L",c,o-l]),r.push(["Z"]),r.push(["M",c,o+u]),r.push(["L",a+s-2,o+u]),r.push(["M",c,o-u]),r.push(["L",a+s-2,o-u])}else{var f=o+.4*s;r.push(["M",a,o]),r.push(["L",a-l,f]),r.push(["L",a-l,o+s]),r.push(["L",a+l,o+s]),r.push(["L",a+l,f]),r.push(["Z"]),r.push(["M",a-u,f]),r.push(["L",a-u,o+s-2]),r.push(["M",a+u,f]),r.push(["L",a+u,o+s-2])}return r},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),a=this.get("handler"),o=this.getHandlerPath(a,r),s=this.getElementId("handler-"+e),l=t.findById(s),u=this.isVertical();l?l.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:(0,i.__assign)((0,i.__assign)({path:o},a.style),{cursor:u?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var i=this.isVertical()?"height":"width",o=this.get("label"),s=o.align,l=o.spacing,u=this.get("max"+(0,a.upperFirst)(i));if(u){var c=("rail"===s?n[i]+t[i]+e[i]+2*l:n[i])-u;c>0&&this.changeRailLength(r,i,n[i]-c)}},e.prototype.changeRailLength=function(t,e,n){var r,i=t.getBBox();r="height"===e?this.getRailPath(i.x,i.y,i.width,n):this.getRailPath(i.x,i.y,n,i.height),t.attr("path",r)},e.prototype.changeRailPosition=function(t,e,n){var r=t.getBBox(),i=this.getRailPath(e,n,r.width,r.height);t.attr("path",i)},e.prototype.fixedHorizontal=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox(),c=s.height;this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:r.x,y:r.y+c/2}),this.changeRailPosition(n,r.x+l.width+o,r.y),e.attr({x:r.x+l.width+s.width+2*o,y:r.y+c/2})):"top"===a?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+s.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+s.height+o}),e.attr({x:r.x+s.width,y:r.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),a=i.align,o=i.spacing,s=n.getBBox(),l=t.getBBox(),u=e.getBBox();if(this.fitRailLength(l,u,s,n),s=n.getBBox(),"rail"===a)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+l.height+o),e.attr({x:r.x,y:r.y+l.height+s.height+2*o});else if("right"===a)t.attr({x:r.x+s.width+o,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+s.width+o,y:r.y+s.height});else{var c=Math.max(l.width,u.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+c+o,r.y),e.attr({x:r.x,y:r.y+s.height})}},e}(l.default);e.default=u},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Html=void 0;var i=n(459);Object.defineProperty(e,"Html",{enumerable:!0,get:function(){return r(i).default}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(70)),o=n(47),s=n(1),l=r.__importDefault(n(76)),u=n(10),c=r.__importStar(n(111)),f=r.__importDefault(n(460)),h=n(461);var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+c.CONTAINER_CLASS+'"><div class="'+c.TITLE_CLASS+'"></div><ul class="'+c.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+c.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+c.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+c.NAME_CLASS+'">{name}</span>:\n <span class="'+c.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+c.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+c.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:c.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f.default})},e.prototype.render=function(){this.get("customContent")?this.renderCustomContent():(this.resetTitle(),this.renderItems()),this.resetPosition()},e.prototype.clear=function(){this.clearCrosshairs(),this.setTitle(""),this.clearItemDoms()},e.prototype.show=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!0),(0,o.modifyCSS)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),(0,o.modifyCSS)(t,{visibility:"hidden"}),this.setCrossHairsVisible(!1))},e.prototype.getLocation=function(){return{x:this.get("x"),y:this.get("y")}},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetPosition()},e.prototype.setCrossHairsVisible=function(t){var e=t?"":"none",n=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");n&&(0,o.modifyCSS)(n,{display:e}),r&&(0,o.modifyCSS)(r,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){var n,r,i;this.get("customContent")?this.renderCustomContent():(n=e,r=["title","showTitle"],i=!1,(0,s.each)(r,(function(t){if((0,s.hasKey)(n,t))return i=!0,!1})),i&&this.resetTitle(),(0,s.hasKey)(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),r=this.get("offset"),i=this.getOffset(),a=i.offsetX,s=i.offsetY,l=this.get("position"),c=this.get("region"),f=this.getContainer(),p=this.getBBox(),d=p.width,g=p.height;c&&(t=(0,u.regionToBBox)(c));var y=(0,h.getAlignPoint)(e,n,r,d,g,l,t);(0,o.modifyCSS)(f,{left:(0,u.toPx)(y.x+a),top:(0,u.toPx)(y.y+s)}),this.resetCrosshairs()},e.prototype.renderCustomContent=function(){var t=this.getHtmlContentNode(),e=this.get("parent"),n=this.get("container");n&&n.parentNode===e?e.replaceChild(t,n):e.appendChild(t),this.set("container",t),this.resetStyles(),this.applyStyles()},e.prototype.getHtmlContentNode=function(){var t,e=this.get("customContent");if(e){var n=e(this.get("title"),this.get("items"));t=(0,s.isElement)(n)?n:(0,o.createDom)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(c.TITLE_CLASS)[0],n=t.getElementsByClassName(c.LIST_CLASS)[0];this.set("titleDom",e),this.set("listDom",n)},e.prototype.resetTitle=function(){var t=this.get("title");this.get("showTitle")&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=(0,u.regionToBBox)(t),r=this.get("xCrosshairDom"),i=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),i&&(i.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),r&&(r.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),r=this.get(t);"x"===t?(0,o.modifyCSS)(n,{left:(0,u.toPx)(r),top:(0,u.toPx)(e.y),height:(0,u.toPx)(e.height)}):(0,o.modifyCSS)(n,{top:(0,u.toPx)(r),left:(0,u.toPx)(e.x),width:(0,u.toPx)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=c[r],a=this.get(e),s=this.get("parent");return a||(a=(0,o.createDom)(this.get(n)),this.applyStyle(i,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&((0,s.each)(t,(function(t){var r=a.default.toCSSGradient(t.color),l=(0,i.__assign)((0,i.__assign)({},t),{color:r}),u=(0,s.substitute)(e,l),c=(0,o.createDom)(u);n.appendChild(c)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&(0,u.clearDom)(this.get("listDom"))},e.prototype.clearCrosshairs=function(){var t=this.get("xCrosshairDom"),e=this.get("yCrosshairDom");t&&t.remove(),e&&e.remove(),this.set("xCrosshairDom",null),this.set("yCrosshairDom",null)},e}(l.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(0),a=i.__importDefault(n(21)),o=i.__importStar(n(111));e.default=((r={})[""+o.CONTAINER_CLASS]={position:"absolute",visibility:"visible",zIndex:8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)",backgroundColor:"rgba(255, 255, 255, 0.9)",boxShadow:"0px 0px 10px #aeaeae",borderRadius:"3px",color:"rgb(87, 87, 87)",fontSize:"12px",fontFamily:a.default.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+o.TITLE_CLASS]={marginBottom:"4px"},r[""+o.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+o.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+o.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+o.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+o.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+o.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r)},function(t,e,n){"use strict";function r(t,e,n,r,i){return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}function i(t,e,n,r,i,a){var o=t,s=e;switch(a){case"left":o=t-r-n,s=e-i/2;break;case"right":o=t+n,s=e-i/2;break;case"top":o=t-r/2,s=e-i-n;break;case"bottom":o=t-r/2,s=e+n;break;default:o=t+n,s=e-i-n}return{x:o,y:s}}Object.defineProperty(e,"__esModule",{value:!0}),e.getAlignPoint=e.getPointByPosition=e.getOutSides=void 0,e.getOutSides=r,e.getPointByPosition=i,e.getAlignPoint=function(t,e,n,a,o,s,l){var u=i(t,e,n,a,o,s);if(l){var c=r(u.x,u.y,a,o,l);"auto"===s?(c.right&&(u.x=Math.max(0,t-a-n)),c.top&&(u.y=Math.max(0,e-o-n))):"top"===s||"bottom"===s?(c.left&&(u.x=l.x),c.right&&(u.x=l.x+l.width-a),"top"===s&&c.top&&(u.y=e+n),"bottom"===s&&c.bottom&&(u.y=e-o-n)):(c.top&&(u.y=l.y),c.bottom&&(u.y=l.y+l.height-o),"left"===s&&c.left&&(u.x=t+n),"right"===s&&c.right&&(u.x=t-a-n))}return u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(463);Object.defineProperty(e,"Slider",{enumerable:!0,get:function(){return r.Slider}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Slider=void 0;var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(9)),s=n(464),l=n(467),u=n(468),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var r=n.originalEvent;r.stopPropagation(),r.preventDefault(),e.prevX=(0,a.get)(r,"touches.0.pageX",r.pageX),e.prevY=(0,a.get)(r,"touches.0.pageY",r.pageY);var i=e.getContainerDOM();i.addEventListener("mousemove",e.onMouseMove),i.addEventListener("mouseup",e.onMouseUp),i.addEventListener("mouseleave",e.onMouseUp),i.addEventListener("touchmove",e.onMouseMove),i.addEventListener("touchend",e.onMouseUp),i.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,r=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var i=(0,a.get)(t,"touches.0.pageX",t.pageX),o=(0,a.get)(t,"touches.0.pageY",t.pageY),s=i-e.prevX,l=e.adjustOffsetRange(s/n);e.updateStartEnd(l),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=i,e.prevY=o,e.draw(),e.emit(u.SLIDER_CHANGE,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:r,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return(0,i.__extends)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),r=this.get("end"),i=(0,a.clamp)(n,t,e),o=(0,a.clamp)(r,t,e);this.get("isInit")||n===i&&r===o||this.setValue([i,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if((0,a.isArray)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:(0,a.clamp)(t[0],e.min,e.max),end:(0,a.clamp)(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:u.BACKGROUND_STYLE,foregroundStyle:u.FOREGROUND_STYLE,handlerStyle:u.HANDLER_STYLE,textStyle:u.TEXT_STYLE}})},e.prototype.update=function(e){var n=e.start,r=e.end,o=(0,i.__assign)({},e);(0,a.isNil)(n)||(o.start=(0,a.clamp)(n,0,1)),(0,a.isNil)(r)||(o.end=(0,a.clamp)(r,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",(0,a.clamp)(this.get("start"),0,1)),this.set("end",(0,a.clamp)(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),r=e.height,o=e.trendCfg,c=void 0===o?{}:o,f=e.minText,h=e.maxText,p=e.backgroundStyle,d=void 0===p?{}:p,g=e.foregroundStyle,y=void 0===g?{}:g,v=e.textStyle,m=void 0===v?{}:v,_=(0,a.deepMix)({},l.DEFAULT_HANDLER_STYLE,this.cfg.handlerStyle);(0,a.size)((0,a.get)(c,"data"))&&(this.trend=this.addComponent(t,(0,i.__assign)({component:s.Trend,id:this.getElementId("trend"),x:0,y:0,width:n,height:r},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},d)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"right",text:f,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:(0,i.__assign)({y:r/2,textAlign:"left",text:h,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:(0,i.__assign)({y:0,height:r},y)});var x=(0,a.get)(_,"width",u.DEFAULT_HANDLER_WIDTH),b=(0,a.get)(_,"height",24);this.minHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(r-b)/2,width:x,height:b,cursor:"ew-resize",style:_}),this.maxHandler=this.addComponent(t,{component:l.Handler,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(r-b)/2,width:x,height:b,cursor:"ew-resize",style:_})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var r=this.cfg,i=r.start,o=r.end,s=r.width,l=r.minText,c=r.maxText,f=r.handlerStyle,h=r.height,p=i*s,d=o*s;this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",d-p);var g=(0,a.get)(f,"width",u.DEFAULT_HANDLER_WIDTH);e.attr("text",l),n.attr("text",c);var y=this._dodgeText([p,d],e,n),v=y[0],m=y[1];this.minHandler&&(this.minHandler.update({x:p-g/2}),this.get("updateAutoRender")||this.minHandler.render()),(0,a.each)(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:d-g/2}),this.get("updateAutoRender")||this.maxHandler.render()),(0,a.each)(m,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":var i=0-n,a=1-n;return Math.min(a,Math.max(i,t));case"maxHandler":i=0-r,a=1-r;return Math.min(a,Math.max(i,t));case"foreground":i=0-n,a=1-r;return Math.min(a,Math.max(i,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,r=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":r+=t;break;case"foreground":n+=t,r+=t}this.set("start",n),this.set("end",r)},e.prototype._dodgeText=function(t,e,n){var r,i,o=this.cfg,s=o.handlerStyle,l=o.width,c=(0,a.get)(s,"width",u.DEFAULT_HANDLER_WIDTH),f=t[0],h=t[1],p=!1;f>h&&(f=(r=[h,f])[0],h=r[1],e=(i=[n,e])[0],n=i[1],p=!0);var d=e.getBBox(),g=n.getBBox(),y=d.width>f-2?{x:f+c/2+2,textAlign:"left"}:{x:f-c/2-2,textAlign:"right"},v=g.width>l-h-2?{x:h-c/2-2,textAlign:"right"}:{x:h+c/2+2,textAlign:"left"};return p?[v,y]:[y,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.default);e.Slider=c,e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Trend=void 0;var r=n(0),i=n(0),a=r.__importDefault(n(9)),o=n(465),s=n(466),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o.BACKGROUND_STYLE,lineStyle:o.LINE_STYLE,areaStyle:o.AREA_STYLE})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,l=e.isArea,u=e.backgroundStyle,c=e.lineStyle,f=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:(0,i.__assign)({x:0,y:0,width:n,height:r},u)});var h=(0,s.dataToPath)(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:(0,i.__assign)({path:h},c)}),l){var p=(0,s.linePathToAreaPath)(h,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:(0,i.__assign)({path:p},f)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a.default);e.Trend=l,e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AREA_STYLE=e.LINE_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={opacity:0},e.LINE_STYLE={stroke:"#C5C5C5",strokeOpacity:.85},e.AREA_STYLE={fill:"#CACED4",opacity:.85}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.linePathToAreaPath=e.getAreaLineY=e.dataToPath=e.getSmoothLinePath=e.getLinePath=void 0;var r=n(0),i=n(50),a=n(103),o=n(1);function s(t){return function(t){return(0,o.map)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function l(t){if(t.length<=2)return s(t);var e=[];(0,o.each)(t,(function(t){(0,o.isEqual)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=(0,i.catmullRom2Bezier)(e,!1),r=(0,o.head)(t),a=r[0],l=r[1];return n.unshift(["M",a,l]),n}function u(t,e){var n=new a.Linear({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}e.getLinePath=s,e.getSmoothLinePath=l,e.dataToPath=function(t,e,n,r){void 0===r&&(r=!0);var i=new a.Linear({values:t}),u=new a.Category({values:(0,o.map)(t,(function(t,e){return e}))}),c=(0,o.map)(t,(function(t,r){return[u.scale(r)*e,n-i.scale(t)*n]}));return r?l(c):s(c)},e.getAreaLineY=u,e.linePathToAreaPath=function(t,e,n,i){var a=(0,r.__spreadArrays)(t),o=u(i,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Handler=e.DEFAULT_HANDLER_STYLE=void 0;var r=n(0),i=n(0),a=r.__importDefault(n(9));e.DEFAULT_HANDLER_STYLE={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"};var o=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(n,t),n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},n),{name:"handler",x:0,y:0,width:10,height:24,style:e.DEFAULT_HANDLER_STYLE})},n.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,a=i.fill,o=i.stroke,s=i.radius,l=i.opacity,u=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:a,stroke:o,radius:s,opacity:l,cursor:u}});var c=1/3*n,f=2/3*n,h=1/4*r,p=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:c,y1:h,x2:c,y2:p,stroke:o,cursor:u}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:h,x2:f,y2:p,stroke:o,cursor:u}})},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},n.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},n}(a.default);e.Handler=o,e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SLIDER_CHANGE=e.TEXT_STYLE=e.HANDLER_STYLE=e.DEFAULT_HANDLER_WIDTH=e.FOREGROUND_STYLE=e.BACKGROUND_STYLE=void 0,e.BACKGROUND_STYLE={fill:"#416180",opacity:.05},e.FOREGROUND_STYLE={fill:"#5B8FF9",opacity:.15,cursor:"move"},e.DEFAULT_HANDLER_WIDTH=10,e.HANDLER_STYLE={width:e.DEFAULT_HANDLER_WIDTH,height:24},e.TEXT_STYLE={textBaseline:"middle",fill:"#000",opacity:.45},e.SLIDER_CHANGE="sliderchange"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(0).__exportStar(n(470),e)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbar=e.DEFAULT_THEME=void 0;var r=n(0),i=n(0),a=n(47),o=n(1),s=r.__importDefault(n(9));e.DEFAULT_THEME={default:{trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},hover:{thumbColor:"rgba(0,0,0,0.2)"}};var l=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.noop,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?(0,o.get)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?(0,o.get)(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?r:i,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[(0,a.addEventListener)(t,"touchmove",e.onMouseMove),(0,a.addEventListener)(t,"touchend",e.onMouseUp),(0,a.addEventListener)(t,"touchcancel",e.onMouseUp)]:[(0,a.addEventListener)(t,"mousemove",e.onMouseMove),(0,a.addEventListener)(t,"mouseup",e.onMouseUp),(0,a.addEventListener)(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,r=n.isHorizontal,i=n.thumbOffset;t.preventDefault();var a=e.isMobile?(0,o.get)(t,"touches.0.clientX"):t.clientX,s=e.isMobile?(0,o.get)(t,"touches.0.clientY"):t.clientY,l=r?a:s,u=l-e.startPos;e.startPos=l,e.updateThumbOffset(i+u)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM().getBoundingClientRect(),l=t.clientX,u=t.clientY,c=r?l-s.left-i-o/2:u-s.top-a-o/2,f=e.validateRange(c);e.updateThumbOffset(f)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return(0,i.__extends)(n,t),n.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=(0,o.clamp)(n,t,e);n===r||this.get("isInit")||this.setValue(r)},n.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},n.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*(0,o.clamp)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},n.prototype.getValue=function(){return(0,o.clamp)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},n.prototype.getDefaultCfg=function(){var n=t.prototype.getDefaultCfg.call(this);return(0,i.__assign)((0,i.__assign)({},n),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:e.DEFAULT_THEME})},n.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},n.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},n.prototype.initEvent=function(){this.bindEvents()},n.prototype.renderTrackShape=function(t){var n=this.cfg,r=n.trackLen,i=n.theme,a=void 0===i?{default:{}}:i,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,l=s.lineCap,u=s.trackColor,c=s.size,f=(0,o.get)(this.cfg,"size",c),h=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:r-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l}:{x1:f/2,y1:0+f/2,x2:f/2,y2:r-f/2,lineWidth:f,stroke:u,lineCap:l};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},n.prototype.renderThumbShape=function(t){var n=this.cfg,r=n.thumbOffset,i=n.thumbLen,a=n.theme,s=(0,o.deepMix)({},e.DEFAULT_THEME,a).default,l=s.size,u=s.lineCap,c=s.thumbColor,f=(0,o.get)(this.cfg,"size",l),h=this.get("isHorizontal")?{x1:r+f/2,y1:f/2,x2:r+i-f/2,y2:f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"}:{x1:f/2,y1:r+f/2,x2:f/2,y2:r+i-f/2,lineWidth:f,stroke:c,lineCap:u,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:h})},n.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp),t.findById(this.getElementId("track")).on("click",this.onTrackClick);var e=t.findById(this.getElementId("thumb"));e.on("mouseover",this.onThumbMouseOver),e.on("mouseout",this.onThumbMouseOut)},n.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},n.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,r=e.trackLen,i=t;return t+n>r?i=r-n:t+n<n&&(i=0),i},n.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},n.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,a=e.size,o=this.validateRange(t);if(o!==n){var s=this.getElementByLocalId("thumb");r?s.attr({x1:o+a/2,x2:o+i-a/2}):s.attr({y1:o+a/2,y2:o+i-a/2}),this.emitOffsetChange(o)}},n.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:(0,o.clamp)(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},n}(s.default);e.Scrollbar=l},function(t,e){},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseAction=void 0;var r=n(0),i=n(1),a=n(203),o=r.__importDefault(n(475)),s=r.__importDefault(n(204));function l(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||(0,a.createAction)(i,e);if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function u(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}e.parseAction=l;var c="start",f="showEnable",h="end",p="rollback",d="processing",g=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return r.__extends(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;(0,i.each)(this.steps,(function(e,n){(0,i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;(0,i.each)(this.steps,(function(e,n){(0,i.each)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.offEvent(e.trigger,r)}))}))},e.prototype.initContext=function(){var t=this.view,e=new o.default(t);this.context=e;var n=this.steps;(0,i.each)(n,(function(t){(0,i.each)(t,(function(t){if((0,i.isFunction)(t.action))t.actionObject={action:(0,a.createCallbackAction)(t.action,e),methodName:"execute"};else if((0,i.isString)(t.action))t.actionObject=l(t.action,e,t.arg);else if((0,i.isArray)(t.action)){var n=t.action,r=(0,i.isArray)(t.arg)?t.arg:[t.arg];t.actionObject=[],(0,i.each)(n,(function(n,i){t.actionObject.push(l(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===f)return!0;if(t===d)return e===c;if(t===c)return e!==d;if(t===h)return e===d||e===c;if(t===p){if(n[h])return e===h;if(e===c)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==f&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,r=this.context,a=this.callbackCaches,o=e.actionObject;if(e.action&&o){var s=this.getKey(t,e);if(!a[s]){var l=function(a){r.event=a,n.isAllowExecute(t,e)?((0,i.isArray)(o)?(0,i.each)(o,(function(t){r.event=a,u(t)})):(r.event=a,u(o)),n.afterExecute(t,e),e.callback&&(r.event=a,e.callback(r))):r.event=null};e.debounce?a[s]=(0,i.debounce)(l,e.debounce.wait,e.debounce.immediate):e.throttle?a[s]=(0,i.throttle)(l,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):a[s]=l}return a[s]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(r.__importDefault(n(11)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(4),a=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;return t?t.target instanceof HTMLElement?this.view.getCanvas().getPointByClient(t.clientX,t.clientY):{x:t.x,y:t.y}:null},t.prototype.getCurrentShape=function(){return(0,r.get)(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=(0,i.getComponents)(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&(0,i.isInBox)(r,n):(0,i.isInBox)(r,n)}))},t.prototype.destroy=function(){(0,r.each)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createTheme=void 0;var r=n(0),i=n(1),a=n(207),o=n(477);e.createTheme=function(t){var e=t.styleSheet,n=void 0===e?{}:e,s=r.__rest(t,["styleSheet"]),l=(0,o.createLightStyleSheet)(n);return(0,i.deepMix)({},(0,a.createThemeByStyleSheet)(l),s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvLight=e.createLightStyleSheet=void 0;var r=n(0),i="#000",a="#595959",o="#8C8C8C",s="#BFBFBF",l="#D9D9D9",u="#F0F0F0",c="#FFFFFF",f="#D9D9D9",h=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],p=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],d=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createLightStyleSheet=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?h:e,g=t.paletteQualitative20,y=void 0===g?p:g,v=t.brandColor,m=void 0===v?n[0]:v,_={backgroundColor:"transparent",brandColor:m,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:y,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:d,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:s,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:a,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:f,axisTickLineBorderColor:s,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:l,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:o,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:l,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:o,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:m,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:a,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:i,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:i,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:o,legendPageNavigatorTextFontSize:12,sliderRailFillColor:l,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:o,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:u,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:s,annotationArcBorderColor:l,annotationArcBorder:1,annotationLineBorderColor:s,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:a,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:i,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:s,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:a,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:a,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:c,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:a,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:c,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:s,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:m,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:c,pointBorderOpacity:1,pointActiveBorderColor:i,pointSelectedBorder:2,pointSelectedBorderColor:i,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:m,hollowPointBorderOpacity:.95,hollowPointFillColor:c,hollowPointActiveBorder:1,hollowPointActiveBorderColor:i,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:i,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:m,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:m,areaFillOpacity:.25,areaActiveFillColor:m,areaActiveFillOpacity:.5,areaSelectedFillColor:m,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:m,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:i,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:i,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:m,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:i,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:i,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:m,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:c,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:i,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:i,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return r.__assign(r.__assign({},_),t)},e.antvLight=(0,e.createLightStyleSheet)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(19),o=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return(0,i.some)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,o=n.cfg,s="theta"===i,l=r.__assign({start:t,end:e},o),u=(0,a.getCoordinate)(s?"polar":i);return this.coordinate=new u(l),this.coordinate.type=i,s&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return r.__assign({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;(0,i.each)(n,(function(n){var a,o=r.__read(n),s=o[0],l=o.slice(1);(!!(0,i.isNil)(t)||t.includes(s))&&(a=e.coordinate)[s].apply(a,r.__spreadArray([],r.__read(l),!1))}))},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=t.getController("axis"),n=t.getController("legend"),r=t.getController("annotation");[e,t.getController("slider"),t.getController("scrollbar"),n,r].forEach((function(t){t&&t.layout()}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ScalePool=void 0;var r=n(1),i=n(38),a=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,a){var o=n,s=this.getScaleMeta(a);if(0===e.length&&s){var l=s.scale,u={type:l.type};l.isCategory&&(u.values=l.values),o=(0,r.deepMix)(u,s.scaleDef,n)}var c=(0,i.createScaleByField)(t,e,o);return this.cacheScale(c,n,a),c},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(a,o){var s=Number.MAX_SAFE_INTEGER,l=Number.MIN_SAFE_INTEGER,u=[];(0,r.each)(a,(function(t){var e=n.getScale(t);l=(0,r.isNumber)(e.max)?Math.max(l,e.max):l,s=(0,r.isNumber)(e.min)?Math.min(s,e.min):s,(0,r.each)(e.values,(function(t){u.includes(t)||u.push(t)}))})),(0,r.each)(a,(function(a){var o=n.getScale(a);if(o.isContinuous)o.change({min:s,max:l,values:u});else if(o.isCategory){var c=o.range,f=n.getScaleMeta(a);u&&!(0,r.get)(f,["scaleDef","range"])&&(c=(0,i.getDefaultCategoryScaleRange)((0,r.deepMix)({},o,{values:u}),t,e)),o.change({values:u,range:c})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?((0,i.syncScale)(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var a=this.getSyncKey(r);if(r.syncKey=a,this.removeFromSyncScales(n),a){var o=this.syncScales.get(a);o||(o=[],this.syncScales.set(a,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=(0,r.last)(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,r=this.syncScales.get(n);if(r&&r.length){var i=r.indexOf(t);-1!==i&&r.splice(i,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,r){var i=n.indexOf(t);if(-1!==i)return n.splice(i,1),0===n.length&&e.syncScales.delete(r),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,a=(0,r.get)(n,["sync"]);return!0===a?i:!1===a?void 0:a},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}();e.ScalePool=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.calculatePadding=void 0;var r=n(0),i=n(1),a=n(2),o=n(29),s=n(113),l=n(209);e.calculatePadding=function(t){var e=t.padding;if(!(0,s.isAutoPadding)(e))return new(l.PaddingCal.bind.apply(l.PaddingCal,r.__spreadArray([void 0],r.__read((0,s.parsePadding)(e)),!1)));var n=t.viewBBox,u=new l.PaddingCal,c=[],f=[],h=[];return(0,i.each)(t.getComponents(),(function(t){var e=t.type;e===a.COMPONENT_TYPE.AXIS?c.push(t):[a.COMPONENT_TYPE.LEGEND,a.COMPONENT_TYPE.SLIDER,a.COMPONENT_TYPE.SCROLLBAR].includes(e)?f.push(t):e!==a.COMPONENT_TYPE.GRID&&e!==a.COMPONENT_TYPE.TOOLTIP&&h.push(t)})),(0,i.each)(c,(function(t){var e=t.component.getLayoutBBox(),r=new o.BBox(e.x,e.y,e.width,e.height).exceed(n);u.max(r)})),(0,i.each)(f,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=e.get("padding"),a=new o.BBox(r.x,r.y,r.width,r.height).expand(i);u.inc(a,n)})),(0,i.each)(h,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),i=new o.BBox(r.x,r.y,r.width,r.height);u.inc(i,n)})),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.defaultSyncViewPadding=void 0,e.defaultSyncViewPadding=function(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.group=void 0;var r=n(0),i=n(1);e.group=function(t,e,n){var a,o;if(void 0===n&&(n={}),!e)return[t];var s=(0,i.groupToMap)(t,e),l=[];if(1===e.length&&n[e[0]]){var u=n[e[0]];try{for(var c=r.__values(u),f=c.next();!f.done;f=c.next()){var h=f.value,p=s["_".concat(h)];p&&l.push(p)}}catch(t){a={error:t}}finally{try{f&&!f.done&&(o=c.return)&&o.call(c)}finally{if(a)throw a.error}}}else for(var d in s)if(s.hasOwnProperty(d)){var g=s[d];l.push(g)}return l}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseFields=void 0;var r=n(1);e.parseFields=function(t){return(0,r.isArray)(t)?t:t.split("*")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(36),o=n(117),s=n(53),l=n(13),u=n(54),c=n(2),f=n(486),h=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),r.__awaiter(this,void 0,void 0,(function(){var o,s,l,u,c,h,p,d,g=this;return r.__generator(this,(function(y){switch(y.label){case 0:if(o={},s=this.createOffscreenGroup(),!t.length)return[3,2];try{for(l=r.__values(t),u=l.next();!u.done;u=l.next())(c=u.value)&&(o[c.id]=this.renderLabel(c,s))}catch(t){p={error:t}}finally{try{u&&!u.done&&(d=l.return)&&d.call(l)}finally{if(p)throw p.error}}return[4,this.doLayout(t,e,o)];case 1:y.sent(),this.renderLabelLine(t,o),this.renderLabelBackground(t,o),this.adjustLabel(t,o),y.label=2;case 2:return h=this.shapesMap,(0,i.each)(o,(function(t,e){if(t.destroyed)delete o[e];else{if(h[e]){var s=t.get("data"),l=t.get("origin"),u=t.get("coordinate"),c=t.get("animateCfg"),p=h[e];(0,f.updateLabel)(p,o[e],{data:s,origin:l,animateCfg:c,coordinate:u}),o[e]=p}else{if(g.container.destroyed)return;g.container.add(t);var d=(0,i.get)(t.get("animateCfg"),n?"enter":"appear");d&&(0,a.doAnimate)(t,d,{toAttrs:r.__assign({},t.attr()),coordinate:t.get("coordinate")})}delete h[e]}})),(0,i.each)(h,(function(t){var e=(0,i.get)(t.get("animateCfg"),"leave");e?(0,a.doAnimate)(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=o,s.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,a=t.id,o=t.elementId,s=t.data,l=t.mappingData,f=t.coordinate,h=t.animate,p=t.content,d={id:a,elementId:o,data:s,origin:r.__assign(r.__assign({},l),{data:l[c.FIELD_ORIGIN]}),coordinate:f},g=e.addGroup(r.__assign({name:"label",animateCfg:!1!==this.animate&&null!==h&&!1!==h&&(0,i.deepMix)({},this.animate,h)},d));if(p.isGroup&&p.isGroup()||p.isShape&&p.isShape()){var y=p.getCanvasBBox(),v=y.width,m=y.height,_=(0,i.get)(t,"textAlign","left"),x=t.x,b=t.y-m/2;"center"===_?x-=v/2:"right"!==_&&"end"!==_||(x-=v),(0,u.translate)(p,x,b),n=p,g.add(p)}else{var M=(0,i.get)(t,["style","fill"]);n=g.addShape("text",r.__assign({attrs:r.__assign(r.__assign({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:(0,i.get)(t,"textBaseline","middle"),text:t.content},t.style),{fill:(0,i.isNull)(M)?t.color:M})},d))}return t.rotate&&(0,u.rotate)(n,t.rotate),g},t.prototype.doLayout=function(t,e,n){return r.__awaiter(this,void 0,void 0,(function(){var a,s=this;return r.__generator(this,(function(r){switch(r.label){case 0:return this.layout?(a=(0,i.isArray)(this.layout)?this.layout:[this.layout],[4,Promise.all(a.map((function(r){var a=(0,o.getGeometryLabelLayout)((0,i.get)(r,"type",""));if(a){var l=[],u=[];return(0,i.each)(n,(function(t,n){l.push(t),u.push(e[t.get("elementId")])})),a(t,l,u,s.region,r.cfg)}})))]):[3,2];case 1:r.sent(),r.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){(0,i.each)(t,(function(t){var n=(0,i.get)(t,"coordinate");if(t&&n){var a=n.getCenter(),o=n.getRadius();if(t.labelLine){var s=(0,i.get)(t,"labelLine",{}),u=t.id,c=s.path;if(!c){var f=(0,l.polarToCartesian)(a.x,a.y,o,t.angle);c=[["M",f.x,f.y],["L",t.x,t.y]]}var h=e[u];h.destroyed||h.addShape("path",{capture:!1,attrs:r.__assign({path:c,stroke:t.color?t.color:(0,i.get)(t,["style","fill"],"#000"),fill:null},s.style),id:u,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){(0,i.each)(t,(function(t){var n=(0,i.get)(t,"coordinate"),a=(0,i.get)(t,"background");if(a&&n){var o=t.id,l=e[o];if(!l.destroyed){var u=l.getChildren()[0];if(u){var c=(0,s.getLabelBackgroundInfo)(l,t,a.padding),f=c.rotation,h=r.__rest(c,["rotation"]),p=l.addShape("rect",{attrs:r.__assign(r.__assign({},h),a.style||{}),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),f){var d=u.getMatrix();p.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){(0,i.each)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var a=r.findAll((function(t){return"path"!==t.get("type")}));(0,i.each)(a,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.updateLabel=void 0;var r=n(1),i=n(36),a=n(13);e.updateLabel=function t(e,n,o){var s=o.data,l=o.origin,u=o.animateCfg,c=o.coordinate,f=(0,r.get)(u,"update");e.set("data",s),e.set("origin",l),e.set("animateCfg",u),e.set("coordinate",c),e.set("visible",n.get("visible")),(e.getChildren()||[]).forEach((function(r,h){var p=n.getChildByIndex(h);if(p){r.set("data",s),r.set("origin",l),r.set("animateCfg",u),r.set("coordinate",c);var d=(0,a.getReplaceAttrs)(r,p);f?(0,i.doAnimate)(r,f,{toAttrs:d,coordinate:c}):r.attr(d),p.isGroup()&&t(r,p,o)}else e.removeChild(r),r.remove(!0)})),(0,r.each)(n.getChildren(),(function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.antvDark=e.createDarkStyleSheet=void 0;var r=n(0),i="#000",a="#262626",o="#BFBFBF",s="#F0F0F0",l="#FFFFFF",u="#A6A6A6",c="#737373",f="#404040",h="#262626",p=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],d=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],g=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"];e.createDarkStyleSheet=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?p:e,y=t.paletteQualitative20,v=void 0===y?d:y,m=t.brandColor,_={backgroundColor:"#141414",brandColor:void 0===m?n[0]:m,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:v,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:g,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:f,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:u,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:a,axisTickLineBorderColor:f,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:h,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:c,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:h,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:c,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:p[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:u,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:c,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:c,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:u,legendPageNavigatorTextFontSize:12,sliderRailFillColor:h,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:c,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:s,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:o,annotationArcBorderColor:h,annotationArcBorder:1,annotationLineBorderColor:f,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:u,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:l,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:f,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:u,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:u,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:i,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:u,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:i,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:f,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:p[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:i,pointBorderOpacity:1,pointActiveBorderColor:l,pointSelectedBorder:2,pointSelectedBorderColor:l,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:p[0],hollowPointBorderOpacity:.95,hollowPointFillColor:i,hollowPointActiveBorder:1,hollowPointActiveBorderColor:l,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:l,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:p[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:p[0],areaFillOpacity:.25,areaActiveFillColor:p[0],areaActiveFillOpacity:.5,areaSelectedFillColor:p[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:p[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:l,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:l,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:p[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:l,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:l,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:p[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:i,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:l,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:l,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return r.__assign(r.__assign({},_),t)},e.antvDark=(0,e.createDarkStyleSheet)()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),s=a.x,l=a.y,u=a.r,c=i/2,f=(0,o.distance)(s,l,t,e);return r&&n?f<=u+c:r?f<=u:!!n&&(f>=u-c&&f<=u+c)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.r;t.beginPath(),t.arc(n,r,i,0,2*Math.PI,!1),t.closePath()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0);function a(t,e,n,r){return t/(n*n)+e/(r*r)}var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),s=i/2,l=o.x,u=o.y,c=o.rx,f=o.ry,h=(t-l)*(t-l),p=(e-u)*(e-u);return r&&n?a(h,p,c+s,f+s)<=1:r?a(h,p,c,f)<=1:!!n&&(a(h,p,c-s,f-s)>=1&&a(h,p,c+s,f+s)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,a,0,0,2*Math.PI,!1);else{var o=i>a?i:a,s=i>a?1:i/a,l=i>a?a/i:1;t.save(),t.translate(n,r),t.scale(s,l),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(r.__importDefault(n(26)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15);function s(t){return t instanceof HTMLElement&&(0,o.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if((0,o.isString)(t)){var r=new Image;r.onload=function(){if(e.destroyed)return!1;e.attr("img",r),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},r.crossOrigin="Anonymous",r.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):s(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,l=e.sx,u=e.sy,c=e.swidth,f=e.sheight,h=e.img;(h instanceof Image||s(h))&&((0,o.isNil)(l)||(0,o.isNil)(u)||(0,o.isNil)(c)||(0,o.isNil)(f)?t.drawImage(h,n,r,i,a):t.drawImage(h,l,u,c,f,n,r,i,a))},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=r.__importDefault(n(26)),s=r.__importDefault(n(81)),l=r.__importStar(n(80)),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2,a=t.startArrow,o=t.endArrow;a&&l.addStartArrow(this,t,r,i,e,n),o&&l.addEndArrow(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr(),o=a.x1,l=a.y1,u=a.x2,c=a.y2;return(0,s.default)(o,l,u,c,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,u={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(u=l.getShortenOffset(n,r,i,a,e.startArrow.d)),s&&s.d&&(c=l.getShortenOffset(n,r,i,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+u.dx,r+u.dy),t.lineTo(i-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(50),s=r.__importDefault(n(26)),l=n(15),u=n(63),c={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},"triangle-down":function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}},f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return(0,a.isNil)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,a=r.y,s=r.symbol||"circle",u=this._getR(r);if((0,l.isFunction)(s))n=(t=s)(i,a,u),n=(0,o.path2Absolute)(n);else{if(!(t=e.Symbols[s]))return console.warn(s+" marker is not supported."),null;n=t(i,a,u)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");(0,u.drawPath)(this,t,{path:e},n)},e.Symbols=c,e}(s.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(1),s=r.__importDefault(n(26)),l=n(50),u=n(63),c=r.__importDefault(n(220)),f=r.__importDefault(n(221)),h=r.__importDefault(n(495)),p=r.__importStar(n(80));function d(t,e,n){for(var r=!1,i=0;i<t.length;i++){var a=t[i];if(r=(0,f.default)(a,e,n))break}return r}var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=(0,l.path2Absolute)(t);var e=h.default.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=(0,l.path2Segments)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var r=this.getStartTangent();p.addStartArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}if(n){r=this.getEndTangent();p.addEndArrow(this,t,r[0][0],r[0][1],r[1][0],r[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.getSegments(),o=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=h.default.isPointInStroke(a,i,t,e,l)}if(!s&&r)if(o)s=(0,c.default)(this,t,e);else{var u=this.attr("path"),f=h.default.extractPolygons(u);s=d(f.polygons,t,e)||d(f.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");(0,u.drawPath)(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return(0,o.isNil)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;(0,o.each)(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var s=i[n];if((0,o.isNil)(s)||(0,o.isNil)(n))return null;var l=s.length,u=i[n+1];return a.Cubic.pointAt(s[l-2],s[l-1],u[1],u[2],u[3],u[4],u[5],u[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",h.default.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,s=0,l=[],u=this.get("curve");u&&((0,o.each)(u,(function(t,e){n=u[e+1],r=t.length,n&&(i+=a.Cubic.length(t[r-2],t[r-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",i),0!==i?((0,o.each)(u,(function(o,c){n=u[c+1],r=o.length,n&&((t=[])[0]=s/i,e=a.Cubic.length(o[r-2],o[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),s+=e||0,t[1]=s/i,l.push(t))})),this.set("tCache",l)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,r=e[1].currentPoint,i=e[1].startTangent;t=[],i?(t.push([n[0]-i[0],n[1]-i[1]]),t.push([n[0],n[1]])):(t.push([r[0],r[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var r=e[n-2].currentPoint,i=e[n-1].currentPoint,a=e[n-1].endTangent;t=[],a?(t.push([i[0]-a[0],i[1]-a[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(s.default);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(20),s=n(20),l=n(8),u=r.__importStar(n(91)),c=n(15),f=r.__importDefault(n(81)),h=r.__importDefault(n(222)),p=l.ext.transform;e.default=(0,i.__assign)({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],a=0;a<e;a++){var o=t[a],s=o[0];"M"===s?(i.length&&(r.push(i),i=[]),i.push([o[1],o[2]])):"Z"===s?i.length&&(n.push(i),i=[]):i.push([o[1],o[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var a=!1,l=e/2,d=0;d<t.length;d++){var g=t[d],y=g.currentPoint,v=g.params,m=g.prePoint,_=g.box;if(!_||(0,c.inBox)(_.x-l,_.y-l,_.width+e,_.height+e,n,r)){switch(g.command){case"L":case"Z":a=(0,f.default)(m[0],m[1],y[0],y[1],e,n,r);break;case"Q":a=o.Quad.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],n,r)<=e/2;break;case"C":a=s.Cubic.pointDistance(m[0],m[1],v[1],v[2],v[3],v[4],v[5],v[6],n,r,i)<=e/2;break;case"A":var x=g.arcParams,b=x.cx,M=x.cy,C=x.rx,P=x.ry,S=x.startAngle,O=x.endAngle,w=x.xRotation,A=[n,r,1],T=C>P?C:P,E=p(null,[["t",-b,-M],["r",-w],["s",1/(C>P?1:C/P),1/(C>P?P/C:1)]]);u.transformMat3(A,A,E),a=(0,h.default)(0,0,T,S,O,e,A[0],A[1])}if(a)break}}return a}},a.PathUtil)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=r.__importDefault(n(223)),s=r.__importDefault(n(221)),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr().points,l=!1;return n&&(l=(0,o.default)(a,i,t,e,!0)),!l&&r&&(l=(0,s.default)(a,t,e)),l},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(20),s=n(1),l=r.__importDefault(n(26)),u=r.__importDefault(n(223)),c=r.__importStar(n(80)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,a=n.length,o=n[0][0],s=n[0][1],l=n[a-1][0],u=n[a-1][1];r&&c.addStartArrow(this,t,n[1][0],n[1][1],o,s),i&&c.addEndArrow(this,t,n[a-2][0],n[a-2][1],l,u)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var a=this.attr().points;return(0,u.default)(a,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,a=n.length;if(!(n.length<2)){var o,s=n[0][0],l=n[0][1],u=n[a-1][0],f=n[a-1][1];if(r&&r.d)s+=(o=c.getShortenOffset(s,l,n[1][0],n[1][1],r.d)).dx,l+=o.dy;if(i&&i.d)u-=(o=c.getShortenOffset(n[a-2][0],n[a-2][1],u,f,i.d)).dx,f-=o.dy;t.beginPath(),t.moveTo(s,l);for(var h=0;h<a-1;h++){var p=n[h];t.lineTo(p[0],p[1])}t.lineTo(u,f)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,s.isNil)(e)?(this.set("totalLength",o.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),a.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,o=[];(0,s.each)(t,(function(s,l){t[l+1]&&((n=[])[0]=i/e,r=a.Line.length(s[0],s[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(l.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(218),s=n(15),l=r.__importDefault(n(499)),u=r.__importDefault(n(500)),c=r.__importDefault(n(220)),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var a=this.attr(),o=a.x,f=a.y,h=a.width,p=a.height,d=a.radius;if(d){var g=!1;return n&&(g=(0,u.default)(o,f,h,p,d,i,t,e)),!g&&r&&(g=(0,c.default)(this,t,e)),g}var y=i/2;return r&&n?(0,s.inBox)(o-y,f-y,h+y,p+y,t,e):r?(0,s.inBox)(o,f,h,p,t,e):n?(0,l.default)(o,f,h,p,i,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.width,a=e.height,s=e.radius;if(t.beginPath(),0===s)t.rect(n,r,i,a);else{var l=(0,o.parseRadius)(s),u=l[0],c=l[1],f=l[2],h=l[3];t.moveTo(n+u,r),t.lineTo(n+i-c,r),0!==c&&t.arc(n+i-c,r+c,c,-Math.PI/2,0),t.lineTo(n+i,r+a-f),0!==f&&t.arc(n+i-f,r+a-f,f,0,Math.PI/2),t.lineTo(n+h,r+a),0!==h&&t.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),t.lineTo(n,r+u),0!==u&&t.arc(n+u,r+u,u,Math.PI,1.5*Math.PI),t.closePath()}},e}(a.default);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(15);e.default=function(t,e,n,i,a,o,s){var l=a/2;return(0,r.inBox)(t-l,e-l,n,a,o,s)||(0,r.inBox)(t+n-l,e-l,a,i,o,s)||(0,r.inBox)(t+l,e+i-l,n,a,o,s)||(0,r.inBox)(t-l,e+l,a,i,o,s)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(81)),a=r.__importDefault(n(222));e.default=function(t,e,n,r,o,s,l,u){return(0,i.default)(t+o,e,t+n-o,e,s,l,u)||(0,i.default)(t+n,e+o,t+n,e+r-o,s,l,u)||(0,i.default)(t+n-o,e+r,t+o,e+r,s,l,u)||(0,i.default)(t,e+r-o,t,e+o,s,l,u)||(0,a.default)(t+n-o,e+o,o,1.5*Math.PI,2*Math.PI,s,l,u)||(0,a.default)(t+n-o,e+r-o,o,0,.5*Math.PI,s,l,u)||(0,a.default)(t+o,e+r-o,o,.5*Math.PI,Math.PI,s,l,u)||(0,a.default)(t+o,e+o,o,Math.PI,1.5*Math.PI,s,l,u)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=r.__importDefault(n(26)),o=n(15),s=n(12),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=(0,s.assembleFont)(t)},e.prototype._setText=function(t){var e=null;(0,o.isString)(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var r,i=this.attrs,a=i.textBaseline,l=i.x,u=i.y,c=1*i.fontSize,f=this._getSpaceingY(),h=(0,s.getTextHeight)(i.text,i.fontSize,i.lineHeight);(0,o.each)(e,(function(e,i){r=u+i*(f+c)-h+c,"middle"===a&&(r+=h-c-(h-c)/2),"top"===a&&(r+=h-c),(0,o.isNil)(e)||(n?t.fillText(e,l,r):t.strokeText(e,l,r))}))},e.prototype._drawText=function(t,e){var n=this.attr(),r=n.x,i=n.y,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;(0,o.isNil)(s)||(e?t.fillText(s,r,i):t.strokeText(s,r,i))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,a=e.fillOpacity;this.isStroke()&&n>0&&((0,o.isNil)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&((0,o.isNil)(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=r)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(a.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(503),s=r.__importStar(n(62)),l=r.__importDefault(n(120)),u=n(15),c=n(63),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return(0,i.__extends)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.renderer="canvas",e.autoDraw=!0,e.localRefresh=!0,e.refreshElements=[],e.clipView=!0,e.quickHit=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return s},e.prototype.getGroupBase=function(){return l.default},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(0,u.getPixelRatio)();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var r=this.get("context"),i=this.get("el"),a=this.getPixelRatio();i.width=a*e,i.height=a*n,a>1&&r.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?(0,o.getShape)(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=(0,c.getMergedRegion)(e))&&(t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1,this.get("clipView")&&(t=(0,c.mergeView)(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&((0,u.clearAnimationFrame)(t),this.set("drawFrame",null),this.set("refreshElements",[]))},e.prototype.draw=function(){var t=this.get("drawFrame");this.get("autoDraw")&&t||this._startDraw()},e.prototype._drawAll=function(){var t=this.get("context"),e=this.get("el"),n=this.getChildren();t.clearRect(0,0,e.width,e.height),(0,c.applyAttrsToContext)(t,this),(0,c.drawChildren)(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),r=this._getRefreshRegion();r?(t.clearRect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.save(),t.beginPath(),t.rect(r.minX,r.minY,r.maxX-r.minX,r.maxY-r.minY),t.clip(),(0,c.applyAttrsToContext)(t,this),(0,c.checkRefresh)(this,n,r),(0,c.drawChildren)(t,n,r),t.restore()):e.length&&(0,c.clearChanged)(e),(0,u.each)(e,(function(t){t.get("hasChanged")&&t.set("hasChanged",!1)})),this.set("refreshElements",[])},e.prototype._startDraw=function(){var t=this,e=this.get("drawFrame");e||(e=(0,u.requestAnimationFrame)((function(){t.get("localRefresh")?t._drawRegion():t._drawAll(),t.set("drawFrame",null)})),this.set("drawFrame",e))},e.prototype.skipDraw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.width=0,t.height=0,t.parentNode.removeChild(t)},e}(a.AbstractCanvas);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getShape=void 0;var r=n(12);function i(t,e,n){var i=t.getTotalMatrix();if(i){var a=function(t,e){if(e){var n=(0,r.invert)(e);return(0,r.multiplyVec2)(n,t)}return t}([e,n,1],i);return[a[0],a[1]]}return[e,n]}function a(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!(0,r.isAllowCapture)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var a=i(t,e,n),o=a[0],s=a[1];if(t.isClipped(o,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}e.getShape=function t(e,n,r){if(!a(e,n,r))return null;for(var o=null,s=e.getChildren(),l=s.length-1;l>=0;l--){var u=s[l];if(u.isGroup())o=t(u,n,r);else if(a(u,n,r)){var c=u,f=i(u,n,r),h=f[0],p=f[1];c.isInShape(h,p)&&(o=u)}if(o)break}return o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.Shape=e.Group=e.Canvas=void 0;var r=n(0),i=r.__importStar(n(82));e.Shape=i,r.__exportStar(n(12),e);var a=n(518);Object.defineProperty(e,"Canvas",{enumerable:!0,get:function(){return r.__importDefault(a).default}});var o=n(122);Object.defineProperty(e,"Group",{enumerable:!0,get:function(){return r.__importDefault(o).default}}),e.version="0.5.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dom",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if((0,a.each)(e||n,(function(t,e){o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)})),"function"==typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var s=r.childNodes,l=s.length-1;l>=0;l--)r.removeChild(s[l]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(t,e){"img"===e?n._setImage(r.img):o.SVG_ATTR_MAP[e]&&i.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e.prototype.setAttr=function(t,e){this.attrs[t]=e,"img"===t&&this._setImage(e)},e.prototype._setImage=function(t){var e=this.attr(),n=this.get("el");if((0,a.isString)(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&(0,a.isString)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var r=document.createElement("canvas");r.setAttribute("width",""+t.width),r.setAttribute("height",""+t.height),r.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",r.toDataURL())}},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(1),s=n(16),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,o.each)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var a=(0,o.isObject)(e)?t.addArrow(n,s.SVG_ATTR_MAP[i]):t.getDefaultArrow(n,s.SVG_ATTR_MAP[i]);r.setAttribute(s.SVG_ATTR_MAP[i],"url(#"+a+")")}else r.removeAttribute(s.SVG_ATTR_MAP[i]);else s.SVG_ATTR_MAP[i]&&r.setAttribute(s.SVG_ATTR_MAP[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return a.Line.length(e,n,r,i)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2;return a.Line.pointAt(n,r,i,o,t)},e}(r.__importDefault(n(22)).default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(22)),s=r.__importDefault(n(511)),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return(0,a.isArray)(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,r=e.y,i=e.r||e.radius,o=e.symbol||"circle";return(t=(0,a.isFunction)(o)?o:s.default.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=s.default,e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}};e.default={get:function(t){return r[t]},register:function(t,e){r[t]=e},remove:function(t){delete r[t]},getAll:function(){return r}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");(0,a.each)(e||r,(function(e,s){if("path"===s&&(0,a.isArray)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===s||"endArrow"===s)if(e){var l=(0,a.isObject)(e)?t.addArrow(r,o.SVG_ATTR_MAP[s]):t.getDefaultArrow(r,o.SVG_ATTR_MAP[s]);i.setAttribute(o.SVG_ATTR_MAP[s],"url(#"+l+")")}else i.removeAttribute(o.SVG_ATTR_MAP[s]);else o.SVG_ATTR_MAP[s]&&i.setAttribute(o.SVG_ATTR_MAP[s],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(16),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,a.each)(e||n,(function(t,e){"points"===e&&(0,a.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):o.SVG_ATTR_MAP[e]&&r.setAttribute(o.SVG_ATTR_MAP[e],t)}))},e}(r.__importDefault(n(22)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(20),o=n(20),s=n(1),l=n(16),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");(0,s.each)(e||n,(function(t,e){"points"===e&&(0,s.isArray)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l.SVG_ATTR_MAP[e]&&r.setAttribute(l.SVG_ATTR_MAP[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return(0,s.isNil)(e)?(this.set("totalLength",a.Polyline.length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,r=this.attr().points,i=this.get("tCache");return i||(this._setTcache(),i=this.get("tCache")),(0,s.each)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),o.Line.pointAt(r[n][0],r[n][1],r[n+1][0],r[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,r,i=0,a=[];(0,s.each)(t,(function(s,l){t[l+1]&&((n=[])[0]=i/e,r=o.Line.length(s[0],s[1],t[l+1][0],t[l+1][1]),i+=r,n[1]=i/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(r.__importDefault(n(22)).default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=r.__importDefault(n(22)),s=n(16),l=n(516),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el"),o=!1,l=["x","y","width","height","radius"];(0,a.each)(e||r,(function(t,e){-1===l.indexOf(e)||o?-1===l.indexOf(e)&&s.SVG_ATTR_MAP[e]&&i.setAttribute(s.SVG_ATTR_MAP[e],t):(i.setAttribute("d",n._assembleRect(r)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+r+",0 l 0,"+i+" l"+-r+" 0 z";var s=(0,l.parseRadius)(o);return(0,a.isArray)(o)?1===o.length?s.r1=s.r2=s.r3=s.r4=o[0]:2===o.length?(s.r1=s.r3=o[0],s.r2=s.r4=o[1]):3===o.length?(s.r1=o[0],s.r2=s.r4=o[1],s.r3=o[2]):(s.r1=o[0],s.r2=o[1],s.r3=o[2],s.r4=o[3]):s.r1=s.r2=s.r3=s.r4=o,[["M "+(e+s.r1)+","+n],["l "+(r-s.r1-s.r2)+",0"],["a "+s.r2+","+s.r2+",0,0,1,"+s.r2+","+s.r2],["l 0,"+(i-s.r2-s.r3)],["a "+s.r3+","+s.r3+",0,0,1,"+-s.r3+","+s.r3],["l "+(s.r3+s.r4-r)+",0"],["a "+s.r4+","+s.r4+",0,0,1,"+-s.r4+","+-s.r4],["l 0,"+(s.r4+s.r1-i)],["a "+s.r1+","+s.r1+",0,0,1,"+s.r1+","+-s.r1],["z"]].join(" ")},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parsePath=e.parseRadius=void 0;var r=n(1),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s,]+/gi;e.parseRadius=function(t){var e=0,n=0,i=0,a=0;return(0,r.isArray)(t)?1===t.length?e=n=i=a=t[0]:2===t.length?(e=i=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],a=t[3]):e=n=i=a=t,{r1:e,r2:n,r3:i,r4:a}},e.parsePath=function(t){return t=t||[],(0,r.isArray)(t)?t:(0,r.isString)(t)?(t=t.match(i),(0,r.each)(t,(function(e,n){if((e=e.match(a))[0].length>1){var i=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=i}(0,r.each)(e,(function(t,n){isNaN(t)||(e[n]=+t)})),t[n]=e})),t):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(1),o=n(158),s=n(64),l=n(16),u=r.__importDefault(n(22)),c={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},f={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},h={left:"left",start:"left",center:"middle",right:"end",end:"end"},p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="text",e.canFill=!0,e.canStroke=!0,e}return(0,i.__extends)(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return(0,i.__assign)((0,i.__assign)({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");this._setFont(),(0,a.each)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?(0,s.setTransform)(n):l.SVG_ATTR_MAP[e]&&i.setAttribute(l.SVG_ATTR_MAP[e],t)})),i.setAttribute("paint-order","stroke"),i.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,r=e.textAlign,i=(0,o.detect)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",f[n]||"alphabetic"):t.setAttribute("alignment-baseline",c[n]||"baseline"),t.setAttribute("text-anchor",h[r]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),r=n.x,i=n.textBaseline,o=void 0===i?"bottom":i;if(t)if(~t.indexOf("\n")){var s=t.split("\n"),l=s.length-1,u="";(0,a.each)(s,(function(t,e){0===e?"alphabetic"===o?u+='<tspan x="'+r+'" dy="'+-l+'em">'+t+"</tspan>":"top"===o?u+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?u+='<tspan x="'+r+'" dy="'+-(l-1)/2+'em">'+t+"</tspan>":"bottom"===o?u+='<tspan x="'+r+'" dy="-'+(l+.3)+'em">'+t+"</tspan>":"hanging"===o&&(u+='<tspan x="'+r+'" dy="'+(-(l-1)-.3)+'em">'+t+"</tspan>"):u+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=u}else e.innerHTML=t;else e.innerHTML=""},e}(u.default);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(0),a=n(12),o=n(16),s=n(121),l=n(64),u=n(27),c=r.__importStar(n(82)),f=r.__importDefault(n(122)),h=r.__importDefault(n(519)),p=function(t){function e(e){return t.call(this,(0,i.__assign)((0,i.__assign)({},e),{autoDraw:!0,renderer:"svg"}))||this}return(0,i.__extends)(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return f.default},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!o.SHAPE_TO_TAGS[r.tagName]){for(var i=r.parentNode;i&&!o.SHAPE_TO_TAGS[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=(0,u.createSVGElement)("svg"),e=new h.default(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var r=this.get("children");r&&r.length&&(0,u.sortDom)(this,(function(t,e){return r.indexOf(t)-r.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var i=e.el;i.innerHTML="",n.appendChild(i)}}else"matrix"===t?(0,l.setTransform)(this):"clip"===t?(0,l.setClip)(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();(0,l.setClip)(this,t),e.length&&(0,s.drawChildren)(t,e)},e}(a.AbstractCanvas);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(520)),o=r.__importDefault(n(521)),s=r.__importDefault(n(522)),l=r.__importDefault(n(523)),u=r.__importDefault(n(524)),c=n(27),f=function(){function t(t){var e=(0,c.createSVGElement)("defs"),n=(0,i.uniqueId)("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,r=null,i=0;i<n.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new s.default(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new a.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new s.default(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new o.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new u.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new l.default(t);return this.el.appendChild(e.el),this.add(e),e.id},t}();e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function l(t){var e=t.match(s);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),(0,r.each)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var u=function(){function t(t){this.cfg={};var e=null,n=(0,r.uniqueId)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,i,o=a.exec(t),s=(0,r.mod)((0,r.toRadian)(parseFloat(o[1])),2*Math.PI),u=o[2];s>=0&&s<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=s&&s<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=s&&s<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var c=Math.tan(s),f=c*c,h=(i.x-n.x+c*(i.y-n.y))/(f+1)+n.x,p=c*(i.x-n.x+c*(i.y-n.y))/(f+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",h),e.setAttribute("y2",p),e.innerHTML=l(u)}(t,e=(0,i.createSVGElement)("linearGradient")):function(t,e){var n=o.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),a=parseFloat(n[3]),s=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",a),e.innerHTML=l(s)}(t,e=(0,i.createSVGElement)("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},o={x:"-40%",y:"-40%",width:"200%",height:"200%"},s=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=(0,i.createSVGElement)("filter");return(0,r.each)(o,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=(0,r.uniqueId)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return(0,r.each)(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[a[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=function(){function t(t,e){this.cfg={};var n=(0,i.createSVGElement)("marker"),a=(0,r.uniqueId)("marker_");n.setAttribute("id",a);var o=(0,i.createSVGElement)("path");o.setAttribute("stroke",t.stroke||"none"),o.setAttribute("fill",t.fill||"none"),n.appendChild(o),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=o,this.id=a;var s=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===s?this._setDefaultPath(e,o):(this.cfg=s,this._setMarker(t.lineWidth,o)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,a=this.cfg.d;(0,r.isArray)(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),a&&n.setAttribute("refX",""+a/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=function(){function t(t){this.type="clip",this.cfg={};var e=(0,i.createSVGElement)("clipPath");this.el=e,this.id=(0,r.uniqueId)("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}();e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(27),a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,o=function(){function t(t){this.cfg={};var e=(0,i.createSVGElement)("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=(0,i.createSVGElement)("image");e.appendChild(n);var o=(0,r.uniqueId)("pattern_");e.id=o,this.el=e,this.id=o,this.cfg=t;var s=a.exec(t)[2];n.setAttribute("href",s);var l=new Image;function u(){e.setAttribute("width",""+l.width),e.setAttribute("height",""+l.height)}return s.match(/^data:/i)||(l.crossOrigin="Anonymous"),l.src=s,l.complete?u():(l.onload=u,l.src=l.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(2),a=r.__importDefault(n(123));n(526);var o=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var r=e.startOnZero,i=void 0===r||r,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=i,n.sortable=o,n.showSinglePoint=l,n}return r.__extends(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,a=t.length;r<a;r++){var o=t[r];e.push(o.points),n.push(o[i.FIELD_ORIGIN])}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(3),a=n(83),o=(0,i.registerShapeFactory)("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return((0,r.isArray)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});(0,i.registerShape)("area","area",{draw:function(t,e){var n=(0,a.getShapeAttrs)(t,!1,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}}),e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34));n(528);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return r.__extends(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(52),s=n(119),l=(0,i.registerShapeFactory)("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return(0,s.splitPoints)(t)}});(0,i.registerShape)("edge","line",{draw:function(t,e){var n=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=(0,o.getLinePath)(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(70)),a=n(1),o=n(2),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return r.__extends(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),s=(0,a.get)(this.styleOption,["cfg","shadowBlur"]);(0,a.isNumber)(s)||(s=o/2),this.prepareGreyScaleBlurredCircle(o,s),this.drawWithRange(r,i,o,s)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!=typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t[o.FIELD_ORIGIN][e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return(0,a.isNumber)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,i){var a,s,l=this.coordinate,u=l.start,c=l.end,f=this.coordinate.getWidth(),h=this.coordinate.getHeight(),p=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var d=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[o.FIELD_ORIGIN][p]<=e[1]&&t[o.FIELD_ORIGIN][p]>=e[0]})));var g=this.scales[p];try{for(var y=r.__values(t),v=y.next();!v.done;v=y.next()){var m=v.value,_=this.getDrawCfg(m),x=_.x,b=_.y,M=g.scale(m[o.FIELD_ORIGIN][p]);this.drawGrayScaleBlurredCircle(x-u.x,b-c.y,n+i,M,d)}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=y.return)&&s.call(y)}finally{if(a)throw a.error}}var C=d.getImageData(0,0,f,h);this.clearShadowCanvasCtx(),this.colorize(C),d.putImageData(C,0,0);var P=this.getImageShape();P.attr("x",u.x),P.attr("y",c.y),P.attr("width",f),P.attr("height",h),P.attr("img",d.canvas),P.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var a=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(a,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,o=3;o<n.length;o+=4){var s=n[o];if((0,a.isNumber)(s)){var l=r[s]?r[s]:i.default.rgb2arr(e.gradient(s/256));n[o-3]=l[0],n[o-2]=l[1],n[o-1]=l[2],n[o]=s}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t[o.FIELD_ORIGIN]}));return r.__assign(r.__assign({},e),{mappingData:t,data:n})},e}(r.__importDefault(n(34)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=r.__importDefault(n(34));n(531);var s=n(124),l=n(38),u=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");if(i){n=this.getAttributeValues(i,e)[0];var o=this.coordinate;n/=(0,a.getXDimensionLength)(o)}else this.defaultSize||(this.defaultSize=(0,s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:(0,l.getMaxScale)(e)});else{var n=this.scaleDefs,r=e.field,a=e.min,o=e.max;"time"!==e.type&&(a>0&&!(0,i.get)(n,[r,"min"])&&e.change({min:0}),o<=0&&!(0,i.get)(n,[r,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(o.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(116),o=n(6),s=n(65),l=(0,i.registerShapeFactory)("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return(0,s.getRectPoints)(t)}});(0,i.registerShape)("interval","rect",{draw:function(t,e){var n,i=(0,o.getStyle)(t,!1,!0),l=e,u=null==t?void 0:t.background;if(u){l=e.addGroup();var c=(0,o.getBackgroundRectStyle)(t),f=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);l.addShape("path",{attrs:r.__assign(r.__assign({},c),{path:f}),zIndex:-1,name:a.BACKGROUND_SHAPE})}n=i.radius&&this.coordinate.isRect?(0,s.getRectWithCornerRadius)(this.parsePoints(t.points),this.coordinate,i.radius):this.parsePath((0,s.getIntervalRectPath)(t.points,i.lineCap,this.coordinate));var h=l.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:n}),name:"interval"});return u?l:h},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(123));n(118);var a=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var r=e.sortable,i=void 0!==r&&r;return n.sortable=i,n}return r.__extends(e,t),e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(34));n(534);var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return r.__assign(r.__assign({},n),{isStack:!!this.getAdjust("stack")})},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(119),s=n(125),l=(0,a.registerShapeFactory)("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return(0,o.splitPoints)(t)}});(0,r.each)(s.SHAPES,(function(t){(0,a.registerShape)("point","hollow-".concat(t),{draw:function(e,n){return(0,s.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,stroke:n,fill:null}}}})})),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(34));n(536);var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=r.x,o=r.y;if(!(0,i.isArray)(a)||!(0,i.isArray)(o)){var s=this.getXScale(),l=this.getYScale(),u=.5/s.values.length,c=.5/l.values.length;s.isCategory&&l.isCategory?(a=[a-u,a-u,a+u,a+u],o=[o-c,o+c,o+c,o-c]):(0,i.isArray)(a)?(a=[(n=a)[0],n[0],n[1],n[1]],o=[o-c/2,o+c/2,o+c/2,o-c/2]):(0,i.isArray)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],a=[a-u/2,a-u/2,a+u/2,a+u/2]),r.x=a,r.y=o}return r},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);var s=(0,a.registerShapeFactory)("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return(0,i.each)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});(0,a.registerShape)("polygon","polygon",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var a=t[n];a.x===t[n-1].x&&a.y===t[n-1].y||(r.push(["L",a.x,a.y]),a.x===e.x&&a.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return(0,i.isEqual)((0,i.last)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:a}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(14),a=r.__importDefault(n(34));n(538);var o=n(124),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),a=this.getAttribute("size");if(a){n=this.getAttributeValues(a,e)[0];var s=this.coordinate;n/=(0,i.getXDimensionLength)(s)}else this.defaultSize||(this.defaultSize=(0,o.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(0,n(3).registerShapeFactory)("schema",{defaultShapeType:""});e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(14),s=n(124),l=r.__importDefault(n(34));n(540);var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e.shapeType="violin",e.generatePoints=!0,e}return r.__extends(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),l=this.getAttribute("size");if(l){n=this.getAttributeValues(l,e)[0];var u=this.coordinate;n/=(0,o.getXDimensionLength)(u)}else this.defaultSize||(this.defaultSize=(0,s.getDefaultSize)(this)),n=this.defaultSize;return r.size=n,r._size=(0,i.get)(e[a.FIELD_ORIGIN],[this._sizeField]),r},e.prototype.initAttributes=function(){var e=this.attributeOption,n=e.size?e.size.fields[0]:this._sizeField?this._sizeField:"size";this._sizeField=n,delete e.size,t.prototype.initAttributes.call(this)},e}(l.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(43),s=n(6);var l=(0,a.registerShapeFactory)("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!(0,i.isArray)(t))return[];var e=(0,i.max)(t);return(0,i.map)(t,(function(t){return t/e}))}(t._size);return(0,i.each)(t.y,(function(i,a){var o=r[a]*e,s=0===a,l=a===t.y.length-1;n.push({isMin:s,isMax:l,x:t.x-o,y:i}),n.unshift({isMin:s,isMax:l,x:t.x+o,y:i})})),n}});(0,a.registerShape)("violin","violin",{draw:function(t,e){var n=(0,s.getStyle)(t,!0,!0),i=this.parsePath((0,o.getViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}}),e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","line",{draw:function(t,e){var n=(0,i.getShapeAttrs)(t,!0,!1,this);return e.addShape({type:"path",attrs:n,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","smooth",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!1,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(3),i=n(83);(0,r.registerShape)("area","smooth-line",{draw:function(t,e){var n=this.coordinate,r=(0,i.getShapeAttrs)(t,!0,!0,this,(0,i.getConstraint)(n));return e.addShape({type:"path",attrs:r,name:"area"})},getMarker:function(t){return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:t.color,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(13),a=n(3),o=n(6),s=n(224);(0,a.registerShape)("edge","arc",{draw:function(t,e){var n,a=(0,o.getStyle)(t,!0,!1,"lineWidth"),l=t.points,u=l.length>2?"weight":"normal";if(t.isInCircle){var c={x:0,y:1};return"normal"===u?n=function(t,e,n){var r=(0,s.getQPath)(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(l[0],l[1],c):(a.fill=a.stroke,n=function(t,e){var n=(0,s.getQPath)(t[1],e),r=(0,s.getQPath)(t[3],e),i=[["M",t[0].x,t[0].y]];return i.push(r),i.push(["L",t[3].x,t[3].y]),i.push(["L",t[2].x,t[2].y]),i.push(n),i.push(["L",t[1].x,t[1].y]),i.push(["L",t[0].x,t[0].y]),i.push(["Z"]),i}(l,c)),n=this.parsePath(n),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})}if("normal"===u)return l=this.parsePoints(l),n=(0,i.getArcPath)((l[1].x+l[0].x)/2,l[0].y,Math.abs(l[1].x-l[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})});var f=(0,s.getCPath)(l[1],l[3]),h=(0,s.getCPath)(l[2],l[0]);return n=[["M",l[0].x,l[0].y],["L",l[1].x,l[1].y],f,["L",l[3].x,l[3].y],["L",l[2].x,l[2].y],h,["Z"]],n=this.parsePath(n),a.fill=a.stroke,e.addShape("path",{attrs:r.__assign(r.__assign({},a),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(224);(0,i.registerShape)("edge","smooth",{draw:function(t,e){var n=(0,a.getStyle)(t,!0,!1,"lineWidth"),i=t.points,s=this.parsePath(function(t,e){var n=(0,o.getCPath)(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(i[0],i[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);(0,a.registerShape)("edge","vhv",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),a=t.points,s=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return(0,i.each)(n,(function(t){r.push(["L",t.x,t.y])})),r}(a[0],a[1]));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:s})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(65);(0,i.registerShape)("interval","funnel",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var n=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(116),o=n(6),s=n(65);(0,i.registerShape)("interval","hollow-rect",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=e,l=null==t?void 0:t.background;if(l){i=e.addGroup();var u=(0,o.getBackgroundRectStyle)(t),c=(0,s.getBackgroundRectPath)(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:r.__assign(r.__assign({},u),{path:c}),zIndex:-1,name:a.BACKGROUND_SHAPE})}var f=this.parsePath((0,s.getRectPath)(t.points)),h=i.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:f}),name:"interval"});return l?i:h},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6),s=n(65),l=n(25);(0,a.registerShape)("interval","line",{getPoints:function(t){return n=(e=t).x,r=e.y,a=e.y0,(0,i.isArray)(r)?r.map((function(t,e){return{x:(0,i.isArray)(n)?n[e]:n,y:t}})):[{x:n,y:a},{x:n,y:r}];var e,n,r,a},draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1,"lineWidth"),i=(0,l.omit)(r.__assign({},n),["fill"]),a=this.parsePath((0,s.getRectPath)(t.points,!1));return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6),o=n(65);(0,i.registerShape)("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,(0,o.getRectPoints)(t)},draw:function(t,e){var n=(0,a.getStyle)(t,!1,!0),i=this.parsePath((0,o.getFunnelPath)(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);(0,a.registerShape)("interval","tick",{getPoints:function(t){return function(t){var e,n,a,o=t.x,s=t.y,l=t.y0,u=t.size;(0,i.isArray)(s)?(n=(e=r.__read(s,2))[0],a=e[1]):(n=l,a=s);var c=o+u/2,f=o-u/2;return[{x:o,y:n},{x:o,y:a},{x:f,y:n},{x:c,y:n},{x:f,y:a},{x:c,y:a}]}(t)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(43),s=n(6),l=n(216);function u(t,e){var n=(0,o.getPathPoints)(t.points,t.connectNulls,t.showSinglePoint),a=[];return(0,i.each)(n,(function(t){var n=function(t,e){var n=[];return(0,i.each)(t,(function(r,i){var a=t[i+1];if(n.push(r),a){var o=function(t,e,n){var r,i=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":r=[{x:o,y:a}];break;case"vh":r=[{x:i,y:s}];break;case"hvh":var l=(o+i)/2;r=[{x:l,y:a},{x:l,y:s}];break;case"vhv":var u=(a+s)/2;r=[{x:i,y:u},{x:o,y:u}]}return r}(r,a,e);n=n.concat(o)}})),n}(t,e);a=a.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),r.__assign(r.__assign({},(0,s.getStyle)(t,!0,!1,"lineWidth")),{path:a})}(0,i.each)(["hv","vh","hvh","vhv"],(function(t){(0,a.registerShape)("line",t,{draw:function(e,n){var r=u(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return(0,l.getLineMarker)(e,t)}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(125);(0,r.each)(o.HOLLOW_SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,n){return(0,o.drawPoints)(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t],style:{r:4.5,stroke:n,fill:null}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(6);(0,i.registerShape)("point","image",{draw:function(t,e){var n,i,o=(0,a.getStyle)(t,!1,!1,"r").r,s=this.parsePoints(t.points),l=s[0];if(t.isStack)l=s[1];else if(s.length>1){var u=e.addGroup();try{for(var c=r.__values(s),f=c.next();!f.done;f=c.next()){var h=f.value;u.addShape("image",{attrs:{x:h.x-o/2,y:h.y-o,width:o,height:o,img:t.shape[1]}})}}catch(t){n={error:t}}finally{try{f&&!f.done&&(i=c.return)&&i.call(c)}finally{if(n)throw n.error}}return u}return e.addShape("image",{attrs:{x:l.x-o/2,y:l.y-o,width:o,height:o,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n(61),a=n(3),o=n(125);(0,r.each)(o.SHAPES,(function(t){(0,a.registerShape)("point",t,{draw:function(e,n){return(0,o.drawPoints)(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:i.MarkerSymbols[t]||t,style:{r:4.5,fill:n}}}})}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);function s(t){var e=(0,i.isArray)(t)?t:[t],n=e[0],r=e[e.length-1],a=e.length>1?e[1]:n;return{min:n,max:r,min1:a,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:a}}function l(t,e,n){var r,a=n/2;if((0,i.isArray)(e)){var o=s(e),l=o.min,u=o.max,c=o.median,f=o.min1,h=t-a,p=t+a;r=[[h,u],[p,u],[t,u],[t,d=o.max1],[h,f],[h,d],[p,d],[p,f],[t,f],[t,l],[h,l],[p,l],[h,c],[p,c]]}else{e=(0,i.isNil)(e)?.5:e;var d,g=s(t),y=(l=g.min,u=g.max,c=g.median,e-a),v=e+a;r=[[l,y],[l,v],[l,e],[f=g.min1,e],[f,y],[f,v],[d=g.max1,v],[d,y],[d,e],[u,e],[u,y],[u,v],[c,y],[c,v]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}(0,a.registerShape)("schema","box",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,o.getStyle)(t,!0,!1),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["M",n[4].x,n[4].y],["L",n[5].x,n[5].y],["L",n[6].x,n[6].y],["L",n[7].x,n[7].y],["L",n[4].x,n[4].y],["Z"],["M",n[8].x,n[8].y],["L",n[9].x,n[9].y],["M",n[10].x,n[10].y],["L",n[11].x,n[11].y],["M",n[12].x,n[12].y],["L",n[13].x,n[13].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=l(t,[e-6,e-3,e,e+3,e+6],n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(25),o=n(3),s=n(6);function l(t,e,n){var r,o,s=(r=e,o=((0,i.isArray)(r)?r:[r]).sort((function(t,e){return e-t})),(0,a.padEnd)(o,4,o[o.length-1]));return[{x:t,y:s[0]},{x:t,y:s[1]},{x:t-n/2,y:s[2]},{x:t-n/2,y:s[1]},{x:t+n/2,y:s[1]},{x:t+n/2,y:s[2]},{x:t,y:s[2]},{x:t,y:s[3]}]}(0,o.registerShape)("schema","candle",{getPoints:function(t){return l(t.x,t.y,t.size)},draw:function(t,e){var n,i=(0,s.getStyle)(t,!0,!0),a=this.parsePath([["M",(n=t.points)[0].x,n[0].y],["L",n[1].x,n[1].y],["M",n[2].x,n[2].y],["L",n[3].x,n[3].y],["L",n[4].x,n[4].y],["L",n[5].x,n[5].y],["Z"],["M",n[6].x,n[6].y],["L",n[7].x,n[7].y]]);return e.addShape("path",{attrs:r.__assign(r.__assign({},i),{path:a,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=l(t,[e+7.5,e+3,e-3,e-7.5],n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(3),o=n(6);function s(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),a=Math.min(n,r);return e&&(a=(0,i.clamp)(e,0,Math.min(n,r))),a/=2,{x:(t[0].x+t[2].x)/2-a,y:(t[0].y+t[2].y)/2-a,width:2*a,height:2*a}}(0,a.registerShape)("polygon","square",{draw:function(t,e){if(!(0,i.isEmpty)(t.points)){var n=(0,o.getStyle)(t,!0,!0),a=this.parsePoints(t.points);return e.addShape("rect",{attrs:r.__assign(r.__assign({},n),s(a,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(43),o=n(6);(0,i.registerShape)("violin","smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!0),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(3),a=n(43),o=n(6);(0,i.registerShape)("violin","hollow",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),(0,i.registerShape)("violin","hollow-smooth",{draw:function(t,e){var n=(0,o.getStyle)(t,!0,!1),i=this.parsePath((0,a.getSmoothViolinPath)(t.points));return e.addShape("path",{attrs:r.__assign(r.__assign({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i,a){var o,s=t.prototype.getLabelOffsetPoint.call(this,e,n,i),l=this.getCoordinate(),u=l.isTransposed?"x":"y",c=this.getLabelValueDir(e.mappingData);return s=r.__assign(r.__assign({},s),((o={})[u]=s[u]*c,o)),l.isReflect("x")&&(s=r.__assign(r.__assign({},s),{x:-1*s.x})),l.isReflect("y")&&(s=r.__assign(r.__assign({},s),{y:-1*s.y})),s},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return(0,i.deepMix)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var a,o,s,l,u=this.getCoordinate(),c=u.isTransposed,f=e.points,h=u.convert(f[0]),p=u.convert(f[2]),d=this.getLabelValueDir(e),g=(0,i.isArray)(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var y=(0,i.get)(e,"nextPoints"),v=(0,i.get)(e,"points");if(y){var m=u.convert(v[0]),_=u.convert(v[1]),x=u.convert(y[0]),b=u.convert(y[1]);c?(a=Math.min(x.y,m.y),s=Math.max(x.y,m.y),o=(_.x+b.x)/2,l=(m.x+x.x)/2):(a=Math.min((_.y+b.y)/2,(m.y+x.y)/2),s=Math.max((_.y+b.y)/2,(m.y+x.y)/2),o=b.x,l=m.x)}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,l=h.x}else a=Math.min(p.y,h.y),s=Math.max(p.y,h.y),o=p.x,l=h.x;switch(r){case"right":t.x=o,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"left":t.x=l,t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign",d>0?"left":"right");break;case"bottom":c&&(t.x=(o+l)/2),t.y=s,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top");break;case"middle":c&&(t.x=(o+l)/2),t.y=(a+s)/2,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline","middle");break;case"top":c&&(t.x=(o+l)/2),t.y=a,t.textAlign=(0,i.get)(t,"textAlign","center"),t.textBaseline=(0,i.get)(t,"textBaseline",d>0?"bottom":"top")}},e}(r.__importDefault(n(79)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(14),o=n(13),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return r.__extends(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return(0,i.deepMix)({},r,(0,i.get)(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var r;return e<0&&((r=t)>Math.PI/2&&(r-=Math.PI),r<-Math.PI/2&&(r+=Math.PI)),r},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate().getCenter();return e=t.angle<=Math.PI/2&&t.x>=n.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),r={x:(0,i.isArray)(t.x)?t.x[0]:t.x,y:t.y[0]},o={x:(0,i.isArray)(t.x)?t.x[1]:t.x,y:t.y[1]},s=(0,a.getAngleByPoint)(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=s;else{var l=(0,a.getAngleByPoint)(n,o);s>=l&&(l+=2*Math.PI),e=s+(l-s)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),a=n.getRadius()+e;return r.__assign(r.__assign({},(0,o.polarToCartesian)(i.x,i.y,a,t)),{angle:t,r:a})},e}(r.__importDefault(n(225)).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.distribute=void 0;var r=n(0),i=n(1),a=n(13);e.distribute=function(t,e,n,o){if(t.length&&e.length){var s=t[0]?t[0].offset:0,l=e[0].get("coordinate"),u=l.getRadius(),c=l.getCenter();if(s>0){var f=2*(u+s)+28,h={start:l.start,end:l.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var a=f/14;t.length>a&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(a,t.length-a)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,a,o,s){var l,u,c,f=!0,h=a.start,p=a.end,d=Math.min(h.y,p.y),g=Math.abs(h.y-p.y),y=0,v=Number.MIN_VALUE,m=e.map((function(t){return t.y>y&&(y=t.y),t.y<v&&(v=t.y),{size:n,targets:[t.y-d]}}));for(v-=d,y-d>g&&(g=y-d);f;)for(m.forEach((function(t){var e=(Math.min.apply(v,t.targets)+Math.max.apply(v,t.targets))/2;t.pos=Math.min(Math.max(v,e-t.size/2),g-t.size)})),f=!1,c=m.length;c--;)if(c>0){var _=m[c-1],x=m[c];_.pos+_.size>x.pos&&(_.size+=x.size,_.targets=_.targets.concat(x.targets),_.pos+_.size>g&&(_.pos=g-_.size),m.splice(c,1),f=!0)}c=0,m.forEach((function(t){var r=d+n/2;t.targets.forEach((function(){e[c].y=t.pos+r,r+=n,c++}))}));var b={};try{for(var M=r.__values(t),C=M.next();!C.done;C=M.next()){var P=C.value;b[P.get("id")]=P}}catch(t){l={error:t}}finally{try{C&&!C.done&&(u=M.return)&&u.call(M)}finally{if(l)throw l.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-o.y),2);if(e<n)t.x=o.x;else{var r=Math.sqrt(e-n);t.x=s?o.x+r:o.x-r}var a=b[t.id];a.attr("x",t.x),a.attr("y",t.y);var l=(0,i.find)(a.getChildren(),(function(t){return"text"===t.get("type")}));l&&(l.attr("y",t.y),l.attr("x",t.x))}))}(e,t,14,h,c,n)}))}(0,i.each)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=(0,a.polarToCartesian)(c.x,c.y,u,n),o=(0,a.polarToCartesian)(c.x,c.y,u+e/2,n),s=t.x+(0,i.get)(t,"offsetX",0),l=t.y+(0,i.get)(t,"offsetY",0),f={x:s-4*Math.cos(n),y:l-4*Math.sin(n)};(0,i.isObject)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(o.x),"".concat(o.y," ").concat(f.x),f.y].join(",")}}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieOuterLabelLayout=void 0;var r=n(0),i=n(1),a=n(13),o=n(226);e.pieOuterLabelLayout=function(t,e,n,s){var l,u,c=(0,i.filter)(t,(function(t){return!(0,i.isNil)(t)})),f=e[0]&&e[0].get("coordinate");if(f){var h=f.getCenter(),p=f.getRadius(),d={};try{for(var g=r.__values(e),y=g.next();!y.done;y=g.next()){var v=y.value;d[v.get("id")]=v}}catch(t){l={error:t}}finally{try{y&&!y.done&&(u=g.return)&&u.call(g)}finally{if(l)throw l.error}}var m=(0,i.get)(c[0],"labelHeight",14),_=(0,i.get)(c[0],"offset",0);if(!(_<=0)){var x=(0,i.groupBy)(c,(function(t){return t.x<h.x?"left":"right"})),b=f.start,M=f.end,C=Math.min(2*(p+_+m),f.getHeight()),P=C/2,S={minX:b.x,maxX:M.x,minY:h.y-P,maxY:h.y+P};(0,i.each)(x,(function(t,e){var n=Math.floor(C/m);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e+1>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,S)})),(0,i.each)(x,(function(t,e){(0,i.each)(t,(function(t){var n="right"===e,r=d[t.id].getChildByIndex(0);if(r){var o=p+_,s=t.y-h.y,l=Math.pow(o,2),u=Math.pow(s,2),c=l-u>0?l-u:0,g=Math.sqrt(c),y=Math.abs(Math.cos(t.angle)*o);t.x=n?h.x+Math.max(g,y):h.x-Math.max(g,y)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var o=t.angle,s=t.offset,l=(0,a.polarToCartesian)(n.x,n.y,r,o),u=t.x+(0,i.get)(t,"offsetX",0)*(Math.cos(o)>0?1:-1),c=t.y+(0,i.get)(t,"offsetY",0)*(Math.sin(o)>0?1:-1),f={x:u-4*Math.cos(o),y:c-4*Math.sin(o)},h=t.labelLine.smooth,p=[],d=f.x-n.x,g=f.y-n.y,y=Math.atan(g/d);if(d<0&&(y+=Math.PI),!1===h){(0,i.isObject)(t.labelLine)||(t.labelLine={});var v=0;(o<0&&o>-Math.PI/2||o>1.5*Math.PI)&&f.y>l.y&&(v=1),o>=0&&o<Math.PI/2&&f.y>l.y&&(v=1),o>=Math.PI/2&&o<Math.PI&&l.y>f.y&&(v=1),(o<-Math.PI/2||o>=Math.PI&&o<1.5*Math.PI)&&l.y>f.y&&(v=1);var m=s/2>4?4:Math.max(s/2-1,0),_=(0,a.polarToCartesian)(n.x,n.y,r+m,o),x=(0,a.polarToCartesian)(n.x,n.y,r+s/2,y);p.push("M ".concat(l.x," ").concat(l.y)),p.push("L ".concat(_.x," ").concat(_.y)),p.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(v," ").concat(x.x," ").concat(x.y)),p.push("L ".concat(f.x," ").concat(f.y))}else{_=(0,a.polarToCartesian)(n.x,n.y,r+(s/2>4?4:Math.max(s/2-1,0)),o);var b=l.x<n.x?1:-1;p.push("M ".concat(f.x," ").concat(f.y));var M=(l.y-n.y)/(l.x-n.x),C=(f.y-n.y)/(f.x-n.x);Math.abs(M-C)>Math.pow(Math.E,-16)&&p.push.apply(p,["C",f.x+4*b,f.y,2*_.x-l.x,2*_.y-l.y,l.x,l.y]),p.push("L ".concat(l.x," ").concat(l.y))}t.labelLine.path=p.join(" ")}}(t,f)}))}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pieSpiderLabelLayout=void 0;var r=n(0),i=n(1),a=n(13),o=n(226),s=n(54);e.pieSpiderLabelLayout=function(t,e,n,l){var u,c,f=e[0]&&e[0].get("coordinate");if(f){var h=f.getCenter(),p=f.getRadius(),d={};try{for(var g=r.__values(e),y=g.next();!y.done;y=g.next()){var v=y.value;d[v.get("id")]=v}}catch(t){u={error:t}}finally{try{y&&!y.done&&(c=g.return)&&c.call(g)}finally{if(u)throw u.error}}var m=(0,i.get)(t[0],"labelHeight",14),_=Math.max((0,i.get)(t[0],"offset",0),4);(0,i.each)(t,(function(t){if(t&&(0,i.get)(d,[t.id])){var e=t.x>h.x||t.x===h.x&&t.y>h.y,n=(0,i.isNil)(t.offsetX)?4:t.offsetX,r=(0,a.polarToCartesian)(h.x,h.y,p+4,t.angle),o=_+n;t.x=h.x+(e?1:-1)*(p+o),t.y=r.y}}));var x=f.start,b=f.end,M=(0,i.groupBy)(t,(function(t){return t.x<h.x?"left":"right"})),C=2*(p+_)+m;(0,i.each)(M,(function(t){var e=t.length*m;e>C&&(C=Math.min(e,Math.abs(x.y-b.y)))}));var P={minX:x.x,maxX:b.x,minY:h.y-C/2,maxY:h.y+C/2};(0,i.each)(M,(function(t,e){var n=C/m;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),(0,i.each)(t,(function(t,e){e>n&&(d[t.id].set("visible",!1),t.invisible=!0)}))),(0,o.antiCollision)(t,m,P)}));var S=P.minY,O=P.maxY;(0,i.each)(M,(function(t,e){var n="right"===e;(0,i.each)(t,(function(t){var e=(0,i.get)(d,t&&[t.id]);if(e)if(t.y<S||t.y>O)e.set("visible",!1);else{var r=e.getChildByIndex(0),o=r.getCanvasBBox(),l=n?o.x:o.maxX,u=o.y+o.height/2;(0,s.translate)(r,t.x-l,t.y-u),t.labelLine&&function(t,e,n){var r,o=e.getCenter(),s=e.getRadius(),l={x:t.x-(n?4:-4),y:t.y},u=(0,a.polarToCartesian)(o.x,o.y,s+4,t.angle),c={x:l.x,y:l.y},f={x:u.x,y:u.y},h=(0,a.polarToCartesian)(o.x,o.y,s,t.angle);if(l.y!==u.y){var p=n?4:-4;c.y=l.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(u.x,l.x-p),l.y<u.y?f.y=c.y:(f.y=u.y,f.x=Math.max(f.x,c.x-p))),t.angle>0&&t.angle<Math.PI/2&&(c.x=Math.max(u.x,l.x-p),l.y>u.y?f.y=c.y:(f.y=u.y,f.x=Math.max(f.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(u.x,l.x-p),l.y>u.y?f.y=c.y:(f.y=u.y,f.x=Math.min(f.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(u.x,l.x-p),l.y<u.y?f.y=c.y:(f.y=u.y,f.x=Math.min(f.x,c.x-p)))}r=["M ".concat(l.x,",").concat(l.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(f.x,",").concat(f.y),"L ".concat(u.x,",").concat(u.y),"L ".concat(h.x,",").concat(h.y)].join(" "),t.labelLine=(0,i.deepMix)({},t.labelLine,{path:r})}(t,f,n)}}))}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInCanvas=void 0;var r=n(1),i=n(54);e.limitInCanvas=function(t,e,n,a){(0,r.each)(e,(function(t){var e=a.minX,n=a.minY,r=a.maxX,o=a.maxY,s=t.getCanvasBBox(),l=s.minX,u=s.minY,c=s.maxX,f=s.maxY,h=s.x,p=s.y,d=s.width,g=s.height,y=h,v=p;(l<e||c<e)&&(y=e),(u<n||f<n)&&(v=n),l>r?y=r-d:c>r&&(y-=c-r),u>o?v=o-g:f>o&&(v-=f-o),y===h&&v===p||(0,i.translate)(t,y-h,v-p)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInShape=void 0;var r=n(1);e.limitInShape=function(t,e,n,i){(0,r.each)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.overlap=e.fixedOverlap=void 0;var r=n(1),i=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,r=t.yGap,i=void 0===r?8:r;this.xGap=n,this.yGap=i}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,r=Math.round(t.minX),i=Math.round(t.maxX),a=Math.round(t.minY),o=Math.round(t.maxY),s=r;s<=i;s+=1)if(n[s]){if(s===r||s===i){for(var l=a;l<=o;l++)if(n[s][l]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),r=Math.round(t.maxX),i=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=r;o+=1)e[o]||(e[o]={});for(o=n;o<=r;o+=this.xGap){for(var s=i;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=i;o<=a;o+=1)e[n][o]=!0,e[r][o]=!0;if(1!==this.xGap)for(o=n;o<=r;o+=1)e[o][i]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function a(t,e,n,r){var i=t.getCanvasBBox(),a=i.width,o=i.height,s={x:e,y:n,textAlign:"center"};switch(r){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right"}return t.attr(s),t.getCanvasBBox()}e.fixedOverlap=function(t,e,n,a){var o=new i;(0,r.each)(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),a=i.x,o=i.y,s=t.getCanvasBBox(),l=Math.sqrt(s.width*s.width+s.height*s.height),u=1,c=0,f=0;if(e.hasGap(s))return e.fillGap(s),!0;for(var h,p,d=!1,g=0,y={};Math.min(Math.abs(c),Math.abs(f))<l&&g<n;)if(h=u+=-1,p=void 0,f=~~(r=[(p=.1*h)*Math.cos(p),p*Math.sin(p)])[1],((c=~~r[0])||f)&&!y["".concat(c,"-").concat(f)]&&(t.attr({x:a+c,y:o+f}),c+f<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,y["".concat(c,"-").concat(f)]=!0;break}return d})(t.find((function(t){return"text"===t.get("type")})),o)||t.remove(!0)})),o.destroy()},e.overlap=function(t,e,n,o){var s=new i;(0,r.each)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,i=n.y,o=!1,l=0;l<=8;l++){var u=a(e,r,i,l);if(s.hasGap(u)){s.fillGap(u),o=!0;break}}o||t.remove(!0)})),s.destroy()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hideOverlap=void 0;var r=n(0),i=n(1),a=n(570),o=n(53),s=n(571),l=n(572),u=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&(0,a.intersect)(r,o)&&(o.visible=!1)}}return e},c=new Map,f=(0,s.createWorker)(l.code);e.hideOverlap=function(t,e,n,a){return new Promise((function(n){var a=e.map((function(e,n){return r.__assign(r.__assign({},(0,o.getLabelBackgroundInfo)(e,t[n],(0,i.get)(t[n],"background.padding"))),{visible:!0})})),s=JSON.stringify(a),l=function(t){return c.set(s,t),(0,i.each)(t,(function(t,n){var r=t.visible,i=e[n];r?null==i||i.show():null==i||i.hide()})),n(t)};if(c.get(s))l(c.get(s));else if(f)try{f.postMessage(JSON.stringify({type:"hide-overlap",items:a})),f.onmessage=function(t){return l(Array.isArray(t.data)?t.data:[])},f.onmessageerror=function(t){console.warn("[AntV G2] Web worker is not available"),l(u(a))}}catch(t){console.error(t),l(u(a))}else l(u(a))}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intersect=e.isIntersectRect=void 0;var r=n(0);function i(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function a(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function o(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],n=t.rotation;return n?[a(e[0],n,e[0]),a(e[1],n,e[0]),a(e[2],n,e[0]),a(e[3],n,e[0])]:e}function s(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,r.__spreadArray([],r.__read(n),!1)),max:Math.max.apply(Math,r.__spreadArray([],r.__read(n),!1))}}function l(t,e){return t.max>e.min&&t.min<e.max}function u(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}function c(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}e.isIntersectRect=c,e.intersect=function(t,e,n){if(void 0===n&&(n=0),!u(t)||!u(e))return!1;if(!t.rotation&&!e.rotation)return c(t,e,n);for(var r=o(t),a=o(e),f=i(r).concat(i(a)),h=0;h<f.length;h++){var p=f[h];if(!l(s(r,p),s(a,p)))return!1}return!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createWorker=void 0,e.createWorker=function(t){if("undefined"!=typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new Worker(URL.createObjectURL(e))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.code=void 0;var r="\n self.onmessage = ".concat(function(t){var e=function(){function t(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]};return[e(t[0],t[1]),e(t[1],t[2])]}function e(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var r=t.x,i=t.y;return{x:(r-n.x)*Math.cos(-e)+(i-n.y)*Math.sin(-e)+n.x,y:(n.x-r)*Math.sin(-e)+(i-n.y)*Math.cos(-e)+n.y}}function n(t){var n=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.min<e.max}function a(t){return["x","y","width","height"].every((function(e){return"number"==typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(e,o,s){if(void 0===s&&(s=0),!a(e)||!a(o))return!1;if(!e.rotation&&!o.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(e,o,s);for(var l=n(e),u=n(o),c=t(l).concat(t(u)),f=0;f<c.length;f++){var h=c[f];if(!i(r(l,h),r(u,h)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(t){for(var n=t.slice(),r=0;r<n.length;r++){var i=n[r];if(i.visible)for(var a=r+1;a<n.length;a++){var o=n[a];i!==o&&o.visible&&e(i,o)&&(o.visible=!1)}}return n}};try{var r=JSON.parse(t.data);if(!r||!r.type||!n[r.type])return;var i=r.type,a=r.items,o=n[i](a);self.postMessage(o)}catch(t){throw t}}.toString(),"\n");e.code=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.adjustColor=void 0;var r=n(29),i=n(574);e.adjustColor=function(t,e,n){if(0!==n.length){var a=n[0].get("element").geometry.theme,o=a.labels||{},s=o.fillColorLight,l=o.fillColorDark;n.forEach((function(t,n){var o=e[n].find((function(t){return"text"===t.get("type")})),u=r.BBox.fromObject(t.getBBox()),c=r.BBox.fromObject(o.getCanvasBBox()),f=!u.contains(c),h=t.attr("fill"),p=(0,i.isContrastColorWhite)(h);f?o.attr(a.overflowLabels.style):p?s&&o.attr("fill",s):l&&o.attr("fill",l)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isContrastColorWhite=void 0;var r=n(0),i=r.__importDefault(n(70)),a={"#5B8FF9":!0};e.isContrastColorWhite=function(t){var e=i.default.toRGB(t).toUpperCase();if(a[e])return a[e];var n=r.__read(i.default.rgb2arr(e),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalAdjustPosition=void 0;var r=n(29),i=n(53);function a(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,a){var o=n[a];return function(t,e,n){var a=t.coordinate,o=(0,i.findLabelTextShape)(e),s=r.BBox.fromObject(o.getCanvasBBox()),l=r.BBox.fromObject(n.getBBox());return a.isTransposed?l.height>=s.height:l.width>=s.width}(t,e,o)}))}e.intervalAdjustPosition=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type)a(l,e,n)&&n.forEach((function(t,n){var a=e[n];!function(t,e,n){var a=t.coordinate,o=r.BBox.fromObject(n.getBBox()),s=(0,i.findLabelTextShape)(e);a.isTransposed?s.attr({x:o.minX+o.width/2,textAlign:"center"}):s.attr({y:o.minY+o.height/2,textBaseline:"middle"})}(l,a,t)}))}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.intervalHideOverlap=void 0;var r=n(0),i=n(1),a=n(53);e.intervalHideOverlap=function(t,e,n){var o;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),l=null==s?void 0:s.geometry;if(l&&"interval"===l.type){var u,c=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return(0,i.each)(t,(function(t,r){r%n==0?e.push(t):t.set("visible",!1)})),e}(e),f=r.__read(l.getXYFields(),1)[0],h=[],p=[],d=(0,i.groupBy)(c,(function(t){return t.get("data")[f]})),g=(0,i.uniq)((0,i.map)(c,(function(t){return t.get("data")[f]})));c.forEach((function(t){t.set("visible",!0)}));var y=function(t){t&&(t.length&&p.push(t.pop()),p.push.apply(p,r.__spreadArray([],r.__read(t),!1)))};for((0,i.size)(g)>0&&(u=g.shift(),y(d[u])),(0,i.size)(g)>0&&(u=g.pop(),y(d[u])),(0,i.each)(g.reverse(),(function(t){y(d[t])}));p.length>0;){var v=p.shift();v.get("visible")&&((0,a.checkShapeOverlap)(v,h)?v.set("visible",!1):h.push(v))}}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pointAdjustPosition=void 0;var r=n(0),i=n(1),a=n(53);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var n,r,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}e.pointAdjustPosition=function(t,e,n,l,u){var c,f;if(0!==n.length){var h=null===(c=n[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&"point"===p.type){var d=r.__read(p.getXYFields(),2),g=d[0],y=d[1],v=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=u&&u.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,r.__spreadArray([],r.__read(a),!1)),i}(p,v[t]);e.length;){var n=e.shift(),i=(0,a.findLabelTextShape)(n);if(o(m,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[y]===e.get("data")[y]})))i.set("visible",!1);else{var l=!1;s(m,n)&&(i.attr("y",i.attr("y")+2*_),l=s(m,n)),l?i.set("visible",!1):m.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathAdjustPosition=void 0;var r=n(0),i=n(1),a=n(53);function o(t,e,n){return t.some((function(t){return n(t,e)}))}function s(t,e){return o(t,e,(function(t,e){var n,r,i,o=(0,a.findLabelTextShape)(t),s=(0,a.findLabelTextShape)(e);return n=o.getCanvasBBox(),r=s.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}e.pathAdjustPosition=function(t,e,n,l,u){var c,f;if(0!==n.length){var h=null===(c=n[0])||void 0===c?void 0:c.get("element"),p=null==h?void 0:h.geometry;if(p&&!(["path","line","area"].indexOf(p.type)<0)){var d=r.__read(p.getXYFields(),2),g=d[0],y=d[1],v=(0,i.groupBy)(e,(function(t){return t.get("data")[g]})),m=[],_=u&&u.offset||(null===(f=t[0])||void 0===f?void 0:f.offset)||12;(0,i.map)((0,i.keys)(v).reverse(),(function(t){for(var e=function(t,e){var n=t.getXYFields()[1],i=[],a=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return a.length>0&&i.push(a.shift()),a.length>0&&i.push(a.pop()),i.push.apply(i,r.__spreadArray([],r.__read(a),!1)),i}(p,v[t]);e.length;){var n=e.shift(),i=(0,a.findLabelTextShape)(n);if(o(m,n,(function(t,e){return t.get("data")[g]===e.get("data")[g]&&t.get("data")[y]===e.get("data")[y]})))i.set("visible",!1);else{var l=!1;s(m,n)&&(i.attr("y",i.attr("y")+2*_),l=s(m,n)),l?i.set("visible",!1):m.push(n)}}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.limitInPlot=void 0;var r=n(1),i=n(14),a=n(580),o=n(54);e.limitInPlot=function(t,e,n,s,l){if(!(e.length<=0)){var u=(null==l?void 0:l.direction)||["top","right","bottom","left"],c=(null==l?void 0:l.action)||"translate",f=(null==l?void 0:l.margin)||0,h=e[0].get("coordinate");if(h){var p=(0,i.getCoordinateBBox)(h,f),d=p.minX,g=p.minY,y=p.maxX,v=p.maxY;(0,r.each)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,s=e.maxX,l=e.maxY,f=e.x,h=e.y,p=e.width,m=e.height,_=f,x=h;if(u.indexOf("left")>=0&&(n<d||s<d)&&(_=d),u.indexOf("top")>=0&&(i<g||l<g)&&(x=g),u.indexOf("right")>=0&&(n>y?_=y-p:s>y&&(_-=s-y)),u.indexOf("bottom")>=0&&(i>v?x=v-m:l>v&&(x-=l-v)),_!==f||x!==h){var b=_-f;if("translate"===c)(0,o.translate)(t,b,x-h);else if("ellipsis"===c){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=(0,r.pick)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=(0,a.getEllipsisText)(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getEllipsisText=e.measureTextWidth=void 0;var r=n(0),i=n(1),a=n(581);e.measureTextWidth=(0,i.memoize)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,o=e.fontWeight,s=e.fontStyle,l=e.fontVariant,u=(0,a.getCanvasContext)();return u.font=[s,l,o,"".concat(n,"px"),r].join(" "),u.measureText((0,i.isString)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),r.__spreadArray([t],r.__read((0,i.values)(e)),!1).join("")}));e.getEllipsisText=function(t,n,r){var a,o=(0,e.measureTextWidth)("...",r);a=(0,i.isString)(t)?t:(0,i.toString)(t);var s,l,u=n,c=[];if((0,e.measureTextWidth)(t,r)<=n)return t;for(;s=a.substr(0,16),!((l=(0,e.measureTextWidth)(s,r))+o>u&&l>u);)if(c.push(s),u-=l,!(a=a.substr(16)))return c.join("");for(;s=a.substr(0,1),!((l=(0,e.measureTextWidth)(s,r))+o>u);)if(c.push(s),u-=l,!(a=a.substr(1)))return c.join("");return"".concat(c.join(""),"...")}},function(t,e,n){"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.getCanvasContext=void 0,e.getCanvasContext=function(){return r||(r=document.createElement("canvas").getContext("2d")),r}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fadeOut=e.fadeIn=void 0;var r=n(1);e.fadeIn=function(t,e,n){var i={fillOpacity:(0,r.isNil)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:(0,r.isNil)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:(0,r.isNil)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)},e.fadeOut=function(t,e,n){var r=e.easing,i=e.duration,a=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),a)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.growInXY=e.growInY=e.growInX=void 0;var r=n(584);e.growInX=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"x")},e.growInY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"y")},e.growInXY=function(t,e,n){var i=n.coordinate,a=n.minYPoint;(0,r.doScaleAnimate)(t,e,i,a,"xy")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.doScaleAnimate=e.transformShape=void 0;var r=n(0),i=n(8);function a(t,e,n){var a,o=r.__read(e,2),s=o[0],l=o[1];return t.applyToMatrix([s,l,1]),"x"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,1],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,1],["t",s,l]])):"y"===n?(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,.01],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",1,100],["t",s,l]])):"xy"===n&&(t.setMatrix(i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",.01,.01],["t",s,l]])),a=i.ext.transform(t.getMatrix(),[["t",-s,-l],["s",100,100],["t",s,l]])),a}e.transformShape=a,e.doScaleAnimate=function(t,e,n,r,i){var o,s,l=n.start,u=n.end,c=n.getWidth(),f=n.getHeight();"y"===i?(o=l.x+c/2,s=r.y<l.y?r.y:l.y):"x"===i?(o=r.x>l.x?r.x:l.x,s=l.y+f/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,s=n.getCenter().y):(o=(l.x+u.x)/2,s=(l.y+u.y)/2));var h=a(t,[o,s],i);t.animate({matrix:h},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.pathIn=void 0,e.pathIn=function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.positionUpdate=void 0,e.positionUpdate=function(t,e,n){var r=n.toAttrs,i=r.x,a=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:a},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scaleInY=e.scaleInX=void 0;var r=n(8);e.scaleInX=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var l=r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(l),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)},e.scaleInY=function(t,e,n){var i=t.getBBox(),a=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,s=a.points,l=s[0].y-s[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,l,1]);var u=r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,.01],["t",o,l]]);t.setMatrix(u),t.animate({matrix:r.ext.transform(t.getMatrix(),[["t",-o,-l],["s",1,100],["t",o,l]])},e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sectorPathUpdate=e.getArcInfo=void 0;var r=n(0),i=n(217),a=n(1),o=n(13);function s(t,e){var n,o=(0,i.getArcParams)(t,e),s=o.startAngle,l=o.endAngle,u=o.arcFlag;return!(0,a.isNumberEqual)(s,.5*-Math.PI)&&s<.5*-Math.PI&&(s+=2*Math.PI),!(0,a.isNumberEqual)(l,.5*-Math.PI)&&l<.5*-Math.PI&&(l+=2*Math.PI),0===e[5]&&(s=(n=r.__read([l,s],2))[0],l=n[1]),(0,a.isNumberEqual)(s,1.5*Math.PI)&&(s=-.5*Math.PI),(0,a.isNumberEqual)(l,-.5*Math.PI)&&u&&(l=1.5*Math.PI),{startAngle:s,endAngle:l}}function l(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]&&"C"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function u(t){var e,n,i,o=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===o.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var u=o[0],c=o.length>1?o[1]:o[0],f=t.indexOf(u),h=t.indexOf(c),p=l(t[f-1]),d=l(t[h-1]),g=s(p,u),y=g.startAngle,v=g.endAngle,m=s(d,c),_=m.startAngle,x=m.endAngle;(0,a.isNumberEqual)(y,_)&&(0,a.isNumberEqual)(v,x)?(n=y,i=v):(n=Math.min(y,_),i=Math.max(v,x));var b=u[1],M=o[o.length-1][1];return b<M?(b=(e=r.__read([M,b],2))[0],M=e[1]):b===M&&(M=0),{startAngle:n,endAngle:i,radius:b,innerRadius:M}}e.getArcInfo=u,e.sectorPathUpdate=function(t,e,n){var i=n.toAttrs,s=n.coordinate,l=i.path||[],c=l.map((function(t){return t[0]}));if(!(l.length<1)){var f=u(l),h=f.startAngle,p=f.endAngle,d=f.radius,g=f.innerRadius,y=u(t.attr("path")),v=y.startAngle,m=y.endAngle,_=s.getCenter(),x=h-v,b=p-m;0!==x||0!==b?t.animate((function(t){var e=v+t*x,n=m+t*b;return r.__assign(r.__assign({},i),{path:(0,a.isEqual)(c,["M","A","A","Z"])?(0,o.getArcPath)(_.x,_.y,d,e,n):(0,o.getSectorPath)(_.x,_.y,d,e,n,g)})}),r.__assign(r.__assign({},e),{callback:function(){t.attr("path",l)}})):t.attr("path",l)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.waveIn=void 0;var r=n(0),i=n(14);e.waveIn=function(t,e,n){var a=(0,i.getCoordinateClipCfg)(n.coordinate,20),o=a.type,s=a.startState,l=a.endState,u=t.setClip({type:o,attrs:s});n.toAttrs&&t.attr(n.toAttrs),u.animate(l,r.__assign(r.__assign({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),u.remove(!0)}}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.zoomOut=e.zoomIn=void 0;var r=n(0),i=n(8),a=n(1);function o(t,e,n){if(t.isGroup())(0,a.each)(t.getChildren(),(function(t){o(t,e,n)}));else{var s=t.getBBox(),l=(s.minX+s.maxX)/2,u=(s.minY+s.maxY)/2;if(t.applyToMatrix([l,u,1]),"zoomIn"===n){var c=i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]]);t.setMatrix(c),t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",100,100],["t",l,u]])},e)}else t.animate({matrix:i.ext.transform(t.getMatrix(),[["t",-l,-u],["s",.01,.01],["t",l,u]])},r.__assign(r.__assign({},e),{callback:function(){t.remove(!0)}}))}}e.zoomIn=function(t,e,n){o(t,e,"zoomIn")},e.zoomOut=function(t,e,n){o(t,e,"zoomOut")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,i=.5/(1+1/Math.sin(n/2)),a=(0,o.getAnglePoint)({x:.5,y:.5},.5-i,r),s=5*Math.PI/4,l=1*Math.PI/4;return{start:(0,o.getAnglePoint)(a,i,s),end:(0,o.getAnglePoint)(a,i,l)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,a=n.fields,o=n.type,s=r.__read(a,1)[0];if(!s)throw new Error("No `fields` specified!");var l=this.getFieldValues(t,s),u=l.length,c=[];return l.forEach((function(n,r){var a=[{field:s,value:n,values:l}],f=(0,i.filter)(t,e.getFacetDataFilter(a)),h={type:o,data:f,region:e.getRegion(u,r),columnValue:n,columnField:s,columnIndex:r,columnValuesLength:u,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};c.push(h)})),c},e.prototype.getXAxisOption=function(t,e,n,r){return n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,a=this.cfg.cols,o=r.__read(n,1)[0];if(!o)throw new Error("No `fields` specified!");var s=this.getFieldValues(t,o),l=s.length;a=a||l;var u=this.getPageCount(l,a),c=[];return s.forEach((function(n,r){var f=e.getRowCol(r,a),h=f.row,p=f.col,d=[{field:o,value:n,values:s}],g=(0,i.filter)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,a,p,h),columnValue:n,rowValue:n,columnField:o,rowField:null,columnIndex:p,rowIndex:h,columnValuesLength:a,rowValuesLength:u,total:l};c.push(y)})),c},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){return{row:Math.floor(t/e),col:t%e}},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,r=e.type,i=n.length,a=i,o=[],s=0;s<a;s++)for(var l=n[s],u=0;u<i;u++){var c=n[u],f={type:r,data:t,region:this.getRegion(i,a,s,u),columnValue:l,rowValue:c,columnField:l,rowField:c,columnIndex:s,rowIndex:u,columnValuesLength:a,rowValuesLength:i};o.push(f)}return o},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,l=e.columnValuesLength,u=(e.rowValuesLength,e.columnValue),c=e.rowValue,f=e.view;if(0===s){var h=(0,i.get)(t.cfg.columnTitle,"formatter"),p=(0,i.deepMix)({position:["50%","0%"],content:h?h(u):u},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.columnTitle);f.annotation().text(p)}if(r===l-1){h=(0,i.get)(t.cfg.rowTitle,"formatter"),p=(0,i.deepMix)({position:["100%","50%"],content:h?h(c):c},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.rowTitle);f.annotation().text(p)}}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2==0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!=0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,a=this,o=r.__read(this.cfg.fields,1)[0],s=[],l=1,u=1,c=[""],f=[""];return this.cfg.transpose?(e=o,c=this.getFieldValues(t,e).slice(0,2),l=c.length):(n=o,f=this.getFieldValues(t,n).slice(0,2),u=f.length),c.forEach((function(r,o){f.forEach((function(h,p){var d=[{field:e,value:r,values:c},{field:n,value:h,values:f}],g=(0,i.filter)(t,a.getFacetDataFilter(d)),y={type:a.cfg.type,data:g,region:a.getRegion(u,l,o,p),columnValue:r,rowValue:h,columnField:e,rowField:n,columnIndex:o,rowIndex:p,columnValuesLength:l,rowValuesLength:u};s.push(y)}))})),s},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?r.__assign(r.__assign({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnValue,s=e.rowValue,l=e.view,u=(0,i.get)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=(0,i.deepMix)({position:["50%","0%"],content:u?u(r):r},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);l.annotation().text(c)}else{c=(0,i.deepMix)({position:["100%","50%"],content:u?u(s):s},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.title);l.annotation().text(c)}}))},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:r.__assign({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=r.__read(this.cfg.fields,2),a=n[0],o=n[1],s=[],l=1,u=1,c=[""],f=[""];return a&&(c=this.getFieldValues(t,a),l=c.length),o&&(f=this.getFieldValues(t,o),u=f.length),c.forEach((function(n,r){f.forEach((function(h,p){var d=[{field:a,value:n,values:c},{field:o,value:h,values:f}],g=(0,i.filter)(t,e.getFacetDataFilter(d)),y={type:e.cfg.type,data:g,region:e.getRegion(u,l,r,p),columnValue:n,rowValue:h,columnField:a,rowField:o,columnIndex:r,rowIndex:p,columnValuesLength:l,rowValuesLength:u};s.push(y)}))})),s},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e,n){var r=e.columnIndex,s=e.rowIndex,l=e.columnValuesLength,u=e.columnValue,c=e.rowValue,f=e.view;if(0===s){var h=(0,i.get)(t.cfg.columnTitle,"formatter"),p=(0,i.deepMix)({position:["50%","0%"],content:h?h(u):u},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.columnTitle);f.annotation().text(p)}if(r===l-1){h=(0,i.get)(t.cfg.rowTitle,"formatter"),p=(0,i.deepMix)({position:["100%","50%"],content:h?h(c):c},(0,o.getFactTitleConfig)(a.DIRECTION.RIGHT),t.cfg.rowTitle);f.annotation().text(p)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?r.__assign(r.__assign({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?r.__assign(r.__assign({},n),{title:null}):n},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(55),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return r.__extends(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(a.VIEW_LIFE_CIRCLE.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return(0,i.deepMix)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,a=1/t,o={x:i*n,y:a*r};return{start:o,end:{x:o.x+i,y:o.y+2*a/3}}},e.prototype.forceColIndex=function(t){var e,n,i=this,a=[],o=0;t.forEach((function(t){i.isLeaf(t)&&(a.push(t),t.columnIndex=o,o++)})),a.forEach((function(t){t.columnValuesLength=a.length}));for(var s=this.cfg.fields.length-1;s>=0;s--){var l=this.getFacetsByLevel(t,s);try{for(var u=(e=void 0,r.__values(l)),c=u.next();!c.done;c=u.next()){var f=c.value;this.isLeaf(f)||(f.originColIndex=f.columnIndex,f.columnIndex=this.getRegionIndex(f.children),f.columnValuesLength=a.length)}}catch(t){e={error:t}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var a=[],o=i[e-1],s=this.getFieldValues(t,o);return s.forEach((function(i,l){var u=[{field:o,value:i,values:s}],c=t.filter(r.getFacetDataFilter(u));if(c.length){var f={type:r.cfg.type,data:c,region:null,columnValue:i,rowValue:"",columnField:o,rowField:"",columnIndex:l,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(c,e+1,n)};a.push(f),n.push(f)}})),a}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;(0,i.each)(this.facets,(function(e){var n=e.columnValue,r=e.view,s=(0,i.get)(t.cfg.title,"formatter"),l=(0,i.deepMix)({position:["50%","0%"],content:s?s(n):n},(0,o.getFactTitleConfig)(a.DIRECTION.TOP),t.cfg.title);r.annotation().text(l)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},a={x:i.x,y:i.y+(r.y-i.y)/2},o={x:r.x,y:a.y};n.drawLine([i,a,o,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:(0,i.assign)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?r.__assign(r.__assign({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?r.__assign(r.__assign({},n),{title:null,label:null}):n},e}(n(37).Facet);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(19),o=n(36),s=n(2),l=n(14),u=n(25),c=n(598),f=n(42),h=["regionFilter","shape"],p=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(s.LAYER.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(s.LAYER.BG).addGroup(),n.option=[],n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;(0,i.each)(t.option,(function(n){if((0,i.includes)(h,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;(0,i.each)(this.option,(function(n){if(!(0,i.includes)(h,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(s.GEOMETRY_LIFE_CIRCLE.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(s.VIEW_LIFE_CIRCLE.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=a.Annotation[(0,i.upperFirst)(e)];if(n){var r=this.getAnnotationTheme(e),o=this.getAnnotationCfg(e,t,r);return o?{component:new n(o),layer:this.isTop(o)?s.LAYER.FORE:s.LAYER.BG,direction:s.DIRECTION.NONE,type:s.COMPONENT_TYPE.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(r.__assign({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(r.__assign({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(r.__assign({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(r.__assign({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(r.__assign({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(r.__assign({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(r.__assign({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(r.__assign({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(r.__assign({type:"shape"},t))},e.prototype.html=function(t){this.annotation(r.__assign({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=(0,i.isFunction)(t)?t.call(null,a,o):t,l=0,u=0;if((0,i.isArray)(s)){var f=r.__read(s,2),h=f[0],p=f[1];if((0,i.isString)(h)&&-1!==h.indexOf("%")&&!isNaN(h.slice(0,-1)))return this.parsePercentPosition(s);l=(0,c.getNormalizedValue)(h,a),u=(0,c.getNormalizedValue)(p,Object.values(o)[0])}else if(!(0,i.isNil)(s))try{for(var d=r.__values((0,i.keys)(s)),g=d.next();!g.done;g=d.next()){var y=g.value,v=s[y];y===a.field&&(l=(0,c.getNormalizedValue)(v,a)),o[y]&&(u=(0,c.getNormalizedValue)(v,o[y]))}}catch(t){e={error:t}}finally{try{g&&!g.done&&(n=d.return)&&n.call(d)}finally{if(e)throw e.error}}return isNaN(l)||isNaN(u)?null:this.view.getCoordinate().convert({x:l,y:u})},e.prototype.getRegionPoints=function(t,e){var n,r=this,a=this.view.getXScale(),o=this.view.getScalesByDim("y"),s=Object.values(o)[0],l=a.field,u=this.view.getData(),c=(0,i.isArray)(t)?t[0]:t[l],f=(0,i.isArray)(e)?e[0]:e[l],h=[];return(0,i.each)(u,(function(t,e){if(t[l]===c&&(n=e),e>=n){var i=r.parsePosition([t[l],t[s.field]]);i&&h.push(i)}if(t[l]===f)return!1})),h},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,a=r.end,o=Math.min(i.x,a.x),s=Math.min(i.y,a.y);return{x:r.getWidth()*e+o,y:r.getHeight()*n+s}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+r,maxY:a.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var a=this,s=this.view.getCoordinate(),u=this.view.getCanvas(),c={};if((0,i.isNil)(e))return null;var f=e.start,h=e.end,p=e.position,d=this.parsePosition(f),g=this.parsePosition(h),y=this.parsePosition(p);if(!(!["arc","image","line","region","regionFilter"].includes(t)||d&&g))return null;if(["text","dataMarker","html"].includes(t)&&!y)return null;if("arc"===t){var v=e,m=(v.start,v.end,r.__rest(v,["start","end"])),_=(0,l.getAngleByPoint)(s,d),x=(0,l.getAngleByPoint)(s,g);_>x&&(x=2*Math.PI+x),c=r.__assign(r.__assign({},m),{center:s.getCenter(),radius:(0,l.getDistanceToCenter)(s,d),startAngle:_,endAngle:x})}else if("image"===t){var b=e;b.start,b.end,m=r.__rest(b,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g,src:e.src})}else if("line"===t){var M=e;M.start,M.end,m=r.__rest(M,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g,text:(0,i.get)(e,"text",null)})}else if("region"===t){var C=e;C.start,C.end,m=r.__rest(C,["start","end"]);c=r.__assign(r.__assign({},m),{start:d,end:g})}else if("text"===t){var P=this.view.getData(),S=e,O=(S.position,S.content),w=(m=r.__rest(S,["position","content"]),O);(0,i.isFunction)(O)&&(w=O(P)),c=r.__assign(r.__assign(r.__assign({},y),m),{content:w})}else if("dataMarker"===t){var A=e,T=(A.position,A.point),E=A.line,I=A.text,L=A.autoAdjust,D=A.direction;m=r.__rest(A,["position","point","line","text","autoAdjust","direction"]);c=r.__assign(r.__assign(r.__assign({},m),y),{coordinateBBox:this.getCoordinateBBox(),point:T,line:E,text:I,autoAdjust:L,direction:D})}else if("dataRegion"===t){var B=e,j=B.start,R=B.end,k=B.region,F=(I=B.text,B.lineLength);m=r.__rest(B,["start","end","region","text","lineLength"]);c=r.__assign(r.__assign({},m),{points:this.getRegionPoints(j,R),region:k,text:I,lineLength:F})}else if("regionFilter"===t){var N=e,G=(N.start,N.end,N.apply),Y=N.color,V=(m=r.__rest(N,["start","end","apply","color"]),this.view.geometries),H=[],z=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):H.push(e))};(0,i.each)(V,(function(t){G?(0,i.contains)(G,t.type)&&(0,i.each)(t.elements,(function(t){z(t.shape)})):(0,i.each)(t.elements,(function(t){z(t.shape)}))})),c=r.__assign(r.__assign({},m),{color:Y,shapes:H,start:d,end:g})}else if("shape"===t){var X=e,W=X.render,q=r.__rest(X,["render"]);c=r.__assign(r.__assign({},q),{render:function(t){if((0,i.isFunction)(e.render))return W(t,a.view,{parsePosition:a.parsePosition.bind(a)})}})}else if("html"===t){var U=e,Z=U.html;U.position,q=r.__rest(U,["html","position"]);c=r.__assign(r.__assign(r.__assign({},q),y),{parent:u.get("el").parentNode,html:function(t){return(0,i.isFunction)(Z)?Z(t,a.view):Z}})}var Q=(0,i.deepMix)({},n,r.__assign(r.__assign({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(Q.container=this.getComponentContainer(Q)),Q.animate=this.view.getOptions().animate&&Q.animate&&(0,i.get)(e,"animate",Q.animate),Q.animateOption=(0,i.deepMix)({},o.DEFAULT_ANIMATE_CFG,Q.animateOption,e.animateOption),Q},e.prototype.isTop=function(t){return(0,i.get)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return(0,i.get)(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,a=this.getAnnotationTheme(n),o=this.getAnnotationCfg(n,t,a);o&&(0,u.omit)(o,["container"]),e.component.update(r.__assign(r.__assign({},o||{}),{visible:!!o})),(0,i.includes)(h,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),(0,i.includes)(h,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,r){(0,i.find)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(f.Controller);e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNormalizedValue=void 0;var r=n(599);e.getNormalizedValue=function(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?(0,r.getMedian)(e.values.map((function(t,e){return e}))):(0,r.getMedian)(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:(0,r.getMean)(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getMean=e.getMedian=void 0;var r=n(0),i=n(1);e.getMedian=function(t){var e=r.__spreadArray([],r.__read(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2==1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2},e.getMean=function(t){var e=(0,i.reduce)(t,(function(t,e){return t+(isNaN(e)||!(0,i.isNumber)(e)?0:e)}),0);return 0===t.length?0:e/t.length}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(36),l=n(90),u=n(90),c=n(601),f=n(25),h=n(42),p=["container"],d=r.__assign(r.__assign({},s.DEFAULT_ANIMATE_CFG),{appear:null}),g=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.gridForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n.axisContainer=n.view.getLayer(a.LAYER.BG).addGroup(),n.axisForeContainer=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();(0,i.each)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,s=n.type,u=n.extra,f=u.dim,h=u.scale,p=u.alignTick;if(s===a.COMPONENT_TYPE.AXIS)e.isPolar?"x"===f?r=e.isTransposed?(0,l.getAxisRegion)(e,o):(0,l.getCircleAxisCenterRadius)(e):"y"===f&&(r=e.isTransposed?(0,l.getCircleAxisCenterRadius)(e):(0,l.getAxisRegion)(e,o)):r=(0,l.getAxisRegion)(e,o);else if(s===a.COMPONENT_TYPE.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===f?(0,c.getCircleGridItems)(e,t.view.getYScales()[0],h,p,f):(0,c.getLineGridItems)(e,h,f,p):"x"===f?(0,c.getLineGridItems)(e,h,f,p):(0,c.getCircleGridItems)(e,t.view.getXScale(),h,p,f),center:t.view.getCoordinate().getCenter()}}else r={items:(0,c.getLineGridItems)(e,h,f,p)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=(0,u.getAxisOption)(this.option,e.field);if(!1!==n){var r=(0,l.getAxisDirection)(n,a.DIRECTION.BOTTOM),o=a.LAYER.BG,s=this.view.getCoordinate(),c=this.getId("axis",e.field),h=this.getId("grid",e.field);if(s.isRect){if(g=this.cache.get(c)){var d=this.getLineAxisCfg(e,n,r);(0,f.omit)(d,p),g.component.update(d),t.set(c,g)}else g=this.createLineAxis(e,n,o,r,"x"),this.cache.set(c,g),t.set(c,g);if(y=this.cache.get(h)){d=this.getLineGridCfg(e,n,r,"x");(0,f.omit)(d,p),y.component.update(d),t.set(h,y)}else(y=this.createLineGrid(e,n,o,r,"x"))&&(this.cache.set(h,y),t.set(h,y))}else if(s.isPolar){var g,y;if(g=this.cache.get(c)){d=s.isTransposed?this.getLineAxisCfg(e,n,a.DIRECTION.RADIUS):this.getCircleAxisCfg(e,n,r);(0,f.omit)(d,p),g.component.update(d),t.set(c,g)}else{if(s.isTransposed){if((0,i.isUndefined)(n))return;g=this.createLineAxis(e,n,o,a.DIRECTION.RADIUS,"x")}else g=this.createCircleAxis(e,n,o,r,"x");this.cache.set(c,g),t.set(c,g)}if(y=this.cache.get(h)){d=s.isTransposed?this.getCircleGridCfg(e,n,a.DIRECTION.RADIUS,"x"):this.getLineGridCfg(e,n,a.DIRECTION.CIRCLE,"x");(0,f.omit)(d,p),y.component.update(d),t.set(h,y)}else{if(s.isTransposed){if((0,i.isUndefined)(n))return;y=this.createCircleGrid(e,n,o,a.DIRECTION.RADIUS,"x")}else y=this.createLineGrid(e,n,o,a.DIRECTION.CIRCLE,"x");y&&(this.cache.set(h,y),t.set(h,y))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();(0,i.each)(n,(function(n,r){if(n&&!n.isIdentity){var o=n.field,s=(0,u.getAxisOption)(e.option,o);if(!1!==s){var c=a.LAYER.BG,h=e.getId("axis",o),d=e.getId("grid",o),g=e.view.getCoordinate();if(g.isRect){var y=(0,l.getAxisDirection)(s,0===r?a.DIRECTION.LEFT:a.DIRECTION.RIGHT);if(m=e.cache.get(h)){var v=e.getLineAxisCfg(n,s,y);(0,f.omit)(v,p),m.component.update(v),t.set(h,m)}else m=e.createLineAxis(n,s,c,y,"y"),e.cache.set(h,m),t.set(h,m);if(_=e.cache.get(d)){v=e.getLineGridCfg(n,s,y,"y");(0,f.omit)(v,p),_.component.update(v),t.set(d,_)}else(_=e.createLineGrid(n,s,c,y,"y"))&&(e.cache.set(d,_),t.set(d,_))}else if(g.isPolar){var m,_;if(m=e.cache.get(h)){v=g.isTransposed?e.getCircleAxisCfg(n,s,a.DIRECTION.CIRCLE):e.getLineAxisCfg(n,s,a.DIRECTION.RADIUS);(0,f.omit)(v,p),m.component.update(v),t.set(h,m)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;m=e.createCircleAxis(n,s,c,a.DIRECTION.CIRCLE,"y")}else m=e.createLineAxis(n,s,c,a.DIRECTION.RADIUS,"y");e.cache.set(h,m),t.set(h,m)}if(_=e.cache.get(d)){v=g.isTransposed?e.getLineGridCfg(n,s,a.DIRECTION.CIRCLE,"y"):e.getCircleGridCfg(n,s,a.DIRECTION.RADIUS,"y");(0,f.omit)(v,p),_.component.update(v),t.set(d,_)}else{if(g.isTransposed){if((0,i.isUndefined)(s))return;_=e.createLineGrid(n,s,c,a.DIRECTION.CIRCLE,"y")}else _=e.createCircleGrid(n,s,c,a.DIRECTION.RADIUS,"y");_&&(e.cache.set(d,_),t.set(d,_))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var s={component:new o.LineAxis(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===a.DIRECTION.RADIUS?a.DIRECTION.NONE:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,r,s){var l=this.getLineGridCfg(t,e,r,s);if(l){var u={component:new o.LineGrid(l),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.createCircleAxis=function(t,e,n,r,i){var s={component:new o.CircleAxis(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:a.COMPONENT_TYPE.AXIS,extra:{dim:i,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createCircleGrid=function(t,e,n,r,s){var l=this.getCircleGridCfg(t,e,r,s);if(l){var u={component:new o.CircleGrid(l),layer:n,direction:a.DIRECTION.NONE,type:a.COMPONENT_TYPE.GRID,extra:{dim:s,scale:t,alignTick:(0,i.get)(l,"alignTick",!0)}};return u.component.init(),u}},e.prototype.getLineAxisCfg=function(t,e,n){var a=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,o=this.view.getCoordinate(),s=(0,l.getAxisRegion)(o,n),u=(0,l.getAxisTitleText)(t,e),c=(0,l.getAxisThemeCfg)(this.view.getTheme(),n),f=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:u}}},{title:(0,l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,h=(0,i.deepMix)(r.__assign(r.__assign({container:a},s),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:o.isPolar?-1*(0,l.getAxisFactorByRegion)(s,o.getCenter()):(0,l.getAxisFactorByRegion)(s,o.getCenter()),theme:c}),c,f),p=this.getAnimateCfg(h),d=p.animate,g=p.animateOption;h.animateOption=g,h.animate=d;var y=(0,l.isVertical)(s),v=(0,i.get)(h,"verticalLimitLength",y?1/3:.5);if(v<=1){var m=this.view.getCanvas().get("width"),_=this.view.getCanvas().get("height");h.verticalLimitLength=v*(y?m:_)}return h},e.prototype.getLineGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,l.getAxisThemeCfg)(this.view.getTheme(),n),e)){var a=(0,c.getGridThemeCfg)(this.view.getTheme(),n),o=(0,i.deepMix)({container:(0,i.get)(e,["top"])?this.gridForeContainer:this.gridContainer},a,(0,i.get)(e,"grid"),this.getAnimateCfg(e));return o.items=(0,c.getLineGridItems)(this.view.getCoordinate(),t,r,(0,i.get)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var o=(0,i.get)(e,["top"])?this.axisForeContainer:this.axisContainer,s=this.view.getCoordinate(),u=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(s.endAngle-s.startAngle)!==2*Math.PI||u.pop();var c=(0,l.getAxisTitleText)(t,e),f=(0,l.getAxisThemeCfg)(this.view.getTheme(),a.DIRECTION.CIRCLE),h=(0,i.get)(e,["title"])?(0,i.deepMix)({title:{style:{text:c}}},{title:(0,l.getAxisTitleOptions)(this.view.getTheme(),n,e.title)},e):e,p=(0,i.deepMix)(r.__assign(r.__assign({container:o},(0,l.getCircleAxisCenterRadius)(this.view.getCoordinate())),{ticks:u,verticalFactor:1,theme:f}),f,h),d=this.getAnimateCfg(p),g=d.animate,y=d.animateOption;return p.animate=g,p.animateOption=y,p},e.prototype.getCircleGridCfg=function(t,e,n,r){if((0,c.showGrid)((0,l.getAxisThemeCfg)(this.view.getTheme(),n),e)){var o=(0,c.getGridThemeCfg)(this.view.getTheme(),a.DIRECTION.RADIUS),s=(0,i.deepMix)({container:(0,i.get)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},o,(0,i.get)(e,"grid"),this.getAnimateCfg(e)),u=(0,i.get)(s,"alignTick",!0),f="x"===r?this.view.getYScales()[0]:this.view.getXScale();return s.items=(0,c.getCircleGridItems)(this.view.getCoordinate(),f,t,u,r),s}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&(0,i.get)(t,"animate"),animateOption:t&&t.animateOption?(0,i.deepMix)({},d,t.animateOption):d}},e}(h.Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.showGrid=e.getCircleGridItems=e.getLineGridItems=e.getGridThemeCfg=void 0;var r=n(1);e.getGridThemeCfg=function(t,e){var n=(0,r.deepMix)({},(0,r.get)(t,["components","axis","common"]),(0,r.get)(t,["components","axis",e]));return(0,r.get)(n,["grid"],{})},e.getLineGridItems=function(t,e,n,r){var i=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(o){var l=(e.value+s)/2;i.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return a}),a[0]),i},e.getCircleGridItems=function(t,e,n,i,a){var o=e.values.length,s=[],l=n.getTicks();return l.reduce((function(e,n){var l=e?e.value:n.value,u=n.value,c=(l+u)/2;return"x"===a?s.push({points:[t.convert({x:i?u:c,y:0}),t.convert({x:i?u:c,y:1})]}):s.push({points:(0,r.map)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?u:c})}))}),n}),l[0]),s},e.showGrid=function(t,e){var n=(0,r.get)(e,"grid");if(null===n)return!1;var i=(0,r.get)(t,"grid");return!(void 0===n&&null===i)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(36),l=n(29),u=n(126),c=n(25),f=n(215),h=n(38);function p(t,e){return(0,i.isBoolean)(t)?!1!==t&&{}:(0,i.get)(t,[e],t)}function d(t){return(0,i.get)(t,"position",a.DIRECTION.BOTTOM)}var g=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,(0,i.each)(this.components,(function(e){var n=e.component,i=e.direction,a=(0,f.getLegendLayout)(i),o=n.get("maxWidthRatio"),s=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(a,o,s),h=n.get("maxWidth"),p=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,h||0),maxHeight:Math.min(c.maxHeight,p||0)});var d=n.get("padding"),g=n.getLayoutBBox(),y=new l.BBox(g.x,g.y,g.width,g.height).expand(d),v=r.__read((0,u.directionToPosition)(t.view.viewBBox,y,i),2),m=v[0],_=v[1],x=r.__read((0,u.directionToPosition)(t.layoutBBox,y,i),2),b=x[0],M=x[1],C=0,P=0;i.startsWith("top")||i.startsWith("bottom")?(C=m,P=M):(C=b,P=_),n.setLocation({x:C+d[3],y:P+d[0]}),t.layoutBBox=t.layoutBBox.cut(y,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if((0,i.get)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);(0,c.omit)(o,["container"]),r.component.update(o),e[n]=!0}else{var s=this.createCustomLegend(void 0,void 0,void 0,this.option);if(s){s.init();var l=a.LAYER.FORE,u=d(this.option);this.components.push({id:n,component:s,layer:l,direction:u,type:a.COMPONENT_TYPE.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,a){var o=t.getId(a.field),s=t.getComponentById(o);if(s){var l=void 0,u=p(t.option,a.field);!1!==u&&((0,i.get)(u,"custom")?l=t.getCategoryCfg(n,r,a,u,!0):a.isLinear?l=t.getContinuousCfg(n,r,a,u):a.isCategory&&(l=t.getCategoryCfg(n,r,a,u))),l&&((0,c.omit)(l,["container"]),s.direction=d(u),s.component.update(l),e[o]=!0)}else{var f=t.createFieldLegend(n,r,a);f&&(f.component.init(),t.components.push(f),e[o]=!0)}}));var f=[];(0,i.each)(this.getComponents(),(function(t){e[t.id]?f.push(t):t.component.destroy()})),this.components=f},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return(0,i.each)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};(0,i.each)(e,(function(e){var r=e.getGroupAttributes();(0,i.each)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=p(this.option,n.field),s=a.LAYER.FORE,l=d(o);if(!1!==o&&((0,i.get)(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:s,direction:l,type:a.COMPONENT_TYPE.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new o.CategoryLegend(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,(0,c.omit)(r,["value"]));return new o.ContinuousLegend(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new o.CategoryLegend(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var a=n.getTicks(),o=(0,i.find)(a,(function(t){return 0===t.value})),l=(0,i.find)(a,(function(t){return 1===t.value})),u=a.map((function(t){var r=t.value,i=t.tickValue,a=e.mapping(n.invert(r)).join("");return{value:i,attrValue:a,color:a,scaleValue:r}}));o||u.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),l||u.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),u.sort((function(t,e){return t.value-e.value}));var c={min:(0,i.head)(u).value,max:(0,i.last)(u).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=u.map((function(t){return t.attrValue})));var p=this.container,g=d(r),y=(0,f.getLegendLayout)(g),v=(0,i.get)(r,"title");return v&&(v=(0,i.deepMix)({text:(0,h.getName)(n)},v)),c.container=p,c.layout=y,c.title=v,c.animateOption=s.DEFAULT_ANIMATE_CFG,this.mergeLegendCfg(c,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,o){var l=this.container,u=(0,i.get)(r,"position",a.DIRECTION.BOTTOM),c=(0,f.getLegendThemeCfg)(this.view.getTheme(),u),p=(0,i.get)(c,["marker"]),d=(0,i.get)(r,"marker"),g=(0,f.getLegendLayout)(u),y=(0,i.get)(c,["pageNavigator"]),v=(0,i.get)(r,"pageNavigator"),m=o?(0,f.getCustomLegendItems)(p,d,r.items):(0,f.getLegendItems)(this.view,t,e,p,d),_=(0,i.get)(r,"title");_&&(_=(0,i.deepMix)({text:n?(0,h.getName)(n):""},_));var x=(0,i.get)(r,"maxWidthRatio"),b=(0,i.get)(r,"maxHeightRatio"),M=this.getCategoryLegendSizeCfg(g,x,b);M.container=l,M.layout=g,M.items=m,M.title=_,M.animateOption=s.DEFAULT_ANIMATE_CFG,M.pageNavigator=(0,i.deepMix)({},y,v);var C=this.mergeLegendCfg(M,r,u);C.reversed&&C.items.reverse();var P=(0,i.get)(C,"maxItemWidth");return P&&P<=1&&(C.maxItemWidth=this.view.viewBBox.width*P),C},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],a=(0,f.getLegendThemeCfg)(this.view.getTheme(),r);return(0,i.deepMix)({},a,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return(0,i.find)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=a.COMPONENT_MAX_VIEW_PERCENTAGE),void 0===n&&(n=a.COMPONENT_MAX_VIEW_PERCENTAGE);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(n(42).Controller);e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(19),s=n(29),l=n(126),u=n(25),c=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=i.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=r.__read(t,2),i=e[0],a=e[1];n.start=i,n.end=a,n.changeViewData(i,a)},n.container=n.view.getLayer(a.LAYER.FORE).addGroup(),n.onChangeFn=(0,i.throttle)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(a.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;(0,i.isNil)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!(0,i.isEmpty)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=r.__read(n,4),o=i[0],u=(i[1],i[2],i[3]),c=this.slider.component.getLayoutBBox(),f=new s.BBox(c.x,c.y,Math.min(c.width,e),c.height).expand(n),h=this.getMinMaxText(this.start,this.end),p=h.minText,d=h.maxText,g=r.__read((0,l.directionToPosition)(this.view.viewBBox,f,a.DIRECTION.BOTTOM),2),y=(g[0],g[1]),v=r.__read((0,l.directionToPosition)(this.view.coordinateBBox,f,a.DIRECTION.BOTTOM),2),m=v[0];v[1];this.slider.component.update(r.__assign(r.__assign({},this.getSliderCfg()),{x:m+u,y:y+o,width:this.width,start:this.start,end:this.end,minText:p,maxText:d})),this.view.viewBBox=this.view.viewBBox.cut(f,a.DIRECTION.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new o.Slider(r.__assign({container:this.container},t));return e.init(),{component:e,layer:a.LAYER.FORE,direction:a.DIRECTION.BOTTOM,type:a.COMPONENT_TYPE.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=r.__assign(r.__assign({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if((0,i.isObject)(this.option)){var e=r.__assign({data:this.getData()},(0,i.get)(this.option,"trendCfg",{}));t=(0,i.deepMix)({},t,this.getThemeOptions(),this.option),t=r.__assign(r.__assign({},t),{trendCfg:e})}return t.start=(0,i.clamp)(Math.min((0,i.isNil)(t.start)?0:t.start,(0,i.isNil)(t.end)?1:t.end),0,1),t.end=(0,i.clamp)(Math.max((0,i.isNil)(t.start)?0:t.start,(0,i.isNil)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=r.__read(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var i=n[0],a=i.field,o=i.ticks;return t.reduce((function(t,n){return n[a]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,i.get)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=(0,i.valuesOfKey)(n,r.field);r.isLinear&&(a=a.sort());var o=a,s=(0,i.size)(n);if(!r||!s)return{};var l=(0,i.size)(o),u=Math.floor(t*(l-1)),c=Math.floor(e*(l-1)),f=(0,i.get)(o,[u]),h=(0,i.get)(o,[c]),p=this.getSliderCfg().formatter;return p&&(f=p(f,n[u],u),h=p(h,n[c],c)),{minText:f,maxText:h}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),a=(0,i.size)(n);if(r&&a){var o=(0,i.valuesOfKey)(n,r.field),s=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,l=s,c=(0,i.size)(l),f=Math.floor(t*(c-1)),h=Math.floor(e*(c-1));this.view.filter(r.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||(0,u.isBetween)(n,f,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(n(42).Controller);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(42),a=n(19),o=n(29),s=n(126),l=n(2),u=n(1),c=n(25),f=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=u.noop,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=(0,u.clamp)(e,0,1);var i=n.view.getOptions().animate;r||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(i)},n.container=n.view.getLayer(l.LAYER.FORE).addGroup(),n.onChangeFn=(0,u.throttle)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r.__extends(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(l.VIEW_LIFE_CIRCLE.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),a=new o.BBox(i.x,i.y,Math.min(i.width,e),i.height).expand(n),u=this.getScrollbarComponentCfg(),c=void 0,f=void 0;if(u.isHorizontal){var h=r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.BOTTOM),2),p=(h[0],h[1]),d=r.__read((0,s.directionToPosition)(this.view.coordinateBBox,a,l.DIRECTION.BOTTOM),2),g=d[0];d[1];c=g,f=p}else{var y=r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),2),v=(y[0],p=y[1],r.__read((0,s.directionToPosition)(this.view.viewBBox,a,l.DIRECTION.RIGHT),2));g=v[0],v[1];c=g,f=p}c+=n[3],f+=n[0],this.trackLen?this.scrollbar.component.update(r.__assign(r.__assign({},u),{x:c,y:f,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(r.__assign(r.__assign({},u),{x:c,y:f})),this.view.viewBBox=this.view.viewBBox.cut(a,u.isHorizontal?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT)}},e.prototype.update=function(){this.render()},e.prototype.getComponents=function(){return this.scrollbar?[this.scrollbar]:[]},e.prototype.clear=function(){this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0),this.trackLen=0,this.thumbLen=0,this.ratio=0,this.cnt=0,this.step=0,this.data=void 0,this.xScaleCfg=void 0,this.yScalesCfg=[]},e.prototype.setValue=function(t){this.onValueChange({ratio:t})},e.prototype.getValue=function(){return this.ratio},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return(0,u.get)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=(0,u.get)(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,a=r.__rest(n,["thumbHighlightColor"]);return{default:(0,u.deepMix)({},(0,u.get)(e,["default","style"],{}),a),hover:(0,u.deepMix)({},(0,u.get)(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),r=n.trackLen,i=n.thumbLen;this.trackLen=r,this.thumbLen=i,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*(0,u.clamp)(this.ratio,0,1));return[t,Math.min(t+this.step-1,this.cnt-1)]},e.prototype.changeViewData=function(t,e){var n=this,i=r.__read(t,2),a=i[0],o=i[1],s="vertical"!==this.getValidScrollbarCfg().type,l=(0,u.valuesOfKey)(this.data,this.xScaleCfg.field),f=this.view.getXScale().isLinear?l.sort((function(t,e){return Number(t)-Number(e)})):l,h=s?f:f.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=h.indexOf(t);return!(e>-1)||(0,c.isBetween)(e,a,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new a.Scrollbar(r.__assign(r.__assign({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:l.LAYER.FORE,direction:t?l.DIRECTION.BOTTOM:l.DIRECTION.RIGHT,type:l.COMPONENT_TYPE.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?r.__assign(r.__assign({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):r.__assign({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,r=e.categorySize,i="vertical"!==n;return Math.floor((i?t.width:t.height)/r)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=(0,u.valuesOfKey)(e,t.field);return(0,u.size)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),a=i.type,o=i.padding,s=i.width,l=i.height,c=i.style,f="vertical"!==a,h=r.__read(o,4),p=h[0],d=h[1],g=h[2],y=h[3],v=f?{x:e.minX+y,y:n.maxY-l-g}:{x:n.maxX-s-d,y:e.minY+p},m=this.getStep(),_=this.getCnt(),x=f?e.width-y-d:e.height-p-g,b=Math.max(x*(0,u.clamp)(m/_,0,1),20);return r.__assign(r.__assign({},this.getThemeOptions()),{x:v.x,y:v.y,size:f?l:s,isHorizontal:f,trackLen:x,thumbLen:b,thumbOffset:0,theme:this.getScrollbarTheme(c)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return(0,u.isObject)(this.option)&&(t=r.__assign(r.__assign({},t),this.option)),(0,u.isObject)(this.option)&&this.option.padding||(t.padding=(t.type,[0,0,0,0])),t},e.prototype.getScrollbarData=function(){var t=this.view.getCoordinate(),e=this.getValidScrollbarCfg(),n=this.view.getOptions().data||[];return t.isReflect("y")&&"vertical"===e.type&&(n=r.__spreadArray([],r.__read(n),!1).reverse()),n},e}(i.Controller);e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getItemsOfView=void 0;var r=n(0),i=n(1),a=n(78),o=n(13),s=r.__importDefault(n(11)),l={fill:"#CCD6EC",opacity:.3};function u(t,e,n){var o,s,l,u,c,f,h=(0,a.findItemsFromViewRecurisive)(t,e,n);if(h.length){h=(0,i.flatten)(h);try{for(var p=r.__values(h),d=p.next();!d.done;d=p.next()){var g=d.value;try{for(var y=(l=void 0,r.__values(g)),v=y.next();!v.done;v=y.next()){var m=v.value,_=m.mappingData,x=_.x,b=_.y;m.x=(0,i.isArray)(x)?x[x.length-1]:x,m.y=(0,i.isArray)(b)?b[b.length-1]:b}}catch(t){l={error:t}}finally{try{v&&!v.done&&(u=y.return)&&u.call(y)}finally{if(l)throw l.error}}}}catch(t){o={error:t}}finally{try{d&&!d.done&&(s=p.return)&&s.call(p)}finally{if(o)throw o.error}}if(!1===n.shared&&h.length>1){var M=h[0],C=Math.abs(e.y-M[0].y);try{for(var P=r.__values(h),S=P.next();!S.done;S=P.next()){var O=S.value,w=Math.abs(e.y-O[0].y);w<=C&&(M=O,C=w)}}catch(t){c={error:t}}finally{try{S&&!S.done&&(f=P.return)&&f.call(P)}finally{if(c)throw c.error}}h=[M]}return(0,i.uniq)((0,i.flatten)(h))}return[]}e.getItemsOfView=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,a=e.getController("tooltip").getTooltipCfg(),s=u(e,{x:n.x,y:n.y},a);if(!(0,i.isEqual)(s,this.items)&&(this.items=s,s.length)){var c=e.getXScale().field,f=s[0].data[c],h=[],p=e.geometries;if((0,i.each)(p,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[c]===f}));h=h.concat(e)}})),h.length){var d=e.getCoordinate(),g=h[0].shape.getCanvasBBox(),y=h[0].shape.getCanvasBBox(),v=g;(0,i.each)(h,(function(t){var e=t.shape.getCanvasBBox();d.isTransposed?(e.minY<g.minY&&(g=e),e.maxY>y.maxY&&(y=e)):(e.minX<g.minX&&(g=e),e.maxX>y.maxX&&(y=e)),v.x=Math.min(e.minX,v.minX),v.y=Math.min(e.minY,v.minY),v.width=Math.max(e.maxX,v.maxX)-v.x,v.height=Math.max(e.maxY,v.maxY)-v.y}));var m=e.backgroundGroup,_=e.coordinateBBox,x=void 0;if(d.isRect){var b=e.getXScale(),M=t||{},C=M.appendRatio,P=M.appendWidth;(0,i.isNil)(P)&&(C=(0,i.isNil)(C)?b.isLinear?0:.25:C,P=d.isTransposed?C*y.height:C*g.width);var S=void 0,O=void 0,w=void 0,A=void 0;d.isTransposed?(S=_.minX,O=Math.min(y.minY,g.minY)-P,w=_.width,A=v.height+2*P):(S=Math.min(g.minX,y.minX)-P,O=_.minY,w=v.width+2*P,A=_.height),x=[["M",S,O],["L",S+w,O],["L",S+w,O+A],["L",S,O+A],["Z"]]}else{var T=(0,i.head)(h),E=(0,i.last)(h),I=(0,o.getAngle)(T.getModel(),d).startAngle,L=(0,o.getAngle)(E.getModel(),d).endAngle,D=d.getCenter(),B=d.getRadius(),j=d.innerRadius*B;x=(0,o.getSectorPath)(D.x,D.y,B,I,L,j)}if(this.regionPath)this.regionPath.attr("path",x),this.regionPath.show();else{var R=(0,i.get)(t,"style",l);this.regionPath=m.addShape({type:"path",name:"active-region",capture:!1,attrs:r.__assign(r.__assign({},R),{path:x})})}}}},e.prototype.hide=function(){this.regionPath&&this.regionPath.hide(),this.items=null},e.prototype.destroy=function(){this.hide(),this.regionPath&&this.regionPath.remove(!0),t.prototype.destroy.call(this)},e}(s.default);e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.showTooltip=function(t,e){var n=(0,a.getSilbings)(t);(0,i.each)(n,(function(n){var r=(0,a.getSiblingPoint)(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=(0,a.getSilbings)(t);(0,i.each)(e,(function(t){t.hideTooltip()}))},e}(r.__importDefault(n(227)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(41),o=r.__importDefault(n(11)),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context.event,e=this.timeStamp,n=+new Date;if(n-e>16){var r=this.location,a={x:t.x,y:t.y};r&&(0,i.isEqual)(r,a)||this.showTooltip(a),this.timeStamp=n,this.location=a}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context.event.target;if(e&&e.get("tip")){this.tooltip||this.renderTooltip();var n=e.get("tip");this.tooltip.update(r.__assign({title:n},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,o={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},l=e.getTheme(),u=(0,i.get)(l,["components","tooltip","domStyles"],{}),c=new s.HtmlTooltip({parent:n.get("el").parentNode,region:o,visible:!1,crosshairs:null,domStyles:r.__assign({},(0,i.deepMix)({},u,(t={},t[a.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[a.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(o.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(127)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),a=n(4),o=n(1),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return r.__extends(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");return n?t.getScaleByField(n.getFields()[0]):null},e.prototype.getLinkPath=function(t,e){var n=this.context.view.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),i=e.shape.getCanvasBBox();return n?[["M",r.minX,r.minY],["L",i.minX,i.maxY],["L",i.maxX,i.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",i.minX,i.minY],["L",i.minX,i.maxY],["L",r.maxX,r.maxY],["Z"]]},e.prototype.addLinkShape=function(t,e,n,i){var a={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:r.__assign(r.__assign({},(0,o.deepMix)({},a,(0,o.isFunction)(i)?i(a,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,r=this.context.view,i=this.getColorScale(r,t);if(i){var s=(0,a.getElementValue)(t,i.field);if(!this.cache[s]){var l=(0,a.getElementsByField)(r,i.field,s),u=this.linkGroup.addGroup();this.cache[s]=u;var c=l.length;(0,o.each)(l,(function(t,r){if(r<c-1){var i=l[r+1];n.addLinkShape(u,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=(0,a.getElementValue)(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=(0,a.getCurrentElement)(e);n&&this.linkByElement(n,null==t?void 0:t.style)},e.prototype.unlink=function(){var t=(0,a.getCurrentElement)(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(i.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(129)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(130)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var a=n.getScaleByField(r.getFields()[0]),o=(0,i.getElementValue)(t,a.field),s=(0,i.getElements)(n),l=s.filter((function(t){return(0,i.getElementValue)(t,a.field)===o}));this.setHighlightBy(s,(function(t){return l.includes(t)}),e)}},e}(r.__importDefault(n(131)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=r.__importStar(n(131)),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(a.STATUS_UNACTIVE)&&t.setState(a.STATUS_UNACTIVE,!1),t.setState(a.STATUS_ACTIVE,!0)):(t.setState(a.STATUS_UNACTIVE,!0),t.hasState(a.STATUS_ACTIVE)&&t.setState(a.STATUS_ACTIVE,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),a=(0,i.getElementValue)(t,r.field),o=(0,i.getElements)(n),s=o.filter((function(t){return(0,i.getElementValue)(t,r.field)===a}));this.setHighlightBy(o,(function(t){return s.includes(t)}),e)},e.prototype.toggle=function(){var t=(0,i.getCurrentElement)(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=void 0;var r,i=n(0),a=n(56),o=n(132),s=i.__importDefault(n(129));!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(r||(r={})),e.ELEMENT_RANGE_HIGHLIGHT_EVENTS=r;var l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return i.__extends(e,t),e.prototype.clearViewState=function(t){(0,o.clearHighlight)(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(r.BEFORE_HIGHLIGHT,a.Event.fromData(e,r.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(r.AFTER_HIGHLIGHT,a.Event.fromData(e,r.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(r.BEFORE_CLEAR,a.Event.fromData(e,r.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(r.AFTER_CLEAR,a.Event.fromData(e,r.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){(0,o.setHighlightBy)(n,(function(e){return t.indexOf(e)>=0}),e)},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=n(132),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,r=(0,i.getElements)(n);(0,a.setHighlightBy)(r,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;(0,a.clearHighlight)(t)},e}(r.__importDefault(n(130)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(129)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(127)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(130)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r.__extends(e,t),e.prototype.active=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(621),o=r.__importDefault(n(44)),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return r.__extends(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var r=t.getItems();if(n)(0,i.each)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var a=t.getItemsByState("active"),o=!0;(0,i.each)(a,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():(0,i.each)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)(0,a.clearList)(t.list);else{var e=this.getAllowComponents();(0,i.each)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(o.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearList=void 0;var r=n(1);e.clearList=function(t){var e=t.getItems();(0,r.each)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r.__extends(e,t),e.prototype.selected=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return r.__extends(e,t),e.prototype.unchecked=function(){this.setState()},e}(r.__importDefault(n(44)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(44)),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return r.__extends(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var r=t.getItems();n&&(0,i.each)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!(0,i.some)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();(0,i.each)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(a.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(44)),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.toggle=function(){var t,e,n,i,a,o,s,l,u=this.getTriggerListInfo();if(null==u?void 0:u.item){var c=u.list,f=u.item,h=c.getItems(),p=h.filter((function(t){return!c.hasState(t,"unchecked")})),d=h.filter((function(t){return c.hasState(t,"unchecked")})),g=p[0];if(h.length===p.length)try{for(var y=r.__values(h),v=y.next();!v.done;v=y.next()){var m=v.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(e){t={error:e}}finally{try{v&&!v.done&&(e=y.return)&&e.call(y)}finally{if(t)throw t.error}}else if(h.length-d.length==1)if(g.id===f.id)try{for(var _=r.__values(h),x=_.next();!x.done;x=_.next()){m=x.value;c.setItemState(m,"unchecked",!1)}}catch(t){n={error:t}}finally{try{x&&!x.done&&(i=_.return)&&i.call(_)}finally{if(n)throw n.error}}else try{for(var b=r.__values(h),M=b.next();!M.done;M=b.next()){m=M.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){a={error:t}}finally{try{M&&!M.done&&(o=b.return)&&o.call(b)}finally{if(a)throw a.error}}else try{for(var C=r.__values(h),P=C.next();!P.done;P=C.next()){m=P.value;c.setItemState(m,"unchecked",m.id!==f.id)}}catch(t){s={error:t}}finally{try{P&&!P.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}}},e}(i.default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(44)),a=n(1),o=n(41),s=n(19),l="legend-radio-tip",u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r.__extends(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null==t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&(0,a.isEqual)(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var i=e.view.getCanvas().get("el").getBoundingClientRect(),a=i.x,o=i.y;this.tooltip.update(r.__assign(r.__assign({title:n.get("tip")},t),{x:t.x+a,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[o.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[o.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(l)&&document.body.removeChild(document.getElementById(l));var n=new s.HtmlTooltip({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:l});n.init(),n.setCapture(!1),this.tooltip=n},e}(i.default);e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return r.__extends(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=(0,i.last)(this.points),n=0,r=0,o=0;if(t.length){var s=t[0];n=(0,a.distance)(s,e)/2,r=(e.x+s.x)/2,o=(e.y+s.y)/2}return{x:r,y:o,r:n}},e}(r.__importDefault(n(133)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1);function a(t){t.x=(0,i.clamp)(t.x,0,1),t.y=(0,i.clamp)(t.y,0,1)}var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return r.__extends(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,o=this.context.view.getCoordinate(),s=o.invert((0,i.head)(n)),l=o.invert((0,i.last)(n));return this.inPlot&&(a(s),a(l)),"x"===r?(t=o.convert({x:s.x,y:0}),e=o.convert({x:l.x,y:1})):(t=o.convert({x:0,y:s.y}),e=o.convert({x:1,y:l.y})),{start:t,end:e}},e}(r.__importDefault(n(228)).default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.getMaskPath=function(){var t=this.points;return(0,i.getSpline)(t,!0)},e}(r.__importDefault(n(229)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(r.__importDefault(n(11)).default);e.default=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&(0,i.each)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if((0,o.isList)(t)){if(i){var a=n.getItemsByState("unchecked"),s=(0,o.getScaleByField)(e,i),l=a.map((function(t){return t.name}));l.length?this.filterView(e,i,(function(t){var e=s.getText(t);return!l.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if((0,o.isSlider)(t)){var u=n.getValue(),c=r.__read(u,2),f=c[0],h=c[1];this.filterView(e,i,(function(t){return t>=f&&t<=h})),e.render(!0)}}},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(230)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filterView=function(t,e,n){var r=(0,o.getSilbings)(t);(0,i.each)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=(0,o.getSilbings)(t);(0,i.each)(e,(function(t){t.render(!0)}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.filter=function(){var t=(0,o.getDelegationObject)(this.context),e=this.context.view,n=(0,o.getElements)(e);if((0,o.isMask)(this.context)){var a=(0,o.getMaskedElements)(this.context,10);a&&(0,i.each)(n,(function(t){a.includes(t)?t.show():t.hide()}))}else if(t){var s=t.component,l=s.get("field");if((0,o.isList)(t)){if(l){var u=s.getItemsByState("unchecked"),c=(0,o.getScaleByField)(e,l),f=u.map((function(t){return t.name}));(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,l),n=c.getText(e);f.indexOf(n)>=0?t.hide():t.show()}))}}else if((0,o.isSlider)(t)){var h=s.getValue(),p=r.__read(h,2),d=p[0],g=p[1];(0,i.each)(n,(function(t){var e=(0,o.getElementValue)(t,l);e>=d&&e<=g?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=(0,o.getElements)(this.context.view);(0,i.each)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=r.__importDefault(n(11)),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return r.__extends(e,t),e.prototype.filter=function(){(0,o.isMask)(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=(0,o.getMaskedElements)(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,a=e.map((function(t){return t.getModel().data})),s=(0,o.getSilbings)(t);(0,i.each)(s,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){var e=t.getModel().data;(0,o.isInRecords)(a,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=(0,o.getSilbings)(e);(0,i.each)(n,(function(e){var n=(0,o.getSiblingMaskElements)(t.context,e,10),r=(0,o.getElements)(e);n&&(0,i.each)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=(0,o.getSilbings)(this.context.view);(0,i.each)(t,(function(t){var e=(0,o.getElements)(t);(0,i.each)(e,(function(t){t.show()}))}))},e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(1),o=n(113),s=r.__importDefault(n(11)),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg={name:"button",text:"button",textStyle:{x:0,y:0,fontSize:12,fill:"#333333",cursor:"pointer"},padding:[8,10],style:{fill:"#f7f7f7",stroke:"#cccccc",cursor:"pointer"},activeStyle:{fill:"#e6e6e6"}},e}return r.__extends(e,t),e.prototype.getButtonCfg=function(){return(0,a.deepMix)(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:r.__assign({text:t.text},t.textStyle)}).getBBox(),i=(0,o.parsePadding)(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:r.__assign({x:n.x-i[3],y:n.y-i[0],width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.ext.transform(null,[["t",t.x-n.width-10,t.y+n.height+5]]);e.setMatrix(r)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(s.default);e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(11)),a=n(4),o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):(0,a.distance)(t,this.startPoint)>4&&(e.emit("dragstart",{target:n.target,x:n.x,y:n.y}),this.dragStart=!0)}},e.prototype.end=function(){if(this.dragStart){var t=this.context.view,e=this.context.event;t.emit("dragend",{target:e.target,x:e.x,y:e.y})}this.starting=!1,this.dragStart=!1},e}(i.default);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(8),a=n(77),o=n(4),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.isMoving=!1,e.startPoint=null,e.startMatrix=null,e}return r.__extends(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint();if((0,o.distance)(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=i.ext.transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);n.backgroundGroup.setMatrix(r),n.foregroundGroup.setMatrix(r),n.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(a.Action);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return r.__extends(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;(0,i.each)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,a=n.values;t.startCache[e]={min:r,max:i,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),a=n.invert(e),o=n.invert(r),s=o.x-a.x,l=o.y-a.y,u=this.context.view,c=this.dims;(0,i.each)(c,(function(e){t.translateDim(e,{x:-1*s,y:-1*l})})),u.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var r=this.context.view,i=this.startCache[t],a=i.min,o=i.max,s=o-a,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),r.scale(e.field,{nice:!1,min:a+l,max:o+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(r.__importDefault(n(231)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return r.__extends(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;(0,i.each)(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var r=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var i=this.cacheScaleDefs[t],a=i.max-i.min,o=e.min,s=e.max,l=n*a,u=o-l,c=s+l,f=(c-u)/a;c>u&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:o-l,max:s+l})},e}(r.__importDefault(n(231)).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(77);var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var a=(null==t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),s=n.getXScale(),l=n.getOptions().data,u=(0,i.size)((0,i.valuesOfKey)(l,s.field)),c=(0,i.size)(s.values),f=o.getValue(),h=Math.floor((u-c)*f)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?a:-a),p=a/(u-c)/1e4,d=(0,i.clamp)(h/(u-c)+p,0,1);o.setValue(d)}},e}(a.Action);e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),i=n(41),a=n(1),o=n(19),s=r.__importDefault(n(11)),l=n(4),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.__extends(e,t),e.prototype.show=function(){var t=this.context,e=(0,l.getDelegationObject)(t).axis.cfg.title,n=e.description,r=e.text,a=e.descriptionTooltipStyle,o=t.event,s=o.x,u=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(i.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'" style={').concat(a,'}>\n <div class="').concat(i.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n 字段说明:').concat(n,"\n </div>\n </div>\n ")},x:s,y:u}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},s=new o.HtmlTooltip({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:r.__assign({},(0,a.deepMix)({},(t={},t[i.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[i.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});s.init(),s.setCapture(!1),this.tooltip=s},e}(s.default);e.default=u}])}));
|
|
16
|
-
//# sourceMappingURL=g2.min.js.map
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).G2={})}(this,function(w){"use strict";var R=function(t,e){return(R=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}R(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var S=function(){return(S=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function I(t,e){var n={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]]);return n}function t(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;0<=s;s--)(i=t[s])&&(a=(o<3?i(a):3<o?i(e,n,a):i(e,n))||a);return 3<o&&a&&Object.defineProperty(e,n,a),a}function D(n,r){return function(t,e){r(t,e,n)}}function e(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function F(t,a,s,l){return new(s=s||Promise)(function(n,e){function r(t){try{o(l.next(t))}catch(t){e(t)}}function i(t){try{o(l.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((l=l.apply(t,a||[])).next())})}function j(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||0<e--)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function z(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},V={},r={},o=(o=r,Object.defineProperty(o,"__esModule",{value:!0}),o.NON_CUSTOM_TAG_KEYS=o.POST_CONSTRUCT=o.DESIGN_PARAM_TYPES=o.PARAM_TYPES=o.TAGGED_PROP=o.TAGGED=o.MULTI_INJECT_TAG=o.INJECT_TAG=o.OPTIONAL_TAG=o.UNMANAGED_TAG=o.NAME_TAG=o.NAMED_TAG=void 0,o.NAMED_TAG="named",o.NAME_TAG="name",o.UNMANAGED_TAG="unmanaged",o.OPTIONAL_TAG="optional",o.INJECT_TAG="inject",o.MULTI_INJECT_TAG="multi_inject",o.TAGGED="inversify:tagged",o.TAGGED_PROP="inversify:tagged_props",o.PARAM_TYPES="inversify:paramtypes",o.DESIGN_PARAM_TYPES="design:paramtypes",o.POST_CONSTRUCT="post_construct",o.NON_CUSTOM_TAG_KEYS=[o.INJECT_TAG,o.MULTI_INJECT_TAG,o.NAME_TAG,o.UNMANAGED_TAG,o.NAMED_TAG,o.OPTIONAL_TAG],{}),G={},H={},W=(Object.defineProperty(H,"__esModule",{value:!0}),H.TargetTypeEnum=H.BindingTypeEnum=H.BindingScopeEnum=void 0,H.BindingScopeEnum={Request:"Request",Singleton:"Singleton",Transient:"Transient"},H.BindingTypeEnum={ConstantValue:"ConstantValue",Constructor:"Constructor",DynamicValue:"DynamicValue",Factory:"Factory",Function:"Function",Instance:"Instance",Invalid:"Invalid",Provider:"Provider"},H.TargetTypeEnum={ClassProperty:"ClassProperty",ConstructorArgument:"ConstructorArgument",Variable:"Variable"},{}),U=(Object.defineProperty(W,"__esModule",{value:!0}),W.id=void 0,0);W.id=function(){return U++},Object.defineProperty(G,"__esModule",{value:!0}),G.Binding=void 0;var Y=H,q=W;function X(t,e){this.id=q.id(),this.activated=!1,this.serviceIdentifier=t,this.scope=e,this.type=Y.BindingTypeEnum.Invalid,this.constraint=function(t){return!0},this.implementationType=null,this.cache=null,this.factory=null,this.provider=null,this.onActivation=null,this.dynamicValue=null}X.prototype.clone=function(){var t=new X(this.serviceIdentifier,this.scope);return t.activated=t.scope===Y.BindingScopeEnum.Singleton&&this.activated,t.implementationType=this.implementationType,t.dynamicValue=this.dynamicValue,t.scope=this.scope,t.type=this.type,t.factory=this.factory,t.provider=this.provider,t.constraint=this.constraint,t.onActivation=this.onActivation,t.cache=this.cache,t},G.Binding=X;var a={},Z=(Object.defineProperty(a,"__esModule",{value:!0}),a.STACK_OVERFLOW=a.CIRCULAR_DEPENDENCY_IN_FACTORY=a.POST_CONSTRUCT_ERROR=a.MULTIPLE_POST_CONSTRUCT_METHODS=a.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK=a.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE=a.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE=a.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT=a.ARGUMENTS_LENGTH_MISMATCH=a.INVALID_DECORATOR_OPERATION=a.INVALID_TO_SELF_VALUE=a.INVALID_FUNCTION_BINDING=a.INVALID_MIDDLEWARE_RETURN=a.NO_MORE_SNAPSHOTS_AVAILABLE=a.INVALID_BINDING_TYPE=a.NOT_IMPLEMENTED=a.CIRCULAR_DEPENDENCY=a.UNDEFINED_INJECT_ANNOTATION=a.MISSING_INJECT_ANNOTATION=a.MISSING_INJECTABLE_ANNOTATION=a.NOT_REGISTERED=a.CANNOT_UNBIND=a.AMBIGUOUS_MATCH=a.KEY_NOT_FOUND=a.NULL_ARGUMENT=a.DUPLICATED_METADATA=a.DUPLICATED_INJECTABLE_DECORATOR=void 0,a.DUPLICATED_INJECTABLE_DECORATOR="Cannot apply @injectable decorator multiple times.",a.DUPLICATED_METADATA="Metadata key was used more than once in a parameter:",a.NULL_ARGUMENT="NULL argument",a.KEY_NOT_FOUND="Key Not Found",a.AMBIGUOUS_MATCH="Ambiguous match found for serviceIdentifier:",a.CANNOT_UNBIND="Could not unbind serviceIdentifier:",a.NOT_REGISTERED="No matching bindings found for serviceIdentifier:",a.MISSING_INJECTABLE_ANNOTATION="Missing required @injectable annotation in:",a.MISSING_INJECT_ANNOTATION="Missing required @inject or @multiInject annotation in:",a.UNDEFINED_INJECT_ANNOTATION=function(t){return"@inject called with undefined this could mean that the class "+t+" has a circular dependency problem. You can use a LazyServiceIdentifer to overcome this limitation."},a.CIRCULAR_DEPENDENCY="Circular dependency found:",a.NOT_IMPLEMENTED="Sorry, this feature is not fully implemented yet.",a.INVALID_BINDING_TYPE="Invalid binding type:",a.NO_MORE_SNAPSHOTS_AVAILABLE="No snapshot available to restore.",a.INVALID_MIDDLEWARE_RETURN="Invalid return type in middleware. Middleware must return!",a.INVALID_FUNCTION_BINDING="Value provided to function binding must be a function!",a.INVALID_TO_SELF_VALUE="The toSelf function can only be applied when a constructor is used as service identifier",a.INVALID_DECORATOR_OPERATION="The @inject @multiInject @tagged and @named decorators must be applied to the parameters of a class constructor or a class property.",a.ARGUMENTS_LENGTH_MISMATCH=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"The number of constructor arguments in the derived class "+t[0]+" must be >= than the number of constructor arguments of its base class."},a.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT="Invalid Container constructor argument. Container options must be an object.",a.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE="Invalid Container option. Default scope must be a string ('singleton' or 'transient').",a.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE="Invalid Container option. Auto bind injectable must be a boolean",a.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK="Invalid Container option. Skip base check must be a boolean",a.MULTIPLE_POST_CONSTRUCT_METHODS="Cannot apply @postConstruct decorator multiple times in the same class",a.POST_CONSTRUCT_ERROR=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"@postConstruct error in class "+t[0]+": "+t[1]},a.CIRCULAR_DEPENDENCY_IN_FACTORY=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"It looks like there is a circular dependency in one of the '"+t[0]+"' bindings. Please investigate bindings withservice identifier '"+t[1]+"'."},a.STACK_OVERFLOW="Maximum call stack size exceeded",{}),K=(Object.defineProperty(Z,"__esModule",{value:!0}),Z.MetadataReader=void 0,r);function $(){}$.prototype.getConstructorMetadata=function(t){return{compilerGeneratedMetadata:Reflect.getMetadata(K.PARAM_TYPES,t),userGeneratedMetadata:Reflect.getMetadata(K.TAGGED,t)||{}}},$.prototype.getPropertiesMetadata=function(t){return Reflect.getMetadata(K.TAGGED_PROP,t)||[]},Z.MetadataReader=$;var J={},Q={},tt=(Object.defineProperty(Q,"__esModule",{value:!0}),Q.BindingCount=void 0,Q.BindingCount={MultipleBindingsAvailable:2,NoBindingsAvailable:0,OnlyOneBindingAvailable:1},{}),et=(Object.defineProperty(tt,"__esModule",{value:!0}),tt.isStackOverflowExeption=void 0,a);tt.isStackOverflowExeption=function(t){return t instanceof RangeError||t.message===et.STACK_OVERFLOW};var s={},nt=(Object.defineProperty(s,"__esModule",{value:!0}),s.circularDependencyToException=s.listMetadataForTarget=s.listRegisteredBindingsForServiceIdentifier=s.getServiceIdentifierAsString=s.getFunctionName=void 0,a);function rt(t){return"function"==typeof t?t.name:"symbol"==typeof t?t.toString():t}function it(t){return function t(e,n){void 0===n&&(n=[]);var r=rt(e.serviceIdentifier);return n.push(r),null!==e.parentRequest?t(e.parentRequest,n):n}(t).reverse().join(" --\x3e ")}function ot(t){var e;return t.name||((e=(t=t.toString()).match(/^function\s*([^\s(]+)/))?e[1]:"Anonymous function: "+t)}s.getServiceIdentifierAsString=rt,s.listRegisteredBindingsForServiceIdentifier=function(t,e,n){var r="";return 0!==(n=n(t,e)).length&&(r="\nRegistered bindings:",n.forEach(function(t){var e="Object";null!==t.implementationType&&(e=ot(t.implementationType)),r=r+"\n "+e,t.constraint.metaData&&(r=r+" - "+t.constraint.metaData)})),r},s.circularDependencyToException=function n(t){t.childRequests.forEach(function(t){var e;if(function t(e,n){return null!==e.parentRequest&&(e.parentRequest.serviceIdentifier===n||t(e.parentRequest,n))}(t,t.serviceIdentifier))throw e=it(t),new Error(nt.CIRCULAR_DEPENDENCY+" "+e);n(t)})},s.listMetadataForTarget=function(t,e){var n,r;return e.isTagged()||e.isNamed()?(n="",r=e.getNamedTag(),e=e.getCustomTags(),null!==r&&(n+=r.toString()+"\n"),null!==e&&e.forEach(function(t){n+=t.toString()+"\n"})," "+t+"\n "+t+" - "+n):" "+t},s.getFunctionName=ot;var at={},st=(Object.defineProperty(at,"__esModule",{value:!0}),at.Context=void 0,W);function lt(t){this.id=st.id(),this.container=t}lt.prototype.addPlan=function(t){this.plan=t},lt.prototype.setCurrentRequest=function(t){this.currentRequest=t},at.Context=lt;var l={},ut=(Object.defineProperty(l,"__esModule",{value:!0}),l.Metadata=void 0,r);function ct(t,e){this.key=t,this.value=e}ct.prototype.toString=function(){return this.key===ut.NAMED_TAG?"named: "+this.value.toString()+" ":"tagged: { key:"+this.key.toString()+", value: "+this.value+" }"},l.Metadata=ct;function ht(t,e){this.parentContext=t,this.rootRequest=e}var u={},dt=(Object.defineProperty(u,"__esModule",{value:!0}),u.Plan=void 0,u.Plan=ht,{}),ft={},pt={},yt=(Object.defineProperty(pt,"__esModule",{value:!0}),pt.tagProperty=pt.tagParameter=pt.decorate=void 0,a),gt=r;function vt(t,e,n,r,i){var o={},a="number"==typeof i,i=void 0!==i&&a?i.toString():n;if(a&&void 0!==n)throw new Error(yt.INVALID_DECORATOR_OPERATION);a=(o=Reflect.hasOwnMetadata(t,e)?Reflect.getMetadata(t,e):o)[i];if(Array.isArray(a))for(var s=0,l=a;s<l.length;s++){var u=l[s];if(u.key===r.key)throw new Error(yt.DUPLICATED_METADATA+" "+u.key.toString())}else a=[];a.push(r),o[i]=a,Reflect.defineMetadata(t,o,e)}function mt(t,e){Reflect.decorate(t,e)}pt.tagParameter=function(t,e,n,r){vt(gt.TAGGED,t,e,r,n)},pt.tagProperty=function(t,e,n){vt(gt.TAGGED_PROP,t.constructor,e,n)},pt.decorate=function(t,e,n){var r,i;"number"==typeof n?mt([(r=n,i=t,function(t,e){i(t,e,r)})],e):"string"==typeof n?Reflect.decorate([t],e,n):mt([t],e)},Object.defineProperty(ft,"__esModule",{value:!0}),ft.inject=ft.LazyServiceIdentifer=void 0;var bt=a,xt=r,wt=l,kt=pt;function Et(t){this._cb=t}Et.prototype.unwrap=function(){return this._cb()},ft.LazyServiceIdentifer=Et,ft.inject=function(i){return function(t,e,n){if(void 0===i)throw new Error(bt.UNDEFINED_INJECT_ANNOTATION(t.name));var r=new wt.Metadata(xt.INJECT_TAG,i);"number"==typeof n?kt.tagParameter(t,e,n,r):kt.tagProperty(t,e,r)}};var c={},_t={},h=(Object.defineProperty(_t,"__esModule",{value:!0}),_t.QueryableString=void 0,St.prototype.startsWith=function(t){return 0===this.str.indexOf(t)},St.prototype.endsWith=function(t){var t=t.split("").reverse().join(""),e=this.str.split("").reverse().join("");return this.startsWith.call({str:e},t)},St.prototype.contains=function(t){return-1!==this.str.indexOf(t)},St.prototype.equals=function(t){return this.str===t},St.prototype.value=function(){return this.str},St);function St(t){this.str=t}_t.QueryableString=h,Object.defineProperty(c,"__esModule",{value:!0}),c.Target=void 0;var Mt,Tt,Ot,Pt,At,Ct,Nt,Lt=r,It=W,Rt=l,Dt=_t;function jt(t,e,n,r){this.id=It.id(),this.type=t,this.serviceIdentifier=n,this.name=new Dt.QueryableString(e||""),this.metadata=new Array;t=null;"string"==typeof r?t=new Rt.Metadata(Lt.NAMED_TAG,r):r instanceof Rt.Metadata&&(t=r),null!==t&&this.metadata.push(t)}function Bt(t,e,n,r){var i=t.getConstructorMetadata(n),o=i.compilerGeneratedMetadata;if(void 0===o)throw a=Ot.MISSING_INJECTABLE_ANNOTATION+" "+e+".",new Error(a);var a=i.userGeneratedMetadata,i=Object.keys(a),s=0===n.length&&0<i.length,l=i.length>n.length,r=function(t,e,n,r,i){for(var o=[],a=0;a<i;a++){var s=function(t,e,n,r,i){var i=i[t.toString()]||[],o=Ft(i),a=!0!==o.unmanaged,r=r[t],s=o.inject||o.multiInject;(r=s||r)instanceof Tt.LazyServiceIdentifer&&(r=r.unwrap());if(a){var s=r===Object,a=r===Function,l=void 0===r,s=s||a||l;if(!e&&s)throw a=Ot.MISSING_INJECT_ANNOTATION+" argument "+t+" in class "+n+".",new Error(a);l=new Nt.Target(Pt.TargetTypeEnum.ConstructorArgument,o.targetName,r);return l.metadata=i,l}return null}(a,t,e,n,r);null!==s&&o.push(s)}return o}(r,e,o,a,(s||l?i:n).length),e=function t(e,n){var r=e.getPropertiesMetadata(n);var i=[];var o=Object.keys(r);for(var a=0,s=o;a<s.length;a++){var l=s[a],u=r[l],c=Ft(r[l]),l=c.targetName||l,c=c.inject||c.multiInject,l=new Nt.Target(Pt.TargetTypeEnum.ClassProperty,l,c);l.metadata=u,i.push(l)}o=Object.getPrototypeOf(n.prototype).constructor;o!==Object&&(n=t(e,o),i=Mt(Mt([],i),n));return i}(t,n);return Mt(Mt([],r),e)}function Ft(t){var e={};return t.forEach(function(t){e[t.key.toString()]=t.value}),{inject:e[At.INJECT_TAG],multiInject:e[At.MULTI_INJECT_TAG],targetName:e[At.NAME_TAG],unmanaged:e[At.UNMANAGED_TAG]}}jt.prototype.hasTag=function(t){for(var e=0,n=this.metadata;e<n.length;e++)if(n[e].key===t)return!0;return!1},jt.prototype.isArray=function(){return this.hasTag(Lt.MULTI_INJECT_TAG)},jt.prototype.matchesArray=function(t){return this.matchesTag(Lt.MULTI_INJECT_TAG)(t)},jt.prototype.isNamed=function(){return this.hasTag(Lt.NAMED_TAG)},jt.prototype.isTagged=function(){return this.metadata.some(function(e){return Lt.NON_CUSTOM_TAG_KEYS.every(function(t){return e.key!==t})})},jt.prototype.isOptional=function(){return this.matchesTag(Lt.OPTIONAL_TAG)(!0)},jt.prototype.getNamedTag=function(){return this.isNamed()?this.metadata.filter(function(t){return t.key===Lt.NAMED_TAG})[0]:null},jt.prototype.getCustomTags=function(){return this.isTagged()?this.metadata.filter(function(e){return Lt.NON_CUSTOM_TAG_KEYS.every(function(t){return e.key!==t})}):null},jt.prototype.matchesNamedTag=function(t){return this.matchesTag(Lt.NAMED_TAG)(t)},jt.prototype.matchesTag=function(i){var o=this;return function(t){for(var e=0,n=o.metadata;e<n.length;e++){var r=n[e];if(r.key===i&&r.value===t)return!0}return!1}},c.Target=jt,h=dt,Mt=n&&n.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},Object.defineProperty(h,"__esModule",{value:!0}),h.getFunctionName=h.getBaseClassDependencyCount=h.getDependencies=void 0,Tt=ft,Ot=a,Pt=H,At=r,Ct=s,Object.defineProperty(h,"getFunctionName",{enumerable:!0,get:function(){return Ct.getFunctionName}}),Nt=c,h.getDependencies=function(t,e){return Bt(t,Ct.getFunctionName(e),e,!1)},h.getBaseClassDependencyCount=function t(e,n){var r,i,n=Object.getPrototypeOf(n.prototype).constructor;return n!==Object?(r=(i=Bt(e,Ct.getFunctionName(n),n,!0)).map(function(t){return t.metadata.filter(function(t){return t.key===At.UNMANAGED_TAG})}),r=[].concat.apply([],r).length,0<(i=i.length-r)?i:t(e,n)):0};var _t={},zt=(Object.defineProperty(_t,"__esModule",{value:!0}),_t.Request=void 0,W);function Vt(t,e,n,r,i){this.id=zt.id(),this.serviceIdentifier=t,this.parentContext=e,this.parentRequest=n,this.target=i,this.childRequests=[],this.bindings=Array.isArray(r)?r:[r],this.requestScope=null===n?new Map:null}Vt.prototype.addChildRequest=function(t,e,n){t=new Vt(t,this.parentContext,this,e,n);return this.childRequests.push(t),t},_t.Request=Vt,Object.defineProperty(J,"__esModule",{value:!0}),J.getBindingDictionary=J.createMockRequest=J.plan=void 0;var Gt=Q,Ht=a,Wt=H,Ut=r,Yt=tt,qt=s,Xt=at,Zt=l,Kt=u,$t=dt,Jt=_t,Qt=c;function te(t){return t._bindingDictionary}function ee(t,e,n,r,i){var o=ne(n.container,i.serviceIdentifier),a=[];return o.length===Gt.BindingCount.NoBindingsAvailable&&n.container.options.autoBindInjectable&&"function"==typeof i.serviceIdentifier&&t.getConstructorMetadata(i.serviceIdentifier).compilerGeneratedMetadata&&(n.container.bind(i.serviceIdentifier).toSelf(),o=ne(n.container,i.serviceIdentifier)),a=e?o:o.filter(function(t){var e=new Jt.Request(t.serviceIdentifier,n,r,t,i);return t.constraint(e)}),function(t,e,n,r){switch(e.length){case Gt.BindingCount.NoBindingsAvailable:if(n.isOptional())return;throw i=qt.getServiceIdentifierAsString(t),o=Ht.NOT_REGISTERED,o=(o+=qt.listMetadataForTarget(i,n))+qt.listRegisteredBindingsForServiceIdentifier(r,i,ne),new Error(o);case Gt.BindingCount.OnlyOneBindingAvailable:if(!n.isArray())return;case Gt.BindingCount.MultipleBindingsAvailable:default:var i,o;if(n.isArray())return;throw i=qt.getServiceIdentifierAsString(t),o=Ht.AMBIGUOUS_MATCH+" "+i,o+=qt.listRegisteredBindingsForServiceIdentifier(r,i,ne),new Error(o)}}(i.serviceIdentifier,a,i,n.container),a}function ne(t,e){var n=[],r=te(t);return r.hasKey(e)?n=r.get(e):null!==t.parent&&(n=ne(t.parent,e)),n}J.getBindingDictionary=te,J.plan=function(t,e,n,r,i,o,a,s){void 0===s&&(s=!1);var l,e=new Xt.Context(e),u=(r=r,u=i,l="",o=o,a=a,n=(n=n)?Ut.MULTI_INJECT_TAG:Ut.INJECT_TAG,n=new Zt.Metadata(n,u),r=new Qt.Target(r,l,u,n),void 0!==o&&(l=new Zt.Metadata(o,a),r.metadata.push(l)),r);try{return function i(o,t,e,a,n,s){var r,l;null===n?(r=ee(o,t,a,null,s),l=new Jt.Request(e,a,null,r,s),e=new Kt.Plan(a,l),a.addPlan(e)):(r=ee(o,t,a,n,s),l=n.addChildRequest(s.serviceIdentifier,r,s)),r.forEach(function(t){var e=null;if(s.isArray())e=l.addChildRequest(t.serviceIdentifier,t,s);else{if(t.cache)return;e=l}if(t.type===Wt.BindingTypeEnum.Instance&&null!==t.implementationType){var n=$t.getDependencies(o,t.implementationType);if(!a.container.options.skipBaseClassChecks){var r=$t.getBaseClassDependencyCount(o,t.implementationType);if(n.length<r)throw r=Ht.ARGUMENTS_LENGTH_MISMATCH($t.getFunctionName(t.implementationType)),new Error(r)}n.forEach(function(t){i(o,!1,t.serviceIdentifier,a,e,t)})}})}(t,s,i,e,null,u),e}catch(t){throw Yt.isStackOverflowExeption(t)&&e.plan&&qt.circularDependencyToException(e.plan.rootRequest),t}},J.createMockRequest=function(t,e,n,r){return n=new Qt.Target(Wt.TargetTypeEnum.Variable,"",e,new Zt.Metadata(n,r)),r=new Xt.Context(t),new Jt.Request(e,r,null,[],n)};var h={},Q={},re=n&&n.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},ie=(Object.defineProperty(Q,"__esModule",{value:!0}),Q.resolveInstance=void 0,a),oe=H,ae=r;Q.resolveInstance=function(t,e,n){var r,i,o=null,e=(o=0<e.length?(a=e.filter(function(t){return null!==t.target&&t.target.type===oe.TargetTypeEnum.ConstructorArgument}).map(n),o=new(t.bind.apply(t,re([void 0],a))),r=o,a=n,i=(n=(n=e).filter(function(t){return null!==t.target&&t.target.type===oe.TargetTypeEnum.ClassProperty})).map(a),n.forEach(function(t,e){t=t.target.name.value(),e=i[e];r[t]=e}),r):new t,t),a=o;if(Reflect.hasMetadata(ae.POST_CONSTRUCT,e)){n=Reflect.getMetadata(ae.POST_CONSTRUCT,e);try{a[n.value]()}catch(t){throw new Error(ie.POST_CONSTRUCT_ERROR(e.name,t.message))}}return o},Object.defineProperty(h,"__esModule",{value:!0}),h.resolve=void 0;var se=a,le=H,ue=tt,ce=s,he=Q,de=function(e,n,t){try{return t()}catch(t){throw ue.isStackOverflowExeption(t)?new Error(se.CIRCULAR_DEPENDENCY_IN_FACTORY(e,n.toString())):t}},fe=function(s){return function(t){t.parentContext.setCurrentRequest(t);var e=t.bindings,n=t.childRequests,r=t.target&&t.target.isArray(),i=!(t.parentRequest&&t.parentRequest.target&&t.target&&t.parentRequest.target.matchesArray(t.target.serviceIdentifier));if(r&&i)return n.map(function(t){return fe(s)(t)});r=null;if(!t.target.isOptional()||0!==e.length){var o,a=e[0],i=a.scope===le.BindingScopeEnum.Singleton,e=a.scope===le.BindingScopeEnum.Request;if(i&&a.activated)return a.cache;if(e&&null!==s&&s.has(a.id))return s.get(a.id);if(a.type===le.BindingTypeEnum.ConstantValue)r=a.cache,a.activated=!0;else if(a.type===le.BindingTypeEnum.Function)r=a.cache,a.activated=!0;else if(a.type===le.BindingTypeEnum.Constructor)r=a.implementationType;else if(a.type===le.BindingTypeEnum.DynamicValue&&null!==a.dynamicValue)r=de("toDynamicValue",a.serviceIdentifier,function(){return a.dynamicValue(t.parentContext)});else if(a.type===le.BindingTypeEnum.Factory&&null!==a.factory)r=de("toFactory",a.serviceIdentifier,function(){return a.factory(t.parentContext)});else if(a.type===le.BindingTypeEnum.Provider&&null!==a.provider)r=de("toProvider",a.serviceIdentifier,function(){return a.provider(t.parentContext)});else{if(a.type!==le.BindingTypeEnum.Instance||null===a.implementationType)throw o=ce.getServiceIdentifierAsString(t.serviceIdentifier),new Error(se.INVALID_BINDING_TYPE+" "+o);r=he.resolveInstance(a.implementationType,n,fe(s))}return"function"==typeof a.onActivation&&(r=a.onActivation(t.parentContext,r)),i&&(a.cache=r,a.activated=!0),e&&null!==s&&!s.has(a.id)&&s.set(a.id,r),r}}};h.resolve=function(t){return fe(t.plan.rootRequest.requestScope)(t.plan.rootRequest)};function pe(t,e){return null!==(t=t.parentRequest)&&(!!e(t)||pe(t,e))}function ye(n){return function(e){function t(t){return null!==t&&null!==t.target&&t.target.matchesTag(n)(e)}return t.metaData=new ve.Metadata(n,e),t}}var at={},u={},dt={},_t={},c={},tt={},Q={},ge=(Object.defineProperty(Q,"__esModule",{value:!0}),Q.typeConstraint=Q.namedConstraint=Q.taggedConstraint=Q.traverseAncerstors=void 0,r),ve=l,ge=(Q.traverseAncerstors=pe,(Q.taggedConstraint=ye)(ge.NAMED_TAG)),me=(Q.namedConstraint=ge,Q.typeConstraint=function(n){return function(t){var e=null;return null!==t&&(e=t.bindings[0],"string"==typeof n?e.serviceIdentifier===n:(e=t.bindings[0].implementationType,n===e))}},Object.defineProperty(tt,"__esModule",{value:!0}),tt.BindingWhenSyntax=void 0,c),be=Q;function xe(t){this._binding=t}xe.prototype.when=function(t){return this._binding.constraint=t,new me.BindingOnSyntax(this._binding)},xe.prototype.whenTargetNamed=function(t){return this._binding.constraint=be.namedConstraint(t),new me.BindingOnSyntax(this._binding)},xe.prototype.whenTargetIsDefault=function(){return this._binding.constraint=function(t){return null!==t.target&&!t.target.isNamed()&&!t.target.isTagged()},new me.BindingOnSyntax(this._binding)},xe.prototype.whenTargetTagged=function(t,e){return this._binding.constraint=be.taggedConstraint(t)(e),new me.BindingOnSyntax(this._binding)},xe.prototype.whenInjectedInto=function(e){return this._binding.constraint=function(t){return be.typeConstraint(e)(t.parentRequest)},new me.BindingOnSyntax(this._binding)},xe.prototype.whenParentNamed=function(e){return this._binding.constraint=function(t){return be.namedConstraint(e)(t.parentRequest)},new me.BindingOnSyntax(this._binding)},xe.prototype.whenParentTagged=function(e,n){return this._binding.constraint=function(t){return be.taggedConstraint(e)(n)(t.parentRequest)},new me.BindingOnSyntax(this._binding)},xe.prototype.whenAnyAncestorIs=function(e){return this._binding.constraint=function(t){return be.traverseAncerstors(t,be.typeConstraint(e))},new me.BindingOnSyntax(this._binding)},xe.prototype.whenNoAncestorIs=function(e){return this._binding.constraint=function(t){return!be.traverseAncerstors(t,be.typeConstraint(e))},new me.BindingOnSyntax(this._binding)},xe.prototype.whenAnyAncestorNamed=function(e){return this._binding.constraint=function(t){return be.traverseAncerstors(t,be.namedConstraint(e))},new me.BindingOnSyntax(this._binding)},xe.prototype.whenNoAncestorNamed=function(e){return this._binding.constraint=function(t){return!be.traverseAncerstors(t,be.namedConstraint(e))},new me.BindingOnSyntax(this._binding)},xe.prototype.whenAnyAncestorTagged=function(e,n){return this._binding.constraint=function(t){return be.traverseAncerstors(t,be.taggedConstraint(e)(n))},new me.BindingOnSyntax(this._binding)},xe.prototype.whenNoAncestorTagged=function(e,n){return this._binding.constraint=function(t){return!be.traverseAncerstors(t,be.taggedConstraint(e)(n))},new me.BindingOnSyntax(this._binding)},xe.prototype.whenAnyAncestorMatches=function(e){return this._binding.constraint=function(t){return be.traverseAncerstors(t,e)},new me.BindingOnSyntax(this._binding)},xe.prototype.whenNoAncestorMatches=function(e){return this._binding.constraint=function(t){return!be.traverseAncerstors(t,e)},new me.BindingOnSyntax(this._binding)},tt.BindingWhenSyntax=xe,Object.defineProperty(c,"__esModule",{value:!0}),c.BindingOnSyntax=void 0;var we=tt;function ke(t){this._binding=t}ke.prototype.onActivation=function(t){return this._binding.onActivation=t,new we.BindingWhenSyntax(this._binding)},c.BindingOnSyntax=ke,Object.defineProperty(_t,"__esModule",{value:!0}),_t.BindingWhenOnSyntax=void 0;var Ee=c,_e=tt;function Se(t){this._binding=t,this._bindingWhenSyntax=new _e.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new Ee.BindingOnSyntax(this._binding)}Se.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},Se.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},Se.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},Se.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},Se.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},Se.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},Se.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},Se.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},Se.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},Se.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},Se.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},Se.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},Se.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},Se.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},Se.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},Se.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},_t.BindingWhenOnSyntax=Se,Object.defineProperty(dt,"__esModule",{value:!0}),dt.BindingInSyntax=void 0;var Me=H,Te=_t;function Oe(t){this._binding=t}Oe.prototype.inRequestScope=function(){return this._binding.scope=Me.BindingScopeEnum.Request,new Te.BindingWhenOnSyntax(this._binding)},Oe.prototype.inSingletonScope=function(){return this._binding.scope=Me.BindingScopeEnum.Singleton,new Te.BindingWhenOnSyntax(this._binding)},Oe.prototype.inTransientScope=function(){return this._binding.scope=Me.BindingScopeEnum.Transient,new Te.BindingWhenOnSyntax(this._binding)},dt.BindingInSyntax=Oe,Object.defineProperty(u,"__esModule",{value:!0}),u.BindingInWhenOnSyntax=void 0;var Pe=dt,Ae=c,Ce=tt;function Ne(t){this._binding=t,this._bindingWhenSyntax=new Ce.BindingWhenSyntax(this._binding),this._bindingOnSyntax=new Ae.BindingOnSyntax(this._binding),this._bindingInSyntax=new Pe.BindingInSyntax(t)}Ne.prototype.inRequestScope=function(){return this._bindingInSyntax.inRequestScope()},Ne.prototype.inSingletonScope=function(){return this._bindingInSyntax.inSingletonScope()},Ne.prototype.inTransientScope=function(){return this._bindingInSyntax.inTransientScope()},Ne.prototype.when=function(t){return this._bindingWhenSyntax.when(t)},Ne.prototype.whenTargetNamed=function(t){return this._bindingWhenSyntax.whenTargetNamed(t)},Ne.prototype.whenTargetIsDefault=function(){return this._bindingWhenSyntax.whenTargetIsDefault()},Ne.prototype.whenTargetTagged=function(t,e){return this._bindingWhenSyntax.whenTargetTagged(t,e)},Ne.prototype.whenInjectedInto=function(t){return this._bindingWhenSyntax.whenInjectedInto(t)},Ne.prototype.whenParentNamed=function(t){return this._bindingWhenSyntax.whenParentNamed(t)},Ne.prototype.whenParentTagged=function(t,e){return this._bindingWhenSyntax.whenParentTagged(t,e)},Ne.prototype.whenAnyAncestorIs=function(t){return this._bindingWhenSyntax.whenAnyAncestorIs(t)},Ne.prototype.whenNoAncestorIs=function(t){return this._bindingWhenSyntax.whenNoAncestorIs(t)},Ne.prototype.whenAnyAncestorNamed=function(t){return this._bindingWhenSyntax.whenAnyAncestorNamed(t)},Ne.prototype.whenAnyAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenAnyAncestorTagged(t,e)},Ne.prototype.whenNoAncestorNamed=function(t){return this._bindingWhenSyntax.whenNoAncestorNamed(t)},Ne.prototype.whenNoAncestorTagged=function(t,e){return this._bindingWhenSyntax.whenNoAncestorTagged(t,e)},Ne.prototype.whenAnyAncestorMatches=function(t){return this._bindingWhenSyntax.whenAnyAncestorMatches(t)},Ne.prototype.whenNoAncestorMatches=function(t){return this._bindingWhenSyntax.whenNoAncestorMatches(t)},Ne.prototype.onActivation=function(t){return this._bindingOnSyntax.onActivation(t)},u.BindingInWhenOnSyntax=Ne,Object.defineProperty(at,"__esModule",{value:!0}),at.BindingToSyntax=void 0;var Le=a,Ie=H,Re=u,De=_t;function je(t){this._binding=t}je.prototype.to=function(t){return this._binding.type=Ie.BindingTypeEnum.Instance,this._binding.implementationType=t,new Re.BindingInWhenOnSyntax(this._binding)},je.prototype.toSelf=function(){if("function"!=typeof this._binding.serviceIdentifier)throw new Error(""+Le.INVALID_TO_SELF_VALUE);var t=this._binding.serviceIdentifier;return this.to(t)},je.prototype.toConstantValue=function(t){return this._binding.type=Ie.BindingTypeEnum.ConstantValue,this._binding.cache=t,this._binding.dynamicValue=null,this._binding.implementationType=null,this._binding.scope=Ie.BindingScopeEnum.Singleton,new De.BindingWhenOnSyntax(this._binding)},je.prototype.toDynamicValue=function(t){return this._binding.type=Ie.BindingTypeEnum.DynamicValue,this._binding.cache=null,this._binding.dynamicValue=t,this._binding.implementationType=null,new Re.BindingInWhenOnSyntax(this._binding)},je.prototype.toConstructor=function(t){return this._binding.type=Ie.BindingTypeEnum.Constructor,this._binding.implementationType=t,this._binding.scope=Ie.BindingScopeEnum.Singleton,new De.BindingWhenOnSyntax(this._binding)},je.prototype.toFactory=function(t){return this._binding.type=Ie.BindingTypeEnum.Factory,this._binding.factory=t,this._binding.scope=Ie.BindingScopeEnum.Singleton,new De.BindingWhenOnSyntax(this._binding)},je.prototype.toFunction=function(t){if("function"!=typeof t)throw new Error(Le.INVALID_FUNCTION_BINDING);t=this.toConstantValue(t);return this._binding.type=Ie.BindingTypeEnum.Function,this._binding.scope=Ie.BindingScopeEnum.Singleton,t},je.prototype.toAutoFactory=function(e){return this._binding.type=Ie.BindingTypeEnum.Factory,this._binding.factory=function(t){return function(){return t.container.get(e)}},this._binding.scope=Ie.BindingScopeEnum.Singleton,new De.BindingWhenOnSyntax(this._binding)},je.prototype.toProvider=function(t){return this._binding.type=Ie.BindingTypeEnum.Provider,this._binding.provider=t,this._binding.scope=Ie.BindingScopeEnum.Singleton,new De.BindingWhenOnSyntax(this._binding)},je.prototype.toService=function(e){this.toDynamicValue(function(t){return t.container.get(e)})},at.BindingToSyntax=je;ge={},Object.defineProperty(ge,"__esModule",{value:!0}),ge.ContainerSnapshot=void 0,Be.of=function(t,e){var n=new Be;return n.bindings=t,n.middleware=e,n},dt=Be;function Be(){}ge.ContainerSnapshot=dt;var c={},Fe=(Object.defineProperty(c,"__esModule",{value:!0}),c.Lookup=void 0,a);function ze(){this._map=new Map}ze.prototype.getMap=function(){return this._map},ze.prototype.add=function(t,e){if(null==t)throw new Error(Fe.NULL_ARGUMENT);if(null==e)throw new Error(Fe.NULL_ARGUMENT);var n=this._map.get(t);void 0!==n?(n.push(e),this._map.set(t,n)):this._map.set(t,[e])},ze.prototype.get=function(t){if(null==t)throw new Error(Fe.NULL_ARGUMENT);t=this._map.get(t);if(void 0!==t)return t;throw new Error(Fe.KEY_NOT_FOUND)},ze.prototype.remove=function(t){if(null==t)throw new Error(Fe.NULL_ARGUMENT);if(!this._map.delete(t))throw new Error(Fe.KEY_NOT_FOUND)},ze.prototype.removeByCondition=function(n){var r=this;this._map.forEach(function(t,e){t=t.filter(function(t){return!n(t)});0<t.length?r._map.set(e,t):r._map.delete(e)})},ze.prototype.hasKey=function(t){if(null==t)throw new Error(Fe.NULL_ARGUMENT);return this._map.has(t)},ze.prototype.clone=function(){var n=new ze;return this._map.forEach(function(t,e){t.forEach(function(t){return n.add(e,t.clone())})}),n},ze.prototype.traverse=function(n){this._map.forEach(function(t,e){n(e,t)})},c.Lookup=ze;var Ve=n&&n.__awaiter||function(t,a,s,l){return new(s=s||Promise)(function(n,e){function r(t){try{o(l.next(t))}catch(t){e(t)}}function i(t){try{o(l.throw(t))}catch(t){e(t)}}function o(t){var e;t.done?n(t.value):((e=t.value)instanceof s?e:new s(function(t){t(e)})).then(r,i)}o((l=l.apply(t,a||[])).next())})},Ge=n&&n.__generator||function(r,i){var o,a,s,l={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]},t={next:e(0),throw:e(1),return:e(2)};return"function"==typeof Symbol&&(t[Symbol.iterator]=function(){return this}),t;function e(n){return function(t){var e=[n,t];if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,a&&(s=2&e[0]?a.return:e[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,e[1])).done)return s;switch(a=0,(e=s?[2&e[0],s.value]:e)[0]){case 0:case 1:s=e;break;case 4:return l.label++,{value:e[1],done:!1};case 5:l.label++,a=e[1],e=[0];continue;case 7:e=l.ops.pop(),l.trys.pop();continue;default:if(!(s=0<(s=l.trys).length&&s[s.length-1])&&(6===e[0]||2===e[0])){l=0;continue}if(3===e[0]&&(!s||e[1]>s[0]&&e[1]<s[3])){l.label=e[1];break}if(6===e[0]&&l.label<s[1]){l.label=s[1],s=e;break}if(s&&l.label<s[2]){l.label=s[2],l.ops.push(e);break}s[2]&&l.ops.pop(),l.trys.pop();continue}e=i.call(r,l)}catch(t){e=[6,t],a=0}finally{o=s=0}if(5&e[0])throw e[1];return{value:e[0]?e[1]:void 0,done:!0}}}},He=n&&n.__spreadArray||function(t,e){for(var n=0,r=e.length,i=t.length;n<r;n++,i++)t[i]=e[n];return t},We=(Object.defineProperty(o,"__esModule",{value:!0}),o.Container=void 0,G),Ue=a,Ye=H,qe=r,Xe=Z,Ze=J,Ke=h,$e=at,Je=W,Qe=s,tn=ge,en=c;function nn(t){this._appliedMiddleware=[];t=t||{};if("object"!=typeof t)throw new Error(""+Ue.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);if(void 0===t.defaultScope)t.defaultScope=Ye.BindingScopeEnum.Transient;else if(t.defaultScope!==Ye.BindingScopeEnum.Singleton&&t.defaultScope!==Ye.BindingScopeEnum.Transient&&t.defaultScope!==Ye.BindingScopeEnum.Request)throw new Error(""+Ue.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE);if(void 0===t.autoBindInjectable)t.autoBindInjectable=!1;else if("boolean"!=typeof t.autoBindInjectable)throw new Error(""+Ue.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE);if(void 0===t.skipBaseClassChecks)t.skipBaseClassChecks=!1;else if("boolean"!=typeof t.skipBaseClassChecks)throw new Error(""+Ue.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK);this.options={autoBindInjectable:t.autoBindInjectable,defaultScope:t.defaultScope,skipBaseClassChecks:t.skipBaseClassChecks},this.id=Je.id(),this._bindingDictionary=new en.Lookup,this._snapshots=[],this._middleware=null,this.parent=null,this._metadataReader=new Xe.MetadataReader}nn.merge=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=new nn,t=He([t,e],n).map(function(t){return Ze.getBindingDictionary(t)}),o=Ze.getBindingDictionary(i);return t.forEach(function(t){var n;n=o,t.traverse(function(t,e){e.forEach(function(t){n.add(t.serviceIdentifier,t.clone())})})}),i},nn.prototype.load=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=this._getContainerModuleHelpersFactory(),r=0,i=t;r<i.length;r++){var o=i[r],a=n(o.id);o.registry(a.bindFunction,a.unbindFunction,a.isboundFunction,a.rebindFunction)}},nn.prototype.loadAsync=function(){for(var a=[],t=0;t<arguments.length;t++)a[t]=arguments[t];return Ve(this,void 0,void 0,function(){var e,n,r,i,o;return Ge(this,function(t){switch(t.label){case 0:e=this._getContainerModuleHelpersFactory(),n=0,r=a,t.label=1;case 1:return n<r.length?(i=r[n],o=e(i.id),[4,i.registry(o.bindFunction,o.unbindFunction,o.isboundFunction,o.rebindFunction)]):[3,4];case 2:t.sent(),t.label=3;case 3:return n++,[3,1];case 4:return[2]}})})},nn.prototype.unload=function(){for(var r=this,t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];t.forEach(function(t){function e(t){return t.moduleId===n}var n;n=t.id;r._bindingDictionary.removeByCondition(e)})},nn.prototype.bind=function(t){var e=this.options.defaultScope||Ye.BindingScopeEnum.Transient,e=new We.Binding(t,e);return this._bindingDictionary.add(t,e),new $e.BindingToSyntax(e)},nn.prototype.rebind=function(t){return this.unbind(t),this.bind(t)},nn.prototype.unbind=function(e){try{this._bindingDictionary.remove(e)}catch(t){throw new Error(Ue.CANNOT_UNBIND+" "+Qe.getServiceIdentifierAsString(e))}},nn.prototype.unbindAll=function(){this._bindingDictionary=new en.Lookup},nn.prototype.isBound=function(t){var e=this._bindingDictionary.hasKey(t);return e=!e&&this.parent?this.parent.isBound(t):e},nn.prototype.isBoundNamed=function(t,e){return this.isBoundTagged(t,qe.NAMED_TAG,e)},nn.prototype.isBoundTagged=function(t,e,n){var r,i,o=!1;return this._bindingDictionary.hasKey(t)&&(r=this._bindingDictionary.get(t),i=Ze.createMockRequest(this,t,e,n),o=r.some(function(t){return t.constraint(i)})),o=!o&&this.parent?this.parent.isBoundTagged(t,e,n):o},nn.prototype.snapshot=function(){this._snapshots.push(tn.ContainerSnapshot.of(this._bindingDictionary.clone(),this._middleware))},nn.prototype.restore=function(){var t=this._snapshots.pop();if(void 0===t)throw new Error(Ue.NO_MORE_SNAPSHOTS_AVAILABLE);this._bindingDictionary=t.bindings,this._middleware=t.middleware},nn.prototype.createChild=function(t){t=new nn(t||this.options);return t.parent=this,t},nn.prototype.applyMiddleware=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this._appliedMiddleware=this._appliedMiddleware.concat(t);var n=this._middleware||this._planAndResolve();this._middleware=t.reduce(function(t,e){return e(t)},n)},nn.prototype.applyCustomMetadataReader=function(t){this._metadataReader=t},nn.prototype.get=function(t){return this._get(!1,!1,Ye.TargetTypeEnum.Variable,t)},nn.prototype.getTagged=function(t,e,n){return this._get(!1,!1,Ye.TargetTypeEnum.Variable,t,e,n)},nn.prototype.getNamed=function(t,e){return this.getTagged(t,qe.NAMED_TAG,e)},nn.prototype.getAll=function(t){return this._get(!0,!0,Ye.TargetTypeEnum.Variable,t)},nn.prototype.getAllTagged=function(t,e,n){return this._get(!1,!0,Ye.TargetTypeEnum.Variable,t,e,n)},nn.prototype.getAllNamed=function(t,e){return this.getAllTagged(t,qe.NAMED_TAG,e)},nn.prototype.resolve=function(t){var e=this.createChild();return e.bind(t).toSelf(),this._appliedMiddleware.forEach(function(t){e.applyMiddleware(t)}),e.get(t)},nn.prototype._getContainerModuleHelpersFactory=function(){function r(t,e){t._binding.moduleId=e}var i=this;return function(t){return{bindFunction:function(t){t=i.bind.bind(i)(t);return r(t,n),t},isboundFunction:function(t){return i.isBound.bind(i)(t)},rebindFunction:(e=n=t,function(t){t=i.rebind.bind(i)(t);return r(t,e),t}),unbindFunction:function(t){i.unbind.bind(i)(t)}};var e,n}},nn.prototype._get=function(t,e,n,r,i,o){var a=null,t={avoidConstraints:t,contextInterceptor:function(t){return t},isMultiInject:e,key:i,serviceIdentifier:r,targetType:n,value:o};if(this._middleware){if(null==(a=this._middleware(t)))throw new Error(Ue.INVALID_MIDDLEWARE_RETURN)}else a=this._planAndResolve()(t);return a},nn.prototype._planAndResolve=function(){var n=this;return function(t){var e=Ze.plan(n._metadataReader,n,t.isMultiInject,t.targetType,t.serviceIdentifier,t.key,t.value,t.avoidConstraints),e=t.contextInterceptor(e);return Ke.resolve(e)}},o.Container=nn;function rn(t){this.id=on.id(),this.registry=t}var tt={},on=(Object.defineProperty(tt,"__esModule",{value:!0}),tt.AsyncContainerModule=tt.ContainerModule=void 0,W),u=(tt.ContainerModule=function(t){this.id=on.id(),this.registry=t},tt.AsyncContainerModule=rn,{}),an=(Object.defineProperty(u,"__esModule",{value:!0}),u.injectable=void 0,a),sn=r;u.injectable=function(){return function(t){if(Reflect.hasOwnMetadata(sn.PARAM_TYPES,t))throw new Error(an.DUPLICATED_INJECTABLE_DECORATOR);var e=Reflect.getMetadata(sn.DESIGN_PARAM_TYPES,t)||[];return Reflect.defineMetadata(sn.PARAM_TYPES,e,t),t}};var _t={},ln=(Object.defineProperty(_t,"__esModule",{value:!0}),_t.tagged=void 0,l),un=pt;_t.tagged=function(i,o){return function(t,e,n){var r=new ln.Metadata(i,o);"number"==typeof n?un.tagParameter(t,e,n,r):un.tagProperty(t,e,r)}};var dt={},cn=(Object.defineProperty(dt,"__esModule",{value:!0}),dt.named=void 0,r),hn=l,dn=pt;dt.named=function(i){return function(t,e,n){var r=new hn.Metadata(cn.NAMED_TAG,i);"number"==typeof n?dn.tagParameter(t,e,n,r):dn.tagProperty(t,e,r)}};var n={},fn=(Object.defineProperty(n,"__esModule",{value:!0}),n.optional=void 0,r),pn=l,yn=pt;n.optional=function(){return function(t,e,n){var r=new pn.Metadata(fn.OPTIONAL_TAG,!0);"number"==typeof n?yn.tagParameter(t,e,n,r):yn.tagProperty(t,e,r)}};var G={},gn=(Object.defineProperty(G,"__esModule",{value:!0}),G.unmanaged=void 0,r),vn=l,mn=pt;G.unmanaged=function(){return function(t,e,n){var r=new vn.Metadata(gn.UNMANAGED_TAG,!0);mn.tagParameter(t,e,n,r)}};var J={},bn=(Object.defineProperty(J,"__esModule",{value:!0}),J.multiInject=void 0,r),xn=l,wn=pt;J.multiInject=function(i){return function(t,e,n){var r=new xn.Metadata(bn.MULTI_INJECT_TAG,i);"number"==typeof n?wn.tagParameter(t,e,n,r):wn.tagProperty(t,e,r)}};var h={},kn=(Object.defineProperty(h,"__esModule",{value:!0}),h.targetName=void 0,r),En=l,_n=pt;h.targetName=function(i){return function(t,e,n){var r=new En.Metadata(kn.NAME_TAG,i);_n.tagParameter(t,e,n,r)}};var at={},Sn=(Object.defineProperty(at,"__esModule",{value:!0}),at.postConstruct=void 0,a),Mn=r,Tn=l;at.postConstruct=function(){return function(t,e,n){e=new Tn.Metadata(Mn.POST_CONSTRUCT,e);if(Reflect.hasOwnMetadata(Mn.POST_CONSTRUCT,t.constructor))throw new Error(Sn.MULTIPLE_POST_CONSTRUCT_METHODS);Reflect.defineMetadata(Mn.POST_CONSTRUCT,e,t.constructor)}};var ge={},c=(Object.defineProperty(ge,"__esModule",{value:!0}),ge.multiBindToService=void 0,ge.multiBindToService=function(r){return function(n){return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.forEach(function(t){return r.bind(t).toService(n)})}}},V),On=(Object.defineProperty(c,"__esModule",{value:!0}),c.multiBindToService=c.getServiceIdentifierAsString=c.typeConstraint=c.namedConstraint=c.taggedConstraint=c.traverseAncerstors=c.decorate=c.id=c.MetadataReader=c.postConstruct=c.targetName=c.multiInject=c.unmanaged=c.optional=c.LazyServiceIdentifer=c.inject=c.named=c.tagged=c.injectable=c.ContainerModule=c.AsyncContainerModule=c.TargetTypeEnum=c.BindingTypeEnum=c.BindingScopeEnum=c.Container=c.METADATA_KEY=void 0,c.METADATA_KEY=r,o),Pn=(Object.defineProperty(c,"Container",{enumerable:!0,get:function(){return On.Container}}),H),An=(Object.defineProperty(c,"BindingScopeEnum",{enumerable:!0,get:function(){return Pn.BindingScopeEnum}}),Object.defineProperty(c,"BindingTypeEnum",{enumerable:!0,get:function(){return Pn.BindingTypeEnum}}),Object.defineProperty(c,"TargetTypeEnum",{enumerable:!0,get:function(){return Pn.TargetTypeEnum}}),tt),Cn=(Object.defineProperty(c,"AsyncContainerModule",{enumerable:!0,get:function(){return An.AsyncContainerModule}}),Object.defineProperty(c,"ContainerModule",{enumerable:!0,get:function(){return An.ContainerModule}}),u),Nn=(Object.defineProperty(c,"injectable",{enumerable:!0,get:function(){return Cn.injectable}}),_t),Ln=(Object.defineProperty(c,"tagged",{enumerable:!0,get:function(){return Nn.tagged}}),dt),In=(Object.defineProperty(c,"named",{enumerable:!0,get:function(){return Ln.named}}),ft),Rn=(Object.defineProperty(c,"inject",{enumerable:!0,get:function(){return In.inject}}),Object.defineProperty(c,"LazyServiceIdentifer",{enumerable:!0,get:function(){return In.LazyServiceIdentifer}}),n),Dn=(Object.defineProperty(c,"optional",{enumerable:!0,get:function(){return Rn.optional}}),G),jn=(Object.defineProperty(c,"unmanaged",{enumerable:!0,get:function(){return Dn.unmanaged}}),J),Bn=(Object.defineProperty(c,"multiInject",{enumerable:!0,get:function(){return jn.multiInject}}),h),Fn=(Object.defineProperty(c,"targetName",{enumerable:!0,get:function(){return Bn.targetName}}),at),zn=(Object.defineProperty(c,"postConstruct",{enumerable:!0,get:function(){return Fn.postConstruct}}),Z),Vn=(Object.defineProperty(c,"MetadataReader",{enumerable:!0,get:function(){return zn.MetadataReader}}),W),Gn=(Object.defineProperty(c,"id",{enumerable:!0,get:function(){return Vn.id}}),pt),Hn=(Object.defineProperty(c,"decorate",{enumerable:!0,get:function(){return Gn.decorate}}),Q),Wn=(Object.defineProperty(c,"traverseAncerstors",{enumerable:!0,get:function(){return Hn.traverseAncerstors}}),Object.defineProperty(c,"taggedConstraint",{enumerable:!0,get:function(){return Hn.taggedConstraint}}),Object.defineProperty(c,"namedConstraint",{enumerable:!0,get:function(){return Hn.namedConstraint}}),Object.defineProperty(c,"typeConstraint",{enumerable:!0,get:function(){return Hn.typeConstraint}}),s),Un=(Object.defineProperty(c,"getServiceIdentifierAsString",{enumerable:!0,get:function(){return Wn.getServiceIdentifierAsString}}),ge),Yn=(Object.defineProperty(c,"multiBindToService",{enumerable:!0,get:function(){return Un.multiBindToService}}),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{});function qn(){throw new Error("setTimeout has not been defined")}function Xn(){throw new Error("clearTimeout has not been defined")}var Zn=qn,Kn=Xn;function $n(e){if(Zn===setTimeout)return setTimeout(e,0);if((Zn===qn||!Zn)&&setTimeout)return(Zn=setTimeout)(e,0);try{return Zn(e,0)}catch(t){try{return Zn.call(null,e,0)}catch(t){return Zn.call(this,e,0)}}}"function"==typeof Yn.setTimeout&&(Zn=setTimeout),"function"==typeof Yn.clearTimeout&&(Kn=clearTimeout);var Jn,Qn=[],tr=!1,er=-1;function nr(){tr&&Jn&&(tr=!1,Jn.length?Qn=Jn.concat(Qn):er=-1,Qn.length&&rr())}function rr(){if(!tr){for(var t=$n(nr),e=(tr=!0,Qn.length);e;){for(Jn=Qn,Qn=[];++er<e;)Jn&&Jn[er].run();er=-1,e=Qn.length}Jn=null,tr=!1,!function(e){if(Kn===clearTimeout)return clearTimeout(e);if((Kn===Xn||!Kn)&&clearTimeout)return(Kn=clearTimeout)(e);try{Kn(e)}catch(t){try{return Kn.call(null,e)}catch(t){return Kn.call(this,e)}}}(t)}}function ir(t,e){this.fun=t,this.array=e}ir.prototype.run=function(){this.fun.apply(null,this.array)};function or(){}a=or,l=or,r=or,o=or,H=or,tt=or,u=or;var ar=Yn.performance||{},sr=ar.now||ar.mozNow||ar.msNow||ar.oNow||ar.webkitNow||function(){return(new Date).getTime()};var lr=new Date;var ur,d,cr,hr,dr,fr={nextTick:function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];Qn.push(new ir(t,e)),1!==Qn.length||tr||$n(rr)},title:"browser",browser:!0,env:{},argv:[],version:"",versions:{},on:a,addListener:l,once:r,off:o,removeListener:H,removeAllListeners:tt,emit:u,binding:function(t){throw new Error("process.binding is not supported")},cwd:function(){return"/"},chdir:function(t){throw new Error("process.chdir is not supported")},umask:function(){return 0},hrtime:function(t){var e=.001*sr.call(ar),n=Math.floor(e),e=Math.floor(e%1*1e9);return t&&(n-=t[0],(e-=t[1])<0&&(n--,e+=1e9)),[n,e]},platform:"browser",release:{},config:{},uptime:function(){return(new Date-lr)/1e3}};function pr(t){return(pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gr(t,e,n){return e&&yr(t.prototype,e),n&&yr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function vr(t){return(vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function mr(t,e){return e.lifecycle===d.Lifecycle.singleton?t.inSingletonScope():t.inTransientScope()}function br(t,e){t.whenTargetNamed(kr(e))}function xr(t,e){return e.bind(Er(t))}function wr(t,e){if(e.isBound(Er(t)))try{return e.rebind(Er(t))}catch(t){}return e.bind(Er(t))}function kr(t){return hr.isDefinedToken(t)?t.symbol:t}function Er(t){return hr.isDefinedToken(t)?t.symbol:t}ur={},function(){var s,l,u,c,r,t,i,h,o,e="object"==typeof Yn?Yn:"object"==typeof self?self:"object"==typeof this?this:Function("return this;")(),n=O(ur);function d(t,e,n){var r=o.get(t);if(v(r)){if(!n)return;r=new i,o.set(t,r)}t=r.get(e);if(v(t)){if(!n)return;t=new i,r.set(e,t)}return t}function a(t,e,n){e=d(e,n,!1);return!v(e)&&!!e.has(t)}function f(t,e,n){e=d(e,n,!1);if(!v(e))return e.get(t)}function p(t,e,n,r){d(n,r,!0).set(t,e)}function y(t,e){var n=[],t=d(t,e,!1);if(v(t))return n;for(var r,i,o=function(t){var e=S(t,u);if(E(e)){e=e.call(t);if(b(e))return e}throw new TypeError}(t.keys()),a=0;;){var s=function(t){t=t.next();return!t.done&&t}(o);if(!s)return n.length=a,n;s=s.value;try{n[a]=s}catch(t){try{i=void 0,(i=(r=o).return)&&i.call(r)}finally{throw t}}a++}}function g(t){if(null===t)return 1;switch(typeof t){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return null===t?1:6;default:return 6}}function v(t){return void 0===t}function m(t){return null===t}function b(t){return"object"==typeof t?null!==t:"function"==typeof t}function x(t,e){switch(g(t)){case 0:case 1:case 2:case 3:case 4:case 5:return t}var e=3===e?"string":5===e?"number":"default",n=S(t,l);if(void 0===n){var r=t;if("string"===(a="default"==e?"number":e)){a=r.toString;if(E(a))if(!b(o=a.call(r)))return o;var i=r.valueOf;if(E(i))if(!b(o=i.call(r)))return o}else{i=r.valueOf;if(E(i))if(!b(o=i.call(r)))return o;var o,a=r.toString;if(E(a))if(!b(o=a.call(r)))return o}throw new TypeError}i=n.call(t,e);if(b(i))throw new TypeError;return i}function w(t){t=x(t,3);return"symbol"==typeof t?t:""+t}function k(t){return Array.isArray?Array.isArray(t):t instanceof Object?t instanceof Array:"[object Array]"===Object.prototype.toString.call(t)}function E(t){return"function"==typeof t}function _(t){return"function"==typeof t}function S(t,e){t=t[e];if(null!=t){if(E(t))return t;throw new TypeError}}function M(t){var e=Object.getPrototypeOf(t);if("function"!=typeof t||t===r)return e;if(e!==r)return e;var n=t.prototype,n=n&&Object.getPrototypeOf(n);if(null==n||n===Object.prototype)return e;n=n.constructor;return"function"!=typeof n||n===t?e:n}function T(t){return t.__=void 0,delete t.__,t}function O(n,r){return function(t,e){"function"!=typeof n[t]&&Object.defineProperty(n,t,{configurable:!0,writable:!0,value:e}),r&&r(t,e)}}void 0===e.Reflect?e.Reflect=ur:n=O(e.Reflect,n),e=n,s=Object.prototype.hasOwnProperty,n="function"==typeof Symbol,l=n&&void 0!==Symbol.toPrimitive?Symbol.toPrimitive:"@@toPrimitive",u=n&&void 0!==Symbol.iterator?Symbol.iterator:"@@iterator",n="function"==typeof Object.create,t={__proto__:[]}instanceof Array,c={create:n?function(){return T(Object.create(null))}:t?function(){return T({__proto__:null})}:function(){return T({})},has:(n=!n&&!t)?function(t,e){return s.call(t,e)}:function(t,e){return e in t},get:n?function(t,e){return s.call(t,e)?t[e]:void 0}:function(t,e){return t[e]}},r=Object.getPrototypeOf(Function),t="object"==typeof fr&&fr.env&&"true"===fr.env.REFLECT_METADATA_USE_MAP_POLYFILL,i=t||"function"!=typeof Map||"function"!=typeof Map.prototype.entries?function(){var i={},n=[],t=function(){function t(t,e,n){this._index=0,this._keys=t,this._values=e,this._selector=n}return t.prototype["@@iterator"]=function(){return this},t.prototype[u]=function(){return this},t.prototype.next=function(){var t,e=this._index;return 0<=e&&e<this._keys.length?(t=this._selector(this._keys[e],this._values[e]),e+1>=this._keys.length?(this._index=-1,this._keys=n,this._values=n):this._index++,{value:t,done:!1}):{value:void 0,done:!0}},t.prototype.throw=function(t){throw 0<=this._index&&(this._index=-1,this._keys=n,this._values=n),t},t.prototype.return=function(t){return 0<=this._index&&(this._index=-1,this._keys=n,this._values=n),{value:t,done:!0}},t}();function e(){this._keys=[],this._values=[],this._cacheKey=i,this._cacheIndex=-2}return Object.defineProperty(e.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),e.prototype.has=function(t){return 0<=this._find(t,!1)},e.prototype.get=function(t){t=this._find(t,!1);return 0<=t?this._values[t]:void 0},e.prototype.set=function(t,e){t=this._find(t,!0);return this._values[t]=e,this},e.prototype.delete=function(t){var e=this._find(t,!1);if(0<=e){for(var n=this._keys.length,r=e+1;r<n;r++)this._keys[r-1]=this._keys[r],this._values[r-1]=this._values[r];return this._keys.length--,this._values.length--,t===this._cacheKey&&(this._cacheKey=i,this._cacheIndex=-2),!0}return!1},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=i,this._cacheIndex=-2},e.prototype.keys=function(){return new t(this._keys,this._values,r)},e.prototype.values=function(){return new t(this._keys,this._values,o)},e.prototype.entries=function(){return new t(this._keys,this._values,a)},e.prototype["@@iterator"]=function(){return this.entries()},e.prototype[u]=function(){return this.entries()},e.prototype._find=function(t,e){return this._cacheKey!==t&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=t)),this._cacheIndex<0&&e&&(this._cacheIndex=this._keys.length,this._keys.push(t),this._values.push(void 0)),this._cacheIndex},e;function r(t,e){return t}function o(t,e){return e}function a(t,e){return[t,e]}}():Map,h=t||"function"!=typeof Set||"function"!=typeof Set.prototype.entries?function(){function t(){this._map=new i}return Object.defineProperty(t.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),t.prototype.has=function(t){return this._map.has(t)},t.prototype.add=function(t){return this._map.set(t,t),this},t.prototype.delete=function(t){return this._map.delete(t)},t.prototype.clear=function(){this._map.clear()},t.prototype.keys=function(){return this._map.keys()},t.prototype.values=function(){return this._map.values()},t.prototype.entries=function(){return this._map.entries()},t.prototype["@@iterator"]=function(){return this.keys()},t.prototype[u]=function(){return this.keys()},t}():Set,o=new(t||"function"!=typeof WeakMap?function(){var i=16,e=c.create(),n=r();function t(){this._key=r()}return t.prototype.has=function(t){t=o(t,!1);return void 0!==t&&c.has(t,this._key)},t.prototype.get=function(t){t=o(t,!1);return void 0!==t?c.get(t,this._key):void 0},t.prototype.set=function(t,e){return o(t,!0)[this._key]=e,this},t.prototype.delete=function(t){t=o(t,!1);return void 0!==t&&delete t[this._key]},t.prototype.clear=function(){this._key=r()},t;function r(){for(var t;t="@@WeakMap@@"+function(){for(var t=function(t){return"function"!=typeof Uint8Array?a(new Array(t),t):"undefined"!=typeof crypto?crypto.getRandomValues(new Uint8Array(t)):"undefined"!=typeof msCrypto?msCrypto.getRandomValues(new Uint8Array(t)):a(new Uint8Array(t),t)}(i),e=(t[6]=79&t[6]|64,t[8]=191&t[8]|128,""),n=0;n<i;++n){var r=t[n];4!==n&&6!==n&&8!==n||(e+="-"),r<16&&(e+="0"),e+=r.toString(16).toLowerCase()}return e}(),c.has(e,t););return e[t]=!0,t}function o(t,e){if(!s.call(t,n)){if(!e)return;Object.defineProperty(t,n,{value:c.create()})}return t[n]}function a(t,e){for(var n=0;n<e;++n)t[n]=255*Math.random()|0;return t}}():WeakMap),e("decorate",function(t,e,n,r){{if(v(n)){if(k(t)&&_(e))return function(t,e){for(var n=t.length-1;0<=n;--n){var r=(0,t[n])(e);if(!v(r)&&!m(r)){if(!_(r))throw new TypeError;e=r}}return e}(t,e)}else if(k(t)&&b(e)&&(b(r)||v(r)||m(r)))return m(r)&&(r=void 0),n=w(n),function(t,e,n,r){for(var i=t.length-1;0<=i;--i){var o=(0,t[i])(e,n,r);if(!v(o)&&!m(o)){if(!b(o))throw new TypeError;r=o}}return r}(t,e,n,r);throw new TypeError}}),e("metadata",function(n,r){return function(t,e){if(!b(t))throw new TypeError;if(!v(e)&&!function(t){switch(g(t)){case 3:case 4:return 1;default:return}}(e))throw new TypeError;p(n,r,t,e)}}),e("defineMetadata",function(t,e,n,r){if(!b(n))throw new TypeError;v(r)||(r=w(r));return p(t,e,n,r)}),e("hasMetadata",function(t,e,n){if(!b(e))throw new TypeError;v(n)||(n=w(n));return function t(e,n,r){var i=a(e,n,r);if(i)return!0;i=M(n);if(!m(i))return t(e,i,r);return!1}(t,e,n)}),e("hasOwnMetadata",function(t,e,n){if(!b(e))throw new TypeError;v(n)||(n=w(n));return a(t,e,n)}),e("getMetadata",function(t,e,n){if(!b(e))throw new TypeError;v(n)||(n=w(n));return function t(e,n,r){var i=a(e,n,r);if(i)return f(e,n,r);i=M(n);if(!m(i))return t(e,i,r);return}(t,e,n)}),e("getOwnMetadata",function(t,e,n){if(!b(e))throw new TypeError;v(n)||(n=w(n));return f(t,e,n)}),e("getMetadataKeys",function(t,e){if(!b(t))throw new TypeError;v(e)||(e=w(e));return function t(e,n){var r=y(e,n);e=M(e);if(null===e)return r;e=t(e,n);if(e.length<=0)return r;if(r.length<=0)return e;var i=new h;var o=[];for(var a=0,s=r;a<s.length;a++){var l=s[a];i.has(l)||(i.add(l),o.push(l))}for(var u=0,c=e;u<c.length;u++){l=c[u];i.has(l)||(i.add(l),o.push(l))}return o}(t,e)}),e("getOwnMetadataKeys",function(t,e){if(!b(t))throw new TypeError;v(e)||(e=w(e));return y(t,e)}),e("deleteMetadata",function(t,e,n){if(!b(e))throw new TypeError;v(n)||(n=w(n));var r=d(e,n,!1);return!v(r)&&(!!r.delete(t)&&(0<r.size||((t=o.get(e)).delete(n),0<t.size||o.delete(e)),!0))})}(),(cr=d=d||{}).defineToken=function(t){return new cr.DefinedToken(t,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{multiple:!0})},_t=gr(function t(e){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},r=this,i=t;if(!(r instanceof i))throw new TypeError("Cannot call a class as a function");this.prototype={},this.name=void 0,this.multiple=void 0,this.symbol=void 0;r=n.multiple,i=void 0!==r&&r;this.name=e,this.symbol=Symbol(this.name),this.multiple=i}),cr.DefinedToken=_t,cr.isModule=function(t){return!!t&&"object"===pr(t)&&"id"in t},(dt=_t=cr.Lifecycle||(cr.Lifecycle={})).singleton="singleton",dt.transient="transient",cr.ClassOptionSymbol=Symbol("SyringeClassOptionSymbol"),cr.DefaultOption={lifecycle:_t.transient},(dr=hr=hr||{}).toArray=function(t){return Array.isArray(t)?t:void 0===t?[]:[t]},dr.isClass=function(t){return!!(t&&"function"==typeof t&&"prototype"in t)},dr.isDefinedToken=function(t){return!!(t&&"object"===pr(t)&&"symbol"in t&&"multiple"in t)},dr.isInjectOption=function(t){return!!(t&&"object"===pr(t)&&"token"in t)},dr.isNamedToken=function(t){return!!(t&&"object"===pr(t)&&"token"in t&&"named"in t)},dr.isMultipleEnabled=function(t){return dr.isDefinedToken(t)&&t.multiple};ft=new V.Container;function _r(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}function Sr(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?_r(Object(i),!0).forEach(function(t){var e,n;e=r,n=i[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):_r(Object(i)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))})}return r}function Mr(t){var e=0<arguments.length&&void 0!==t?t:{},n=V.injectable();return function(t){Reflect.defineMetadata(d.ClassOptionSymbol,Sr(Sr({},e),{},{target:t}),t),n(t)}}function f(t){return Mr(Sr(Sr({},0<arguments.length&&void 0!==t?t:{}),{},{lifecycle:d.Lifecycle.singleton}))}function p(t){return V.inject(Er(t))}var Tr=Symbol("SyringeOptionSymbol");function Or(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}function Pr(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(i),!0).forEach(function(t){var e,n;e=r,n=i[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):Or(Object(i)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))})}return r}function Ar(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Cr=function(){function u(t,e,n){if(!(this instanceof u))throw new TypeError("Cannot call a class as a function");this.token=void 0,this.rawToken=void 0,this.named=void 0,this.generalToken=void 0,this.option=void 0,this.register=void 0,this.mutiple=void 0,this.register=t,this.token=e,this.option=n,this.rawToken=hr.isNamedToken(e)?e.token:e,this.named=hr.isNamedToken(e)?e.named:void 0,this.mutiple=!!this.named||hr.isMultipleEnabled(this.rawToken),this.generalToken=this.rawToken}var t,e,n;return t=u,n=[{key:"resolveTarget",value:function(t,e){var n,r,i,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};try{try{var a=Reflect.getMetadata(Tr,e);a&&u.resolveOption(t,a)}catch(t){}hr.isClass(e)&&(o.useClass?((n=hr.toArray(o.useClass)).unshift(e),o.useClass=n):o.useClass=[e]);try{r=Reflect.getMetadata(d.ClassOptionSymbol,e)}catch(t){}(r=Pr(Pr({},r||{}),o)).token?((i=hr.toArray(r.token)).unshift(e),r.token=i):r.token=[e],u.resolveOption(t,r)}catch(t){}}},{key:"resolveOption",value:function(e,t){t=Pr(Pr({},u.globalConfig),t),n=hr.toArray(t.token),r=hr.toArray(t.useClass),i=hr.toArray(t.useDynamic),o=hr.toArray(t.useFactory),a=hr.toArray(t.contrib),s=t.lifecycle||d.Lifecycle.transient,n={token:n,useClass:r,lifecycle:0<a.length?d.Lifecycle.singleton:s,contrib:a,useDynamic:i,useFactory:o},"useValue"in t&&(n.useValue=t.useValue);var n,r,i,o,a,s,l=n;(0!==l.useClass.length||0!==l.useDynamic.length||0!==l.useFactory.length||"useValue"in l)&&l.token.forEach(function(t){new u(e,t,Pr({},l)).resolve()})}}],(e=[{key:"resolve",value:function(){var t,e=this,n=this.register;(t=n)&&"object"===vr(t)&&"bind"in t&&"unbind"in t&&"rebind"in t&&"isBound"in t&&(this.mutiple?this.resolveMutilple(n):(this.resolveMono(n),!this.named&&0<this.option.contrib.length&&this.option.contrib.forEach(function(t){(hr.isMultipleEnabled(t)?xr:wr)(t,n).toService(e.generalToken)})))}},{key:"resolveMono",value:function(t){return"useValue"in this.option?wr(this.generalToken,t).toConstantValue(this.option.useValue):0<this.option.useDynamic.length?(e=this.option.useDynamic[this.option.useDynamic.length-1],mr(wr(this.generalToken,t).toDynamicValue(function(t){t=Xr.getContainer(t.container);return e({container:t})}),this.option)):0<this.option.useFactory.length?(n=this.option.useFactory[this.option.useFactory.length-1],wr(this.generalToken,t).toFactory(function(t){t=Xr.getContainer(t.container);return n({container:t})})):0<this.option.useClass.length?(r=this.option.useClass[this.option.useClass.length-1],mr(wr(this.generalToken,t).to(r),this.option)):void 0;var e,n,r}},{key:"resolveMutilple",value:function(n){var r=this,t=this.option.useClass.map(function(t){return mr(xr(r.generalToken,n).to(t),r.option)}),e=this.option.useDynamic.map(function(e){return mr(xr(r.generalToken,n).toDynamicValue(function(t){t=Xr.getContainer(t.container);return e({container:t})}),r.option)}),i=this.option.useFactory.map(function(e){return xr(r.generalToken,n).toFactory(function(t){t=Xr.getContainer(t.container);return e({container:t})})}),o="useValue"in this.option?xr(this.generalToken,n).toConstantValue(this.option.useValue):void 0;this.named&&(t.forEach(function(t){return r.named&&br(t,r.named)}),e.forEach(function(t){return r.named&&br(t,r.named)}),i.forEach(function(t){return r.named&&br(t,r.named)}),o&&br(o,this.named))}}])&&Ar(t.prototype,e),n&&Ar(t,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(),Nr=(Cr.globalConfig=d.DefaultOption,d.defineToken("ContributionProvider"));function Lr(t){return function(t){if(Array.isArray(t))return Ir(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return Ir(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ir(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ir(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Rr(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}function Dr(r){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Rr(Object(i),!0).forEach(function(t){var e,n;e=r,n=i[t=t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(i)):Rr(Object(i)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(i,t))})}return r}function jr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Br=function(){function r(t,e,n){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function");this.option={recursive:!1,cache:!0},this.services=void 0,this.serviceIdentifier=void 0,this.container=void 0,this.container=e,this.serviceIdentifier=t,n&&(this.option=Dr(Dr({},this.option),n))}var t,e,n;return t=r,(e=[{key:"setServices",value:function(t){for(var e,n=[],r=this.container;r;)r.isBound(this.serviceIdentifier)&&(e=r.getAll(this.serviceIdentifier),n.push.apply(n,Lr(e))),r=t?r.parent:void 0;return n}},{key:"getContributions",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=Dr(Dr({},this.option),t),e=t.cache,t=t.recursive;return e&&void 0!==this.services||(this.services=this.setServices(!!t)),this.services}}])&&jr(t.prototype,e),n&&jr(t,n),Object.defineProperty(t,"prototype",{writable:!1}),r}();function Fr(t,e,n){t({token:{token:Nr,named:e},useDynamic:function(t){return new Br(e,t.container,n)},lifecycle:d.Lifecycle.singleton})}function zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var Vr=function(){function e(t){var a=this;if(!(this instanceof e))throw new TypeError("Cannot call a class as a function");this.id=void 0,this.inversifyModule=void 0,this.baseRegistry=void 0,this.optionCollection=void 0,this.inversifyRegister=function(t,e,n,r){function i(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};hr.isInjectOption(t)?Cr.resolveOption(o,t):Cr.resolveTarget(o,t,e)}var o={bind:t,unbind:e,isBound:n,rebind:r};a.baseRegistry&&a.baseRegistry(i),a.optionCollection&&a.optionCollection.forEach(function(t){return i(t)})},this.baseRegistry=t,this.inversifyModule=new V.ContainerModule(this.inversifyRegister),this.id=this.inversifyModule.id}var t,n,r;return t=e,(n=[{key:"options",get:function(){return this.optionCollection||(this.optionCollection=[]),this.optionCollection}},{key:"register",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){return e.options.push(t)}),this}},{key:"contribution",value:function(){for(var r=this,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.forEach(function(t){return r.options.push({token:{token:Nr,named:e=t},useDynamic:function(t){return new Br(e,t.container,n)},lifecycle:d.Lifecycle.singleton});var e,n}),this}}])&&zr(t.prototype,n),r&&zr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Gr(t){return t&&"inversifyModule"in t}function Hr(t){return new Vr(t)}function Wr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ur(r){return function(t,e,n){V.named(kr(r))(t,e,n),p(Nr)(t,e,n)}}var Yr,qr=new Map,Xr=function(){function n(t){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function");this.loadedModules=[],this.container=void 0,this.inversify=!0,this.parent=void 0,this.container=t||new V.Container,n.setContainer(this.container,this)}var t,e,r;return t=n,r=[{key:"setContainer",value:function(t,e){return qr.set(t.id,e)}},{key:"getContainer",value:function(t){var e=qr.get(t.id);return e||(e=new n(t),n.setContainer(t,e),e)}},{key:"config",value:function(t){Cr.globalConfig=t}}],(e=[{key:"load",value:function(t,e){var n=this;return e||!this.loadedModules.includes(t.id)?(Gr(t)&&this.container.load(t.inversifyModule),this.loadedModules.push(t.id),{dispose:function(){n.unload(t)}}):(console.warn("Unsupported module."),{dispose:function(){}})}},{key:"unload",value:function(e){Gr(e)&&(this.container.unload(e.inversifyModule),this.loadedModules=this.loadedModules.filter(function(t){return t!==e.id}))}},{key:"remove",value:function(t){return this.container.unbind(Er(t))}},{key:"get",value:function(t){return this.container.get(Er(t))}},{key:"getNamed",value:function(t,e){return this.container.getNamed(Er(t),kr(e))}},{key:"getAll",value:function(t){return this.container.getAll(Er(t))}},{key:"getAllNamed",value:function(t,e){return this.container.getAllNamed(Er(t),kr(e))}},{key:"isBound",value:function(t){return this.container.isBound(Er(t))}},{key:"isBoundNamed",value:function(t,e){return this.container.isBoundNamed(Er(t),kr(e))}},{key:"createChild",value:function(){var t=new n(this.container.createChild());return t.parent=this,t}},{key:"register",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};hr.isInjectOption(t)?Cr.resolveOption(this.container,t):Cr.resolveTarget(this.container,t,e)}}])&&Wr(t.prototype,e),r&&Wr(t,r),Object.defineProperty(t,"prototype",{writable:!1}),n}(),Zr=new Xr(ft);Zr.register.bind(Zr);function Kr(t,e,n,r,i){!function t(e,n,r,i,o){for(;r<i;){600<i-r&&(a=i-r+1,c=n-r+1,l=Math.log(a),s=.5*Math.exp(2*l/3),l=.5*Math.sqrt(l*s*(a-s)/a)*(c-a/2<0?-1:1),u=Math.max(r,Math.floor(n-c*s/a+l)),c=Math.min(i,Math.floor(n+(a-c)*s/a+l)),t(e,n,u,c,o));var a,s,l,u,c,h=e[n],d=r,f=i;for($r(e,r,n),0<o(e[i],h)&&$r(e,r,i);d<f;){for($r(e,d,f),d++,f--;o(e[d],h)<0;)d++;for(;0<o(e[f],h);)f--}0===o(e[r],h)?$r(e,r,f):$r(e,++f,i),f<=n&&(r=f+1),n<=f&&(i=f-1)}}(t,e,n||0,r||t.length-1,i||Jr)}function $r(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Jr(t,e){return t<e?-1:e<t?1:0}(n=Yr=Yr||{}).Provider=Nr,n.register=Fr;class Qr{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}all(){return this._all(this.data,[])}search(e){let n=this.data;const r=[];if(li(e,n)){const a=this.toBBox,s=[];for(;n;){for(let t=0;t<n.children.length;t++){var i=n.children[t],o=n.leaf?a(i):i;li(e,o)&&(n.leaf?r.push(i):si(e,o)?this._all(i,r):s.push(i))}n=s.pop()}}return r}collides(e){let n=this.data;if(li(e,n)){const o=[];for(;n;){for(let t=0;t<n.children.length;t++){var r=n.children[t],i=n.leaf?this.toBBox(r):r;if(li(e,i)){if(n.leaf||si(e,i))return!0;o.push(r)}}n=o.pop()}}return!1}load(e){if(e&&e.length)if(e.length<this._minEntries)for(let t=0;t<e.length;t++)this.insert(e[t]);else{let t=this._build(e.slice(),0,e.length-1,0);var n;this.data.children.length?this.data.height===t.height?this._splitRoot(this.data,t):(this.data.height<t.height&&(n=this.data,this.data=t,t=n),this._insert(t,this.data.height-t.height-1,!0)):this.data=t}return this}insert(t){return t&&this._insert(t,this.data.height-1),this}clear(){return this.data=ui([]),this}remove(i,o){if(i){let t=this.data;var a=this.toBBox(i);const l=[],u=[];let e,n,r;for(;t||l.length;){if(t||(t=l.pop(),n=l[l.length-1],e=u.pop(),r=!0),t.leaf){var s=function(e,n,r){if(!r)return n.indexOf(e);for(let t=0;t<n.length;t++)if(r(e,n[t]))return t;return-1}(i,t.children,o);if(-1!==s)return t.children.splice(s,1),l.push(t),this._condense(l),this}r||t.leaf||!si(t,a)?n?(e++,t=n.children[e],r=!1):t=null:(l.push(t),u.push(e),e=0,t=(n=t).children[0])}}return this}toBBox(t){return t}compareMinX(t,e){return t.minX-e.minX}compareMinY(t,e){return t.minY-e.minY}toJSON(){return this.data}fromJSON(t){return this.data=t,this}_all(t,e){const n=[];for(;t;)(t.leaf?e:n).push(...t.children),t=n.pop();return e}_build(n,t,r,i){var e=r-t+1;let o=this._maxEntries,a;if(e<=o)ti(a=ui(n.slice(t,r+1)),this.toBBox);else{i||(i=Math.ceil(Math.log(e)/Math.log(o)),o=Math.ceil(e/Math.pow(o,i-1))),(a=ui([])).leaf=!1,a.height=i;var s=Math.ceil(e/o),l=s*Math.ceil(Math.sqrt(o));ci(n,t,r,l,this.compareMinX);for(let e=t;e<=r;e+=l){var u=Math.min(e+l-1,r);ci(n,e,u,s,this.compareMinY);for(let t=e;t<=u;t+=s){var c=Math.min(t+s-1,u);a.children.push(this._build(n,t,c,i-1))}}ti(a,this.toBBox)}return a}_chooseSubtree(i,o,t,a){for(;;){if(a.push(o),o.leaf||a.length-1===t)break;let e=1/0,n=1/0,r;for(let t=0;t<o.children.length;t++){var s=o.children[t],l=oi(s),u=(c=i,u=s,(Math.max(u.maxX,c.maxX)-Math.min(u.minX,c.minX))*(Math.max(u.maxY,c.maxY)-Math.min(u.minY,c.minY))-l);u<n?(n=u,e=l<e?l:e,r=s):u===n&&l<e&&(e=l,r=s)}o=r||o.children[0]}var c,u;return o}_insert(t,e,n){var n=n?t:this.toBBox(t),r=[];const i=this._chooseSubtree(n,this.data,e,r);for(i.children.push(t),ni(i,n);0<=e&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(n,r,e)}_split(t,e){const n=t[e];var r=n.children.length,i=this._minEntries,i=(this._chooseSplitAxis(n,i,r),this._chooseSplitIndex(n,i,r));const o=ui(n.children.splice(i,n.children.length-i));o.height=n.height,o.leaf=n.leaf,ti(n,this.toBBox),ti(o,this.toBBox),e?t[e-1].children.push(o):this._splitRoot(n,o)}_splitRoot(t,e){this.data=ui([t,e]),this.data.height=t.height+1,this.data.leaf=!1,ti(this.data,this.toBBox)}_chooseSplitIndex(e,n,r){let i,o=1/0,a=1/0;for(let t=n;t<=r-n;t++){var s=ei(e,0,t,this.toBBox),l=ei(e,t,r,this.toBBox),u=(h=s,u=l,c=f=d=void 0,d=Math.max(h.minX,u.minX),f=Math.max(h.minY,u.minY),c=Math.min(h.maxX,u.maxX),h=Math.min(h.maxY,u.maxY),Math.max(0,c-d)*Math.max(0,h-f)),c=oi(s)+oi(l);u<o?(o=u,i=t,a=c<a?c:a):u===o&&c<a&&(a=c,i=t)}var h,u,d,f,c;return i||r-n}_chooseSplitAxis(t,e,n){var r=t.leaf?this.compareMinX:ri,i=t.leaf?this.compareMinY:ii;this._allDistMargin(t,e,n,r)<this._allDistMargin(t,e,n,i)&&t.children.sort(r)}_allDistMargin(e,n,r,t){e.children.sort(t);const i=this.toBBox;var o=ei(e,0,n,i),a=ei(e,r-n,r,i);let s=ai(o)+ai(a);for(let t=n;t<r-n;t++){var l=e.children[t];ni(o,e.leaf?i(l):l),s+=ai(o)}for(let t=r-n-1;t>=n;t--){var u=e.children[t];ni(a,e.leaf?i(u):u),s+=ai(a)}return s}_adjustParentBBoxes(e,n,r){for(let t=r;0<=t;t--)ni(n[t],e)}_condense(n){for(let t=n.length-1,e;0<=t;t--)0===n[t].children.length?0<t?(e=n[t-1].children).splice(e.indexOf(n[t]),1):this.clear():ti(n[t],this.toBBox)}}function ti(t,e){ei(t,0,t.children.length,e,t)}function ei(e,n,r,i,o){(o=o||ui(null)).minX=1/0,o.minY=1/0,o.maxX=-1/0,o.maxY=-1/0;for(let t=n;t<r;t++){var a=e.children[t];ni(o,e.leaf?i(a):a)}return o}function ni(t,e){t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY)}function ri(t,e){return t.minX-e.minX}function ii(t,e){return t.minY-e.minY}function oi(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function ai(t){return t.maxX-t.minX+(t.maxY-t.minY)}function si(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function li(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function ui(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function ci(t,e,n,r,i){const o=[e,n];for(;o.length;){var a;(n=o.pop())-(e=o.pop())<=r||(Kr(t,a=e+Math.ceil((n-e)/r/2)*r,e,n,i),o.push(e,a,a,n))}}var hi=1e-6,di="undefined"!=typeof Float32Array?Float32Array:Array;function fi(){var t=new di(9);return di!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)});var pi=function(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],e=e[8],h=n[0],d=n[1],f=n[2],p=n[3],y=n[4],g=n[5],v=n[6],m=n[7],n=n[8];return t[0]=h*r+d*a+f*u,t[1]=h*i+d*s+f*c,t[2]=h*o+d*l+f*e,t[3]=p*r+y*a+g*u,t[4]=p*i+y*s+g*c,t[5]=p*o+y*l+g*e,t[6]=v*r+m*a+n*u,t[7]=v*i+m*s+n*c,t[8]=v*o+m*l+n*e,t};function yi(){var t=new di(16);return di!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function gi(t){var e=new di(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e}function vi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function mi(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,y){var g=new di(16);return g[0]=t,g[1]=e,g[2]=n,g[3]=r,g[4]=i,g[5]=o,g[6]=a,g[7]=s,g[8]=l,g[9]=u,g[10]=c,g[11]=h,g[12]=d,g[13]=f,g[14]=p,g[15]=y,g}function bi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function xi(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],y=e[13],g=e[14],e=e[15],v=n*s-r*a,m=n*l-i*a,b=n*u-o*a,x=r*l-i*s,w=r*u-o*s,k=i*u-o*l,E=c*y-h*p,_=c*g-d*p,S=c*e-f*p,M=h*g-d*y,T=h*e-f*y,O=d*e-f*g,P=v*O-m*T+b*M+x*S-w*_+k*E;return P?(t[0]=(s*O-l*T+u*M)*(P=1/P),t[1]=(i*T-r*O-o*M)*P,t[2]=(y*k-g*w+e*x)*P,t[3]=(d*w-h*k-f*x)*P,t[4]=(l*S-a*O-u*_)*P,t[5]=(n*O-i*S+o*_)*P,t[6]=(g*b-p*k-e*m)*P,t[7]=(c*k-d*b+f*m)*P,t[8]=(a*T-s*S+u*E)*P,t[9]=(r*S-n*T-o*E)*P,t[10]=(p*w-y*b+e*v)*P,t[11]=(h*b-c*w-f*v)*P,t[12]=(s*_-a*M-l*E)*P,t[13]=(n*M-r*_+i*E)*P,t[14]=(y*m-p*x-g*v)*P,t[15]=(c*x-h*m+d*v)*P,t):null}function wi(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],y=e[12],g=e[13],v=e[14],e=e[15],m=n[0],b=n[1],x=n[2],w=n[3];return t[0]=m*r+b*s+x*h+w*y,t[1]=m*i+b*l+x*d+w*g,t[2]=m*o+b*u+x*f+w*v,t[3]=m*a+b*c+x*p+w*e,m=n[4],b=n[5],x=n[6],w=n[7],t[4]=m*r+b*s+x*h+w*y,t[5]=m*i+b*l+x*d+w*g,t[6]=m*o+b*u+x*f+w*v,t[7]=m*a+b*c+x*p+w*e,m=n[8],b=n[9],x=n[10],w=n[11],t[8]=m*r+b*s+x*h+w*y,t[9]=m*i+b*l+x*d+w*g,t[10]=m*o+b*u+x*f+w*v,t[11]=m*a+b*c+x*p+w*e,m=n[12],b=n[13],x=n[14],w=n[15],t[12]=m*r+b*s+x*h+w*y,t[13]=m*i+b*l+x*d+w*g,t[14]=m*o+b*u+x*f+w*v,t[15]=m*a+b*c+x*p+w*e,t}function ki(t,e,n){var r,i,o,a,s,l,u,c,h,d,f,p,y=n[0],g=n[1],n=n[2];return e===t?(t[12]=e[0]*y+e[4]*g+e[8]*n+e[12],t[13]=e[1]*y+e[5]*g+e[9]*n+e[13],t[14]=e[2]*y+e[6]*g+e[10]*n+e[14],t[15]=e[3]*y+e[7]*g+e[11]*n+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=r*y+s*g+h*n+e[12],t[13]=i*y+l*g+d*n+e[13],t[14]=o*y+u*g+f*n+e[14],t[15]=a*y+c*g+p*n+e[15]),t}function Ei(t,e,n){var r=n[0],i=n[1],n=n[2];return t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*i,t[6]=e[6]*i,t[7]=e[7]*i,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t}function _i(t,e,n){var r=Math.sin(n),n=Math.cos(n),i=e[4],o=e[5],a=e[6],s=e[7],l=e[8],u=e[9],c=e[10],h=e[11];return e!==t&&(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[4]=i*n+l*r,t[5]=o*n+u*r,t[6]=a*n+c*r,t[7]=s*n+h*r,t[8]=l*n-i*r,t[9]=u*n-o*r,t[10]=c*n-a*r,t[11]=h*n-s*r,t}function Si(t,e,n){var r=Math.sin(n),n=Math.cos(n),i=e[0],o=e[1],a=e[2],s=e[3],l=e[8],u=e[9],c=e[10],h=e[11];return e!==t&&(t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*n-l*r,t[1]=o*n-u*r,t[2]=a*n-c*r,t[3]=s*n-h*r,t[8]=i*r+l*n,t[9]=o*r+u*n,t[10]=a*r+c*n,t[11]=s*r+h*n,t}function Mi(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e[0],t[13]=e[1],t[14]=e[2],t[15]=1,t}function Ti(t,e,n){var r=e[0],i=e[1],o=e[2],e=e[3],a=r+r,s=i+i,l=o+o,u=r*a,c=r*s,r=r*l,h=i*s,i=i*l,o=o*l,a=e*a,s=e*s,e=e*l;return t[0]=1-(h+o),t[1]=c+e,t[2]=r-s,t[3]=0,t[4]=c-e,t[5]=1-(u+o),t[6]=i+a,t[7]=0,t[8]=r+s,t[9]=i-a,t[10]=1-(u+h),t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t}function Oi(t,e){return t[0]=e[12],t[1]=e[13],t[2]=e[14],t}function Pi(t,e){var n=e[0],r=e[1],i=e[2],o=e[4],a=e[5],s=e[6],l=e[8],u=e[9],e=e[10];return t[0]=Math.hypot(n,r,i),t[1]=Math.hypot(o,a,s),t[2]=Math.hypot(l,u,e),t}function Ai(t,e){var n=new di(3),r=(Pi(n,e),1/n[0]),i=1/n[1],n=1/n[2],o=e[0]*r,a=e[1]*i,s=e[2]*n,l=e[4]*r,u=e[5]*i,c=e[6]*n,r=e[8]*r,i=e[9]*i,e=e[10]*n,n=o+u+e,h=0;return 0<n?(h=2*Math.sqrt(1+n),t[3]=.25*h,t[0]=(c-i)/h,t[1]=(r-s)/h,t[2]=(a-l)/h):u<o&&e<o?(h=2*Math.sqrt(1+o-u-e),t[3]=(c-i)/h,t[0]=.25*h,t[1]=(a+l)/h,t[2]=(r+s)/h):e<u?(h=2*Math.sqrt(1+u-o-e),t[3]=(r-s)/h,t[0]=(a+l)/h,t[1]=.25*h,t[2]=(c+i)/h):(h=2*Math.sqrt(1+e-o-u),t[3]=(a-l)/h,t[0]=(r+s)/h,t[1]=(c+i)/h,t[2]=.25*h),t}function Ci(t,e,n,r,i){var o=e[0],a=e[1],s=e[2],e=e[3],l=o+o,u=a+a,c=s+s,h=o*l,d=o*u,o=o*c,f=a*u,a=a*c,s=s*c,l=e*l,u=e*u,e=e*c,c=r[0],p=r[1],r=r[2],y=i[0],g=i[1],i=i[2],v=(1-(f+s))*c,m=(d+e)*c,c=(o-u)*c,d=(d-e)*p,e=(1-(h+s))*p,s=(a+l)*p,p=(o+u)*r,o=(a-l)*r,u=(1-(h+f))*r;return t[0]=v,t[1]=m,t[2]=c,t[3]=0,t[4]=d,t[5]=e,t[6]=s,t[7]=0,t[8]=p,t[9]=o,t[10]=u,t[11]=0,t[12]=n[0]+y-(v*y+d*g+p*i),t[13]=n[1]+g-(m*y+e*g+o*i),t[14]=n[2]+i-(c*y+s*g+u*i),t[15]=1,t}function Ni(t,e){var n=e[0],r=e[1],i=e[2],e=e[3],o=n+n,a=r+r,s=i+i,n=n*o,l=r*o,r=r*a,u=i*o,c=i*a,i=i*s,o=e*o,a=e*a,e=e*s;return t[0]=1-r-i,t[1]=l+e,t[2]=u-a,t[3]=0,t[4]=l-e,t[5]=1-n-i,t[6]=c+o,t[7]=0,t[8]=u+a,t[9]=c-o,t[10]=1-n-r,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t}function Li(t,e,n,r,i){e=1/Math.tan(e/2);return t[0]=e/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(t[10]=(i+r)*(n=1/(r-i)),t[14]=2*i*r*n):(t[10]=-1,t[14]=-2*r),t}function Ii(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),u=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=2*u,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=(a+o)*u,t[15]=1,t}var Ri=Ii;function Di(t,e,n,r){var i,o,a,s,l=e[0],u=e[1],e=e[2],c=r[0],h=r[1],r=r[2],d=n[0],f=n[1],n=n[2];return Math.abs(l-d)<hi&&Math.abs(u-f)<hi&&Math.abs(e-n)<hi?bi(t):(n=e-n,i=h*(n*=s=1/Math.hypot(d=l-d,f=u-f,n))-r*(f*=s),r=r*(d*=s)-c*n,c=c*f-h*d,(s=Math.hypot(i,r,c))?(i*=s=1/s,r*=s,c*=s):c=r=i=0,h=f*c-n*r,o=n*i-d*c,a=d*r-f*i,(s=Math.hypot(h,o,a))?(h*=s=1/s,o*=s,a*=s):a=o=h=0,t[0]=i,t[1]=h,t[2]=d,t[3]=0,t[4]=r,t[5]=o,t[6]=f,t[7]=0,t[8]=c,t[9]=a,t[10]=n,t[11]=0,t[12]=-(i*l+r*u+c*e),t[13]=-(h*l+o*u+a*e),t[14]=-(d*l+f*u+n*e),t[15]=1,t)}function ji(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t[9]=e[9]-n[9],t[10]=e[10]-n[10],t[11]=e[11]-n[11],t[12]=e[12]-n[12],t[13]=e[13]-n[13],t[14]=e[14]-n[14],t[15]=e[15]-n[15],t}var Bi=Object.freeze({__proto__:null,create:yi,clone:gi,copy:vi,fromValues:mi,set:function(t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,y,g){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=s,t[7]=l,t[8]=u,t[9]=c,t[10]=h,t[11]=d,t[12]=f,t[13]=p,t[14]=y,t[15]=g,t},identity:bi,transpose:function(t,e){var n,r,i,o,a,s;return t===e?(n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s):(t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15]),t},invert:xi,adjoint:function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],y=e[13],g=e[14],e=e[15];return t[0]=s*(d*e-f*g)-h*(l*e-u*g)+y*(l*f-u*d),t[1]=-(r*(d*e-f*g)-h*(i*e-o*g)+y*(i*f-o*d)),t[2]=r*(l*e-u*g)-s*(i*e-o*g)+y*(i*u-o*l),t[3]=-(r*(l*f-u*d)-s*(i*f-o*d)+h*(i*u-o*l)),t[4]=-(a*(d*e-f*g)-c*(l*e-u*g)+p*(l*f-u*d)),t[5]=n*(d*e-f*g)-c*(i*e-o*g)+p*(i*f-o*d),t[6]=-(n*(l*e-u*g)-a*(i*e-o*g)+p*(i*u-o*l)),t[7]=n*(l*f-u*d)-a*(i*f-o*d)+c*(i*u-o*l),t[8]=a*(h*e-f*y)-c*(s*e-u*y)+p*(s*f-u*h),t[9]=-(n*(h*e-f*y)-c*(r*e-o*y)+p*(r*f-o*h)),t[10]=n*(s*e-u*y)-a*(r*e-o*y)+p*(r*u-o*s),t[11]=-(n*(s*f-u*h)-a*(r*f-o*h)+c*(r*u-o*s)),t[12]=-(a*(h*g-d*y)-c*(s*g-l*y)+p*(s*d-l*h)),t[13]=n*(h*g-d*y)-c*(r*g-i*y)+p*(r*d-i*h),t[14]=-(n*(s*g-l*y)-a*(r*g-i*y)+p*(r*l-i*s)),t[15]=n*(s*d-l*h)-a*(r*d-i*h)+c*(r*l-i*s),t},determinant:function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],y=t[14],t=t[15];return(e*a-n*o)*(h*t-d*y)-(e*s-r*o)*(c*t-d*p)+(e*l-i*o)*(c*y-h*p)+(n*s-r*a)*(u*t-d*f)-(n*l-i*a)*(u*y-h*f)+(r*l-i*s)*(u*p-c*f)},multiply:wi,translate:ki,scale:Ei,rotate:function(t,e,n,r){var i,o,a,s,l,u,c,h,d,f,p,y,g,v,m,b,x,w,k,E,_=r[0],S=r[1],r=r[2],M=Math.hypot(_,S,r);return M<hi?null:(_*=M=1/M,S*=M,r*=M,M=Math.sin(n),n=Math.cos(n),o=e[0],a=e[1],s=e[2],l=e[3],u=e[4],c=e[5],h=e[6],d=e[7],f=e[8],p=e[9],y=e[10],g=e[11],m=_*S*(i=1-n)-r*M,b=S*S*i+n,x=r*S*i+_*M,w=_*r*i+S*M,k=S*r*i-_*M,E=r*r*i+n,t[0]=o*(n=_*_*i+n)+u*(v=S*_*i+r*M)+f*(r=r*_*i-S*M),t[1]=a*n+c*v+p*r,t[2]=s*n+h*v+y*r,t[3]=l*n+d*v+g*r,t[4]=o*m+u*b+f*x,t[5]=a*m+c*b+p*x,t[6]=s*m+h*b+y*x,t[7]=l*m+d*b+g*x,t[8]=o*w+u*k+f*E,t[9]=a*w+c*k+p*E,t[10]=s*w+h*k+y*E,t[11]=l*w+d*k+g*E,e!==t&&(t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t)},rotateX:_i,rotateY:Si,rotateZ:function(t,e,n){var r=Math.sin(n),n=Math.cos(n),i=e[0],o=e[1],a=e[2],s=e[3],l=e[4],u=e[5],c=e[6],h=e[7];return e!==t&&(t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]),t[0]=i*n+l*r,t[1]=o*n+u*r,t[2]=a*n+c*r,t[3]=s*n+h*r,t[4]=l*n-i*r,t[5]=u*n-o*r,t[6]=c*n-a*r,t[7]=h*n-s*r,t},fromTranslation:Mi,fromScaling:function(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e[1],t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=e[2],t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotation:function(t,e,n){var r,i=n[0],o=n[1],n=n[2],a=Math.hypot(i,o,n);return a<hi?null:(i*=a=1/a,o*=a,n*=a,a=Math.sin(e),e=Math.cos(e),t[0]=i*i*(r=1-e)+e,t[1]=o*i*r+n*a,t[2]=n*i*r-o*a,t[3]=0,t[4]=i*o*r-n*a,t[5]=o*o*r+e,t[6]=n*o*r+i*a,t[7]=0,t[8]=i*n*r+o*a,t[9]=o*n*r-i*a,t[10]=n*n*r+e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t)},fromXRotation:function(t,e){var n=Math.sin(e),e=Math.cos(e);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=n,t[7]=0,t[8]=0,t[9]=-n,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromYRotation:function(t,e){var n=Math.sin(e),e=Math.cos(e);return t[0]=e,t[1]=0,t[2]=-n,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=n,t[9]=0,t[10]=e,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromZRotation:function(t,e){var n=Math.sin(e),e=Math.cos(e);return t[0]=e,t[1]=n,t[2]=0,t[3]=0,t[4]=-n,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},fromRotationTranslation:Ti,fromQuat2:function(t,e){var n=new di(3),r=-e[0],i=-e[1],o=-e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=r*r+i*i+o*o+a*a;return 0<h?(n[0]=2*(s*a+c*r+l*o-u*i)/h,n[1]=2*(l*a+c*i+u*r-s*o)/h,n[2]=2*(u*a+c*o+s*i-l*r)/h):(n[0]=2*(s*a+c*r+l*o-u*i),n[1]=2*(l*a+c*i+u*r-s*o),n[2]=2*(u*a+c*o+s*i-l*r)),Ti(t,e,n),t},getTranslation:Oi,getScaling:Pi,getRotation:Ai,fromRotationTranslationScale:function(t,e,n,r){var i=e[0],o=e[1],a=e[2],e=e[3],s=i*(c=i+i),l=i*(h=o+o),i=i*(d=a+a),u=o*h,o=o*d,a=a*d,c=e*c,h=e*h,e=e*d,d=r[0],f=r[1],r=r[2];return t[0]=(1-(u+a))*d,t[1]=(l+e)*d,t[2]=(i-h)*d,t[3]=0,t[4]=(l-e)*f,t[5]=(1-(s+a))*f,t[6]=(o+c)*f,t[7]=0,t[8]=(i+h)*r,t[9]=(o-c)*r,t[10]=(1-(s+u))*r,t[11]=0,t[12]=n[0],t[13]=n[1],t[14]=n[2],t[15]=1,t},fromRotationTranslationScaleOrigin:Ci,fromQuat:Ni,frustum:function(t,e,n,r,i,o,a){var s=1/(n-e),l=1/(i-r),u=1/(o-a);return t[0]=2*o*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=2*o*l,t[6]=0,t[7]=0,t[8]=(n+e)*s,t[9]=(i+r)*l,t[10]=(a+o)*u,t[11]=-1,t[12]=0,t[13]=0,t[14]=a*o*2*u,t[15]=0,t},perspectiveNO:Li,perspective:Li,perspectiveZO:function(t,e,n,r,i){return e=1/Math.tan(e/2),t[0]=e/n,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=e,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=-1,t[12]=0,t[13]=0,t[15]=0,null!=i&&i!==1/0?(t[10]=i*(n=1/(r-i)),t[14]=i*r*n):(t[10]=-1,t[14]=-r),t},perspectiveFromFieldOfView:function(t,e,n,r){var i=Math.tan(e.upDegrees*Math.PI/180),o=Math.tan(e.downDegrees*Math.PI/180),a=Math.tan(e.leftDegrees*Math.PI/180),e=Math.tan(e.rightDegrees*Math.PI/180),s=2/(a+e),l=2/(i+o);return t[0]=s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=l,t[6]=0,t[7]=0,t[8]=-(a-e)*s*.5,t[9]=(i-o)*l*.5,t[10]=r/(n-r),t[11]=-1,t[12]=0,t[13]=0,t[14]=r*n/(n-r),t[15]=0,t},orthoNO:Ii,ortho:Ri,orthoZO:function(t,e,n,r,i,o,a){var s=1/(e-n),l=1/(r-i),a=1/(o-a);return t[0]=-2*s,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=-2*l,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=a,t[11]=0,t[12]=(e+n)*s,t[13]=(i+r)*l,t[14]=o*a,t[15]=1,t},lookAt:Di,targetTo:function(t,e,n,r){var i=e[0],o=e[1],e=e[2],a=r[0],s=r[1],r=r[2],l=i-n[0],u=o-n[1],n=e-n[2],c=l*l+u*u+n*n,h=(0<c&&(l*=c=1/Math.sqrt(c),u*=c,n*=c),s*n-r*u);return 0<(c=h*h+(r=r*l-a*n)*r+(a=a*u-s*l)*a)&&(h*=c=1/Math.sqrt(c),r*=c,a*=c),t[0]=h,t[1]=r,t[2]=a,t[3]=0,t[4]=u*a-n*r,t[5]=n*h-l*a,t[6]=l*r-u*h,t[7]=0,t[8]=l,t[9]=u,t[10]=n,t[11]=0,t[12]=i,t[13]=o,t[14]=e,t[15]=1,t},str:function(t){return"mat4("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+", "+t[9]+", "+t[10]+", "+t[11]+", "+t[12]+", "+t[13]+", "+t[14]+", "+t[15]+")"},frob:function(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t[9]=e[9]+n[9],t[10]=e[10]+n[10],t[11]=e[11]+n[11],t[12]=e[12]+n[12],t[13]=e[13]+n[13],t[14]=e[14]+n[14],t[15]=e[15]+n[15],t},subtract:ji,multiplyScalar:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t[9]=e[9]*n,t[10]=e[10]*n,t[11]=e[11]*n,t[12]=e[12]*n,t[13]=e[13]*n,t[14]=e[14]*n,t[15]=e[15]*n,t},multiplyScalarAndAdd:function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t[9]=e[9]+n[9]*r,t[10]=e[10]+n[10]*r,t[11]=e[11]+n[11]*r,t[12]=e[12]+n[12]*r,t[13]=e[13]+n[13]*r,t[14]=e[14]+n[14]*r,t[15]=e[15]+n[15]*r,t},exactEquals:function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]&&t[9]===e[9]&&t[10]===e[10]&&t[11]===e[11]&&t[12]===e[12]&&t[13]===e[13]&&t[14]===e[14]&&t[15]===e[15]},equals:function(t,e){var n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],s=t[5],l=t[6],u=t[7],c=t[8],h=t[9],d=t[10],f=t[11],p=t[12],y=t[13],g=t[14],t=t[15],v=e[0],m=e[1],b=e[2],x=e[3],w=e[4],k=e[5],E=e[6],_=e[7],S=e[8],M=e[9],T=e[10],O=e[11],P=e[12],A=e[13],C=e[14],e=e[15];return Math.abs(n-v)<=hi*Math.max(1,Math.abs(n),Math.abs(v))&&Math.abs(r-m)<=hi*Math.max(1,Math.abs(r),Math.abs(m))&&Math.abs(i-b)<=hi*Math.max(1,Math.abs(i),Math.abs(b))&&Math.abs(o-x)<=hi*Math.max(1,Math.abs(o),Math.abs(x))&&Math.abs(a-w)<=hi*Math.max(1,Math.abs(a),Math.abs(w))&&Math.abs(s-k)<=hi*Math.max(1,Math.abs(s),Math.abs(k))&&Math.abs(l-E)<=hi*Math.max(1,Math.abs(l),Math.abs(E))&&Math.abs(u-_)<=hi*Math.max(1,Math.abs(u),Math.abs(_))&&Math.abs(c-S)<=hi*Math.max(1,Math.abs(c),Math.abs(S))&&Math.abs(h-M)<=hi*Math.max(1,Math.abs(h),Math.abs(M))&&Math.abs(d-T)<=hi*Math.max(1,Math.abs(d),Math.abs(T))&&Math.abs(f-O)<=hi*Math.max(1,Math.abs(f),Math.abs(O))&&Math.abs(p-P)<=hi*Math.max(1,Math.abs(p),Math.abs(P))&&Math.abs(y-A)<=hi*Math.max(1,Math.abs(y),Math.abs(A))&&Math.abs(g-C)<=hi*Math.max(1,Math.abs(g),Math.abs(C))&&Math.abs(t-e)<=hi*Math.max(1,Math.abs(t),Math.abs(e))},mul:wi,sub:ji});function v(){var t=new di(3);return di!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Fi(t){var e=new di(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function zi(t){var e=t[0],n=t[1],t=t[2];return Math.hypot(e,n,t)}function E(t,e,n){var r=new di(3);return r[0]=t,r[1]=e,r[2]=n,r}function Vi(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function Gi(t,e,n,r){t[0]=e,t[1]=n,t[2]=r}function Hi(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function Wi(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function Ui(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function Yi(t,e){var n=e[0],r=e[1],i=e[2],n=n*n+r*r+i*i;0<n&&(n=1/Math.sqrt(n)),t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n}function qi(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function Xi(t,e,n,r){var i=e[0],o=e[1],e=e[2];t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=e+r*(n[2]-e)}function Zi(t,e,n){var r=e[0],i=e[1],e=e[2],o=n[3]*r+n[7]*i+n[11]*e+n[15];return t[0]=(n[0]*r+n[4]*i+n[8]*e+n[12])/(o=o||1),t[1]=(n[1]*r+n[5]*i+n[9]*e+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*e+n[14])/o,t}function Ki(t,e,n){var r=e[0],i=e[1],e=e[2];t[0]=r*n[0]+i*n[3]+e*n[6],t[1]=r*n[1]+i*n[4]+e*n[7],t[2]=r*n[2]+i*n[5]+e*n[8]}function $i(t,e){var n=t[0],r=t[1],t=t[2],i=e[0],o=e[1],e=e[2];return Math.abs(n-i)<=hi*Math.max(1,Math.abs(n),Math.abs(i))&&Math.abs(r-o)<=hi*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(t-e)<=hi*Math.max(1,Math.abs(t),Math.abs(e))}var Ji=Wi,Qi=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],e=e[2]-t[2];return Math.hypot(n,r,e)},to=zi;function eo(){var t=new di(4);return di!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0,t[3]=0),t}function no(t,e,n){var r=e[0],i=e[1],o=e[2],e=e[3];return t[0]=n[0]*r+n[4]*i+n[8]*o+n[12]*e,t[1]=n[1]*r+n[5]*i+n[9]*o+n[13]*e,t[2]=n[2]*r+n[6]*i+n[10]*o+n[14]*e,t[3]=n[3]*r+n[7]*i+n[11]*o+n[15]*e,t}function ro(){var t=new di(4);return di!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t[3]=1,t}function io(t,e,n){n*=.5;var r=Math.sin(n);return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=Math.cos(n),t}function oo(t,e,n){var r=e[0],i=e[1],o=e[2],e=e[3],a=n[0],s=n[1],l=n[2],n=n[3];return t[0]=r*n+e*a+i*l-o*s,t[1]=i*n+e*s+o*a-r*l,t[2]=o*n+e*l+r*s-i*a,t[3]=e*n-r*a-i*s-o*l,t}function ao(t,e){var n=e[0],r=e[1],i=e[2],e=e[3],o=n*n+r*r+i*i+e*e,o=o?1/o:0;return t[0]=-n*o,t[1]=-r*o,t[2]=-i*o,t[3]=e*o,t}function so(t,e,n,r){var i=.5*Math.PI/180,i=(e*=i,n*=i,r*=i,Math.sin(e)),e=Math.cos(e),o=Math.sin(n),n=Math.cos(n),a=Math.sin(r),r=Math.cos(r);t[0]=i*n*r-e*o*a,t[1]=e*o*r+i*n*a,t[2]=e*n*a-i*o*r,t[3]=e*n*r+i*o*a}v(),eo();var lo=function(t,e,n,r){var i=new di(4);return i[0]=t,i[1]=e,i[2]=n,i[3]=r,i},uo=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t},co=oo,ho=function(t,e){var n=e[0],r=e[1],i=e[2],e=e[3],o=n*n+r*r+i*i+e*e;return 0<o&&(o=1/Math.sqrt(o)),t[0]=n*o,t[1]=r*o,t[2]=i*o,t[3]=e*o,t};function fo(t,e){var n=new di(2);return n[0]=t,n[1]=e,n}function po(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function yo(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function go(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function vo(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function mo(t,e){var n=e[0]-t[0],e=e[1]-t[1];return Math.hypot(n,e)}function bo(t,e){var n=e[0],r=e[1],n=n*n+r*r;return 0<n&&(n=1/Math.sqrt(n)),t[0]=e[0]*n,t[1]=e[1]*n,t}v(),E(1,0,0),E(0,1,0),ro(),ro(),fi();var xo,wo,ko=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},Eo=(G=new di(2),di!=Float32Array&&(G[0]=0,G[1]=0),{exports:{}});function _o(){}function So(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function Mo(t,e,n,r,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");n=new So(n,r||t,i),r=wo?wo+e:e;return t._events[r]?t._events[r].fn?t._events[r]=[t._events[r],n]:t._events[r].push(n):(t._events[r]=n,t._eventsCount++),t}function To(t,e){0==--t._eventsCount?t._events=new _o:delete t._events[e]}function Oo(){this._events=new _o,this._eventsCount=0}function Po(t,e,n){(t.prototype=e.prototype=n).constructor=t}function Ao(t,e){var n,r=Object.create(t.prototype);for(n in e)r[n]=e[n];return r}function Co(){}J=Eo,xo=Object.prototype.hasOwnProperty,wo="~",Object.create&&(_o.prototype=Object.create(null),(new _o).__proto__||(wo=!1)),Oo.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)xo.call(t,e)&&n.push(wo?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},Oo.prototype.listeners=function(t){var t=wo?wo+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var n=0,r=e.length,i=new Array(r);n<r;n++)i[n]=e[n].fn;return i},Oo.prototype.listenerCount=function(t){t=wo?wo+t:t,t=this._events[t];return t?t.fn?1:t.length:0},Oo.prototype.emit=function(t,e,n,r,i,o){var a=wo?wo+t:t;if(!this._events[a])return!1;var s,l=this._events[a],u=arguments.length;if(l.fn){switch(l.once&&this.removeListener(t,l.fn,void 0,!0),u){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,e),!0;case 3:return l.fn.call(l.context,e,n),!0;case 4:return l.fn.call(l.context,e,n,r),!0;case 5:return l.fn.call(l.context,e,n,r,i),!0;case 6:return l.fn.call(l.context,e,n,r,i,o),!0}for(d=1,s=new Array(u-1);d<u;d++)s[d-1]=arguments[d];l.fn.apply(l.context,s)}else for(var c,h=l.length,d=0;d<h;d++)switch(l[d].once&&this.removeListener(t,l[d].fn,void 0,!0),u){case 1:l[d].fn.call(l[d].context);break;case 2:l[d].fn.call(l[d].context,e);break;case 3:l[d].fn.call(l[d].context,e,n);break;case 4:l[d].fn.call(l[d].context,e,n,r);break;default:if(!s)for(c=1,s=new Array(u-1);c<u;c++)s[c-1]=arguments[c];l[d].fn.apply(l[d].context,s)}return!0},Oo.prototype.on=function(t,e,n){return Mo(this,t,e,n,!1)},Oo.prototype.once=function(t,e,n){return Mo(this,t,e,n,!0)},Oo.prototype.removeListener=function(t,e,n,r){t=wo?wo+t:t;if(this._events[t])if(e){var i=this._events[t];if(i.fn)i.fn!==e||r&&!i.once||n&&i.context!==n||To(this,t);else{for(var o=0,a=[],s=i.length;o<s;o++)(i[o].fn!==e||r&&!i[o].once||n&&i[o].context!==n)&&a.push(i[o]);a.length?this._events[t]=1===a.length?a[0]:a:To(this,t)}}else To(this,t);return this},Oo.prototype.removeAllListeners=function(t){return t?(t=wo?wo+t:t,this._events[t]&&To(this,t)):(this._events=new _o,this._eventsCount=0),this},Oo.prototype.off=Oo.prototype.removeListener,Oo.prototype.addListener=Oo.prototype.on,Oo.prefixed=wo,J.exports=Oo.EventEmitter=Oo;var h="\\s*([+-]?\\d+)\\s*",at="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Z="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",No=/^#([0-9a-f]{3,8})$/,Lo=new RegExp("^rgb\\("+[h,h,h]+"\\)$"),Io=new RegExp("^rgb\\("+[Z,Z,Z]+"\\)$"),Ro=new RegExp("^rgba\\("+[h,h,h,at]+"\\)$"),Do=new RegExp("^rgba\\("+[Z,Z,Z,at]+"\\)$"),jo=new RegExp("^hsl\\("+[at,Z,Z]+"\\)$"),Bo=new RegExp("^hsla\\("+[at,Z,Z,at]+"\\)$"),Fo={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function zo(){return this.rgb().formatHex()}function Vo(){return this.rgb().formatRgb()}function Go(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=No.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Ho(e):3===n?new Uo(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Wo(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Wo(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=Lo.exec(t))?new Uo(e[1],e[2],e[3],1):(e=Io.exec(t))?new Uo(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Ro.exec(t))?Wo(e[1],e[2],e[3],e[4]):(e=Do.exec(t))?Wo(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=jo.exec(t))?Zo(e[1],e[2]/100,e[3]/100,1):(e=Bo.exec(t))?Zo(e[1],e[2]/100,e[3]/100,e[4]):Fo.hasOwnProperty(t)?Ho(Fo[t]):"transparent"===t?new Uo(NaN,NaN,NaN,0):null}function Ho(t){return new Uo(t>>16&255,t>>8&255,255&t,1)}function Wo(t,e,n,r){return new Uo(t=r<=0?e=n=NaN:t,e,n,r)}function Uo(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Yo(){return"#"+Xo(this.r)+Xo(this.g)+Xo(this.b)}function qo(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Xo(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Zo(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||1<=n?t=e=NaN:e<=0&&(t=NaN),new $o(t,e,n,r)}function Ko(t){if(t instanceof $o)return new $o(t.h,t.s,t.l,t.opacity);if(!(t=t instanceof Co?t:Go(t)))return new $o;if(t instanceof $o)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,s=o-i,l=(o+i)/2;return s?(a=e===o?(n-r)/s+6*(n<r):n===o?(r-e)/s+2:(e-n)/s+4,s/=l<.5?o+i:2-o-i,a*=60):s=0<l&&l<1?0:a,new $o(a,s,l,t.opacity)}function $o(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Jo(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Qo(t){return t.map(function(t){return Array.isArray(t)?[].concat(t):t})}function ta(t,e){return function(t,n){if("off"===n)return Qo(t);var r="number"==typeof n&&1<=n?Math.pow(10,n):1;return t.map(function(t){var e=t.slice(1).map(Number).map(function(t){return n?Math.round(t*r)/r:Math.round(t)});return[t[0]].concat(e)})}(t,e=void 0===e?"off":e).map(function(t){return t[0]+t.slice(1).join(" ")}).join("")}Po(Co,Go,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:zo,formatHex:zo,formatHsl:function(){return Ko(this).formatHsl()},formatRgb:Vo,toString:Vo}),Po(Uo,function(t,e,n,r){return 1===arguments.length?(i=(i=t)instanceof Co?i:Go(i))?new Uo((i=i.rgb()).r,i.g,i.b,i.opacity):new Uo:new Uo(t,e,n,null==r?1:r);var i},Ao(Co,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Uo(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Uo(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Yo,formatHex:Yo,formatRgb:qo,toString:qo})),Po($o,function(t,e,n,r){return 1===arguments.length?Ko(t):new $o(t,e,n,null==r?1:r)},Ao(Co,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new $o(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new $o(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,e=n+(n<.5?n:1-n)*e,n=2*n-e;return new Uo(Jo(240<=t?t-240:120+t,n,e),Jo(t,n,e),Jo(t<120?240+t:t-120,n,e),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ea={x1:0,y1:0,x2:0,y2:0,x:0,y:0,qx:null,qy:null};var na={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function ra(t){return Array.isArray(t)&&t.every(function(t){var e=t[0].toLowerCase();return na[e]===t.length-1&&"achlmqstvz".includes(e)})}function ia(t){return ra(t)&&t.every(function(t){t=t[0];return t===t.toUpperCase()})}function oa(t){return ia(t)&&t.every(function(t){t=t[0];return"ACLMQZ".includes(t)})}function aa(t){for(var e=t.pathValue[t.segmentStart],n=e.toLowerCase(),r=t.data;r.length>=na[n]&&("m"===n&&2<r.length?(t.segments.push([e].concat(r.splice(0,2))),n="l",e="m"===e?"l":"L"):t.segments.push([e].concat(r.splice(0,na[n]))),na[n]););}function sa(t){return 48<=t&&t<=57}function la(t){for(var e,n=t.pathValue,r=t.max;t.index<r&&(10===(e=n.charCodeAt(t.index))||13===e||8232===e||8233===e||32===e||9===e||11===e||12===e||160===e||5760<=e&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].includes(e));)t.index+=1}function ua(t){var e,n,r,i,o,a=t.max,s=t.pathValue,l=t.index,u=s.charCodeAt(l),c=na[s[l].toLowerCase()];if(t.segmentStart=l,function(t){switch(32|t){case 109:case 122:case 108:case 104:case 118:case 99:case 115:case 113:case 116:case 97:return 1;default:return}}(u)){if(t.index+=1,la(t),t.data=[],c)for(;;){for(var h=c;0<h;--h){if(97!=(32|u)||3!==h&&4!==h?function(t){var e,n,r=t.max,i=t.pathValue,o=t.index,a=o,s=!1,l=!1,u=!1;if(r<=a)t.err="[path-util]: Invalid path value at index "+a+', "pathValue" is missing param';else if(sa(n=43!==(n=i.charCodeAt(a))&&45!==n?n:i.charCodeAt(a+=1))||46===n){if(46!==n){if(e=48===n,n=i.charCodeAt(a+=1),e&&a<r&&n&&sa(n))return t.err="[path-util]: Invalid path value at index "+o+', "'+i[o]+'" illegal number';for(;a<r&&sa(i.charCodeAt(a));)a+=1,s=!0;n=i.charCodeAt(a)}if(46===n){for(u=!0,a+=1;sa(i.charCodeAt(a));)a+=1,l=!0;n=i.charCodeAt(a)}if(101===n||69===n){if(u&&!s&&!l)return t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" invalid float exponent';if(43!==(n=i.charCodeAt(a+=1))&&45!==n||(a+=1),!(a<r&&sa(i.charCodeAt(a))))return t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" invalid integer exponent';for(;a<r&&sa(i.charCodeAt(a));)a+=1}t.index=a,t.param=+t.pathValue.slice(o,a)}else t.err="[path-util]: Invalid path value at index "+a+', "'+i[a]+'" is not a number'}(t):(o=i=r=void 0,r=(n=t).index,i=n.pathValue,48===(o=i.charCodeAt(r))?(n.param=0,n.index+=1):49===o?(n.param=1,n.index+=1):n.err='[path-util]: invalid Arc flag "'+i[r]+'", expecting 0 or 1 at index '+r),t.err.length)return;t.data.push(t.param),la(t),t.index<a&&44===s.charCodeAt(t.index)&&(t.index+=1,la(t))}if(t.index>=t.max)break;if(!(48<=(e=s.charCodeAt(t.index))&&e<=57||43===e||45===e||46===e))break}aa(t)}else t.err='[path-util]: Invalid path value "'+s[l]+'" is not a path command'}var ca=function(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""};function ha(t){if(ia(t))return Qo(t);var t=function(t){if(ra(t))return Qo(t);var e=new ca(t);for(la(e);e.index<e.max&&!e.err.length;)ua(e);return e.err||e.segments}(t),a=0,s=0,l=0,u=0;return t.map(function(t){var e=t.slice(1).map(Number),t=t[0],n=t.toUpperCase();if("M"===t)return a=e[0],s=e[1],["M",l=a,u=s];if(t!==n)switch(n){case"A":i=[n,e[0],e[1],e[2],e[3],e[4],e[5]+a,e[6]+s];break;case"V":i=[n,e[0]+s];break;case"H":i=[n,e[0]+a];break;default:var r=e.map(function(t,e){return t+(e%2?s:a)}),i=[n].concat(r)}else i=[n].concat(e);var o=i.length;switch(n){case"Z":a=l,s=u;break;case"H":a=i[1];break;case"V":s=i[1];break;default:a=i[o-2],s=i[o-1],"M"===n&&(l=a,u=s)}return i})}function da(t){if(oa(t))return Qo(t);for(var e,n,r,i,o,a,s,l=ha(t),u=S({},ea),c=l.length,h=0;h<c;h+=1){l[h][0],l[h]=(e=l[h],n=u,s=a=f=o=d=i=r=void 0,r=e[0],i=n.x1,d=n.y1,o=n.x2,f=n.y2,a=e.slice(1).map(Number),s=e,"TQ".includes(r)||(n.qx=null,n.qy=null),"H"===r?s=["L",e[1],d]:"V"===r?s=["L",i,e[1]]:"S"===r?(e=2*d-f,s=["C",n.x1=2*i-o,n.y1=e].concat(a)):"T"===r?(f=2*i-n.qx,o=2*d-n.qy,s=["Q",n.qx=f,n.qy=o].concat(a)):"Q"===r&&(e=a[0],i=a[1],n.qx=e,n.qy=i),s);var d=l[h],f=d.length;u.x1=+d[f-2],u.y1=+d[f-1],u.x2=+d[f-4]||u.x1,u.y2=+d[f-3]||u.y1}return l}function fa(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}}function pa(t,e,n){var r=t[0],t=t[1];return[r+(e[0]-r)*n,t+(e[1]-t)*n]}function ya(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}function ga(t,e,n,r,i){var o=ya([t,e],[n,r]),a={x:0,y:0};return{length:o,point:a="number"==typeof i?i<=0?{x:t,y:e}:o<=i?{x:n,y:r}:{x:(i=pa([t,e],[n,r],i/o))[0],y:i[1]}:a,min:{x:Math.min(t,n),y:Math.min(e,r)},max:{x:Math.max(t,n),y:Math.max(e,r)}}}function va(t,e,n,r){var t=[t,e],e=[n,r],i=pa(t,e,.5),e=pa(e,i,.5),o=pa(i,e,.5),a=pa(e,o,.5),s=pa(o,a,.5),t=ga(t[0],t[1],i[0],i[1],o[0]).point,i=ga(s[0],s[1],a[0],a[1],e[0]).point;return[t.x,t.y,i.x,i.y,n,r]}function ma(t,e){var n,r,i,o,a,s,l=t[0],u=t.slice(1).map(Number),c=u[0],h=u[1],d=e.x1,f=e.y1,p=e.x,y=e.y;switch("TQ".includes(l)||(e.qx=null,e.qy=null),l){case"M":return e.x=c,e.y=h,t;case"A":return s=[d,f].concat(u),["C"].concat(function t(e,n,r,i,o,a,s,l,u,c){var h=120*Math.PI/180,d=Math.PI/180*(+o||0),f=[],p=(c?(x=c[0],w=c[1],m=c[2],b=c[3]):(e=(g=fa(e,n,-d)).x,n=g.y,1<(p=(y=(e-(l=(g=fa(l,u,-d)).x))/2)*y/(r*r)+(g=(n-(u=g.y))/2)*g/(i*i))&&(r*=p=Math.sqrt(p),i*=p),p=r*r,v=i*i,m=(a=(a===s?-1:1)*Math.sqrt(Math.abs((p*v-p*g*g-v*y*y)/(p*g*g+v*y*y))))*r*g/i+(e+l)/2,b=a*-i*y/r+(n+u)/2,x=Math.asin(((n-b)/i*Math.pow(10,9)>>0)/Math.pow(10,9)),w=Math.asin(((u-b)/i*Math.pow(10,9)>>0)/Math.pow(10,9)),x=e<m?Math.PI-x:x,w=l<m?Math.PI-w:w,x<0&&(x=2*Math.PI+x),w<0&&(w=2*Math.PI+w),s&&w<x&&(x-=2*Math.PI),!s&&x<w&&(w-=2*Math.PI)),w-x),y=(Math.abs(p)>h&&(v=w,g=l,a=u,w=x+h*(s&&x<w?1:-1),f=t(l=m+r*Math.cos(w),u=b+i*Math.sin(w),r,i,o,0,s,g,a,[w,v,m,b])),p=w-x,Math.cos(x)),h=Math.sin(x),o=Math.cos(w),s=Math.sin(w),g=Math.tan(p/4),a=4/3*r*g,v=4/3*i*g,m=[e,n],b=[e+a*h,n-v*y],x=[l+a*s,u-v*o],w=[l,u];if(b[0]=2*m[0]-b[0],b[1]=2*m[1]-b[1],c)return b.concat(x,w,f);for(var k=[],E=0,_=(f=b.concat(x,w,f)).length;E<_;E+=1)k[E]=E%2?fa(f[E-1],f[E],d).y:fa(f[E],f[E+1],d).x;return k}(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],s[9]));case"Q":return e.qx=c,e.qy=h,s=[d,f].concat(u),["C"].concat((n=s[0],r=s[1],i=s[2],o=s[3],a=s[4],s=s[5],[1/3*n+2/3*i,1/3*r+2/3*o,1/3*a+2/3*i,1/3*s+2/3*o,a,s]));case"L":return["C"].concat(va(d,f,c,h));case"Z":return d===p&&f===y?["C",d,f,p,y,p,y]:["C"].concat(va(d,f,p,y))}return t}function ba(t,e){var n;if(void 0===e&&(e=!1),oa(n=t)&&n.every(function(t){t=t[0];return"MC".includes(t)}))return n=Qo(t),e?[n,[]]:n;for(var r,i=da(t),o=S({},ea),a=[],s="",l=i.length,u=[],c=0;c<l;c+=1){i[c]&&(s=i[c][0]),a[c]=s;var h=ma(i[c],o),d=(i[c]=h,g=y=p=f=d=void 0,i),f=a,p=c;if(7<d[p].length){d[p].shift();for(var y=d[p],g=p;y.length;)f[p]="A",d.splice(g+=1,0,["C"].concat(y.splice(0,6)));d.splice(p,1)}l=i.length,"Z"===s&&u.push(c),r=(h=i[c]).length,o.x1=+h[r-2],o.y1=+h[r-1],o.x2=+h[r-4]||o.x1,o.y2=+h[r-3]||o.y1}return e?[i,u]:i}function xa(t,e){var n=t.x,t=t.y,r=e.x,e=e.y,i=n*r+t*e,o=Math.sqrt((Math.pow(n,2)+Math.pow(t,2))*(Math.pow(r,2)+Math.pow(e,2)));return(n*e-t*r<0?-1:1)*Math.acos(i/o)}function wa(t,e,n,r,i,o,a,s,l,u){for(var c="number"==typeof u,h=0,d=[m=t,b=e,h],f=[m,b],p={x:0,y:0},y=[{x:m,y:b}],g=(c&&u<=0&&(p={x:m,y:b}),0);g<=100;g+=1){var v,m=(v=function(t,e,n,r,i,o,a,s,l,u){var c=Math.abs,h=Math.sin,d=Math.cos,f=Math.sqrt,p=Math.PI,n=c(n),c=c(r),r=p/180*((i%360+360)%360);if(t===s&&e===l)return{x:t,y:e};if(0===n||0===c)return ga(t,e,s,l,u).point;var i=(t-s)/2,y=(e-l)/2,i={x:d(r)*i+h(r)*y,y:-h(r)*i+d(r)*y};return 1<(y=Math.pow(i.x,2)/Math.pow(n,2)+Math.pow(i.y,2)/Math.pow(c,2))&&(n*=f(y),c*=f(y)),y=(Math.pow(n,2)*Math.pow(c,2)-Math.pow(n,2)*Math.pow(i.y,2)-Math.pow(c,2)*Math.pow(i.x,2))/(Math.pow(n,2)*Math.pow(i.y,2)+Math.pow(c,2)*Math.pow(i.x,2)),o=(o!==a?1:-1)*f(y=y<0?0:y),f=n*i.y/c*o,y=-c*i.x/n*o,o=d(r)*f-h(r)*y+(t+s)/2,t=h(r)*f+d(r)*y+(e+l)/2,e=xa({x:1,y:0},s={x:(i.x-f)/n,y:(i.y-y)/c}),l=xa(s,{x:(-i.x-f)/n,y:(-i.y-y)/c}),!a&&0<l?l-=2*p:a&&l<0&&(l+=2*p),s=e+(l%=2*p)*u,f=n*d(s),i=c*h(s),{x:d(r)*f-h(r)*i+o,y:h(r)*f+d(r)*i+t}}(t,e,n,r,i,o,a,s,l,g/100)).x,b=v.y,y=y.concat({x:m,y:b});h+=ya(f,[m,b]),f=[m,b],c&&u<=h&&u>d[2]&&(v=(h-u)/(h-d[2]),p={x:f[0]*(1-v)+d[0]*v,y:f[1]*(1-v)+d[1]*v}),d=[m,b,h]}return{length:h,point:p=c&&h<=u?{x:s,y:l}:p,min:{x:Math.min.apply(null,y.map(function(t){return t.x})),y:Math.min.apply(null,y.map(function(t){return t.y}))},max:{x:Math.max.apply(null,y.map(function(t){return t.x})),y:Math.max.apply(null,y.map(function(t){return t.y}))}}}function ka(t,e,n,r,i,o,a,s,l){for(var u,c,h,d,f,p,y,g,v,m,b="number"==typeof l,x=t,w=e,k=0,E=[x,w,k],_=[x,w],S={x:0,y:0},M=[{x:x,y:w}],T=(b&&l<=0&&(S={x:x,y:w}),0);T<=30;T+=1)u=t,c=e,h=n,d=r,f=i,p=o,y=a,g=s,m=void 0,m=1-(v=T/30),u={x:Math.pow(m,3)*u+3*Math.pow(m,2)*v*h+3*m*Math.pow(v,2)*f+Math.pow(v,3)*y,y:Math.pow(m,3)*c+3*Math.pow(m,2)*v*d+3*m*Math.pow(v,2)*p+Math.pow(v,3)*g},M=M.concat({x:x=u.x,y:w=u.y}),k+=ya(_,[x,w]),_=[x,w],b&&l<=k&&l>E[2]&&(h=(k-l)/(k-E[2]),S={x:_[0]*(1-h)+E[0]*h,y:_[1]*(1-h)+E[1]*h}),E=[x,w,k];return{length:k,point:S=b&&k<=l?{x:a,y:s}:S,min:{x:Math.min.apply(null,M.map(function(t){return t.x})),y:Math.min.apply(null,M.map(function(t){return t.y}))},max:{x:Math.max.apply(null,M.map(function(t){return t.x})),y:Math.max.apply(null,M.map(function(t){return t.y}))}}}function Ea(t,e,n,r,i,o,a){for(var s,l,u,c,h,d,f,p,y="number"==typeof a,g=t,v=e,m=0,b=[g,v,m],x=[g,v],w={x:0,y:0},k=[{x:g,y:v}],E=(y&&a<=0&&(w={x:g,y:v}),0);E<=30;E+=1)s=t,l=e,u=n,c=r,h=i,d=o,p=void 0,p=1-(f=E/30),s={x:Math.pow(p,2)*s+2*p*f*u+Math.pow(f,2)*h,y:Math.pow(p,2)*l+2*p*f*c+Math.pow(f,2)*d},k=k.concat({x:g=s.x,y:v=s.y}),m+=ya(x,[g,v]),x=[g,v],y&&a<=m&&a>b[2]&&(u=(m-a)/(m-b[2]),w={x:x[0]*(1-u)+b[0]*u,y:x[1]*(1-u)+b[1]*u}),b=[g,v,m];return{length:m,point:w=y&&m<=a?{x:i,y:o}:w,min:{x:Math.min.apply(null,k.map(function(t){return t.x})),y:Math.min.apply(null,k.map(function(t){return t.y}))},max:{x:Math.max.apply(null,k.map(function(t){return t.x})),y:Math.max.apply(null,k.map(function(t){return t.y}))}}}function _a(t,e){for(var n,r,i,o=da(t),a="number"==typeof e,s=[],l=0,u=0,c=0,h=0,d=[],f=[],p=0,y={x:0,y:0},g=y,v=y,m=y,b=0,x=0,w=o.length;x<w;x+=1)s=(n="M"===(r=(i=o[x])[0]))?s:[l,u].concat(i.slice(1)),n?(g=y={x:c=i[1],y:h=i[2]},p=0,a&&e<.001&&(m=y)):"L"===r?(p=(n=ga(s[0],s[1],s[2],s[3],(e||0)-b)).length,y=n.min,g=n.max,v=n.point):"A"===r?(p=(n=wa(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],s[8],(e||0)-b)).length,y=n.min,g=n.max,v=n.point):"C"===r?(p=(n=ka(s[0],s[1],s[2],s[3],s[4],s[5],s[6],s[7],(e||0)-b)).length,y=n.min,g=n.max,v=n.point):"Q"===r?(p=(n=Ea(s[0],s[1],s[2],s[3],s[4],s[5],(e||0)-b)).length,y=n.min,g=n.max,v=n.point):"Z"===r&&(p=(n=ga((s=[l,u,c,h])[0],s[1],s[2],s[3],(e||0)-b)).length,y=n.min,g=n.max,v=n.point),a&&b<e&&e<=b+p&&(m=v),f.push(g),d.push(y),b+=p,l=(n="Z"!==r?i.slice(-2):[c,h])[0],u=n[1];return{length:b,point:m=a&&b<=e?{x:l,y:u}:m,min:{x:Math.min.apply(null,d.map(function(t){return t.x})),y:Math.min.apply(null,d.map(function(t){return t.y}))},max:{x:Math.max.apply(null,f.map(function(t){return t.x})),y:Math.max.apply(null,f.map(function(t){return t.y}))}}}function Sa(t){return(u=l=s=0)<=ba(t).map(function(t){if("M"===t[0])return s=t[1],l=t[2],0;var e=t.slice(1),n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],e=e[5];return u=3*((e-l)*(n+i)-(a-s)*(r+o)+r*(s-i)-n*(l-o)+e*(i+s/3)-a*(o+l/3))/20,r=t.slice(-2),s=r[0],l=r[1],u}).reduce(function(t,e){return t+e},0);var s,l,u}function Ma(t){return t.map(function(t,e,n){var r,i,o,a,n=e&&n[e-1].slice(-2).concat(t.slice(1)),s=e?ka(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8]).length:0,n=e?s?(void 0===r&&(r=.5),n=(e=n).slice(0,2),i=e.slice(2,4),o=e.slice(4,6),e=e.slice(6,8),n=pa(n,i,r),i=pa(i,o,r),o=pa(o,e,r),a=pa(n,i,r),i=pa(i,o,r),r=pa(a,i,r),[["C"].concat(n,a,r),["C"].concat(i,o,e)]):[t,t]:[t];return{s:t,ss:n,l:s}})}function Ta(t,e,n,r){t-=n,n=e-r;return Math.sqrt(t*t+n*n)}function Oa(t,e){var n=Math.min.apply(Math,t),r=Math.min.apply(Math,e);return{x:n,y:r,width:Math.max.apply(Math,t)-n,height:Math.max.apply(Math,e)-r}}var Pa={box:function(t,e,n,r){return Oa([t,n],[e,r])},length:Ta,pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?Ta(t,e,i,o):(n-t)*(n-t)+(r-e)*(r-e)<a?Ta(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){n=[n-t,r-e];if((r=n)[0]===(a=[0,0])[0]&&r[1]===a[1])return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var r=[-n[1],n[0]],a=(bo(r,r),[i-t,o-e]);return Math.abs(a[0]*r[0]+a[1]*r[1])},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function Aa(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],o=t[r+1],a=Ta(i[0],i[1],o[0],o[1]);n.push({from:i,to:o,length:a}),e+=a}return{segments:n,totalLength:e}}var Ca={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return Oa(e,n)},length:function(t){var e=t;if(e.length<2)return 0;for(var n=0,r=0;r<e.length-1;r++){var i=e[r],o=e[r+1];n+=Ta(i[0],i[1],o[0],o[1])}return n},pointAt:function(t,e){var n=e;if(1<n||n<0||t.length<2)return null;var e=Aa(t),r=e.segments,i=e.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,l=l.length/i;if(o<=n&&n<=o+l){a=Pa.pointAt(u[0],u[1],c[0],c[1],(n-o)/l);break}o+=l}return a},pointDistance:function(t,e,n){for(var r=t,i=e,o=n,a=1/0,s=0;s<r.length-1;s++){var l=r[s],u=r[s+1],l=Pa.pointDistance(l[0],l[1],u[0],u[1],i,o);l<a&&(a=l)}return a},tangentAngle:function(t,e){var n=e;if(1<n||n<0||t.length<2)return 0;for(var r=(t=Aa(t)).segments,i=t.totalLength,o=0,a=0,s=0;s<r.length;s++){var l=r[s],u=l.from,c=l.to,l=l.length/i;if(o<=n&&n<=o+l){a=Math.atan2(c[1]-u[1],c[0]-u[0]);break}o+=l}return a}};var Na,La,Ia=function(t,e){var n=e[15];if(0===n)return!1;for(var r=1/n,i=0;i<16;i++)t[i]=e[i]*r;return!0},W=function(){var t=new Float32Array(16);return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=1,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=0,t[13]=0,t[14]=0,t[15]=1,t},Ra=function(t){var e=new Float32Array(16);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},Da=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],y=t[14],t=t[15];return(e*a-n*o)*(h*t-d*y)-(e*s-r*o)*(c*t-d*p)+(e*l-i*o)*(c*y-h*p)+(n*s-r*a)*(u*t-d*f)-(n*l-i*a)*(u*y-h*f)+(r*l-i*s)*(u*p-c*f)},ja=function(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],s=e[5],l=e[6],u=e[7],c=e[8],h=e[9],d=e[10],f=e[11],p=e[12],y=e[13],g=e[14],e=e[15],v=n*s-r*a,m=n*l-i*a,b=n*u-o*a,x=r*l-i*s,w=r*u-o*s,k=i*u-o*l,E=c*y-h*p,_=c*g-d*p,S=c*e-f*p,M=h*g-d*y,T=h*e-f*y,O=d*e-f*g,P=v*O-m*T+b*M+x*S-w*_+k*E;return P?(P=1/P,t[0]=(s*O-l*T+u*M)*P,t[1]=(i*T-r*O-o*M)*P,t[2]=(y*k-g*w+e*x)*P,t[3]=(d*w-h*k-f*x)*P,t[4]=(l*S-a*O-u*_)*P,t[5]=(n*O-i*S+o*_)*P,t[6]=(g*b-p*k-e*m)*P,t[7]=(c*k-d*b+f*m)*P,t[8]=(a*T-s*S+u*E)*P,t[9]=(r*S-n*T-o*E)*P,t[10]=(p*w-y*b+e*v)*P,t[11]=(h*b-c*w-f*v)*P,t[12]=(s*_-a*M-l*E)*P,t[13]=(n*M-r*_+i*E)*P,t[14]=(y*m-p*x-g*v)*P,t[15]=(c*x-h*m+d*v)*P,t):null},Ba=function(t,e){{var n,r,i,o,a,s;t===e?(n=e[1],r=e[2],i=e[3],o=e[6],a=e[7],s=e[11],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=n,t[6]=e[9],t[7]=e[13],t[8]=r,t[9]=o,t[11]=e[14],t[12]=i,t[13]=a,t[14]=s):(t[0]=e[0],t[1]=e[4],t[2]=e[8],t[3]=e[12],t[4]=e[1],t[5]=e[5],t[6]=e[9],t[7]=e[13],t[8]=e[2],t[9]=e[6],t[10]=e[10],t[11]=e[14],t[12]=e[3],t[13]=e[7],t[14]=e[11],t[15]=e[15])}return t},Fa={length:function(t){var e=t[0],n=t[1],t=t[2];return Math.sqrt(e*e+n*n+t*t)},normalize:function(t,e){var n=e[0],r=e[1],i=e[2],n=n*n+r*r+i*i;0<n&&(n=1/Math.sqrt(n),t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n);return t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},cross:function(t,e,n){var r=e[0],i=e[1],e=e[2],o=n[0],a=n[1],n=n[2];return t[0]=i*n-e*a,t[1]=e*o-r*n,t[2]=r*a-i*o,t}},za=W(),Va=W(),Ga=[0,0,0,0],y=[[0,0,0],[0,0,0],[0,0,0]],Ha=[0,0,0];function Wa(t,e,n,r,i){t[0]=e[0]*r+n[0]*i,t[1]=e[1]*r+n[1]*i,t[2]=e[2]*r+n[2]*i}let Ua=1;const Ya="object"==typeof self&&self.self==self?self:"object"==typeof Yn&&Yn.global==Yn?Yn:{},qa=Date.now();let Xa={},Za=Date.now();const Ka=t=>"string"!=typeof t?t=>{if("function"!=typeof t)throw new TypeError(t+" is not a function");const n=Date.now(),e=n-Za,r=16<e?0:16-e,i=Ua++;return Xa[i]=t,1<Object.keys(Xa).length||setTimeout(()=>{Za=n;const e=Xa;Xa={},Object.keys(e).forEach(t=>e[t](Ya.performance&&"function"==typeof Ya.performance.now?Ya.performance.now():Date.now()-qa))},r),i}:""===t?Ya.requestAnimationFrame:Ya[t+"RequestAnimationFrame"],$a=((t,e)=>{let n=0;for(;void 0!==t[n];){if(e(t[n]))return t[n];n+=1}})(["","webkit","moz","ms","o"],t=>!!Ka(t)),Ja=Ka($a),Qa="string"!=typeof(pt=$a)?t=>{delete Xa[t]}:""===pt?Ya.cancelAnimationFrame:Ya[pt+"CancelAnimationFrame"]||Ya[pt+"CancelRequestAnimationFrame"];function _(){_=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function f(){}var e={},p=(o(e,r,function(){return this}),Object.getPrototypeOf),p=p&&p(p(w([]))),y=(p&&p!==t&&l.call(p,r)&&(e=p),f.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function v(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=f),o(f,"constructor",d),d.displayName=o(f,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(v.prototype),o(v.prototype,n,function(){return this}),a.AsyncIterator=v,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new v(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function ts(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function es(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){ts(r,e,n,i,o,"next",t)}function o(t){ts(r,e,n,i,o,"throw",t)}i(void 0)})}}function ns(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function rs(t,e,n){e&&ns(t.prototype,e),n&&ns(t,n),Object.defineProperty(t,"prototype",{writable:!1})}function is(){return(is=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function g(t,e){t.prototype=Object.create(e.prototype),os(t.prototype.constructor=t,e)}function os(t,e){return(os=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function as(t,e,n){return(as=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),1}catch(t){}}}()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);e=new(Function.bind.apply(t,r));return n&&os(e,n.prototype),e}).apply(null,arguments)}function ss(t,e){if(null==t)return{};for(var n,r={},i=Object.keys(t),o=0;o<i.length;o++)n=i[o],0<=e.indexOf(n)||(r[n]=t[n]);return r}function ls(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function us(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function cs(t,e){var n,r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(r)return(r=r.call(t)).next.bind(r);if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return us(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Map"===(n="Object"===n&&t.constructor?t.constructor.name:n)||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?us(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length)return r&&(t=r),n=0,function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Ya.requestAnimationFrame=Ja,Ya.cancelAnimationFrame=Qa,"undefined"!=typeof module&&module.exports&&(module.exports={requestAnimationFrame:Ja,cancelAnimationFrame:Qa}),(Q=Na=Na||{}).Layout="layout",Q.IntrinsicSizes="intrinsic-sizes",(s=La=La||{}).LAYOUT="display",s.LEFT="left",s.TOP="top",s.BOTTOM="bottom",s.RIGHT="right",s.WIDTH="width",s.HEIGHT="height",s.MIN_WIDTH="minWidth",s.MAX_WIDTH="maxWidth",s.MIN_HEIGHT="minHeight",s.MAX_HEIGHT="maxHeight",s.BOX_SIZING="boxSizing",s.PADDING="padding",s.PADDING_TOP="paddingTop",s.PADDING_BOTTOM="paddingBottom",s.PADDING_START="paddingLeft",s.PADDING_END="paddingRight",s.MARGIN="margin",s.MARGIN_TOP="marginTop",s.MARGIN_BOTTOM="marginBottom",s.MARGIN_START="marginLeft",s.MARGIN_END="marginRight",s.BORDER="border",s.BORDER_TOP="borderTop",s.BORDER_BOTTOM="borderBottom",s.BORDER_START="borderLeft",s.BORDER_END="borderRight",s.FLEX_DIRECTION="flexDirection",s.FLEX_WRAP="flexWrap",s.FLEX_FLOW="flexFlow",s.ALIGN_ITEMS="alignItems",s.ALIGN_CONTENT="alignContent",s.JUSTIFY_CONTENT="justifyContent",s.FLEX="flex",s.ALIGN_SELF="alignSelf",s.FLEX_SHRINK="flexShrink",s.FLEX_BASIS="flexBasis",s.FLEX_GROW="flexGrow",s.OFFSET_WIDTH="offsetWidth",s.OFFSET_HEIGHT="offsetHeight",s.ORDER="order";var hs=1,ge=function(){function t(t){void 0===t&&(t=new Map),this.id=void 0,this.style=void 0,this.dirty=void 0,this.parent=void 0,this.children=void 0,this.internalIntrisicSizes=void 0,this.computedLayout=void 0,this.measureFn=void 0,this.id=hs++,this.style=t,this.parent=void 0,this.children=[],this.dirty=!1}var e=t.prototype;return e.setMeasure=function(t){this.measureFn=t},e.setIntrisicSizes=function(t){this.internalIntrisicSizes=t},e.addChild=function(t){var e;null!=(e=this.children)&&e.push(t)},e.insertChild=function(t,e){this.children.splice(t,0,e)},e.removeChild=function(e){var t=null==(t=this.children)?void 0:t.findIndex(function(t){return t.id===e.id});this.removeChildAtIndex(t)},e.removeChildAtIndex=function(t){this.children.splice(t,1)},e.replaceChildAtIndex=function(t,e){this.children.splice(t,1,e)},e.setStyle=function(t,e){this.style.set(t,e)},e.getStyle=function(){for(var n=this,r=new Map,t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return e.forEach(function(t){var e=n.style.get(t);e&&r.set(t,e)}),r},e.getAllStyle=function(){return this.style},e.markDirty=function(){this.dirty=!0},e.idDirty=function(){return this.dirty},e.getSize=function(){var t;return{width:null!=(t=null==(t=this.style.get(La.WIDTH))?void 0:t.value)?t:0,height:null!=(t=null==(t=this.style.get(La.HEIGHT))?void 0:t.value)?t:0}},e.computeLayout=function(){var t=es(_().mark(function t(){var e;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.getSize(),t.next=3,Hf.computeLayout(this,{availableInlineSize:e.width,availableBlockSize:e.height,fixedInlineSize:e.width,fixedBlockSize:e.height,percentageInlineSize:e.width,percentageBlockSize:e.height,data:void 0});case 3:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.setComputedLayout=function(t){this.computedLayout=t},e.getComputedLayout=function(){return this.computedLayout},e.getAllComputedLayout=function(){},e.toString=function(){return"LayoutObject "+this.id},rs(t,[{key:"intrisicSizes",get:function(){return this.internalIntrisicSizes}},{key:"childCount",get:function(){return this.children.length}}]),t}(),ds=d.defineToken("LayoutContextFactory"),fs=d.defineToken("LayoutContextOptions"),ps=0,ys=function(){function t(t){this.options=void 0,this.contextId=void 0,this.workQueue=[],this.mode=void 0,this.layoutChildrenFactory=void 0,this.fragmentResultFactory=void 0,this.layoutFragmentFactory=void 0,this.options=t,this.contextId=""+ps++,this.mode=t.mode,this.layoutChildrenFactory=t.layoutChildrenFactory,this.fragmentResultFactory=t.fragmentResultFactory,this.layoutFragmentFactory=t.layoutFragmentFactory}var e=t.prototype;return e.appendWorkTask=function(t){this.workQueue.push(t)},e.clearWorkQueue=function(){this.workQueue=[]},t}(),ys=t([f(),D(0,p(fs)),e("design:paramtypes",[Object])],ys),gs=d.defineToken("FragmentResultFactory"),vs=d.defineToken("FragmentResultOptions"),ms=d.defineToken("contextNode"),bs=function(t,e,n){this._layoutContext=void 0,this._node=void 0,this.options=void 0,this.layoutContext=void 0,this.inlineSize=void 0,this.blockSize=void 0,this.node=void 0,this.childFragments=void 0,this.data=void 0,this._layoutContext=t,this._node=e,this.options=n,this.layoutContext=t,this.inlineSize=null==n?void 0:n.inlineSize,this.blockSize=null==n?void 0:n.blockSize,this.childFragments=null==n?void 0:n.childFragments,this.data=n.data,this.node=e};function xs(t){if(!t)throw new Error}function ws(t,e){if(t===e)throw new Error}function ks(t){return void 0===t}function T(t){return null==t}function Es(t){return"number"==typeof t}function _s(t){return"function"==typeof t}function Ss(t){return"boolean"==typeof t}function Ms(t){return"[object Object]"===Object.prototype.toString.call(t)}var bs=t([Mr(),D(0,p(ys)),D(1,p(ms)),D(2,p(vs)),e("design:paramtypes",[ys,ge,Object])],bs),Ts={},Os=0;function Ps(b,e,x,n){if(!(0<=b&&b<=1&&0<=x&&x<=1))throw new Error("bezier x values must be in [0, 1] range");if(b===e&&x===n)return function(t){return t};for(var w=new(Is?Float32Array:Array)(11),t=0;t<11;++t)w[t]=Bs(.1*t,b,x);function r(t){for(var e=0,n=1;10!==n&&w[n]<=t;++n)e+=.1;var r=e+.1*((t-w[--n])/(w[n+1]-w[n])),i=Fs(r,b,x);if(.001<=i){for(var o=t,a=r,s=b,l=x,u=0;u<Cs;++u){var c=Fs(a,s,l);if(0===c)return a;a-=(Bs(a,s,l)-o)/c}return a}if(0===i)return r;for(var h,d,f=t,p=e,y=e+.1,g=b,v=x,m=0;0<(h=Bs(d=p+(y-p)/2,g,v)-f)?y=d:p=d,Math.abs(h)>Ns&&++m<Ls;);return d}return function(t){return 0===t||1===t?t:Bs(r(t),e,n)}}var As="undefined"!=typeof window&&void 0!==window.document,Cs=4,Ns=1e-7,Ls=10,Is="function"==typeof Float32Array,Rs=function(t,e){return 1-3*e+3*t},Ds=function(t,e){return 3*e-6*t},js=function(t){return 3*t},Bs=function(t,e,n){return((Rs(e,n)*t+Ds(e,n))*t+js(e))*t},Fs=function(t,e,n){return 3*Rs(e,n)*t*t+2*Ds(e,n)*t+js(e)};function zs(t,e,n){return n?Math.min(t,e)===t?e:Math.max(t,n)===t?n:t:Math.max(t,e)===e?t:e}function Vs(t){return void 0===t?0:360<t||t<-360?t%360:t}function Gs(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=0),Es(t)?E(t,e,n):Array.isArray(t)&&3===t.length?Fi(t):E(t[0],t[1]||e,t[2]||n)}function Hs(t){return t*(Math.PI/180)}function Ws(t){return t*(180/Math.PI)}function Us(t,e){return 16===e.length?(n=t,r=e,a=.5*Math.PI,s=(u=Pi(v(),r))[0],l=u[1],u=u[2],(c=Math.asin(-r[2]/s))<a?-a<c?(i=Math.atan2(r[6]/l,r[10]/u),o=Math.atan2(r[1]/s,r[0]/s)):(o=0,i=-Math.atan2(r[4]/l,r[5]/l)):(o=0,i=Math.atan2(r[4]/l,r[5]/l)),n[0]=i,n[1]=c,n[2]=o,n):(a=t,s=(u=e)[0],r=u[1],l=u[2],u=u[3],.499995*(n=s*s+(i=r*r)+(c=l*l)+(o=u*u))<(t=s*u-r*l)?(a[0]=Math.PI/2,a[1]=2*Math.atan2(r,s),a[2]=0):t<-.499995*n?(a[0]=-Math.PI/2,a[1]=2*Math.atan2(r,s),a[2]=0):(a[0]=Math.asin(2*(s*l-u*r)),a[1]=Math.atan2(2*(s*u+r*l),1-2*(c+o)),a[2]=Math.atan2(2*(s*r+l*u),1-2*(i+c))),a);var n,r,i,o,a,s,l,u,c}function Ys(t,e,n,r,i){var o,a,s,l,u=Math.cos(t),t=Math.sin(t);return o=r*u,a=i*t,r=-r*t,t=i*u,u=i=0,e=e,n=n,s=1,(l=new di(9))[0]=o,l[1]=a,l[2]=i,l[3]=r,l[4]=t,l[5]=u,l[6]=e,l[7]=n,l[8]=s,l}function qs(t){var e=t[0],n=t[1],r=t[3],i=t[4],o=Math.sqrt(e*e+n*n),a=Math.sqrt(r*r+i*i);e*i-n*r<0&&(e<i?o=-o:a=-a),o&&(e*=1/o,n*=1/o),a&&(i*=1/a);r=Ws(Math.atan2(n,e));return[t[6],t[7],o,a,r]}function Xs(t){return Math.pow(t,2)}function Zs(t){return Math.pow(t,3)}function Ks(t){return Math.pow(t,4)}function $s(t){return Math.pow(t,5)}function Js(t){return Math.pow(t,6)}function Qs(t){return 1-Math.cos(t*Math.PI/2)}function tl(t){return 1-Math.sqrt(1-t*t)}function el(t){return t*t*(3*t-2)}function nl(t){for(var e,n=4;t<((e=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((3*e-2)/22-t,2)}function rl(t,e){var n=(e=e=void 0===e?[]:e)[0],e=void 0===(e=e[1])?.5:e,n=zs(Number(void 0===n?1:n),1,10),e=zs(Number(e),.1,2);return 0===t||1===t?t:-n*Math.pow(2,10*(t-1))*Math.sin((t-1-e/(2*Math.PI)*Math.asin(1/n))*(2*Math.PI)/e)}function il(t,e,n){var r=(e=e=void 0===e?[]:e)[0],i=void 0===(i=e[1])?100:i,o=void 0===(o=e[2])?10:o,e=void 0===(e=e[3])?0:e,r=zs(void 0===r?1:r,.1,1e3),i=zs(i,.1,1e3),o=zs(o,.1,1e3),e=zs(e,.1,1e3),a=Math.sqrt(i/r),i=(o=o/(2*Math.sqrt(i*r)))<1?a*Math.sqrt(1-o*o):0,r=o<1?(o*a-e)/i:-e+a,e=n?n*t/1e3:t,e=o<1?Math.exp(-e*o*a)*(+Math.cos(i*e)+r*Math.sin(i*e)):(1+r*e)*Math.exp(-e*a);return 0===t||1===t?t:1-e}function ol(t,e){var e=e=void 0===e?[]:e,n=void 0===(n=e[0])?10:n;return("start"==e[1]?Math.ceil:Math.floor)(zs(t,0,1)*n)/n}function al(t,e){var n=(e=e=void 0===e?[]:e)[0],r=e[1],i=e[2],e=e[3];return Ps(n,r,i,e)(t)}function sl(r){return function(t,e,n){return 1-r(1-t,e=void 0===e?[]:e,n)}}function ll(r){return function(t,e,n){return void 0===e&&(e=[]),t<.5?r(2*t,e,n)/2:1-r(-2*t+2,e,n)/2}}function ul(r){return function(t,e,n){return void 0===e&&(e=[]),t<.5?(1-r(1-2*t,e,n))/2:(r(2*t-1,e,n)+1)/2}}function cl(){var n=this;this.resolve=void 0,this.reject=void 0,this.promise=new Promise(function(t,e){n.resolve=t,n.reject=e})}var c=Ps(.42,0,1,1),hl={steps:ol,"step-start":function(t){return ol(t,[1,"start"])},"step-end":function(t){return ol(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":al,ease:function(t){return al(t,[.25,.1,.25,1])},in:c,out:sl(c),"in-out":ll(c),"out-in":ul(c),"in-quad":Xs,"out-quad":sl(Xs),"in-out-quad":ll(Xs),"out-in-quad":ul(Xs),"in-cubic":Zs,"out-cubic":sl(Zs),"in-out-cubic":ll(Zs),"out-in-cubic":ul(Zs),"in-quart":Ks,"out-quart":sl(Ks),"in-out-quart":ll(Ks),"out-in-quart":ul(Ks),"in-quint":$s,"out-quint":sl($s),"in-out-quint":ll($s),"out-in-quint":ul($s),"in-expo":Js,"out-expo":sl(Js),"in-out-expo":ll(Js),"out-in-expo":ul(Js),"in-sine":Qs,"out-sine":sl(Qs),"in-out-sine":ll(Qs),"out-in-sine":ul(Qs),"in-circ":tl,"out-circ":sl(tl),"in-out-circ":ll(tl),"out-in-circ":ul(tl),"in-back":el,"out-back":sl(el),"in-out-back":ll(el),"out-in-back":ul(el),"in-bounce":nl,"out-bounce":sl(nl),"in-out-bounce":ll(nl),"out-in-bounce":ul(nl),"in-elastic":rl,"out-elastic":sl(rl),"in-out-elastic":ll(rl),"out-in-elastic":ul(rl),spring:il,"spring-in":il,"spring-out":sl(il),"spring-in-out":ll(il),"spring-out-in":ul(il)},dl=function(t){return("-"===(t=(t=t).replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})).charAt(0)?t.substring(1):t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()};function fl(t,e){if(As)return document.defaultView.getComputedStyle(t,null).getPropertyValue(e)}var pl={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"};yl={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},gl="";var yl,gl,vl=function(t){return gl=t,bl()};function ml(t){throw new Error(gl+": "+t)}function bl(){var t=Pl(xl);return 0<gl.length&&ml("Invalid input not EOF"),t}function xl(){return wl("linear-gradient",yl.linearGradient,El)||wl("repeating-linear-gradient",yl.repeatingLinearGradient,El)||wl("radial-gradient",yl.radialGradient,_l)||wl("repeating-radial-gradient",yl.repeatingRadialGradient,_l)||wl("conic-gradient",yl.conicGradient,_l)}function wl(n,t,r){return kl(t,function(t){var e=r();return e&&!Rl(yl.comma)&&ml("Missing comma before color stops"),{type:n,orientation:e,colorStops:Pl(Al)}})}function kl(t,e){t=Rl(t);if(t)return Rl(yl.startCall)||ml("Missing ("),e=e(t),Rl(yl.endCall)||ml("Missing )"),e}function El(){return Il("directional",yl.sideOrCorner,1)||Il("angular",yl.angleValue,1)}function _l(){var t,e,n=Sl();return n&&((t=[]).push(n),e=gl,Rl(yl.comma)&&((n=Sl())?t.push(n):gl=e)),t}function Sl(){var t,e=function(){var t=Il("shape",/^(circle)/i,0);t&&(t.style=Ll()||Ml());return t}()||function(){var t=Il("shape",/^(ellipse)/i,0);t&&(t.style=Nl()||Ml());return t}();return e?e.at=Tl():(t=Ml())?(e=t,(t=Tl())&&(e.at=t)):(t=Ol())&&(e={type:"default-radial",at:t}),e}function Ml(){return Il("extent-keyword",yl.extentKeywords,1)}function Tl(){var t;if(Il("position",/^at/,0))return(t=Ol())||ml("Missing positioning value"),t}function Ol(){var t={x:Nl(),y:Nl()};if(t.x||t.y)return{type:"position",value:t}}function Pl(t){var e=t(),n=[];if(e)for(n.push(e);Rl(yl.comma);)(e=t())?n.push(e):ml("One extra comma");return n}function Al(){var t=Il("hex",yl.hexColor,1)||kl(yl.rgbaColor,function(){return{type:"rgba",value:Pl(Cl)}})||kl(yl.rgbColor,function(){return{type:"rgb",value:Pl(Cl)}})||Il("literal",yl.literalColor,0);return t||ml("Expected color definition"),t.length=Nl(),t}function Cl(){return Rl(yl.number)[1]}function Nl(){return Il("%",yl.percentageValue,1)||Il("position-keyword",yl.positionKeywords,1)||Ll()}function Ll(){return Il("px",yl.pixelValue,1)||Il("em",yl.emValue,1)}function Il(t,e,n){e=Rl(e);if(e)return{type:t,value:e[n]}}function Rl(t){var e=/^[\n\r\t\s]+/.exec(gl),e=(e&&Dl(e[0].length),t.exec(gl));return e&&Dl(e[0].length),e}function Dl(t){gl=gl.substring(t)}(a=b=b||{}).COORDINATE="<coordinate>",a.COLOR="<color>",a.PAINT="<paint>",a.NUMBER="<number>",a.ANGLE="<angle>",a.OPACITY_VALUE="<opacity-value>",a.SHADOW_BLUR="<shadow-blur>",a.LENGTH="<length>",a.PERCENTAGE="<percentage>",a.LENGTH_PERCENTAGE="<length> | <percentage>",a.LENGTH_PERCENTAGE_12="[<length> | <percentage>]{1,2}",a.LENGTH_PERCENTAGE_14="[<length> | <percentage>]{1,4}",a.LIST_OF_POINTS="<list-of-points>",a.PATH="<path>",a.FILTER="<filter>",a.Z_INDEX="<z-index>",a.OFFSET_PATH="<offset-path>",a.OFFSET_DISTANCE="<offset-distance>",a.CLIP_PATH="<clip-path>",a.MARKER="<marker>",a.TRANSFORM="<transform>",a.TRANSFORM_ORIGIN="<transform-origin>",a.TEXT="<text>",a.TEXT_TRANSFORM="<text-transform>";function jl(t){return t}var Bl=d.defineToken("StyleValueRegistry");function Fl(n,r){return function(t){if(1<=t)return 1;var e=1/n;return(t+=r*e)-t%e}}var l="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",zl=new RegExp("cubic-bezier\\("+l+","+l+","+l+","+l+"\\)"),Vl=/steps\(\s*(\d+)\s*\)/,Gl=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function Hl(t){var e=zl.exec(t);if(e)return Ps.apply(void 0,e.slice(1).map(Number));e=Vl.exec(t);if(e)return Fl(Number(e[1]),0);e=Gl.exec(t);return e?Fl(Number(e[1]),{start:1,middle:.5,end:0}[e[2]]):hl[dl(t)]||hl.linear}function Wl(t){return Math.abs((0!==(e=t).duration&&0!==e.iterations?("auto"===e.duration?0:Number(e.duration))*(null!=(e=e.iterations)?e:1):0)/(t.playbackRate||1));var e}var Ul=0,Yl=1,ql=2,Xl=3;function Zl(t,e,n){var r=function(t,e,n){if(null===e)return Ul;var r=n.endTime;return e<Math.min(n.delay,r)?Yl:e>=Math.min(n.delay+t+n.endDelay,r)?ql:Xl}(t,e,n),t=function(t,e,n,r,i){switch(r){case Yl:return"backwards"===e||"both"===e?0:null;case Xl:return n-i;case ql:return"forwards"===e||"both"===e?t:null;case Ul:return null}}(t,n.fill,e,r,n.delay);if(null===t)return null;var i,o,e="auto"===n.duration?0:n.duration,a=(o=e,a=r,s=n.iterations,i=t,l=n.iterationStart,0===o?a!==Yl&&(l+=s):l+=i/o,l),s=(s=a,i=n.iterationStart,o=r,l=n.iterations,t=t,e=e,i=0!==(i=s===1/0?i%1:s%1)||o!==ql||0===l||0===t&&0!==e?i:1),e=(o=n.iterations,l=s,t=a,r===ql&&o===1/0?1/0:1===l?Math.floor(t)-1:Math.floor(t)),l=(i=n.direction,a=e,r=s,"normal"!==(o=i)&&"reverse"!==i&&(a=a,"alternate-reverse"===i&&(a+=1),o=a!==1/0&&a%2!=0?"reverse":"normal"),"normal"===o?r:1-r);return n.currentIteration=e,n.progress=l,n.easingFunction(l)}function Kl(a,s){if("function"!=typeof a||null!=s&&"function"!=typeof s)throw new TypeError("Expected a function");function l(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=s?s.apply(this,e):e[0],i=l.cache;if(i.has(r))return i.get(r);var o=a.apply(this,e);return l.cache=i.set(r,o)||i,o}return l.cache=new(Kl.Cache||Map),l}Kl.Cache=Map;var $l=Kl(function(t){return(t=void 0===t?"":t).replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})});function Jl(t){return!T(t)&&"string"==typeof t}function Ql(t,e,n){var o=function(t,e){for(var n={},r=0;r<t.length;r++)for(var i in t[r]){var o;tu(i)&&(o={offset:t[r].offset,computedOffset:t[r].computedOffset,easing:t[r].easing,easingFunction:Hl(t[r].easing)||e.easingFunction,value:t[r][i]},n[i]=n[i]||[],n[i].push(o))}return n}(t,e),a=function(t,e){var n,r=[];for(n in t)for(var i=t[n],o=0;o<i.length-1;o++){var a=o,s=o+1,l=i[a].computedOffset,u=i[s].computedOffset,c=l,h=u;0===o&&(c=-1/0,0===u&&(s=a)),o===i.length-2&&(h=1/0,1===l&&(a=s)),r.push({applyFrom:c,applyTo:h,startOffset:i[a].computedOffset,endOffset:i[s].computedOffset,easingFunction:i[a].easingFunction,property:n,interpolation:function(t,e,n,r){var i=e,o=n,a=Zr.get(Bl),t=a.getMetadata(t);if(t&&t.syntax&&t.interpolable){a=a.getPropertySyntax(t.syntax);if(a){a.parser&&(i=a.parser(e,r),o=a.parser(n,r));var s,t=a.mixer(i,o,r);if(t)return s=eu.apply(void 0,t),function(t){return 0===t?e:1===t?n:s(t)}}}return eu(!1,!0,function(t){return t?n:e})}(n,i[a].value,i[s].value,e)})}return r.sort(function(t,e){return t.startOffset-e.startOffset}),r}(o,n);return function(r,i){if(null!==i)a.filter(function(t){return i>=t.applyFrom&&i<t.applyTo}).forEach(function(t){var e=i-t.startOffset,n=t.endOffset-t.startOffset,e=0==n?0:t.easingFunction(e/n);r.style[t.property]=t.interpolation(e)});else for(var t in o)tu(t)&&(r.style[t]=null)}}function tu(t){return"offset"!==t&&"easing"!==t&&"composite"!==t&&"computedOffset"!==t}var eu=function(e,n,r){return function(t){return r(function t(e,n,r){if("number"==typeof e&&"number"==typeof n)return e*(1-r)+n*r;if("boolean"==typeof e&&"boolean"==typeof n||"string"==typeof e&&"string"==typeof n)return r<.5?e:n;if(Array.isArray(e)&&Array.isArray(n)&&e.length===n.length){for(var i=[],o=0;o<e.length;o++)i.push(t(e[o],n[o],r));return i}throw new Error("Mismatched interpolation arguments "+e+":"+n)}(e,n,t))}};var M,nu={d:{alias:"path"},strokeDasharray:{alias:"lineDash"},strokeWidth:{alias:"lineWidth"},textAnchor:{alias:"textAlign",values:{middle:"center"}},src:{alias:"img"}},ru=Kl(function(t){var t=$l(t),e=nu[t];return[t=(null==e?void 0:e.alias)||t,e]});function iu(t,e){var t=ru(t),n=t[0],t=t[1];return[n,Jl(e)&&(null==t||null==(n=t.values)?void 0:n[e])||e]}(r=M=M||{}).GROUP="g",r.CIRCLE="circle",r.ELLIPSE="ellipse",r.IMAGE="image",r.RECT="rect",r.LINE="line",r.POLYLINE="polyline",r.POLYGON="polygon",r.TEXT="text",r.PATH="path",r.HTML="html",r.MESH="mesh";var ou=d.defineToken("CanvasConfig");function au(t,e,n,r){var i=(-1+Math.sqrt(2))/3*4,o=t*i,i=e*i,a=n-t,t=n+t,s=r-e,e=r+e;return[["M",a,r],["C",a,r-i,n-o,s,n,s],["C",n+o,s,t,r-i,t,r],["C",t,r+i,n+o,e,n,e],["C",n-o,e,a,r+i,a,r],["Z"]]}function su(t,e){void 0===e&&(e=!0);var n,r,i,o,a,s,l,u,c,h,d=[];switch(t.nodeName){case M.LINE:var f=t.parsedStyle,p=f.x1,y=f.y1,g=f.x2,f=f.y2,d=[["M",p.value,y.value],["L",g.value,f.value]];break;case M.CIRCLE:var p=t.parsedStyle,y=p.r,g=p.cx,f=p.cy;d=au(y.value,y.value,g.value,f.value);break;case M.ELLIPSE:p=t.parsedStyle,y=p.rx,g=p.ry,f=p.cx,p=p.cy;d=au(y.value,g.value,f.value,p.value);break;case M.POLYLINE:case M.POLYGON:y=t.parsedStyle.points;g=y.points,f=t.nodeName===M.POLYGON,g=g.map(function(t,e){return[0===e?"M":"L",t[0],t[1]]}),f&&g.push(["Z"]),d=g;break;case M.RECT:var p=t.parsedStyle,v=p.width,m=p.height,y=p.x,b=p.y,p=p.radius,x=p&&p.some(function(t){return 0!==t.value});n=v.value,r=m.value,y=y.value,b=b.value,x=x&&p.map(function(t){return zs(t.value,0,Math.min(Math.abs(v.value)/2,Math.abs(m.value)/2))}),d=x?(o=(p=0<n?1:-1)+(k=0<r?1:-1)!=0?1:0,[["M",p*(i=x[0])+y,b],["L",n-p*(w=x[1])+y,b],w?["A",w,w,0,0,o,n+y,k*w+b]:null,["L",n+y,r-k*(w=x[2])+b],w?["A",w,w,0,0,o,n+y-p*w,r+b]:null,["L",y+p*(w=x[3]),r+b],w?["A",w,w,0,0,o,y,r+b-k*w]:null,["L",y,k*i+b],i?["A",i,i,0,0,o,p*i+y,b]:null,["Z"]].filter(function(t){return t})):[["M",y,b],["L",y+n,b],["L",y+n,b+r],["L",y,b+r],["Z"]];break;case M.PATH:var x=t.parsedStyle.path,w=x.curve,k=x.zCommandIndexes;d=[].concat(w),k.forEach(function(t,e){d.splice(t+e,1,["Z"])})}if(d.length)return a=d,s=t,(l=void 0===(l=e)?!0:l)&&(u=s.getLocalTransform()),e=(s=s.parsedStyle).defX,c=void 0===e?0:e,h=void 0===(e=s.defY)?0:e,a.reduce(function(t,e){var n,r,i,o="";return"M"===e[0]||"L"===e[0]?(i=E(e[1]-c,e[2]-h,0),l&&Zi(i,i,u),o=""+e[0]+i[0]+","+i[1]):"Z"===e[0]?o=e[0]:"C"===e[0]?(i=E(e[1]-c,e[2]-h,0),n=E(e[3]-c,e[4]-h,0),r=E(e[5]-c,e[6]-h,0),l&&(Zi(i,i,u),Zi(n,n,u),Zi(r,r,u)),o=""+e[0]+i[0]+","+i[1]+","+n[0]+","+n[1]+","+r[0]+","+r[1]):"A"===e[0]&&(i=E(e[6]-c,e[7]-h,0),l&&Zi(i,i,u),o=""+e[0]+e[1]+","+e[2]+","+e[3]+","+e[4]+","+e[5]+","+i[0]+","+i[1]),t+o},"")}function lu(){return this.call=this._createCall("sync"),this.call.apply(this,arguments)}function uu(){return this.callAsync=this._createCall("async"),this.callAsync.apply(this,arguments)}function cu(){return this.promise=this._createCall("promise"),this.promise.apply(this,arguments)}function hu(t){return bu.setup(this,t),bu.create(t)}function du(t){return wu.setup(this,t),wu.create(t)}function fu(){throw new Error("tapAsync is not supported on a SyncHook")}function pu(){throw new Error("tapPromise is not supported on a SyncHook")}function yu(t){return Eu.setup(this,t),Eu.create(t)}function gu(){throw new Error("tapAsync is not supported on a SyncWaterfallHook")}function vu(){throw new Error("tapPromise is not supported on a SyncWaterfallHook")}function mu(t){return Su.setup(this,t),Su.create(t)}var o=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=void 0),this.name=void 0,this.taps=void 0,this.promise=void 0,this._promise=void 0,this._args=t,this.name=e,this.taps=[],this.interceptors=[],this._call=lu,this.call=lu,this._callAsync=uu,this.callAsync=uu,this._promise=cu,this.promise=cu,this._x=void 0}var e=t.prototype;return e.compile=function(t){throw new Error("Abstract: should be overridden")},e._createCall=function(t){return this.compile({taps:this.taps,interceptors:this.interceptors,args:this._args,type:t})},e._tap=function(t,e,n){if("string"==typeof e)e={name:e.trim()};else if("object"!=typeof e||null===e)throw new Error("Invalid tap options");if("string"!=typeof e.name||""===e.name)throw new Error("Missing name for tap");e=Object.assign({type:t,fn:n},e),e=this._runRegisterInterceptors(e),this._insert(e)},e.tap=function(t,e){this._tap("sync",t,e)},e.tapAsync=function(t,e){this._tap("async",t,e)},e.tapPromise=function(t,e){this._tap("promise",t,e)},e._runRegisterInterceptors=function(t){for(var e=cs(this.interceptors);!(n=e()).done;){var n=n.value;!n.register||void 0!==(n=n.register(t))&&(t=n)}return t},e.withOptions=function(e){function n(t){return Object.assign({},e,"string"==typeof t?{name:t}:t)}var r=this;return{name:this.name,tap:function(t,e){return r.tap(n(t),e)},tapAsync:function(t,e){return r.tapAsync(n(t),e)},tapPromise:function(t,e){return r.tapPromise(n(t),e)},isUsed:function(){return r.isUsed()},withOptions:function(t){return r.withOptions(n(t))}}},e.isUsed=function(){return 0<this.taps.length||0<this.interceptors.length},e._resetCompilation=function(){this.call=this._call,this.callAsync=this._callAsync,this.promise=this._promise},e._insert=function(t){this._resetCompilation(),"string"==typeof t.before?e=new Set([t.before]):Array.isArray(t.before)&&(e=new Set(t.before));for(var e,n=0,r=("number"==typeof t.stage&&(n=t.stage),this.taps.length);0<r;){r--;var i=this.taps[r],o=(this.taps[r+1]=i).stage||0;if(e){if(e.has(i.name)){e.delete(i.name);continue}if(0<e.size)continue}if(!(n<o)){r++;break}}this.taps[r]=t},t}(),H=function(){function t(t){this.config=t,this.options=void 0,this._args=void 0}var e=t.prototype;return e.create=function(t){var e;switch(this.init(t),this.options.type){case"sync":e=new Function(this.args(),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:function(t){return"throw "+t+";\n"},onResult:function(t){return"return "+t+";\n"},resultReturns:!0,onDone:function(){return""},rethrowIfPossible:!0}));break;case"async":e=new Function(this.args({after:"_callback"}),'"use strict";\n'+this.header()+this.contentWithInterceptors({onError:function(t){return"_callback("+t+");\n"},onResult:function(t){return"_callback(null, "+t+");\n"},onDone:function(){return"_callback();\n"}}));break;case"promise":var n=!1,r=this.contentWithInterceptors({onError:function(t){return n=!0,"_error("+t+");\n"},onResult:function(t){return"_resolve("+t+");\n"},onDone:function(){return"_resolve();\n"}}),i="",i=(i+='"use strict";\n')+this.header()+"return new Promise((function(_resolve, _reject) {\n";n&&(i+="var _sync = true;\nfunction _error(_err) {\nif(_sync)\n_resolve(Promise.resolve().then((function() { throw _err; })));\nelse\n_reject(_err);\n};\n"),i+=r,n&&(i+="_sync = false;\n"),i+="}));\n",e=new Function(this.args(),i)}return this.deinit(),e},e.setup=function(t,e){t._x=e.taps.map(function(t){return t.fn})},e.init=function(t){this.options=t,this._args=t.args.slice()},e.deinit=function(){this.options=void 0,this._args=void 0},e.contentWithInterceptors=function(t){var r=this;if(0<this.options.interceptors.length){for(var i=t.onError,o=t.onResult,n=t.onDone,e="",a=0;a<this.options.interceptors.length;a++){var s=this.options.interceptors[a];s.call&&(e+=this.getInterceptor(a)+".call("+this.args({before:s.context?"_context":void 0})+");\n")}return e+=this.content(Object.assign(t,{onError:i&&function(t){for(var e="",n=0;n<r.options.interceptors.length;n++)r.options.interceptors[n].error&&(e+=r.getInterceptor(n)+".error("+t+");\n");return e+=i(t)},onResult:o&&function(t){for(var e="",n=0;n<r.options.interceptors.length;n++)r.options.interceptors[n].result&&(e+=r.getInterceptor(n)+".result("+t+");\n");return e+=o(t)},onDone:n&&function(){for(var t="",e=0;e<r.options.interceptors.length;e++)r.options.interceptors[e].done&&(t+=r.getInterceptor(e)+".done();\n");return t+=n()}}))}return this.content(t)},e.header=function(){var t="";return this.needContext()?t+="var _context = {};\n":t+="var _context;\n",t+="var _x = this._x;\n",0<this.options.interceptors.length&&(t+="var _taps = this.taps;\nvar _interceptors = this.interceptors;\n"),t},e.needContext=function(){for(var t,e=cs(this.options.taps);!(t=e()).done;)if(t.value.context)return!0;return!1},e.callTap=function(t,e){for(var n=e.onError,r=e.onResult,i=e.onDone,o=e.rethrowIfPossible,a="",s=!1,l=0;l<this.options.interceptors.length;l++){var u=this.options.interceptors[l];u.tap&&(s||(a+="var _tap"+t+" = "+this.getTap(t)+";\n",s=!0),a+=this.getInterceptor(l)+".tap("+(u.context?"_context, ":"")+"_tap"+t+");\n")}a+="var _fn"+t+" = "+this.getTapFn(t)+";\n";var c=this.options.taps[t];switch(c.type){case"sync":o||(a=a+"var _hasError"+t+" = false;\ntry {\n"),a+=r?"var _result"+t+" = _fn"+t+"("+this.args({before:c.context?"_context":void 0})+");\n":"_fn"+t+"("+this.args({before:c.context?"_context":void 0})+");\n",o||(a=(a=(a=a+"} catch(_err) {\n_hasError"+t+" = true;\n")+n("_err"))+"}\nif(!_hasError"+t+") {\n"),r&&(a+=r("_result"+t)),i&&(a+=i()),o||(a+="}\n");break;case"async":var h=(h=(h="")+(r?"(function(_err"+t+", _result"+t+") {\n":"(function(_err"+t+") {\n")+("if(_err"+t+") {\n"))+n("_err"+t)+"} else {\n";r&&(h+=r("_result"+t)),i&&(h+=i()),a+="_fn"+t+"("+this.args({before:c.context?"_context":void 0,after:h=h+"}\n"+"})"})+");\n";break;case"promise":a=(a=(a=(a+="var _hasResult"+t+" = false;\n")+("var _promise"+t+" = _fn"+t+"("+this.args({before:c.context?"_context":void 0})+");\n"))+("if (!_promise"+t+" || !_promise"+t+".then)\n")+(" throw new Error('Tap function (tapPromise) did not return promise (returned ' + _promise"+t+" + ')');\n"))+("_promise"+t+".then((function(_result"+t+") {\n")+("_hasResult"+t+" = true;\n"),r&&(a+=r("_result"+t)),i&&(a+=i()),a=(a=a+("}), function(_err"+t+") {\n")+("if(_hasResult"+t+") throw _err"+t+";\n"))+n("_err"+t)+"});\n"}return a},e.callTapsSeries=function(t){var o=this,a=t.onError,s=t.onResult,e=t.resultReturns,l=t.onDone,n=t.doneReturns,u=t.rethrowIfPossible;if(0===this.options.taps.length)return l();for(var c=this.options.taps.findIndex(function(t){return"sync"!==t.type}),h=e||n,d="",f=l,p=0,r=function(t){function e(t){return t?"":l()}var n=t,r=(f!==l&&("sync"!==o.options.taps[n].type||20<p++)&&(p=0,d=(d+="function _next"+n+"() {\n")+f()+"}\n",f=function(){return(h?"return ":"")+"_next"+n+"();\n"}),f),i=o.callTap(n,{onError:function(t){return a(n,t,r,e)},onResult:s&&function(t){return s(n,t,r,e)},onDone:!s&&r,rethrowIfPossible:u&&(c<0||n<c)});f=function(){return i}},i=this.options.taps.length-1;0<=i;i--)r(i);return d+=f()},e.callTapsLooping=function(t){var e=t.onError,n=t.onDone,t=t.rethrowIfPossible;if(0===this.options.taps.length)return n();var o=this.options.taps.every(function(t){return"sync"===t.type}),r="";o||(r+="var _looper = (function() {\nvar _loopAsync = false;\n");for(var r=(r+="var _loop;\n")+"do {\n"+"_loop = false;\n",i=0;i<this.options.interceptors.length;i++){var a=this.options.interceptors[i];a.loop&&(r+=this.getInterceptor(i)+".loop("+this.args({before:a.context?"_context":void 0})+");\n")}return r=r+this.callTapsSeries({onError:e,onResult:function(t,e,n,r){var i=(i="")+("if("+e+" !== undefined) {\n")+"_loop = true;\n";return o||(i+="if(_loopAsync) _looper();\n"),i=(i=i+r(!0)+"} else {\n")+n()+"}\n"},onDone:n&&function(){var t="";return(t+="if(!_loop) {\n")+n()+"}\n"},rethrowIfPossible:t&&o})+"} while(_loop);\n",o||(r+="_loopAsync = true;\n});\n_looper();\n"),r},e.callTapsParallel=function(t){var e=this,o=t.onError,a=t.onResult,s=t.onDone,l=t.rethrowIfPossible,t=t.onTap,u=void 0===t?function(t,e){return e()}:t;if(this.options.taps.length<=1)return this.callTapsSeries({onError:o,onResult:a,onDone:s,rethrowIfPossible:l});for(var c="",n=(c=(c+="do {\n")+("var _counter = "+this.options.taps.length+";\n"),s&&(c=(c+="var _done = (function() {\n")+s()+"});\n"),function(n){function r(){return s?"if(--_counter === 0) _done();\n":"--_counter;"}function i(t){return t||!s?"_counter = 0;\n":"_counter = 0;\n_done();\n"}c=(c+="if(_counter <= 0) break;\n")+u(n,function(){return e.callTap(n,{onError:function(t){var e="";return(e+="if(_counter > 0) {\n")+o(n,t,r,i)+"}\n"},onResult:a&&function(t){var e="";return(e+="if(_counter > 0) {\n")+a(n,t,r,i)+"}\n"},onDone:!a&&r,rethrowIfPossible:l})},r,i)}),r=0;r<this.options.taps.length;r++)n(r);return c+="} while(false);\n"},e.args=function(t){var t=void 0===t?{}:t,e=t.before,t=t.after,n=this._args;return e&&(n=[e].concat(n)),0===(n=t?n.concat(t):n).length?"":n.join(", ")},e.getTapFn=function(t){return"_x["+t+"]"},e.getTap=function(t){return"_taps["+t+"]"},e.getInterceptor=function(t){return"_interceptors["+t+"]"},t}(),bu=new(function(t){function e(){return t.apply(this,arguments)||this}return g(e,t),e.prototype.content=function(t){var i=t.onError,t=t.onDone;return this.callTapsParallel({onError:function(t,e,n,r){return i(e)+r(!0)},onDone:t})},e}(H)),xu=function(n){function t(t,e){return(t=n.call(this,t=void 0===t?[]:t,e=void 0===e?void 0:e)||this).compile=hu,t._call=void 0,t.call=void 0,t}return g(t,n),t}(o),wu=new(function(t){function e(){return t.apply(this,arguments)||this}return g(e,t),e.prototype.content=function(t){var i=this,o=t.onError,e=t.onResult;return t.onDone,this.callTapsSeries({onError:function(t,e,n,r){return o(e)+r(!0)},onResult:function(t,e,n){var r="";return(r+="if("+e+" !== undefined) {\n")+(i._args[0]+" = "+e+";\n")+"}\n"+n()},onDone:function(){return e(i._args[0])}})},e}(H)),ku=function(n){function t(t,e){return(t=n.call(this,t=void 0===t?[]:t,e=void 0===e?void 0:e)||this).compile=du,t._call=void 0,t.call=void 0,t}return g(t,n),t}(o),Eu=new(function(t){function e(){return t.apply(this,arguments)||this}return g(e,t),e.prototype.content=function(t){var n=t.onError,e=t.onDone,t=t.rethrowIfPossible;return this.callTapsSeries({onError:function(t,e){return n(e)},onDone:e,rethrowIfPossible:t})},e}(H)),_u=function(n){function t(t,e){return(t=n.call(this,t=void 0===t?[]:t,e=void 0===e?void 0:e)||this).tapAsync=fu,t.tapPromise=pu,t.compile=yu,t}return g(t,n),t}(o),Su=new(function(t){function e(){return t.apply(this,arguments)||this}return g(e,t),e.prototype.content=function(t){var i=this,n=t.onError,e=t.onResult,r=t.resultReturns,t=t.rethrowIfPossible;return this.callTapsSeries({onError:function(t,e){return n(e)},onResult:function(t,e,n){var r="";return(r+="if("+e+" !== undefined) {\n")+(i._args[0]+" = "+e+";\n")+"}\n"+n()},onDone:function(){return e(i._args[0])},doneReturns:r,rethrowIfPossible:t})},e}(H)),Mu=function(n){function t(t,e){return(t=n.call(this,t=void 0===t?[]:t,e=void 0===e?void 0:e)||this).tapAsync=gu,t.tapPromise=vu,t.compile=mu,t}return g(t,n),t}(_u),Tu=["serif","sans-serif","monospace","cursive","fantasy","system-ui"];function Ou(e){return void 0===e&&(e=0),new Promise(function(t){setTimeout(function(){t()},e)})}var Pu,O,Au,Cu,Nu,Lu,Iu=d.defineToken("LayoutChildrenFactory"),Ru=d.defineToken("LayoutChildrenOptions"),Du=function(){function t(t,e){this._layoutContext=void 0,this.options=void 0,this.node=void 0,this.styleMap=void 0,this.layoutContext=void 0,this._layoutContext=t,this.options=e,this.layoutContext=t,this.node=e.node,this.styleMap=e.node.getAllStyle()}var e=t.prototype;return e.intrinsicSizes=function(){var t=new cl;return this.layoutContext.appendWorkTask({layoutChild:this,taskType:Na.IntrinsicSizes,deferred:t}),t.promise},e.layoutNextFragment=function(t){if(this.layoutContext.mode===Na.IntrinsicSizes)throw new Error("Not Supported: cant call layoutNextFragment in intrinsicSizes");var e=new cl;return this.layoutContext.appendWorkTask({layoutConstraints:t,layoutChild:this,taskType:Na.Layout,deferred:e}),e.promise},t}(),Du=t([Mr(),D(0,p(ys)),D(1,p(Ru)),e("design:paramtypes",[ys,Object])],Du),ju=d.defineToken("LayoutEdgesFactory"),Bu=d.defineToken("LayoutEdgesOptions"),Fu=[0,0,0,0],zu=function(t){this.options=void 0,this.inlineStart=void 0,this.inlineEnd=void 0,this.blockStart=void 0,this.blockEnd=void 0,this.inline=void 0,this.block=void 0;var t=(this.options=t).node.getAllStyle(),e=null!=(e=null==(e=t.get(La.PADDING_TOP))?void 0:e.value)?e:0,n=null!=(n=null==(n=t.get(La.PADDING_END))?void 0:n.value)?n:0,r=null!=(r=null==(r=t.get(La.PADDING_BOTTOM))?void 0:r.value)?r:0,i=null!=(i=null==(i=t.get(La.PADDING_START))?void 0:i.value)?i:0,o=null!=(o=null==(o=t.get(La.PADDING_TOP))?void 0:o.value)?o:0,a=null!=(a=null==(a=t.get(La.PADDING_END))?void 0:a.value)?a:0,s=null!=(s=null==(s=t.get(La.PADDING_BOTTOM))?void 0:s.value)?s:0,t=null!=(t=null==(t=t.get(La.PADDING_START))?void 0:t.value)?t:0;this.blockStart=e+Fu[0]+o,this.inlineStart=n+Fu[1]+a,this.blockEnd=r+Fu[2]+s,this.inlineEnd=i+Fu[3]+t,this.block=this.blockStart+this.blockEnd,this.inline=this.inlineStart+this.inlineEnd},zu=t([Mr(),D(0,p(Bu)),e("design:paramtypes",[Object])],zu),Vu=((tt=function(){function t(){this.registry=new Map}var e=t.prototype;return e.hasLayout=function(t){return this.registry.has(t)},e.getLayout=function(t){if(this.hasLayout(t=void 0===t?"absolute":t))return this.registry.get(t);throw new Error("invalid layout property: "+t)},e.updateLayout=function(t,e){this.registry.set(t,e)},e.registerLayout=function(t,e){if(""===t)throw new TypeError("layout name cant't be empty");if(Pu.reservedLayout.includes(t))throw new Error("layout name '"+t+"' is a system reserved layout name, please use another name");if(this.hasLayout(t))throw new Error("layout '"+t+"' already exist.");this.registry.set(t,e)},e.deleteLayout=function(t){this.registry.delete(t)},rs(t,[{key:"size",get:function(){return this.registry.size}}]),t}()).reservedLayout=[],Pu=tt),Vu=Pu=t([f()],Vu),Gu=function(){function t(t,e,n){this._layoutRegistry=void 0,this._layoutContextFactory=void 0,this._layoutEdgesFactory=void 0,this.layoutRegistry=void 0,this.layoutContextFactory=void 0,this.layoutEdgesFactory=void 0,this._layoutRegistry=t,this._layoutContextFactory=e,this._layoutEdgesFactory=n,this.layoutRegistry=t,this.layoutContextFactory=e,this.layoutEdgesFactory=n}var e=t.prototype;return e.computeLayout=function(){var n=es(_().mark(function t(e,n){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.determineIntrinsicSizes(e,e.children);case 2:return t.next=4,this.calculateLayout(e,e.children,n);case 4:case"end":return t.stop()}},t,this)}));return function(t,e){return n.apply(this,arguments)}}(),e.determineAllIntrinsicSizes=function(){var e=es(_().mark(function t(e){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),e.getLayoutDefinitionName=function(t){t=t.getAllStyle().get(La.LAYOUT);if(t)return t.value;throw new Error("layout property not found")},e.determineIntrinsicSizes=function(){var n=es(_().mark(function t(e,n){var r;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.getLayoutDefinitionName(e),t.next=3,this.invokeIntrinsicSizesCallback(r,e,n);case 3:case"end":return t.stop()}},t,this)}));return function(t,e){return n.apply(this,arguments)}}(),e.invokeIntrinsicSizesCallback=function(){var r=es(_().mark(function t(e,n,r){var i,o,a,s,l;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=this.layoutRegistry.getLayout(e),a=new l,i=this.layoutContextFactory({mode:Na.IntrinsicSizes}),l=l.inputProperties,l=void 0===l?[]:l,o=[],r.forEach(function(t){t=i.layoutChildrenFactory({node:t});o.push(t)}),s=this.layoutEdgesFactory({node:n}),l=n.getStyle.apply(n,l),a=a.intrinsicSizes(o,s,l),(s=this.runWorkQueue(a,i.workQueue)).next(),t.next=13,Ou();case 13:l=s.next().value,i.clearWorkQueue(),n.setIntrisicSizes(l);case 16:case"end":return t.stop()}},t,this)}));return function(t,e,n){return r.apply(this,arguments)}}(),e.calculateLayout=function(){var r=es(_().mark(function t(e,n,r){var i;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=this.getLayoutDefinitionName(e),t.next=3,this.invokeLayoutCallback(i,e,n,r);case 3:case"end":return t.stop()}},t,this)}));return function(t,e,n){return r.apply(this,arguments)}}(),e.invokeLayoutCallback=function(){var i=es(_().mark(function t(e,n,r,i){var o,a,s,l,u,c;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return l=this.layoutRegistry.getLayout(e),c=new l,o=this.layoutContextFactory({mode:Na.Layout}),l=l.inputProperties,l=void 0===l?[]:l,a=[],r.forEach(function(t){t=o.layoutChildrenFactory({node:t});a.push(t)}),s=this.layoutEdgesFactory({node:n}),l=n.getStyle.apply(n,l),c=c.layout(a,s,i,l),(s=this.runWorkQueue(c,o.workQueue)).next(),t.next=13,Ou();case 13:l=s.next().value,o.clearWorkQueue(),u=l instanceof bs?l:o.fragmentResultFactory(l),c=o.layoutFragmentFactory({inlineSize:u.inlineSize,blockSize:u.blockSize,data:u.data}),n.setComputedLayout(c),r.forEach(function(t,e){t.setComputedLayout(u.childFragments[e])});case 19:case"end":return t.stop()}},t,this)}));return function(t,e,n,r){return i.apply(this,arguments)}}(),e.runWorkQueue=_().mark(function t(e,n){var r,i=this;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return r=function(t){if(t.isRejected||t.isFulfilled)return t;var e,n=!0,r=!1,i=!1,t=t.then(function(t){return n=!(i=!0),e=t},function(t){throw n=!(r=!0),t});return t.isFulfilled=function(){return i},t.isPending=function(){return n},t.isRejected=function(){return r},t.getFullFilledValue=function(){return e},t}(e),0<n.length&&r.isPending()&&n.forEach(function(t){var e,n,r;t.taskType===Na.IntrinsicSizes&&(e=t.layoutChild,n=t.deferred,e=e.node,n.resolve(i.getNodeIntrisicSizes(e))),t.taskType===Na.Layout&&(n=t.layoutChild,e=t.deferred,t=t.layoutConstraints,r=n.node,n=n.layoutContext,r=i.getNodeFragment(r,t),e.resolve(n.layoutFragmentFactory(r)))}),void(t.next=4);case 4:if(r.isFulfilled()){t.next=6;break}throw new Error("promise not fullfilled!");case 6:return t.abrupt("return",r.getFullFilledValue());case 7:case"end":return t.stop()}},t)}),e.getNodeIntrisicSizes=function(t){var e,n=t.getAllStyle();return{minContentInlineSize:(null==(e=n.get(La.MIN_WIDTH))?void 0:e.value)||(null==(e=t.intrisicSizes)?void 0:e.minContentInlineSize)||(null==(e=n.get(La.WIDTH))?void 0:e.value)||0,maxContentInlineSize:(null==(e=n.get(La.MAX_WIDTH))?void 0:e.value)||(null==(e=t.intrisicSizes)?void 0:e.maxContentInlineSize)||(null==(e=n.get(La.WIDTH))?void 0:e.value)||0,minContentBlockSize:(null==(e=n.get(La.MIN_HEIGHT))?void 0:e.value)||(null==(e=t.intrisicSizes)?void 0:e.minContentBlockSize)||(null==(e=n.get(La.HEIGHT))?void 0:e.value)||0,maxContentBlockSize:(null==(e=n.get(La.MAX_HEIGHT))?void 0:e.value)||(null==(e=t.intrisicSizes)?void 0:e.maxContentBlockSize)||(null==(t=n.get(La.HEIGHT))?void 0:t.value)||0}},e.getNodeFragment=function(t,e){var n;return{inlineSize:(null==(n=t.getComputedLayout())?void 0:n.inlineSize)||(null==(n=t.getAllStyle().get(La.MIN_WIDTH))?void 0:n.value)||(null==(n=t.getAllStyle().get(La.WIDTH))?void 0:n.value)||0,blockSize:(null==(n=t.getComputedLayout())?void 0:n.blockSize)||(null==(n=t.getAllStyle().get(La.MIN_HEIGHT))?void 0:n.value)||(null==(n=t.getAllStyle().get(La.HEIGHT))?void 0:n.value)||0,data:e.data}},t}(),Gu=t([f(),D(0,p(Vu)),D(1,p(ds)),D(2,p(ju)),e("design:paramtypes",[Vu,Function,Function])],Gu),Hu=d.defineToken("LayoutFragmentFactory"),Wu=d.defineToken("LayoutFragmentOptions"),Uu=function(t,e){this._layoutContext=void 0,this.options=void 0,this.layoutContext=void 0,this.inlineSize=void 0,this.blockSize=void 0,this.inlineOffset=void 0,this.blockOffset=void 0,this.data=void 0,this._layoutContext=t,this.options=e,this.layoutContext=t,this.inlineSize=e.inlineSize,this.blockSize=e.blockSize,this.inlineOffset=0,this.blockOffset=0,this.data=e.data},Uu=t([Mr(),D(0,p(ys)),D(1,p(Wu)),e("design:paramtypes",[ys,Object])],Uu),Yu=((u=O=O||{})[u.kUnknown=0]="kUnknown",u[u.kNumber=1]="kNumber",u[u.kPercentage=2]="kPercentage",u[u.kEms=3]="kEms",u[u.kExs=4]="kExs",u[u.kPixels=5]="kPixels",u[u.kCentimeters=6]="kCentimeters",u[u.kMillimeters=7]="kMillimeters",u[u.kInches=8]="kInches",u[u.kPoints=9]="kPoints",u[u.kPicas=10]="kPicas",u[u.kQuarterMillimeters=11]="kQuarterMillimeters",u[u.kViewportWidth=12]="kViewportWidth",u[u.kViewportHeight=13]="kViewportHeight",u[u.kViewportInlineSize=14]="kViewportInlineSize",u[u.kViewportBlockSize=15]="kViewportBlockSize",u[u.kViewportMin=16]="kViewportMin",u[u.kViewportMax=17]="kViewportMax",u[u.kSmallViewportWidth=18]="kSmallViewportWidth",u[u.kSmallViewportHeight=19]="kSmallViewportHeight",u[u.kSmallViewportInlineSize=20]="kSmallViewportInlineSize",u[u.kSmallViewportBlockSize=21]="kSmallViewportBlockSize",u[u.kSmallViewportMin=22]="kSmallViewportMin",u[u.kSmallViewportMax=23]="kSmallViewportMax",u[u.kLargeViewportWidth=24]="kLargeViewportWidth",u[u.kLargeViewportHeight=25]="kLargeViewportHeight",u[u.kLargeViewportInlineSize=26]="kLargeViewportInlineSize",u[u.kLargeViewportBlockSize=27]="kLargeViewportBlockSize",u[u.kLargeViewportMin=28]="kLargeViewportMin",u[u.kLargeViewportMax=29]="kLargeViewportMax",u[u.kDynamicViewportWidth=30]="kDynamicViewportWidth",u[u.kDynamicViewportHeight=31]="kDynamicViewportHeight",u[u.kDynamicViewportInlineSize=32]="kDynamicViewportInlineSize",u[u.kDynamicViewportBlockSize=33]="kDynamicViewportBlockSize",u[u.kDynamicViewportMin=34]="kDynamicViewportMin",u[u.kDynamicViewportMax=35]="kDynamicViewportMax",u[u.kContainerWidth=36]="kContainerWidth",u[u.kContainerHeight=37]="kContainerHeight",u[u.kContainerInlineSize=38]="kContainerInlineSize",u[u.kContainerBlockSize=39]="kContainerBlockSize",u[u.kContainerMin=40]="kContainerMin",u[u.kContainerMax=41]="kContainerMax",u[u.kRems=42]="kRems",u[u.kChs=43]="kChs",u[u.kUserUnits=44]="kUserUnits",u[u.kDegrees=45]="kDegrees",u[u.kRadians=46]="kRadians",u[u.kGradians=47]="kGradians",u[u.kTurns=48]="kTurns",u[u.kMilliseconds=49]="kMilliseconds",u[u.kSeconds=50]="kSeconds",u[u.kHertz=51]="kHertz",u[u.kKilohertz=52]="kKilohertz",u[u.kDotsPerPixel=53]="kDotsPerPixel",u[u.kDotsPerInch=54]="kDotsPerInch",u[u.kDotsPerCentimeter=55]="kDotsPerCentimeter",u[u.kFraction=56]="kFraction",u[u.kInteger=57]="kInteger",u[u.kQuirkyEms=58]="kQuirkyEms",(dt=Au=Au||{})[dt.kUNumber=0]="kUNumber",dt[dt.kUPercent=1]="kUPercent",dt[dt.kULength=2]="kULength",dt[dt.kUAngle=3]="kUAngle",dt[dt.kUTime=4]="kUTime",dt[dt.kUFrequency=5]="kUFrequency",dt[dt.kUResolution=6]="kUResolution",dt[dt.kUOther=7]="kUOther",0,(_t=Cu=Cu||{})[_t.kYes=0]="kYes",_t[_t.kNo=1]="kNo",(ft=Nu=Nu||{})[ft.kYes=0]="kYes",ft[ft.kNo=1]="kNo",[{name:"em",unit_type:O.kEms},{name:"px",unit_type:O.kPixels},{name:"deg",unit_type:O.kDegrees},{name:"rad",unit_type:O.kRadians},{name:"grad",unit_type:O.kGradians},{name:"ms",unit_type:O.kMilliseconds},{name:"s",unit_type:O.kSeconds},{name:"rem",unit_type:O.kRems},{name:"turn",unit_type:O.kTurns}]);(n=Lu=Lu||{})[n.kUnknownType=0]="kUnknownType",n[n.kUnparsedType=1]="kUnparsedType",n[n.kKeywordType=2]="kKeywordType",n[n.kUnitType=3]="kUnitType",n[n.kSumType=4]="kSumType",n[n.kProductType=5]="kProductType",n[n.kNegateType=6]="kNegateType",n[n.kInvertType=7]="kInvertType",n[n.kMinType=8]="kMinType",n[n.kMaxType=9]="kMaxType",n[n.kClampType=10]="kClampType",n[n.kTransformType=11]="kTransformType",n[n.kPositionType=12]="kPositionType",n[n.kURLImageType=13]="kURLImageType",n[n.kColorType=14]="kColorType",n[n.kUnsupportedColorType=15]="kUnsupportedColorType";var qu,Xu,Zu=function(){function t(){}t.parse=function(t,e){return[][0]},t.parseAll=function(t,e){return[]},t.unitFromName=function(t){return t?"number"===t?O.kNumber:"percent"===t||"%"===t?O.kPercentage:this.stringToUnitType(t):O.kUnknown},t.unitTypeToUnitCategory=function(t){switch(t){case O.kNumber:case O.kInteger:return Au.kUNumber;case O.kPercentage:return Au.kUPercent;case O.kPixels:case O.kCentimeters:case O.kMillimeters:case O.kQuarterMillimeters:case O.kInches:case O.kPoints:case O.kPicas:case O.kUserUnits:return Au.kULength;case O.kMilliseconds:case O.kSeconds:return Au.kUTime;case O.kDegrees:case O.kRadians:case O.kGradians:case O.kTurns:return Au.kUAngle;case O.kHertz:case O.kKilohertz:return Au.kUFrequency;case O.kDotsPerPixel:case O.kDotsPerInch:case O.kDotsPerCentimeter:return Au.kUResolution;default:return Au.kUOther}},t.unitTypeToString=function(t){switch(t){case O.kNumber:case O.kInteger:case O.kUserUnits:return"";case O.kPercentage:return"%";case O.kEms:case O.kQuirkyEms:return"em";case O.kRems:return"rem";case O.kPixels:return"px";case O.kDegrees:return"deg";case O.kRadians:return"rad";case O.kGradians:return"grad";case O.kMilliseconds:return"ms";case O.kSeconds:return"s";case O.kTurns:return"turn"}return""},t.stringToUnitType=function(e){return Yu.find(function(t){return t.name===e}).unit_type},t.canonicalUnitTypeForCategory=function(t){switch(t){case Au.kUNumber:return O.kNumber;case Au.kULength:return O.kPixels;case Au.kUPercent:return O.kPercentage;case Au.kUTime:return O.kSeconds;case Au.kUAngle:return O.kDegrees;case Au.kUFrequency:return O.kHertz;case Au.kUResolution:return O.kDotsPerPixel;default:return O.kUnknown}},t.conversionToCanonicalUnitsScaleFactor=function(t){var e=1;switch(t){case O.kPixels:case O.kUserUnits:case O.kDegrees:case O.kSeconds:case O.kHertz:break;case O.kMilliseconds:e=.001;break;case O.kCentimeters:case O.kDotsPerCentimeter:case O.kMillimeters:case O.kQuarterMillimeters:case O.kInches:case O.kDotsPerInch:case O.kPoints:case O.kPicas:break;case O.kRadians:e=180/Math.PI;break;case O.kGradians:e=.9;break;case O.kTurns:e=360;break;case O.kKilohertz:e=1e3}return e},t.isAngle=function(t){return t===O.kDegrees||t===O.kRadians||t===O.kGradians||t===O.kTurns},t.isViewportPercentageLength=function(t){return t>=O.kViewportWidth&&t<=O.kDynamicViewportMax},t.isContainerPercentageLength=function(t){return t>=O.kContainerWidth&&t<=O.kContainerMax},t.isLength=function(t){return t>=O.kEms&&t<=O.kUserUnits||t==O.kQuirkyEms},t.isRelativeUnit=function(t){return t===O.kPercentage||t===O.kEms||t===O.kExs||t===O.kRems||t===O.kChs||this.isViewportPercentageLength(t)||this.isContainerPercentageLength(t)},t.isTime=function(t){return t===O.kSeconds||t===O.kMilliseconds},t.isFrequency=function(t){return t==O.kHertz||t==O.kKilohertz},t.isResolution=function(t){return t>=O.kDotsPerPixel&&t<=O.kDotsPerCentimeter},t.isFlex=function(t){return t===O.kFraction};var e=t.prototype;return e.toString=function(){return this.buildCSSText(Cu.kNo,Nu.kNo,"")},e.isNumericValue=function(){return this.getType()>=Lu.kUnitType&&this.getType()<=Lu.kClampType},t}(),G=function(n){function t(t){var e=n.call(this)||this;return e.colorSpace=void 0,e.colorSpace=t,e}g(t,n);var e=t.prototype;return e.getType=function(){return Lu.kColorType},e.to=function(t){return this},t}(Zu),Ku=function(n){function t(t){var e=n.call(this)||this;return e.value=void 0,e.value=t,e}g(t,n);var e=t.prototype;return e.clone=function(){return new t(this.value)},e.getType=function(){return Lu.kKeywordType},e.buildCSSText=function(t,e,n){return n+this.value},t}(Zu);(J=qu=qu||{}).kAdd="+",J.kSubtract="-",J.kMultiply="*",J.kDivide="/",J.kMin="min",J.kMax="max",J.kClamp="clamp",J.kInvalid="",(h=Xu=Xu||{})[h.kLength=0]="kLength",h[h.kAngle=1]="kAngle",h[h.kTime=2]="kTime",h[h.kFrequency=3]="kFrequency",h[h.kResolution=4]="kResolution",h[h.kFlex=5]="kFlex",h[h.kPercent=6]="kPercent",h[h.kNumBaseTypes=7]="kNumBaseTypes";var $u=function(){function t(t,e){void 0===t&&(t=O.kNumber),void 0===e&&(e=1),this.exponents=[],this.numNonZeroEntries=0,this.percentHint=Xu.kPercent,this.hasPercentHint=!1,this.exponents=new Array(Xu.kNumBaseTypes).fill(0),t!==O.kNumber&&this.setExponent(function(t){switch(ws(t,O.kNumber),t){case O.kEms:case O.kExs:case O.kPixels:case O.kCentimeters:case O.kMillimeters:case O.kQuarterMillimeters:case O.kInches:case O.kPoints:case O.kPicas:case O.kUserUnits:case O.kViewportWidth:case O.kViewportHeight:case O.kViewportInlineSize:case O.kViewportBlockSize:case O.kViewportMin:case O.kViewportMax:case O.kSmallViewportWidth:case O.kSmallViewportHeight:case O.kSmallViewportInlineSize:case O.kSmallViewportBlockSize:case O.kSmallViewportMin:case O.kSmallViewportMax:case O.kLargeViewportWidth:case O.kLargeViewportHeight:case O.kLargeViewportInlineSize:case O.kLargeViewportBlockSize:case O.kLargeViewportMin:case O.kLargeViewportMax:case O.kDynamicViewportWidth:case O.kDynamicViewportHeight:case O.kDynamicViewportInlineSize:case O.kDynamicViewportBlockSize:case O.kDynamicViewportMin:case O.kDynamicViewportMax:case O.kContainerWidth:case O.kContainerHeight:case O.kContainerInlineSize:case O.kContainerBlockSize:case O.kContainerMin:case O.kContainerMax:case O.kRems:case O.kChs:return Xu.kLength;case O.kMilliseconds:case O.kSeconds:return Xu.kTime;case O.kDegrees:case O.kRadians:case O.kGradians:case O.kTurns:return Xu.kAngle;case O.kHertz:case O.kKilohertz:return Xu.kFrequency;case O.kDotsPerPixel:case O.kDotsPerInch:case O.kDotsPerCentimeter:return Xu.kResolution;case O.kFraction:return Xu.kFlex;case O.kPercentage:return Xu.kPercent;default:return Xu.kLength}}(t),e)}var e=t.prototype;return e.applyPercentHint=function(t){ws(t,Xu.kPercent),this.setExponent(t,this.exponent(t)+this.exponent(Xu.kPercent)),this.setExponent(Xu.kPercent,0),this.percentHint=t,this.hasPercentHint=!0},e.hasNonZeroEntries=function(){return 0<this.numNonZeroEntries},e.isOnlyNonZeroEntry=function(t,e){return ws(e,0),1===this.numNonZeroEntries&&this.exponent(t)===e},e.exponent=function(t){return this.exponents[t]},e.setExponent=function(t,e){var n=this.exponents[t];0==n&&0!==e?this.numNonZeroEntries++:0!==n&&0==e&&this.numNonZeroEntries--,this.exponents[t]=e},t.negateExponents=function(t){return t.exponents.forEach(function(t){return-1*t}),t},e.matchesBaseType=function(t){return ws(t,Xu.kPercent),this.isOnlyNonZeroEntry(t,1)&&!this.hasPercentHint},e.matchesPercentage=function(){return this.isOnlyNonZeroEntry(Xu.kPercent,1)},e.matchesBaseTypePercentage=function(t){return ws(t,Xu.kPercent),this.isOnlyNonZeroEntry(t,1)||this.isOnlyNonZeroEntry(Xu.kPercent,1)},e.matchesNumber=function(){return!this.hasNonZeroEntries()&&!this.hasPercentHint},e.matchesNumberPercentage=function(){return!this.hasNonZeroEntries()||this.isOnlyNonZeroEntry(Xu.kPercent,1)},t.add=function(t,e,n){if(!t.hasPercentHint||!e.hasPercentHint||t.percentHint==e.percentHint){t.hasPercentHint?e.applyPercentHint(t.percentHint):e.hasPercentHint&&t.applyPercentHint(e.percentHint);var r=t.percentHint,i=e.percentHint;if(r!==i)throw new Error;for(var o=0;o<Xu.kNumBaseTypes;++o){var a=o;if(t.exponents[o]!==e.exponents[o]&&(a!==Xu.kPercent&&(t.applyPercentHint(a),e.applyPercentHint(a)),t.exponents[o]!==e.exponents[o]))return t}}return t},t.multiply=function(t,e,n){if(!t.hasPercentHint||!e.hasPercentHint||t.percentHint==e.percentHint){t.hasPercentHint?e.applyPercentHint(t.percentHint):e.hasPercentHint&&t.applyPercentHint(e.percentHint);for(var r=0;r<Xu.kNumBaseTypes;++r){var i=r;t.setExponent(i,t.exponent(i)+e.exponent(i))}}return t},t}(),Ju=function(n){function f(t){var e=n.call(this)||this;return e.type_=void 0,e.type_=t,e}g(f,n),f.fromNumberish=function(t){return"number"==typeof t?new P(t,O.kNumber):t},f.fromPercentish=function(t){return"number"==typeof t?new P(100*t,O.kPercentage):t};var t=f.prototype;return t.getType=function(){return Lu.kUnknownType},t.equals=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return Qu(n).every(function(t){return e.equals(t)})},t.add=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Qu(e),i=(tc(Lu.kSumType,r,this),nc(r,qu.kAdd));return i||cc.create(r)},t.sub=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=(r=Qu(e)).map(function(t){return t.negate()}),i=(tc(Lu.kSumType,r,this),nc(r,qu.kAdd));return i||cc.create(r)},t.mul=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Qu(e),i=(tc(Lu.kProductType,r,this),rc(r));return i||hc.create(r)},t.div=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=(r=Qu(e)).map(function(t){return t.invert()}),i=(tc(Lu.kProductType,r,this),rc(r));return i||hc.create(r)},t.min=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Qu(e),i=(tc(Lu.kMinType,r,this),nc(r,qu.kMin));return i||lc.create(r)},t.max=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=Qu(e),i=(tc(Lu.kMaxType,r,this),nc(r,qu.kMax));return i||uc.create(r)},t.to=function(t){var e=this.sumValue();if(0===e.length||1!==e.length)return null;e=ec(e[0]);return e?(t="string"==typeof t?P.unitFromName(t):t,e.convertTo(t)):null},t.toSum=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];if(!f.isValidUnit(f.unitFromName(o)))return null}var a=this.sumValue();if(!a.length)return null;for(var s=[],l=cs(a);!(u=l()).done;){var u=ec(u.value);if(!u)return null;s.push(u)}if(0===e.length)return s.sort(function(t,e){return t.unit-e.unit}),xs(!!(a=cc.create(s))),a;for(var c=[],h=0,d=e;h<d.length;h++)!function(){var t=d[h],r=f.unitFromName(t),t=(xs(f.isValidUnit(r)),s.reduce(function(t,e,n){return e&&(e=e.convertTo(r))&&(t+=e.value,s[n]=null),t},0));c.push(new P(t,r))}();if(s.some(function(t){return!!t}))throw new Error("There were leftover terms that were not converted");return cc.create(c)},t.type=function(){var t={length:0,angle:0,time:0,frequency:0,resolution:0,flex:0,percent:0,percentHint:"length"},e=this.type_.exponent(Xu.kLength);return e&&(t.length=e),(e=this.type_.exponent(Xu.kAngle))&&(t.angle=e),(e=this.type_.exponent(Xu.kTime))&&(t.time=e),(e=this.type_.exponent(Xu.kFrequency))&&(t.frequency=e),(e=this.type_.exponent(Xu.kResolution))&&(t.resolution=e),(e=this.type_.exponent(Xu.kFlex))&&(t.flex=e),(e=this.type_.exponent(Xu.kPercent))&&(t.percent=e),this.type_.hasPercentHint&&(t.percentHint=function(t){switch(t){case Xu.kLength:return"length";case Xu.kAngle:return"angle";case Xu.kTime:return"time";case Xu.kFrequency:return"frequency";case Xu.kResolution:return"resolution";case Xu.kFlex:return"flex";case Xu.kPercent:return"percent"}return""}(this.type_.percentHint)),t},f.isValidUnit=function(t){return t!==O.kUserUnits&&!!(t===O.kNumber||t==O.kPercentage||this.isLength(t)||this.isAngle(t)||this.isTime(t)||this.isFrequency(t)||this.isResolution(t)||this.isFlex(t))},t.negate=function(){return oc.create(this)},t.invert=function(){return ic.create(this)},f}(Zu);function Qu(t){return t.map(Ju.fromNumberish)}function tc(t,e,n){xs(!!n),n.getType()===t?e.unshift.apply(e,n.numericValues()):e.unshift(n)}function ec(t){return 0===Object.keys(t.units).length?new P(t.value):1===Object.keys(t.units).length&&1===t.units[Object.keys(t.units)[0]]?new P(t.value,Number(Object.keys(t.units)[0])):null}function nc(t,e){xs(!!t.length);var n=t[0]instanceof P?t[0]:null;if(!n)return null;for(var r=n.value,i=1;i<t.length;i++){var o=t[i]instanceof P?t[i]:null;if(!o||o.unit!==n.unit)return null;e===qu.kAdd?r+=o.value:e===qu.kMax?r=Math.max(r,o.value):e===qu.kMin&&(r=Math.min(r,o.value))}return new P(r,n.unit)}function rc(t){xs(!!t.length);for(var e=O.kNumber,n=1,r=0;r<t.length;r++){var i=t[r]instanceof P?t[r]:null;if(!i)return null;if(i.unit!==O.kNumber){if(e!==O.kNumber)return null;e=i.unit}n*=i.value}return new P(n,e)}var P=function(r){function s(t,e){var n,e="string"==typeof(e=void 0===e?O.kNumber:e)?s.unitFromName(e):e;return xs(s.isValidUnit(e)),(n=r.call(this,new $u(e))||this).unit=void 0,n.value=void 0,n.unit=e,n.value=t,n}g(s,r),s.toCanonicalUnit=function(t){return this.canonicalUnitTypeForCategory(this.unitTypeToUnitCategory(t))},s.toCanonicalUnitIfPossible=function(t){var e=this.toCanonicalUnit(t);return e===O.kUnknown?t:e},s.formatInfinityOrNaN=function(t,e){void 0===e&&(e="");return(Number.isFinite(t)?(xs(Number.isNaN(t)),"NaN"):0<t?"infinity":"-infinity")+e},s.formatNumber=function(t,e){return t+(e=void 0===e?"":e)};var t=s.prototype;return t.clone=function(){return new s(this.value,this.unit)},t.convertTo=function(t){if(this.unit===t)return new s(this.value,this.unit);var e=s.toCanonicalUnit(this.unit);if(e!==s.toCanonicalUnit(t)||e===O.kUnknown)return null;e=Zu.conversionToCanonicalUnitsScaleFactor(this.unit)/Zu.conversionToCanonicalUnitsScaleFactor(t);return new s(this.value*e,t)},t.equals=function(t){return this.value===t.value&&this.unit===t.unit},t.getType=function(){return Lu.kUnitType},t.sumValue=function(){var t=[],e={};return this.unit!==O.kNumber&&(e[s.toCanonicalUnitIfPossible(this.unit)]=1),t.push({value:this.value*Zu.conversionToCanonicalUnitsScaleFactor(this.unit),units:e}),t},t.negate=function(){return new s(-this.value,this.unit)},t.invert=function(){return this.unit===O.kNumber?0===this.value?null:new s(1/this.value,this.unit):ic.create(this)},t.buildCSSText=function(t,e,n){switch(this.unit){case O.kUnknown:break;case O.kInteger:i=Number(this.value).toFixed(0);break;case O.kNumber:case O.kPercentage:case O.kEms:case O.kQuirkyEms:case O.kExs:case O.kRems:case O.kChs:case O.kPixels:case O.kCentimeters:case O.kDotsPerPixel:case O.kDotsPerInch:case O.kDotsPerCentimeter:case O.kMillimeters:case O.kQuarterMillimeters:case O.kInches:case O.kPoints:case O.kPicas:case O.kUserUnits:case O.kDegrees:case O.kRadians:case O.kGradians:case O.kMilliseconds:case O.kSeconds:case O.kHertz:case O.kKilohertz:case O.kTurns:case O.kFraction:case O.kViewportWidth:case O.kViewportHeight:case O.kViewportInlineSize:case O.kViewportBlockSize:case O.kViewportMin:case O.kViewportMax:case O.kSmallViewportWidth:case O.kSmallViewportHeight:case O.kSmallViewportInlineSize:case O.kSmallViewportBlockSize:case O.kSmallViewportMin:case O.kSmallViewportMax:case O.kLargeViewportWidth:case O.kLargeViewportHeight:case O.kLargeViewportInlineSize:case O.kLargeViewportBlockSize:case O.kLargeViewportMin:case O.kLargeViewportMax:case O.kDynamicViewportWidth:case O.kDynamicViewportHeight:case O.kDynamicViewportInlineSize:case O.kDynamicViewportBlockSize:case O.kDynamicViewportMin:case O.kDynamicViewportMax:case O.kContainerWidth:case O.kContainerHeight:case O.kContainerInlineSize:case O.kContainerBlockSize:case O.kContainerMin:case O.kContainerMax:var r,i,o=this.value,a=s.unitTypeToString(this.unit);i=o<-999999||999999<o?(r=s.unitTypeToString(this.unit),!Number.isFinite(o)||Number.isNaN(o)?s.formatInfinityOrNaN(o,r):s.formatNumber(o,r)):""+o+a}return n+=i},s}(Ju),Z=function(t){function e(){return t.apply(this,arguments)||this}return g(e,t),e.prototype.isUnitValue=function(){return!1},e}(Ju),ic=function(n){function e(t,e){e=n.call(this,e)||this;return e.value=void 0,e.operator="invert",e.value=t,e}g(e,n),e.create=function(t){return new e(t,$u.negateExponents(t.type_))};var t=e.prototype;return t.clone=function(){return new e(this.value,this.type_)},t.getType=function(){return Lu.kInvertType},t.equals=function(t){return t.getType()===Lu.kInvertType&&this.value.equals(t.value)},t.sumValue=function(){var e=this.value.sumValue();return 0===e.length||1!==e.length||0===e[0].value?null:(Object.keys(e[0].units).forEach(function(t){e[0].units[t]*=-1}),e[0].value=1/e[0].value,e)},t.buildCSSText=function(t,e,n){return e==Nu.kNo&&(n+=t===Cu.kYes?"(":"calc("),n=this.value.buildCSSText(Cu.kYes,Nu.kNo,n+="1 / "),e===Nu.kNo&&(n+=")"),n},e}(Z),oc=function(n){function e(t,e){e=n.call(this,e)||this;return e.value=void 0,e.operator="negate",e.value=t,e}g(e,n),e.create=function(t){return new e(t,t.type_)};var t=e.prototype;return t.clone=function(){return new e(this.value,this.type_)},t.getType=function(){return Lu.kNegateType},t.equals=function(t){return t.getType()===Lu.kNegateType&&this.value.equals(t.value)},t.sumValue=function(){var t=this.value.sumValue();return 0===t.length?null:(t.forEach(function(t){t.value*=-1}),t)},t.buildCSSText=function(t,e,n){return e==Nu.kNo&&(n+=t===Cu.kYes?"(":"calc("),n=this.value.buildCSSText(Cu.kYes,Nu.kNo,n+="-"),e===Nu.kNo&&(n+=")"),n},e}(Z);function ac(t,e){for(var n=t[0].type_,r=1;r<t.length;r++)n=e(n,t[r].type_,!1);return n}var sc,at=function(n){function t(t,e){e=n.call(this,e)||this;return e.values=void 0,e.values=t,e}g(t,n);var e=t.prototype;return e.numericValues=function(){return this.values},e.equals=function(n){return this.getType()===n.getType()&&this.values.every(function(t,e){return t.equals(n.values[e])})},t}(Z),lc=function(i){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).operator="min",t}g(e,i),e.create=function(t){return new e(t,ac(t,$u.add))};var t=e.prototype;return t.clone=function(){return new e(this.values,this.type_)},t.getType=function(){return Lu.kMinType},t.sumValue=function(){var t=this.numericValues()[0].sumValue();if(!t.length)return null;for(var e=cs(this.numericValues());!(n=e()).done;){var n=n.value.sumValue();if(!n.length||JSON.stringify(n[0].units)!==JSON.stringify(t[0].units))return null;n[0].value<t[0].value&&(t=n)}return t},t.buildCSSText=function(t,e,n){n+="min(";for(var r,i=!0,o=cs(this.numericValues());!(r=o()).done;)i||(n+=", "),i=!1,n=r.value.buildCSSText(Cu.kYes,Nu.kYes,n);return n+=")"},e}(at),uc=function(i){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).operator="max",t}g(e,i),e.create=function(t){return new e(t,ac(t,$u.add))};var t=e.prototype;return t.clone=function(){return new e(this.values,this.type_)},t.getType=function(){return Lu.kMaxType},t.sumValue=function(){var t=this.numericValues()[0].sumValue();if(!t.length)return null;for(var e=cs(this.numericValues());!(n=e()).done;){var n=n.value.sumValue();if(!n.length||JSON.stringify(n[0].units)!==JSON.stringify(t[0].units))return null;n[0].value<t[0].value&&(t=n)}return t},t.buildCSSText=function(t,e,n){n+="max(";for(var r,i=!0,o=cs(this.numericValues());!(r=o()).done;)i||(n+=", "),i=!1,n=r.value.buildCSSText(Cu.kYes,Nu.kYes,n);return n+=")"},e}(at),cc=function(i){function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).operator="sum",t}g(e,i),e.create=function(t){return new e(t,ac(t,$u.add))},e.numericTypeFromUnitMap=function(n){var r=new $u;return Object.keys(n).forEach(function(t){var e=n[t];r=$u.multiply(r,new $u(Number(t),e),!1),xs(!0)}),r},e.canCreateNumericTypeFromSumValue=function(t){var e=this,n=(xs(!!t.length),this.numericTypeFromUnitMap(t[0].units));return t.every(function(t){return $u.add(n,e.numericTypeFromUnitMap(t.units),!1),!0})};var t=e.prototype;return t.clone=function(){return new e(this.values,this.type_)},t.getType=function(){return Lu.kSumType},t.sumValue=function(){var n=[];return this.numericValues().forEach(function(t){t=t.sumValue();if(!t.length)return null;t.forEach(function(e){var t=n.findIndex(function(t){return JSON.stringify(t.units)===JSON.stringify(e.units)});-1===t?n.push(is({},e)):n[t].value+=e.value})}),e.canCreateNumericTypeFromSumValue(n)?n:null},t.buildCSSText=function(t,e,n){e==Nu.kNo&&(n+=t===Cu.kYes?"(":"calc(");var r=this.numericValues();n=r[0].buildCSSText(Cu.kYes,Nu.kNo,n);for(var i=1;i<r.length;i++){var o=r[i];n=o.getType()===Lu.kNegateType?(n+=" - ",o.value.buildCSSText(Cu.kYes,Nu.kNo,n)):(n+=" + ",o.buildCSSText(Cu.kYes,Nu.kNo,n))}return e===Nu.kNo&&(n+=")"),n},e}(at),hc=function(i){function o(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).operator="product",t}g(o,i),o.create=function(t){return new o(t,ac(t,$u.multiply))},o.multiplyUnitMaps=function(n,r){return Object.keys(r).forEach(function(t){ws(r[t].value,0);var e=t in n?n[t].value:0;e+r[t].value===0?delete n[t]:n[t]=e+r[t].value}),n};var t=o.prototype;return t.clone=function(){return new o(this.values,this.type_)},t.getType=function(){return Lu.kProductType},t.sumValue=function(){var e=[{value:1,units:{}}];return this.numericValues().forEach(function(t){var n=t.sumValue();if(!n.length)return null;var r=[];e.forEach(function(e){n.forEach(function(t){r.push({value:e.value*t.value,units:o.multiplyUnitMaps(e.units,t.units)})})}),e=r}),e},t.buildCSSText=function(t,e,n){e==Nu.kNo&&(n+=t===Cu.kYes?"(":"calc(");var r=this.numericValues();n=r[0].buildCSSText(Cu.kYes,Nu.kNo,n);for(var i=1;i<r.length;i++){var o=r[i];n=o.getType()===Lu.kInvertType?(n+=" / ",o.value.buildCSSText(Cu.kYes,Nu.kNo,n)):(n+=" * ",o.buildCSSText(Cu.kYes,Nu.kNo,n))}return e===Nu.kNo&&(n+=")"),n},o}(at),dc=new P(0,"px"),fc=new P(0,"deg"),pc=function(a){function t(t,e,n,r,i){var o;return void 0===r&&(r=1),void 0===i&&(i=!1),(o=a.call(this,"rgb")||this).r=void 0,o.g=void 0,o.b=void 0,o.alpha=void 0,o.isNone=void 0,o.r=t,o.g=e,o.b=n,o.alpha=r,o.isNone=i,o}g(t,a);var e=t.prototype;return e.clone=function(){return new t(this.r,this.g,this.b,this.alpha)},e.buildCSSText=function(t,e,n){return n+("rgba("+this.r+","+this.g+","+this.b+","+this.alpha)+")"},t}(G),yc=((W=sc=sc||{})[W.Constant=0]="Constant",W[W.LinearGradient=1]="LinearGradient",W[W.RadialGradient=2]="RadialGradient",function(r){function t(t,e){var n=r.call(this)||this;return n.type=void 0,n.value=void 0,n.type=t,n.value=e,n}g(t,r);var e=t.prototype;return e.clone=function(){return new t(this.type,this.value)},e.buildCSSText=function(t,e,n){return n},e.getType=function(){return Lu.kColorType},t}(Zu)),gc=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,vc=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,mc=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,bc=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;var xc={left:180,top:-90,bottom:90,right:0,"left top":225,"top left":225,"left bottom":135,"bottom left":135,"right top":-45,"top right":-45,"right bottom":45,"bottom right":45},wc=Kl(function(t){t="angular"===t.type?Number(t.value):xc[t.value]||0;return t}),kc=Kl(function(t){var e,n=.5,r=.5;return"position"===(null==t?void 0:t.type)&&(e=(t=t.value).x,t=t.y,"position-keyword"===(null==e?void 0:e.type)&&("left"===e.value?n=0:"center"===e.value?n=.5:"right"===e.value?n=1:"top"===e.value?r=0:"bottom"===e.value&&(r=1)),"position-keyword"===(null==t?void 0:t.type)&&("left"===t.value?n=0:"center"===t.value?r=.5:"right"===t.value?n=1:"top"===t.value?r=0:"bottom"===t.value&&(r=1)),"%"===(null==e?void 0:e.type)&&(n=Number(e.value)/100),"%"===(null==t?void 0:t.type)&&(r=Number(e.value)/100)),{cx:n,cy:r}}),Ec=Kl(function(d){if(-1<d.indexOf("linear")||-1<d.indexOf("radial"))return vl(d).map(function(t){for(var e=t.type,n=t.orientation,t=t.colorStops,r=t,i=r.length,o=(r[i-1].length=null!=(h=r[i-1].length)?h:{type:"%",value:"100"},1<i&&(r[0].length=null!=(h=r[0].length)?h:{type:"%",value:"0"}),0),a=Number(r[0].length.value),s=1;s<i;s++){var l,u=null==(l=r[s].length)?void 0:l.value;if(!T(u)&&!T(a)){for(var c=1;c<s-o;c++)r[o+c].length={type:"%",value:""+(a+(Number(u)-a)*c/(s-o))};o=s,a=Number(u)}}var h=t.map(function(t){return[Number(t.length.value)/100,(e=(t=t).type,t=t.value,"hex"===e?"#"+t:"literal"===e?t:"rgb"===e?"rgb("+t.join(",")+")":"rgba("+t.join(",")+")")];var e});return"linear-gradient"===e?new yc(sc.LinearGradient,{angle:n?wc(n):0,steps:h,hash:d}):"radial-gradient"===e&&"shape"===(n=n||[{type:"shape",value:"circle"}])[0].type&&"circle"===n[0].value?(e=(t=kc(n[0].at)).cx,n=t.cy,new yc(sc.RadialGradient,{cx:e,cy:n,steps:h,hash:d})):void 0});var t=d[0];if("("===d[1]||"("===d[2])if("l"===t){var e=gc.exec(d);if(e)return n=(null==(n=e[2].match(bc))?void 0:n.map(function(t){return t.split(":")}))||[],[new yc(sc.LinearGradient,{angle:parseFloat(e[1]),steps:n.map(function(t){var e=t[0],t=t[1];return[Number(e),t]}),hash:d})]}else if("r"===t){e=function(t){var e=vc.exec(t);if(e)return{cx:.5,cy:.5,steps:((null==(e=e[4].match(bc))?void 0:e.map(function(t){return t.split(":")}))||[]).map(function(t){var e=t[0],t=t[1];return[Number(e),t]}),hash:t};return null}(d);if(e){if(!Jl(e))return[new yc(sc.RadialGradient,e)];d=e}}else if("p"===t){var n=d;if(n=mc.exec(n)){var r=n[1],n=n[2];switch(r){case"a":r="repeat";break;case"x":r="repeat-x";break;case"y":r="repeat-y";break;default:r="no-repeat"}return{image:n,repetition:r}}return null}});function _c(t){return Ms(t)&&t.image}var Sc=Kl(function(t){if(_c(t))return is({repetition:"repeat"},t);if("transparent"===(t=T(t)?"":t))return new pc(0,0,0,0);var e=Ec(t="currentColor"===t?"black":t);if(e)return e;e=Go(t),t=[0,0,0,0];return null!==e&&(t[0]=e.r||0,t[1]=e.g||0,t[2]=e.b||0,t[3]=e.opacity),as(pc,t)});function Mc(t,e){if(t instanceof pc&&e instanceof pc)return[[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],function(t){var e=t.slice();if(e[3])for(var n=0;n<3;n++)e[n]=Math.round(zs(e[n],0,255));return e[3]=zs(e[3],0,1),"rgba("+e.join(",")+")"}]}var Tc,Oc=function(){function g(t,e){this.center=v(),this.halfExtents=v(),this.min=v(),this.max=v(),this.update(t,e)}g.isEmpty=function(t){return!t||0===t.halfExtents[0]&&0===t.halfExtents[1]&&0===t.halfExtents[2]};var t=g.prototype;return t.update=function(t,e){t&&Vi(this.center,t),e&&Vi(this.halfExtents,e||E(0,0,0)),this.min=Ji(this.min,this.center,this.halfExtents),this.max=Hi(this.max,this.center,this.halfExtents)},t.setMinMax=function(t,e){Hi(this.center,e,t),Ui(this.center,this.center,.5),Ji(this.halfExtents,e,t),Ui(this.halfExtents,this.halfExtents,.5),Vi(this.min,t),Vi(this.max,e)},t.getMin=function(){return this.min},t.getMax=function(){return this.max},t.add=function(t){var e,n,r,i,o,a,s,l,u,c,h,d,f,p,y;g.isEmpty(t)||(g.isEmpty(this)?this.setMinMax(t.getMin(),t.getMax()):(n=(e=this.center)[0],p=e[1],o=e[2],i=(r=this.halfExtents)[0],h=r[1],a=r[2],l=(d=t.center)[0],y=d[1],d=d[2],u=(t=t.halfExtents)[0],(f=y-(c=t[1]))<(s=p-h)&&(s=f),(f=p+h)<(p=y+c)&&(f=p),(y=d-(h=t[2]))<(c=o-a)&&(c=y),(p=o+a)<(t=d+h)&&(p=t),e[0]=.5*((o=(y=l-u)<(o=n-i)?y:o)+(a=(a=n+i)<(d=l+u)?d:a)),e[1]=.5*(s+f),e[2]=.5*(c+p),r[0]=.5*(a-o),r[1]=.5*(f-s),r[2]=.5*(p-c),this.min[0]=o,this.min[1]=s,this.min[2]=c,this.max[0]=a,this.max[1]=f,this.max[2]=p))},t.setFromTransformedAABB=function(t,e){var n=this.center,r=this.halfExtents,i=t.center,t=t.halfExtents,o=e[0],a=e[4],s=e[8],l=e[1],u=e[5],c=e[9],h=e[2],d=e[6],f=e[10],p=Math.abs(o),y=Math.abs(a),g=Math.abs(s),v=Math.abs(l),m=Math.abs(u),b=Math.abs(c),x=Math.abs(h),w=Math.abs(d),k=Math.abs(f);Gi(n,e[12]+o*i[0]+a*i[1]+s*i[2],e[13]+l*i[0]+u*i[1]+c*i[2],e[14]+h*i[0]+d*i[1]+f*i[2]),Gi(r,p*t[0]+y*t[1]+g*t[2],v*t[0]+m*t[1]+b*t[2],x*t[0]+w*t[1]+k*t[2]),this.min=Ji(this.min,n,r),this.max=Hi(this.max,n,r)},t.intersects=function(t){var e=this.getMax(),n=this.getMin(),r=t.getMax(),t=t.getMin();return n[0]<=r[0]&&e[0]>=t[0]&&n[1]<=r[1]&&e[1]>=t[1]&&n[2]<=r[2]&&e[2]>=t[2]},t.intersection=function(t){if(!this.intersects(t))return null;var e,n,r=new g,i=(n=v(),i=this.getMin(),e=t.getMin(),n[0]=Math.max(i[0],e[0]),n[1]=Math.max(i[1],e[1]),n[2]=Math.max(i[2],e[2]),n);return e=v(),n=this.getMax(),t=t.getMax(),e[0]=Math.min(n[0],t[0]),e[1]=Math.min(n[1],t[1]),e[2]=Math.min(n[2],t[2]),r.setMinMax(i,e),r},t.containsPoint=function(t){var e=this.getMin(),n=this.getMax();return!(t[0]<e[0]||t[0]>n[0]||t[1]<e[1]||t[1]>n[1]||t[2]<e[2]||t[2]>n[2])},t.getNegativeFarPoint=function(t){return 273===t.pnVertexFlag?Vi(v(),this.min):272===t.pnVertexFlag?E(this.min[0],this.min[1],this.max[2]):257===t.pnVertexFlag?E(this.min[0],this.max[1],this.min[2]):256===t.pnVertexFlag?E(this.min[0],this.max[1],this.max[2]):17===t.pnVertexFlag?E(this.max[0],this.min[1],this.min[2]):16===t.pnVertexFlag?E(this.max[0],this.min[1],this.max[2]):1===t.pnVertexFlag?E(this.max[0],this.max[1],this.min[2]):E(this.max[0],this.max[1],this.max[2])},t.getPositiveFarPoint=function(t){return 273===t.pnVertexFlag?Vi(v(),this.max):272===t.pnVertexFlag?E(this.max[0],this.max[1],this.min[2]):257===t.pnVertexFlag?E(this.max[0],this.min[1],this.max[2]):256===t.pnVertexFlag?E(this.max[0],this.min[1],this.min[2]):17===t.pnVertexFlag?E(this.min[0],this.max[1],this.max[2]):16===t.pnVertexFlag?E(this.min[0],this.max[1],this.min[2]):1===t.pnVertexFlag?E(this.min[0],this.min[1],this.max[2]):E(this.min[0],this.min[1],this.min[2])},g}(),Pc=(v(),function(){function t(t,e){this.distance=void 0,this.normal=void 0,this.pnVertexFlag=void 0,this.distance=t||0,this.normal=e||E(0,1,0),this.updatePNVertexFlag()}var e=t.prototype;return e.updatePNVertexFlag=function(){this.pnVertexFlag=(Number(0<=this.normal[0])<<8)+(Number(0<=this.normal[1])<<4)+Number(0<=this.normal[2])},e.distanceToPoint=function(t){return qi(t,this.normal)-this.distance},e.normalize=function(){var t=1/to(this.normal);Ui(this.normal,this.normal,t),this.distance*=t},e.intersectsLine=function(t,e,n){var r=this.distanceToPoint(t),r=r/(r-this.distanceToPoint(e)),i=0<=r&&r<=1;return i&&n&&Xi(n,t,e,r),i},t}()),Ac=((pt=Tc=Tc||{})[pt.OUTSIDE=4294967295]="OUTSIDE",pt[pt.INSIDE=0]="INSIDE",pt[pt.INDETERMINATE=2147483647]="INDETERMINATE",function(){function t(t){if(this.planes=[],t)this.planes=t;else for(var e=0;e<6;e++)this.planes.push(new Pc)}return t.prototype.extractFromVPMatrix=function(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],s=t[6],l=t[7],u=t[8],c=t[9],h=t[10],d=t[11],f=t[12],p=t[13],y=t[14],t=t[15];Gi(this.planes[0].normal,i-e,l-o,d-u),this.planes[0].distance=t-f,Gi(this.planes[1].normal,i+e,l+o,d+u),this.planes[1].distance=t+f,Gi(this.planes[2].normal,i+n,l+a,d+c),this.planes[2].distance=t+p,Gi(this.planes[3].normal,i-n,l-a,d-c),this.planes[3].distance=t-p,Gi(this.planes[4].normal,i-r,l-s,d-h),this.planes[4].distance=t-y,Gi(this.planes[5].normal,i+r,l+s,d+h),this.planes[5].distance=t+y,this.planes.forEach(function(t){t.normalize(),t.updatePNVertexFlag()})},t}()),Cc=(v(),v(),v(),v(),v(),function(){function t(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.x=0,this.y=0,this.x=t,this.y=e}var e=t.prototype;return e.clone=function(){return new t(this.x,this.y)},e.copyFrom=function(t){this.x=t.x,this.y=t.y},t}()),Nc=function(){function t(t,e,n,r){this.x=void 0,this.y=void 0,this.width=void 0,this.height=void 0,this.left=void 0,this.right=void 0,this.top=void 0,this.bottom=void 0,this.x=t,this.y=e,this.width=n,this.height=r,this.left=t,this.right=t+n,this.top=e,this.bottom=e+r}return t.prototype.toJSON=function(){},t}();function Lc(t,e){if(T(e))return new P(0,"px");if(e=(""+e).trim().toLowerCase(),isFinite(Number(e))){if(0<="px".search(t))return new P(Number(e),"px");if(0<="deg".search(t))return new P(Number(e),"deg")}var n=[],r=(e=e.replace(t,function(t){return n.push(t),"U"+t}),"U("+t.source+")");return n.map(function(t){return new P(Number(e.replace(new RegExp("U"+t,"g"),"").replace(new RegExp(r,"g"),"*0")),t)})[0]}function Ic(t){return Lc(new RegExp("px","g"),t)}function Rc(t){return Es(t)?new P(t,"px"):Lc(new RegExp("px|%|em|rem","g"),t)}function Dc(t){return Lc(new RegExp("deg|rad|grad|turn","g"),t)}function jc(t,e,n,r,i){void 0===i&&(i=0);var o="",a=t.value||0,s=e.value||0,l=P.toCanonicalUnit(t.unit),u=t.convertTo(l),l=e.convertTo(l);return u&&l?(a=u.value,s=l.value,o=P.unitTypeToString(t.unit)):(P.isLength(t.unit)||P.isLength(e.unit))&&(a=Vc(t,i,n),s=Vc(e,i,n),o="px"),[a,s,function(t){return(t=r?Math.max(t,0):t)+o}]}function Bc(t){var e=0;return t.unit===O.kDegrees?e=t.value:t.unit===O.kRadians?e=Ws(Number(t.value)):t.unit===O.kTurns&&(e=360*Number(t.value)),e}function Fc(t){return Jl(t)?t.split(" ").map(function(t){return Rc(t)}):t.map(function(t){return Rc(t.toString())})}function zc(t,e,n){var r;if(t.length===e.length)return r=t[0].unit,[t.map(function(t){return t.value}),e.map(function(t){return t.value}),function(t){return t.map(function(t){return new P(t,r)}).join(" ")}]}function Vc(t,e,n){return t.unit===O.kPixels?Number(t.value):t.unit===O.kPercentage&&n?(n=n.nodeName===M.GROUP?n.getLocalBounds():n.getGeometryBounds(),r=0,Oc.isEmpty(n)||(r=2*n.halfExtents[e]),Number(t.value)/100*r):0;var r}function Gc(t){return t.toString()}function Hc(t){return"number"==typeof t?new P(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?new P(Number(t)):new P(0)}function Wc(t,e){return[t.value,e.value,Gc]}function Uc(n,r){return function(t,e){return[t.value,e.value,function(t){return Gc(zs(t,n,r))}]}}var Yc=Kl(function(e){var n;try{if(Array.isArray(e)&&0===e.length)throw new Error;n=da(e)}catch(t){n=da(""),console.error("[g]: Invalid SVG Path definition: "+e)}var e=function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e}(n),t=function(t){for(var e=[],n=[],r=[],i=0;i<t.length;i++){var o=t[i],a=o[0];"M"===a?(r.length&&(n.push(r),r=[]),r.push([o[1],o[2]])):"Z"===a?r.length&&(e.push(r),r=[]):r.push([o[1],o[2]])}return 0<r.length&&n.push(r),{polygons:e,polylines:n}}(n),r=t.polygons,t=t.polylines,i=ba(n,!0),o=i[0],i=i[1],a=function(t){for(var e=[],n=null,r=0,i=t.length,o=0;o<i;o++){var a=t[o],s=t[o+1],l=a[0],u={command:l,prePoint:n,params:a,startTangent:null,endTangent:null},c=("M"===l&&(r=o),a.length),n=[a[c-2],a[c-1]],c=(u.currentPoint=n,e[r]&&(c=n,h=e[r].currentPoint,c[0]===h[0]&&c[1]===h[1])&&(e[r].prePoint=u.prePoint),s?[s[s.length-2],s[s.length-1]]:null),h=(u.nextPoint=c,u.prePoint);"C"===l&&(s=[a[1],a[2]],c=[a[3],a[4]],u.startTangent=[h[0]-s[0],h[1]-s[1]],u.endTangent=[n[0]-c[0],n[1]-c[1]],0===u.startTangent[0]&&0===u.startTangent[1]&&(u.startTangent=[s[0]-c[0],s[1]-c[1]]),0===u.endTangent[0]&&0===u.endTangent[1]&&(u.endTangent=[c[0]-s[0],c[1]-s[1]])),e.push(u)}return e}(o),s=function(t){if(!t)return{length:0,x:0,y:0,width:0,height:0,x2:0,y2:0,cx:0,cy:0,cz:0};var e=(t=_a(t)).length,n=(r=t.min).x,r=r.y,i=(t=t.max).x,t=t.y,o=i-n,a=t-r;return{length:e,width:o,height:a,x:n,y:r,x2:i,y2:t,cx:n+o/2,cy:r+a/2,cz:Math.max(o,a)+Math.min(o,a)/2}}(n),l=s.x,u=s.y,c=s.width,h=s.height;return{absolutePath:n,hasArc:e,segments:a,polygons:r,polylines:t,curve:o,totalLength:s.length,zCommandIndexes:i,rect:new Nc(Number.isFinite(l)?l:0,Number.isFinite(u)?u:0,Number.isFinite(c)?c:0,Number.isFinite(h)?h:0)}},function(t){return Jl(t)?t:ta(t)});function qc(t,e){t=Yc(t);return e&&(e.parsedStyle.defX=t.rect.x,e.parsedStyle.defY=t.rect.y),t}function Xc(t,e,n){var r,i,o,a,s,l,u,c,h,t=t.curve,e=e.curve,d=[t,e],e=Sa((d=t.length!==e.length?function t(e,n,r){var i,e=Ma(e),n=Ma(n),o=e.length,a=n.length,s=e.filter(function(t){return t.l}).length,l=n.filter(function(t){return t.l}).length,s=e.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/s||0,l=n.filter(function(t){return t.l}).reduce(function(t,e){return t+e.l},0)/l||0,u=r||Math.max(o,a),c=[s,l],h=[u-o,u-a],r=[e,n].map(function(t,n){return t.l===u?t.map(function(t){return t.s}):t.map(function(t,e){return i=e&&h[n]&&t.l>=c[n],h[n]-=i?1:0,i?t.ss:[t.s]}).flat()});return r[0].length===r[1].length?r:t(r[0],r[1],u)}(t,e):d)[0])!==Sa(d[1])?(r=d[0],t=r.slice(1).map(function(t,e,n){return(e?n[e-1].slice(-2):r[0].slice(1)).concat(t.slice(1))}).map(function(n){return n.map(function(t,e){return n[n.length-e-2*(1-e%2)]})}).reverse(),[["M"].concat(t[0].slice(0,2))].concat(t.map(function(t){return["C"].concat(t.slice(2))}))):Qo(d[0]);return[e,(i=d[1],o=e,u=i.length-1,c=[],h=0,s=(a=i).length,l=s-1,(t=a.map(function(t,r){return a.map(function(t,e){var n=r+e;return 0===e||a[n]&&"M"===a[n][0]?(e=a[n],["M"].concat(e.slice(-2))):(s<=n&&(n-=l),a[n])})})).forEach(function(t,n){i.slice(1).forEach(function(t,e){h+=ya(i[(n+e)%u].slice(-2),o[e%u].slice(-2))}),c[n]=h,h=0}),t[c.indexOf(Math.min.apply(null,c))]),function(t){return t}]}function Zc(t,e){var n,r,i=Jl(t)?t.split(" ").map(function(t){var t=t.split(","),e=t[0],t=t[1];return[Number(e),Number(t)]}):t,o=[],a=0,s=Ca.length(i),t=(i.forEach(function(t,e){i[e+1]&&((n=[0,0])[0]=a/s,r=Pa.length(t[0],t[1],i[e+1][0],i[e+1][1]),a+=r,n[1]=a/s,o.push(n))}),Math.min.apply(Math,i.map(function(t){return t[0]}))),l=Math.min.apply(Math,i.map(function(t){return t[1]}));return e&&(e.parsedStyle.defX=t,e.parsedStyle.defY=l),{points:i,totalLength:s,segments:o}}var Kc=function(t){return Lc(/deg|rad|grad|turn|px|%/g,t)},$c=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Jc(t){if("none"!==(t=(t=void 0===t?"":t).toLowerCase().trim()))for(var e,n=/\s*([\w-]+)\(([^)]*)\)/g,r=[],i=0;e=n.exec(t);){if(e.index!==i)return[];if(i=e.index+e[0].length,-1<$c.indexOf(e[1])&&r.push({name:e[1],params:e[2].split(" ").map(function(t){return Kc(t)||Sc(t)})}),n.lastIndex===t.length)return r}return[]}var Q=function(t){return new P(t)},Qc=null;function th(t){return function(e){var n=0;return t.map(function(t){return t===Qc?e[n++]:t})}}function eh(t){return t}var nh={matrix:["NNNNNN",[Qc,Qc,0,0,Qc,Qc,0,0,0,0,1,0,Qc,Qc,0,1],eh],matrix3d:["NNNNNNNNNNNNNNNN",eh],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",th([Qc,Qc,Q(1)]),eh],scalex:["N",th([Qc,Q(1),Q(1)]),th([Qc,Q(1)])],scaley:["N",th([Q(1),Qc,Q(1)]),th([Q(1),Qc])],scalez:["N",th([Q(1),Q(1),Qc])],scale3d:["NNN",eh],skew:["Aa",null,eh],skewx:["A",null,th([Qc,fc])],skewy:["A",null,th([fc,Qc])],translate:["Tt",th([Qc,Qc,dc]),eh],translatex:["T",th([Qc,dc,dc]),th([Qc,dc])],translatey:["T",th([dc,Qc,dc]),th([dc,Qc])],translatez:["L",th([dc,dc,Qc])],translate3d:["TTL",eh]};function rh(t){if("none"!==(t=(t||"none").toLowerCase().trim()))for(var e,n=/\s*(\w+)\(([^)]*)\)/g,r=[],i=0;e=n.exec(t);){if(e.index!==i)return[];var i=e.index+e[0].length,o=e[1],a=nh[o];if(!a)return[];var s=e[2].split(","),l=a[0];if(l.length<s.length)return[];for(var u=[],c=0;c<l.length;c++){var h=s[c],d=l[c],f=void 0;if(void 0===(f=h?{A:function(t){return"0"===t.trim()?fc:Dc(t)},N:Hc,T:Rc,L:Ic}[d.toUpperCase()](h):{a:fc,n:u[0],t:dc}[d]))return[];u.push(f)}if(r.push({t:o,d:u}),n.lastIndex===t.length)return r}return[]}function ih(t){switch(t.t){case"rotatex":return i=Hs(Bc(t.d[0])),[1,0,0,0,0,Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1];case"rotatey":return i=Hs(Bc(t.d[0])),[Math.cos(i),0,-Math.sin(i),0,0,1,0,0,Math.sin(i),0,Math.cos(i),0,0,0,0,1];case"rotate":case"rotatez":return i=Hs(Bc(t.d[0])),[Math.cos(i),Math.sin(i),0,0,-Math.sin(i),Math.cos(i),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var e=t.d[0].value,n=t.d[1].value,r=t.d[2].value,i=Hs(Bc(t.d[3])),o=e*e+n*n+r*r,o=(0==o?(e=1,r=n=0):1!=o&&(e/=o=Math.sqrt(o),n/=o,r/=o),Math.sin(i/2)),a=o*Math.cos(i/2),o=o*o;return[1-2*(n*n+r*r)*o,2*(e*n*o+r*a),2*(e*r*o-n*a),0,2*(e*n*o-r*a),1-2*(e*e+r*r)*o,2*(n*r*o+e*a),0,2*(e*r*o+n*a),2*(n*r*o-e*a),1-2*(e*e+n*n)*o,0,0,0,0,1];case"scale":return[t.d[0].value,0,0,0,0,t.d[1].value,0,0,0,0,1,0,0,0,0,1];case"scalex":return[t.d[0].value,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,t.d[0].value,0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,t.d[0].value,0,0,0,0,1];case"scale3d":return[t.d[0].value,0,0,0,0,t.d[1].value,0,0,0,0,t.d[2].value,0,0,0,0,1];case"skew":a=Hs(Bc(t.d[0])),o=Hs(Bc(t.d[1]));return[1,Math.tan(o),0,0,Math.tan(a),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return i=Hs(Bc(t.d[0])),[1,0,0,0,Math.tan(i),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return i=Hs(Bc(t.d[0])),[1,Math.tan(i),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,e=Vc(t.d[0],0,null)||0,n=Vc(t.d[1],0,null)||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,e=Vc(t.d[0],0,null)||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,n=Vc(t.d[0],0,null)||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,r=Vc(t.d[0],0,null)||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,e=Vc(t.d[0],0,null)||0,n=Vc(t.d[1],0,null)||0,r=Vc(t.d[2],0,null)||0,1];case"perspective":o=Vc(t.d[0],0,null)||0;return[1,0,0,0,0,1,0,0,0,0,1,o?-1/o:0,0,0,0,1];case"matrix":return[t.d[0].value,t.d[1].value,0,0,t.d[2].value,t.d[3].value,0,0,0,0,1,0,t.d[4].value,t.d[5].value,0,1];case"matrix3d":return t.d.map(function(t){return t.value})}}function oh(t,e){return[t[0]*e[0]+t[4]*e[1]+t[8]*e[2]+t[12]*e[3],t[1]*e[0]+t[5]*e[1]+t[9]*e[2]+t[13]*e[3],t[2]*e[0]+t[6]*e[1]+t[10]*e[2]+t[14]*e[3],t[3]*e[0]+t[7]*e[1]+t[11]*e[2]+t[15]*e[3],t[0]*e[4]+t[4]*e[5]+t[8]*e[6]+t[12]*e[7],t[1]*e[4]+t[5]*e[5]+t[9]*e[6]+t[13]*e[7],t[2]*e[4]+t[6]*e[5]+t[10]*e[6]+t[14]*e[7],t[3]*e[4]+t[7]*e[5]+t[11]*e[6]+t[15]*e[7],t[0]*e[8]+t[4]*e[9]+t[8]*e[10]+t[12]*e[11],t[1]*e[8]+t[5]*e[9]+t[9]*e[10]+t[13]*e[11],t[2]*e[8]+t[6]*e[9]+t[10]*e[10]+t[14]*e[11],t[3]*e[8]+t[7]*e[9]+t[11]*e[10]+t[15]*e[11],t[0]*e[12]+t[4]*e[13]+t[8]*e[14]+t[12]*e[15],t[1]*e[12]+t[5]*e[13]+t[9]*e[14]+t[13]*e[15],t[2]*e[12]+t[6]*e[13]+t[10]*e[14]+t[14]*e[15],t[3]*e[12]+t[7]*e[13]+t[11]*e[14]+t[15]*e[15]]}function ah(t){var e=[0,0,0],n=[1,1,1],r=[0,0,0],i=[0,0,0,1],o=[0,0,0,1];return function(t,e,n,r,i,o){if(e=e||[0,0,0],n=n||[0,0,0],r=r||[0,0,0],i=i||[0,0,0,1],o=o||[0,0,0,1],!Ia(za,t))return;if(Ra(Va),Va[3]=0,Va[7]=0,Va[11]=0,Va[15]=1,Math.abs(Da(Va)<1e-8))return;var a,s,t=za[3],l=za[7],u=za[11],c=za[12],h=za[13],d=za[14],f=za[15];if(0!==t||0!==l||0!==u){if(Ga[0]=t,Ga[1]=l,Ga[2]=u,Ga[3]=f,!ja(Va,Va))return;Ba(Va,Va),t=i,l=Va,f=(u=Ga)[0],a=u[1],s=u[2],u=u[3],t[0]=l[0]*f+l[4]*a+l[8]*s+l[12]*u,t[1]=l[1]*f+l[5]*a+l[9]*s+l[13]*u,t[2]=l[2]*f+l[6]*a+l[10]*s+l[14]*u,t[3]=l[3]*f+l[7]*a+l[11]*s+l[15]*u}else i[0]=i[1]=i[2]=0,i[3]=1;if(e[0]=c,e[1]=h,e[2]=d,t=za,(f=y)[0][0]=t[0],f[0][1]=t[1],f[0][2]=t[2],f[1][0]=t[4],f[1][1]=t[5],f[1][2]=t[6],f[2][0]=t[8],f[2][1]=t[9],f[2][2]=t[10],n[0]=Fa.length(y[0]),Fa.normalize(y[0],y[0]),r[0]=Fa.dot(y[0],y[1]),Wa(y[1],y[1],y[0],1,-r[0]),n[1]=Fa.length(y[1]),Fa.normalize(y[1],y[1]),r[0]/=n[1],r[1]=Fa.dot(y[0],y[2]),Wa(y[2],y[2],y[0],1,-r[1]),r[2]=Fa.dot(y[1],y[2]),Wa(y[2],y[2],y[1],1,-r[2]),n[2]=Fa.length(y[2]),Fa.normalize(y[2],y[2]),r[1]/=n[2],r[2]/=n[2],Fa.cross(Ha,y[1],y[2]),Fa.dot(y[0],Ha)<0)for(var p=0;p<3;p++)n[p]*=-1,y[p][0]*=-1,y[p][1]*=-1,y[p][2]*=-1;o[0]=.5*Math.sqrt(Math.max(1+y[0][0]-y[1][1]-y[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-y[0][0]+y[1][1]-y[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-y[0][0]-y[1][1]+y[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+y[0][0]+y[1][1]+y[2][2],0)),y[2][1]>y[1][2]&&(o[0]=-o[0]),y[0][2]>y[2][0]&&(o[1]=-o[1]),y[1][0]>y[0][1]&&(o[2]=-o[2])}(0===(t=t).length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:t.map(ih).reduce(oh),e,n,r,i,o),[[e,n,r,o,i]]}var sh=function(t,e,n,r,i){for(var o=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],a=0;a<4;a++)o[a][3]=i[a];for(var s=0;s<3;s++)for(var l=0;l<3;l++)o[3][s]+=t[l]*o[l][s];var u=r[0],c=r[1],h=r[2],r=r[3],d=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],h=(d[0][0]=1-2*(c*c+h*h),d[0][1]=2*(u*c-h*r),d[0][2]=2*(u*h+c*r),d[1][0]=2*(u*c+h*r),d[1][1]=1-2*(u*u+h*h),d[1][2]=2*(c*h-u*r),d[2][0]=2*(u*h-c*r),d[2][1]=2*(c*h+u*r),d[2][2]=1-2*(u*u+c*c),o=lh(o,d),[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]]);n[2]&&(h[2][1]=n[2],o=lh(o,h)),n[1]&&(h[2][1]=0,h[2][0]=n[0],o=lh(o,h)),n[0]&&(h[2][0]=0,h[1][0]=n[0],o=lh(o,h));for(var f=0;f<3;f++)for(var p=0;p<3;p++)o[f][p]*=e[f];return 0==(r=o)[0][2]&&0==r[0][3]&&0==r[1][2]&&0==r[1][3]&&0==r[2][0]&&0==r[2][1]&&1==r[2][2]&&0==r[2][3]&&0==r[3][2]&&1==r[3][3]?[o[0][0],o[0][1],o[1][0],o[1][1],o[3][0],o[3][1]]:o[0].concat(o[1],o[2],o[3])};function lh(t,e){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=e[r][o]*t[o][i];return n}function uh(t){return t.toFixed(6).replace(".000000","")}function ch(e,n){var r,i;return e.decompositionPair!==n&&(e.decompositionPair=n,r=ah(e)),n.decompositionPair!==e&&(n.decompositionPair=e,i=ah(n)),null===r[0]||null===i[0]?[[!1],[!0],function(t){return(t?n:e)[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var e=function(t,e,n){r=zs(r=function(t,e){for(var n=0,r=0;r<t.length;r++)n+=t[r]*e[r];return n}(t,e),-1,1);var r,i=[];if(1===r)i=t;else for(var o=Math.acos(r),a=+Math.sin(n*o)/Math.sqrt(1-r*r),s=0;s<4;s++)i.push(t[s]*(Math.cos(n*o)-r*a)+e[s]*a);return i}(r[0][3],i[0][3],t[5]);return sh(t[0],t[1],t[2],e,t[4]).map(uh).join(",")}])}function hh(t){return t.replace(/[xy]/,"")}function dh(t){return t.replace(/(x|y|z|3d)?$/,"3d")}var fh=function(t,e){return"perspective"===t&&"perspective"===e||("matrix"===t||"matrix3d"===t)&&("matrix"===e||"matrix3d"===e)};function ph(r,i,t){var e=!1;if(!r.length||!i.length){r.length||(e=!0,r=i,i=[]);for(var n=0;n<r.length;n++)!function(t){var t=r[t],e=t.t,t=t.d,n="scale"===e.substring(0,5)?1:0;i.push({t:e,d:t.map(function(t){return"number"==typeof t?new P(n):new P(n,t.unit)})})}(n)}var o=[],a=[],s=[];if(r.length!==i.length)var l=ch(r,i),o=[l[0]],a=[l[1]],s=[["matrix",[l[2]]]];else for(var u=0;u<r.length;u++){var c=r[u].t,h=i[u].t,d=r[u].d,f=i[u].d,p=nh[c],y=nh[h],g=void 0;if(fh(c,h)){var v=ch([r[u]],[i[u]]);o.push(v[0]),a.push(v[1]),s.push(["matrix",[v[2]]])}else{if(c===h)g=c;else if(p[2]&&y[2]&&hh(c)===hh(h))g=hh(c),d=p[2](d),f=y[2](f);else{if(!p[1]||!y[1]||dh(c)!==dh(h)){v=ch(r,i);o=[v[0]],a=[v[1]],s=[["matrix",[v[2]]]];break}g=dh(c),d=p[1](d),f=y[1](f)}for(var m=[],b=[],x=[],w=0;w<d.length;w++){var k=(d[w].unit===O.kNumber?Wc:jc)(d[w],f[w],t,!1,w);m[w]=k[0],b[w]=k[1],x.push(k[2])}o.push(m),a.push(b),s.push([g,x])}}return e&&(l=o,o=a,a=l),[o,a,function(t){return t.map(function(t,n){t=t.map(function(t,e){return s[n][1][e](t)}).join(",");return"matrix"===s[n][0]&&16===t.split(",").length&&(s[n][0]="matrix3d"),"matrix3d"===s[n][0]&&6===t.split(",").length&&(s[n][0]="matrix"),s[n][0]+"("+t+")"}).join(" ")}]}function yh(t){if(Jl(t)){if("text-anchor"===t)return[new P(0,"px"),new P(0,"px")];var e=t.split(" ");return 1===e.length&&("top"===e[0]||"bottom"===e[0]?(e[1]=e[0],e[0]="center"):e[1]="center"),2!==e.length?null:[Rc(gh(e[0])),Rc(gh(e[1]))]}return[new P(t[0]||0,"px"),new P(t[1]||0,"px")]}function gh(t){return"center"===t?"50%":"left"===t||"top"===t?"0":"right"===t||"bottom"===t?"100%":t}function vh(){this.contentBounds=void 0,this.renderBounds=void 0}function mh(){this.aabb=void 0}function bh(){this.bounds=void 0,this.boundsDirty=!0,this.renderBounds=void 0,this.renderBoundsDirty=!0,this.dirtyRenderBounds=void 0,this.dirty=!1,this.proxyNodeName=void 0}function xh(){this.dirty=!1,this.sorted=void 0,this.lastSortedIndex=void 0,this.renderOrder=0}function wh(){this.dirtyFlag=!1,this.localDirtyFlag=!1,this.frozen=!1,this.localPosition=E(0,0,0),this.localRotation=lo(0,0,0,1),this.localScale=E(1,1,1),this.localTransform=yi(),this.localSkew=fo(0,0),this.position=E(0,0,0),this.rotation=lo(0,0,0,1),this.scaling=E(1,1,1),this.worldTransform=yi(),this.origin=E(0,0,0)}var m,kh,Eh=d.defineToken("CSSPropertySyntaxFactory"),_h=d.defineToken("CSSProperty"),Sh=function(){function t(){this.parser=Dc,this.mixer=jc}return t.prototype.calculator=function(t,e,n,r){return new P(Bc(n),"deg")},t}(),Sh=t([f({token:{token:_h,named:b.ANGLE}})],Sh),Mh=((s=m=m||{}).DESTROY="destroy",s.ATTR_MODIFIED="DOMAttrModified",s.INSERTED="DOMNodeInserted",s.CHILD_INSERTED="child-inserted",s.REMOVED="removed",s.CHILD_REMOVED="child-removed",s.MOUNTED="DOMNodeInsertedIntoDocument",s.UNMOUNTED="DOMNodeRemovedFromDocument",s.BOUNDS_CHANGED="bounds-changed",s.RENDER_ORDER_CHANGED="render-order-changed",s.CULLED="culled",function(){function e(t){this.type=void 0,this.eventPhase=e.prototype.NONE,this.target=void 0,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.currentTarget=void 0,this.defaultPrevented=!1,this.timeStamp=void 0,this.nativeEvent=void 0,this.originalEvent=void 0,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.manager=void 0,this.detail=void 0,this.layer=new Cc,this.page=new Cc,this.canvas=new Cc,this.viewport=new Cc,this.path=void 0,this.view=void 0,this.which=void 0,this.returnValue=void 0,this.srcElement=void 0,this.composed=!1,this.isTrusted=void 0,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=t}var t=e.prototype;return t.composedPath=function(){return!this.manager||this.path&&this.path[0]===this.target||(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path},t.preventDefault=function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0},t.stopImmediatePropagation=function(){this.propagationImmediatelyStopped=!0},t.stopPropagation=function(){this.propagationStopped=!0},t.initEvent=function(){},t.initUIEvent=function(){},rs(e,[{key:"name",get:function(){return this.type}},{key:"layerX",get:function(){return this.layer.x}},{key:"layerY",get:function(){return this.layer.y}},{key:"pageX",get:function(){return this.page.x}},{key:"pageY",get:function(){return this.page.y}},{key:"x",get:function(){return this.canvas.x}},{key:"y",get:function(){return this.canvas.y}},{key:"canvasX",get:function(){return this.canvas.x}},{key:"canvasY",get:function(){return this.canvas.y}},{key:"viewportX",get:function(){return this.viewport.x}},{key:"viewportY",get:function(){return this.viewport.y}},{key:"propagationPath",get:function(){return this.composedPath()}}]),e}()),Th=function(r){function t(t,e){var n=r.call(this,null)||this;return n.type=t,n.detail=e,Object.assign(ls(n),e),n}return g(t,r),t}(Mh),ge=function(){function t(){this.emitter=new Eo.exports.EventEmitter}var e=t.prototype;return e.on=function(t,e,n){return this.addEventListener(t,e,n),this},e.addEventListener=function(t,e,n){var r,i,o,a=Ss(n)&&n||Ms(n)&&n.capture,n=Ms(n)&&n.once,s=_s(e)?void 0:e,l=!1,u="";return-1<t.indexOf(":")&&(i=(r=t.split(":"))[0],t=r[1],u=i,l=!0),t=a?t+"capture":t,e=_s(e)?e:e.handleEvent,l&&(o=e,e=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(null==(t=n[0].target)?void 0:t.name)===u&&o.apply(void 0,n)}),n?this.emitter.once(t,e,s):this.emitter.on(t,e,s),this},e.off=function(t,e,n){return t?this.removeEventListener(t,e,n):this.removeAllEventListeners(),this},e.removeAllEventListeners=function(){this.emitter.removeAllListeners()},e.removeEventListener=function(t,e,n){var r,n=Ss(n)&&n||Ms(n)&&n.capture,i=_s(e)?void 0:e;return e=_s(e)?e:null==(r=e)?void 0:r.handleEvent,this.emitter.off(t=n?t+"capture":t,e,i),this},e.emit=function(t,e){this.dispatchEvent(new Th(t,e))},e.dispatchEvent=function(t){if(t instanceof Mh)return(e=this.document?this:this.defaultView||(null==(e=this.ownerDocument)?void 0:e.defaultView))&&(t.manager=e.getEventService()||null,t.defaultPrevented=!1,t.path=[],t.target=this,null!=(e=t.manager)&&e.dispatchEvent(t)),!t.defaultPrevented;var e;throw new Error("DisplayObject cannot propagate events outside of the Federated Events API")},t}(),Oh=function(i){function f(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).shadow=!1,t.ownerDocument=null,t.isConnected=!1,t.baseURI="",t.childNodes=[],t.nodeType=0,t.nodeName="",t.nodeValue=null,t.parentNode=null,t}g(f,i),f.isNode=function(t){return!!t.childNodes};var t=f.prototype;return t.getRootNode=function(t){return void 0===t&&(t={}),this.parentNode?this.parentNode.getRootNode(t):t.composed&&this.host?this.host.getRootNode(t):this},t.hasChildNodes=function(){return 0<this.childNodes.length},t.isDefaultNamespace=function(t){throw new Error("Method not implemented.")},t.lookupNamespaceURI=function(t){throw new Error("Method not implemented.")},t.lookupPrefix=function(t){throw new Error("Method not implemented.")},t.normalize=function(){throw new Error("Method not implemented.")},t.isEqualNode=function(t){return this===t},t.isSameNode=function(t){return this.isEqualNode(t)},t.compareDocumentPosition=function(t){if(t===this)return 0;if(!(t instanceof f))throw new TypeError("Node.compareDocumentPosition: Argument 1 does not implement interface Node.");for(var e=[i=t],n=[o=this];null!=(r=i.parentNode)?r:o.parentNode;)var r,i=i.parentNode?(e.push(i.parentNode),i.parentNode):i,o=o.parentNode?(n.push(o.parentNode),o.parentNode):o;if(i!==o)return f.DOCUMENT_POSITION_DISCONNECTED|f.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|f.DOCUMENT_POSITION_PRECEDING;var a=e.length>n.length?e:n,s=a===e?n:e;if(a[a.length-s.length]===s[0])return a===e?f.DOCUMENT_POSITION_CONTAINED_BY|f.DOCUMENT_POSITION_FOLLOWING:f.DOCUMENT_POSITION_CONTAINS|f.DOCUMENT_POSITION_PRECEDING;for(var l=a.length-s.length,u=s.length-1;0<=u;u--){var c,h=s[u],d=a[l+u];if(d!==h)return(c=h.parentNode.childNodes).indexOf(h)<c.indexOf(d)?s===e?f.DOCUMENT_POSITION_PRECEDING:f.DOCUMENT_POSITION_FOLLOWING:a===e?f.DOCUMENT_POSITION_PRECEDING:f.DOCUMENT_POSITION_FOLLOWING}return f.DOCUMENT_POSITION_FOLLOWING},t.contain=function(t){return this.contains(t)},t.contains=function(t){for(var e=t;e&&this!==e;)e=e.parentNode;return!!e},t.getAncestor=function(t){for(var e=this;0<t&&e;)e=e.parentNode,t--;return e},t.forEach=function(e){e(this)||this.childNodes.forEach(function(t){t.forEach(e)})},rs(f,[{key:"textContent",get:function(){var t="";this.nodeName===M.TEXT&&(t+=this.style.text);for(var e=cs(this.childNodes);!(n=e()).done;){var n=n.value;n.nodeName===M.TEXT?t+=n.nodeValue:t+=n.textContent}return t},set:function(t){var e=this;this.childNodes.slice().forEach(function(t){e.removeChild(t,!0)}),this.nodeName===M.TEXT&&(this.style.text=""+t)}},{key:"parent",get:function(){return this.parentNode}},{key:"parentElement",get:function(){return null}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"firstChild",get:function(){return 0<this.childNodes.length?this.childNodes[0]:null}},{key:"lastChild",get:function(){return 0<this.childNodes.length?this.childNodes[this.childNodes.length-1]:null}}]),f}(ge),Ph=(Oh.DOCUMENT_POSITION_DISCONNECTED=1,Oh.DOCUMENT_POSITION_PRECEDING=2,Oh.DOCUMENT_POSITION_FOLLOWING=4,Oh.DOCUMENT_POSITION_CONTAINS=8,Oh.DOCUMENT_POSITION_CONTAINED_BY=16,Oh.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,kh=kh||{},kh[kh.Standard=0]="Standard",function(){function t(){this.strategy=kh.Standard,this.visibilityPlaneMask=-1,this.visible=!0,this.enable=!0}return t.prototype.isCulled=function(){return this.enable&&!this.visible},t}()),Ah=(Ph.tag="c-cullable",vh.tag="c-geometry",mh.tag="c-rbush-node",d.defineToken("RBushRoot")),Ch=(bh.tag="c-renderable",xh.tag="c-sortable",wh.tag="c-transform",function(u){function t(t,e,n,r,i,o,a,s){var l=u.call(this,null)||this;return l.relatedNode=void 0,l.prevValue=void 0,l.newValue=void 0,l.attrName=void 0,l.attrChange=void 0,l.prevParsedValue=void 0,l.newParsedValue=void 0,l.relatedNode=e,l.prevValue=n,l.newValue=r,l.attrName=i,l.attrChange=o,l.prevParsedValue=a,l.newParsedValue=s,l.type=t,l}return g(t,u),t}(Mh)),Nh=(Ch.ADDITION=2,Ch.MODIFICATION=1,Ch.REMOVAL=3,0),Lh=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).sceneGraphService=Zr.get(Cd),t.entity=Nh++,t.renderable=new bh,t.cullable=new Ph,t.transformable=new wh,t.sortable=new xh,t.geometry=new vh,t.rBushNode=new mh,t.id=void 0,t.name=void 0,t.namespaceURI="g",t.scrollLeft=0,t.scrollTop=0,t.clientTop=0,t.clientLeft=0,t.destroyed=!1,t.style={},t.computedStyle={},t.parsedStyle={},t.attributes={},t}g(t,i),t.isElement=function(t){return!!t.getAttribute};var e=t.prototype;return e.cloneNode=function(t){throw new Error("Method not implemented.")},e.appendChild=function(t,e){return this.sceneGraphService.attach(t,this,e),this.dispatchEvent(new Th(m.CHILD_INSERTED,{child:t})),t.dispatchEvent(new Ch(m.INSERTED,this,"","","",0,"","")),t},e.insertBefore=function(t,e){return e?(e=this.childNodes.indexOf(e),this.appendChild(t,e-1)):this.appendChild(t),t},e.replaceChild=function(t,e,n){var r=this.childNodes.indexOf(e);return this.removeChild(e,n),this.appendChild(t,r),e},e.removeChild=function(t,e){return void 0===e&&(e=!0),t.dispatchEvent(new Ch(m.REMOVED,this,"","","",0,"","")),e&&(t.dispatchEvent(new Th(m.DESTROY)),t.destroyed=!0),this.dispatchEvent(new Th(m.CHILD_REMOVED,{child:t})),this.sceneGraphService.detach(t),e&&t.emitter.removeAllListeners(),t},e.removeChildren=function(e){var n=this;void 0===e&&(e=!0),this.childNodes.slice().forEach(function(t){n.removeChild(t,e)})},e.matches=function(t){return this.sceneGraphService.matches(t,this)},e.getElementById=function(t){return this.sceneGraphService.querySelector("#"+t,this)},e.getElementsByName=function(t){return this.sceneGraphService.querySelectorAll('[name="'+t+'"]',this)},e.getElementsByClassName=function(t){return this.sceneGraphService.querySelectorAll("."+t,this)},e.getElementsByTagName=function(t){return this.sceneGraphService.querySelectorAll(t,this)},e.querySelector=function(t){return this.sceneGraphService.querySelector(t,this)},e.querySelectorAll=function(t){return this.sceneGraphService.querySelectorAll(t,this)},e.closest=function(t){var e=this;do{if(this.sceneGraphService.matches(t,e))return e}while(null!==(e=e.parentElement));return null},e.find=function(e){var n=this,r=null;return this.forEach(function(t){return!(t===n||!e(t))&&(r=t,!0)}),r},e.findAll=function(e){var n=this,r=[];return this.forEach(function(t){t!==n&&e(t)&&r.push(t)}),r},e.after=function(){var r=this;if(this.parentNode){for(var i=this.parentNode.childNodes.indexOf(this),t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(t,e){var n;return null==(n=r.parentNode)?void 0:n.appendChild(t,i+e+1)})}},e.before=function(){if(this.parentNode){for(var t=this.parentNode.childNodes.indexOf(this),e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0],o=n.slice(1);this.parentNode.appendChild(i,t),i.after.apply(i,o)}},e.replaceWith=function(){this.after.apply(this,arguments),this.remove()},e.append=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];n.forEach(function(t){return e.appendChild(t)})},e.prepend=function(){for(var n=this,t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];e.forEach(function(t,e){return n.appendChild(t,e)})},e.replaceChildren=function(){for(;this.childNodes.length&&this.firstChild;)this.removeChild(this.firstChild);this.append.apply(this,arguments)},e.remove=function(t){return void 0===t&&(t=!0),this.parentNode?this.parentNode.removeChild(this,t):this},e.destroy=function(){this.dispatchEvent(new Th(m.DESTROY)),this.remove(!1),this.emitter.removeAllListeners(),this.destroyed=!0},e.getGeometryBounds=function(){return this.sceneGraphService.getGeometryBounds(this)},e.getRenderBounds=function(){return this.sceneGraphService.getBounds(this,!0)},e.getBounds=function(){return this.sceneGraphService.getBounds(this)},e.getLocalBounds=function(){return this.sceneGraphService.getLocalBounds(this)},e.getBoundingClientRect=function(){return this.sceneGraphService.getBoundingClientRect(this)},e.getClientRects=function(){return[this.getBoundingClientRect()]},e.computedStyleMap=function(){return new Map(Object.entries(this.computedStyle))},e.getAttributeNames=function(){return Object.keys(this.attributes)},e.getAttribute=function(t){var e=this.attributes[t];return void 0===e&&(t=iu(t.toString(),"")[0],e=this.attributes[t]),T(e)?null:e},e.hasAttribute=function(t){return this.getAttributeNames().includes(t)},e.hasAttributes=function(){return!!this.getAttributeNames().length},e.removeAttribute=function(t){this.setAttribute(t,null),delete this.attributes[t]},e.setAttribute=function(t,e,n){this.attributes[t]=e},e.getAttributeNS=function(t,e){throw new Error("Method not implemented.")},e.getAttributeNode=function(t){throw new Error("Method not implemented.")},e.getAttributeNodeNS=function(t,e){throw new Error("Method not implemented.")},e.hasAttributeNS=function(t,e){throw new Error("Method not implemented.")},e.removeAttributeNS=function(t,e){throw new Error("Method not implemented.")},e.removeAttributeNode=function(t){throw new Error("Method not implemented.")},e.setAttributeNS=function(t,e,n){throw new Error("Method not implemented.")},e.setAttributeNode=function(t){throw new Error("Method not implemented.")},e.setAttributeNodeNS=function(t){throw new Error("Method not implemented.")},e.toggleAttribute=function(t,e){throw new Error("Method not implemented.")},rs(t,[{key:"className",get:function(){return this.getAttribute("class")||""},set:function(t){this.setAttribute("class",t)}},{key:"classList",get:function(){return this.className.split(" ").filter(function(t){return""!==t})}},{key:"tagName",get:function(){return this.nodeName}},{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"parentElement",get:function(){return this.parentNode}},{key:"nextSibling",get:function(){var t;return this.parentNode?(t=this.parentNode.childNodes.indexOf(this),this.parentNode.childNodes[t+1]||null):null}},{key:"previousSibling",get:function(){var t;return this.parentNode?(t=this.parentNode.childNodes.indexOf(this),this.parentNode.childNodes[t-1]||null):null}}]),t}(Oh),Ih=function(){function t(){this.pool={},this.htmlPool=[]}var e=t.prototype;return e.getByEntity=function(t){return this.pool[t]},e.add=function(t,e){(this.pool[t]=e).nodeName===M.HTML&&this.htmlPool.push(e)},e.remove=function(t){var e=this.pool[t];delete this.pool[t],e.nodeName===M.HTML&&(t=this.htmlPool.indexOf(e),this.htmlPool.splice(t,1))},e.getHTMLs=function(){return this.htmlPool},t}(),Ih=t([f()],Ih),Rh={anchor:"",opacity:"",fillOpacity:"",strokeOpacity:"",fill:"",stroke:"",transform:"",transformOrigin:"",visibility:"",pointerEvents:"",lineWidth:"",lineCap:"",lineJoin:"",increasedLineWidthForHitTesting:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",zIndex:"",filter:"",shadowType:""},k=function(i){function a(t){var r=i.call(this)||this;return r.config=void 0,r.styleValueRegistry=Zr.get(Bl),r.isCustomElement=!1,r.activeAnimations=[],r.mutationEvent=new Ch(m.ATTR_MODIFIED,ls(r),null,null,null,Ch.MODIFICATION,null,null),r.config=t,r.config.interactive=null!=(t=r.config.capture)?t:r.config.interactive,r.id=r.config.id||"",r.name=r.config.name||"",(r.config.className||r.config.class)&&(r.className=r.config.className||r.config.class),r.nodeName=r.config.type||M.GROUP,r.config.style=is({},Rh,r.config.style,r.config.attrs),null!=r.config.visible&&(r.config.style.visibility=!1===r.config.visible?"hidden":"visible"),null!=r.config.interactive&&(r.config.style.pointerEvents=!1===r.config.interactive?"none":"auto"),r.style=new Proxy(is({},r.attributes,{setProperty:function(t,e){r.setAttribute(t,e)},getPropertyValue:function(t){return r.getAttribute(t)},removeProperty:function(t){r.removeAttribute(t)},item:function(){return""}}),{get:function(t,e){return void 0!==t[e]?t[e]:r.getAttribute(e)},set:function(t,e,n){return r.setAttribute(e,n),!0}}),r.initAttributes(r.config.style),Zr.get(Ih).add(r.entity,ls(r)),r}g(a,i);var t=a.prototype;return t.destroy=function(){i.prototype.destroy.call(this),Zr.get(Ih).remove(this.entity),this.getAnimations().forEach(function(t){t.cancel()})},t.cloneNode=function(e,t){var n,r=is({},this.attributes);for(n in r){var i=r[n];i instanceof a&&(r[n]=i.cloneNode(e)),t&&(r[n]=t(n,i))}var o=new this.constructor({id:this.id,name:this.name,className:this.name,interactive:this.interactive,style:r});return o.setLocalTransform(this.getLocalTransform()),e&&this.children.forEach(function(t){t.style.isMarker||(t=t.cloneNode(e),o.appendChild(t))}),o},t.initAttributes=function(t){var e=this.renderable;this.styleValueRegistry.processProperties(this,t=void 0===t?{}:t),e.dirty=!0},t.setAttribute=function(t,e,n){void 0===n&&(n=!1);var t=iu(t,e),r=t[0],t=t[1];ks(e)||!n&&t===this.attributes[r]||(this.internalSetAttribute(r,t),i.prototype.setAttribute.call(this,r,t))},t.internalSetAttribute=function(t,e,n){var r=this,i=(void 0===n&&(n={}),this.renderable),o=this.attributes[t],a=this.parsedStyle[t],s=(this.styleValueRegistry.processProperties(this,((s={})[t]=e,s),n),this.parsedStyle.clipPathTargets&&this.parsedStyle.clipPathTargets.length&&this.parsedStyle.clipPathTargets.forEach(function(t){r.sceneGraphService.dirtifyToRoot(t),t.dispatchEvent(new Ch(m.ATTR_MODIFIED,t,r,r,"clipPath",Ch.MODIFICATION,r,r)),t.isCustomElement&&t.isConnected&&t.attributeChangedCallback&&t.attributeChangedCallback("clipPath",r,r)}),i.dirty=!0,this.parsedStyle[t]);this.isConnected&&(this.mutationEvent.prevValue=o,this.mutationEvent.newValue=e,this.mutationEvent.attrName=t,this.mutationEvent.prevParsedValue=a,this.mutationEvent.newParsedValue=s,this.dispatchEvent(this.mutationEvent)),(this.isCustomElement&&this.isConnected||!this.isCustomElement)&&this.attributeChangedCallback&&this.attributeChangedCallback(t,o,e,a,s)},t.getBBox=function(){var t=this.getBounds(),e=t.getMin(),n=e[0],e=e[1],t=t.getMax(),r=t[0],t=t[1];return new Nc(n,e,r-n,t-e)},t.setOrigin=function(t,e,n){return this.sceneGraphService.setOrigin(this,Gs(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.getOrigin=function(){return this.sceneGraphService.getOrigin(this)},t.setPosition=function(t,e,n){return this.sceneGraphService.setPosition(this,Gs(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.setLocalPosition=function(t,e,n){return this.sceneGraphService.setLocalPosition(this,Gs(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.translate=function(t,e,n){return this.sceneGraphService.translate(this,Gs(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.translateLocal=function(t,e,n){return this.sceneGraphService.translateLocal(this,Gs(t,e=void 0===e?0:e,n=void 0===n?0:n)),this},t.getPosition=function(){return this.sceneGraphService.getPosition(this)},t.getLocalPosition=function(){return this.sceneGraphService.getLocalPosition(this)},t.scale=function(t,e,n){return this.scaleLocal(t,e,n)},t.scaleLocal=function(t,e,n){return"number"==typeof t&&(t=Gs(t,e=e||t,n=n||t)),this.sceneGraphService.scaleLocal(this,t),this},t.setLocalScale=function(t,e,n){return"number"==typeof t&&(t=Gs(t,e=e||t,n=n||t)),this.sceneGraphService.setLocalScale(this,t),this},t.getLocalScale=function(){return this.sceneGraphService.getLocalScale(this)},t.getScale=function(){return this.sceneGraphService.getScale(this)},t.getEulerAngles=function(){var t=Us(v(),this.sceneGraphService.getWorldTransform(this));return t[0],t[1],Ws(t[2])},t.getLocalEulerAngles=function(){var t=Us(v(),this.sceneGraphService.getLocalRotation(this));return t[0],t[1],Ws(t[2])},t.setEulerAngles=function(t){return this.sceneGraphService.setEulerAngles(this,0,0,t),this},t.setLocalEulerAngles=function(t){return this.sceneGraphService.setLocalEulerAngles(this,0,0,t),this},t.rotateLocal=function(t,e,n){return T(e)&&T(n)?this.sceneGraphService.rotateLocal(this,0,0,t):this.sceneGraphService.rotateLocal(this,t,e,n),this},t.rotate=function(t,e,n){return T(e)&&T(n)?this.sceneGraphService.rotate(this,0,0,t):this.sceneGraphService.rotate(this,t,e,n),this},t.setRotation=function(t,e,n,r){return this.sceneGraphService.setRotation(this,t,e,n,r),this},t.setLocalRotation=function(t,e,n,r){return this.sceneGraphService.setLocalRotation(this,t,e,n,r),this},t.setLocalSkew=function(t,e){return this.sceneGraphService.setLocalSkew(this,t,e),this},t.getRotation=function(){return this.sceneGraphService.getRotation(this)},t.getLocalRotation=function(){return this.sceneGraphService.getLocalRotation(this)},t.getLocalSkew=function(){return this.sceneGraphService.getLocalSkew(this)},t.getLocalTransform=function(){return this.sceneGraphService.getLocalTransform(this)},t.getWorldTransform=function(){return this.sceneGraphService.getWorldTransform(this)},t.setLocalTransform=function(t){return this.sceneGraphService.setLocalTransform(this,t),this},t.resetLocalTransform=function(){this.sceneGraphService.resetLocalTransform(this)},t.getAnimations=function(){return this.activeAnimations},t.animate=function(t,e){var n,r=null==(r=this.ownerDocument)?void 0:r.timeline;return this.parsedStyle.clipPathTargets&&this.parsedStyle.clipPathTargets.length&&(r=null==(n=this.parsedStyle.clipPathTargets[0].ownerDocument)?void 0:n.timeline),delete this.parsedStyle.transform,r?r.play(new xd(this,t,e)):null},t.show=function(){this.style.visibility="visible"},t.hide=function(){this.style.visibility="hidden"},t.isVisible=function(){var t;return"visible"===(null==(t=this.parsedStyle)||null==(t=t.visibility)?void 0:t.value)},t.isInteractive=function(){var t;return"none"!==(null==(t=this.parsedStyle)||null==(t=t.pointerEvents)?void 0:t.value)},t.isCulled=function(){return!(!this.cullable||!this.cullable.isCulled())},t.toFront=function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,this.parentNode.children.map(function(t){return Number(t.style.zIndex)}))+1),this},t.toBack=function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,this.parentNode.children.map(function(t){return Number(t.style.zIndex)}))-1),this},t.getCount=function(){return this.childElementCount},t.getParent=function(){return this.parentElement},t.getChildren=function(){return this.children},t.getFirst=function(){return this.firstElementChild},t.getLast=function(){return this.lastElementChild},t.getChildByIndex=function(t){return this.children[t]||null},t.add=function(t,e){return this.appendChild(t,e)},t.setClip=function(t){this.style.clipPath=t},t.getClip=function(){return this.style.clipPath||null},t.set=function(t,e){this.config[t]=e},t.get=function(t){return this.config[t]},t.getConfig=function(){return this.config},t.attr=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],o=n[1];return i?Ms(i)?(Object.keys(i).forEach(function(t){e.setAttribute(t,i[t])}),this):2===n.length?(this.setAttribute(i,o),this):this.attributes[i]:this.attributes},t.moveTo=function(t,e,n){return this.setPosition(t,e=void 0===e?0:e,n=void 0===n?0:n),this},t.move=function(t,e,n){return this.setPosition(t,e=void 0===e?0:e,n=void 0===n?0:n),this},t.setZIndex=function(t){return this.style.zIndex=t,this},t.getMatrix=function(t){var t=t||this.getWorldTransform(),e=Oi(v(),t),n=e[0],e=e[1],r=Pi(v(),t),i=r[0],r=r[1],t=Ai(ro(),t),t=Us(v(),t),o=t[0],t=(t[1],t[2]);return Ys(o||t,n,e,i,r)},t.getLocalMatrix=function(){return this.getMatrix(this.getLocalTransform())},t.setMatrix=function(t){var t=qs(t),e=t[0],n=t[1],r=t[2],i=t[3],t=t[4];this.setEulerAngles(t).setPosition(e,n).setLocalScale(r,i)},t.setLocalMatrix=function(t){var t=qs(t),e=t[0],n=t[1],r=t[2],i=t[3],t=t[4];this.setLocalEulerAngles(t).setLocalPosition(e,n).setLocalScale(r,i)},rs(a,[{key:"interactive",get:function(){return this.isInteractive()},set:function(t){this.style.pointerEvents=t?"auto":"none"}}]),a}(Lh),Dh=["style"],jh=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,Dh),e=n.call(this,is({style:is({x:"",y:""},e)},t))||this;return e.isCustomElement=!0,e}return g(t,n),t}(k),Bh=["style"],Fh=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,Bh);return n.call(this,is({type:M.CIRCLE,style:is({cx:"",cy:"",r:""},e)},t))||this}return g(t,n),t}(k),zh=["style"],Vh=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,zh);return n.call(this,is({type:M.ELLIPSE,style:is({cx:"",cy:"",rx:"",ry:""},e)},t))||this}return g(t,n),t}(k),Gh=["style"],Hh=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,Gh);return n.call(this,is({type:M.GROUP,style:is({x:"",y:"",width:"",height:""},e)},t))||this}return g(t,n),t}(k),Wh=["style"],Uh=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,Wh);return n.call(this,is({type:M.IMAGE,style:is({x:"",y:"",img:"",width:"",height:""},e)},t))||this}return g(t,n),t}(k),Yh=["style"],qh=function(r){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,Yh),e=r.call(this,is({type:M.LINE,style:is({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0,isBillboard:!1},e)},t))||this,t=(e.markerStartAngle=0,e.markerEndAngle=0,e.parsedStyle),n=t.markerStart,t=t.markerEnd;return n&&n instanceof k&&(e.markerStartAngle=n.getLocalEulerAngles(),e.appendChild(n)),t&&t instanceof k&&(e.markerEndAngle=t.getLocalEulerAngles(),e.appendChild(t)),e.transformMarker(!0),e.transformMarker(!1),e}g(t,r);var e=t.prototype;return e.attributeChangedCallback=function(t,e,n,r,i){"x1"===t||"y1"===t||"x2"===t||"y2"===t||"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&r instanceof k&&(this.markerStartAngle=0,r.remove()),i&&i instanceof k&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t&&(r&&r instanceof k&&(this.markerEndAngle=0,r.remove()),i&&i instanceof k&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1)))},e.transformMarker=function(t){var e,n,r,i,o,a=this.parsedStyle,s=a.markerStart,l=a.markerEnd,u=a.markerStartOffset,c=a.markerEndOffset,h=a.x1,d=a.x2,f=a.y1,p=a.y2,y=a.defX,a=a.defY,s=t?s:l;s&&s instanceof k&&(l=0,t=t?(r=h.value-y,i=f.value-a,e=d.value-h.value,n=p.value-f.value,o=(null==u?void 0:u.value)||0,this.markerStartAngle):(r=d.value-y,i=p.value-a,e=h.value-d.value,n=f.value-p.value,o=(null==c?void 0:c.value)||0,this.markerEndAngle),l=Math.atan2(n,e),s.setLocalEulerAngles(180*l/Math.PI+t),s.setLocalPosition(r+Math.cos(l)*o,i+Math.sin(l)*o))},e.getPoint=function(t){var e=this.parsedStyle,n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.defX,e=e.defY,n=Pa.pointAt(n.value,r.value,i.value,o.value,t),r=n.x,i=n.y,o=Zi(v(),E(r-a,i-e,0),this.getLocalTransform());return new Cc(o[0],o[1])},e.getTotalLength=function(){var t=this.parsedStyle,e=t.x1,n=t.y1,r=t.x2,t=t.y2;return Pa.length(e.value,n.value,r.value,t.value)},t}(k),Xh=["style"],Zh=function(i){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,Xh),e=i.call(this,is({type:M.PATH,style:is({path:"",miterLimit:""},e)},t))||this,t=(e.markerStartAngle=0,e.markerEndAngle=0,e.markerMidList=[],e.parsedStyle),n=t.markerStart,r=t.markerEnd,t=t.markerMid;return n&&n instanceof k&&(e.markerStartAngle=n.getLocalEulerAngles(),e.appendChild(n)),t&&t instanceof k&&e.placeMarkerMid(t),r&&r instanceof k&&(e.markerEndAngle=r.getLocalEulerAngles(),e.appendChild(r)),e.transformMarker(!0),e.transformMarker(!1),e}g(t,i);var e=t.prototype;return e.attributeChangedCallback=function(t,e,n,r,i){"path"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&r instanceof k&&(this.markerStartAngle=0,r.remove()),i&&i instanceof k&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&r instanceof k&&(this.markerEndAngle=0,r.remove()),i&&i instanceof k&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)},e.transformMarker=function(t){var e,n,r,i,o,a=this.parsedStyle,s=a.markerStart,l=a.markerEnd,u=a.markerStartOffset,c=a.markerEndOffset,h=a.defX,a=a.defY,s=t?s:l;s&&s instanceof k&&(l=0,h=t?(i=(t=this.getStartTangent())[0],e=(t=t[1])[0]-h,n=t[1]-a,r=i[0]-t[0],i=i[1]-t[1],o=(null==u?void 0:u.value)||0,this.markerStartAngle):(u=(t=this.getEndTangent())[0],e=(t=t[1])[0]-h,n=t[1]-a,r=u[0]-t[0],i=u[1]-t[1],o=(null==c?void 0:c.value)||0,this.markerEndAngle),l=Math.atan2(i,r),s.setLocalEulerAngles(180*l/Math.PI+h),s.setLocalPosition(e+Math.cos(l)*o,n+Math.sin(l)*o))},e.placeMarkerMid=function(t){var e=this.parsedStyle,n=e.path.segments,r=e.defX,i=e.defY;if(this.markerMidList.forEach(function(t){t.remove()}),t&&t instanceof k)for(var o=1;o<n.length-1;o++){var a=n[o].currentPoint,s=a[0],a=a[1],l=1===o?t:t.cloneNode(!0);this.markerMidList.push(l),this.appendChild(l),l.setLocalPosition(s-r,a-i)}},e.getTotalLength=function(){return this.parsedStyle.path.totalLength},e.getPoint=function(t){var e=this.parsedStyle,n=e.defX,r=e.defY,e=e.path,i=e.totalLength,e=_a(e.absolutePath,t*i).point,t=e.x,i=e.y,e=Zi(v(),E(t-n,i-r,0),this.getLocalTransform());return new Cc(e[0],e[1])},e.getStartTangent=function(){var t,e,n=this.parsedStyle.path.segments,r=[];return 1<n.length&&(t=n[0].currentPoint,e=n[1].currentPoint,r=[],(n=n[1].startTangent)?r.push([t[0]-n[0],t[1]-n[1]]):r.push([e[0],e[1]]),r.push([t[0],t[1]])),r},e.getEndTangent=function(){var t,e,n=this.parsedStyle.path.segments,r=n.length,i=[];return 1<r&&(t=n[r-2].currentPoint,e=n[r-1].currentPoint,i=[],(n=n[r-1].endTangent)?i.push([e[0]-n[0],e[1]-n[1]]):i.push([t[0],t[1]]),i.push([e[0],e[1]])),i},t}(k),Kh=["style"],$h=function(i){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,Kh),e=i.call(this,is({type:M.POLYGON,style:is({points:"",miterLimit:"",isClosed:!0},e)},t))||this,t=(e.markerStartAngle=0,e.markerEndAngle=0,e.markerMidList=[],e.parsedStyle),n=t.markerStart,r=t.markerEnd,t=t.markerMid;return n&&n instanceof k&&(e.markerStartAngle=n.getLocalEulerAngles(),e.appendChild(n)),t&&t instanceof k&&e.placeMarkerMid(t),r&&r instanceof k&&(e.markerEndAngle=r.getLocalEulerAngles(),e.appendChild(r)),e.transformMarker(!0),e.transformMarker(!1),e}g(t,i);var e=t.prototype;return e.attributeChangedCallback=function(t,e,n,r,i){"points"===t?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):"markerStartOffset"===t||"markerEndOffset"===t?(this.transformMarker(!0),this.transformMarker(!1)):"markerStart"===t?(r&&r instanceof k&&(this.markerStartAngle=0,r.remove()),i&&i instanceof k&&(this.markerStartAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!0))):"markerEnd"===t?(r&&r instanceof k&&(this.markerEndAngle=0,r.remove()),i&&i instanceof k&&(this.markerEndAngle=i.getLocalEulerAngles(),this.appendChild(i),this.transformMarker(!1))):"markerMid"===t&&this.placeMarkerMid(i)},e.transformMarker=function(t){var e,n,r,i,o,a=this.parsedStyle,s=a.markerStart,l=a.markerEnd,u=a.markerStartOffset,c=a.markerEndOffset,h=a.points.points,d=a.defX,a=a.defY,s=t?s:l;s&&s instanceof k&&(i=h[l=0][0]-d,o=h[0][1]-a,u=t?(e=h[1][0]-h[0][0],n=h[1][1]-h[0][1],r=(null==u?void 0:u.value)||0,this.markerStartAngle):(t=h.length,n=this.style.isClosed?(e=h[t-1][0]-h[0][0],h[t-1][1]-h[0][1]):(i=h[t-1][0]-d,o=h[t-1][1]-a,e=h[t-2][0]-h[t-1][0],h[t-2][1]-h[t-1][1]),r=(null==c?void 0:c.value)||0,this.markerEndAngle),l=Math.atan2(n,e),s.setLocalEulerAngles(180*l/Math.PI+u),s.setLocalPosition(i+Math.cos(l)*r,o+Math.sin(l)*r))},e.placeMarkerMid=function(t){var e=this.parsedStyle,n=e.points.points,r=e.defX,i=e.defY;if(this.markerMidList.forEach(function(t){t.remove()}),t&&t instanceof k)for(var o=1;o<(this.style.isClosed?n.length:n.length-1);o++){var a=n[o][0]-r,s=n[o][1]-i,l=1===o?t:t.cloneNode(!0);this.markerMidList.push(l),this.appendChild(l),l.setLocalPosition(a,s)}},t}(k),Jh=["style"],Qh=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,Jh);return n.call(this,is({type:M.POLYLINE,style:is({points:"",miterLimit:"",isClosed:!1},e)},t))||this}g(t,n);var e=t.prototype;return e.getTotalLength=function(){return this.parsedStyle.points.totalLength},e.getPoint=function(n){var t=this.parsedStyle,e=t.defX,r=t.defY,t=t.points,i=t.points,t=t.segments,o=0,a=0,t=(t.forEach(function(t,e){n>=t[0]&&n<=t[1]&&(o=(n-t[0])/(t[1]-t[0]),a=e)}),Pa.pointAt(i[a][0],i[a][1],i[a+1][0],i[a+1][1],o)),i=t.x,t=t.y,i=Zi(v(),E(i-e,t-r,0),this.getLocalTransform());return new Cc(i[0],i[1])},e.getStartTangent=function(){var t=this.parsedStyle.points.points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.getEndTangent=function(){var t=this.parsedStyle.points.points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},t}($h),td=["style"],ed=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,td);return n.call(this,is({type:M.RECT,style:is({x:"",y:"",width:"",height:"",radius:""},e)},t))||this}return g(t,n),t}(k),nd=["style"],rd=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,nd);return n.call(this,is({type:M.TEXT,style:is({x:"",y:"",text:"",fontSize:"",fontFamily:"",fontStyle:"",fontWeight:"",fontVariant:"",textAlign:"",textBaseline:"",textTransform:"",fill:"black",letterSpacing:"",lineHeight:"",miterLimit:"",whiteSpace:"pre",wordWrap:!1,wordWrapWidth:0,leading:0,dx:"",dy:""},e)},t))||this}g(t,n);var e=t.prototype;return e.getComputedTextLength=function(){var t;return(null==(t=this.parsedStyle.metrics)?void 0:t.maxLineWidth)||0},e.getLineBoundingRects=function(){var t;return(null==(t=this.parsedStyle.metrics)?void 0:t.lineMetrics)||[]},t}(k),id=["style"],od=function(n){function t(t){var t=void 0===t?{}:t,e=t.style,t=ss(t,id),e=n.call(this,is({type:M.HTML,style:is({x:"",y:"",width:"auto",height:"auto",innerHTML:""},e)},t))||this;return e.cullable.enable=!1,e}g(t,n);var e=t.prototype;return e.getDomElement=function(){return this.parsedStyle.$el},e.getBoundingClientRect=function(){return this.parsedStyle.$el.getBoundingClientRect()},e.getClientRects=function(){return[this.getBoundingClientRect()]},e.getBounds=function(){var t,e,n=this.getBoundingClientRect(),r=null==(r=this.ownerDocument)||null==(r=r.defaultView)?void 0:r.getContextService().getBoundingClientRect();return r?(t=n.left-r.left,r=n.top-r.top,(e=new Oc).setMinMax(E(t,r,0),E(t+n.width,r+n.height,0)),e):null},e.getLocalBounds=function(){if(this.parentNode){var t,e=xi(yi(),this.parentNode.getWorldTransform()),n=this.getBounds();if(!Oc.isEmpty(n))return(t=new Oc).setFromTransformedAABB(n,e),t}return this.getBounds()},t}(k),ad=function(i){function t(t,e,n,r){t=i.call(this,t)||this;return t.currentTime=void 0,t.timelineTime=void 0,t.currentTime=n,t.timelineTime=r,t.target=e,t.type="finish",t.bubbles=!1,t.currentTarget=e,t.defaultPrevented=!1,t.eventPhase=t.AT_TARGET,t.timeStamp=Date.now(),t.currentTime=n,t.timelineTime=r,t}return g(t,i),t}(Mh),sd=0,ld=function(){function t(t,e){this.effect=void 0,this.timeline=void 0,this.id=void 0,this.currentTimePending=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this.oldPlayState=void 0,this._holdTime=void 0,this.readyPromise=void 0,this.finishedPromise=void 0,this.resolveReadyPromise=void 0,this.rejectReadyPromise=void 0,this.resolveFinishedPromise=void 0,this.rejectFinishedPromise=void 0,this.onfinish=void 0,this.oncancel=void 0,this.onframe=void 0,this._currentTime=0,this._startTime=void 0,this._playbackRate=1,this._inEffect=void 0,this._inTimeline=!0,this.onremove=void 0,((this.effect=t).animation=this).timeline=e,this.id=""+sd++,this._inEffect=!!this.effect.update(0),this._holdTime=0,this._paused=!1,this.oldPlayState="idle",this.updatePromises()}var e=t.prototype;return e.updatePromises=function(){var t=this.oldPlayState,e=this.pending?"pending":this.playState;return this.readyPromise&&e!==t&&("idle"===e?(this.rejectReadyPromise(),this.readyPromise=void 0):"pending"===t?this.resolveReadyPromise():"pending"===e&&(this.readyPromise=void 0)),this.finishedPromise&&e!==t&&("idle"===e?(this.rejectFinishedPromise(),this.finishedPromise=void 0):"finished"===e?this.resolveFinishedPromise():"finished"===t&&(this.finishedPromise=void 0)),this.oldPlayState=e,this.readyPromise||this.finishedPromise},e.play=function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),-1===this.timeline.animations.indexOf(this)&&this.timeline.animations.push(this),this.updatePromises()},e.pause=function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),this._isFinished||this._paused||this._idle?this._idle&&(this.rewind(),this._idle=!1):this.currentTimePending=!0,this._startTime=null,this._paused=!0,this.updatePromises()},e.finish=function(){this.updatePromises(),this._idle||(this.currentTime=0<this._playbackRate?this.totalDuration:0,this._startTime=this.totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())},e.cancel=function(){this.updatePromises(),this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises())},e.reverse=function(){this.updatePromises();var t=this.currentTime;this.playbackRate*=-1,this.play(),null!==t&&(this.currentTime=t),this.updatePromises()},e.updatePlaybackRate=function(t){this.playbackRate=t},e.targetAnimations=function(){var t;return(null==(t=this.effect)?void 0:t.target).getAnimations()},e.markTarget=function(){var t=this.targetAnimations();-1===t.indexOf(this)&&t.push(this)},e.unmarkTarget=function(){var t=this.targetAnimations(),e=t.indexOf(this);-1!==e&&t.splice(e,1)},e.tick=function(t,e){this._idle||this._paused||(null===this._startTime?e&&(this.startTime=t-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((t-this._startTime)*this.playbackRate)),e&&(this.currentTimePending=!1,this.fireEvents(t))},e.rewind=function(){if(0<=this.playbackRate)this.currentTime=0;else{if(!(this.totalDuration<1/0))throw new Error("Unable to rewind negative playback rate animation with infinite duration");this.currentTime=this.totalDuration}},e.persist=function(){throw new Error("Method not implemented.")},e.addEventListener=function(t,e,n){throw new Error("Method not implemented.")},e.removeEventListener=function(t,e,n){throw new Error("Method not implemented.")},e.dispatchEvent=function(t){throw new Error("Method not implemented.")},e.commitStyles=function(){throw new Error("Method not implemented.")},e.ensureAlive=function(){var t;this.playbackRate<0&&0===this.currentTime?this._inEffect=!(null==(t=this.effect)||!t.update(-1)):this._inEffect=!(null==(t=this.effect)||!t.update(this.currentTime)),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,this.timeline.animations.push(this))},e.tickCurrentTime=function(t,e){t!==this._currentTime&&(this._currentTime=t,this._isFinished&&!e&&(this._currentTime=0<this._playbackRate?this.totalDuration:0),this.ensureAlive())},e.fireEvents=function(t){var e,n=this;this._isFinished?this._finishedFlag||(this.onfinish&&(e=new ad(null,this,this.currentTime,t),setTimeout(function(){n.onfinish&&n.onfinish(e)})),this._finishedFlag=!0):(this.onframe&&"running"===this.playState&&(t=new ad(null,this,this.currentTime,t),this.onframe(t)),this._finishedFlag=!1)},rs(t,[{key:"pending",get:function(){return null===this._startTime&&!this._paused&&0!==this.playbackRate||this.currentTimePending}},{key:"playState",get:function(){return this._idle?"idle":this._isFinished?"finished":this._paused?"paused":"running"}},{key:"ready",get:function(){var n=this;return this.readyPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.readyPromise=new Promise(function(t,e){n.resolveReadyPromise=function(){t(n)},n.rejectReadyPromise=function(){e(new Error)}}),this.pending||this.resolveReadyPromise()),this.readyPromise}},{key:"finished",get:function(){var n=this;return this.finishedPromise||(-1===this.timeline.animationsWithPromises.indexOf(this)&&this.timeline.animationsWithPromises.push(this),this.finishedPromise=new Promise(function(t,e){n.resolveFinishedPromise=function(){t(n)},n.rejectFinishedPromise=function(){e(new Error)}}),"finished"===this.playState&&this.resolveFinishedPromise()),this.finishedPromise}},{key:"currentTime",get:function(){return this.updatePromises(),this._idle||this.currentTimePending?null:this._currentTime},set:function(t){var e;t=Number(t),isNaN(t)||(this.timeline.restart(),this._paused||null===this._startTime||(this._startTime=Number(null==(e=this.timeline)?void 0:e.currentTime)-t/this.playbackRate),this.currentTimePending=!1,this._currentTime!==t&&(this._idle&&(this._idle=!1,this._paused=!0),this.tickCurrentTime(t,!0),this.timeline.applyDirtiedAnimation(this)))}},{key:"startTime",get:function(){return this._startTime},set:function(t){null!==t&&(this.updatePromises(),t=Number(t),isNaN(t)||this._paused||this._idle||(this._startTime=t,this.tickCurrentTime((Number(this.timeline.currentTime)-this._startTime)*this.playbackRate),this.timeline.applyDirtiedAnimation(this),this.updatePromises()))}},{key:"playbackRate",get:function(){return this._playbackRate},set:function(t){var e;t!==this._playbackRate&&(this.updatePromises(),e=this.currentTime,this._playbackRate=t,this.startTime=null,"paused"!==this.playState&&"idle"!==this.playState&&(this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this)),null!==e&&(this.currentTime=e),this.updatePromises())}},{key:"_isFinished",get:function(){return!this._idle&&(0<this._playbackRate&&Number(this._currentTime)>=this.totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){var t;return Number(null==(t=this.effect)?void 0:t.getComputedTiming().endTime)}},{key:"_needsTick",get:function(){return this.pending||"running"===this.playState||!this._finishedFlag}}]),t}();function ud(t,e){return Number(t.id)-Number(e.id)}var cd=function(){function t(t){var n=this;this.document=void 0,this.animations=[],this.ticking=!1,this.timelineTicking=!1,this.hasRestartedThisFrame=!1,this.animationsWithPromises=[],this.inTick=!1,this.pendingEffects=[],this.currentTime=null,this.rafId=0,this.rafCallbacks=[],this.frameId=void 0,this.webAnimationsNextTick=function(t){n.currentTime=t,n.discardAnimations(),0===n.animations.length?n.timelineTicking=!1:n.requestAnimationFrame(n.webAnimationsNextTick)},this.processRafCallbacks=function(e){var t=n.rafCallbacks;n.rafCallbacks=[],e<Number(n.currentTime)&&(e=Number(n.currentTime)),n.animations.sort(ud),n.animations=n.tick(e,!0,n.animations)[0],t.forEach(function(t){t[1](e)}),n.applyPendingEffects()},this.document=t}var e=t.prototype;return e.getAnimations=function(){return this.discardAnimations(),this.animations.slice()},e.isTicking=function(){return this.inTick},e.play=function(t){t=new ld(t,this);return this.animations.push(t),this.restartWebAnimationsNextTick(),t.updatePromises(),t.play(),t.updatePromises(),t},e.applyDirtiedAnimation=function(t){var e=this;this.inTick||(t.markTarget(),(t=t.targetAnimations()).sort(ud),this.tick(Number(this.currentTime),!1,t.slice())[1].forEach(function(t){t=e.animations.indexOf(t);-1!==t&&e.animations.splice(t,1)}),this.applyPendingEffects())},e.restart=function(){return this.ticking||(this.ticking=!0,this.requestAnimationFrame(function(){}),this.hasRestartedThisFrame=!0),this.hasRestartedThisFrame},e.destroy=function(){this.document.defaultView.cancelAnimationFrame(this.frameId)},e.applyPendingEffects=function(){this.pendingEffects.forEach(function(t){null!=t&&t.applyInterpolations()}),this.pendingEffects=[]},e.updateAnimationsPromises=function(){this.animationsWithPromises=this.animationsWithPromises.filter(function(t){return t.updatePromises()})},e.discardAnimations=function(){this.updateAnimationsPromises(),this.animations=this.animations.filter(function(t){return"finished"!==t.playState&&"idle"!==t.playState})},e.restartWebAnimationsNextTick=function(){this.timelineTicking||(this.timelineTicking=!0,this.requestAnimationFrame(this.webAnimationsNextTick))},e.rAF=function(t){var e=this.rafId++;return 0===this.rafCallbacks.length&&(this.frameId=this.document.defaultView.requestAnimationFrame(this.processRafCallbacks)),this.rafCallbacks.push([e,t]),e},e.requestAnimationFrame=function(e){var n=this;return this.rAF(function(t){n.updateAnimationsPromises(),e(t),n.updateAnimationsPromises()})},e.tick=function(n,r,t){var i=this,o=(this.inTick=!0,this.hasRestartedThisFrame=!1,this.currentTime=n,this.ticking=!1,[]),a=[],s=[],l=[];return t.forEach(function(t){t.tick(n,r),t._inEffect?(a.push(t.effect),t.markTarget()):(o.push(t.effect),t.unmarkTarget()),t._needsTick&&(i.ticking=!0);var e=t._inEffect||t._needsTick;((t._inTimeline=e)?s:l).push(t)}),(t=this.pendingEffects).push.apply(t,o),(t=this.pendingEffects).push.apply(t,a),this.ticking&&this.requestAnimationFrame(function(){}),this.inTick=!1,[s,l]},t}(),hd=function(e){function t(){var t=e.call(this)||this,r=(t.defaultView=null,t.documentElement=void 0,t.timeline=void 0,t.ownerDocument=null,t.nodeName="document",t.timeline=new cd(ls(t)),{});return Nf.forEach(function(t){var e=t.name,n=t.inherited,t=t.defaultValue;n&&t&&(r[e]=_s(t)?t(M.GROUP):t)}),t.documentElement=new Hh({id:"g-root",style:r}),t.documentElement.ownerDocument=ls(t),t.documentElement.parentNode=ls(t),t.childNodes=[t.documentElement],t}g(t,e);var n=t.prototype;return n.createElement=function(t,e){if("svg"===t)return this.documentElement;var n=this.defaultView.customElements.get(t),t=(n||(console.warn("Unsupported tagName: ",t),n="tspan"===t?rd:Hh),new n(e));return t.ownerDocument=this,t},n.createElementNS=function(t,e,n){return this.createElement(e,n)},n.cloneNode=function(t){throw new Error("Method not implemented.")},n.destroy=function(){try{this.documentElement.destroy()}catch(t){}this.timeline.destroy()},n.elementFromPoint=function(){var n=es(_().mark(function t(e,n){var r,i,o,a,s,l;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this.defaultView.canvas2Viewport({x:e,y:n}),r=i.x,i=i.y,a=this.defaultView.getConfig(),o=a.width,a=a.height,r<0||i<0||o<r||a<i)return t.abrupt("return",null);t.next=4;break;case 4:return o=this.defaultView.viewport2Client({x:r,y:i}),a=o.x,s=o.y,t.next=7,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:e,y:n,viewportX:r,viewportY:i,clientX:a,clientY:s},picked:[]});case 7:return s=t.sent,l=s.picked,t.abrupt("return",l&&l[0]||this.documentElement);case 10:case"end":return t.stop()}},t,this)}));return function(t,e){return n.apply(this,arguments)}}(),n.elementsFromPoint=function(){var n=es(_().mark(function t(e,n){var r,i,o,a,s,l;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this.defaultView.canvas2Viewport({x:e,y:n}),r=i.x,i=i.y,a=this.defaultView.getConfig(),o=a.width,a=a.height,r<0||i<0||o<r||a<i)return t.abrupt("return",[]);t.next=4;break;case 4:return o=this.defaultView.viewport2Client({x:r,y:i}),a=o.x,s=o.y,t.next=7,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:e,y:n,viewportX:r,viewportY:i,clientX:a,clientY:s},picked:[]});case 7:return s=t.sent,(l=s.picked)[l.length-1]!==this.documentElement&&l.push(this.documentElement),t.abrupt("return",l);case 11:case"end":return t.stop()}},t,this)}));return function(t,e){return n.apply(this,arguments)}}(),n.appendChild=function(t,e){throw new Error("Use document.documentElement instead.")},n.insertBefore=function(t,e){throw new Error("Use document.documentElement instead.")},n.removeChild=function(t,e){throw new Error("Use document.documentElement instead.")},n.replaceChild=function(t,e,n){throw new Error("Use document.documentElement instead.")},n.append=function(){throw new Error("Use document.documentElement instead.")},n.prepend=function(){throw new Error("Use document.documentElement instead.")},n.getElementById=function(t){return this.documentElement.getElementById(t)},n.getElementsByName=function(t){return this.documentElement.getElementsByName(t)},n.getElementsByTagName=function(t){return this.documentElement.getElementsByTagName(t)},n.getElementsByClassName=function(t){return this.documentElement.getElementsByClassName(t)},n.querySelector=function(t){return this.documentElement.querySelector(t)},n.querySelectorAll=function(t){return this.documentElement.querySelectorAll(t)},n.find=function(t){return this.documentElement.find(t)},n.findAll=function(t){return this.documentElement.findAll(t)},rs(t,[{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}}]),t}(Oh),dd=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).altKey=void 0,t.button=void 0,t.buttons=void 0,t.ctrlKey=void 0,t.metaKey=void 0,t.relatedTarget=void 0,t.shiftKey=void 0,t.client=new Cc,t.movement=new Cc,t.offset=new Cc,t.global=new Cc,t.screen=new Cc,t}g(t,i);var e=t.prototype;return e.getModifierState=function(t){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(t)},e.initMouseEvent=function(){throw new Error("Method not implemented.")},rs(t,[{key:"clientX",get:function(){return this.client.x}},{key:"clientY",get:function(){return this.client.y}},{key:"movementX",get:function(){return this.movement.x}},{key:"movementY",get:function(){return this.movement.y}},{key:"offsetX",get:function(){return this.offset.x}},{key:"offsetY",get:function(){return this.offset.y}},{key:"globalX",get:function(){return this.global.x}},{key:"globalY",get:function(){return this.global.y}},{key:"screenX",get:function(){return this.screen.x}},{key:"screenY",get:function(){return this.screen.y}}]),t}(Mh),fd=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).pointerId=void 0,t.width=0,t.height=0,t.isPrimary=!1,t.pointerType=void 0,t.pressure=void 0,t.tangentialPressure=void 0,t.tiltX=void 0,t.tiltY=void 0,t.twist=void 0,t}g(t,i);var e=t.prototype;return e.getCoalescedEvents=function(){return"pointermove"===this.type||"mousemove"===this.type||"touchmove"===this.type?[this]:[]},e.getPredictedEvents=function(){throw new Error("getPredictedEvents is not supported!")},t}(dd),pd=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).deltaMode=void 0,t.deltaX=void 0,t.deltaY=void 0,t.deltaZ=void 0,t.DOM_DELTA_LINE=0,t.DOM_DELTA_PAGE=1,t.DOM_DELTA_PIXEL=2,t}return g(t,i),t}(dd),yd=function(){function t(){this.delay=0,this.direction="normal",this.duration="auto",this._easing="linear",this.easingFunction=jl,this.endDelay=0,this.fill="auto",this.iterationStart=0,this.iterations=1,this.playbackRate=void 0,this.effect=void 0,this.composite=void 0,this.activeDuration=void 0,this.endTime=void 0,this.currentIteration=null,this.progress=null}return rs(t,[{key:"easing",get:function(){return this._easing},set:function(t){this.easingFunction=Hl(t),this._easing=t}}]),t}();function gd(t,i){if(null===t)return[];for(var e=(t=Array.isArray(t)?t:function(t){var e,n=[];for(e in t)if(!(e in["easing","offset","composite"]))for(var r,i=t[e],o=(i=Array.isArray(i)?i:[i]).length,a=0;a<o;a++)n[a]||(r={},"offset"in t&&(r.offset=Number(t.offset)),"easing"in t&&(r.easing=t.easing),"composite"in t&&(r.composite=t.composite),n[a]=r),void 0!==i[a]&&null!==i[a]&&(n[a][e]=i[a]);return n.sort(function(t,e){return(t.computedOffset||0)-(e.computedOffset||0)}),n}(t)).map(function(t){var e,n={};for(e in null!=i&&i.composite&&(n.composite="auto"),t){var r=t[e];if("offset"===e){if(null!==r){if(r=Number(r),!isFinite(r))throw new Error("Keyframe offsets must be numbers.");if(r<0||1<r)throw new Error("Keyframe offsets must be between 0 and 1.");n.computedOffset=r}}else if("composite"===e&&-1===["replace","add","accumulate","auto"].indexOf(r))throw new Error(r+" compositing is not supported");n[e]=r}return void 0===n.offset&&(n.offset=null),void 0===n.easing&&(n.easing=(null==i?void 0:i.easing)||"linear"),void 0===n.composite&&(n.composite="auto"),n}),n=!0,r=-1/0,o=0;o<e.length;o++){var a=e[o].offset;if(T(a))n=!1;else{if(a<r)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");r=a}}if(e=e.filter(function(t){return 0<=Number(t.offset)&&Number(t.offset)<=1}),!n)for(var s=e.length,l=(e[s-1].computedOffset=Number(null!=(t=e[s-1].offset)?t:1),1<s&&(e[0].computedOffset=Number(null!=(t=e[0].offset)?t:0)),0),u=Number(e[0].computedOffset),c=1;c<s;c++){var h=e[c].computedOffset;if(!T(h)&&!T(u)){for(var d=1;d<c-l;d++)e[l+d].computedOffset=u+(Number(h)-u)*d/(c-l);l=c,u=Number(h)}}return e}var vd="backwards|forwards|both|none".split("|"),md="reverse|alternate|alternate-reverse".split("|");function bd(t,e){var n,r,i;return t=function(t){"number"==typeof t&&(t=isNaN(t)?{duration:"auto"}:{duration:t});return t}(null!=(r=t)?r:{duration:"auto"}),n=t,r=e,i=new yd,r&&(i.fill="both",i.duration="auto"),"number"!=typeof n||isNaN(n)?void 0!==n&&Object.keys(n).forEach(function(t){void 0===n[t]||null===n[t]||"auto"===n[t]||!("number"!=typeof i[t]&&"duration"!==t||"number"==typeof n[t]&&!isNaN(n[t]))||"fill"===t&&-1===vd.indexOf(n[t])||"direction"===t&&-1===md.indexOf(n[t])||(i[t]=n[t])}):i.duration=n,i}var xd=function(){function t(t,e,n){var r=this;this.composite="replace",this.iterationComposite="replace",this.target=void 0,this.animation=void 0,this.timing=void 0,this.computedTiming=void 0,this.normalizedKeyframes=void 0,this.timeFraction=void 0,this.interpolations=void 0,this.target=t,this.timing=bd(n,!1),(this.timing.effect=this).timing.activeDuration=Wl(this.timing),this.timing.endTime=Math.max(0,this.timing.delay+this.timing.activeDuration+this.timing.endDelay),this.normalizedKeyframes=gd(e,this.timing),this.interpolations=Ql(this.normalizedKeyframes,this.timing,this.target),this.computedTiming=new Proxy(this.timing,{get:function(t,e){return"duration"===e?"auto"===t.duration?0:t.duration:"fill"===e?"auto"===t.fill?"none":t.fill:"localTime"===e?r.animation&&r.animation.currentTime||null:"currentIteration"===e?r.animation&&"running"===r.animation.playState?t.currentIteration||0:null:"progress"===e?r.animation&&"running"===r.animation.playState?t.progress||0:null:t[e]},set:function(){return!0}})}var e=t.prototype;return e.applyInterpolations=function(){this.interpolations(this.target,Number(this.timeFraction))},e.update=function(t){return null!==t&&(this.timeFraction=Zl(this.timing.activeDuration,t,this.timing),null!==this.timeFraction)},e.getKeyframes=function(){return this.normalizedKeyframes},e.setKeyframes=function(t){this.normalizedKeyframes=gd(t)},e.getComputedTiming=function(){return this.computedTiming},e.getTiming=function(){return this.timing},e.updateTiming=function(e){var n=this;Object.keys(e||{}).forEach(function(t){n.timing=e[t]})},t}(),wd=function(){function t(){this.registry={},this.define(M.CIRCLE,Fh),this.define(M.ELLIPSE,Vh),this.define(M.RECT,ed),this.define(M.IMAGE,Uh),this.define(M.LINE,qh),this.define(M.GROUP,Hh),this.define(M.PATH,Zh),this.define(M.POLYGON,$h),this.define(M.POLYLINE,Qh),this.define(M.TEXT,rd),this.define(M.HTML,od)}var e=t.prototype;return e.define=function(t,e){this.registry[t]=e},e.get=function(t){return this.registry[t]},t}(),kd=d.defineToken("SceneGraphSelectorFactory"),Ed=d.defineToken("SceneGraphSelector",{multiple:!1}),_d=/\[\s*(.*)=(.*)\s*\]/,Sd=function(){function t(){}var e=t.prototype;return e.selectOne=function(e,n){var t,r,i,o=this;return e.startsWith(".")?n.find(function(t){return-1<((null==t?void 0:t.classList)||[]).indexOf(o.getIdOrClassname(e))}):e.startsWith("#")?n.find(function(t){return t.id===o.getIdOrClassname(e)}):e.startsWith("[")?(t=this.getAttribute(e),r=t.name,i=t.value,r?n.find(function(t){return n!==t&&("name"===r?t.name===i:o.attributeToString(t,r)===i)}):null):n.find(function(t){return n!==t&&t.nodeName===e})},e.selectAll=function(e,n){var t,r,i,o=this;return e.startsWith(".")?n.findAll(function(t){return n!==t&&-1<((null==t?void 0:t.classList)||[]).indexOf(o.getIdOrClassname(e))}):e.startsWith("#")?n.findAll(function(t){return n!==t&&t.id===o.getIdOrClassname(e)}):e.startsWith("[")?(t=this.getAttribute(e),r=t.name,i=t.value,r?n.findAll(function(t){return n!==t&&("name"===r?t.name===i:o.attributeToString(t,r)===i)}):[]):n.findAll(function(t){return n!==t&&t.nodeName===e})},e.is=function(t,e){var n,r;return t.startsWith(".")?e.className===this.getIdOrClassname(t):t.startsWith("#")?e.id===this.getIdOrClassname(t):t.startsWith("[")?(n=(r=this.getAttribute(t)).name,r=r.value,"name"===n?e.name===r:this.attributeToString(e,n)===r):e.nodeName===t},e.getIdOrClassname=function(t){return t.substring(1)},e.getAttribute=function(t){var t=t.match(_d),e="",n="";return t&&2<t.length&&(e=t[1].replace(/"/g,""),n=t[2].replace(/"/g,"")),{name:e,value:n}},e.attributeToString=function(t,e){if(!t.getAttribute)return"";t=t.getAttribute(e);return!T(t)&&t.toString?t.toString():""},t}();function Md(t,e){var n=Number(t.style.zIndex),r=Number(e.style.zIndex);if(n===r){var i=t.parentNode;if(i)return(i=i.childNodes||[]).indexOf(t)-i.indexOf(e)}return n-r}var Td,Od,Pd,Ad,Sd=t([f({token:Ed})],Sd),Cd=d.defineToken("SceneGraphService"),Nd=function(){function t(){var a,i,o,r,s,l,u,y=this;this.sceneGraphSelectorFactory=void 0,this.pendingEvents=[],this.boundsChangedEvent=new Th(m.BOUNDS_CHANGED),this.rotate=(a=ro(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=E(e,n,r));var i,o,n=t.transformable;null!==t.parentNode&&t.parentNode.transformable?(so(r=ro(),e[0],e[1],e[2]),i=y.getRotation(t),o=y.getRotation(t.parentNode),uo(a,o),ao(a,a),oo(r,a,r),oo(n.localRotation,r,i),ho(n.localRotation,n.localRotation),y.dirtifyLocal(t,n)):y.rotateLocal(t,e)}),this.rotateLocal=(i=ro(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=E(e,n,r));n=t.transformable;so(i,e[0],e[1],e[2]),co(n.localRotation,n.localRotation,i),y.dirtifyLocal(t,n)}),this.setEulerAngles=(o=ro(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=E(e,n,r));n=t.transformable;null!==t.parentNode&&t.parentNode.transformable?(so(n.localRotation,e[0],e[1],e[2]),r=y.getRotation(t.parentNode),uo(o,ao(ro(),r)),co(n.localRotation,n.localRotation,o),y.dirtifyLocal(t,n)):y.setLocalEulerAngles(t,e)}),this.translateLocal=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=E(e,n,r));var i,o,a,s,l,u,c,h,d,f,p,n=t.transformable;$i(e,v())||(i=r=e,o=n.localRotation,a=o[0],s=o[1],l=o[2],o=o[3],u=i[0],c=i[1],i=i[2],p=s*(f=a*c-s*u)-l*(d=l*u-a*i),l=l*(h=s*i-l*c)-a*f,a=a*d-s*h,d*=s=2*o,f*=s,l*=2,a*=2,r[0]=u+(h*=s)+(p*=2),r[1]=c+d+l,r[2]=i+f+a,Hi(n.localPosition,n.localPosition,e),y.dirtifyLocal(t,n))},this.setPosition=(r=yi(),s=v(),function(t,e){var n=t.transformable;s[0]=e[0],s[1]=e[1],s[2]=e[2]||0,$i(y.getPosition(t),s)||(Vi(n.position,s),null!==t.parentNode&&t.parentNode.transformable?(e=t.parentNode.transformable,vi(r,e.worldTransform),xi(r,r),Zi(n.localPosition,s,r)):Vi(n.localPosition,s),y.dirtifyLocal(t,n))}),this.setLocalPosition=(l=v(),function(t,e){var n=t.transformable;l[0]=e[0],l[1]=e[1],l[2]=e[2]||0,$i(n.localPosition,l)||(Vi(n.localPosition,l),y.dirtifyLocal(t,n))}),this.translate=(u=v(),function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),$i(e="number"==typeof e?E(e,n,r):e,v())||(Hi(u,y.getPosition(t),e),y.setPosition(t,u))}),this.setRotation=function(){var a=ro();return function(t,e,n,r,i){var o=t.transformable;"number"==typeof e&&(e=lo(e,n,r,i)),null!==t.parentNode&&t.parentNode.transformable?(n=y.getRotation(t.parentNode),uo(a,n),ao(a,a),oo(o.localRotation,a,e),ho(o.localRotation,o.localRotation),y.dirtifyLocal(t,o)):y.setLocalRotation(t,e)}}}var e=t.prototype;return e.matches=function(t,e){return this.sceneGraphSelectorFactory().is(t,e)},e.querySelector=function(t,e){return this.sceneGraphSelectorFactory().selectOne(t,e)},e.querySelectorAll=function(t,e){return this.sceneGraphSelectorFactory().selectAll(t,e)},e.attach=function(t,e,n){t.parentNode&&this.detach(t),t.parentNode=e,T(n)?t.parentNode.childNodes.push(t):t.parentNode.childNodes.splice(n,0,t);n=e.sortable,n&&(n.dirty=!0),e=t.transformable;e&&this.dirtifyWorld(t,e),e.frozen&&this.unfreezeParentToRoot(t)},e.detach=function(t){var e,n;t.parentNode&&(e=t.transformable,(n=t.parentNode.sortable)&&(n.dirty=!0),-1<(n=t.parentNode.childNodes.indexOf(t))&&t.parentNode.childNodes.splice(n,1),e&&this.dirtifyWorld(t,e),t.parentNode=null)},e.getOrigin=function(t){return t.transformable.origin},e.setOrigin=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=E(e,n,r));n=t.transformable;$i(e,n.origin)||((r=n.origin)[0]=e[0],r[1]=e[1],r[2]=e[2]||0,this.dirtifyLocal(t,n))},e.setLocalEulerAngles=function(t,e,n,r){void 0===n&&(n=0),void 0===r&&(r=0),"number"==typeof e&&(e=E(e,n,r));n=t.transformable;so(n.localRotation,e[0],e[1],e[2]),this.dirtifyLocal(t,n)},e.scaleLocal=function(t,e){var n,r,i=t.transformable;n=i.localScale,r=i.localScale,e=E(e[0],e[1],e[2]||1),n[0]=r[0]*e[0],n[1]=r[1]*e[1],n[2]=r[2]*e[2],this.dirtifyLocal(t,i)},e.setLocalScale=function(t,e){var n=t.transformable,e=E(e[0],e[1],e[2]||n.localScale[2]);$i(e,n.localScale)||(Vi(n.localScale,e),this.dirtifyLocal(t,n))},e.setLocalRotation=function(t,e,n,r,i){"number"==typeof e&&(e=lo(e,n,r,i));n=t.transformable;uo(n.localRotation,e),this.dirtifyLocal(t,n)},e.setLocalSkew=function(t,e,n){"number"==typeof e&&(e=fo(e,n));var r,n=t.transformable;r=n.localSkew,e=e,r[0]=e[0],r[1]=e[1],this.dirtifyLocal(t,n)},e.dirtifyLocal=function(t,e){e.localDirtyFlag||(e.localDirtyFlag=!0,e.dirtyFlag||this.dirtifyWorld(t,e))},e.dirtifyWorld=function(t,e){e.dirtyFlag||this.unfreezeParentToRoot(t),this.dirtifyWorldInternal(t,e),this.dirtifyToRoot(t,!0)},e.triggerPendingEvents=function(){function r(t,e){i.has(t.entity)||(n.boundsChangedEvent.detail=e,t.dispatchEvent(n.boundsChangedEvent),i.add(t.entity))}var n=this,i=new Set;this.pendingEvents.forEach(function(t){var e=t[0],n=t[1];n.affectChildren?e.forEach(function(t){r(t,n)}):r(e,n)}),this.pendingEvents=[]},e.dirtifyToRoot=function(t,e){void 0===e&&(e=!1);var n=t;for(n.renderable&&(n.renderable.dirty=!0);n;){var r=n.renderable;r&&(r.renderBoundsDirty=!0,r.boundsDirty=!0),n=n.parentNode}this.pendingEvents.push([t,{affectChildren:e}])},e.getPosition=function(t){var e=t.transformable;return Oi(e.position,this.getWorldTransform(t,e))},e.getRotation=function(t){var e=t.transformable;return Ai(e.rotation,this.getWorldTransform(t,e))},e.getScale=function(t){var e=t.transformable;return Pi(e.scaling,this.getWorldTransform(t,e))},e.getWorldTransform=function(t,e){return((e=void 0===e?t.transformable:e).localDirtyFlag||e.dirtyFlag)&&(t.parentNode&&t.parentNode.transformable&&this.getWorldTransform(t.parentNode),this.sync(t,e)),e.worldTransform},e.getLocalPosition=function(t){return t.transformable.localPosition},e.getLocalRotation=function(t){return t.transformable.localRotation},e.getLocalScale=function(t){return t.transformable.localScale},e.getLocalSkew=function(t){return t.transformable.localSkew},e.calcLocalTransform=function(t){Ci(t.localTransform,t.localRotation,t.localPosition,E(1,1,1),t.origin),0===t.localSkew[0]&&0===t.localSkew[1]||((e=bi(yi()))[4]=Math.tan(t.localSkew[0]),e[1]=Math.tan(t.localSkew[1]),wi(t.localTransform,t.localTransform,e));var e=Ci(yi(),lo(0,0,0,1),v(),t.localScale,t.origin);wi(t.localTransform,t.localTransform,e)},e.getLocalTransform=function(t){t=t.transformable;return t.localDirtyFlag&&(this.calcLocalTransform(t),t.localDirtyFlag=!1),t.localTransform},e.setLocalTransform=function(t,e){var n=Oi(v(),e),r=Ai(ro(),e),e=Pi(v(),e);this.setLocalScale(t,e),this.setLocalPosition(t,n),this.setLocalRotation(t,r)},e.resetLocalTransform=function(t){this.setLocalScale(t,[1,1,1]),this.setLocalPosition(t,[0,0,0]),this.setLocalEulerAngles(t,[0,0,0]),this.setLocalSkew(t,[0,0])},e.getTransformedGeometryBounds=function(t,e){var n,e=this.getGeometryBounds(t,e=void 0===e?!1:e);return Oc.isEmpty(e)?null:((n=new Oc).setFromTransformedAABB(e,this.getWorldTransform(t)),n)},e.getGeometryBounds=function(t,e){t=t.geometry;return((e=void 0===e?!1:e)?t.renderBounds:t.contentBounds||null)||new Oc},e.getBounds=function(t,e){var n=this,r=(void 0===e&&(e=!1),t.renderable);if(!r.boundsDirty&&!e&&r.bounds)return r.bounds;if(!r.renderBoundsDirty&&e&&r.renderBounds)return r.renderBounds;var i,o=this.getTransformedGeometryBounds(t,e),a=(t.childNodes.forEach(function(t){t=n.getBounds(t,e);t&&(o?o.add(t):(o=new Oc).update(t.center,t.halfExtents))}),t.parsedStyle.clipPath);return a&&((a=this.getTransformedGeometryBounds(a,!0))&&(i=new Oc).setFromTransformedAABB(a,this.getWorldTransform(t)),o?i&&(o=i.intersection(o)):o=i),o&&(e?r.renderBounds=o:r.bounds=o),e?r.renderBoundsDirty=!1:r.boundsDirty=!1,o||new Oc},e.getLocalBounds=function(t){if(t.parentNode){var e,n=yi(),r=(t.parentNode.transformable&&(n=xi(yi(),this.getWorldTransform(t.parentNode))),this.getBounds(t));if(!Oc.isEmpty(r))return(e=new Oc).setFromTransformedAABB(r,n),e}return this.getBounds(t)},e.getBoundingClientRect=function(t){var e,n,r,i=this.getGeometryBounds(t),i=(Oc.isEmpty(i)||(r=new Oc).setFromTransformedAABB(i,this.getWorldTransform(t)),null==(i=t.ownerDocument)||null==(t=i.defaultView)?void 0:t.getContextService().getBoundingClientRect());return r?(e=(t=r.getMin())[0],t=t[1],n=(r=r.getMax())[0],r=r[1],new Nc(e+((null==i?void 0:i.left)||0),t+((null==i?void 0:i.top)||0),n-e,r-t)):new Nc((null==i?void 0:i.left)||0,(null==i?void 0:i.top)||0,0,0)},e.dirtifyWorldInternal=function(t,e){var n=this;e.dirtyFlag||(e.dirtyFlag=!0,e.frozen=!1,t.childNodes.forEach(function(t){var e=t.transformable;e.dirtyFlag||n.dirtifyWorldInternal(t,e)}),(e=t.renderable)&&(e.renderBoundsDirty=!0,e.boundsDirty=!0,e.dirty=!0))},e.syncHierarchy=function(t){var e=t.transformable;if(!e.frozen){e.frozen=!0,(e.localDirtyFlag||e.dirtyFlag)&&this.sync(t,e);for(var n=t.childNodes,r=0;r<n.length;r++)this.syncHierarchy(n[r])}},e.sync=function(t,e){var n;e.localDirtyFlag&&(this.calcLocalTransform(e),e.localDirtyFlag=!1),e.dirtyFlag&&(n=(t=t.parentNode)&&t.transformable,null!==t&&n?wi(e.worldTransform,n.worldTransform,e.localTransform):vi(e.worldTransform,e.localTransform),e.dirtyFlag=!1)},e.unfreezeParentToRoot=function(t){for(var e=t.parentNode;e;){var n=e.transformable;n&&(n.frozen=!1),e=e.parentNode}},t}(),Ld=(t([p(kd),e("design:type",Function)],Nd.prototype,"sceneGraphSelectorFactory",void 0),Nd=t([f({token:Cd})],Nd),d.defineToken("ContextService",{multiple:!1})),Id=((c=Td=Td||{})[c.CAMERA_CHANGED=0]="CAMERA_CHANGED",c[c.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",c[c.NONE=2]="NONE",d.defineToken("RenderingContext")),Rd=d.defineToken("DefaultCamera");(a=Od=Od||{})[a.ORBITING=0]="ORBITING",a[a.EXPLORING=1]="EXPLORING",a[a.TRACKING=2]="TRACKING",(l=Pd=Pd||{})[l.DEFAULT=0]="DEFAULT",l[l.ROTATIONAL=1]="ROTATIONAL",l[l.TRANSLATIONAL=2]="TRANSLATIONAL",l[l.CINEMATIC=3]="CINEMATIC",(r=Ad=Ad||{})[r.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",r[r.PERSPECTIVE=1]="PERSPECTIVE";var Dd="updated",jd=Math.PI/180,Bd=180/Math.PI,Fd=function(r){function a(t,e){var n;return void 0===t&&(t=Od.EXPLORING),void 0===e&&(e=Pd.DEFAULT),(n=r.call(this)||this).canvas=void 0,n.matrix=yi(),n.right=E(1,0,0),n.up=E(0,1,0),n.forward=E(0,0,1),n.position=E(0,0,1),n.focalPoint=E(0,0,0),n.distanceVector=E(0,0,-1),n.distance=1,n.azimuth=0,n.elevation=0,n.roll=0,n.relAzimuth=0,n.relElevation=0,n.relRoll=0,n.dollyingStep=0,n.maxDistance=1/0,n.minDistance=-1/0,n.zoom=1,n.rotateWorld=!1,n.fov=30,n.near=.1,n.far=1e3,n.aspect=1,n.left=void 0,n.rright=void 0,n.top=void 0,n.bottom=void 0,n.projectionMatrix=yi(),n.projectionMatrixInverse=yi(),n.jitteredProjectionMatrix=void 0,n.view=void 0,n.enableUpdate=!0,n.type=Od.EXPLORING,n.trackingMode=Pd.DEFAULT,n.projectionMode=Ad.PERSPECTIVE,n.frustum=new Ac,n.landmarks=[],n.landmarkAnimationID=void 0,n.orthoMatrix=yi(),n.setType(t,e),n}g(a,r);var t=a.prototype;return t.isOrtho=function(){return this.projectionMode===Ad.ORTHOGRAPHIC},t.getProjectionMode=function(){return this.projectionMode},t.getPerspective=function(){return this.jitteredProjectionMatrix||this.projectionMatrix},t.getPerspectiveInverse=function(){return this.projectionMatrixInverse},t.getFrustum=function(){return this.frustum},t.getPosition=function(){return this.position},t.getFocalPoint=function(){return this.focalPoint},t.getDollyingStep=function(){return this.dollyingStep},t.getNear=function(){return this.near},t.getFar=function(){return this.far},t.getZoom=function(){return this.zoom},t.getOrthoMatrix=function(){return this.orthoMatrix},t.getView=function(){return this.view},t.setEnableUpdate=function(t){this.enableUpdate=t},t.setType=function(t,e){return this.type=t,this.type===Od.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===Od.TRACKING&&void 0!==e&&this.setTrackingMode(e),this},t.setProjectionMode=function(t){return this.projectionMode=t,this},t.setTrackingMode=function(t){if(this.type!==Od.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=t,this},t.setWorldRotation=function(t){return this.rotateWorld=t,this._getAngles(),this},t.getViewTransform=function(){return xi(yi(),this.matrix)},t.getWorldTransform=function(){return this.matrix},t.jitterProjectionMatrix=function(t,e){t=Mi(yi(),[t,e,0]);this.jitteredProjectionMatrix=wi(yi(),t,this.projectionMatrix)},t.clearJitterProjectionMatrix=function(){this.jitteredProjectionMatrix=void 0},t.setMatrix=function(t){return this.matrix=t,this._update(),this},t.setFov=function(t){return this.setPerspective(this.near,this.far,t,this.aspect),this},t.setAspect=function(t){return this.setPerspective(this.near,this.far,this.fov,t),this},t.setNear=function(t){return this.projectionMode===Ad.PERSPECTIVE?this.setPerspective(t,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,t,this.far),this},t.setFar=function(t){return this.projectionMode===Ad.PERSPECTIVE?this.setPerspective(this.near,t,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,t),this},t.setViewOffset=function(t,e,n,r,i,o){return this.aspect=t/e,void 0===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=r,this.view.width=i,this.view.height=o,this.projectionMode===Ad.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.clearViewOffset=function(){return void 0!==this.view&&(this.view.enabled=!1),this.projectionMode===Ad.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this},t.setZoom=function(t){return this.zoom=t,this.projectionMode===Ad.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===Ad.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this},t.setPerspective=function(t,e,n,r){this.projectionMode=Ad.PERSPECTIVE,this.fov=n,this.near=t,this.far=e,this.aspect=r;var i,o,a,s,n=this.near*Math.tan(.5*jd*this.fov)/this.zoom,e=2*n,r=this.aspect*e,l=-.5*r;return null!=(i=this.view)&&i.enabled&&(i=this.view.fullWidth,o=this.view.fullHeight,l+=this.view.offsetX*r/i,n-=this.view.offsetY*e/o,r*=this.view.width/i,e*=this.view.height/o),i=this.projectionMatrix,l=(o=l)+r,n=(r=n)-e,e=this.far,a=2*t/(r-n),s=(l+o)/(l-o),r=(r+n)/(r-n),n=-(e+t)/(e-t),e=-2*e*t/(e-t),i[0]=2*t/(l-o),i[1]=0,i[2]=0,i[3]=0,i[4]=0,i[5]=a,i[6]=0,i[7]=0,i[8]=s,i[9]=r,i[10]=n,i[11]=-1,i[12]=0,i[13]=0,i[14]=e,i[15]=0,Ei(this.projectionMatrix,this.projectionMatrix,E(1,-1,1)),xi(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this},t.setOrthographic=function(t,e,n,r,i,o){this.projectionMode=Ad.ORTHOGRAPHIC,this.rright=e,this.left=t,this.top=n,this.bottom=r,this.near=i,this.far=o;var a,e=(this.rright-this.left)/(2*this.zoom),t=(this.top-this.bottom)/(2*this.zoom),n=(this.rright+this.left)/2,r=(this.top+this.bottom)/2,s=n-e,n=n+e,e=r+t,r=r-t;return null!=(t=this.view)&&t.enabled&&(t=(this.rright-this.left)/this.view.fullWidth/this.zoom,a=(this.top-this.bottom)/this.view.fullHeight/this.zoom,n=(s+=t*this.view.offsetX)+t*this.view.width,r=(e-=a*this.view.offsetY)-a*this.view.height),Ri(this.projectionMatrix,s,n,r,e,i,o),Ei(this.projectionMatrix,this.projectionMatrix,E(1,-1,1)),xi(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this},t.setPosition=function(t,e,n){t=Gs(t,e=void 0===e?this.position[1]:e,n=void 0===n?this.position[2]:n);return this._setPosition(t),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this},t.setFocalPoint=function(t,e,n){void 0===e&&(e=this.focalPoint[1]),void 0===n&&(n=this.focalPoint[2]);var r,i=E(0,1,0);return this.focalPoint=Gs(t,e,n),this.trackingMode===Pd.CINEMATIC&&(t=(r=Wi(v(),this.focalPoint,this.position))[0],e=r[1],n=r[2],r=zi(r),e=Math.asin(e/r)*Bd,r=90+Math.atan2(n,t)*Bd,Si(n=yi(),n,r*jd),_i(n,n,e*jd),i=Zi(v(),[0,1,0],n)),xi(this.matrix,Di(yi(),this.position,this.focalPoint,i)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this},t.getDistance=function(){return this.distance},t.setDistance=function(t){var e,n,r;return this.distance===t||t<0||(this.distance=t,this.distance<2e-4&&(this.distance=2e-4),this.dollyingStep=this.distance/100,e=v(),t=this.distance,n=this.forward,r=this.focalPoint,e[0]=t*n[0]+r[0],e[1]=t*n[1]+r[1],e[2]=t*n[2]+r[2],this._setPosition(e),this.triggerUpdate()),this},t.setMaxDistance=function(t){return this.maxDistance=t,this},t.setMinDistance=function(t){return this.minDistance=t,this},t.setAzimuth=function(t){return this.azimuth=Vs(t),this.computeMatrix(),this._getAxes(),this.type===Od.ORBITING||this.type===Od.EXPLORING?this._getPosition():this.type===Od.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.getAzimuth=function(){return this.azimuth},t.setElevation=function(t){return this.elevation=Vs(t),this.computeMatrix(),this._getAxes(),this.type===Od.ORBITING||this.type===Od.EXPLORING?this._getPosition():this.type===Od.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.getElevation=function(){return this.elevation},t.setRoll=function(t){return this.roll=Vs(t),this.computeMatrix(),this._getAxes(),this.type===Od.ORBITING||this.type===Od.EXPLORING?this._getPosition():this.type===Od.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this},t.getRoll=function(){return this.roll},t.rotate=function(t,e,n){if(this.relElevation=Vs(e),this.relAzimuth=Vs(t),this.relRoll=Vs(n),this.elevation+=this.relElevation,this.azimuth+=this.relAzimuth,this.roll+=this.relRoll,this.type===Od.EXPLORING){e=io(ro(),[1,0,0],(this.rotateWorld?1:-1)*this.relElevation*jd),t=io(ro(),[0,1,0],(this.rotateWorld?1:-1)*this.relAzimuth*jd),n=io(ro(),[0,0,1],this.relRoll*jd),t=oo(ro(),t,e),t=oo(ro(),t,n),e=Ni(yi(),t);ki(this.matrix,this.matrix,[0,0,-this.distance]),wi(this.matrix,this.matrix,e),ki(this.matrix,this.matrix,[0,0,this.distance])}else{if(90<Math.abs(this.elevation))return this;this.computeMatrix()}return this._getAxes(),this.type===Od.ORBITING||this.type===Od.EXPLORING?this._getPosition():this.type===Od.TRACKING&&this._getFocalPoint(),this._update(),this},t.pan=function(t,e){t=Gs(t,e,0),e=Fi(this.position);return Hi(e,e,Ui(v(),this.right,t[0])),Hi(e,e,Ui(v(),this.up,t[1])),this._setPosition(e),this.triggerUpdate(),this},t.dolly=function(t){var e=this.forward,n=Fi(this.position),t=(this.dollyingStep,this.distance+t*this.dollyingStep),t=Math.max(Math.min(t,this.maxDistance),this.minDistance)-this.distance;return n[0]+=t*e[0],n[1]+=t*e[1],n[2]+=t*e[2],this._setPosition(n),this.type===Od.ORBITING||this.type===Od.EXPLORING?this._getDistance():this.type===Od.TRACKING&&Hi(this.focalPoint,n,this.distanceVector),this.triggerUpdate(),this},t.createLandmark=function(t,e){var e=e=void 0===e?{}:e,n=e.position,n=void 0===n?this.position:n,r=e.focalPoint,r=void 0===r?this.focalPoint:r,i=e.roll,e=e.zoom,o=new a,n=(o.setType(this.type,void 0),o.setPosition(n[0],n[1]||this.position[1],n[2]||this.position[2]),o.setFocalPoint(r[0],r[1]||this.focalPoint[1],r[2]||this.focalPoint[2]),o.setRoll(i||this.roll),o.setZoom(e||this.zoom),{name:t,matrix:gi(o.matrix),right:Fi(o.right),up:Fi(o.up),forward:Fi(o.forward),position:Fi(o.position),focalPoint:Fi(o.focalPoint),distanceVector:Fi(o.distanceVector),distance:o.distance,dollyingStep:o.dollyingStep,azimuth:o.azimuth,elevation:o.elevation,roll:o.roll,relAzimuth:o.relAzimuth,relElevation:o.relElevation,relRoll:o.relRoll,zoom:o.zoom});return this.landmarks.push(n),n},t.gotoLandmark=function(e,t){var n,s,r,i,l,u,c,h,d,f,p,y,g=this,o=(void 0===t&&(t={}),Jl(e)?this.landmarks.find(function(t){return t.name===e}):e);o&&(n=void 0===(n=(t=Es(t)?{duration:t}:t).easing)?"linear":n,r=t.duration,s=void 0===r?100:r,r=void 0===(r=t.easingFunction)?void 0:r,t=t.onfinish,i=void 0===t?void 0:t,l=.01,0===s?(this.syncFromLandmark(o),i&&i()):(void 0!==this.landmarkAnimationID&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID),u=o.position,c=o.focalPoint,h=o.zoom,d=o.roll,f=r||Hl(n),y=function(){g.setFocalPoint(c),g.setPosition(u),g.setRoll(d),g.setZoom(h),g.computeMatrix(),g.triggerUpdate(),i&&i()},this.canvas.requestAnimationFrame(function t(e){var n,r,i,o,a,e=e-(p=void 0===p?e:p);s<e?y():(n=f(e/s),r=v(),i=v(),o=1,a=0,Xi(r,g.focalPoint,c,n),Xi(i,g.position,u,n),a=g.roll*(1-n)+d*n,o=g.zoom*(1-n)+h*n,g.setFocalPoint(r),g.setPosition(i),g.setRoll(a),g.setZoom(o),Qi(r,c)+Qi(i,u)<=l?y():(g.computeMatrix(),g.triggerUpdate(),e<s&&(g.landmarkAnimationID=g.canvas.requestAnimationFrame(t))))})))},t._update=function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()},t.computeMatrix=function(){var t=io(ro(),[0,0,1],this.roll*jd),e=(bi(this.matrix),io(ro(),[1,0,0],(this.rotateWorld&&this.type!==Od.TRACKING||this.type===Od.TRACKING?1:-1)*this.elevation*jd)),n=io(ro(),[0,1,0],(this.rotateWorld&&this.type!==Od.TRACKING||this.type===Od.TRACKING?1:-1)*this.azimuth*jd),n=oo(ro(),n,e),n=oo(ro(),n,t),e=Ni(yi(),n);this.type===Od.ORBITING||this.type===Od.EXPLORING?(ki(this.matrix,this.matrix,this.focalPoint),wi(this.matrix,this.matrix,e),ki(this.matrix,this.matrix,[0,0,this.distance])):this.type===Od.TRACKING&&(ki(this.matrix,this.matrix,this.position),wi(this.matrix,this.matrix,e))},t._setPosition=function(t,e,n){this.position=Gs(t,e,n);t=this.matrix;t[12]=this.position[0],t[13]=this.position[1],t[14]=this.position[2],t[15]=1,this._getOrthoMatrix()},t._getAxes=function(){Vi(this.right,Gs(no(eo(),[1,0,0,0],this.matrix))),Vi(this.up,Gs(no(eo(),[0,1,0,0],this.matrix))),Vi(this.forward,Gs(no(eo(),[0,0,1,0],this.matrix))),Yi(this.right,this.right),Yi(this.up,this.up),Yi(this.forward,this.forward)},t._getAngles=function(){var t=this.distanceVector[0],e=this.distanceVector[1],n=this.distanceVector[2],r=zi(this.distanceVector);0===r?(this.elevation=0,this.azimuth=0):this.type===Od.TRACKING||this.rotateWorld?(this.elevation=Math.asin(e/r)*Bd,this.azimuth=Math.atan2(-t,-n)*Bd):(this.elevation=-Math.asin(e/r)*Bd,this.azimuth=-Math.atan2(-t,-n)*Bd)},t._getPosition=function(){Vi(this.position,Gs(no(eo(),[0,0,0,1],this.matrix))),this._getDistance()},t._getFocalPoint=function(){var t,e;Ki(this.distanceVector,[0,0,-this.distance],(t=fi(),e=this.matrix,t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t)),Hi(this.focalPoint,this.position,this.distanceVector),this._getDistance()},t._getDistance=function(){this.distanceVector=Wi(v(),this.focalPoint,this.position),this.distance=zi(this.distanceVector),this.dollyingStep=this.distance/100},t._getOrthoMatrix=function(){var t,e;this.projectionMode===Ad.ORTHOGRAPHIC&&(t=this.position,e=io(ro(),[0,0,1],-this.roll*Math.PI/180),Ci(this.orthoMatrix,e,E((this.rright-this.left)/2-t[0],(this.top-this.bottom)/2-t[1],0),E(this.zoom,this.zoom,1),t))},t.triggerUpdate=function(){var t;this.enableUpdate&&(t=this.getViewTransform(),t=wi(yi(),this.getPerspective(),t),this.getFrustum().extractFromVPMatrix(t),this.emit(Dd))},t.syncFromLandmark=function(t){this.matrix=vi(this.matrix,t.matrix),this.right=Vi(this.right,t.right),this.up=Vi(this.up,t.up),this.forward=Vi(this.forward,t.forward),this.position=Vi(this.position,t.position),this.focalPoint=Vi(this.focalPoint,t.focalPoint),this.distanceVector=Vi(this.distanceVector,t.distanceVector),this.azimuth=t.azimuth,this.elevation=t.elevation,this.roll=t.roll,this.relAzimuth=t.relAzimuth,this.relElevation=t.relElevation,this.relRoll=t.relRoll,this.dollyingStep=t.dollyingStep,this.distance=t.distance,this.zoom=t.zoom},a}(Eo.exports.EventEmitter),zd=d.defineToken("RenderingPluginContribution"),Vd=function(){function t(){this.renderingPluginProvider=void 0,this.canvasConfig=void 0,this.renderingContext=void 0,this.sceneGraphService=void 0,this.styleValueRegistry=void 0,this.camera=void 0,this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.renderOrderChangedEvent=new Th(m.RENDER_ORDER_CHANGED),this.hooks={init:new xu,dirtycheck:new Mu(["object"]),cull:new Mu(["object","camera"]),beginFrame:new _u([]),beforeRender:new _u(["objectToRender"]),render:new _u(["objectToRender"]),afterRender:new _u(["objectToRender"]),endFrame:new _u([]),destroy:new _u([]),pick:new ku(["result"]),pointerDown:new _u(["event"]),pointerUp:new _u(["event"]),pointerMove:new _u(["event"]),pointerOut:new _u(["event"]),pointerOver:new _u(["event"]),pointerWheel:new _u(["event"]),pointerCancel:new _u(["event"])}}var e=t.prototype;return e.init=function(){var t=es(_().mark(function t(){var e=this;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.renderingPluginProvider.getContributions({cache:!1}).forEach(function(t){t.apply(e)}),t.next=3,this.hooks.init.promise();case 3:this.inited=!0;case 4:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.getStats=function(){return this.stats},e.disableDirtyRectangleRendering=function(){return!this.canvasConfig.renderer.getConfig().enableDirtyRectangleRendering||this.renderingContext.renderReasons.has(Td.CAMERA_CHANGED)},e.render=function(t){var e=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0,this.sceneGraphService.syncHierarchy(this.renderingContext.root),this.sceneGraphService.triggerPendingEvents(),this.renderingContext.renderReasons.size&&this.inited&&(this.renderDisplayObject(this.renderingContext.root,t),this.hooks.beginFrame.call(),this.renderingContext.renderListCurrentFrame.forEach(function(t){e.hooks.beforeRender.call(t),e.hooks.render.call(t),e.hooks.afterRender.call(t)}),this.hooks.endFrame.call(),this.renderingContext.renderListCurrentFrame=[],this.renderingContext.renderReasons.clear())},e.renderDisplayObject=function(t,e){var n=this,r=e.renderer.getConfig(),i=r.enableDirtyCheck,r=r.enableCulling,i=(this.styleValueRegistry.recalc(t),i?this.hooks.dirtycheck.call(t):t),i=(!i||(r=r?this.hooks.cull.call(i,this.camera):i)&&(this.stats.rendered++,this.renderingContext.renderListCurrentFrame.push(r)),t.renderable.dirty=!1,t.sortable.renderOrder=this.zIndexCounter++,this.stats.total++,t.sortable),r=!1;i.dirty&&(i.sorted=t.childNodes.slice().sort(Md),i.dirty=!(r=!0)),(i.sorted||t.childNodes).forEach(function(t){n.renderDisplayObject(t,e)}),r&&t.forEach(function(t){n.renderOrderChangedEvent.detail={renderOrder:t.sortable.renderOrder},t.dispatchEvent(n.renderOrderChangedEvent)})},e.destroy=function(){this.inited=!1,this.hooks.destroy.call()},e.dirtify=function(){this.renderingContext.renderReasons.add(Td.DISPLAY_OBJECT_CHANGED)},t}(),Gd=(t([Ur(zd),e("design:type",Object)],Vd.prototype,"renderingPluginProvider",void 0),t([p(ou),e("design:type",Object)],Vd.prototype,"canvasConfig",void 0),t([p(Id),e("design:type",Object)],Vd.prototype,"renderingContext",void 0),t([p(Cd),e("design:type",Object)],Vd.prototype,"sceneGraphService",void 0),t([p(Bl),e("design:type",Object)],Vd.prototype,"styleValueRegistry",void 0),t([p(Rd),e("design:type",Fd)],Vd.prototype,"camera",void 0),Vd=t([f()],Vd),function(r){function t(){for(var d,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return(d=r.call.apply(r,[this].concat(e))||this).renderingContext=void 0,d.contextService=void 0,d.canvasConfig=void 0,d.displayObjectPool=void 0,d.rootTarget=void 0,d.cursor="default",d.mappingTable={},d.mappingState={trackingData:{}},d.eventPool=new Map,d.pickHandler=void 0,d.onPointerDown=function(){var e=es(_().mark(function t(e){var n,r;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof fd){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,d.createPointerEvent(e);case 4:n=t.sent,d.dispatchEvent(n,"pointerdown"),"touch"===n.pointerType?d.dispatchEvent(n,"touchstart"):"mouse"!==n.pointerType&&"pen"!==n.pointerType||(r=2===n.button,d.dispatchEvent(n,r?"rightdown":"mousedown")),d.trackingData(e.pointerId).pressTargetsByButton[e.button]=n.composedPath(),d.freeEvent(n);case 10:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerUp=function(){var e=es(_().mark(function t(e){var n,r,i,o,a,s,l;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof fd){t.next=2;break}return t.abrupt("return");case 2:return n=performance.now(),t.next=5,d.createPointerEvent(e);case 5:if(r=t.sent,d.dispatchEvent(r,"pointerup"),"touch"===r.pointerType?d.dispatchEvent(r,"touchend"):"mouse"!==r.pointerType&&"pen"!==r.pointerType||(i=2===r.button,d.dispatchEvent(r,i?"rightup":"mouseup")),i=d.trackingData(e.pointerId),s=d.findMountedTarget(i.pressTargetsByButton[e.button]),(l=s)&&!r.composedPath().includes(s)){for(o=s;o&&!r.composedPath().includes(o);)r.currentTarget=o,d.notifyTarget(r,"pointerupoutside"),"touch"===r.pointerType?d.notifyTarget(r,"touchendoutside"):"mouse"!==r.pointerType&&"pen"!==r.pointerType||(a=2===r.button,d.notifyTarget(r,a?"rightupoutside":"mouseupoutside")),Oh.isNode(o)&&(o=o.parentNode);delete i.pressTargetsByButton[e.button],l=o}l&&((s=d.clonePointerEvent(r,"click")).target=l,s.path=[],i.clicksByButton[e.button]||(i.clicksByButton[e.button]={clickCount:0,target:s.target,timeStamp:n}),(l=i.clicksByButton[e.button]).target===s.target&&n-l.timeStamp<200?++l.clickCount:l.clickCount=1,l.target=s.target,l.timeStamp=n,s.detail=l.clickCount,null!=(l=r.detail)&&l.preventClick||("mouse"===s.pointerType||"touch"===s.pointerType?d.dispatchEvent(s,"click"):d.dispatchEvent(s,"pointertap")),d.freeEvent(s)),d.freeEvent(r);case 14:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerMove=function(){var e=es(_().mark(function t(e){var n,r,i,o,a,s,l,u,c,h;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof fd){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,d.createPointerEvent(e);case 4:if(n=t.sent,r="mouse"===n.pointerType||"pen"===n.pointerType,i=d.trackingData(e.pointerId),o=d.findMountedTarget(i.overTargets),i.overTargets&&o!==n.target)return l="mousemove"===e.type?"mouseout":"pointerout",t.next=12,d.createPointerEvent(e,l,o||void 0);t.next=23;break;case 12:if(a=t.sent,d.dispatchEvent(a,"pointerout"),r&&d.dispatchEvent(a,"mouseout"),n.composedPath().includes(o)){t.next=22;break}return t.next=18,d.createPointerEvent(e,"pointerleave",o||void 0);case 18:for((s=t.sent).eventPhase=s.AT_TARGET;s.target&&!n.composedPath().includes(s.target);)s.currentTarget=s.target,d.notifyTarget(s),r&&d.notifyTarget(s,"mouseleave"),Oh.isNode(s.target)&&(s.target=s.target.parentNode);d.freeEvent(s);case 22:d.freeEvent(a);case 23:if(o===n.target){t.next=38;break}l="mousemove"===e.type?"mouseover":"pointerover",u=d.clonePointerEvent(n,l),d.dispatchEvent(u,"pointerover"),r&&d.dispatchEvent(u,"mouseover"),c=o&&Oh.isNode(o)&&o.parentNode;case 29:if(!c||c===(Oh.isNode(d.rootTarget)&&d.rootTarget.parentNode)){t.next=35;break}if(c===n.target)return t.abrupt("break",35);t.next=32;break;case 32:c=c.parentNode,t.next=29;break;case 35:if(!c||c===(Oh.isNode(d.rootTarget)&&d.rootTarget.parentNode)){for((h=d.clonePointerEvent(n,"pointerenter")).eventPhase=h.AT_TARGET;h.target&&h.target!==o&&h.target!==(Oh.isNode(d.rootTarget)&&d.rootTarget.parentNode);)h.currentTarget=h.target,d.notifyTarget(h),r&&d.notifyTarget(h,"mouseenter"),Oh.isNode(h.target)&&(h.target=h.target.parentNode);d.freeEvent(h)}d.freeEvent(u);case 38:d.dispatchEvent(n,"pointermove"),"touch"===n.pointerType&&d.dispatchEvent(n,"touchmove"),r&&(d.dispatchEvent(n,"mousemove"),d.cursor=d.getCursor(n.target)),i.overTargets=n.composedPath(),d.freeEvent(n);case 43:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerOut=function(){var e=es(_().mark(function t(e){var n,r,i,o,a;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof fd){t.next=2;break}return t.abrupt("return");case 2:if((n=d.trackingData(e.pointerId)).overTargets)return r="mouse"===e.pointerType||"pen"===e.pointerType,i=d.findMountedTarget(n.overTargets),t.next=8,d.createPointerEvent(e,"pointerout",i||void 0);t.next=19;break;case 8:return o=t.sent,d.dispatchEvent(o),r&&d.dispatchEvent(o,"mouseout"),t.next=13,d.createPointerEvent(e,"pointerleave",i||void 0);case 13:for((a=t.sent).eventPhase=a.AT_TARGET;a.target&&a.target!==(Oh.isNode(d.rootTarget)&&d.rootTarget.parentNode);)a.currentTarget=a.target,d.notifyTarget(a),r&&d.notifyTarget(a,"mouseleave"),Oh.isNode(a.target)&&(a.target=a.target.parentNode);n.overTargets=null,d.freeEvent(o),d.freeEvent(a);case 19:d.cursor=null;case 20:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerOver=function(){var e=es(_().mark(function t(e){var n,r,i,o;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof fd){t.next=2;break}return t.abrupt("return");case 2:return n=d.trackingData(e.pointerId),t.next=5,d.createPointerEvent(e);case 5:for(r=t.sent,i="mouse"===r.pointerType||"pen"===r.pointerType,d.dispatchEvent(r,"pointerover"),i&&d.dispatchEvent(r,"mouseover"),"mouse"===r.pointerType&&(d.cursor=d.getCursor(r.target)),(o=d.clonePointerEvent(r,"pointerenter")).eventPhase=o.AT_TARGET;o.target&&o.target!==(Oh.isNode(d.rootTarget)&&d.rootTarget.parentNode);)o.currentTarget=o.target,d.notifyTarget(o),i&&d.notifyTarget(o,"mouseenter"),Oh.isNode(o.target)&&(o.target=o.target.parentNode);n.overTargets=r.composedPath(),d.freeEvent(r),d.freeEvent(o);case 16:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onPointerUpOutside=function(){var e=es(_().mark(function t(e){var n,r,i,o;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof fd){t.next=2;break}return t.abrupt("return");case 2:return n=d.trackingData(e.pointerId),r=d.findMountedTarget(n.pressTargetsByButton[e.button]),t.next=6,d.createPointerEvent(e);case 6:if(i=t.sent,r){for(o=r;o;)i.currentTarget=o,d.notifyTarget(i,"pointerupoutside"),"touch"===i.pointerType||"mouse"!==i.pointerType&&"pen"!==i.pointerType||d.notifyTarget(i,2===i.button?"rightupoutside":"mouseupoutside"),Oh.isNode(o)&&(o=o.parentNode);delete n.pressTargetsByButton[e.button]}d.freeEvent(i);case 9:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d.onWheel=function(){var e=es(_().mark(function t(e){var n;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e instanceof pd){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,d.createWheelEvent(e);case 4:n=t.sent,d.dispatchEvent(n),d.freeEvent(n);case 7:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),d}g(t,r);var e=t.prototype;return e.init=function(){this.rootTarget=this.renderingContext.root.parentNode,this.addEventMapping("pointerdown",this.onPointerDown),this.addEventMapping("pointerup",this.onPointerUp),this.addEventMapping("pointermove",this.onPointerMove),this.addEventMapping("pointerout",this.onPointerOut),this.addEventMapping("pointerleave",this.onPointerOut),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel)},e.client2Viewport=function(t){var e=this.contextService.getBoundingClientRect();return new Cc(t.x-((null==e?void 0:e.left)||0),t.y-((null==e?void 0:e.top)||0))},e.viewport2Client=function(t){var e=this.contextService.getBoundingClientRect();return new Cc(t.x+((null==e?void 0:e.left)||0),t.y+((null==e?void 0:e.top)||0))},e.viewport2Canvas=function(t){var e=t.x,t=t.y,n=this.rootTarget.defaultView.getCamera(),r=this.canvasConfig,i=r.width,r=r.height,o=n.getPerspectiveInverse(),n=n.getWorldTransform(),n=wi(yi(),n,o),o=E(e/i*2-1,2*(1-t/r)-1,0);return Zi(o,o,n),new Cc(o[0],o[1])},e.canvas2Viewport=function(t){var e=this.rootTarget.defaultView.getCamera(),n=e.getPerspective(),e=e.getViewTransform(),n=wi(yi(),n,e),e=E(t.x,t.y,0),t=(Zi(e,e,n),this.canvasConfig),n=t.width,t=t.height;return new Cc((e[0]+1)/2*n,(1-(e[1]+1)/2)*t)},e.setPickHandler=function(t){this.pickHandler=t},e.addEventMapping=function(t,e){this.mappingTable[t]||(this.mappingTable[t]=[]),this.mappingTable[t].push({fn:e,priority:0}),this.mappingTable[t].sort(function(t,e){return t.priority-e.priority})},e.mapEvent=function(t){if(this.rootTarget){var e=this.mappingTable[t.type];if(e)for(var n=0,r=e.length;n<r;n++)e[n].fn(t);else console.warn("[EventService]: Event mapping not defined for "+t.type)}},e.dispatchEvent=function(t,e){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,e),this.emit(e||t.type,t)},e.propagate=function(t,e){if(t.target){var n=t.composedPath();t.eventPhase=t.CAPTURING_PHASE;for(var r=n.length-1;1<=r;r--)if(t.currentTarget=n[r],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return;if(t.eventPhase=t.AT_TARGET,t.currentTarget=t.target,this.notifyTarget(t,e),!t.propagationStopped&&!t.propagationImmediatelyStopped){var i=n.indexOf(t.currentTarget);t.eventPhase=t.BUBBLING_PHASE;for(var o=i+1;o<n.length;o++)if(t.currentTarget=n[o],this.notifyTarget(t,e),t.propagationStopped||t.propagationImmediatelyStopped)return}}},e.propagationPath=function(t){var e=[t],n=this.rootTarget.defaultView||null;if(n&&n===t)e.unshift(n.document);else{for(var r=0;r<2048&&t!==this.rootTarget;r++)Oh.isNode(t)&&t.parentNode&&(e.push(t.parentNode),t=t.parentNode);n&&e.push(n)}return e},e.hitTest=function(){var e=es(_().mark(function t(e){var n,r,i,o;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.viewportX,r=e.viewportY,o=this.canvasConfig,i=o.width,o=o.height,n<0||r<0||i<n||o<r)return t.abrupt("return",null);t.next=4;break;case 4:return t.next=6,this.pickHandler(e);case 6:if(t.t1=t.sent,t.t1){t.next=9;break}t.t1=this.rootTarget;case 9:if(t.t0=t.t1,t.t0){t.next=12;break}t.t0=null;case 12:return t.abrupt("return",t.t0);case 13:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.isNativeEventFromCanvas=function(t){var e=this.contextService.getDomElement(),n=null==(n=t.nativeEvent)?void 0:n.target;if(n){if(n===e)return!0;if(e&&e.contains)return e.contains(n)}return!!t.nativeEvent.composedPath&&-1<t.nativeEvent.composedPath().indexOf(e)},e.getExistedHTML=function(t){if(t.nativeEvent.composedPath)for(var e=cs(this.displayObjectPool.getHTMLs());!(n=e()).done;){var n=n.value;if(-1<t.nativeEvent.composedPath().indexOf(n))return n}return null},e.pickTarget=function(){var e=es(_().mark(function t(e){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY}));case 1:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.createPointerEvent=function(){var r=es(_().mark(function t(e,n,r){var i,o;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(i=this.allocateEvent(fd),this.copyPointerData(e,i),this.copyMouseData(e,i),this.copyData(e,i),i.nativeEvent=e.nativeEvent,i.originalEvent=e,o=this.getExistedHTML(i),null==r){t.next=11;break}t.t0=r,t.next=20;break;case 11:if(t.t1=o,t.t1){t.next=19;break}if(t.t2=this.isNativeEventFromCanvas(i),t.t2)return t.next=17,this.pickTarget(i);t.next=18;break;case 17:t.t2=t.sent;case 18:t.t1=t.t2;case 19:t.t0=t.t1;case 20:return i.target=t.t0,"string"==typeof n&&(i.type=n),t.abrupt("return",i);case 23:case"end":return t.stop()}},t,this)}));return function(t,e,n){return r.apply(this,arguments)}}(),e.createWheelEvent=function(){var e=es(_().mark(function t(e){var n,r;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(n=this.allocateEvent(pd),this.copyWheelData(e,n),this.copyMouseData(e,n),this.copyData(e,n),n.nativeEvent=e.nativeEvent,n.originalEvent=e,r=this.getExistedHTML(n),t.t0=r,t.t0){t.next=15;break}if(t.t1=this.isNativeEventFromCanvas(n),t.t1)return t.next=13,this.pickTarget(n);t.next=14;break;case 13:t.t1=t.sent;case 14:t.t0=t.t1;case 15:return n.target=t.t0,t.abrupt("return",n);case 17:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.trackingData=function(t){return this.mappingState.trackingData[t]||(this.mappingState.trackingData[t]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[t]},e.clonePointerEvent=function(t,e){var n=this.allocateEvent(fd);return n.nativeEvent=t.nativeEvent,n.originalEvent=t.originalEvent,this.copyPointerData(t,n),this.copyMouseData(t,n),this.copyData(t,n),n.target=t.target,n.path=t.composedPath().slice(),n.type=null!=e?e:n.type,n},e.copyPointerData=function(t,e){t instanceof fd&&e instanceof fd&&(e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist)},e.copyMouseData=function(t,e){t instanceof dd&&e instanceof dd&&(e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.client.copyFrom(t.client),e.movement.copyFrom(t.movement),e.canvas.copyFrom(t.canvas),e.screen.copyFrom(t.screen),e.global.copyFrom(t.global),e.offset.copyFrom(t.offset))},e.copyWheelData=function(t,e){e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ},e.copyData=function(t,e){e.isTrusted=t.isTrusted,e.timeStamp=performance.now(),e.type=t.type,e.detail=t.detail,e.view=t.view,e.page.copyFrom(t.page),e.viewport.copyFrom(t.viewport)},e.allocateEvent=function(t){this.eventPool.has(t)||this.eventPool.set(t,[]);t=this.eventPool.get(t).pop()||new t(this);return t.eventPhase=t.NONE,t.currentTarget=null,t.path=[],t.target=null,t},e.freeEvent=function(t){if(t.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var e=t.constructor;this.eventPool.has(e)||this.eventPool.set(e,[]),this.eventPool.get(e).push(t)},e.notifyTarget=function(t,e){e=null!=(n=e)?n:t.type;var n=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?e+"capture":e;this.notifyListeners(t,n),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,e)},e.notifyListeners=function(t,e){var n=t.currentTarget.emitter,r=n._events[e];if(r)if("fn"in r)r.once&&n.removeListener(e,r.fn,void 0,!0),r.fn.call(t.currentTarget||r.context,t);else for(var i=0;i<r.length&&!t.propagationImmediatelyStopped;i++)r[i].once&&n.removeListener(e,r[i].fn,void 0,!0),r[i].fn.call(t.currentTarget||r[i].context,t)},e.findMountedTarget=function(t){if(!t)return null;for(var e=t[t.length-1],n=t.length-2;0<=n;n--){var r=t[n];if(!(r===this.rootTarget||Oh.isNode(r)&&r.parentNode===e))break;e=t[n]}return e},e.getCursor=function(t){for(var e=t;e;){var n=Lh.isElement(e)&&e.getAttribute("cursor");if(n)return n;e=Oh.isNode(e)&&e.parentNode}},t}(Eo.exports.EventEmitter)),Hd=(t([p(Id),e("design:type",Object)],Gd.prototype,"renderingContext",void 0),t([p(Ld),e("design:type",Object)],Gd.prototype,"contextService",void 0),t([p(ou),e("design:type",Object)],Gd.prototype,"canvasConfig",void 0),t([p(Ih),e("design:type",Ih)],Gd.prototype,"displayObjectPool",void 0),t([V.postConstruct(),e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],Gd.prototype,"init",null),Gd=t([f()],Gd),function(){function t(){this.canvas=void 0,this.context=void 0}var e=t.prototype;return e.getOrCreateCanvas=function(t){if(!this.canvas){if(t)this.canvas=t,this.context=this.canvas.getContext("2d");else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d"),this.context&&this.context.measureText||(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch(t){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d")}this.canvas.width=10,this.canvas.height=10}return this.canvas},e.getOrCreateContext=function(t){return this.context||this.getOrCreateCanvas(t),this.context},t}()),Hd=t([f()],Hd),Wd={MetricsString:"|ÉqÅ",BaselineSymbol:"M",BaselineMultiplier:1.4,HeightMultiplier:2,Newlines:[10,13],BreakingSpaces:[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},Ud=/[a-zA-Z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff!"#$%&'()*+,-./:;]/,Yd=new RegExp(/[!%),.:;?\]}¢°·'""†‡›℃∶、。〃〆〕〗〞﹚﹜!"%'),.:;?!]}~]/.source+"|"+/[!),.:;?\]}¢·–—'"•"、。〆〞〕〉》」︰︱︲︳﹐﹑﹒﹔﹕﹖﹘﹚﹜!),.:;?︶︸︺︼︾﹀﹂﹗]|}、]/.source+"|"+/[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、:;,。.]/.source+"|"+/[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/.source),qd=new RegExp(/[$(£¥·'"〈《「『【〔〖〝﹙﹛$(.[{£¥]/.source+"|"+/[([{£¥'"‵〈《「『〔〝︴﹙﹛({︵︷︹︻︽︿﹁﹃﹏]/.source+"|"+/[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/.source+"|"+/[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/.source),Xd=function(){function t(){var n=this;this.cache={},this.offscreenCanvas=void 0,this.shouldBreakByKinsokuShorui=function(t,e){return!n.isBreakingSpace(e)&&!(!t||!qd.exec(e)&&!Yd.exec(t))},this.trimByKinsokuShorui=function(t){var e=[].concat(t),n=e[e.length-2];if(!n)return t;t=n[n.length-1];return e[e.length-2]=n.slice(0,-1),e[e.length-1]=t+e[e.length-1],e}}var e=t.prototype;return e.measureFont=function(t,e){if(this.cache[t])return this.cache[t];for(var n={ascent:0,descent:0,fontSize:0},r=this.offscreenCanvas.getOrCreateCanvas(e),e=this.offscreenCanvas.getOrCreateContext(e),i=(e.font=t,Wd.MetricsString+Wd.BaselineSymbol),o=Math.ceil(e.measureText(i).width),a=Math.ceil(e.measureText(Wd.BaselineSymbol).width),s=Wd.HeightMultiplier*a,a=a*Wd.BaselineMultiplier|0,l=(r.width=o,r.height=s,e.fillStyle="#f00",e.fillRect(0,0,o,s),e.font=t,e.textBaseline="alphabetic",e.fillStyle="#000",e.fillText(i,0,a),e.getImageData(0,0,o||1,s||1).data),r=l.length,u=4*o,c=0,h=0,d=!1,c=0;c<a;++c){for(var f=0;f<u;f+=4)if(255!==l[h+f]){d=!0;break}if(d)break;h+=u}for(n.ascent=a-c,h=r-u,d=!1,c=s;a<c;--c){for(var p=0;p<u;p+=4)if(255!==l[h+p]){d=!0;break}if(d)break;h-=u}return n.descent=c-a,n.fontSize=n.ascent+n.descent,this.cache[t]=n},e.measureText=function(t,e,n){var r=e.fontSize,i=e.wordWrap,o=e.lineHeight,a=e.lineWidth,s=e.textBaseline,l=e.textAlign,u=e.letterSpacing,c=e.leading,c=void 0===c?0:c,h=function(t){for(var e=t.fontSize,n=t.fontFamily,r=t.fontStyle,i=t.fontVariant,t=t.fontWeight,e=Es(e)?e+"px":e.toString(),o=Jl(n)?n.split(","):[n.value],a=o.length-1;0<=a;a--){var s=o[a].trim();!/([\"\'])[^\'\"]+\1/.test(s)&&Tu.indexOf(s)<0&&(s='"'+s+'"'),o[a]=s}return r+" "+i+" "+t+" "+e+" "+o.join(",")}(e),d=this.measureFont(h,n),f=(0===d.fontSize&&(d.fontSize=r.value,d.ascent=r.value),this.offscreenCanvas.getOrCreateContext(n));f.font=h;for(var p=(i?this.wordWrap(t,e,n):t).split(/(?:\r\n|\r|\n)/),y=new Array(p.length),g=0,v=0;v<p.length;v++){var m=f.measureText(p[v]).width+(p[v].length-1)*u.value;y[v]=m,g=Math.max(g,m)}var r=g+a.value,b=o.value||d.fontSize+a.value,i=Math.max(b,d.fontSize+a.value)+(p.length-1)*(b+c),x=0;return"middle"===s.value?x=-i/2:"bottom"===s.value||"alphabetic"===s.value||"ideographic"===s.value?x=-i:"top"!==s.value&&"hanging"!==s.value||(x=0),{font:h,width:r,height:i,lines:p,lineWidths:y,lineHeight:b+=c,maxLineWidth:g,fontProperties:d,lineMetrics:y.map(function(t,e){var n=0;return"center"===l.value?n-=t/2:"right"!==l.value&&"end"!==l.value||(n-=t),new Nc(n-a.value/2,x+e*b,t+a.value,b)})}},e.wordWrap=function(i,t,e){function o(t){return a.getFromCache(t,r.value,d,s)}var a=this,n=t.wordWrapWidth,n=void 0===n?0:n,r=t.letterSpacing,s=this.offscreenCanvas.getOrCreateContext(e),l=n+r.value,u=[],c=0,h=0,d={};return Array.from(i).forEach(function(t,e){var n=i[e-1],e=i[e+1],r=o(t);if(a.isNewline(t))h=0,u[++c]="";else{if(0<h&&l<h+r){if(h=0,u[++c]="",a.isBreakingSpace(t))return;a.canBreakInLastChar(t)||(u=a.trimToBreakable(u),h=a.sumTextWidthByCache(u[c]||"",d)),a.shouldBreakByKinsokuShorui(t,e)&&(u=a.trimByKinsokuShorui(u),h+=o(n||""))}h+=r,u[c]=(u[c]||"")+t}}),u.join("\n")},e.isBreakingSpace=function(t){return"string"==typeof t&&0<=Wd.BreakingSpaces.indexOf(t.charCodeAt(0))},e.isNewline=function(t){return"string"==typeof t&&0<=Wd.Newlines.indexOf(t.charCodeAt(0))},e.trimToBreakable=function(t){var e,t=[].concat(t),n=t[t.length-2],r=this.findBreakableIndex(n);return-1!==r&&n&&(e=n.slice(r,r+1),e=r+(this.isBreakingSpace(e)?0:1),t[t.length-1]+=n.slice(r+1,n.length),t[t.length-2]=n.slice(0,e)),t},e.canBreakInLastChar=function(t){return!t||!Ud.test(t)},e.sumTextWidthByCache=function(t,n){return t.split("").reduce(function(t,e){if(n[e])return t+n[e];throw Error("cannot count the word without cache")},0)},e.findBreakableIndex=function(t){for(var e=t.length-1;0<=e;e--)if(!Ud.test(t[e]))return e;return-1},e.getFromCache=function(t,e,n,r){var i=n[t];return"number"!=typeof i&&(e=t.length*e,i=r.measureText(t).width+e,n[t]=i),i},t}(),Zd=(t([p(Hd),e("design:type",Hd)],Xd.prototype,"offscreenCanvas",void 0),Xd=t([f()],Xd),d.defineToken("GeometryUpdaterFactory")),Kd=d.defineToken("GeometryAABBUpdater"),$d=function(){function t(){}return t.prototype.update=function(t,e){t=t.r;return{width:2*t.value,height:2*t.value}},t}(),$d=t([f({token:{token:Kd,named:M.CIRCLE}})],$d),Jd=function(){function t(){}return t.prototype.update=function(t,e){var n=t.rx,t=t.ry;return{width:2*n.value,height:2*t.value}},t}(),Jd=t([f({token:{token:Kd,named:M.ELLIPSE}})],Jd),Qd=function(){function t(){}return t.prototype.update=function(t,e){var n=t.img,r=t.width,t=t.height,i=0,o=0;return r instanceof P&&r.unit===O.kPixels&&(i=r.value),t instanceof P&&t.unit===O.kPixels&&(o=t.value),n&&!Jl(n)&&(i=i||n.width,o=o||n.height),r instanceof P&&(r.value=i),t instanceof P&&(t.value=o),{width:i,height:o}},t}(),Qd=t([f({token:[{token:Kd,named:M.RECT},{token:Kd,named:M.IMAGE},{token:Kd,named:M.GROUP}]})],Qd),tf=function(){function t(){this.textService=void 0}var e=t.prototype;return e.isReadyToMeasure=function(t,e){var n=t.text,r=t.textAlign,i=t.textBaseline,o=t.fontSize,a=t.fontStyle,s=t.fontWeight,l=t.fontVariant,t=t.lineWidth;return n&&o&&a&&s&&l&&r&&i&&t},e.update=function(t,e){var n=t.text,r=t.textAlign,i=t.lineWidth,o=t.textBaseline,a=t.dx,s=t.dy,l=((null==e||null==(l=e.ownerDocument)||null==(l=l.defaultView)?void 0:l.getConfig())||{}).offscreenCanvas;if(!this.isReadyToMeasure(t,e))return t.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{width:0,height:0,x:0,y:0,offsetX:0,offsetY:0};var e=this.textService.measureText(n,t,l),n=(t.metrics=e).width,l=e.height,u=e.lineHeight,e=e.fontProperties,n=E(n/2,l/2,0),l=[0,1],c=0,r=("center"===r.value?(c=i.value/2,l=[.5,1]):"right"!==r.value&&"end"!==r.value||(c=i.value,l=[1,1]),0);return"middle"===o.value?r=n[1]:"top"===o.value||"hanging"===o.value?r=2*n[1]:"alphabetic"===o.value?r=u-e.ascent:"bottom"!==o.value&&"ideographic"!==o.value||(r=0),a&&(c+=a.value),s&&(r+=s.value),t.anchor=[new P(l[0]),new P(l[1]),new P(0)],{width:2*n[0],height:2*n[1],offsetX:c,offsetY:r}},t}(),ef=(t([p(Xd),e("design:type",Xd)],tf.prototype,"textService",void 0),tf=t([f({token:{token:Kd,named:M.TEXT}})],tf),function(){function t(){}return t.prototype.update=function(t){var e=t.x1,n=t.y1,r=t.x2,t=t.y2,i=Math.min(e.value,r.value),e=Math.max(e.value,r.value),r=Math.min(n.value,t.value);return{width:e-i,height:Math.max(n.value,t.value)-r}},t}()),ef=t([f({token:{token:Kd,named:M.LINE}})],ef),nf=function(){function t(){}return t.prototype.update=function(t){var t=t.points.points,e=Math.min.apply(Math,t.map(function(t){return t[0]})),n=Math.max.apply(Math,t.map(function(t){return t[0]})),r=Math.min.apply(Math,t.map(function(t){return t[1]}));return{width:n-e,height:Math.max.apply(Math,t.map(function(t){return t[1]}))-r}},t}(),nf=t([f({token:[{token:Kd,named:M.POLYLINE},{token:Kd,named:M.POLYGON}]})],nf),rf=function(){function t(){}return t.prototype.update=function(t){t=t.path.rect;return{width:t.width,height:t.height}},t}(),rf=t([f({token:{token:Kd,named:M.PATH}})],rf),of=function(){function t(){this.sceneGraphService=void 0}return t.prototype.calculator=function(t,e,n,r){var i;return n instanceof Ku&&(n=null),e&&e!==n&&e.parsedStyle.clipPathTargets&&(i=e.parsedStyle.clipPathTargets.indexOf(r),e.parsedStyle.clipPathTargets.splice(i,1)),n&&(n.parsedStyle.clipPathTargets||(n.parsedStyle.clipPathTargets=[]),n.parsedStyle.clipPathTargets.push(r)),this.sceneGraphService.dirtifyToRoot(r),n},t}(),af=(t([p(Cd),e("design:type",Object)],of.prototype,"sceneGraphService",void 0),of=t([f({token:{token:_h,named:b.CLIP_PATH}})],of),function(){function t(){this.parser=Sc,this.mixer=Mc}return t.prototype.calculator=function(t,e,n,r){return n instanceof Ku?new pc(0,0,0,0,"none"===n.value):n},t}()),af=t([f({token:[{token:_h,named:b.PAINT},{token:_h,named:b.COLOR}]})],af),sf=function(){function t(){this.parser=Jc}return t.prototype.calculator=function(t,e,n){return n instanceof Ku?[]:n},t}();function lf(t){t=t.parsedStyle.fontSize;return t&&!P.isRelativeUnit(t.unit)?t.clone():null}function uf(){this.container=void 0}var cf,hf,df,ff,pf,sf=t([f({token:{token:_h,named:b.FILTER}})],sf),yf=function(){function t(){this.parser=Rc,this.mixer=jc}return t.prototype.calculator=function(t,e,n,r,i){if(!P.isRelativeUnit(n.unit))return n.clone();if(n.unit===O.kPercentage)return new P(0,"px");if(n.unit===O.kEms){if(r.parentNode){var o=lf(r.parentNode);if(o)return o.value*=n.value,o}return i.addUnresolveProperty(r,t),new P(0,"px")}if(n.unit===O.kRems){if(null!=r&&(null!=(o=r.ownerDocument)&&o.documentElement)){o=lf(r.ownerDocument.documentElement);if(o)return o.value*=n.value,o}return i.addUnresolveProperty(r,t),new P(0,"px")}},t}(),yf=t([f({token:[{token:_h,named:b.LENGTH_PERCENTAGE},{token:_h,named:b.LENGTH}]})],yf),gf=function(){function t(){this.mixer=zc}return t.prototype.parser=function(t){t=Fc(Es(t)?[t]:t),t=1===t.length?[t[0],t[0]]:[t[0],t[1]];return t},t}(),gf=t([f({token:{token:_h,named:b.LENGTH_PERCENTAGE_12}})],gf),vf=function(){function t(){this.mixer=zc}return t.prototype.parser=function(t){t=Fc(Es(t)?[t]:t),t=1===t.length?[t[0],t[0],t[0],t[0]]:2===t.length?[t[0],t[1],t[0],t[1]]:3===t.length?[t[0],t[1],t[2],t[1]]:[t[0],t[1],t[2],t[3]];return t},t}(),vf=t([f({token:{token:_h,named:b.LENGTH_PERCENTAGE_14}})],vf),mf=function(t){function e(){return t.apply(this,arguments)||this}return g(e,t),e.prototype.postProcessor=function(t){var e,n,r;switch(t.nodeName){case M.CIRCLE:case M.ELLIPSE:var i=t.parsedStyle,o=i.cx,i=i.cy;T(o)||(l=o.value),T(i)||(u=i.value);break;case M.LINE:var o=t.parsedStyle,i=o.x1,a=o.x2,s=o.y1,o=o.y2,l=Math.min(i.value,a.value),u=Math.min(s.value,o.value),c=0;break;case M.RECT:case M.IMAGE:case M.GROUP:case M.HTML:case M.TEXT:T(t.parsedStyle.x)||(l=t.parsedStyle.x.value),T(t.parsedStyle.y)||(u=t.parsedStyle.y.value)}t.nodeName!==M.PATH&&t.nodeName!==M.POLYLINE&&t.nodeName!==M.POLYGON&&(t.parsedStyle.defX=l||0,t.parsedStyle.defY=u||0),T(l)&&T(u)&&T(c)||(e=(r=t.getLocalPosition())[0],n=r[1],r=r[2],t.setLocalPosition(T(l)?e:l,T(u)?n:u,T(c)?r:c))},e}(yf),mf=t([f({token:{token:_h,named:b.COORDINATE}})],mf),bf=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){n=null==(n=n=n instanceof Ku?null:n)?void 0:n.cloneNode(!0);return n&&(n.style.isMarker=!0),n},t}(),bf=t([f({token:{token:_h,named:b.MARKER}})],bf),xf=function(){this.mixer=Wc,this.parser=Hc},xf=t([f({token:{token:_h,named:b.NUMBER}})],xf),wf=function(){function t(){this.parser=Hc,this.mixer=Uc(0,1)}return t.prototype.postProcessor=function(t){var e;!t.attributes.offsetPath||(e=t.attributes.offsetPath.nodeName)!==M.LINE&&e!==M.PATH&&e!==M.POLYLINE||(e=t.attributes.offsetPath.getPoint(t.parsedStyle.offsetDistance.value))&&t.setLocalPosition(e.x,e.y)},t}(),wf=t([f({token:{token:_h,named:b.OFFSET_DISTANCE}})],wf),kf=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){var i;return e&&e!==n&&e.style.offsetPathTargets&&(i=e.style.offsetPathTargets.indexOf(r),e.style.offsetPathTargets.splice(i,1)),n&&(n.style.offsetPathTargets||(n.style.offsetPathTargets=[]),n.style.offsetPathTargets.push(r)),n},t}(),kf=t([f({token:{token:_h,named:b.OFFSET_PATH}})],kf),Ef=function(){this.parser=Hc,this.mixer=Uc(0,1)},Ef=t([f({token:{token:_h,named:b.OPACITY_VALUE}})],Ef),_f=function(){function t(){this.parser=qc,this.mixer=Xc}var e=t.prototype;return e.calculator=function(t,e,n){return n instanceof Ku&&"unset"===n.value?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:[],totalLength:0,zCommandIndexes:[],rect:new Nc(0,0,0,0)}:n},e.postProcessor=function(t){var e,n;t.nodeName===M.PATH&&(e=(n=t.parsedStyle).defX,n=n.defY,t.setLocalPosition(void 0===e?0:e,void 0===n?0:n))},t}(),_f=t([f({token:{token:_h,named:b.PATH}})],_f),Sf=function(){function t(){this.parser=Zc}return t.prototype.postProcessor=function(t){var e,n;t.nodeName!==M.POLYGON&&t.nodeName!==M.POLYLINE||(e=(n=t.parsedStyle).defX,n=n.defY,t.setLocalPosition(e,n))},t}(),Sf=t([f({token:{token:_h,named:b.LIST_OF_POINTS}})],Sf),Mf=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).mixer=Uc(0,1/0),t}return g(t,i),t}(yf),Mf=t([f({token:{token:_h,named:b.SHADOW_BLUR}})],Mf),Tf=function(){function t(){}var e=t.prototype;return e.calculator=function(t,e,n,r){return n instanceof Ku?"unset"===n.value?"":n.value:n},e.postProcessor=function(t){t.nodeValue=""+t.parsedStyle.text||""},t}(),Tf=t([f({token:{token:_h,named:b.TEXT}})],Tf),Of=function(){function t(){}return t.prototype.calculator=function(t,e,n,r){var i,o=r.getAttribute("text");return o&&(i=o,"capitalize"===n.value?i=o.charAt(0).toUpperCase()+o.slice(1):"lowercase"===n.value?i=o.toLowerCase():"uppercase"===n.value&&(i=o.toUpperCase()),r.parsedStyle.text=i),n},t}(),Of=t([f({token:{token:_h,named:b.TEXT_TRANSFORM}})],Of),Pf=function(){function t(){this.parser=rh,this.mixer=ph}return t.prototype.postProcessor=function(l){var t=l.parsedStyle,e=t.transform,u=t.defX,c=t.defY;e&&e.length&&(l.resetLocalTransform(),l.setLocalPosition(u,c),e.forEach(function(t){var e,n,r,i,o,a,s=t.t,t=t.d;"scale"===s?(o=(null==t?void 0:t.map(function(t){return t.value}))||[1,1],l.scaleLocal(o[0],o[1],1)):"scalex"===s?(o=(null==t?void 0:t.map(function(t){return t.value}))||[1],l.scaleLocal(o[0],1,1)):"scaley"===s?(o=(null==t?void 0:t.map(function(t){return t.value}))||[1],l.scaleLocal(1,o[0],1)):"scalez"===s?(o=(null==t?void 0:t.map(function(t){return t.value}))||[1],l.scaleLocal(1,1,o[0])):"scale3d"===s?(o=(null==t?void 0:t.map(function(t){return t.value}))||[1,1,1],l.scaleLocal(o[0],o[1],o[2])):"translate"===s?(o=t||[dc,dc],l.translateLocal(o[0].value,o[1].value,0)):"translatex"===s?(o=t||[dc],l.translateLocal(o[0].value,0,0)):"translatey"===s?(o=t||[dc],l.translateLocal(0,o[0].value,0)):"translatez"===s?(o=t||[dc],l.translateLocal(0,0,o[0].value)):"translate3d"===s?(o=t||[dc,dc,dc],l.translateLocal(o[0].value,o[1].value,o[2].value)):"rotate"===s?(o=t||[fc],l.rotateLocal(0,0,o[0].value)):"rotatex"===s?(o=t||[fc],l.rotateLocal(o[0].value,0,0)):"rotatey"===s?(o=t||[fc],l.rotateLocal(0,o[0].value,0)):"rotatez"===s?(o=t||[fc],l.rotateLocal(0,0,o[0].value)):"rotate3d"!==s&&("skew"===s?(o=(null==t?void 0:t.map(function(t){return t.value}))||[0,0],l.setLocalSkew(Hs(o[0]),Hs(o[1]))):"skewx"===s?(o=(null==t?void 0:t.map(function(t){return t.value}))||[0],l.setLocalSkew(Hs(o[0]),l.getLocalSkew()[1])):"skewy"===s?(o=(null==t?void 0:t.map(function(t){return t.value}))||[0],l.setLocalSkew(l.getLocalSkew()[0],Hs(o[0]))):"matrix"===s?(a=(o=t.map(function(t){return t.value}))[0],e=o[1],n=o[2],r=o[3],i=o[4],o=o[5],l.setLocalTransform(mi(a,e,0,0,n,r,0,0,0,0,1,0,i+u,o+c,0,1))):"matrix3d"===s&&((a=mi.apply(Bi,t.map(function(t){return t.value})))[12]+=u,a[13]+=c,l.setLocalTransform(a)))}))},t}(),Pf=t([f({token:{token:_h,named:b.TRANSFORM}})],Pf),Af=function(){this.parser=yh},Af=t([f({token:{token:_h,named:b.TRANSFORM_ORIGIN}})],Af),Cf=function(){function t(){this.parser=Hc}return t.prototype.postProcessor=function(t){var e;t.parentNode&&(e=(t=t.parentNode).renderable,t=t.sortable,e&&(e.dirty=!0),t&&(t.dirty=!0))},t}(),Cf=t([f({token:{token:_h,named:b.Z_INDEX}})],Cf),Nf=[{name:"display",keywords:["none"]},{name:"opacity",interpolable:!0,defaultValue:"1",syntax:b.OPACITY_VALUE},{name:"fillOpacity",interpolable:!0,inherited:!0,defaultValue:"1",syntax:b.OPACITY_VALUE},{name:"strokeOpacity",interpolable:!0,inherited:!0,defaultValue:"1",syntax:b.OPACITY_VALUE},{name:"fill",interpolable:!0,keywords:["none"],defaultValue:"none",syntax:b.PAINT},{name:"stroke",interpolable:!0,keywords:["none"],defaultValue:"none",syntax:b.PAINT},{name:"shadowType",keywords:["inner","outer","both"],defaultValue:"outer",layoutDependent:!0},{name:"shadowColor",interpolable:!0,syntax:b.COLOR},{name:"shadowOffsetX",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:b.LENGTH_PERCENTAGE},{name:"shadowOffsetY",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:b.LENGTH_PERCENTAGE},{name:"shadowBlur",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:b.SHADOW_BLUR},{name:"lineWidth",interpolable:!0,inherited:!0,defaultValue:"1",layoutDependent:!0,alias:["strokeWidth"],syntax:b.LENGTH_PERCENTAGE},{name:"increasedLineWidthForHitTesting",inherited:!0,defaultValue:"0",layoutDependent:!0,syntax:b.LENGTH_PERCENTAGE},{name:"lineJoin",inherited:!0,layoutDependent:!0,alias:["strokeLinejoin"],keywords:["miter","bevel","round"],defaultValue:"miter"},{name:"lineCap",inherited:!0,layoutDependent:!0,alias:["strokeLinecap"],keywords:["butt","round","square"],defaultValue:"butt"},{name:"lineDash",interpolable:!0,inherited:!0,keywords:["none"],alias:["strokeDasharray"],syntax:b.LENGTH_PERCENTAGE_12},{name:"lineDashOffset",interpolable:!0,inherited:!0,defaultValue:"0",alias:["strokeDashoffset"],syntax:b.LENGTH_PERCENTAGE},{name:"offsetPath",syntax:b.OFFSET_PATH},{name:"offsetDistance",interpolable:!0,syntax:b.OFFSET_DISTANCE},{name:"dx",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:b.LENGTH_PERCENTAGE},{name:"dy",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:b.LENGTH_PERCENTAGE},{name:"zIndex",independent:!0,interpolable:!0,defaultValue:"0",keywords:["auto"],syntax:b.Z_INDEX},{name:"visibility",keywords:["visible","hidden"],independent:!0,inherited:!0,defaultValue:"visible"},{name:"pointerEvents",inherited:!0,keywords:["none","auto","stroke","fill","painted","visible","visiblestroke","visiblefill","visiblepainted","bounding-box","all"],defaultValue:"auto"},{name:"filter",independent:!0,layoutDependent:!0,keywords:["none"],defaultValue:"none",syntax:b.FILTER},{name:"clipPath",syntax:b.CLIP_PATH},{name:"transform",parsePriority:100,interpolable:!0,keywords:["none"],defaultValue:"none",syntax:b.TRANSFORM},{name:"transformOrigin",parsePriority:100,defaultValue:function(t){return t===M.CIRCLE||t===M.ELLIPSE?"center":t===M.TEXT?"text-anchor":"left top"},layoutDependent:!0,syntax:b.TRANSFORM_ORIGIN},{name:"anchor",parsePriority:99,defaultValue:function(t){return t===M.CIRCLE||t===M.ELLIPSE?"0.5 0.5":"0 0"},layoutDependent:!0,syntax:b.LENGTH_PERCENTAGE_12},{name:"cx",interpolable:!0,defaultValue:"0",syntax:b.COORDINATE},{name:"cy",interpolable:!0,defaultValue:"0",syntax:b.COORDINATE},{name:"r",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:b.LENGTH_PERCENTAGE},{name:"rx",interpolable:!0,layoutDependent:!0,defaultValue:"auto",syntax:b.LENGTH_PERCENTAGE},{name:"ry",interpolable:!0,layoutDependent:!0,defaultValue:"auto",syntax:b.LENGTH_PERCENTAGE},{name:"x",interpolable:!0,defaultValue:"0",syntax:b.COORDINATE},{name:"y",interpolable:!0,defaultValue:"0",syntax:b.COORDINATE},{name:"z",interpolable:!0,defaultValue:"0",syntax:b.COORDINATE},{name:"width",interpolable:!0,layoutDependent:!0,keywords:["auto","fit-content","min-content","max-content"],defaultValue:"auto",syntax:b.LENGTH_PERCENTAGE},{name:"height",interpolable:!0,layoutDependent:!0,keywords:["auto","fit-content","min-content","max-content"],defaultValue:"auto",syntax:b.LENGTH_PERCENTAGE},{name:"radius",interpolable:!0,layoutDependent:!0,defaultValue:"0",syntax:b.LENGTH_PERCENTAGE_14},{name:"x1",interpolable:!0,layoutDependent:!0,syntax:b.COORDINATE},{name:"y1",interpolable:!0,layoutDependent:!0,syntax:b.COORDINATE},{name:"z1",interpolable:!0,layoutDependent:!0,syntax:b.COORDINATE},{name:"x2",interpolable:!0,layoutDependent:!0,syntax:b.COORDINATE},{name:"y2",interpolable:!0,layoutDependent:!0,syntax:b.COORDINATE},{name:"z2",interpolable:!0,layoutDependent:!0,syntax:b.COORDINATE},{name:"path",interpolable:!0,layoutDependent:!0,defaultValue:"",alias:["d"],syntax:b.PATH,parsePriority:50},{name:"points",layoutDependent:!0,syntax:b.LIST_OF_POINTS,parsePriority:50},{name:"text",layoutDependent:!0,defaultValue:"",syntax:b.TEXT,parsePriority:50},{name:"textTransform",layoutDependent:!0,inherited:!0,keywords:["capitalize","uppercase","lowercase","none"],defaultValue:"none",syntax:b.TEXT_TRANSFORM,parsePriority:51},{name:"font",layoutDependent:!0},{name:"fontSize",interpolable:!0,inherited:!0,defaultValue:"16px",layoutDependent:!0,syntax:b.LENGTH_PERCENTAGE},{name:"fontFamily",layoutDependent:!0,inherited:!0,defaultValue:"sans-serif"},{name:"fontStyle",layoutDependent:!0,inherited:!0,keywords:["normal","italic","oblique"],defaultValue:"normal"},{name:"fontWeight",layoutDependent:!0,inherited:!0,keywords:["normal","bold","bolder","lighter"],defaultValue:"normal"},{name:"fontVariant",layoutDependent:!0,inherited:!0,keywords:["normal","small-caps"],defaultValue:"normal"},{name:"lineHeight",layoutDependent:!0,syntax:b.LENGTH,interpolable:!0,defaultValue:"0"},{name:"letterSpacing",layoutDependent:!0,syntax:b.LENGTH,interpolable:!0,defaultValue:"0"},{name:"miterLimit",layoutDependent:!0,syntax:b.NUMBER,defaultValue:function(t){return t===M.PATH||t===M.POLYGON||t===M.POLYLINE?"4":"10"}},{name:"wordWrap",layoutDependent:!0},{name:"wordWrapWidth",layoutDependent:!0},{name:"leading",layoutDependent:!0},{name:"textBaseline",layoutDependent:!0,inherited:!0,keywords:["top","hanging","middle","alphabetic","ideographic","bottom"],defaultValue:"alphabetic"},{name:"textAlign",layoutDependent:!0,inherited:!0,keywords:["start","center","end","left","right"],defaultValue:"start"},{name:"whiteSpace",layoutDependent:!0},{name:"markerStart",syntax:b.MARKER},{name:"markerEnd",syntax:b.MARKER},{name:"markerMid",syntax:b.MARKER},{name:"markerStartOffset",syntax:b.LENGTH,layoutDependent:!0,interpolable:!0,defaultValue:"0"},{name:"markerEndOffset",syntax:b.LENGTH,layoutDependent:!0,interpolable:!0,defaultValue:"0"}],Lf=function(){function t(){this.dirty=!1,this.cache={},this.unresolvedProperties={},this.propertySyntaxFactory=void 0,this.sceneGraphService=void 0,this.cascadeProperties={}}var e=t.prototype;return e.init=function(){var e=this;Nf.forEach(function(t){e.registerMetadata(t)})},e.registerMetadata=function(e){var n=this;[e.name].concat(e.alias||[]).forEach(function(t){n.cache[t]=e})},e.unregisterMetadata=function(t){delete this.cache[t]},e.getMetadata=function(t){return this.cache[t]},e.getPropertySyntax=function(t){return this.propertySyntaxFactory(t)},e.processProperties=function(n,r,t){var i=this,t=t=void 0===t?{skipUpdateAttribute:!1,skipParse:!1}:t,o=t.skipUpdateAttribute,t=t.skipParse,a=!1,e=(Object.keys(r).forEach(function(t){var t=iu(t,r[t]),e=t[0],t=t[1];o||(n.attributes[e]=t),!a&&null!=(t=i.getMetadata(e))&&t.layoutDependent&&(a=!0)}),Object.keys(r).sort(function(t,e){return((null==(t=i.getMetadata(t))?void 0:t.parsePriority)||0)-((null==(t=i.getMetadata(e))?void 0:t.parsePriority)||0)})),s=(t||e.forEach(function(t){n.computedStyle[t]=i.parseProperty(t,n.attributes[t],n)}),!1);e.forEach(function(t){t in n.computedStyle&&(s=i.computeProperty(t,n.computedStyle[t],n))}),s?this.dirty=!0:(a&&this.updateGeometry(n),e.forEach(function(t){t in n.parsedStyle&&i.postProcessProperty(t,n)}),e.forEach(function(e){e in n.parsedStyle&&i.isPropertyInheritable(e)&&n.children.forEach(function(t){t.internalSetAttribute(e,null,{skipUpdateAttribute:!0,skipParse:!0})})}))},e.parseProperty=function(t,e,n){var r,t=this.getMetadata(t),i=e;return"unset"===(e=""!==e&&!T(e)?e:"unset")||"initial"===e||"inherit"===e?i=new Ku(e):t&&(r=t.keywords,t=(t=t.syntax)&&this.getPropertySyntax(t),r&&-1<r.indexOf(e)?i=new Ku(e):t&&t.parser&&(i=t.parser(e,n))),i},e.computeProperty=function(t,e,n){var r=this.getMetadata(t),i="g-root"===n.id,o=e instanceof Zu?e.clone():e;if(r){var a=r.syntax,s=r.inherited,r=r.defaultValue;if(e instanceof Ku){var l=e.value;if("initial"===(l="unset"===l?s&&!i?"inherit":"initial":l))T(r)||(e=this.parseProperty(t,_s(r)?r(n.nodeName):r,n));else if("inherit"===l)return(s=this.tryToResolveProperty(n,t,{inherited:!0}))?(n.parsedStyle[t]=s,!1):(this.addUnresolveProperty(n,t),!0)}i=a&&this.getPropertySyntax(a);o=i&&i.calculator?(r=n.parsedStyle[t],i.calculator(t,r,e,n,this)):e}return n.parsedStyle[t]=o,!1},e.postProcessProperty=function(t,e){var t=this.getMetadata(t);t&&t.syntax&&((t=t.syntax&&this.getPropertySyntax(t.syntax))&&t.postProcessor&&t.postProcessor(e))},e.isPropertyResolved=function(t,e){return!this.unresolvedProperties[t.entity]||0===this.unresolvedProperties[t.entity].length||this.unresolvedProperties[t.entity].includes(e)},e.addUnresolveProperty=function(t,e){this.unresolvedProperties[t.entity]||(this.unresolvedProperties[t.entity]=[]),-1===this.unresolvedProperties[t.entity].indexOf(e)&&this.unresolvedProperties[t.entity].push(e)},e.tryToResolveProperty=function(t,e,n){var n=(n=void 0===n?{}:n).inherited;if(n&&(t.parentElement&&this.isPropertyResolved(t.parentElement,e)))return(!((n=t.parentElement.parsedStyle[e])instanceof Ku)||"unset"!==n.value&&"initial"!==n.value&&"inherit"!==n.value)&&(!(n instanceof P&&P.isRelativeUnit(n.unit))&&n);return!1},e.recalc=function(e){var n,t=this.unresolvedProperties[e.entity];t&&t.length&&(n={},t.forEach(function(t){n[t]=e.attributes[t]}),this.processProperties(e,n),delete this.unresolvedProperties[e.entity])},e.updateGeometry=function(t){var s,e,n,r,i,o,a,l,u,c,h,d,f,p,y,g,v,m=Zr.get(Zd)(t.nodeName);m&&((s=t.geometry).contentBounds||(s.contentBounds=new Oc),s.renderBounds||(s.renderBounds=new Oc),e=t.parsedStyle,p=(m=m.update(e,t)).width,v=m.height,h=void 0===(h=m.depth)?0:h,c=void 0===(c=m.offsetX)?0:c,u=void 0===(u=m.offsetY)?0:u,m=void 0===(m=m.offsetZ)?0:m,n=p<0,r=v<0,h=E(Math.abs(p)/2,Math.abs(v)/2,h/2),l=e.stroke,y=e.lineWidth,g=e.increasedLineWidthForHitTesting,f=e.shadowType,d=e.shadowColor,i=void 0===(i=e.filter)?[]:i,o=e.transformOrigin,a=e.anchor,t.nodeName===M.TEXT&&delete e.anchor,c=E((1-2*(a&&a[0].value||0))*p/2+c,(1-2*(a&&a[1].value||0))*v/2+u,(1-2*(a&&(null==(p=a[2])?void 0:p.value)||0))*h[2]+m),s.contentBounds.update(c,h),v=t.nodeName===M.POLYLINE||t.nodeName===M.POLYGON||t.nodeName===M.PATH?Math.SQRT2:.5,l&&!l.isNone&&Hi(h,h,E(u=(((null==y?void 0:y.value)||0)+((null==g?void 0:g.value)||0))*v,u,0)),s.renderBounds.update(c,h),d&&"inner"!==(null==f?void 0:f.value)&&(m=(p=s.renderBounds).min,l=p.max,y=e.shadowBlur,g=e.shadowOffsetX,v=e.shadowOffsetY,u=y&&y.value||0,c=g&&g.value||0,h=v&&v.value||0,d=m[0]-u+c,f=l[0]+u+c,p=m[1]-u+h,y=l[1]+u+h,m[0]=Math.min(m[0],d),l[0]=Math.max(l[0],f),m[1]=Math.min(m[1],p),l[1]=Math.max(l[1],y),s.renderBounds.setMinMax(m,l)),i.forEach(function(t){var e,n,r,i,o,a=t.name,t=t.params;"blur"===a?(i=t[0].value,s.renderBounds.update(s.renderBounds.center,Hi(s.renderBounds.halfExtents,s.renderBounds.halfExtents,E(i,i,0)))):"drop-shadow"===a&&(i=t[0].value,a=t[1].value,t=t[2].value,e=(n=s.renderBounds).min,n=n.max,r=e[0]-t+i,i=n[0]+t+i,o=e[1]-t+a,t=n[1]+t+a,e[0]=Math.min(e[0],r),n[0]=Math.max(n[0],i),e[1]=Math.min(e[1],o),n[1]=Math.max(n[1],t),s.renderBounds.setMinMax(e,n))}),a=e.anchor,g=(n?-1:1)*Vc(o[0],0,t),v=(r?-1:1)*Vc(o[1],1,t),g-=(n?-1:1)*(a&&a[0].value||0)*s.contentBounds.halfExtents[0]*2,v-=(r?-1:1)*(a&&a[1].value||0)*s.contentBounds.halfExtents[1]*2,t.setOrigin(g,v),this.sceneGraphService.dirtifyToRoot(t))},e.isPropertyInheritable=function(t){t=this.getMetadata(t);return!!t&&t.inherited},t}(),o=(t([p(Eh),e("design:type",Function)],Lf.prototype,"propertySyntaxFactory",void 0),t([p(Cd),e("design:type",Object)],Lf.prototype,"sceneGraphService",void 0),t([V.postConstruct(),e("design:type",Function),e("design:paramtypes",[]),e("design:returntype",void 0)],Lf.prototype,"init",null),Lf=t([f({token:Bl})],Lf),Hr(function(t){V.decorate(Mr(),Eo.exports.EventEmitter),t(Ih),t(Sd),t({token:kd,useFactory:function(t){return function(){return t.container.get(Ed)}}}),t(Nd),t(Hd),t(Xd),t($d),t(Jd),t(Qd),t(tf),t(ef),t(nf),t(rf),t({token:Zd,useFactory:function(e){var n={};return function(t){return n[t]||e.container.isBoundNamed(Kd,t)&&(n[t]=e.container.getNamed(Kd,t)),n[t]}}}),t(xf),t(Sh),t(of),t(af),t(sf),t(yf),t(gf),t(vf),t(mf),t(wf),t(kf),t(Ef),t(_f),t(Sf),t(Mf),t(Tf),t(Of),t(Pf),t(Af),t(Cf),t(bf),t({token:Eh,useFactory:function(e){var n={};return function(t){return n[t]||e.container.isBoundNamed(_h,t)&&(n[t]=e.container.getNamed(_h,t)),n[t]}}}),t(Lf),t(Vu),t(Gu),t(zu),t({token:ju,useFactory:function(n){return function(t){var e=n.container.createChild();return e.register({token:Bu,useValue:t}),e.get(zu)}}}),t({token:ds,useFactory:function(o){return function(t){var e=o.container.createChild(),n=(e.register(ys),e.register(Du),e.register({token:Iu,useFactory:function(n){return function(t){var e=n.container.createChild();return e.register({token:Ru,useValue:t}),e.get(Du)}}}),e.register(bs),e.register({token:gs,useFactory:function(r){return function(t,e){var n=r.container.createChild();return n.register({token:vs,useValue:t}),n.register({token:ms,useValue:e}),n.get(bs)}}}),e.register(Uu),e.register({token:Hu,useFactory:function(n){return function(t){var e=n.container.createChild();return e.register({token:Wu,useValue:t}),e.get(Uu)}}}),e.get(Iu)),r=e.get(Hu),i=e.get(gs);return e.register({token:fs,useValue:is({},t,{layoutChildrenFactory:n,layoutFragmentFactory:r,fragmentResultFactory:i})}),e.get(ys)}}})})),H=function(){function t(t){this.plugins=[],this.config=void 0,this.config=is({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1},t)}var e=t.prototype;return e.registerPlugin=function(t){this.plugins.push(t)},e.unregisterPlugin=function(e){var t=this.plugins.findIndex(function(t){return t===e});-1<t&&this.plugins.splice(t,1)},e.getPlugins=function(){return this.plugins},e.getPlugin=function(e){return this.plugins.find(function(t){return t.name===e})},e.getConfig=function(){return this.config},e.setConfig=function(t){Object.assign(this.config,t)},t}(),If=d.defineToken("CullingStrategyContribution"),Rf=((tt=function(){function t(){this.strategyProvider=void 0,this.renderingContext=void 0}return t.prototype.apply=function(t){var n=this,r=this.strategyProvider.getContributions();t.hooks.cull.tap(cf.tag,function(e){var t;return e&&(t=e.cullable,0===r.length?t.visible=-1<n.renderingContext.unculledEntities.indexOf(e.entity):t.visible=r.every(function(t){return t.isVisible(e)}),!t.isCulled()&&e.isVisible()?e:(e.dispatchEvent(new Th(m.CULLED)),null))}),t.hooks.afterRender.tap(cf.tag,function(t){t.cullable.visibilityPlaneMask=-1})},t}()).tag="Culling",cf=tt),Df=(t([Ur(If),e("design:type",Object)],Rf.prototype,"strategyProvider",void 0),t([p(Id),e("design:type",Object)],Rf.prototype,"renderingContext",void 0),Rf=cf=t([f({contrib:zd})],Rf),(u=function(){function t(){}return t.prototype.apply=function(e){e.hooks.dirtycheck.tap(hf.tag,function(t){return t&&(t.renderable.dirty||e.disableDirtyRectangleRendering()?t:null)})},t}()).tag="DirtyCheck",hf=u),Df=hf=t([f({contrib:zd})],Df),jf=((dt=function(){function t(){var o=this;this.canvasConfig=void 0,this.contextService=void 0,this.renderingService=void 0,this.renderingContext=void 0,this.eventService=void 0,this.autoPreventDefault=!1,this.rootPointerEvent=new fd(null),this.rootWheelEvent=new pd(null),this.onPointerMove=function(t){var e,n=null==(e=o.renderingContext.root)||null==(e=e.ownerDocument)?void 0:e.defaultView;if(!n.supportsTouchEvents||"touch"!==t.pointerType){for(var r=cs(o.normalizeToPointerEvent(t,n));!(i=r()).done;){var i=i.value,i=o.bootstrapEvent(o.rootPointerEvent,i,n);o.eventService.mapEvent(i)}o.setCursor(o.eventService.cursor)}}}var e=t.prototype;return e.apply=function(t){var o=this,a=this.renderingContext.root.ownerDocument.defaultView;this.eventService.setPickHandler(function(){var e=es(_().mark(function t(e){var n;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,o.renderingService.hooks.pick.promise({position:e,picked:[],topmost:!0});case 2:return n=t.sent,n=n.picked,t.abrupt("return",n[0]||null);case 5:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}()),t.hooks.pointerWheel.tap(df.tag,function(t){t=o.normalizeWheelEvent(t);o.eventService.mapEvent(t)}),t.hooks.pointerDown.tap(df.tag,function(t){if(!a.supportsTouchEvents||"touch"!==t.pointerType){var e=o.normalizeToPointerEvent(t,a);!o.autoPreventDefault||!e[0].isNormalized||!t.cancelable&&"cancelable"in t||t.preventDefault();for(var n=cs(e);!(r=n()).done;){var r=r.value,r=o.bootstrapEvent(o.rootPointerEvent,r,a);o.eventService.mapEvent(r)}o.setCursor(o.eventService.cursor)}}),t.hooks.pointerUp.tap(df.tag,function(t){if(!a.supportsTouchEvents||"touch"!==t.pointerType){for(var e=o.contextService.getDomElement(),n=e&&t.target&&t.target!==e&&e.contains&&!e.contains(t.target)?"outside":"",r=cs(o.normalizeToPointerEvent(t,a));!(i=r()).done;){var i=i.value,i=o.bootstrapEvent(o.rootPointerEvent,i,a);i.type+=n,o.eventService.mapEvent(i)}o.setCursor(o.eventService.cursor)}}),t.hooks.pointerMove.tap(df.tag,this.onPointerMove),t.hooks.pointerOver.tap(df.tag,this.onPointerMove),t.hooks.pointerOut.tap(df.tag,this.onPointerMove)},e.bootstrapEvent=function(t,e,n){t.view=n,t.originalEvent=null,t.nativeEvent=e,t.pointerId=e.pointerId,t.width=e.width,t.height=e.height,t.isPrimary=e.isPrimary,t.pointerType=e.pointerType,t.pressure=e.pressure,t.tangentialPressure=e.tangentialPressure,t.tiltX=e.tiltX,t.tiltY=e.tiltY,t.twist=e.twist,this.transferMouseData(t,e);var n=this.eventService.client2Viewport(new Cc(e.clientX,e.clientY)),r=n.x,n=n.y,r=(t.viewport.x=r,t.viewport.y=n,this.eventService.viewport2Canvas(t.viewport)),n=r.x,r=r.y;return t.canvas.x=n,t.canvas.y=r,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.isTrusted=e.isTrusted,"pointerleave"===t.type&&(t.type="pointerout"),t.type.startsWith("mouse")&&(t.type=t.type.replace("mouse","pointer")),t.type.startsWith("touch")&&(t.type=pl[t.type]||t.type),t},e.normalizeWheelEvent=function(t){var e=this.rootWheelEvent,n=(this.transferMouseData(e,t),e.deltaMode=t.deltaMode,e.deltaX=t.deltaX,e.deltaY=t.deltaY,e.deltaZ=t.deltaZ,this.eventService.client2Viewport(new Cc(t.clientX,t.clientY))),r=n.x,n=n.y,r=(e.viewport.x=r,e.viewport.y=n,this.eventService.viewport2Canvas(e.viewport)),n=r.x,r=r.y;return e.canvas.x=n,e.canvas.y=r,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.nativeEvent=t,e.type=t.type,e},e.transferMouseData=function(t,e){t.isTrusted=e.isTrusted,t.srcElement=e.srcElement,t.timeStamp=performance.now(),t.type=e.type,t.altKey=e.altKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.ctrlKey=e.ctrlKey,t.button=e.button,t.buttons=e.buttons,t.client.x=e.clientX,t.client.y=e.clientY,t.movement.x=e.movementX,t.movement.y=e.movementY,t.page.x=e.pageX,t.page.y=e.pageY,t.screen.x=e.screenX,t.screen.y=e.screenY,t.relatedTarget=null},e.setCursor=function(t){this.contextService.applyCursorStyle(t||this.canvasConfig.cursor||"default")},e.normalizeToPointerEvent=function(t,e){var n=[];if(e.isTouchEvent(t))for(var r=0;r<t.changedTouches.length;r++){var i=t.changedTouches[r];ks(i.button)&&(i.button=0),ks(i.buttons)&&(i.buttons=1),ks(i.isPrimary)&&(i.isPrimary=1===t.touches.length&&"touchstart"===t.type),ks(i.width)&&(i.width=i.radiusX||1),ks(i.height)&&(i.height=i.radiusY||1),ks(i.tiltX)&&(i.tiltX=0),ks(i.tiltY)&&(i.tiltY=0),ks(i.pointerType)&&(i.pointerType="touch"),ks(i.pointerId)&&(i.pointerId=i.identifier||0),ks(i.pressure)&&(i.pressure=i.force||.5),ks(i.twist)&&(i.twist=0),ks(i.tangentialPressure)&&(i.tangentialPressure=0),i.isNormalized=!0,i.type=t.type,n.push(i)}else e.isMouseEvent(t)?(ks((e=t).isPrimary)&&(e.isPrimary=!0),ks(e.width)&&(e.width=1),ks(e.height)&&(e.height=1),ks(e.tiltX)&&(e.tiltX=0),ks(e.tiltY)&&(e.tiltY=0),ks(e.pointerType)&&(e.pointerType="mouse"),ks(e.pointerId)&&(e.pointerId=1),ks(e.pressure)&&(e.pressure=.5),ks(e.twist)&&(e.twist=0),ks(e.tangentialPressure)&&(e.tangentialPressure=0),e.isNormalized=!0,n.push(e)):n.push(t);return n},t}()).tag="Event",df=dt),Bf=(t([p(ou),e("design:type",Object)],jf.prototype,"canvasConfig",void 0),t([p(Ld),e("design:type",Object)],jf.prototype,"contextService",void 0),t([p(Vd),e("design:type",Vd)],jf.prototype,"renderingService",void 0),t([p(Id),e("design:type",Object)],jf.prototype,"renderingContext",void 0),t([p(Gd),e("design:type",Gd)],jf.prototype,"eventService",void 0),jf=df=t([f({contrib:zd})],jf),[M.CIRCLE,M.ELLIPSE,M.IMAGE,M.RECT,M.LINE,M.POLYLINE,M.POLYGON,M.TEXT,M.PATH,M.HTML]),Ff=function(){function t(){this.camera=void 0}var e=t.prototype;return e.isVisible=function(t){var e=t.cullable;if(!e.enable)return!0;var n=t.getRenderBounds();if(Oc.isEmpty(n))return!1;var r=this.camera.getFrustum(),i=null==(i=t.parentNode)||null==(i=i.cullable)?void 0:i.visibilityPlaneMask;return e.visibilityPlaneMask=this.computeVisibilityWithPlaneMask(t,n,i||Tc.INDETERMINATE,r.planes),e.visible=e.visibilityPlaneMask!==Tc.OUTSIDE,e.visible},e.computeVisibilityWithPlaneMask=function(t,e,n,r){if(n===Tc.OUTSIDE||n===Tc.INSIDE)return n;for(var i=Tc.INSIDE,o=-1<Bf.indexOf(t.nodeName),a=0,s=r.length;a<s;++a){var l=1<<a;if(0!=(n&l)&&(!o||4!==a&&5!==a)){var u=r[a],c=u.normal,u=u.distance;if(qi(c,e.getPositiveFarPoint(r[a]))+u<0)return Tc.OUTSIDE;qi(c,e.getNegativeFarPoint(r[a]))+u<0&&(i|=l)}}return i},t}(),zf=(t([p(Rd),e("design:type",Fd)],Ff.prototype,"camera",void 0),Ff=t([f({contrib:If})],Ff),(_t=function(){function t(){this.renderingContext=void 0,this.styleValueRegistry=void 0,this.sceneGraphService=void 0,this.rBush=void 0,this.toSync=new Set}var e=t.prototype;return e.pushToSync=function(t){var e=this;t.forEach(function(t){e.toSync.add(t)})},e.apply=function(r){function e(t){t.target.renderable.dirty=!0,r.dirtify()}function n(t){var e=t.detail.affectChildren,n=t.target;e&&n.forEach(function(t){a.pushToSync([t])}),a.pushToSync(t.composedPath().slice(0,-2)),r.dirtify()}function i(t){var e=t.target;a.pushToSync(t.composedPath().slice(0,-2)),a.styleValueRegistry.recalc(e),a.sceneGraphService.dirtifyToRoot(e),r.dirtify()}function o(t){var e=t.target,n=e.rBushNode;n.aabb&&(a.rBush.remove(n.aabb),a.toSync.delete(e)),a.sceneGraphService.dirtifyToRoot(t.target),r.dirtify()}var a=this;r.hooks.init.tapPromise(ff.tag,es(_().mark(function t(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a.renderingContext.root.addEventListener(m.MOUNTED,i),a.renderingContext.root.addEventListener(m.UNMOUNTED,o),a.renderingContext.root.addEventListener(m.ATTR_MODIFIED,e),a.renderingContext.root.addEventListener(m.BOUNDS_CHANGED,n);case 4:case"end":return t.stop()}},t)}))),r.hooks.destroy.tap(ff.tag,function(){a.renderingContext.root.removeEventListener(m.MOUNTED,i),a.renderingContext.root.removeEventListener(m.UNMOUNTED,o),a.renderingContext.root.removeEventListener(m.ATTR_MODIFIED,e),a.renderingContext.root.removeEventListener(m.BOUNDS_CHANGED,n)}),r.hooks.endFrame.tap(ff.tag,function(){a.syncRTree()})},e.syncRTree=function(){var a=this,s=[];Array.from(this.toSync).filter(function(t){return t.isConnected}).forEach(function(t){var e,n,r,i=t.rBushNode,o=(i&&a.rBush.remove(i.aabb),t.getRenderBounds());o&&(e=(n=o.getMin())[0],n=n[1],r=(o=o.getMax())[0],o=o[1],i.aabb={id:t.entity,minX:e,minY:n,maxX:r,maxY:o}),i.aabb&&s.push(i.aabb)}),this.rBush.load(s),s.length=0,this.toSync.clear()},t}()).tag="Prepare",ff=_t),Vf=(t([p(Id),e("design:type",Object)],zf.prototype,"renderingContext",void 0),t([p(Bl),e("design:type",Object)],zf.prototype,"styleValueRegistry",void 0),t([p(Cd),e("design:type",Object)],zf.prototype,"sceneGraphService",void 0),t([p(Ah),e("design:type",Qr)],zf.prototype,"rBush",void 0),zf=ff=t([f({contrib:zd})],zf),Hr(function(t){Yr.register(t,zd,{cache:!1}),Yr.register(t,If,{cache:!1}),t({token:Ah,useValue:new Qr}),t(Vd),t(Gd),t(jf),t(zf),t(Df),t(Rf),t(Ff)})),Gf=((ft=pf=pf||{}).READY="ready",ft.BEFORE_RENDER="beforerender",ft.AFTER_RENDER="afterrender",ft.BEFORE_DESTROY="beforedestroy",ft.AFTER_DESTROY="afterdestroy",ft.RESIZE="resize",ft.DIRTY_RECTANGLE="dirtyrectangle",function(w){function t(t){var e=w.call(this)||this,n=(e.container=Zr.createChild(),e.document=void 0,e.customElements=void 0,e.requestAnimationFrame=void 0,e.cancelAnimationFrame=void 0,e.devicePixelRatio=void 0,e.supportsPointerEvents=void 0,e.supportsTouchEvents=void 0,e.isTouchEvent=void 0,e.isMouseEvent=void 0,e.Element=k,e.frameId=void 0,e.eventService=void 0,e.renderingService=void 0,e.inited=!1,e.readyPromise=void 0,e.resolveReadyPromise=void 0,e.document=new hd,e.document.defaultView=ls(e),e.customElements=new wd,t.container),r=t.canvas,i=t.offscreenCanvas,o=t.width,a=t.height,s=t.devicePixelRatio,l=t.renderer,u=t.background,c=t.cursor,h=t.document,d=t.requestAnimationFrame,f=t.cancelAnimationFrame,p=t.createImage,y=t.supportsPointerEvents,g=t.supportsTouchEvents,v=t.isTouchEvent,t=t.isMouseEvent,m=(m=n,b=ls(e),m&&(m="string"==typeof m?m:m.id||Os++,Ts[m]&&Ts[m].destroy(),Ts[m]=b),o),b=a,x=s;return r&&(x=1<=(x=s||As&&window.devicePixelRatio||1)?Math.ceil(x):1,m=o||("auto"===(o=fl(s=r,"width"))?s.offsetWidth:parseFloat(o))||r.width/x,b=a||("auto"===(o=fl(s=r,"height"))?s.offsetHeight:parseFloat(o))||r.height/x),e.devicePixelRatio=x,e.requestAnimationFrame=null!=d?d:Ja.bind(globalThis),e.cancelAnimationFrame=null!=f?f:Qa.bind(globalThis),e.supportsTouchEvents=null!=g?g:"ontouchstart"in globalThis,e.supportsPointerEvents=null!=y?y:!!globalThis.PointerEvent,e.isTouchEvent=null!=v?v:function(t){return e.supportsTouchEvents&&t instanceof globalThis.TouchEvent},e.isMouseEvent=null!=t?t:function(t){return!globalThis.MouseEvent||t instanceof globalThis.MouseEvent&&(!e.supportsPointerEvents||!(t instanceof globalThis.PointerEvent))},e.initRenderingContext({container:n,canvas:r,width:m,height:b,renderer:l,offscreenCanvas:i,devicePixelRatio:x,cursor:c||"default",background:u,createImage:p,document:h}),e.initDefaultCamera(m,b),es(_().mark(function t(){return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.initRenderer(l);case 2:e.dispatchEvent(new Th(pf.READY)),e.readyPromise&&e.resolveReadyPromise();case 4:case"end":return t.stop()}},t)}))(),e}g(t,w);var e=t.prototype;return e.initRenderingContext=function(t){var e=this;this.container.register({token:ou,useValue:t}),this.container.register({token:Id,useValue:{root:this.document.documentElement,renderListCurrentFrame:[],unculledEntities:[],renderReasons:new Set,force:!1,dirty:!1}}),this.document.documentElement.addEventListener(m.CHILD_INSERTED,function(t){e.mountChildren(t.detail.child)}),this.document.documentElement.addEventListener(m.CHILD_REMOVED,function(t){e.unmountChildren(t.detail.child)})},e.initDefaultCamera=function(t,e){var t=(new Fd).setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0).setOrthographic(t/-2,t/2,e/2,e/-2,.1,1e3),n=(t.canvas=this).container.get(Id);t.on(Dd,function(){n.renderReasons.add(Td.CAMERA_CHANGED)}),this.container.register({token:Rd,useValue:t})},e.getConfig=function(){return this.container.get(ou)},e.getContainer=function(){return this.container},e.getRoot=function(){return this.document.documentElement},e.getCamera=function(){return this.container.get(Rd)},e.getContextService=function(){return this.container.get(Ld)},e.getEventService=function(){return this.eventService},e.getRenderingService=function(){return this.renderingService},e.getRenderingContext=function(){return this.container.get(Id)},e.getStats=function(){return this.getRenderingService().getStats()},e.destroy=function(t,e){void 0===t&&(t=!0),(e=void 0===e?!1:e)||this.dispatchEvent(new Th(pf.BEFORE_DESTROY)),this.frameId&&(this.getConfig().cancelAnimationFrame||cancelAnimationFrame)(this.frameId);var n=this.getRoot();this.unmountChildren(n),t&&this.document.destroy(),this.getContextService().destroy(),this.getRenderingService().destroy(),e||this.dispatchEvent(new Th(pf.AFTER_DESTROY))},e.changeSize=function(t,e){this.resize(t,e)},e.resize=function(t,e){var n=this.container.get(ou),n=(n.width=t,n.height=e,this.getContextService().resize(t,e),this.container.get(Rd)),r=n.getProjectionMode();n.setPosition(t/2,e/2,500).setFocalPoint(t/2,e/2,0),r===Ad.ORTHOGRAPHIC?n.setOrthographic(t/-2,t/2,e/2,e/-2,n.getNear(),n.getFar()):n.setAspect(t/e),this.dispatchEvent(new Th(pf.RESIZE,{width:t,height:e}))},e.appendChild=function(t,e){return this.document.documentElement.appendChild(t,e)},e.insertBefore=function(t,e){return this.document.documentElement.insertBefore(t,e)},e.removeChild=function(t,e){return this.document.documentElement.removeChild(t,e=void 0===e?!0:e)},e.removeChildren=function(t){this.document.documentElement.removeChildren(t=void 0===t?!0:t)},e.render=function(){this.dispatchEvent(new Th(pf.BEFORE_RENDER)),this.container.isBound(Vd)&&this.container.get(Vd).render(this.getConfig()),this.dispatchEvent(new Th(pf.AFTER_RENDER))},e.run=function(){var e=this;(function t(){e.render(),e.frameId=requestAnimationFrame(t)})()},e.initRenderer=function(){var e=es(_().mark(function t(e){var n;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=2;break}throw new Error("Renderer is required.");case 2:return this.inited=!1,this.readyPromise=void 0,this.loadCommonContainerModule(),this.loadRendererContainerModule(e),n=this.container.get(Ld),this.renderingService=this.container.get(Vd),this.eventService=this.container.get(Gd),t.next=11,n.init();case 11:return t.next=13,this.renderingService.init();case 13:this.inited=!0,this.getRoot().forEach(function(t){t=t.renderable;t&&(t.renderBoundsDirty=!0,t.boundsDirty=!0,t.dirty=!0)}),this.mountChildren(this.getRoot()),e.getConfig().enableAutoRendering&&this.run();case 17:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.loadCommonContainerModule=function(){this.container.unload(Vf),this.container.load(Vf,!0)},e.loadRendererContainerModule=function(t){var e=this;t.getPlugins().forEach(function(t){t.container=e.container,t.init()})},e.setRenderer=function(){var e=es(_().mark(function t(e){var n,r;return _().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if((n=this.getConfig()).renderer===e)return t.abrupt("return");t.next=3;break;case 3:return r=n.renderer,n.renderer=e,this.destroy(!1,!0),[].concat(null==r?void 0:r.getPlugins()).reverse().forEach(function(t){t.destroy()}),t.next=9,this.initRenderer(e);case 9:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),e.setCursor=function(t){this.container.get(ou).cursor=t,this.getContextService().applyCursorStyle(t)},e.unmountChildren=function(t){var e,n=this;this.inited&&(e=[],t.forEach(function(t){t.isConnected&&e.push(t)}),e.reverse().forEach(function(t){t instanceof jh&&t.disconnectedCallback&&t.disconnectedCallback(),t.dispatchEvent(new Th(m.UNMOUNTED)),t!==n.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1}))},e.mountChildren=function(t){var e=this;this.inited?t.forEach(function(t){t.isConnected||(t.ownerDocument=e.document,t.isConnected=!0,t.dispatchEvent(new Th(m.MOUNTED)),t instanceof jh&&t.connectedCallback&&t.connectedCallback())}):console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",t.nodeName)},e.client2Viewport=function(t){return this.getEventService().client2Viewport(t)},e.viewport2Client=function(t){return this.getEventService().viewport2Client(t)},e.viewport2Canvas=function(t){return this.getEventService().viewport2Canvas(t)},e.canvas2Viewport=function(t){return this.getEventService().canvas2Viewport(t)},e.getPointByClient=function(t,e){return this.client2Viewport({x:t,y:e})},e.getClientByPoint=function(t,e){return this.viewport2Client({x:t,y:e})},rs(t,[{key:"ready",get:function(){var e=this;return this.readyPromise||(this.readyPromise=new Promise(function(t){e.resolveReadyPromise=function(){t(e)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise}}]),t}(ge)),Hf=(Zr.load(o),Zr.get(Gu)),Wf=function(t){return null!==t&&"function"!=typeof t&&isFinite(t.length)},Uf={}.toString,Yf=function(t,e){return Uf.call(t)==="[object "+e+"]"},qf=function(t){return Yf(t,"Function")},Xf=function(t){return null==t},Zf=function(t){return Array.isArray?Array.isArray(t):Yf(t,"Array")},Kf=function(t){var e=typeof t;return null!==t&&"object"==e||"function"==e};function $f(t,e){if(t)if(Zf(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(Kf(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break}function Jf(t){return"object"==typeof t&&null!==t}function Qf(t){if(Zf(t))return t.reduce(function(t,e){return Math.max(t,e)},t[0])}function tp(t){if(Zf(t))return t.reduce(function(t,e){return Math.min(t,e)},t[0])}var ep=function(t){if(!Jf(t)||!Yf(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},np=function(t){return Yf(t,"String")};function rp(t){if(Wf(t))return t[0]}function ip(t){if(Wf(t))return t[t.length-1]}function op(t,e,n){return t<e?e:n<t?n:t}function ap(t){return Yf(t,"Number")}var sp=1e-5;function lp(t,e,n){return void 0===n&&(n=sp),Math.abs(t-e)<n}var up=function(t,e){if(Zf(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=qf(e)?e(o):o[e];r<a&&(n=o,r=a)}return n}},cp=function(t,e){if(Zf(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=qf(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},hp=Object.values?function(t){return Object.values(t)}:function(n){var r=[];return $f(n,function(t,e){qf(n)&&"prototype"===e||r.push(t)}),r},dp=function(t){return Xf(t)?"":t.toString()};function fp(t){return null===t}function pp(t){return void 0===t}function yp(t){return t instanceof Element||t instanceof HTMLDocument}var gp=function(t){t=dp(t);return t.charAt(0).toUpperCase()+t.substring(1)};function vp(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function mp(t,e,n,r){return e&&vp(t,e),n&&vp(t,n),r&&vp(t,r),t}function bp(o,a){if(qf(o))return s.cache=new Map,s;function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=a?a.apply(this,t):t[0],r=s.cache;if(r.has(n))return r.get(n);var i=o.apply(this,t);return r.set(n,i),i}throw new TypeError("Expected a function")}var xp=function(t){if("object"!=typeof t||null===t)return t;if(Zf(t))for(var e=[],n=0,r=t.length;n<r;n++)"object"==typeof t[n]&&null!=t[n]?e[n]=xp(t[n]):e[n]=t[n];else for(var i in e={},t)"object"==typeof t[i]&&null!=t[i]?e[i]=xp(t[i]):e[i]=t[i];return e},wp=5;function kp(t,e,n){for(var r=0,i=np(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t}function Ep(e,t){if(null===e||!ep(e))return{};var n={};return $f(t,function(t){Cp.call(e,t)&&(n[t]=e[t])}),n}function _p(t,r){var n=function(t,e,n){return r.includes(n)||(t[n]=e),t},e={};if(!Zf(t)&&!ep(t))return t;var i=e;return $f(t,function(t,e){i=n(i,t,e)}),i}function Sp(n,r,i){function o(){c=!1===i.leading?0:Date.now(),a=null,u=n.apply(s,l),a||(s=l=null)}function t(){var t=Date.now(),e=(c||!1!==i.leading||(c=t),r-(t-c));return s=this,l=arguments,e<=0||r<e?(a&&(clearTimeout(a),a=null),c=t,u=n.apply(s,l),a||(s=l=null)):a||!1===i.trailing||(a=setTimeout(o,e)),u}var a,s,l,u,c=0;return i=i||{},t.cancel=function(){clearTimeout(a),c=0,a=s=l=null},t}function Mp(){}function Tp(t){return t}var Op,C=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)!function t(e,n,r,i){for(var o in r=r||0,i=i||wp,n){var a;n.hasOwnProperty(o)&&(null!==(a=n[o])&&ep(a)?(ep(e[o])||(e[o]={}),r<i?t(e[o],a,r+1,i):e[o]=n[o]):Zf(a)?(e[o]=[],e[o]=e[o].concat(a)):void 0!==a&&(e[o]=a))}}(t,e[r]);return t},Pp=function(t,e){if(!Wf(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var r=-1,i=0;i<t.length;i++)if(t[i]===e){r=i;break}return r},Ap=function(t,e){if(t===e)return!0;if(t&&e&&!np(t)&&!np(e)){if(Wf(t)||Wf(e)){if(t.length!==e.length)return!1;for(var n=!0,r=0;r<t.length&&(n=Ap(t[r],e[r]));r++);return n}if(Jf(t)||Jf(e)){var i=Object.keys(t),o=Object.keys(e);if(i.length!==o.length)return!1;for(n=!0,r=0;r<i.length&&(n=Ap(t[i[r]],e[i[r]]));r++);return n}}return!1},Cp=Object.prototype.hasOwnProperty;function Np(t){return Xf(t)?0:(Wf(t)?t:Object.keys(t)).length}var Lp=bp(function(t,e){var n=(e=void 0===e?{}:e).fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,e=e.fontVariant;return(Op=Op||document.createElement("canvas").getContext("2d")).font=[o,e,i,n+"px",r].join(" "),Op.measureText(np(t)?t:"").width},function(t,e){return function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;for(var r=Array(t),i=0,e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,i++)r[i]=o[a];return r}([t],hp(e=void 0===e?{}:e)).join("")});function Ip(t,e){return(Ip=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var Rp=d.defineToken("PathGeneratorFactory"),Dp=d.defineToken("PathGenerator");function jp(t,e){e=e.r;t.arc(e.value,e.value,e.value,0,2*Math.PI,!1)}function Bp(t,e){var n,r,i=e.rx,e=e.ry,i=i.value,e=e.value;t.ellipse?t.ellipse(i,e,i,e,0,0,2*Math.PI,!1):(n=e<i?i:e,r=e<i?1:i/e,e=e<i?e/i:1,t.save(),t.scale(r,e),t.arc(0,0,n,0,2*Math.PI))}function Fp(t,e){var n,r,i=e.x1,o=e.y1,a=e.x2,s=e.y2,l=e.defX,l=void 0===l?0:l,u=e.defY,u=void 0===u?0:u,c=e.markerStart,h=e.markerEnd,d=e.markerStartOffset,e=e.markerEndOffset,f=0,p=0,y=0,g=0,v=0;c&&c instanceof k&&d&&(n=a.value-i.value,r=s.value-o.value,v=Math.atan2(r,n),f=Math.cos(v)*((null==d?void 0:d.value)||0),p=Math.sin(v)*((null==d?void 0:d.value)||0)),h&&h instanceof k&&e&&(n=i.value-a.value,r=o.value-s.value,v=Math.atan2(r,n),y=Math.cos(v)*((null==e?void 0:e.value)||0),g=Math.sin(v)*((null==e?void 0:e.value)||0)),t.moveTo(i.value-l+f,o.value-u+p),t.lineTo(a.value-l+y,s.value-u+g)}function zp(t,e){var n,r,i=e.defX,o=void 0===i?0:i,i=e.defY,a=void 0===i?0:i,i=e.markerStart,s=e.markerEnd,l=e.markerStartOffset,u=e.markerEndOffset,e=e.path,c=e.curve,e=e.zCommandIndexes,h=[].concat(c),d=(e.forEach(function(t,e){h.splice(t+e,1,["Z"])}),"Z"===h[h.length-1][0]),f=0,p=0,y=0,g=0,c=0;i&&i instanceof k&&l&&(i=(e=i.parentNode.getStartTangent())[0],e=e[1],n=i[0]-e[0],r=i[1]-e[1],c=Math.atan2(r,n),f=Math.cos(c)*((null==l?void 0:l.value)||0),p=Math.sin(c)*((null==l?void 0:l.value)||0)),s&&s instanceof k&&u&&(e=(i=s.parentNode.getEndTangent())[0],l=i[1],n=e[0]-l[0],r=e[1]-l[1],c=Math.atan2(r,n),y=Math.cos(c)*((null==u?void 0:u.value)||0),g=Math.sin(c)*((null==u?void 0:u.value)||0));for(var v=0;v<h.length;v++){var m=h[v];switch(m[0]){case"M":t.moveTo(m[1]-o+f,m[2]-a+p);break;case"C":var b=v===h.length-(d?2:1)?y:0,x=v===h.length-(d?2:1)?g:0;t.bezierCurveTo(m[1]-o,m[2]-a,m[3]-o,m[4]-a,m[5]-o+b,m[6]-a+x);break;case"Z":t.closePath()}}}function Vp(t,e){var n,r,i=e.defX,o=void 0===i?0:i,i=e.defY,a=void 0===i?0:i,i=e.markerStart,s=e.markerEnd,l=e.markerStartOffset,u=e.markerEndOffset,c=e.points.points,h=c.length,e=c[0][0]-o,d=c[0][1]-a,f=c[h-1][0]-o,p=c[h-1][1]-a,y=0,g=0,v=0,m=0,b=0;i&&i instanceof k&&l&&(n=c[1][0]-c[0][0],r=c[1][1]-c[0][1],b=Math.atan2(r,n),y=Math.cos(b)*((null==l?void 0:l.value)||0),g=Math.sin(b)*((null==l?void 0:l.value)||0)),s&&s instanceof k&&u&&(n=c[h-1][0]-c[0][0],r=c[h-1][1]-c[0][1],b=Math.atan2(r,n),v=Math.cos(b)*((null==u?void 0:u.value)||0),m=Math.sin(b)*((null==u?void 0:u.value)||0)),t.moveTo(e+(y||v),d+(g||m));for(var x=1;x<h-1;x++){var w=c[x];t.lineTo(w[0]-o,w[1]-a)}t.lineTo(f,p)}function Gp(t,e){var n,r,i=e.defX,o=void 0===i?0:i,i=e.defY,a=void 0===i?0:i,i=e.markerStart,s=e.markerEnd,l=e.markerStartOffset,u=e.markerEndOffset,c=e.points.points,h=c.length,e=c[0][0]-o,d=c[0][1]-a,f=c[h-1][0]-o,p=c[h-1][1]-a,y=0,g=0,v=0,m=0,b=0;i&&i instanceof k&&l&&(n=c[1][0]-c[0][0],r=c[1][1]-c[0][1],b=Math.atan2(r,n),y=Math.cos(b)*((null==l?void 0:l.value)||0),g=Math.sin(b)*((null==l?void 0:l.value)||0)),s&&s instanceof k&&u&&(n=c[h-2][0]-c[h-1][0],r=c[h-2][1]-c[h-1][1],b=Math.atan2(r,n),v=Math.cos(b)*((null==u?void 0:u.value)||0),m=Math.sin(b)*((null==u?void 0:u.value)||0)),t.moveTo(e+y,d+g);for(var x=1;x<h-1;x++){var w=c[x];t.lineTo(w[0]-o,w[1]-a)}t.lineTo(f+v,p+m)}function Hp(t,e){var n,r,i,o,a=e.radius,s=e.width,e=e.height,l=s.value,u=e.value;a&&a.some(function(t){return 0!==t.value})?(n=(s=0<s.value?1:-1)+(e=0<e.value?1:-1)==0,r=(a=a.map(function(t){return zs(t.value,0,Math.min(Math.abs(l)/2,Math.abs(u)/2))}))[0],i=a[1],o=a[2],a=a[3],t.moveTo(s*r,0),t.lineTo(l-s*i,0),0!==i&&t.arc(l-s*i,e*i,i,-e*Math.PI/2,0<s?0:Math.PI,n),t.lineTo(l,u-e*o),0!==o&&t.arc(l-s*o,u-e*o,o,0<s?0:Math.PI,0<e?Math.PI/2:1.5*Math.PI,n),t.lineTo(s*a,u),0!==a&&t.arc(s*a,u-e*a,a,0<e?Math.PI/2:-Math.PI/2,0<s?Math.PI:0,n),t.lineTo(0,e*r),0!==r&&t.arc(s*r,e*r,r,0<s?Math.PI:0,0<e?1.5*Math.PI:Math.PI/2,n)):t.rect(0,0,l,u)}var Wp=Hr(function(t){t({token:{token:Dp,named:M.CIRCLE},useValue:jp}),t({token:{token:Dp,named:M.ELLIPSE},useValue:Bp}),t({token:{token:Dp,named:M.RECT},useValue:Hp}),t({token:{token:Dp,named:M.LINE},useValue:Fp}),t({token:{token:Dp,named:M.POLYLINE},useValue:Gp}),t({token:{token:Dp,named:M.POLYGON},useValue:Vp}),t({token:{token:Dp,named:M.PATH},useValue:zp}),t({token:Rp,useFactory:function(e){return function(t){return e.container.isBoundNamed(Dp,t)?e.container.getNamed(Dp,t):null}}})}),Up=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="canvas-path-generator",t}t=i,(n=e).prototype=Object.create(t.prototype),Ip(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(Wp,!0)},n.destroy=function(){this.container.unload(Wp)},e}(uf);function Yp(){Yp=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function f(){}var e={},p=(o(e,r,function(){return this}),Object.getPrototypeOf),p=p&&p(p(w([]))),y=(p&&p!==t&&l.call(p,r)&&(e=p),f.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function v(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=f),o(f,"constructor",d),d.displayName=o(f,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(v.prototype),o(v.prototype,n,function(){return this}),a.AsyncIterator=v,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new v(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function qp(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Xp(t,e){return(Xp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var Zp,Kp="undefined"!=typeof Float32Array?Float32Array:Array;function $p(){var t=new Kp(16);return Kp!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function Jp(){var t=new Kp(3);return Kp!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Qp(t,e,n){var r=new Kp(3);return r[0]=t,r[1]=e,r[2]=n,r}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),Jp(),n=new Kp(2),Kp!=Float32Array&&(n[0]=0,n[1]=0);var ty=d.defineToken("PointInPathPicker"),ey=((J=function(){function t(){var L=this;this.displayObjectPool=void 0,this.canvasConfig=void 0,this.offscreenCanvas=void 0,this.rBush=void 0,this.pathGeneratorFactory=void 0,this.pathGeneratorFactoryCache={},this.pointInPathPickerFactory=void 0,this.isHit=function(t,e,n){var r,i,o,a,s,l,u,c,h,d,f,p,y,g,v,m,b,x,w,k,E,_,S,M,T,O=L.pointInPathPickerFactory(t.nodeName);if(O){r=$p(),i=(n=n)[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6],h=n[7],d=n[8],f=n[9],p=n[10],N=n[11],y=n[12],g=n[13],v=n[14],n=n[15];var P=(T=(m=i*u-o*l)*(P=p*n-N*v)-(b=i*c-a*l)*(M=f*n-N*g)+(A=i*h-s*l)*(S=f*v-p*g)+(x=o*c-a*u)*(_=d*n-N*y)-(C=o*h-s*u)*(E=d*v-p*y)+(w=a*h-s*c)*(k=d*g-f*y))?(r[0]=(u*P-c*M+h*S)*(T=1/T),r[1]=(a*M-o*P-s*S)*T,r[2]=(g*w-v*C+n*x)*T,r[3]=(p*C-f*w-N*x)*T,r[4]=(c*_-l*P-h*E)*T,r[5]=(i*P-a*_+s*E)*T,r[6]=(v*A-y*w-n*b)*T,r[7]=(d*w-p*A+N*b)*T,r[8]=(l*M-u*_+h*k)*T,r[9]=(o*_-i*M-s*k)*T,r[10]=(y*C-g*A+n*m)*T,r[11]=(f*A-d*C-N*m)*T,r[12]=(u*E-l*S-c*k)*T,r[13]=(i*S-o*E+a*k)*T,r[14]=(g*b-y*x-v*m)*T,r[15]=(d*x-f*b+p*m)*T,r):null,A=(w=Jp(),h=Qp(e[0],e[1],0),_=P,M=h[0],s=h[1],h=h[2],n=_[3]*M+_[7]*s+_[11]*h+_[15],w[0]=(_[0]*M+_[4]*s+_[8]*h+_[12])/(n=n||1),w[1]=(_[1]*M+_[5]*s+_[9]*h+_[13])/n,w[2]=(_[2]*M+_[6]*s+_[10]*h+_[14])/n,w),C=t.getGeometryBounds().halfExtents,N=t.parsedStyle.anchor;if(A[0]+=(N&&N[0].value||0)*C[0]*2,A[1]+=(N&&N[1].value||0)*C[1]*2,O(t,new Cc(A[0],A[1]),L.isPointInPath))return!0}return!1},this.isPointInPath=function(t,e){var n=L.offscreenCanvas.getOrCreateContext(L.canvasConfig.offscreenCanvas),r=(void 0===L.pathGeneratorFactoryCache[t.nodeName]&&(L.pathGeneratorFactoryCache[t.nodeName]=L.pathGeneratorFactory(t.nodeName)),L.pathGeneratorFactoryCache[t.nodeName]);return r&&(n.beginPath(),r(n,t.parsedStyle),n.closePath()),n.isPointInPath(e.x,e.y)}}var e=t.prototype;return e.apply=function(t){var R=this;t.hooks.pick.tapPromise(Zp.tag,function(){s=Yp().mark(function t(E){var _,S,M,T,O,P,A,C,N,L,I;return Yp().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:_=E.topmost,O=E.position,S=O.x,O=O.y,S=Qp(S,O,0),O=R.rBush.search({minX:S[0],minY:S[1],maxX:S[0],maxY:S[1]}),M=O.map(function(t){return t.id}),T=[],O.forEach(function(t){t=t.id,t=R.displayObjectPool.getByEntity(t);!t.isVisible()||t.isCulled()||!t.isInteractive()||t.parentNode&&-1===M.indexOf(t.parentNode.entity)||T.push(t)}),T.sort(function(t,e){return e.sortable.renderOrder-t.sortable.renderOrder}),O=[],P=0,A=T;case 9:if(!(P<A.length)){t.next=37;break}if(C=A[P],N=C.getWorldTransform(),!R.isHit(C,S,N)){t.next=34;break}if(!(L=R.findClosestClipPath(C))){t.next=28;break}if(I=L.style.clipPath,e=$p(),n=L===C?N:L.getWorldTransform(),r=I.getLocalTransform(),k=w=x=b=m=v=g=y=p=f=d=h=c=u=l=s=a=o=i=void 0,i=n[0],o=n[1],a=n[2],s=n[3],l=n[4],u=n[5],c=n[6],h=n[7],d=n[8],f=n[9],p=n[10],y=n[11],g=n[12],v=n[13],m=n[14],n=n[15],b=r[0],x=r[1],w=r[2],k=r[3],e[0]=b*i+x*l+w*d+k*g,e[1]=b*o+x*u+w*f+k*v,e[2]=b*a+x*c+w*p+k*m,e[3]=b*s+x*h+w*y+k*n,b=r[4],x=r[5],w=r[6],k=r[7],e[4]=b*i+x*l+w*d+k*g,e[5]=b*o+x*u+w*f+k*v,e[6]=b*a+x*c+w*p+k*m,e[7]=b*s+x*h+w*y+k*n,b=r[8],x=r[9],w=r[10],k=r[11],e[8]=b*i+x*l+w*d+k*g,e[9]=b*o+x*u+w*f+k*v,e[10]=b*a+x*c+w*p+k*m,e[11]=b*s+x*h+w*y+k*n,b=r[12],x=r[13],w=r[14],k=r[15],e[12]=b*i+x*l+w*d+k*g,e[13]=b*o+x*u+w*f+k*v,e[14]=b*a+x*c+w*p+k*m,e[15]=b*s+x*h+w*y+k*n,N=e,!R.isHit(I,S,N)){t.next=26;break}if(_)return E.picked=[C],t.abrupt("return",E);t.next=25;break;case 25:O.push(C);case 26:t.next=34;break;case 28:if(_)return E.picked=[C],t.abrupt("return",E);t.next=33;break;case 33:O.push(C);case 34:P++,t.next=9;break;case 37:return E.picked=O,t.abrupt("return",E);case 39:case"end":return t.stop()}var e,n,r,i,o,a,s,l,u,c,h,d,f,p,y,g,v,m,b,x,w,k},t)});var s,e=function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){qp(r,e,n,i,o,"next",t)}function o(t){qp(r,e,n,i,o,"throw",t)}i(void 0)})};return function(t){return e.apply(this,arguments)}}())},e.findClosestClipPath=function(t){var e,n=t;do{if(null==(e=n.style)?void 0:e.clipPath)return n}while(null!==(n=n.parentElement));return null},t}()).tag="CanvasPicker",Zp=J);function ny(t,e,n,r){t-=n,n=e-r;return Math.sqrt(t*t+n*n)}function ry(t,e){return Math.abs(t-e)<.001}function iy(t,e){var n=Math.min.apply(Math,t),r=Math.min.apply(Math,e);return{x:n,y:r,width:Math.max.apply(Math,t)-n,height:Math.max.apply(Math,e)-r}}t([p(Ih),e("design:type",Ih)],ey.prototype,"displayObjectPool",void 0),t([p(ou),e("design:type",Object)],ey.prototype,"canvasConfig",void 0),t([p(Hd),e("design:type",Hd)],ey.prototype,"offscreenCanvas",void 0),t([p(Ah),e("design:type",Qr)],ey.prototype,"rBush",void 0),t([p(Rp),e("design:type",Function)],ey.prototype,"pathGeneratorFactory",void 0),t([p(ty),e("design:type",Function)],ey.prototype,"pointInPathPickerFactory",void 0);var ey=Zp=t([f({contrib:zd})],ey),oy={box:function(t,e,n,r){return iy([t,n],[e,r])},length:ny,pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var a=(n-t)*(i-t)+(r-e)*(o-e);return a<0?ny(t,e,i,o):(n-t)*(n-t)+(r-e)*(r-e)<a?ny(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){n=[n-t,r-e];if((r=n)[0]===(a=[0,0])[0]&&r[1]===a[1])return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var a,s,r=[-n[1],n[0]],l=(s=(n=a=r)[0],l=n[1],0<(s=s*s+l*l)&&(s=1/Math.sqrt(s)),a[0]=n[0]*s,a[1]=n[1]*s,[i-t,o-e]);return Math.abs(l[0]*r[0]+l[1]*r[1])},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function ay(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function sy(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function ly(t,e,n,r){var i,o,r=-3*t+9*e-9*n+3*r,n=6*t-12*e+6*n,e=3*e-3*t,t=[];return ry(r,0)?ry(n,0)||0<=(i=-e/n)&&i<=1&&t.push(i):ry(e=n*n-4*r*e,0)?t.push(-n/(2*r)):0<e&&(o=(-n-(e=Math.sqrt(e)))/(2*r),0<=(i=(-n+e)/(2*r))&&i<=1&&t.push(i),0<=o&&o<=1&&t.push(o)),t}function uy(t,e,n,r,i,o,a,s,l){var u=ay(t,n,i,a,l),c=ay(e,r,o,s,l),h=oy.pointAt(t,e,n,r,l),n=oy.pointAt(n,r,i,o,l),r=oy.pointAt(i,o,a,s,l),i=oy.pointAt(h.x,h.y,n.x,n.y,l),o=oy.pointAt(n.x,n.y,r.x,r.y,l);return[[t,e,h.x,h.y,i.x,i.y,u,c],[u,c,o.x,o.y,r.x,r.y,a,s]]}function cy(t,e,n,r,i,o,a,s,l){if(0===l){for(var u=[t,n,i,a],c=[e,r,o,s],h=0,d=u.length,f=0;f<d;f++)h+=ny(u[f],c[f],u[(f+1)%d],c[(f+1)%d]);return h/2}t=uy(t,e,n,r,i,o,a,s,.5),e=[].concat(t[0],[l-1]),n=[].concat(t[1],[l-1]);return cy.apply(void 0,e)+cy.apply(void 0,n)}var hy={extrema:ly,box:function(t,e,n,r,i,o,a,s){for(var l=[t,a],u=[e,s],c=ly(t,n,i,a),h=ly(e,r,o,s),d=0;d<c.length;d++)l.push(ay(t,n,i,a,c[d]));for(var f=0;f<h.length;f++)u.push(ay(e,r,o,s,h[f]));return iy(l,u)},length:function(t,e,n,r,i,o,a,s){return cy(t,e,n,r,i,o,a,s,3)},nearestPoint:function(t,e,n,r,i,o,a,s,l,u,c){for(var h=[t,n,i,a],d=[e,r,o,s],t=l,f=ay,n=c,p=-1,y=1/0,g=[t,u],v=20,m=1/(v=n&&200<n?n/10:v),b=m/10,x=0;x<=v;x++){var w=x*m,k=[f.apply(void 0,h.concat([w])),f.apply(void 0,d.concat([w]))],k=ny(g[0],g[1],k[0],k[1]);k<y&&(p=w,y=k)}if(0===p)return{x:h[0],y:d[0]};if(1===p)return{x:h[(t=h.length)-1],y:d[t-1]};for(var y=1/0,E=0;E<32&&!(b<1e-4);E++){var _=p-b,S=p+b,M=[f.apply(void 0,h.concat([_])),f.apply(void 0,d.concat([_]))],M=ny(g[0],g[1],M[0],M[1]);0<=_&&M<y?(p=_,y=M):(_=[f.apply(void 0,h.concat([S])),f.apply(void 0,d.concat([S]))],M=ny(g[0],g[1],_[0],_[1]),S<=1&&M<y?(p=S,y=M):b*=.5)}return{x:f.apply(void 0,h.concat([p])),y:f.apply(void 0,d.concat([p]))}},pointDistance:function(t,e,n,r,i,o,a,s,l,u,c){t=this.nearestPoint(t,e,n,r,i,o,a,s,l,u,c);return ny(t.x,t.y,l,u)},interpolationAt:ay,pointAt:function(t,e,n,r,i,o,a,s,l){return{x:ay(t,n,i,a,l),y:ay(e,r,o,s,l)}},divide:uy,tangentAngle:function(t,e,n,r,i,o,a,s,l){t=sy(t,n,i,a,l),n=sy(e,r,o,s,l);return(Math.atan2(n,t)+2*Math.PI)%(2*Math.PI)}};function dy(t,e,n,r){t-=n,n=e-r;return Math.sqrt(t*t+n*n)}function fy(t,e,n,r,i,o){return t<=i&&i<=t+n&&e<=o&&o<=e+r}function py(t,e,n,r,i,o,a,s){var l=(Math.atan2(s-e,a-t)+2*Math.PI)%(2*Math.PI);if(l<r||i<l)return!1;r={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return dy(r.x,r.y,a,s)<=o/2}function yy(t,e,n,r,i,o,a){var s=Math.min(t,n),l=Math.max(t,n),u=Math.min(e,r),c=Math.max(e,r),h=i/2;return s-h<=o&&o<=l+h&&u-h<=a&&a<=c+h&&oy.pointToLine(t,e,n,r,o,a)<=i/2}function gy(t,e,n,r,i){var o=t.length;if(!(o<2)){for(var a=0;a<o-1;a++)if(yy(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0;if(i){var i=t[0],s=t[o-1];if(yy(i[0],i[1],s[0],s[1],e,n,r))return!0}}return!1}var vy=1e-6;function my(t){return Math.abs(t)<vy?0:t<0?-1:1}function by(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o,a,s,l=0;l<i;l++){var u=t[l],c=t[(l+1)%i];if(a=c,((s=[e,n])[0]-(o=u)[0])*(a[1]-o[1])==(a[0]-o[0])*(s[1]-o[1])&&Math.min(o[0],a[0])<=s[0]&&s[0]<=Math.max(o[0],a[0])&&Math.min(o[1],a[1])<=s[1]&&s[1]<=Math.max(o[1],a[1]))return!0;0<my(u[1]-n)!=0<my(c[1]-n)&&my(e-(n-u[1])*(u[0]-c[0])/(u[1]-c[1])-u[0])<0&&(r=!r)}return r}function xy(t,e,n){for(var r=!1,i=0;i<t.length&&!(r=by(t[i],e,n));i++);return r}function wy(t,e){var t=t.parsedStyle,n=t.r,r=t.fill,i=t.stroke,o=t.lineWidth,a=t.increasedLineWidthForHitTesting,t=t.clipPathTargets,n=n.value,o=(((null==o?void 0:o.value)||0)+((null==a?void 0:a.value)||0))/2,a=dy(n,n,e.x,e.y),e=!(null==t||!t.length),t=r&&!r.isNone,r=i&&!i.isNone;return t&&r||e?a<=n+o:t?a<=n:!!r&&(n-o<=a&&a<=n+o)}function ky(t,e,n,r){return t/(n*n)+e/(r*r)}function Ey(t,e){var n=e.x,e=e.y,t=t.parsedStyle,r=t.rx,i=t.ry,o=t.fill,a=t.stroke,s=t.lineWidth,l=t.increasedLineWidthForHitTesting,t=t.clipPathTargets,t=!(null==t||!t.length),o=o&&!o.isNone,a=a&&!a.isNone,r=r.value,i=i.value,s=(((null==s?void 0:s.value)||0)+((null==l?void 0:l.value)||0))/2,l=(n-r)*(n-r),n=(e-i)*(e-i);return o&&a||t?ky(l,n,r+s,i+s)<=1:o?ky(l,n,r,i)<=1:!!a&&(1<=ky(l,n,r-s,i-s)&&ky(l,n,r+s,i+s)<=1)}function _y(t,e){var t=t.parsedStyle,n=t.x1,r=t.y1,i=t.x2,o=t.y2,a=t.lineWidth,s=t.increasedLineWidthForHitTesting,l=t.defX,t=t.defY;return yy(n.value,r.value,i.value,o.value,((null==a?void 0:a.value)||0)+((null==s?void 0:s.value)||0),e.x+(void 0===l?0:l),e.y+(void 0===t?0:t))}function Sy(t,e,n){var r=t.parsedStyle,i=r.lineWidth,o=r.increasedLineWidthForHitTesting,a=r.stroke,s=r.fill,l=r.defX,l=void 0===l?0:l,u=r.defY,u=void 0===u?0:u,c=r.clipPathTargets,r=r.path,s=s&&!s.isNone,a=a&&!a.isNone,h=r.segments,d=r.hasArc,f=r.polylines,p=r.polygons,r=r.totalLength,c=!(null==c||!c.length),y=!1;return s||c?d?n(t,e):xy(p,e.x+l,e.y+u)||xy(f,e.x+l,e.y+u):a||c?function(t,e,n,r,i){for(var o=!1,a=0;a<t.length;a++){var s=t[a],l=s.currentPoint,u=s.params,c=s.prePoint;switch(s.command){case"L":case"Z":o=yy(c[0],c[1],l[0],l[1],e,n,r);break;case"C":o=hy.pointDistance(c[0],c[1],u[1],u[2],u[3],u[4],u[5],u[6],n,r,i)<=e/2}if(o)break}return o}(h,((null==i?void 0:i.value)||0)+((null==o?void 0:o.value)||0),e.x+l,e.y+u,r):y}function My(t,e){var t=t.parsedStyle,n=t.stroke,r=t.fill,i=t.lineWidth,o=t.increasedLineWidthForHitTesting,a=t.points,s=t.defX,s=void 0===s?0:s,l=t.defY,l=void 0===l?0:l,t=t.clipPathTargets,t=!(null==t||!t.length),r=r&&!r.isNone,u=!1;return u=(u=n&&!n.isNone||t?gy(a.points,((null==i?void 0:i.value)||0)+((null==o?void 0:o.value)||0),e.x+s,e.y+l,!0):u)||!r&&!t?u:by(a.points,e.x+s,e.y+l)}function Ty(t,e){var t=t.parsedStyle,n=t.stroke,r=t.lineWidth,i=t.increasedLineWidthForHitTesting,o=t.points,a=t.defX,s=t.defY,t=t.clipPathTargets,t=!(null==t||!t.length);return!(!(n&&!n.isNone||t)||!r)&&gy(o.points,((null==r?void 0:r.value)||0)+((null==i?void 0:i.value)||0),e.x+(void 0===a?0:a),e.y+(void 0===s?0:s),!1)}function Oy(t,e,n){var r=t.parsedStyle,i=r.radius,o=r.fill,a=r.stroke,s=r.lineWidth,l=r.increasedLineWidthForHitTesting,u=r.width,c=r.height,r=r.clipPathTargets,r=!(null==r||!r.length),o=o&&!o.isNone,a=a&&!a.isNone,h=i&&i.some(function(t){return 0!==t.value}),d=u.unit,u=u.value,f=c.unit,c=c.value,p=0,y=0,d=(d!==O.kNumber&&d!==O.kPixels||(p=u),f!==O.kNumber&&f!==O.kPixels||(y=c),((null==s?void 0:s.value)||0)+((null==l?void 0:l.value)||0));if(h)return u=!1,(a||r)&&(c=f=0,s=p,l=y,h=i.map(function(t){return zs(t.value,0,Math.min(Math.abs(p)/2,Math.abs(y)/2))}),i=d,g=e.x,v=e.y,b=h[0],x=h[1],m=h[2],h=h[3],u=yy(f+b,c,f+s-x,c,i,g,v)||yy(f+s,c+x,f+s,c+l-m,i,g,v)||yy(f+s-m,c+l,f+h,c+l,i,g,v)||yy(f,c+l-h,f,c+b,i,g,v)||py(f+s-x,c+x,x,1.5*Math.PI,2*Math.PI,i,g,v)||py(f+s-m,c+l-m,m,0,.5*Math.PI,i,g,v)||py(f+h,c+l-h,h,.5*Math.PI,Math.PI,i,g,v)||py(f+b,c+b,b,Math.PI,1.5*Math.PI,i,g,v)),u||!o&&!r?u:n(t,e);var g,v,m,b,x=d/2;return o&&a||r?fy(0-x,0-x,p+x,y+x,e.x,e.y):o?fy(0,0,p,y,e.x,e.y):!!a&&(m=s=0,l=p,h=y,f=d,c=e.x,b=e.y,fy(s-(i=f/2),m-i,l,f,c,b)||fy(s+l-i,m-i,f,h,c,b)||fy(s+i,m+h-i,l,f,c,b)||fy(s-i,m+i,f,h,c,b))}var Py=Hr(function(t){t({token:ty,useFactory:function(t){return function(t){return t===M.CIRCLE?wy:t===M.ELLIPSE?Ey:t===M.RECT?Oy:t===M.LINE?_y:t===M.POLYLINE?Ty:t===M.POLYGON?My:t===M.PATH?Sy:t===M.IMAGE||t===M.TEXT?function(){return!0}:null}}}),t(ey)}),Ay=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="canvas-picker",t}t=i,(n=e).prototype=Object.create(t.prototype),Xp(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(Py,!0)},n.destroy=function(){this.container.unload(Py)},e}(uf);function Cy(){Cy=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function f(){}var e={},p=(o(e,r,function(){return this}),Object.getPrototypeOf),p=p&&p(p(w([]))),y=(p&&p!==t&&l.call(p,r)&&(e=p),f.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function v(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=f),o(f,"constructor",d),d.displayName=o(f,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(v.prototype),o(v.prototype,n,function(){return this}),a.AsyncIterator=v,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new v(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function Ny(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Ly(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){Ny(r,e,n,i,o,"next",t)}function o(t){Ny(r,e,n,i,o,"throw",t)}i(void 0)})}}function Iy(t,e){return(Iy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var Ry,Dy=function(){function t(){this.imageCache={},this.gradientCache={},this.patternCache={},this.canvasConfig=void 0}var e=t.prototype;return e.getImageSync=function(t,e){return this.imageCache[t]?e&&e():this.getOrCreateImage(t).then(function(){e&&e()}),this.imageCache[t]},e.getOrCreateImage=function(r){var i=this;if(this.imageCache[r])return Promise.resolve(this.imageCache[r]);var o=this.canvasConfig.createImage;return new Promise(function(t,e){var n;o?n=o(r):As&&(n=new window.Image),n&&(n.onload=function(){t(n)},n.onerror=function(t){e(t)},n.crossOrigin="Anonymous",n.src=r,i.imageCache[r]=n)})},e.getOrCreatePatternSync=function(t,e,n){var r=this.generatePatternKey(t);if(r&&this.patternCache[r])return this.patternCache[r];var i=t.image,t=t.repetition,n=Jl(i)?this.getImageSync(i,n):i,i=n&&e.createPattern(n,t);return r&&i&&(this.patternCache[r]=i),i},e.getOrCreateGradient=function(t,e){var r,n,i,o,a,s=this.generateGradientKey(t),l=t.type,u=t.steps,c=t.width,h=t.height,d=t.angle,f=t.cx,t=t.cy;return this.gradientCache[s]||(r=null,l===sc.LinearGradient?(n=c,i=h,d=(d=d)*Math.PI/180,o=0+n/2,a=0+i/2,n=Math.abs(n*Math.cos(d))+Math.abs(i*Math.sin(d)),i={x1:o-Math.cos(d)*n/2,y1:a-Math.sin(d)*n/2,x2:o+Math.cos(d)*n/2,y2:a+Math.sin(d)*n/2},r=e.createLinearGradient(i.x1,i.y1,i.x2,i.y2)):l===sc.RadialGradient&&(o={x:f*c,y:t*h,r:Math.sqrt(c*c+h*h)/2},r=e.createRadialGradient(a=o.x,d=o.y,0,a,d,o.r)),r&&(u.forEach(function(t){var e,n=t[0],t=t[1];null!=(e=r)&&e.addColorStop(n,t)}),this.gradientCache[s]=r)),this.gradientCache[s]},e.generateGradientKey=function(t){var e=t.type,n=t.width,r=t.height,i=t.steps;return"gradient-"+e+"-"+(t.angle||0)+"-"+(t.cx||0)+"-"+(t.cy||0)+"-"+n+"-"+r+"-"+i.map(function(t){return t.join("")}).join("-")},e.generatePatternKey=function(t){var e=t.image,t=t.repetition;if(Jl(e))return"pattern-"+e+"-"+t},t}(),jy=(t([p(ou),e("design:type",Object)],Dy.prototype,"canvasConfig",void 0),Dy=t([f()],Dy),(h=function(){function t(){this.imagePool=void 0,this.renderingContext=void 0}return t.prototype.apply=function(r){function e(t){var e=t.target,t=e.nodeName,n=e.attributes;t===M.IMAGE&&Jl(t=n.img)&&i.imagePool.getImageSync(t,function(){e.renderable.dirty=!0,r.dirtify()})}function n(t){var e=t.target,n=t.attrName,t=t.newValue;e.nodeName===M.IMAGE&&"img"===n&&Jl(t)&&i.imagePool.getOrCreateImage(t).then(function(){e.renderable.dirty=!0,r.dirtify()})}var i=this;r.hooks.init.tapPromise(Ry.tag,Ly(Cy().mark(function t(){return Cy().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i.renderingContext.root.addEventListener(m.MOUNTED,e),i.renderingContext.root.addEventListener(m.ATTR_MODIFIED,n);case 2:case"end":return t.stop()}},t)}))),r.hooks.destroy.tap(Ry.tag,function(){i.renderingContext.root.removeEventListener(m.MOUNTED,e),i.renderingContext.root.removeEventListener(m.ATTR_MODIFIED,n)})},t}()).tag="LoadImage",Ry=h),By=(t([p(Dy),e("design:type",Dy)],jy.prototype,"imagePool",void 0),t([p(Id),e("design:type",Object)],jy.prototype,"renderingContext",void 0),jy=Ry=t([f({contrib:zd})],jy),Hr(function(t){t(Dy),t(jy)})),Fy=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="image-loader",t}t=i,(n=e).prototype=Object.create(t.prototype),Iy(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(By,!0)},n.destroy=function(){this.container.unload(By)},e}(uf);function zy(){zy=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function f(){}var e={},p=(o(e,r,function(){return this}),Object.getPrototypeOf),p=p&&p(p(w([]))),y=(p&&p!==t&&l.call(p,r)&&(e=p),f.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function v(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=f),o(f,"constructor",d),d.displayName=o(f,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(v.prototype),o(v.prototype,n,function(){return this}),a.AsyncIterator=v,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new v(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function Vy(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function Gy(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){Vy(r,e,n,i,o,"next",t)}function o(t){Vy(r,e,n,i,o,"throw",t)}i(void 0)})}}function Hy(){return(Hy=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function Wy(t,e){t.prototype=Object.create(e.prototype),Uy(t.prototype.constructor=t,e)}function Uy(t,e){return(Uy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var Yy="undefined"!=typeof Float32Array?Float32Array:Array;function qy(){var t=new Yy(16);return Yy!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[11]=0,t[12]=0,t[13]=0,t[14]=0),t[0]=1,t[5]=1,t[10]=1,t[15]=1,t}function Xy(t,e){t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15]}function Zy(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],y=e[12],g=e[13],v=e[14],e=e[15],m=n[0],b=n[1],x=n[2],w=n[3];t[0]=m*r+b*s+x*h+w*y,t[1]=m*i+b*l+x*d+w*g,t[2]=m*o+b*u+x*f+w*v,t[3]=m*a+b*c+x*p+w*e,m=n[4],b=n[5],x=n[6],w=n[7],t[4]=m*r+b*s+x*h+w*y,t[5]=m*i+b*l+x*d+w*g,t[6]=m*o+b*u+x*f+w*v,t[7]=m*a+b*c+x*p+w*e,m=n[8],b=n[9],x=n[10],w=n[11],t[8]=m*r+b*s+x*h+w*y,t[9]=m*i+b*l+x*d+w*g,t[10]=m*o+b*u+x*f+w*v,t[11]=m*a+b*c+x*p+w*e,m=n[12],b=n[13],x=n[14],w=n[15],t[12]=m*r+b*s+x*h+w*y,t[13]=m*i+b*l+x*d+w*g,t[14]=m*o+b*u+x*f+w*v,t[15]=m*a+b*c+x*p+w*e}function Ky(t,e,n){var r,i,o,a,s,l,u,c,h,d,f,p,y=n[0],g=n[1],n=n[2];e===t?(t[12]=e[0]*y+e[4]*g+e[8]*n+e[12],t[13]=e[1]*y+e[5]*g+e[9]*n+e[13],t[14]=e[2]*y+e[6]*g+e[10]*n+e[14],t[15]=e[3]*y+e[7]*g+e[11]*n+e[15]):(r=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],u=e[6],c=e[7],h=e[8],d=e[9],f=e[10],p=e[11],t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t[6]=u,t[7]=c,t[8]=h,t[9]=d,t[10]=f,t[11]=p,t[12]=r*y+s*g+h*n+e[12],t[13]=i*y+l*g+d*n+e[13],t[14]=o*y+u*g+f*n+e[14],t[15]=a*y+c*g+p*n+e[15])}function $y(){var t=new Yy(3);return Yy!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function Jy(t,e,n){var r=new Yy(3);return r[0]=t,r[1]=e,r[2]=n,r}function Qy(t,e,n){var r=e[0],i=e[1],e=e[2],o=n[3]*r+n[7]*i+n[11]*e+n[15];return t[0]=(n[0]*r+n[4]*i+n[8]*e+n[12])/(o=o||1),t[1]=(n[1]*r+n[5]*i+n[9]*e+n[13])/o,t[2]=(n[2]*r+n[6]*i+n[10]*e+n[14])/o,t}Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)}),$y();var t0=d.defineToken("StyleRendererFactory"),e0=d.defineToken("CircleRenderer",{multiple:!1}),n0=d.defineToken("EllipseRenderer",{multiple:!1}),r0=d.defineToken("RectRenderer",{multiple:!1}),i0=d.defineToken("LineRenderer",{multiple:!1}),o0=d.defineToken("PolylineRenderer",{multiple:!1}),a0=d.defineToken("PolygonRenderer",{multiple:!1}),s0=d.defineToken("PathRenderer",{multiple:!1}),l0=d.defineToken("TextRenderer",{multiple:!1}),u0=d.defineToken("ImageRenderer",{multiple:!1}),Z=function(){function t(){this.imagePool=void 0}var e=t.prototype;return e.render=function(t,e,n,r){var i=e.fill,o=e.opacity,a=e.fillOpacity,s=e.stroke,l=e.strokeOpacity,u=e.lineWidth,c=e.lineCap,h=e.lineJoin,d=e.shadowType,f=e.shadowColor,p=e.shadowBlur,y=e.filter,e=e.miterLimit,g=!T(i)&&!i.isNone,v=!T(s)&&!s.isNone&&u&&0<u.value,m=0===i.alpha,y=!T(y),f=!T(f)&&0<(null==p?void 0:p.value),p=n.nodeName,d="inner"===(null==d?void 0:d.value),p=v&&f&&(p===M.PATH||p===M.LINE||p===M.POLYLINE||m||d);g&&(t.globalAlpha=o.value*a.value,p||c0(n,t,f),this.fill(t,n,i,r),p||this.clearShadowAndFilter(t,y,f)),v&&(t.globalAlpha=o.value*l.value,t.lineWidth=u.value,T(e)||(t.miterLimit=e.value),T(c)||(t.lineCap=c.value),T(h)||(t.lineJoin=h.value),p&&(d&&(t.globalCompositeOperation="source-atop"),c0(n,t,!0),d&&(this.stroke(t,n,s,r),t.globalCompositeOperation="source-over",this.clearShadowAndFilter(t,y,!0))),this.stroke(t,n,s,r))},e.clearShadowAndFilter=function(t,e,n){n&&(t.shadowColor="transparent",t.shadowBlur=0),e&&!T(n=t.filter)&&-1<n.indexOf("drop-shadow")&&(t.filter=n.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")},e.fill=function(e,n,t,r){var i=this;Array.isArray(t)?t.forEach(function(t){e.fillStyle=i.getColor(t,n,e),e.fill()}):(_c(t)&&(e.fillStyle=this.getPattern(t,n,e,r)),e.fill())},e.stroke=function(e,n,t,r){var i=this;Array.isArray(t)?t.forEach(function(t){e.strokeStyle=i.getColor(t,n,e),e.stroke()}):(_c(t)&&(e.strokeStyle=this.getPattern(t,n,e,r)),e.stroke())},e.getPattern=function(t,e,n,r){return this.imagePool.getOrCreatePatternSync(t,n,function(){e.renderable.dirty=!0,r.dirtify()})},e.getColor=function(t,e,n){var r;return t.type!==sc.LinearGradient&&t.type!==sc.RadialGradient||(r=(e=e.getGeometryBounds())&&2*e.halfExtents[0]||1,e=e&&2*e.halfExtents[1]||1,r=this.imagePool.getOrCreateGradient(Hy({type:t.type},t.value,{width:r,height:e}),n)),r},t}();function c0(t,e,n){var r=t.parsedStyle,i=r.filter,o=r.shadowColor,a=r.shadowBlur,s=r.shadowOffsetX,r=r.shadowOffsetY;T(i)||(e.filter=t.style.filter),n&&(e.shadowColor=o.toString(),e.shadowBlur=a&&a.value||0,e.shadowOffsetX=s&&s.value||0,e.shadowOffsetY=r&&r.value||0)}t([p(Dy),e("design:type",Dy)],Z.prototype,"imagePool",void 0);var h0,d0,Z=t([f()],Z),f0=function(){function t(){this.imagePool=void 0}return t.prototype.render=function(t,e,n){var r=e.width,i=e.height,o=e.img,a=e.shadowColor,e=e.shadowBlur,r=r.value,i=i.value,o=Jl(o)?this.imagePool.getImageSync(o):(r=r||o.width,i=i||o.height,o);if(o){c0(n,t,!T(a)&&0<(null==e?void 0:e.value));try{t.drawImage(o,0,0,r,i)}catch(t){}}},t}(),p0=(t([p(Dy),e("design:type",Dy)],f0.prototype,"imagePool",void 0),f0=t([f({token:u0})],f0),function(){function t(){}var e=t.prototype;return e.render=function(t,e,n){var r=e.lineWidth,i=e.textAlign,o=e.textBaseline,a=e.lineJoin,s=e.miterLimit,l=e.letterSpacing,u=e.stroke,c=e.fill,h=e.fillOpacity,d=e.strokeOpacity,f=e.opacity,p=e.metrics,y=e.dx,g=e.dy,v=e.shadowColor,e=e.shadowBlur,m=p.font,b=p.lines,x=p.height,w=p.lineHeight,k=p.lineMetrics,E=(t.font=m,t.lineWidth=r.value,t.textAlign=i.value,t.textBaseline=o.value,t.lineJoin=a.value,T(s)||(t.miterLimit=s.value),0),_=("middle"===o.value?E=-x/2-w/2:"bottom"===o.value||"alphabetic"===o.value||"ideographic"===o.value?E=-x:"top"!==o.value&&"hanging"!==o.value||(E=-w),0);y&&y.unit===O.kPixels&&(_+=y.value),g&&g.unit===O.kPixels&&(E+=g.value),c0(n,t,!T(v)&&0<(null==e?void 0:e.value));for(var S=0;S<b.length;S++){var M=r.value/2+_;E+=w,!T(u)&&!u.isNone&&r&&r.value&&this.drawLetterSpacing(t,b[S],k[S],i.value,M,E,l.value,h.value,d.value,f.value,!0),T(c)||this.drawLetterSpacing(t,b[S],k[S],i.value,M,E,l.value,h.value,d.value,f.value)}},e.drawLetterSpacing=function(t,e,n,r,i,o,a,s,l,u,c){if(void 0===c&&(c=!1),0===a)c?this.strokeText(t,e,i,o,l):this.fillText(t,e,i,o,s,u);else{for(var h=t.textAlign,d=(t.textAlign="left",i),f=("center"===r?d=i-n.width/2:"right"!==r&&"end"!==r||(d=i-n.width),Array.from(e)),p=t.measureText(e).width,y=0;y<f.length;++y){var g=f[y];c?this.strokeText(t,g,d,o,l):this.fillText(t,g,d,o,s,u),d+=p-(g=t.measureText(e.substring(y+1)).width)+a,p=g}t.textAlign=h}},e.fillText=function(t,e,n,r,i,o){var a,s=!T(i)&&1!==i;s&&(a=t.globalAlpha,t.globalAlpha=i*o),t.fillText(e,n,r),s&&(t.globalAlpha=a)},e.strokeText=function(t,e,n,r,i){var o,a=!T(i)&&1!==i;a&&(o=t.globalAlpha,t.globalAlpha=i),t.strokeText(e,n,r),a&&(t.globalAlpha=o)},t}()),p0=t([f({token:l0})],p0),y0=function(t){function e(){return t.apply(this,arguments)||this}return Wy(e,t),e}(Z),y0=t([f({token:r0})],y0),g0=function(t){function e(){return t.apply(this,arguments)||this}return Wy(e,t),e}(Z),g0=t([f({token:e0})],g0),v0=function(t){function e(){return t.apply(this,arguments)||this}return Wy(e,t),e}(Z),v0=t([f({token:n0})],v0),m0=function(t){function e(){return t.apply(this,arguments)||this}return Wy(e,t),e}(Z),m0=t([f({token:i0})],m0),b0=function(t){function e(){return t.apply(this,arguments)||this}return Wy(e,t),e}(Z),b0=t([f({token:o0})],b0),x0=function(t){function e(){return t.apply(this,arguments)||this}return Wy(e,t),e}(Z),x0=t([f({token:a0})],x0),w0=function(t){function e(){return t.apply(this,arguments)||this}return Wy(e,t),e}(Z),w0=t([f({token:s0})],w0),k0=d.defineToken("CanvasRendererPluginOptions"),E0=((at=function(){function t(){this.canvasConfig=void 0,this.camera=void 0,this.contextService=void 0,this.renderingContext=void 0,this.pathGeneratorFactory=void 0,this.pathGeneratorFactoryCache={},this.styleRendererFactory=void 0,this.styleRendererFactoryCache={},this.displayObjectPool=void 0,this.canvasRendererPluginOptions=void 0,this.rBush=void 0,this.removedRBushNodeAABBs=[],this.renderQueue=[],this.restoreStack=[],this.clearFullScreen=!1,this.vpMatrix=qy(),this.dprMatrix=qy(),this.tmpMat4=qy(),this.tmpVec3=$y()}var e=t.prototype;return e.apply=function(l){function s(t){(t=t.target.rBushNode).aabb&&h.removedRBushNodeAABBs.push(t.aabb)}function u(t){(t=t.target.rBushNode).aabb&&h.removedRBushNodeAABBs.push(t.aabb)}function c(t){t.isVisible()&&!t.isCulled()&&(h.renderDisplayObject(t,l),h.saveDirtyAABB(t)),t.sortable.sorted&&t.sortable.sorted.length&&t.sortable.sorted.forEach(function(t){c(t)})}var h=this,d=this.renderingContext.root.ownerDocument.defaultView;l.hooks.init.tapPromise(h0.tag,Gy(zy().mark(function t(){var r,i,o,a;return zy().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:h.renderingContext.root.addEventListener(m.UNMOUNTED,s),h.renderingContext.root.addEventListener(m.CULLED,u),r=h.contextService.getDPR(),o=h.canvasConfig,i=o.width,o=o.height,a=h.contextService.getContext(),h.clearRect(a,0,0,i*r,o*r),e=h.dprMatrix,n=Jy(r,r,1),e[0]=n[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=n[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1;case 7:case"end":return t.stop()}var e,n},t)}))),l.hooks.destroy.tap(h0.tag,function(){h.renderingContext.root.removeEventListener(m.UNMOUNTED,s),h.renderingContext.root.removeEventListener(m.CULLED,u)}),l.hooks.beginFrame.tap(h0.tag,function(){var t=h.contextService.getContext(),e=h.contextService.getDPR(),n=h.canvasConfig,r=n.width,n=n.height,i=h.canvasRendererPluginOptions,o=i.dirtyObjectNumThreshold,i=i.dirtyObjectRatioThreshold,a=l.getStats(),s=a.total,a=a.rendered,s=a/s;h.clearFullScreen=l.disableDirtyRectangleRendering()||o<a&&i<s,t&&(t.resetTransform(),h.clearFullScreen&&h.clearRect(t,0,0,r*e,n*e))});l.hooks.endFrame.tap(h0.tag,function(){var t=h.contextService.getContext();if(Zy(h.vpMatrix,h.dprMatrix,h.camera.getOrthoMatrix()),h.clearFullScreen)c(h.renderingContext.root);else{var e=h.safeMergeAABB.apply(h,[h.mergeDirtyAABBs(h.renderQueue)].concat(h.removedRBushNodeAABBs.map(function(t){var e=t.minX,n=t.minY,r=t.maxX,t=t.maxY,i=new Oc;return i.setMinMax(Jy(e,n,0),Jy(r,t,0)),i})));if(h.removedRBushNodeAABBs=[],Oc.isEmpty(e))return void(h.renderQueue=[]);var n=h.convertAABB2Rect(e),r=n.x,i=n.y,o=n.width,a=n.height,s=Qy(h.tmpVec3,Jy(r,i,0),h.vpMatrix),r=Qy($y(),Jy(r+o,i+a,0),h.vpMatrix),o=Math.floor(s[0]),i=Math.floor(s[1]),a=Math.ceil(r[0]-s[0]),r=Math.ceil(r[1]-s[1]);t.save(),h.clearRect(t,o,i,a,r),t.beginPath(),t.rect(o,i,a,r),t.clip(),t.setTransform(h.vpMatrix[0],h.vpMatrix[1],h.vpMatrix[4],h.vpMatrix[5],h.vpMatrix[12],h.vpMatrix[13]),h.canvasConfig.renderer.getConfig().enableDirtyRectangleRenderingDebug&&d.dispatchEvent(new Th(pf.DIRTY_RECTANGLE,{dirtyRect:n})),h.searchDirtyObjects(e).sort(function(t,e){return t.sortable.renderOrder-e.sortable.renderOrder}).forEach(function(t){t&&t.isVisible()&&!t.isCulled()&&h.renderDisplayObject(t,l)}),t.restore(),h.renderQueue.forEach(function(t){h.saveDirtyAABB(t)}),h.renderQueue=[]}h.restoreStack.forEach(function(){t.restore()}),h.restoreStack=[]}),l.hooks.render.tap(h0.tag,function(t){h.clearFullScreen||h.renderQueue.push(t)})},e.clearRect=function(t,e,n,r,i){t.clearRect(e,n,r,i);var o=this.canvasConfig.background;o&&(t.fillStyle=o,t.fillRect(e,n,r,i))},e.renderDisplayObject=function(t,e){var n,r=this.contextService.getContext(),i=t.nodeName,o=this.restoreStack[this.restoreStack.length-1],o=(!o||t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_CONTAINS||(r.restore(),this.restoreStack.pop()),void 0===this.styleRendererFactoryCache[i]&&(this.styleRendererFactoryCache[i]=this.styleRendererFactory(i)),this.styleRendererFactoryCache[i]),i=(void 0===this.pathGeneratorFactoryCache[i]&&(this.pathGeneratorFactoryCache[i]=this.pathGeneratorFactory(i)),this.pathGeneratorFactoryCache[i]),a=t.parsedStyle.clipPath;a&&(this.applyWorldTransform(r,a,t.getWorldTransform()),void 0===this.pathGeneratorFactoryCache[a.nodeName]&&(this.pathGeneratorFactoryCache[a.nodeName]=this.pathGeneratorFactory(a.nodeName)),(n=this.pathGeneratorFactoryCache[a.nodeName])&&(r.save(),this.restoreStack.push(t),r.beginPath(),n(r,a.parsedStyle),r.closePath(),r.clip())),o&&(this.applyWorldTransform(r,t),r.save(),this.applyAttributesToContext(r,t)),i&&(r.beginPath(),i(r,t.parsedStyle),t.nodeName!==M.LINE&&t.nodeName!==M.PATH&&t.nodeName!==M.POLYLINE&&r.closePath()),o&&(o.render(r,t.parsedStyle,t,e),r.restore()),t.renderable.dirty=!1},e.convertAABB2Rect=function(t){var e=t.getMin(),t=t.getMax(),n=Math.floor(e[0]),e=Math.floor(e[1]);return{x:n,y:e,width:Math.ceil(t[0])-n,height:Math.ceil(t[1])-e}},e.mergeDirtyAABBs=function(t){var n=new Oc;return t.forEach(function(t){var e=t.getRenderBounds(),e=(n.add(e),t.renderable.dirtyRenderBounds);e&&n.add(e)}),n},e.searchDirtyObjects=function(t){var e=this,n=t.getMin(),r=n[0],n=n[1],t=t.getMax(),i=t[0],t=t[1];return this.rBush.search({minX:r,minY:n,maxX:i,maxY:t}).map(function(t){t=t.id;return e.displayObjectPool.getByEntity(t)})},e.saveDirtyAABB=function(t){var e=t.renderable,t=(e.dirtyRenderBounds||(e.dirtyRenderBounds=new Oc),t.getRenderBounds());t&&e.dirtyRenderBounds.update(t.center,t.halfExtents)},e.applyAttributesToContext=function(t,e){var n=e.parsedStyle,r=n.stroke,i=n.fill,o=n.opacity,a=n.lineDash,n=n.lineDashOffset;a&&Array.isArray(a)&&t.setLineDash(a.map(function(t){return t.value})),T(n)||(t.lineDashOffset=n.value),T(o)||(t.globalAlpha*=o.value),T(r)||Array.isArray(r)||r.isNone||(t.strokeStyle=e.attributes.stroke),T(i)||Array.isArray(i)||i.isNone||(t.fillStyle=e.attributes.fill)},e.applyWorldTransform=function(t,e,n){var r=0,i=0,o=(e.parsedStyle||{}).anchor,a=o&&o[0].value||0,o=o&&o[1].value||0;0===a&&0===o||(r=-a*((a=e.getGeometryBounds())&&2*a.halfExtents[0]||0),i=-o*(a&&2*a.halfExtents[1]||0)),n?(Xy(this.tmpMat4,e.getLocalTransform()),this.tmpVec3[0]=r,this.tmpVec3[1]=i,this.tmpVec3[2]=0,Ky(this.tmpMat4,this.tmpMat4,this.tmpVec3),Zy(this.tmpMat4,n,this.tmpMat4)):(Xy(this.tmpMat4,e.getWorldTransform()),this.tmpVec3[0]=r,this.tmpVec3[1]=i,this.tmpVec3[2]=0,Ky(this.tmpMat4,this.tmpMat4,this.tmpVec3)),Zy(this.tmpMat4,this.vpMatrix,this.tmpMat4),t.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])},e.safeMergeAABB=function(){for(var e=new Oc,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach(function(t){e.add(t)}),e},t}()).tag="CanvasRenderer",h0=at),_0=(t([p(ou),e("design:type",Object)],E0.prototype,"canvasConfig",void 0),t([p(Rd),e("design:type",Fd)],E0.prototype,"camera",void 0),t([p(Ld),e("design:type",Object)],E0.prototype,"contextService",void 0),t([p(Id),e("design:type",Object)],E0.prototype,"renderingContext",void 0),t([p(Rp),e("design:type",Function)],E0.prototype,"pathGeneratorFactory",void 0),t([p(t0),e("design:type",Function)],E0.prototype,"styleRendererFactory",void 0),t([p(Ih),e("design:type",Ih)],E0.prototype,"displayObjectPool",void 0),t([p(k0),e("design:type",Object)],E0.prototype,"canvasRendererPluginOptions",void 0),t([p(Ah),e("design:type",Qr)],E0.prototype,"rBush",void 0),E0=h0=t([f({contrib:zd})],E0),Hr(function(t){t(g0),t(v0),t(y0),t(f0),t(p0),t(m0),t(b0),t(x0),t(w0),(e={})[M.CIRCLE]=e0,e[M.ELLIPSE]=n0,e[M.RECT]=r0,e[M.IMAGE]=u0,e[M.TEXT]=l0,e[M.LINE]=i0,e[M.POLYLINE]=o0,e[M.POLYGON]=a0,e[M.PATH]=s0;var e,n=e;t({token:t0,useFactory:function(e){return function(t){t=n[t];return t&&e.container.isBound(t)?e.container.get(t):null}}}),t(E0)})),S0=function(n){function t(t){var e;return void 0===t&&(t={}),(e=n.call(this)||this).options=void 0,e.name="canvas-renderer",e.options=t,e}Wy(t,n);var e=t.prototype;return e.init=function(){this.container.register(k0,{useValue:Hy({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options)}),this.container.load(_0,!0)},e.destroy=function(){this.container.unload(_0),this.container.remove(k0)},t}(uf);function M0(){M0=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function f(){}var e={},p=(o(e,r,function(){return this}),Object.getPrototypeOf),p=p&&p(p(w([]))),y=(p&&p!==t&&l.call(p,r)&&(e=p),f.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function v(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=f),o(f,"constructor",d),d.displayName=o(f,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(v.prototype),o(v.prototype,n,function(){return this}),a.AsyncIterator=v,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new v(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function T0(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function O0(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){T0(r,e,n,i,o,"next",t)}function o(t){T0(r,e,n,i,o,"throw",t)}i(void 0)})}}function P0(t,e){return(P0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(G=function(){function t(){this.contextService=void 0,this.renderingContext=void 0}return t.prototype.apply=function(e){function i(t){e.hooks.pointerWheel.call(t)}var o=this,a=this.renderingContext.root.ownerDocument.defaultView,s=function(t){e.hooks.pointerMove.call(t)},l=function(t){e.hooks.pointerUp.call(t)},u=function(t){e.hooks.pointerDown.call(t)},c=function(t){e.hooks.pointerOver.call(t)},h=function(t){e.hooks.pointerOut.call(t)},d=function(t){e.hooks.pointerCancel.call(t)};e.hooks.init.tapPromise(d0.tag,O0(M0().mark(function t(){var r;return M0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=o.contextService.getDomElement(),globalThis.navigator.msPointerEnabled?(r.style.msContentZooming="none",r.style.msTouchAction="none"):a.supportsPointerEvents&&(r.style.touchAction="none"),a.supportsPointerEvents?(n=r,globalThis.document.addEventListener("pointermove",s,!0),n.addEventListener("pointerdown",u,!0),n.addEventListener("pointerleave",h,!0),n.addEventListener("pointerover",c,!0),globalThis.addEventListener("pointerup",l,!0)):(n=r,globalThis.document.addEventListener("mousemove",s,!0),n.addEventListener("mousedown",u,!0),n.addEventListener("mouseout",h,!0),n.addEventListener("mouseover",c,!0),globalThis.addEventListener("mouseup",l,!0)),a.supportsTouchEvents&&((e=r).addEventListener("touchstart",u,!0),e.addEventListener("touchend",l,!0),e.addEventListener("touchmove",s,!0),e.addEventListener("touchcancel",d,!0)),r.addEventListener("wheel",i,{passive:!0,capture:!0});case 5:case"end":return t.stop()}var e,n},t)}))),e.hooks.destroy.tap(d0.tag,function(){var t,e,n=o.contextService.getDomElement();globalThis.navigator.msPointerEnabled?(n.style.msContentZooming="",n.style.msTouchAction=""):a.supportsPointerEvents&&(n.style.touchAction=""),a.supportsPointerEvents?(t=n,globalThis.document.removeEventListener("pointermove",s,!0),t.removeEventListener("pointerdown",u,!0),t.removeEventListener("pointerleave",h,!0),t.removeEventListener("pointerover",c,!0),globalThis.removeEventListener("pointerup",l,!0)):(t=n,globalThis.document.removeEventListener("mousemove",s,!0),t.removeEventListener("mousedown",u,!0),t.removeEventListener("mouseout",h,!0),t.removeEventListener("mouseover",c,!0),globalThis.removeEventListener("mouseup",l,!0)),a.supportsTouchEvents&&((e=n).removeEventListener("touchstart",u,!0),e.removeEventListener("touchend",l,!0),e.removeEventListener("touchmove",s,!0),e.removeEventListener("touchcancel",d,!0)),n.removeEventListener("wheel",i,!0)})},t}()).tag="DOMInteraction";var A0,C0=d0=G,N0=(t([p(Ld),e("design:type",Object)],C0.prototype,"contextService",void 0),t([p(Id),e("design:type",Object)],C0.prototype,"renderingContext",void 0),C0=d0=t([f({contrib:zd})],C0),Hr(function(t){t(C0)})),L0=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="dom-interaction",t}t=i,(n=e).prototype=Object.create(t.prototype),P0(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(N0,!0)},n.destroy=function(){this.container.unload(N0)},e}(uf);function I0(){I0=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function f(){}var e={},p=(o(e,r,function(){return this}),Object.getPrototypeOf),p=p&&p(p(w([]))),y=(p&&p!==t&&l.call(p,r)&&(e=p),f.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function v(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=f),o(f,"constructor",d),d.displayName=o(f,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(v.prototype),o(v.prototype,n,function(){return this}),a.AsyncIterator=v,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new v(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function R0(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function D0(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){R0(r,e,n,i,o,"next",t)}function o(t){R0(r,e,n,i,o,"throw",t)}i(void 0)})}}function j0(t,e){return(j0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(W=function(){function t(){this.contextService=void 0,this.renderingContext=void 0,this.canvasConfig=void 0,this.$camera=void 0}var e=t.prototype;return e.apply=function(t){function i(t,e){t=t.getWorldTransform(),e.style.transform="matrix("+[t[0],t[1],t[4],t[5],t[12],t[13]].join(",")+")"}function e(t){var e,n,r=t.target;r.nodeName===M.HTML&&(e=a.getOrCreateEl(r),n=r.ownerDocument.documentElement.attributes,Object.keys(n).forEach(function(t){e.style[t]=n[t]}),Object.keys(r.attributes).forEach(function(t){a.updateAttribute(t,r)}),i(r,e))}function n(t){var e;(t=t.target).nodeName===M.HTML&&(t=a.getId(t),(e=a.contextService.getDomElement().parentNode)&&(t=e.querySelector("#"+t))&&e.removeChild(t))}function r(t){var e=t.target;e.nodeName===M.HTML&&(t=t.attrName,a.updateAttribute(t,e))}function o(t){var e;(t=t.target).nodeName===M.HTML&&(e=a.getOrCreateEl(t),i(t,e))}var a=this;t.hooks.init.tapPromise(A0.tag,D0(I0().mark(function t(){return I0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:a.renderingContext.root.addEventListener(m.MOUNTED,e),a.renderingContext.root.addEventListener(m.UNMOUNTED,n),a.renderingContext.root.addEventListener(m.ATTR_MODIFIED,r),a.renderingContext.root.addEventListener(m.BOUNDS_CHANGED,o);case 4:case"end":return t.stop()}},t)}))),t.hooks.destroy.tap(A0.tag,function(){a.renderingContext.root.removeEventListener(m.MOUNTED,e),a.renderingContext.root.removeEventListener(m.UNMOUNTED,n),a.renderingContext.root.removeEventListener(m.ATTR_MODIFIED,r),a.renderingContext.root.removeEventListener(m.BOUNDS_CHANGED,o)})},e.getId=function(t){return t.id||"g-html-"+t.entity},e.getOrCreateEl=function(t){var e,n=this.canvasConfig.document,r=this.getId(t),i=this.contextService.getDomElement().parentNode;return i?((e=i.querySelector("#"+r))||(e=(n||document).createElement("div"),(t.parsedStyle.$el=e).id=r,t.name&&e.setAttribute("name",t.name),t.className&&(e.className=t.className),i.appendChild(e),e.style.position="absolute",e.style.left="0",e.style.top="0",e.style["will-change"]="transform",n=t.getWorldTransform(),e.style.transform="matrix("+[n[0],n[1],n[4],n[5],n[12],n[13]].join(",")+")"),e):null},e.updateAttribute=function(t,e){var n=this.getOrCreateEl(e);switch(t){case"innerHTML":var r=e.parsedStyle.innerHTML;Jl(r)?n.innerHTML=r:(n.innerHTML="",n.appendChild(r));break;case"transformOrigin":r=e.parsedStyle.transformOrigin;n.style["transform-origin"]=r[0].value+" "+r[1].value;break;case"width":r=e.computedStyleMap().get("width");n.style.width=r.toString();break;case"height":r=e.computedStyleMap().get("height");n.style.height=r.toString();break;case"zIndex":r=e.parsedStyle.zIndex;n.style["z-index"]=""+r.value;break;case"visibility":r=e.parsedStyle.visibility;n.style.visibility=r.value;break;case"pointerEvents":r=e.parsedStyle.pointerEvents;n.style.pointerEvents=r.value;break;case"opacity":r=e.parsedStyle.opacity;n.style.opacity=""+r.value;break;case"fill":var r=e.parsedStyle.fill,i="";r instanceof pc?i=r.isNone?"transparent":e.getAttribute("fill"):Array.isArray(r)?i=e.getAttribute("fill"):_c(r),n.style.background=i;break;case"stroke":r=e.parsedStyle.stroke,i="";r instanceof pc?i=r.isNone?"transparent":e.getAttribute("stroke"):Array.isArray(r)?i=e.getAttribute("stroke"):_c(r),n.style["border-color"]=i,n.style["border-style"]="solid";break;case"lineWidth":r=e.parsedStyle.lineWidth;n.style["border-width"]=(r.value||0)+"px";break;case"lineDash":n.style["border-style"]="dashed";break;case"filter":i=e.parsedStyle.filter;n.style.filter=i}},t}()).tag="HTMLRendering";var B0=A0=W,F0=(t([p(Ld),e("design:type",Object)],B0.prototype,"contextService",void 0),t([p(Id),e("design:type",Object)],B0.prototype,"renderingContext",void 0),t([p(ou),e("design:type",Object)],B0.prototype,"canvasConfig",void 0),B0=A0=t([f({contrib:zd})],B0),Hr(function(t){t(B0)})),z0=function(i){var t;function e(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="html-renderer",t}t=i,(n=e).prototype=Object.create(t.prototype),j0(n.prototype.constructor=n,t);var n=e.prototype;return n.init=function(){this.container.load(F0,!0)},n.destroy=function(){this.container.unload(F0)},e}(uf);function V0(){V0=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function f(){}var e={},p=(o(e,r,function(){return this}),Object.getPrototypeOf),p=p&&p(p(w([]))),y=(p&&p!==t&&l.call(p,r)&&(e=p),f.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function v(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=f),o(f,"constructor",d),d.displayName=o(f,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(v.prototype),o(v.prototype,n,function(){return this}),a.AsyncIterator=v,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new v(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function G0(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function H0(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){G0(r,e,n,i,o,"next",t)}function o(t){G0(r,e,n,i,o,"throw",t)}i(void 0)})}}function W0(t,e){t.prototype=Object.create(e.prototype),U0(t.prototype.constructor=t,e)}function U0(t,e){return(U0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var Y0=function(){function t(){this.$container=void 0,this.$canvas=void 0,this.dpr=void 0,this.context=void 0,this.canvasConfig=void 0}var e=t.prototype;return e.init=function(){var t=H0(V0().mark(function t(){var e,n,r;return V0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:e=this.canvasConfig,r=e.container,n=e.canvas,e=e.devicePixelRatio,n?(this.$canvas=n,r&&n.parentElement!==r&&r.appendChild(n),this.$container=n.parentElement,this.canvasConfig.container=this.$container):r&&(this.$container=Jl(r)?document.getElementById(r):r,this.$container&&(n=document.createElement("canvas"),this.$container.appendChild(n),this.$container.style.position||(this.$container.style.position="relative"),this.$canvas=n)),this.context=this.$canvas.getContext("2d"),r=1<=(r=e||As&&window.devicePixelRatio||1)?Math.ceil(r):1,this.dpr=r,this.resize(this.canvasConfig.width,this.canvasConfig.height);case 7:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),e.getContext=function(){return this.context},e.getDomElement=function(){return this.$canvas},e.getDPR=function(){return this.dpr},e.getBoundingClientRect=function(){if(this.$canvas.getBoundingClientRect)return this.$canvas.getBoundingClientRect()},e.destroy=function(){this.$container&&this.$canvas&&this.$canvas.parentNode&&this.$container.removeChild(this.$canvas)},e.resize=function(t,e){var n;this.$canvas&&(this.$canvas.width=this.dpr*t,this.$canvas.height=this.dpr*e,n=this.$canvas,t=t,e=e,As&&n.style&&(n.style.width=t+"px",n.style.height=e+"px"))},e.applyCursorStyle=function(t){this.$container&&this.$container.style&&(this.$container.style.cursor=t)},e.toDataURL=function(){var e=H0(V0().mark(function t(e){var n,r;return V0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return n=(r=e=void 0===e?{}:e).type,r=r.encoderOptions,t.abrupt("return",this.context.canvas.toDataURL(n,r));case 3:case"end":return t.stop()}},t,this)}));return function(t){return e.apply(this,arguments)}}(),t}(),q0=(t([p(ou),e("design:type",Object)],Y0.prototype,"canvasConfig",void 0),Y0=t([f({token:Ld})],Y0),Hr(function(t){t(Y0)})),X0=function(i){function t(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(t=i.call.apply(i,[this].concat(n))||this).name="canvas-context-register",t}W0(t,i);var e=t.prototype;return e.init=function(){this.container.load(q0,!0)},e.destroy=function(){this.container.unload(q0)},t}(uf),Z0=function(e){function t(t){t=e.call(this,t)||this;return t.registerPlugin(new X0),t.registerPlugin(new Fy),t.registerPlugin(new Up),t.registerPlugin(new S0),t.registerPlugin(new L0),t.registerPlugin(new Ay),t.registerPlugin(new z0),t}return W0(t,e),t}(H);function K0(){K0=function(){return a};var a={},t=Object.prototype,l=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i,o,a,s,e=e&&e.prototype instanceof h?e:h,e=Object.create(e.prototype),r=new x(r||[]);return e._invoke=(i=t,o=n,a=r,s="suspendedStart",function(t,e){if("executing"===s)throw new Error("Generator is already running");if("completed"===s){if("throw"===t)throw e;return k()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){n=function t(e,n){var r=e.iterator[n.method];if(void 0===r){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=void 0,t(e,n),"throw"===n.method))return c;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}r=u(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,c;r=r.arg;return r?r.done?(n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,c):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,c)}(n,a);if(n){if(n===c)continue;return n}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if("suspendedStart"===s)throw s="completed",a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);s="executing";n=u(i,o,a);if("normal"===n.type){if(s=a.done?"completed":"suspendedYield",n.arg===c)continue;return{value:n.arg,done:a.done}}"throw"===n.type&&(s="completed",a.method="throw",a.arg=n.arg)}}),e}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=s;var c={};function h(){}function d(){}function f(){}var e={},p=(o(e,r,function(){return this}),Object.getPrototypeOf),p=p&&p(p(w([]))),y=(p&&p!==t&&l.call(p,r)&&(e=p),f.prototype=h.prototype=Object.create(e));function g(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function v(a,s){var e;this._invoke=function(n,r){function t(){return new s(function(t,e){!function e(t,n,r,i){var o,t=u(a[t],a,n);if("throw"!==t.type)return(n=(o=t.arg).value)&&"object"==typeof n&&l.call(n,"__await")?s.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):s.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)});i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function m(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function b(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(m,this),this.reset(!0)}function w(e){if(e){var n,t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return n=-1,(t=function t(){for(;++n<e.length;)if(l.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t}).next=t}return{next:k}}function k(){return{value:void 0,done:!0}}return o(y,"constructor",d.prototype=f),o(f,"constructor",d),d.displayName=o(f,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,o(t,i,"GeneratorFunction")),t.prototype=Object.create(y),t},a.awrap=function(t){return{__await:t}},g(v.prototype),o(v.prototype,n,function(){return this}),a.AsyncIterator=v,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new v(s(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},g(y),o(y,i,"Generator"),o(y,r,function(){return this}),o(y,"toString",function(){return"[object Generator]"}),a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=w,x.prototype={constructor:x,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(b),!t)for(var e in this)"t"===e.charAt(0)&&l.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=void 0),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=l.call(i,"catchLoc"),s=l.call(i,"finallyLoc");if(a&&s){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&l.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}var o=(i=i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc?null:i)?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),b(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n,r,i=this.tryEntries[e];if(i.tryLoc===t)return"throw"===(n=i.completion).type&&(r=n.arg,b(i)),r}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:w(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},a}function $0(t,e,n,r,i,o,a){try{var s=t[o](a),l=s.value}catch(t){return void n(t)}s.done?e(l):Promise.resolve(l).then(r,i)}function J0(s){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=s.apply(t,a);function i(t){$0(r,e,n,i,o,"next",t)}function o(t){$0(r,e,n,i,o,"throw",t)}i(void 0)})}}function Q0(){return(Q0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n,r=arguments[e];for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function tg(t,e){return(tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}var eg,ng=d.defineToken("DragndropPluginOptions"),rg=((pt=function(){function t(){this.sceneGraphService=void 0,this.renderingContext=void 0,this.dragndropPluginOptions=void 0}var e=t.prototype;return e.findClosestDraggable=function(t){for(var e=t.composedPath(),n=0;n<e.length;n++){var r=e[n];if(Lh.isElement(r)&&r.getAttribute("draggable"))return r}return null},e.apply=function(t){function e(t){var e,a,s,l,u,c,n,h=t.target,d=h===p,f=d&&o?p:r.findClosestDraggable(t);f&&(e=function(){var e=J0(K0().mark(function t(e){var n,r,i,o;return K0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a){t.next=8;break}if(r=e.timeStamp-s,i=ya([e.clientX,e.clientY],l),r<=m||i<=v)return t.abrupt("return");t.next=5;break;case 5:e.type="dragstart",f.dispatchEvent(e),a=!0;case 8:if(e.type="drag",e.dx=e.clientX-c[0],e.dy=e.clientY-c[1],f.dispatchEvent(e),c=[e.clientX,e.clientY],d){t.next=23;break}return n=h.style.pointerEvents,h.style.pointerEvents="none",r="pointer"===y?[e.canvasX,e.canvasY]:h.getBounds().center,t.next=19,p.elementFromPoint(r[0],r[1]);case 19:i=t.sent,h.style.pointerEvents=n,o=(null==i?void 0:i.closest("[droppable=true]"))||(g?p:null),u!==o&&(u&&(e.type="dragleave",(e.target=u).dispatchEvent(e)),o&&(e.type="dragenter",(e.target=o).dispatchEvent(e)),(u=o)&&(e.type="dragover",(e.target=u).dispatchEvent(e)));case 23:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}(),a=!1,s=t.timeStamp,l=[t.clientX,t.clientY],u=null,c=[t.clientX,t.clientY],i.addEventListener("pointermove",e),h.addEventListener("pointerup",n=function(){a&&(u&&(t.type="drop",(t.target=u).dispatchEvent(t)),t.type="dragend",t.detail={preventClick:!0},f.dispatchEvent(t),a=!1),i.removeEventListener("pointermove",e)},{once:!0}),h.addEventListener("pointerupoutside",n,{once:!0}))}var r=this,p=this.renderingContext.root.ownerDocument,i=p.defaultView,n=this.dragndropPluginOptions,y=n.overlap,o=n.isDocumentDraggable,g=n.isDocumentDroppable,v=n.dragstartDistanceThreshold,m=n.dragstartTimeThreshold;t.hooks.init.tapPromise(eg.tag,J0(K0().mark(function t(){return K0().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:i.addEventListener("pointerdown",e);case 1:case"end":return t.stop()}},t)}))),t.hooks.destroy.tap(eg.tag,function(){i.removeEventListener("pointerdown",e)})},t}()).tag="Dragndrop",eg=pt),ig=(t([p(Cd),e("design:type",Object)],rg.prototype,"sceneGraphService",void 0),t([p(Id),e("design:type",Object)],rg.prototype,"renderingContext",void 0),t([p(ng),e("design:type",Object)],rg.prototype,"dragndropPluginOptions",void 0),rg=eg=t([f({contrib:zd})],rg),Hr(function(t){t(rg)})),og=function(n){var t;function e(t){var e;return void 0===t&&(t={}),(e=n.call(this)||this).options=void 0,e.name="dragndrop",e.options=t,e}t=n,(r=e).prototype=Object.create(t.prototype),tg(r.prototype.constructor=r,t);var r=e.prototype;return r.init=function(){this.container.register(ng,{useValue:Q0({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)}),this.container.load(ig,!0)},r.destroy=function(){this.container.remove(ng),this.container.unload(ig)},e}(uf);const ag=({width:t,height:e,container:n})=>{const r=new Z0;return r.registerPlugin(new og),new Gf({container:n,width:t,height:e,renderer:r})},sg=(ag.props={},()=>[["cartesian"]]),lg=(sg.props={},({startAngle:t=-Math.PI/2,endAngle:e=3*Math.PI/2,innerRadius:n=0,outerRadius:r=1})=>[["translate",0,.5],["reflect.y"],["translate",0,-.5],["polar",t,e,n,r]]),ug=(lg.props={},()=>[["transpose"],["translate",.5,.5],["reflect.x"],["translate",-.5,-.5]]),cg=(ug.props={},()=>[["parallel",0,1,0,1]]),hg=(cg.props={},({focusX:t=0,focusY:e=0,distortionX:n=2,distortionY:r=2})=>[["fisheye",t,e,n,r]]),dg=(hg.props={},({value:e})=>t=>t.map(()=>e)),fg=(dg.props={},({value:e})=>t=>t.map(e)),pg=(fg.props={},({value:e})=>t=>t.map(t=>t[e])),yg=(pg.props={},({value:t})=>()=>t);function gg(){return[{name:"color"},{name:"shape"},{name:"enterType"},{name:"enterDelay",scaleName:"enter"},{name:"enterDuration",scaleName:"enter"},{name:"enterEasing"},{name:"key",scale:"identity"},{name:"groupKey",scale:"identity"},{name:"label",scale:"identity"}]}function vg(){return[...gg(),{name:"title",scale:"identity"},{name:"tooltip",scale:"identity",independent:!0}]}function mg(){return[{type:"maybeArrayField"}]}function bg(){return[{type:"maybeKey"}]}yg.props={};const xg=()=>(t,e,n,l)=>{const{x:u,y:c,y1:h,series:d}=n,f=e.x,p=e.series;return[t,Array.from(t,t=>{var e=f.getBandWidth(f.invert(+u[t])),n=e*(p?p.getBandWidth(p.invert(+(null===d||void 0===d?void 0:d[t]))):1),e=(+(null===d||void 0===d?void 0:d[t])||0)*e,e=+u[t]+e,n=e+n,r=+c[t],t=+h[t];const i=[e,r],o=[n,r],a=[n,t],s=[e,t];return[i,o,a,s].map(t=>l.map(t))})]};function wg(t,e){return null==t||null==e?NaN:t<e?-1:e<t?1:e<=t?0:NaN}function kg(t,e){t=function(e,n){let r=0,i,o=0,a=0;if(void 0===n)for(var t of e)null!=t&&(t=+t)>=t&&(i=t-o,o+=i/++r,a+=i*(t-o));else{let t=-1;for(var s of e)null!=(s=n(s,++t,e))&&(s=+s)>=s&&(i=s-o,o+=i/++r,a+=i*(s-o))}if(1<r)return a/(r-1)}(t,e);return t&&Math.sqrt(t)}function Eg(e,n){let r,i;if(void 0===n)for(const t of e)null!=t&&(void 0===r?t>=t&&(r=i=t):(r>t&&(r=t),i<t&&(i=t)));else{let t=-1;for(var o of e)null!=(o=n(o,++t,e))&&(void 0===r?o>=o&&(r=i=o):(r>o&&(r=o),i<o&&(i=o)))}return[r,i]}xg.props={defaultShape:"rect",defaultLabelShape:"label",channels:[...vg(),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...mg(),{type:"maybeZeroY1"},{type:"maybeZeroX"},{type:"maybeStackY",series:!0}],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["rect","hollowRect","funnel","pyramid"]};class _g extends Map{constructor(t,e=function(t){return null!==t&&"object"==typeof t?t.valueOf():t}){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(Sg(this,t))}has(t){return super.has(Sg(this,t))}set(t,e){return super.set(function({_intern:t,_key:e},n){e=e(n);return t.has(e)?t.get(e):(t.set(e,n),n)}(this,t),e)}delete(t){return super.delete(function({_intern:t,_key:e},n){e=e(n);t.has(e)&&(n=t.get(e),t.delete(e));return n}(this,t))}}function Sg({_intern:t,_key:e},n){e=e(n);return t.has(e)?t.get(e):n}function Mg(t){return t}function Tg(t,...e){return h=c=Mg,d=e,function t(e,n){if(n>=d.length)return h(e);const r=new _g,i=d[n++];let o=-1;for(const s of e){var a=i(s,++o,e);const l=r.get(a);l?l.push(s):r.set(a,[s])}for(const[u,e]of r)r.set(u,t(e,n));return c(r)}(t,0);var c,h,d}function Og(t,e){return(null==t||!(t<=t))-(null==e||!(e<=e))||(t<e?-1:e<t?1:0)}function Pg(e,n){let r;if(void 0===n)for(const t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let t=-1;for(var i of e)null!=(i=n(i,++t,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}function Ag(t,e){let n,r=-1,i=-1;if(void 0===e)for(const a of t)++i,null!=a&&(n<a||void 0===n&&a>=a)&&(n=a,r=i);else for(var o of t)null!=(o=e(o,++i,t))&&(n<o||void 0===n&&o>=o)&&(n=o,r=i);return r}function Cg(e,n){let r;if(void 0===n)for(const t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let t=-1;for(var i of e)null!=(i=n(i,++t,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}function Ng(n,r,i=0,o=n.length-1,a){for(a=void 0===a?Og:function(r=wg){if(r===wg)return Og;if("function"!=typeof r)throw new TypeError("compare is not a function");return(t,e)=>{var n=r(t,e);return n||0===n?n:(0===r(e,e))-(0===r(t,t))}}(a);i<o;){600<o-i&&(s=o-i+1,l=r-i+1,c=Math.log(s),u=.5*Math.exp(2*c/3),c=.5*Math.sqrt(c*u*(s-u)/s)*(l-s/2<0?-1:1),Ng(n,r,Math.max(i,Math.floor(r-l*u/s+c)),Math.min(o,Math.floor(r+(s-l)*u/s+c)),a));var s,l,u,c,h=n[r];let t=i,e=o;for(Lg(n,i,r),0<a(n[o],h)&&Lg(n,i,o);t<e;){for(Lg(n,t,e),++t,--e;a(n[t],h)<0;)++t;for(;0<a(n[e],h);)--e}0===a(n[i],h)?Lg(n,i,e):Lg(n,++e,o),e<=r&&(i=e+1),r<=e&&(o=e-1)}return n}function Lg(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Ig(t,e,n){if(n=(t=Float64Array.from(function*(e,n){if(void 0===n)for(var t of e)null!=t&&(t=+t)>=t&&(yield t);else{let t=-1;for(var r of e)null!=(r=n(r,++t,e))&&(r=+r)>=r&&(yield r)}}(t,n))).length){if((e=+e)<=0||n<2)return Cg(t);if(1<=e)return Pg(t);var n=(n-1)*e,e=Math.floor(n),r=Pg(Ng(t,e).subarray(0,e+1));return r+(Cg(t.subarray(e+1))-r)*(n-e)}}function Rg(e,n){let r=0,i=0;if(void 0===n)for(var t of e)null!=t&&(t=+t)>=t&&(++r,i+=t);else{let t=-1;for(var o of e)null!=(o=n(o,++t,e))&&(o=+o)>=o&&(++r,i+=o)}if(r)return i/r}function Dg(t,e){return Ig(t,.5,e)}function jg(e,n=wg){let r,i=!1;if(1===n.length){let t;for(const a of e){var o=n(a);(i?wg(o,t)<0:0===wg(o,o))&&(r=a,t=o,i=!0)}}else for(const t of e)(i?n(t,r)<0:0===n(t,t))&&(r=t,i=!0);return r}function Bg(e,n){let r=0;if(void 0===n)for(var t of e)(t=+t)&&(r+=t);else{let t=-1;for(var i of e)(i=+n(i,++t,e))&&(r+=i)}return r}function Fg(t){const e=t.getOptions()["transformations"];return e.map(([t])=>t).filter(t=>"transpose"===t).length%2!=0}function zg(t){const e=t.getOptions()["transformations"];return e.some(([t])=>"polar"===t)}function Vg(t){const e=t.getOptions()["transformations"];return e.some(([t])=>"parallel"===t)}const Gg=(t,e,n,r)=>{const{series:i,x:o,y:a}=n;if(void 0===o||void 0===a)throw new Error("Missing encode for x or y channel.");const s=i?Array.from(Tg(t,t=>i[t]).values()):[t];return[s.map(t=>t[0]),Array.from(s,t=>t.map(t=>r.map([+o[t],+a[t]]))),s]},Hg=(t,e,n,i)=>{const o=Object.entries(n).filter(([t])=>t.startsWith("position")).map(([,t])=>t);if(0===o.length)throw new Error("Missing encode for position channel.");return[t,Array.from(t,e=>{var t=o.map(t=>+t[e]),n=i.map(t);const r=[];for(let t=0;t<n.length;t+=2)r.push([n[t],n[t+1]]);return r})]},Wg=()=>(t,e,n,r)=>{const i=Vg(r)?Hg:Gg;return i(t,e,n,r)},Ug=(Wg.props={defaultShape:"line",defaultLabelShape:"label",channels:[...vg(),{name:"x"},{name:"y"},{name:"position",independent:!0},{name:"size"},{name:"series",scale:"identity"}],preInference:[...mg(),{type:"maybeSeries"}],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"},{type:"maybeTooltipPosition"}],shapes:["line","smooth"]},()=>(t,e,n,o)=>{const{x:a,y:s,size:l,dx:u,dy:c}=n,[h,d]=o.getSize();return[t,Array.from(t,t=>{var e=+((null===u||void 0===u?void 0:u[t])||0),n=+((null===c||void 0===c?void 0:c[t])||0),e=+a[t]+e,n=+s[t]+n,t=+l[t],r=t/h,t=t/d,i=[e+r,n+t];return[o.map([e-r,n-t]),o.map(i)]})]}),Yg=(Ug.props={defaultShape:"point",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0},{name:"size",required:!0},{name:"dx",scale:"identity"},{name:"dy",scale:"identity"}],preInference:[...mg(),{type:"maybeZeroY"},{type:"maybeZeroX"},{type:"maybeSize"}],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["bowtie","cross","diamond","hexagon","hollowBowtie","hollowDiamond","hollowHexagon","hollowPoint","hollowSquare","hollowTriangle","hollowTriangleDown","hyphen","linePoint","plus","point","square","tick","triangle","triangleDown"]},()=>(t,e,n,r)=>{const{x:i,y:o}=n,a=e["x"];return[t,Array.from(t,t=>{var e=+i[t],t=+o[t],n=(null==(n=null===a||void 0===a?void 0:a.getBandWidth)?void 0:n.call(a))||0;return[r.map([e+n/2,t])]})]}),qg=(Yg.props={defaultShape:"text",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0},{name:"text",required:!0,scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[...mg()],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["text"]},()=>(t,e,n,l)=>{const{x:u,y:c}=n,h=e.x,d=e.y;return[t,Array.from(t,t=>{var e=h.getBandWidth(h.invert(+u[t])),n=d.getBandWidth(d.invert(+c[t])),r=+u[t],t=+c[t];const i=[r,t],o=[r+e,t],a=[r+e,t+n],s=[r,t+n];return[i,o,a,s].map(t=>l.map(t))})]}),Xg=(qg.props={defaultShape:"rect",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0,scale:"band"},{name:"y",required:!0,scale:"band"}],preInference:[...mg(),{type:"maybeZeroX"},{type:"maybeZeroY"}],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["rect","hollowRect"]},()=>(t,e,n,o)=>{const{x:a,y:s,y1:l,series:r}=n,i=r?Array.from(Tg(t,t=>r[t]).values()):[t];return[i.map(t=>t[0]),Array.from(i,e=>{var n=e.length;const r=new Array(2*n);for(let t=0;t<e.length;t++){var i=e[t];r[t]=o.map([+a[i],+s[i]]),r[n+t]=o.map([+a[i],+l[i]])}return r}),i]}),Zg=(Xg.props={defaultShape:"area",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0},{name:"size"},{name:"series",scale:"identity"}],preInference:[...mg(),{type:"maybeSeries"},{type:"maybeZeroY1"}],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["area","smooth"]},()=>(t,e,n,o)=>{const a=Object.entries(n).filter(([t])=>t.startsWith("x")).map(([,t])=>t),s=Object.entries(n).filter(([t])=>t.startsWith("y")).map(([,t])=>t);n=t.map(e=>{const n=[];for(let t=0;t<a.length;t++){var r=a[t][e];if(void 0===r)break;var i=s[t][e];n.push(o.map([+r,+i]))}return n});return[t,n]}),Kg=(Zg.props={defaultShape:"polygon",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mg()],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["polygon"]},(...t)=>Zg(...t)),$g=(Kg.props={defaultShape:"edge",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mg()],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["edge","arc","vhv","smoothEdge","ribbon"]},(...t)=>Zg(...t)),Jg=($g.props={defaultShape:"pointNode",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0},{name:"size",required:!0}],preInference:[...mg()],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["pointNode","polygonNode"]},()=>(t,e,n,r)=>{const{x:i,y:o,x1:a,y1:s}=n,l=(null==(e=null==(n=e.x)?void 0:n.getBandWidth)?void 0:e.call(n))||0;e=t.map(t=>[r.map([+i[t]+l/2,+o[t]]),r.map([+a[t]+l/2,+s[t]])]);return[t,e]}),Qg=(Jg.props={defaultShape:"link",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mg()],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["link"]},()=>(t,e,n,r)=>{const{x:i,y:o}=n,a=e["x"];return[t,Array.from(t,t=>{var e=+i[t],t=+o[t],n=(null==(n=null===a||void 0===a?void 0:a.getBandWidth)?void 0:n.call(a))||0;return[r.map([e+n/2,t])]})]}),tv=(Qg.props={defaultShape:"image",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0},{name:"src",required:!0,scale:"identity"},{name:"size"}],preInference:[...mg()],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["image"]},()=>(t,e,n,l)=>{const{x:u,y:c,y1:h,y2:d,y3:f,y4:p,series:y}=n,g=e.x,v=e.series;return[t,Array.from(t,t=>{var e=g.getBandWidth(g.invert(+u[t])),n=e*(v?v.getBandWidth(v.invert(+(null===y||void 0===y?void 0:y[t]))):1),e=(+(null===y||void 0===y?void 0:y[t])||0)*e,e=+u[t]+e+n/2,[t,r,i,o,a]=[+c[t],+h[t],+d[t],+f[t],+p[t]];const s=[[e-n/2,a],[e+n/2,a],[e,a],[e,o],[e-n/2,o],[e+n/2,o],[e+n/2,r],[e-n/2,r],[e-n/2,i],[e+n/2,i],[e,r],[e,t],[e-n/2,t],[e+n/2,t]];return s.map(t=>l.map(t))})]}),ev=(tv.props={defaultShape:"box",defaultLabelShape:"label",channels:[...vg(),{name:"x",scale:"band",required:!0},{name:"y",required:!0},{name:"series",scale:"band"}],preInference:[...mg()],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["box"]},()=>(t,e,n,i)=>{const{x:o,y:a,size:s,rotate:l}=n,[u,c]=i.getSize();n=t.map(t=>{var e=+l[t]/180*Math.PI,n=+s[t],r=n/u,n=n/c,r=r*Math.cos(e),n=-n*Math.sin(e);return[i.map([+o[t]-r/2,+a[t]-n/2]),i.map([+o[t]+r/2,+a[t]+n/2])]});return[t,n]}),nv=(ev.props={defaultShape:"vector",defaultLabelShape:"label",channels:[...vg(),{name:"x",required:!0},{name:"y",required:!0},{name:"rotate",required:!0,scale:"identity"},{name:"size",required:!0}],preInference:[...mg()],postInference:[...bg(),{type:"maybeTitleX"},{type:"maybeTooltipY"}],shapes:["vector"]},()=>Yg()),rv=(nv.props={defaultShape:"annotation.text",defaultLabelShape:"label",channels:[...gg(),{name:"x",required:!0},{name:"y",required:!0},{name:"text",required:!0,scale:"identity"},{name:"fontSize"},{name:"rotate"}],preInference:[...mg()],postInference:[...bg()],shapes:["annotation.text","annotation.badge"]},()=>(t,e,n,r)=>{const i=n["y"];return[t,Array.from(t,t=>{const e=[0,i[t]],n=[1,i[t]];return[e,n].map(t=>r.map(t))})]}),iv=(rv.props={defaultShape:"annotation.line",defaultLabelShape:"label",channels:[...gg(),{name:"y",required:!0}],preInference:[...mg()],postInference:[...bg()],shapes:["annotation.line"]},()=>(t,e,n,r)=>{const i=n["x"];return[t,Array.from(t,t=>{const e=[i[t],1],n=[i[t],0];return[e,n].map(t=>r.map(t))})]}),ov=(iv.props={defaultShape:"annotation.line",defaultLabelShape:"label",channels:[...gg(),{name:"x",required:!0}],preInference:[...mg()],postInference:[...bg()],shapes:["annotation.line"]},(...t)=>Jg(...t));function av(t,e,n,r){if(e)return()=>[0,1];const{[t]:i,[t+"1"]:o}=n;return t=>{var e=(null==(e=r.getBandWidth)?void 0:e.call(r,r.invert(+o[t])))||0;return[i[t],o[t]+e]}}function sv(t={}){const{extendX:r=!1,extendY:i=!1}=t;return(t,e,n,l)=>{const u=av("x",r,n,e.x),c=av("y",i,n,e.y);return[t,Array.from(t,t=>{var[e,n]=u(t),[t,r]=c(t);const i=[e,t],o=[n,t],a=[n,r],s=[e,r];return[i,o,a,s].map(t=>l.map(t))})]}}ov.props={defaultShape:"annotation.connector",defaultLabelShape:"label",channels:[...gg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mg()],postInference:[...bg()],shapes:["annotation.connector"]};const lv=()=>sv(),uv=(lv.props={defaultShape:"annotation.range",defaultLabelShape:"label",channels:[...gg(),{name:"x",required:!0},{name:"y",required:!0}],preInference:[...mg()],postInference:[...bg()],shapes:["annotation.range"]},()=>sv({extendY:!0})),cv=(uv.props={defaultShape:"annotation.range",defaultLabelShape:"label",channels:[...gg(),{name:"x",required:!0}],preInference:[...mg()],postInference:[...bg()],shapes:["annotation.range"]},()=>sv({extendX:!0})),hv=(cv.props={defaultShape:"annotation.range",defaultLabelShape:"label",channels:[...gg(),{name:"y",required:!0}],preInference:[...mg()],postInference:[...bg()],shapes:["annotation.range"]},()=>["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"]),dv=(hv.props={},()=>["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"]);dv.props={};class fv{constructor(t){this.options=C({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=C({},this.options,t),this.rescale(t)}rescale(t){}}function pv(e,n,r){for(let t=0;t<n.length;t+=1)e.has(n[t])||e.set(r(n[t]),t)}function yv(t){const{value:e,from:n,to:r,mapper:i,notFoundReturn:o}=t;let a=i.get(e);if(void 0===a){if(o)return o;a=n.push(e)-1,i.set(e,a)}return r[a%r.length]}function gv(t){return t instanceof Date?t=>""+t:"object"==typeof t?t=>JSON.stringify(t):t=>t}class vv extends fv{constructor(t){super(t)}getDefaultOptions(){return{domain:[],range:[]}}map(t){return 0===this.domainIndexMap.size&&pv(this.domainIndexMap,this.getDomain(),this.domainKey),yv({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return 0===this.rangeIndexMap.size&&pv(this.rangeIndexMap,this.getRange(),this.rangeKey),yv({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){var[e]=this.options.domain,[n]=this.options.range;this.domainKey=gv(e),this.rangeKey=gv(n),this.rangeIndexMap?(t&&!t.range||this.rangeIndexMap.clear(),t&&!t.domain&&!t.compare||(this.domainIndexMap.clear(),this.sortedDomain=void 0)):(this.rangeIndexMap=new Map,this.domainIndexMap=new Map)}clone(){return new vv(this.options)}getRange(){return this.options.range}getDomain(){var t,e;return this.sortedDomain||({domain:t,compare:e}=this.options,this.sortedDomain=e?[...t].sort(e):t),this.sortedDomain}}function mv(t){const e=t["domain"];var n=e.length;if(0===n)return{valueBandWidth:void 0,valueStep:void 0,adjustedRange:[]};const{range:r,paddingOuter:i,paddingInner:o,flex:a=[],round:s,align:l}=t;t=a,c=e.length;var u=0<(u=c-t.length)?[...t,...new Array(u).fill(1)]:u<0?t.slice(0,c):t,[c,t]=r,t=t-c,h=t/(2/n*i+1-1/n*o);const d=h*o/n;h-=n*d;const f=function(t){const e=Math.min(...t);return t.map(t=>t/e)}(u),p=h/f.reduce((t,e)=>t+e);u=new Map(e.map((t,e)=>{e=f[e]*p;return[t,s?Math.floor(e):e]}));const y=new Map(e.map((t,e)=>{e=f[e]*p+d;return[t,s?Math.floor(e):e]}));h=Array.from(y.values()).reduce((t,e)=>t+e),c+=(t-(h-h/n*o))*l;let g=s?Math.round(c):c;const v=new Array(n);for(let t=0;t<n;t+=1){v[t]=(m=g,Math.round(1e12*m)/1e12);var m=e[t];g+=y.get(m)}return{valueBandWidth:u,valueStep:y,adjustedRange:v}}class bv extends vv{constructor(t){super(t)}getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:void 0,flex:[]}}clone(){return new bv(this.options)}getStep(t){return void 0===this.valueStep?1:void 0===t?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return void 0===this.valueBandWidth?1:void 0===t?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){var{padding:t,paddingInner:e}=this.options;return 0<t?t:e}getPaddingOuter(){var{padding:t,paddingOuter:e}=this.options;return 0<t?t:e}rescale(){super.rescale();var{align:t,domain:e,range:n,round:r,flex:i}=this.options,{adjustedRange:t,valueBandWidth:n,valueStep:r}=mv({align:t,range:n,round:r,flex:i,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:e});this.valueStep=r,this.valueBandWidth=n,this.adjustedRange=t}}function xv(t,...e){return e.reduce((e,n)=>t=>e(n(t)),t)}function wv(e,n){return n-e?t=>(t-e)/(n-e):t=>.5}function kv(t,e,n,r,i){let o=n||0,a=r||t.length;const s=i||(t=>t);for(;o<a;){var l=Math.floor((o+a)/2);s(t[l])>e?a=l:o=l+1}return o}const Ev=Math.sqrt(50),_v=Math.sqrt(10),Sv=Math.sqrt(2);function Mv(t,e,n){e=(e-t)/Math.max(0,n),t=Math.floor(Math.log(e)/Math.LN10),n=e/10**t;return 0<=t?(n>=Ev?10:n>=_v?5:n>=Sv?2:1)*10**t:-(10**-t)/(n>=Ev?10:n>=_v?5:n>=Sv?2:1)}function Tv(t,e,n){n=Math.abs(e-t)/Math.max(0,n);let r=10**Math.floor(Math.log(n)/Math.LN10);n/=r;return n>=Ev?r*=10:n>=_v?r*=5:n>=Sv&&(r*=2),e<t?-r:r}const Ov=(t,e,n=5)=>{const r=[t,e];let i=0,o=r.length-1,a=r[i],s=r[o],l;return s<a&&([a,s]=[s,a],[i,o]=[o,i]),0<(l=Mv(a,s,n))?(a=Math.floor(a/l)*l,s=Math.ceil(s/l)*l,l=Mv(a,s,n)):l<0&&(a=Math.ceil(a*l)/l,s=Math.floor(s*l)/l,l=Mv(a,s,n)),0<l?(r[i]=Math.floor(a/l)*l,r[o]=Math.ceil(s/l)*l):l<0&&(r[i]=Math.ceil(a*l)/l,r[o]=Math.floor(s*l)/l),r},Pv=36e5,Av=864e5,Cv=7*Av;Av,Av;function Nv(t,n,s,r){const i=(t,e)=>{let n=e;for(;n&&r(t)%e!=0;)s(t,-1),--n;return t},l=(t,e)=>{e&&i(t,e),n(t)};const u=(t,e)=>{t=new Date(+t-1);return l(t,e),s(t,e),l(t),t};return{ceil:u,floor:(t,e)=>{t=new Date(+t);return l(t,e),t},range:(t,e,n,r)=>{const i=[];for(var o=Math.floor(n),a=r?u(t,n):u(t);+a<+e;s(a,o),l(a))i.push(new Date(+a));return i},duration:t}}Q=Nv(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),s=Nv(1e3,t=>{t.setMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getSeconds()),c=Nv(6e4,t=>{t.setSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getMinutes()),a=Nv(Pv,t=>{t.setMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Pv*e)},t=>t.getHours()),l=Nv(Av,t=>{t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Av*e)},t=>t.getDate()-1);const Lv=Nv(2592e6,t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e=1)=>{var n=t.getMonth();t.setMonth(n+e)},t=>t.getMonth());var r=Nv(Cv,t=>{t.setDate(t.getDate()-t.getDay()%7),t.setHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Cv*e)},t=>{var e=Lv.floor(t),t=new Date(+t);return Math.floor((+t-+e)/Cv)}),b=Nv(31536e6,t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e=1)=>{var n=t.getFullYear();t.setFullYear(n+e)},t=>t.getFullYear());const Iv={millisecond:Q,second:s,minute:c,hour:a,day:l,week:r,month:Lv,year:b};tt=Nv(1,t=>t,(t,e=1)=>{t.setTime(+t+e)},t=>t.getTime()),u=Nv(1e3,t=>{t.setUTCMilliseconds(0)},(t,e=1)=>{t.setTime(+t+1e3*e)},t=>t.getUTCSeconds()),dt=Nv(6e4,t=>{t.setUTCSeconds(0,0)},(t,e=1)=>{t.setTime(+t+6e4*e)},t=>t.getUTCMinutes()),_t=Nv(Pv,t=>{t.setUTCMinutes(0,0,0)},(t,e=1)=>{t.setTime(+t+Pv*e)},t=>t.getUTCHours()),ft=Nv(Av,t=>{t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Av*e)},t=>t.getUTCDate()-1);const Rv=Nv(2592e6,t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{var n=t.getUTCMonth();t.setUTCMonth(n+e)},t=>t.getUTCMonth());ge=Nv(Cv,t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7)%7),t.setUTCHours(0,0,0,0)},(t,e=1)=>{t.setTime(+t+Cv*e)},t=>{var e=Rv.floor(t),t=new Date(+t);return Math.floor((+t-+e)/Cv)}),o=Nv(31536e6,t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e=1)=>{var n=t.getUTCFullYear();t.setUTCFullYear(n+e)},t=>t.getUTCFullYear());const Dv={millisecond:tt,second:u,minute:dt,hour:_t,day:ft,week:ge,month:Rv,year:o};function jv(t,e,n,r,i){var t=+t,e=+e,{tickIntervals:i,year:o,millisecond:a}=function(t){var{year:t,month:e,week:n,day:r,hour:i,minute:o,second:a,millisecond:s}=t?Dv:Iv;return{tickIntervals:[[a,1],[a,5],[a,15],[a,30],[o,1],[o,5],[o,15],[o,30],[i,1],[i,3],[i,6],[i,12],[r,1],[r,2],[n,1],[e,1],[e,3],[t,1]],year:t,millisecond:s}}(i),s=([t,e])=>t.duration*e,n=r?(e-t)/r:n||5,l=r||(e-t)/n,u=i.length,c=kv(i,l,0,u,s);let h;return h=c===u?[o,Tv(t/o.duration,e/o.duration,n)]:c?([u,o]=l/s(i[c-1])<s(i[c])/l?i[c-1]:i[c],[u,r?Math.ceil(r/u.duration):o]):[a,Math.max(Tv(t,e,n),1)]}const Bv=(t,e,n,r,i)=>{var o=e<t,a=o?e:t,t=o?t:e;const[s,l]=jv(a,t,n,r,i),u=[s.floor(a,l),s.ceil(t,l)];return o?u.reverse():u};function Fv(t){return!pp(t)&&!fp(t)&&!Number.isNaN(t)}const zv=e=>t=>-e(-t),Vv=(t,e)=>{const n=Math.log(t);t=t===Math.E?Math.log:t=>Math.log(t)/n;return e?zv(t):t},Gv=(e,t)=>{var n=e===Math.E?Math.exp:t=>e**t;return t?zv(n):n},Hv=(t,e,n,r)=>{var i=t<0;const o=Vv(r,i),a=Gv(r,i);r=e<t,i=r?t:e;const s=[a(Math.floor(o(r?e:t))),a(Math.ceil(o(i)))];return r?s.reverse():s};var Wv,n={exports:{}},J={exports:{}},Uv=function(t){return!(!t||"string"==typeof t)&&(t instanceof Array||Array.isArray(t)||0<=t.length&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&"String"!==t.constructor.name))},Yv=Array.prototype.concat,qv=Array.prototype.slice,Xv=J.exports=function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];Uv(i)?e=Yv.call(e,qv.call(i)):e.push(i)}return e},Zv=(Xv.wrap=function(t){return function(){return t(Xv(arguments))}},{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),Kv=J.exports,$v=Object.hasOwnProperty,Jv=Object.create(null);for(Wv in Zv)$v.call(Zv,Wv)&&(Jv[Zv[Wv]]=Wv);var Qv=n.exports={to:{},get:{}};function tm(t,e,n){return Math.min(Math.max(e,t),n)}function em(t){t=Math.round(t).toString(16).toUpperCase();return t.length<2?"0"+t:t}Qv.get=function(t){var e,n;switch(t.substring(0,3).toLowerCase()){case"hsl":e=Qv.get.hsl(t),n="hsl";break;case"hwb":e=Qv.get.hwb(t),n="hwb";break;default:e=Qv.get.rgb(t),n="rgb"}return e?{model:n,value:e}:null},Qv.get.rgb=function(t){if(!t)return null;var e,n,r,i=[0,0,0,1];if(e=t.match(/^#([a-f0-9]{6})([a-f0-9]{2})?$/i)){for(r=e[2],e=e[1],n=0;n<3;n++){var o=2*n;i[n]=parseInt(e.slice(o,2+o),16)}r&&(i[3]=parseInt(r,16)/255)}else if(e=t.match(/^#([a-f0-9]{3,4})$/i)){for(r=(e=e[1])[3],n=0;n<3;n++)i[n]=parseInt(e[n]+e[n],16);r&&(i[3]=parseInt(r+r,16)/255)}else{if(e=t.match(/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/))for(n=0;n<3;n++)i[n]=parseInt(e[n+1],0);else{if(!(e=t.match(/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/)))return(e=t.match(/^(\w+)$/))?"transparent"===e[1]?[0,0,0,0]:$v.call(Zv,e[1])?((i=Zv[e[1]])[3]=1,i):null:null;for(n=0;n<3;n++)i[n]=Math.round(2.55*parseFloat(e[n+1]))}e[4]&&(e[5]?i[3]=.01*parseFloat(e[4]):i[3]=parseFloat(e[4]))}for(n=0;n<3;n++)i[n]=tm(i[n],0,255);return i[3]=tm(i[3],0,1),i},Qv.get.hsl=function(t){if(!t)return null;var e,t=t.match(/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);return t?(e=parseFloat(t[4]),[(parseFloat(t[1])%360+360)%360,tm(parseFloat(t[2]),0,100),tm(parseFloat(t[3]),0,100),tm(isNaN(e)?1:e,0,1)]):null},Qv.get.hwb=function(t){if(!t)return null;var e,t=t.match(/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/);return t?(e=parseFloat(t[4]),[(parseFloat(t[1])%360+360)%360,tm(parseFloat(t[2]),0,100),tm(parseFloat(t[3]),0,100),tm(isNaN(e)?1:e,0,1)]):null},Qv.to.hex=function(){var t=Kv(arguments);return"#"+em(t[0])+em(t[1])+em(t[2])+(t[3]<1?em(Math.round(255*t[3])):"")},Qv.to.rgb=function(){var t=Kv(arguments);return t.length<4||1===t[3]?"rgb("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+")":"rgba("+Math.round(t[0])+", "+Math.round(t[1])+", "+Math.round(t[2])+", "+t[3]+")"},Qv.to.rgb.percent=function(){var t=Kv(arguments),e=Math.round(t[0]/255*100),n=Math.round(t[1]/255*100),r=Math.round(t[2]/255*100);return t.length<4||1===t[3]?"rgb("+e+"%, "+n+"%, "+r+"%)":"rgba("+e+"%, "+n+"%, "+r+"%, "+t[3]+")"},Qv.to.hsl=function(){var t=Kv(arguments);return t.length<4||1===t[3]?"hsl("+t[0]+", "+t[1]+"%, "+t[2]+"%)":"hsla("+t[0]+", "+t[1]+"%, "+t[2]+"%, "+t[3]+")"},Qv.to.hwb=function(){var t=Kv(arguments),e="";return 4<=t.length&&1!==t[3]&&(e=", "+t[3]),"hwb("+t[0]+", "+t[1]+"%, "+t[2]+"%"+e+")"},Qv.to.keyword=function(t){return Jv[t.slice(0,3)]};var nm=n.exports;function rm(t,e,n){let r=n;return r<0&&(r+=1),1<r&&--r,r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function im(t){t=nm.get(t);if(!t)return null;var e,n,{model:t,value:r}=t;return"rgb"===t?r:"hsl"===t?(r=(t=r)[0]/360,e=t[1]/100,n=t[2]/100,t=t[3],0==e?[255*n,255*n,255*n,t]:[255*rm(n=2*n-(e=n<.5?n*(1+e):n+e-n*e),e,r+1/3),255*rm(n,e,r),255*rm(n,e,r-1/3),t]):null}const om=(e,n)=>t=>e*(1-t)+n*t,am=(t,e)=>{{if("number"==typeof t&&"number"==typeof e)return om(t,e);if("string"!=typeof t||"string"!=typeof e)return()=>t;{var n=t,r=e;const l=im(n),u=im(r);return null===l||null===u?l?()=>n:()=>r:e=>{const n=new Array(4);for(let t=0;t<4;t+=1){var r=l[t],i=u[t];n[t]=r*(1-e)+i*e}var[t,o,a,s]=n;return`rgba(${Math.round(t)}, ${Math.round(o)}, ${Math.round(a)}, ${s})`}}}},sm=(t,e)=>{const n=om(t,e);return t=>Math.round(n(t))};const lm=(t,e,n)=>{let r,i,o=t,a=e;if(o===a&&0<n)return[o];let s=Mv(o,a,n);if(0===s||!Number.isFinite(s))return[];if(0<s){o=Math.ceil(o/s),a=Math.floor(a/s),i=new Array(r=Math.ceil(a-o+1));for(let t=0;t<r;t+=1)i[t]=(o+t)*s}else{s=-s,o=Math.ceil(o*s),a=Math.floor(a*s),i=new Array(r=Math.ceil(a-o+1));for(let t=0;t<r;t+=1)i[t]=(o+t)/s}return i};function um(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}const cm=[1,5,2,2.5,4,3],hm=100*Number.EPSILON;const dm=(n,r,t=5,i=!0,o=cm,a=[.25,.2,.5,.05])=>{var s,l,u,c,h,d,f,p=t<0?0:Math.round(t);if(Number.isNaN(n)||Number.isNaN(r)||"number"!=typeof n||"number"!=typeof r||!p)return[];if(r-n<1e-15||1===p)return[n];const y={score:-2,lmin:0,lmax:0,lstep:0};let g=1;for(;g<1/0;){for(let t=0;t<o.length;t+=1){var v=o[t],m=(c=v,h=o,d=g,f=void 0,f=Np(h),1-Pp(h,c)/(f-1)-d+1);if(a[0]*m+a[1]+a[2]+a[3]<y.score){g=1/0;break}let e=2;for(;e<1/0;){x=e;var b=(u=p)<=x?2-(x-1)/(u-1):1;if(a[0]*m+a[1]+a[2]*b+a[3]<y.score)break;var x=(r-n)/(e+1)/g/v;let t=Math.ceil(Math.log10(x));for(;t<1/0;){var w=g*v*10**t,k=(_=r,k=w*(e-1),(_-=n)<k?1-((k-_)/2)**2/(.1*_)**2:1);if(a[0]*m+a[1]*k+a[2]*b+a[3]<y.score)break;var E=Math.floor(r/w)*g-(e-1)*g,_=Math.ceil(n/w)*g;if(E<=_){var S=_-E;for(let t=0;t<=S;t+=1){var M=(E+t)*(w/g),T=M+w*(e-1),O=w,P=function(t,e,n,r,i,o){var a=Np(e),e=Pp(e,t);let s=0;return t=(r%o+o)%o,1-e/(a-1)-n+(s=(t<hm||o-t<hm)&&r<=0&&0<=i?1:s)}(v,o,g,M,T,O),A=1-.5*((r-T)**2+(n-M)**2)/(.1*(r-n))**2,C=(s=e,C=n,s=(s-1)/(T-(N=M)),l=((l=p)-1)/(Math.max(T,r)-Math.min(C,N)),2-Math.max(s/l,l/s)),N=a[0]*P+a[1]*A+a[2]*C+ +a[3];N>y.score&&(!i||M<=n&&r<=T)&&(y.lmin=M,y.lmax=T,y.lstep=O,y.score=N)}}t+=1}e+=1}}g+=1}var t=um(y.lmax),e=um(y.lmin),L=um(y.lstep),I=Math.floor((t=(t-e)/L,Math.round(1e12*t)/1e12))+1;const R=new Array(I);R[0]=um(e);for(let t=1;t<I;t+=1)R[t]=um(R[t-1]+L);return R};class fm extends fv{getDefaultOptions(){return{domain:[0,1],range:[0,1],tickCount:5,unknown:void 0,tickMethod:dm}}map(t){return Fv(t)?t:this.options.unknown}invert(t){return this.map(t)}clone(){return new fm(this.options)}getTicks(){const{domain:t,tickCount:e,tickMethod:n}=this.options;var[r,i]=t;return ap(r)&&ap(i)?n(r,i,e):[]}}const pm=(t,e,n)=>{var[t,r]=t,[e,i]=e;let o,a;return xv(a=t<r?(o=wv(t,r),n(e,i)):(o=wv(r,t),n(i,e)),o)},ym=(r,t,e)=>{const i=Math.min(r.length,t.length)-1,o=new Array(i),a=new Array(i);var n=r[0]>r[i],s=n?[...r].reverse():r,l=n?[...t].reverse():t;for(let t=0;t<i;t+=1)o[t]=wv(s[t],s[t+1]),a[t]=e(l[t],l[t+1]);return t=>{var e=kv(r,t,1,i)-1,n=o[e];return xv(a[e],n)(t)}},gm=(t,e,n,r)=>{const i=2<Math.min(t.length,e.length)?ym:pm;r=r?sm:n;return i(t,e,r)};class vm extends fv{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:om,tickCount:5}}map(t){return Fv(t)?this.output(t):this.options.unknown}invert(t){return Fv(t)?this.input(t):this.options.unknown}nice(){var t,e,n,r;this.options.nice&&([t,e,n,...r]=this.getTickMethodOptions(),this.options.domain=this.chooseNice()(t,e,n,...r))}getTicks(){const t=this.options["tickMethod"];var[e,n,r,...i]=this.getTickMethodOptions();return t(e,n,r,...i)}getTickMethodOptions(){var{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}chooseNice(){return Ov}rescale(){this.nice();var[t,e]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,e,this.chooseClamp(e))}chooseClamp(t){var{clamp:e,range:n}=this.options,t=this.options.domain.map(t),n=Math.min(t.length,n.length);if(e){e=t[0],t=t[n-1];const r=t<e?t:e,i=t<e?e:t;return t=>Math.min(Math.max(r,t),i)}return Tp}composeOutput(t,e){const{domain:n,range:r,round:i,interpolate:o}=this.options;var a=gm(n.map(t),r,o,i);this.output=xv(a,e,t)}composeInput(t,e,n){const{domain:r,range:i}=this.options;t=gm(i,r.map(t),om);this.input=xv(e,n,t)}}class mm extends vm{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:am,tickMethod:lm,tickCount:5}}chooseTransforms(){return[Tp,Tp]}clone(){return new mm(this.options)}}class bm extends bv{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,padding:0,unknown:void 0,paddingInner:1,paddingOuter:0}}constructor(t){super(t)}getPaddingInner(){return 1}clone(){return new bm(this.options)}update(t){super.update(t)}getPaddingOuter(){return this.options.padding}}const xm=t=>t<0?-Math.sqrt(-t):Math.sqrt(t);class wm extends vm{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,exponent:2,interpolate:am,tickMethod:lm,tickCount:5}}constructor(t){super(t)}chooseTransforms(){var t=this.options["exponent"];if(1===t)return[Tp,Tp];var e,n,r=.5===t?xm:(e=t,t=>t<0?-((-t)**e):t**e);return n=t,[r,t=>t<0?-((-t)**(1/n)):t**(1/n)]}clone(){return new wm(this.options)}}class km extends fv{constructor(t){super(t)}getDefaultOptions(){return{domain:[.5],range:[0,1]}}map(t){if(!Fv(t))return this.options.unknown;t=kv(this.thresholds,t,0,this.n);return this.options.range[t]}invert(t){const e=this.options["range"];var t=e.indexOf(t),n=this.thresholds;return[n[t-1],n[t]]}clone(){return new km(this.options)}rescale(){var{domain:t,range:e}=this.options;this.n=Math.min(t.length,e.length-1),this.thresholds=t}}const Em=(t,e,n,r=10)=>{var i=t<0;const o=Gv(r,i),a=Vv(r,i);var s=e<t,l=s?e:t,u=s?t:e;let c=a(l),h=a(u),d=[];if(!(r%1)&&h-c<n){if(c=Math.floor(c),h=Math.ceil(h),i)for(;c<=h;c+=1){var f=o(c);for(let t=r-1;1<=t;--t){var p=f*t;if(u<p)break;l<=p&&d.push(p)}}else for(;c<=h;c+=1){var y=o(c);for(let t=1;t<r;t+=1){var g=y*t;if(u<g)break;l<=g&&d.push(g)}}2*d.length<n&&(d=lm(l,u,n))}else d=lm(c,h,Math.min(h-c,n)).map(o);return s?d.reverse():d};class _m extends vm{getDefaultOptions(){return{domain:[1,10],range:[0,1],base:10,interpolate:am,tickMethod:Em,tickCount:5}}chooseNice(){return Hv}getTickMethodOptions(){var{domain:t,tickCount:e,base:n}=this.options;return[t[0],t[t.length-1],e,n]}chooseTransforms(){var{base:t,domain:e}=this.options,e=e[0]<0;return[Vv(t,e),Gv(t,e)]}clone(){return new _m(this.options)}}class Sm extends km{getDefaultOptions(){return{domain:[0,1],range:[.5],nice:!1,tickCount:5,tickMethod:dm}}constructor(t){super(t)}nice(){var t,e,n=this.options["nice"];n&&([n,t,e]=this.getTickMethodOptions(),this.options.domain=Ov(n,t,e))}getTicks(){const t=this.options["tickMethod"];var[e,n,r]=this.getTickMethodOptions();return t(e,n,r)}getTickMethodOptions(){var{domain:t,tickCount:e}=this.options;return[t[0],t[t.length-1],e]}rescale(){this.nice();var{range:t,domain:e}=this.options,[n,r]=e;this.n=t.length-1,this.thresholds=new Array(this.n);for(let t=0;t<this.n;t+=1)this.thresholds[t]=((t+1)*r-(t-this.n)*n)/(this.n+1)}invert(t){var[t,e]=super.invert(t),[n,r]=this.options.domain;return void 0===t&&void 0===e?[t,e]:[t||n,e||r]}getThresholds(){return this.thresholds}clone(){return new Sm(this.options)}}function Mm(t,e,n=!1){const r=t,i=(n||r.sort((t,e)=>t-e),[]);for(let t=1;t<e;t+=1)i.push(function(t,e){if(n=t.length){if(n<2)return t[n-1];var n=(n-1)*e,e=Math.floor(n),r=t[e];return r+(t[e+1]-r)*(n-e)}}(r,t/e));return i}class Tm extends km{getDefaultOptions(){return{domain:[],range:[],tickCount:5,unknown:void 0,tickMethod:dm}}constructor(t){super(t)}rescale(){var{domain:t,range:e}=this.options;this.n=e.length-1,this.thresholds=Mm(t,this.n+1,!1)}invert(t){var[t,e]=super.invert(t),n=this.options["domain"],r=n[0],n=n[n.length-1];return void 0===t&&void 0===e?[t,e]:[t||r,e||n]}getThresholds(){return this.thresholds}clone(){return new Tm(this.options)}getTicks(){const{tickCount:t,domain:e,tickMethod:n}=this.options;var r=e.length-1,i=e[0],r=e[r];return n(i,r,t)}}var Om=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,Pm=/\[([^]*?)\]/gm;function Am(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}function Cm(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o,a=i[r];for(o in a)t[o]=a[o]}return t}function Nm(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t}var h=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Z=["January","February","March","April","May","June","July","August","September","October","November","December"],at=Am(Z,3),Lm=Cm({},{dayNamesShort:Am(h,3),dayNames:h,monthNamesShort:at,monthNames:Z,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][3<t%10?0:(t-t%10!=10?1:0)*t%10]}}),Im={D:function(t){return String(t.getDate())},DD:function(t){return Nm(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return Nm(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return Nm(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return Nm(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return Nm(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return Nm(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return Nm(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return Nm(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return Nm(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return Nm(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return Nm(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return(t.getHours()<12?e.amPm[0]:e.amPm[1]).toUpperCase()},ZZ:function(t){t=t.getTimezoneOffset();return(0<t?"-":"+")+Nm(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)},Z:function(t){t=t.getTimezoneOffset();return(0<t?"-":"+")+Nm(Math.floor(Math.abs(t)/60),2)+":"+Nm(Math.abs(t)%60,2)}},Rm={default:"ddd MMM DD YYYY HH:mm:ss",shortDate:"M/D/YY",mediumDate:"MMM D, YYYY",longDate:"MMMM D, YYYY",fullDate:"dddd, MMMM D, YYYY",isoDate:"YYYY-MM-DD",isoDateTime:"YYYY-MM-DDTHH:mm:ssZ",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"};const Dm=(t,e,n,r,i)=>{var o=e<t,a=o?e:t,t=o?t:e;const[s,l]=jv(a,t,n,r,i),u=s.range(a,new Date(+t+1),l,!0);return o?u.reverse():u};function jm(t){var e=t.getTimezoneOffset();const n=new Date(t);return n.setMinutes(n.getMinutes()+e,n.getSeconds(),n.getMilliseconds()),n}class Bm extends vm{getDefaultOptions(){return{domain:[new Date(2e3,0,1),new Date(2e3,0,2)],range:[0,1],nice:!1,tickCount:5,tickInterval:void 0,unknown:void 0,clamp:!1,tickMethod:Dm,interpolate:om,mask:void 0,utc:!1}}chooseTransforms(){return[t=>+t,t=>new Date(t)]}chooseNice(){return Bv}getTickMethodOptions(){var{domain:t,tickCount:e,tickInterval:n,utc:r}=this.options;return[t[0],t[t.length-1],e,n,r]}getFormatter(){const{mask:o,utc:t}=this.options,a=t?Dv:Iv,s=t?jm:Tp;return t=>{var e=s(t),t=o||function(t,e){const{second:n,minute:r,hour:i,day:o,week:a,month:s,year:l}=e;return n.floor(t)<t?".SSS":r.floor(t)<t?":ss":i.floor(t)<t?"hh:mm":o.floor(t)<t?"hh A":s.floor(t)<t?a.floor(t)<t?"MMM DD":"ddd DD":l.floor(t)<t?"MMMM":"YYYY"}(t,a),n=void 0;if(void 0===t&&(t=Rm.default),void 0===n&&(n={}),"number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date pass to format");var r=[],i=(t=(t=Rm[t]||t).replace(Pm,function(t,e){return r.push(e),"@@@"}),Cm(Cm({},Lm),n));return(t=t.replace(Om,function(t){return Im[t](e,i)})).replace(/@@@/g,function(){return r.shift()})}}clone(){return new Bm(this.options)}}const Fm=t=>new bv(t),zm=(Fm.props={},t=>new mm(t)),Vm=(zm.props={},t=>new vv(t)),Gm=(Vm.props={},t=>new fm(t)),Hm=(Gm.props={},t=>new bm(t)),Wm=(Hm.props={},t=>new Bm(t)),Um=(Wm.props={},t=>new _m(t)),Ym=(Um.props={},t=>new wm(t)),qm=(Ym.props={},t=>new km(t)),Xm=(qm.props={},t=>new Tm(t)),Zm=(Xm.props={},t=>new Sm(t)),Km=(Zm.props={},Math.PI),$m=2*Km,Jm=1e-6,Qm=$m-Jm;function t1(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function e1(){return new t1}function n1(t){return function(){return t}}t1.prototype=e1.prototype={constructor:t1,moveTo:function(t,e){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(t,e){this._+="L"+(this._x1=+t)+","+(this._y1=+e)},quadraticCurveTo:function(t,e,n,r){this._+="Q"+ +t+","+ +e+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(t,e,n,r,i,o){this._+="C"+ +t+","+ +e+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(t,e,n,r,i){var o,a,s=this._x1,l=this._y1,u=(n=+n)-(t=+t),c=(r=+r)-(e=+e),h=s-t,d=l-e,f=h*h+d*d;if((i=+i)<0)throw new Error("negative radius: "+i);null===this._x1?this._+="M"+(this._x1=t)+","+(this._y1=e):f>Jm&&(Math.abs(d*u-c*h)>Jm&&i?(a=u*u+c*c,r=(n=n-s)*n+(s=r-l)*s,l=Math.sqrt(a),o=Math.sqrt(f),f=(a=i*Math.tan((Km-Math.acos((a+f-r)/(2*l*o)))/2))/o,r=a/l,Math.abs(f-1)>Jm&&(this._+="L"+(t+f*h)+","+(e+f*d)),this._+="A"+i+","+i+",0,0,"+ +(h*s<d*n)+","+(this._x1=t+r*u)+","+(this._y1=e+r*c)):this._+="L"+(this._x1=t)+","+(this._y1=e))},arc:function(t,e,n,r,i,o){t=+t,e=+e,o=!!o;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),l=t+a,u=e+s,c=1^o,o=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+l+","+u:(Math.abs(this._x1-l)>Jm||Math.abs(this._y1-u)>Jm)&&(this._+="L"+l+","+u),n&&((o=o<0?o%$m+$m:o)>Qm?this._+="A"+n+","+n+",0,1,"+c+","+(t-a)+","+(e-s)+"A"+n+","+n+",0,1,"+c+","+(this._x1=l)+","+(this._y1=u):o>Jm&&(this._+="A"+n+","+n+",0,"+ +(o>=Km)+","+c+","+(this._x1=t+n*Math.cos(i))+","+(this._y1=e+n*Math.sin(i))))},rect:function(t,e,n,r){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+e)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};const r1=Math.abs,i1=Math.atan2,o1=Math.cos,a1=Math.max,s1=Math.min,l1=Math.sin,u1=Math.sqrt,c1=1e-12,h1=Math.PI,d1=h1/2,f1=2*h1;function p1(t){return 1<=t?d1:t<=-1?-d1:Math.asin(t)}function y1(t){return t.innerRadius}function g1(t){return t.outerRadius}function v1(t){return t.startAngle}function m1(t){return t.endAngle}function b1(t){return t&&t.padAngle}function x1(t,e,n,r,i,o,a){var s=t-n,l=e-r,a=(a?o:-o)/u1(s*s+l*l),l=a*l,a=-a*s,s=t+l,t=e+a,e=n+l,n=r+a,r=(s+e)/2,u=(t+n)/2,c=e-s,h=n-t,d=c*c+h*h,o=i-o,s=s*n-e*t,n=(h<0?-1:1)*u1(a1(0,o*o*d-s*s)),e=(s*h-c*n)/d,t=(-s*c-h*n)/d,f=(s*h+c*n)/d,s=(-s*c+h*n)/d,c=e-r,h=t-u,n=f-r,d=s-u;return n*n+d*d<c*c+h*h&&(e=f,t=s),{cx:e,cy:t,x01:-l,y01:-a,x11:e*(i/o-1),y11:t*(i/o-1)}}function w1(){var O=y1,P=g1,A=n1(0),C=null,N=v1,L=m1,I=b1,R=null;function e(){var t,e,n,r,i,o,a,s,l,u,c,h,d,f,p,y,g,v,m,b,x,w,k=+O.apply(this,arguments),E=+P.apply(this,arguments),_=N.apply(this,arguments)-d1,S=L.apply(this,arguments)-d1,M=r1(S-_),T=_<S;if(R=R||(t=e1()),E<k&&(e=E,E=k,k=e),E>c1?M>f1-c1?(R.moveTo(E*o1(_),E*l1(_)),R.arc(0,0,E,_,S,!T),k>c1&&(R.moveTo(k*o1(S),k*l1(S)),R.arc(0,0,k,S,_,T))):(r=e=_,i=n=S,a=o=M,d=(c=I.apply(this,arguments)/2)>c1&&(C?+C.apply(this,arguments):u1(k*k+E*E)),w=x=s=s1(r1(E-k)/2,+A.apply(this,arguments)),d>c1&&(h=p1(d/k*l1(c)),d=p1(d/E*l1(c)),(o-=2*h)>c1?(r+=h*=T?1:-1,i-=h):(o=0,r=i=(_+S)/2),(a-=2*d)>c1?(e+=d*=T?1:-1,n-=d):(a=0,e=n=(_+S)/2)),c=E*o1(e),h=E*l1(e),d=k*o1(i),_=k*l1(i),s>c1&&(f=E*o1(n),p=E*l1(n),y=k*o1(r),g=k*l1(r),M<h1&&(S=function(t,e,n,r,i,o,a,s){var l=(s=s-o)*(n=n-t)-(a=a-i)*(r=r-e);if(!(l*l<c1))return[t+(l=(a*(e-o)-s*(t-i))/l)*n,e+l*r]}(c,h,y,g,f,p,d,_))&&(M=c-S[0],m=h-S[1],b=f-S[0],v=p-S[1],m=1/l1((1<(M=(M*b+m*v)/(u1(M*M+m*m)*u1(b*b+v*v)))?0:M<-1?h1:Math.acos(M))/2),b=u1(S[0]*S[0]+S[1]*S[1]),x=s1(s,(k-b)/(m-1)),w=s1(s,(E-b)/(1+m)))),a>c1?w>c1?(l=x1(y,g,c,h,E,w,T),u=x1(f,p,d,_,E,w,T),R.moveTo(l.cx+l.x01,l.cy+l.y01),w<s?R.arc(l.cx,l.cy,w,i1(l.y01,l.x01),i1(u.y01,u.x01),!T):(R.arc(l.cx,l.cy,w,i1(l.y01,l.x01),i1(l.y11,l.x11),!T),R.arc(0,0,E,i1(l.cy+l.y11,l.cx+l.x11),i1(u.cy+u.y11,u.cx+u.x11),!T),R.arc(u.cx,u.cy,w,i1(u.y11,u.x11),i1(u.y01,u.x01),!T))):(R.moveTo(c,h),R.arc(0,0,E,e,n,!T)):R.moveTo(c,h),k>c1&&o>c1?x>c1?(l=x1(d,_,f,p,k,-x,T),u=x1(c,h,y,g,k,-x,T),R.lineTo(l.cx+l.x01,l.cy+l.y01),x<s?R.arc(l.cx,l.cy,x,i1(l.y01,l.x01),i1(u.y01,u.x01),!T):(R.arc(l.cx,l.cy,x,i1(l.y01,l.x01),i1(l.y11,l.x11),!T),R.arc(0,0,k,i1(l.cy+l.y11,l.cx+l.x11),i1(u.cy+u.y11,u.cx+u.x11),T),R.arc(u.cx,u.cy,x,i1(u.y11,u.x11),i1(u.y01,u.x01),!T))):R.arc(0,0,k,i,r,T):R.lineTo(d,_)):R.moveTo(0,0),R.closePath(),t)return R=null,t+""||null}return e.centroid=function(){var t=(+O.apply(this,arguments)+ +P.apply(this,arguments))/2,e=(+N.apply(this,arguments)+ +L.apply(this,arguments))/2-h1/2;return[o1(e)*t,l1(e)*t]},e.innerRadius=function(t){return arguments.length?(O="function"==typeof t?t:n1(+t),e):O},e.outerRadius=function(t){return arguments.length?(P="function"==typeof t?t:n1(+t),e):P},e.cornerRadius=function(t){return arguments.length?(A="function"==typeof t?t:n1(+t),e):A},e.padRadius=function(t){return arguments.length?(C=null==t?null:"function"==typeof t?t:n1(+t),e):C},e.startAngle=function(t){return arguments.length?(N="function"==typeof t?t:n1(+t),e):N},e.endAngle=function(t){return arguments.length?(L="function"==typeof t?t:n1(+t),e):L},e.padAngle=function(t){return arguments.length?(I="function"==typeof t?t:n1(+t),e):I},e.context=function(t){return arguments.length?(R=null==t?null:t,e):R},e}function k1(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function E1(t){this._context=t}function _1(t){return new E1(t)}function S1(t){return t[0]}function M1(t){return t[1]}function T1(a,s){var l=n1(!0),u=null,c=_1,h=null;function e(t){var e,n,r,i=(t=k1(t)).length,o=!1;for(null==u&&(h=c(r=e1())),e=0;e<=i;++e)!(e<i&&l(n=t[e],e,t))===o&&((o=!o)?h.lineStart():h.lineEnd()),o&&h.point(+a(n,e,t),+s(n,e,t));if(r)return h=null,r+""||null}return a="function"==typeof a?a:void 0===a?S1:n1(a),s="function"==typeof s?s:void 0===s?M1:n1(s),e.x=function(t){return arguments.length?(a="function"==typeof t?t:n1(+t),e):a},e.y=function(t){return arguments.length?(s="function"==typeof t?t:n1(+t),e):s},e.defined=function(t){return arguments.length?(l="function"==typeof t?t:n1(!!t),e):l},e.curve=function(t){return arguments.length?(c=t,null!=u&&(h=c(u)),e):c},e.context=function(t){return arguments.length?(null==t?u=h=null:h=c(u=t),e):u},e}function O1(c,h,d){var f=null,p=n1(!0),y=null,g=_1,v=null;function e(t){var e,n,r,i,o,a=(t=k1(t)).length,s=!1,l=new Array(a),u=new Array(a);for(null==y&&(v=g(o=e1())),e=0;e<=a;++e){if(!(e<a&&p(i=t[e],e,t))===s)if(s=!s)n=e,v.areaStart(),v.lineStart();else{for(v.lineEnd(),v.lineStart(),r=e-1;n<=r;--r)v.point(l[r],u[r]);v.lineEnd(),v.areaEnd()}s&&(l[e]=+c(i,e,t),u[e]=+h(i,e,t),v.point(f?+f(i,e,t):l[e],d?+d(i,e,t):u[e]))}if(o)return v=null,o+""||null}function t(){return T1().defined(p).curve(g).context(y)}return c="function"==typeof c?c:void 0===c?S1:n1(+c),h="function"==typeof h?h:n1(void 0===h?0:+h),d="function"==typeof d?d:void 0===d?M1:n1(+d),e.x=function(t){return arguments.length?(c="function"==typeof t?t:n1(+t),f=null,e):c},e.x0=function(t){return arguments.length?(c="function"==typeof t?t:n1(+t),e):c},e.x1=function(t){return arguments.length?(f=null==t?null:"function"==typeof t?t:n1(+t),e):f},e.y=function(t){return arguments.length?(h="function"==typeof t?t:n1(+t),d=null,e):h},e.y0=function(t){return arguments.length?(h="function"==typeof t?t:n1(+t),e):h},e.y1=function(t){return arguments.length?(d=null==t?null:"function"==typeof t?t:n1(+t),e):d},e.lineX0=e.lineY0=function(){return t().x(c).y(h)},e.lineY1=function(){return t().x(c).y(d)},e.lineX1=function(){return t().x(f).y(h)},e.defined=function(t){return arguments.length?(p="function"==typeof t?t:n1(!!t),e):p},e.curve=function(t){return arguments.length?(g=t,null!=y&&(v=g(y)),e):g},e.context=function(t){return arguments.length?(null==t?y=v=null:v=g(y=t),e):y},e}E1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var P1=C1(_1);function A1(t){this._curve=t}function C1(e){function t(t){return new A1(e(t))}return t._curve=e,t}function N1(t){var e=t.curve;return t.angle=t.x,delete t.x,t.radius=t.y,delete t.y,t.curve=function(t){return arguments.length?e(C1(t)):e()._curve},t}function L1(){}function I1(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function R1(t,e){this._context=t,this._k=(1-e)/6}function D1(t,e){this._context=t,this._k=(1-e)/6}function j1(t,e,n){var r,i,o=t._x1,a=t._y1,s=t._x2,l=t._y2;t._l01_a>c1&&(r=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,i=3*t._l01_a*(t._l01_a+t._l12_a),o=(o*r-t._x0*t._l12_2a+t._x2*t._l01_2a)/i,a=(a*r-t._y0*t._l12_2a+t._y2*t._l01_2a)/i),t._l23_a>c1&&(r=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,i=3*t._l23_a*(t._l23_a+t._l12_a),s=(s*r+t._x1*t._l23_2a-e*t._l12_2a)/i,l=(l*r+t._y1*t._l23_2a-n*t._l12_2a)/i),t._context.bezierCurveTo(o,a,s,l,t._x2,t._y2)}function B1(t,e){this._context=t,this._alpha=e}A1.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(t,e){this._curve.point(e*Math.sin(t),e*-Math.cos(t))}},R1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:I1(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:I1(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function e(n){function t(t){return new R1(t,n)}return t.tension=function(t){return e(+t)},t}(0),D1.prototype={areaStart:L1,areaEnd:L1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:I1(this,t,e)}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}},function e(n){function t(t){return new D1(t,n)}return t.tension=function(t){return e(+t)},t}(0),B1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n,r;switch(t=+t,e=+e,this._point&&(n=this._x2-t,r=this._y2-e,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))),this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:j1(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var F1=function e(n){function t(t){return n?new B1(t,n):new R1(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);function z1(t,e){this._context=t,this._alpha=e}z1.prototype={areaStart:L1,areaEnd:L1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(t,e){var n,r;switch(t=+t,e=+e,this._point&&(n=this._x2-t,r=this._y2-e,this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))),this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:j1(this,t,e)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var V1=function e(n){function t(t){return n?new z1(t,n):new D1(t,0)}return t.alpha=function(t){return e(+t)},t}(.5);function G1(t){this._context=t}function H1(t){return new G1(t)}function W1(t,e){this._context=t,this._t=e}function U1(t){return new W1(t,.5)}function Y1(t){return new W1(t,0)}function q1(t){return new W1(t,1)}function X1([t,e],[n,r]){return[t-n,e-r]}function Z1([t,e],[n,r]){return Math.sqrt(Math.pow(t-n,2)+Math.pow(e-r,2))}function K1([t,e]){return Math.atan2(e,t)+Math.PI/2}function $1(t){let e=1/0,n=-1/0,r=1/0,i=-1/0;for(var[o,a]of t)e=Math.min(o,e),n=Math.max(o,n),r=Math.min(a,r),i=Math.max(a,i);var t=n-e,s=i-r;return[e,r,t,s]}function J1(t){return t}function Q1(t){return t.reduce((n,r)=>e=>F(this,void 0,void 0,function*(){var t=yield n(e);return r(t)}),J1)}function tb(t=""){throw new Error(t)}function eb(t,e){var n,r,e=e["attributes"];const i=new Set(["id","className"]);for([n,r]of Object.entries(e))i.has(n)||t.attr(n,r)}function nb(t){return null!=t&&!Number.isNaN(t)}function rb(t,e){return t+(e-t)*Math.random()}function ib(t){return new ob([t],null,t,t.ownerDocument)}G1.prototype={areaStart:L1,areaEnd:L1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}},W1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),0<=this._line&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:var n;this._t<=0?(this._context.lineTo(this._x,e),this._context.lineTo(t,e)):(n=this._x*(1-this._t)+t*this._t,this._context.lineTo(n,this._y),this._context.lineTo(n,e))}this._x=t,this._y=e}};class ob{constructor(t=null,e=null,n=null,r=null,i=[null,null,null,null,null],o=[],a=[]){this._elements=Array.from(t),this._data=e,this._parent=n,this._document=r,this._enter=i[0],this._update=i[1],this._exit=i[2],this._merge=i[3],this._split=i[4],this._transitions=o,this._facetElements=a}selectAll(t){t="string"==typeof t?this._parent.querySelectorAll(t):t;return new ob(t,null,this._elements[0],this._document)}selectFacetAll(t){t="string"==typeof t?this._parent.querySelectorAll(t):t;return new ob(this._elements,null,this._parent,this._document,void 0,void 0,t)}select(t){t="string"==typeof t?this._parent.querySelectorAll(t)[0]||null:t;return new ob([t],null,t,this._document)}append(t){const e=t=>{if(this._document)return this._document.createElement(t,{});const e=ob.registry[t];return e?new e:tb("Unknown node type: "+t)},n="function"==typeof t?t:()=>e(t),r=[];if(null!==this._data){for(let t=0;t<this._data.length;t++){var i=this._data[t],[i,o]=Array.isArray(i)?i:[i,null];const s=n(i,t);s.__data__=i,null!==o&&(s.__fromElements__=o),this._parent.appendChild(s),r.push(s)}return new ob(r,null,this._parent,this._document)}for(let t=0;t<this._elements.length;t++){const l=this._elements[t];var a=l.__data__,a=n(a,t);l.appendChild(a),r.push(a)}return new ob(r,null,r[0],this._document)}data(e,n=t=>t,r=()=>null){const i=[],o=[],a=new Set(this._elements),s=[],l=new Set,u=new Map(this._elements.map((t,e)=>[n(t.__data__,e),t])),c=new Map(this._facetElements.map((t,e)=>[n(t.__data__,e),t])),h=Tg(this._elements,t=>r(t.__data__));for(let t=0;t<e.length;t++){var d=e[t],f=n(d,t),p=r(d,t);if(u.has(f)){const y=u.get(f);y.__data__=d,y.__facet__=!1,o.push(y),a.delete(y),u.delete(f)}else if(c.has(f)){const g=c.get(f);g.__data__=d,g.__facet__=!0,o.push(g),c.delete(f)}else if(h.has(f)){const Tg=h.get(f);s.push([d,Tg]);for(const v of Tg)a.delete(v);h.delete(f)}else if(u.has(p)){const m=u.get(p);m.__toData__?m.__toData__.push(d):m.__toData__=[d],l.add(m),a.delete(m)}else i.push(d)}var t=[new ob([],i,this._parent,this._document),new ob(o,null,this._parent,this._document),new ob(a,null,this._parent,this._document),new ob([],s,this._parent,this._document),new ob(l,null,this._parent,this._document)];return new ob(this._elements,null,this._parent,this._document,t)}merge(t){var e=[...this._elements,...t._elements],t=[...this._transitions,...t._transitions];return new ob(e,null,this._parent,this._document,void 0,t)}join(t=t=>t,e=t=>t,n=t=>t.remove(),r=t=>t,i=t=>t.remove()){t=t(this._enter);const o=e(this._update);e=n(this._exit),n=r(this._merge),r=i(this._split);return o.merge(t).merge(e).merge(n).merge(r)}remove(){for(let t=0;t<this._elements.length;t++){const e=this._elements[t],n=this._transitions[t];n?n.then(()=>e.remove()):e.remove()}return new ob([],null,this._parent,this._document,void 0,this._transitions)}each(e){for(let t=0;t<this._elements.length;t++){var n=this._elements[t],r=n.__data__;e.call(n,r,t)}return this}attr(n,r){const i="function"!=typeof r?()=>r:r;return this.each(function(t,e){void 0!==r&&(this[n]=i.call(this,t,e))})}style(n,r){const i="function"!=typeof r?()=>r:r;return this.each(function(t,e){void 0!==r&&(this.style[n]=i.call(this,t,e))})}transition(t){const n="function"!=typeof t?()=>t:t,r=this["_transitions"];return this.each(function(t,e){r[e]=n.call(this,t,e)})}on(t,e){return this.each(function(){this.addEventListener(t,e)}),this}call(t,...e){return t.call(this._parent,this,...e),this}node(){return this._elements[0]}nodes(){return this._elements}transitions(){return this._transitions}parent(){return this._parent}}function ab(t,e){for(var[n,r]of Object.entries(e))t.style(n,r)}function sb(n,t){return t.forEach((t,e)=>0===e?n.moveTo(t[0],t[1]):n.lineTo(t[0],t[1])),n.closePath(),n}function lb(t,e,n){var n=Object.assign({size:8},n)["size"],n="string"==typeof n?+parseFloat(n)/100*Z1(t,e):n,r=Math.PI/6,t=Math.atan2(e[1]-t[1],e[0]-t[0]),i=Math.PI/2-t-r,t=t-r;return[[e[0]-n*Math.sin(i),e[1]-n*Math.cos(i)],[e[0]-n*Math.cos(t),e[1]-n*Math.sin(t)]]}function ub(t,e,n,r,i){e=K1(X1(r,e))+Math.PI/2,n=K1(X1(r,n))+Math.PI/2;t.arc(r[0],r[1],i,e,n,n-e<0)}function cb(t,n){const r=new mm({domain:[n[0],n[n.length-1]],range:[0,100]});return`linear-gradient(${t.map((t,e)=>`${t} ${r.map(n[e])}%`).join(",")})`}ob.registry={g:Hh,rect:ed,circle:Fh,path:Zh,text:rd,ellipse:Vh,image:Uh,line:qh,polygon:$h,polyline:Qh,html:od};const hb=t=>{const c=t["colorAttribute"],h=I(t,["colorAttribute"]),d="stroke"===c?1:0;return(t,e,n,r)=>{var{radius:i=0}=h,r=r["defaultColor"],{color:r=r}=e,[o,a,,s]=Fg(n)?function(t){var[t,e,n,r]=t;return[r,t,e,n]}(t):t;if(!zg(n))return ib(new Zh).style("lineWidth",d).style("d",sb(e1(),t).toString()).style("stroke",r).style(c,r).call(ab,h).node();var{y:t,y1:e}=e,n=n.getCenter(),l=K1(X1(o,n)),a=K1(X1(a,n)),t=a===l&&t!==e?a+2*Math.PI:a,e={startAngle:l,endAngle:0<=t-l?t:2*Math.PI+t,innerRadius:Z1(s,n),outerRadius:Z1(o,n)};const u=w1().cornerRadius(i);return ib(new Zh({})).style("path",u(e)).style("transform",`translate(${n[0]}, ${n[1]})`).style("stroke",r).style(c,r).call(ab,h).node()}},db=(hb.props={defaultEnterAnimation:"scaleInY"},t=>hb(Object.assign({colorAttribute:"fill"},t))),fb=(db.props=Object.assign({},hb.props),t=>hb(Object.assign({colorAttribute:"stroke"},t)));fb.props=Object.assign({},hb.props);const pb=t=>{const{adjustPoints:s=function(t,e,n){var[t,r,i,o]=t;if(Fg(n)){const a=[(e?e[0]:r)[0],r[1]],s=[(e?e[3]:i)[0],i[1]];return[t,a,s,o]}const a=[r[0],(e?e[0]:r)[1]],s=[i[0],(e?e[3]:i)[1]];return[t,a,s,o]}}=t,l=I(t,["adjustPoints"]);return(t,e,n,r,i,...o)=>{var a=e["index"],a=i[a+1],t=s(t,a,n);return hb(Object.assign({colorAttribute:"fill"},l))(t,e,n,r,i,...o)}};function yb(t,e,n){var[t,r,i,o]=t;if(Fg(n)){const a=[e?e[0][0]:(r[0]+i[0])/2,r[1]],s=[e?e[3][0]:(r[0]+i[0])/2,i[1]];return[t,a,s,o]}const a=[r[0],e?e[0][1]:(r[1]+i[1])/2],s=[i[0],e?e[3][1]:(r[1]+i[1])/2];return[t,a,s,o]}pb.props={defaultEnterAnimation:"fadeIn"};const gb=t=>pb(Object.assign({adjustPoints:yb},t)),vb=(gb.props={defaultEnterAnimation:"fadeIn"},t=>{const{curve:l,gradient:u=!1}=t,c=I(t,["curve","gradient"]);return(t,e,n,r)=>{var{defaultColor:r,defaultSize:i}=r,{color:e=r,size:r=i,transform:i,seriesColor:o,seriesX:a}=e,n=zg(n)?[...t,t[0]]:t;const s=T1().x(t=>t[0]).y(t=>t[1]).curve(l);t=u&&o?cb(o,a):e;return ib(new Zh({})).style("d",s(n)).style("stroke",t).style("lineWidth",r).style("transform",i).call(ab,c).node()}}),mb=(vb.props={defaultEnterAnimation:"fadeIn"},t=>vb(Object.assign({curve:_1},t))),bb=(mb.props=Object.assign({},vb.props),t=>{var{alpha:e=.5}=t,t=I(t,["alpha"]);return vb(Object.assign({curve:F1.alpha(e)},t))}),xb=(bb.props=Object.assign({},vb.props),t=>vb(Object.assign({curve:q1},t))),wb=(xb.props=Object.assign({},vb.props),t=>vb(Object.assign({curve:Y1},t))),kb=(wb.props=Object.assign({},vb.props),t=>vb(Object.assign({curve:U1},t)));function Eb(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]}kb.props=Object.assign({},vb.props);var _b=Object.freeze({__proto__:null,point:Eb,square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]},triangleDown:function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]},hexagon:function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]},bowtie:function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]},line:function(t,e,n){return[["M",t,e+n],["L",t,e-n]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}});function Sb(t,e,n,r){var i,n=n["size"];return"fixed"!==t&&("normal"===t||function(t){const e=t.getOptions()["transformations"];return e.some(([t])=>"fisheye"===t)}(r))?([[t,r],[e,i]]=e,e=Math.abs((e-t)/2),t=Math.abs((i-r)/2),Math.max(0,(e+t)/2)):n}const x=t=>{const{colorAttribute:s,symbol:e,mode:l="auto"}=t,u=I(t,["colorAttribute","symbol","mode"]),c="stroke"===s?1:0,h=_b[e]||Eb;return(t,e,n,r)=>{var r=r["defaultColor"],{color:r=r,transform:i}=e,[o,a]=function(t){var[[t,e],[n,r]]=t;return[(t+n)/2,(e+r)/2]}(t),t=Sb(l,t,e,n);return ib(new Zh).style("d",h(o,a,t)).style("lineWidth",c).style("stroke",r).style("transform",i).style(s,r).call(ab,u).node()}},Mb=(x.props={defaultEnterAnimation:"fadeIn"},t=>x(Object.assign({colorAttribute:"fill",symbol:"bowtie"},t))),Tb=(Mb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"cross"},t))),Ob=(Tb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"fill",symbol:"diamond"},t))),Pb=(Ob.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"fill",symbol:"hexagon"},t))),Ab=(Pb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"bowtie"},t))),Cb=(Ab.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"diamond"},t))),Nb=(Cb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"hexagon"},t))),Lb=(Nb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"point"},t))),Ib=(Lb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"square"},t))),Rb=(Ib.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"triangle"},t))),Db=(Rb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"triangle-down"},t))),jb=(Db.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"hyphen"},t))),Bb=(jb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"line"},t))),Fb=(Bb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"plus"},t))),zb=(Fb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"fill",symbol:"point"},t))),Vb=(zb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"fill",symbol:"square"},t))),Gb=(Vb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"stroke",symbol:"tick"},t))),Hb=(Gb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"fill",symbol:"triangle"},t))),Wb=(Hb.props=Object.assign({},x.props),t=>x(Object.assign({colorAttribute:"fill",symbol:"triangle-down"},t))),Ub=(Wb.props=Object.assign({},x.props),t=>{const l=t["arrow"],u=I(t,["arrow"]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e,[t,i]=t,[o,a]=lb(t,i,l);const s=e1();return s.moveTo(...t),s.lineTo(...i),s.moveTo(...i),s.lineTo(...o),s.moveTo(...i),s.lineTo(...a),ib(new Zh).style("d",s.toString()).style("stroke",e).style("fill",e).style("transform",r).call(ab,u).node()}}),Yb=(Ub.props={defaultEnterAnimation:"fadeIn"},t=>{const l=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,text:r="",fontSize:i=14,rotate:o=0,transform:a=""}=e,[[t,s]]=t;return ib(new rd).style("x",t).style("y",s).style("text",String(r)).style("stroke",e).style("fill",e).style("fontSize",i).style("transform",a+`rotate(${+o}deg)`).style("lineWidth",0).call(ab,l).node()}});Yb.props={defaultEnterAnimation:"fadeIn"};i(Zb,qb=jh),Zb.prototype.connectedCallback=function(){var t=this.style,e=t.x,t=t.y;this.setLocalPosition([e||0,t||0]),this.update(),this.bindEvents(this.attributes,this)},Zb.prototype.update=function(t){this.attr(C({},this.attributes,t=void 0===t?{}:t)),null!=(t=this.render)&&t.call(this,this.attributes,this)},Zb.prototype.clear=function(){this.removeChildren(!0)},Zb.prototype.destroy=function(){this.removeAllEventListeners(),this.removeChildren(!0),this.remove()},Zb.prototype.bindEvents=function(t,e){};var qb,Xb,G=Zb;function Zb(t){return qb.call(this,t)||this}function Kb(t,e,n,r){this.message=t,this.expected=e,this.found=n,this.location=r,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,Kb)}function $b(){this.constructor=Xb}Xb=Kb,W=Error,$b.prototype=W.prototype,Xb.prototype=new $b,Kb.buildMessage=function(t,e){var o={literal:function(t){return'"'+r(t.text)+'"'},class:function(t){for(var e="",n=0;n<t.parts.length;n++)e+=t.parts[n]instanceof Array?i(t.parts[n][0])+"-"+i(t.parts[n][1]):i(t.parts[n]);return"["+(t.inverted?"^":"")+e+"]"},any:function(t){return"any character"},end:function(t){return"end of input"},other:function(t){return t.description}};function n(t){return t.charCodeAt(0).toString(16).toUpperCase()}function r(t){return t.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(t){return"\\x0"+n(t)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(t){return"\\x"+n(t)})}function i(t){return t.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(t){return"\\x0"+n(t)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(t){return"\\x"+n(t)})}return"Expected "+function(t){for(var e,n,r=new Array(t.length),i=0;i<t.length;i++)r[i]=(n=t[i],o[n.type](n));if(r.sort(),0<r.length){for(e=i=1;i<r.length;i++)r[i-1]!==r[i]&&(r[e]=r[i],e++);r.length=e}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(t)+" but "+((t=e)?'"'+r(t)+'"':"end of input")+" found."};var Jb,H=function(s,t){function D(){return R("Z")}function j(t,e){return R(t,e.map(function(t){return{x:t}}))}function B(t,e){return R(t,e.map(function(t){return{y:t}}))}function F(t,e,n){return{x1:t.x,y1:t.y,x2:e.x,y2:e.y,x:n.x,y:n.y}}function z(t,e){return{x2:t.x,y2:t.y,x:e.x,y:e.y}}function V(t,e){return{x1:t.x,y1:t.y,x:e.x,y:e.y}}function G(t,e,n,r,i,o){return{rx:t,ry:e,xAxisRotation:n,largeArc:r,sweep:i,x:o.x,y:o.y}}var l={},e={svg_path:Mt},n=Mt,H=function(t){if(!t)return[];for(var e=[],n=0;n<t.length;n++)e=e.concat.apply(e,t[n]);var r=e[0];return r&&"m"==r.code&&(delete r.relative,r.code="M"),e},a=function(t,e){var n=e;if(!n)return[t];for(var r=[t],i=0,o=n.length;i<o;i++)r[i+1]=n[i][1];return r},W=/^[Mm]/,U=m(["M","m"],!1,!1),Y=function(t,e,n){e=R(t,[e]);return e=n?e.concat(R("M"==t?"L":"l",n[1])):e},q=/^[Zz]/,X=m(["Z","z"],!1,!1),Z=/^[Ll]/,K=m(["L","l"],!1,!1),i=R,$=/^[Hh]/,J=m(["H","h"],!1,!1),Q=/^[Vv]/,tt=m(["V","v"],!1,!1),et=/^[Cc]/,nt=m(["C","c"],!1,!1),rt=/^[Ss]/,it=m(["S","s"],!1,!1),ot=/^[Qq]/,at=m(["Q","q"],!1,!1),st=/^[Tt]/,lt=m(["T","t"],!1,!1),ut=/^[Aa]/,ct=m(["A","a"],!1,!1),ht=function(t,e){return{x:t,y:e}},dt=function(t){return+t},ft=function(t){return+t.join("")},pt=/^[01]/,yt=m(["0","1"],!1,!1),gt=function(t){return"1"==t},o=function(){return""},vt=",",mt=v(",",!1),u=function(t){return t.join("")},c=".",h=v(".",!1),bt=/^[eE]/,xt=m(["e","E"],!1,!1),wt=/^[+\-]/,kt=m(["+","-"],!1,!1),r=/^[0-9]/,d=m([["0","9"]],!1,!1),Et=function(t){return t.join("")},_t=/^[ \t\n\r]/,St=m([" ","\t","\n","\r"],!1,!1),f=0,p=[{line:1,column:1}],y=0,g=[];if("startRule"in(t=void 0!==t?t:{})){if(!(t.startRule in e))throw new Error("Can't start parsing from rule \""+t.startRule+'".');n=e[t.startRule]}function v(t,e){return{type:"literal",text:t,ignoreCase:e}}function m(t,e,n){return{type:"class",parts:t,inverted:e,ignoreCase:n}}function b(t){var e,n=p[t];if(n)return n;for(e=t-1;!p[e];)e--;for(n={line:(n=p[e]).line,column:n.column};e<t;)10===s.charCodeAt(e)?(n.line++,n.column=1):n.column++,e++;return p[t]=n}function x(t,e){var n=b(t),r=b(e);return{start:{offset:t,line:n.line,column:n.column},end:{offset:e,line:r.line,column:r.column}}}function w(t){f<y||(y<f&&(y=f,g=[]),g.push(t))}function Mt(){for(var t,e,n=f,r=[],i=N();i!==l;)r.push(i),i=N();if(r!==l)if((i=(i=function(){var t,e,n,r,i,o;if(t=f,(e=k())!==l){for(n=[],r=f,i=[],o=N();o!==l;)i.push(o),o=N();for(r=i!==l?(o=k())!==l?i=[i,o]:(f=r,l):(f=r,l);r!==l;){for(n.push(r),r=f,i=[],o=N();o!==l;)i.push(o),o=N();r=i!==l?(o=k())!==l?i=[i,o]:(f=r,l):(f=r,l)}t=n!==l?e=a(e,n):(f=t,l)}else f=t,t=l;return t}())===l?null:i)!==l){for(t=[],e=N();e!==l;)t.push(e),e=N();n=t!==l?r=H(i):(f=n,l)}else f=n,n=l;else f=n,n=l;return n}function k(){var t,e,n,r,i=f,o=function(){var t,e,n,r,i,o,a;t=f,W.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(U));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=T())!==l?(i=f,o=P(),(i=(i=(o=o===l?null:o)!==l?(a=Ot())!==l?o=[o,a]:(f=i,l):(f=i,l))===l?null:i)!==l?e=Y(e,r,i):(f=t,l)):(f=t,l):(f=t,l)}else f=t,t=l;return t}();if(o!==l){for(t=[],e=f,n=[],r=N();r!==l;)n.push(r),r=N();for(e=n!==l&&(r=Tt())!==l?n=[n,r]:(f=e,l);e!==l;){for(t.push(e),e=f,n=[],r=N();r!==l;)n.push(r),r=N();e=n!==l&&(r=Tt())!==l?n=[n,r]:(f=e,l)}i=t!==l?a(o,t):(f=i,l)}else f=i,i=l;return i}function Tt(){var t=function(){var t;q.test(s.charAt(f))?(t=s.charAt(f),f++):(t=l,w(X));t!==l&&(t=D());return t}();return t=t===l&&(t=function(){var t,e,n,r;t=f,Z.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(K));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=Ot())!==l?e=i(e,r):(f=t,l):(f=t,l)}else f=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=f,$.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(J));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=Pt())!==l?e=j(e,r):(f=t,l):(f=t,l)}else f=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=f,Q.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(tt));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=Pt())!==l?e=B(e,r):(f=t,l):(f=t,l)}else f=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=f,et.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(nt));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=function(){var t,e,n,r,i,o;if(t=f,(e=E())!==l){for(n=[],r=f,i=P(),r=(i=i===l?null:i)!==l?(o=E())!==l?i=[i,o]:(f=r,l):(f=r,l);r!==l;)n.push(r),r=f,i=P(),r=(i=i===l?null:i)!==l?(o=E())!==l?i=[i,o]:(f=r,l):(f=r,l);t=n!==l?e=a(e,n):(f=t,l)}else f=t,t=l;return t}())!==l?e=i(e,r):(f=t,l):(f=t,l)}else f=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=f,rt.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(it));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=function(){var t,e,n,r,i,o;if(t=f,(e=_())!==l){for(n=[],r=f,i=P(),r=(i=i===l?null:i)!==l?(o=_())!==l?i=[i,o]:(f=r,l):(f=r,l);r!==l;)n.push(r),r=f,i=P(),r=(i=i===l?null:i)!==l?(o=_())!==l?i=[i,o]:(f=r,l):(f=r,l);t=n!==l?e=a(e,n):(f=t,l)}else f=t,t=l;return t}())!==l?e=i(e,r):(f=t,l):(f=t,l)}else f=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=f,ot.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(at));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=function(){var t,e,n,r,i,o;if(t=f,(e=S())!==l){for(n=[],r=f,i=P(),r=(i=i===l?null:i)!==l?(o=S())!==l?i=[i,o]:(f=r,l):(f=r,l);r!==l;)n.push(r),r=f,i=P(),r=(i=i===l?null:i)!==l?(o=S())!==l?i=[i,o]:(f=r,l):(f=r,l);t=n!==l?e=a(e,n):(f=t,l)}else f=t,t=l;return t}())!==l?e=i(e,r):(f=t,l):(f=t,l)}else f=t,t=l;return t}())===l&&(t=function(){var t,e,n,r;t=f,st.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(lt));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=function(){var t,e,n,r,i,o;if(t=f,(e=T())!==l){for(n=[],r=f,i=P(),r=(i=i===l?null:i)!==l?(o=T())!==l?i=[i,o]:(f=r,l):(f=r,l);r!==l;)n.push(r),r=f,i=P(),r=(i=i===l?null:i)!==l?(o=T())!==l?i=[i,o]:(f=r,l):(f=r,l);t=n!==l?e=a(e,n):(f=t,l)}else f=t,t=l;return t}())!==l?e=i(e,r):(f=t,l):(f=t,l)}else f=t,t=l;return t}())===l?function(){var t,e,n,r;t=f,ut.test(s.charAt(f))?(e=s.charAt(f),f++):(e=l,w(ct));if(e!==l){for(n=[],r=N();r!==l;)n.push(r),r=N();t=n!==l?(r=function(){var t,e,n,r,i,o;if(t=f,(e=M())!==l){for(n=[],r=f,i=P(),r=(i=i===l?null:i)!==l?(o=M())!==l?i=[i,o]:(f=r,l):(f=r,l);r!==l;)n.push(r),r=f,i=P(),r=(i=i===l?null:i)!==l?(o=M())!==l?i=[i,o]:(f=r,l):(f=r,l);t=n!==l?e=a(e,n):(f=t,l)}else f=t,t=l;return t}())!==l?e=i(e,r):(f=t,l):(f=t,l)}else f=t,t=l;return t}():t}function Ot(){var t,e,n,r,i=f,o=T();if(o!==l){for(t=[],e=f,e=(n=(n=P())===l?null:n)!==l&&(r=T())!==l?n=[n,r]:(f=e,l);e!==l;)t.push(e),e=f,e=(n=(n=P())===l?null:n)!==l&&(r=T())!==l?n=[n,r]:(f=e,l);i=t!==l?a(o,t):(f=i,l)}else f=i,i=l;return i}function Pt(){var t,e,n,r,i=f,o=O();if(o!==l){for(t=[],e=f,e=(n=(n=P())===l?null:n)!==l&&(r=O())!==l?n=[n,r]:(f=e,l);e!==l;)t.push(e),e=f,e=(n=(n=P())===l?null:n)!==l&&(r=O())!==l?n=[n,r]:(f=e,l);i=t!==l?a(o,t):(f=i,l)}else f=i,i=l;return i}function E(){var t,e,n=f,r=T();return n=r!==l&&(t=(t=P())===l?null:t)!==l&&(t=T())!==l&&(e=(e=P())===l?null:e)!==l&&(e=T())!==l?F(r,t,e):(f=n,l)}function _(){var t,e=f,n=T();return e=n!==l&&(t=(t=P())===l?null:t)!==l&&(t=T())!==l?z(n,t):(f=e,l)}function S(){var t,e=f,n=T();return e=n!==l&&(t=(t=P())===l?null:t)!==l&&(t=T())!==l?V(n,t):(f=e,l)}function M(){var t,e,n,r,i,o=f,a=At();return o=a!==l&&(t=(t=P())===l?null:t)!==l&&(t=At())!==l&&(e=(e=P())===l?null:e)!==l&&(e=O())!==l&&P()!==l&&(n=Ct())!==l&&(r=(r=P())===l?null:r)!==l&&(r=Ct())!==l&&(i=(i=P())===l?null:i)!==l&&(i=T())!==l?G(a,t,e,n,r,i):(f=o,l)}function T(){var t,e=f,n=O();return e=n!==l&&(t=(t=P())===l?null:t)!==l&&(t=O())!==l?ht(n,t):(f=e,l)}function At(){var t=Lt();return t=(t=t===l?C():t)!==l?dt(t):t}function O(){var t,e=f,n=A();return(e=(n=n===l?null:n)!==l&&(t=Lt())!==l?n=[n,t]:(f=e,l))===l&&(e=f,e=(n=(n=A())===l?null:n)!==l&&(t=C())!==l?n=[n,t]:(f=e,l)),e=e!==l?ft(e):e}function Ct(){var t;return pt.test(s.charAt(f))?(t=s.charAt(f),f++):(t=l,w(yt)),t=t!==l?gt(t):t}function P(){var t,e,n=f,r=[],i=N();if(i!==l)for(;i!==l;)r.push(i),i=N();else r=l;if(r!==l)if((i=(i=Nt())===l?null:i)!==l){for(t=[],e=N();e!==l;)t.push(e),e=N();n=t!==l?r=[r,i,t]:(f=n,l)}else f=n,n=l;else f=n,n=l;if(n===l){if(r=n=f,(i=Nt())!==l){for(t=[],e=N();e!==l;)t.push(e),e=N();r=t!==l?i=[i,t]:(f=r,l)}else f=r,r=l;n=r=r!==l?o():r}return n}function Nt(){var t;return 44===s.charCodeAt(f)?(t=vt,f++):(t=l,w(mt)),t}function Lt(){var t,e=f,n=function(){var t,e,n,r;t=f,(e=C())===l&&(e=null);t=e!==l?(46===s.charCodeAt(f)?(n=c,f++):(n=l,w(h)),n!==l?(r=C())!==l?e=[e,n,r]:(f=t,l):(f=t,l)):(f=t,l);t===l&&(t=f,e=C(),t=e!==l?(46===s.charCodeAt(f)?(n=c,f++):(n=l,w(h)),n!==l?e=[e,n]:(f=t,l)):(f=t,l));t!==l&&(t=u(t));return t}();return(e=n!==l&&(t=(t=It())===l?null:t)!==l?n=[n,t]:(f=e,l))===l&&(e=f,e=(n=C())!==l&&(t=It())!==l?n=[n,t]:(f=e,l)),e=e!==l?u(e):e}function It(){var t,e,n,r=f;return bt.test(s.charAt(f))?(t=s.charAt(f),f++):(t=l,w(xt)),r=(r=t!==l&&(e=(e=A())===l?null:e)!==l&&(n=C())!==l?t=[t,e,n]:(f=r,l))!==l?u(r):r}function A(){var t;return wt.test(s.charAt(f))?(t=s.charAt(f),f++):(t=l,w(kt)),t}function C(){var t,e=[];if(r.test(s.charAt(f))?(t=s.charAt(f),f++):(t=l,w(d)),t!==l)for(;t!==l;)e.push(t),r.test(s.charAt(f))?(t=s.charAt(f),f++):(t=l,w(d));else e=l;return e=e!==l?Et(e):e}function N(){var t;return _t.test(s.charAt(f))?(t=s.charAt(f),f++):(t=l,w(St)),t=t!==l?o():t}var L,I={m:"moveto",l:"lineto",h:"horizontal lineto",v:"vertical lineto",c:"curveto",s:"smooth curveto",q:"quadratic curveto",t:"smooth quadratic curveto",a:"elliptical arc",z:"closepath"};for(L in I)I[L.toUpperCase()]=I[L];function R(t,e){for(var n=(e=e||[{}]).length;n--;){var r,i={code:t,command:I[t]};for(r in t==t.toLowerCase()&&(i.relative=!0),e[n])i[r]=e[n][r];e[n]=i}return e}if((e=n())!==l&&f===s.length)return e;throw e!==l&&f<s.length&&w({type:"end"}),t=g,n=y<s.length?s.charAt(y):null,e=y<s.length?x(y,y+1):x(y,y),new Kb(Kb.buildMessage(t,n),t,n,e)};(H.parseSVG=H).makeAbsolute=function(t){var n,r={x:0,y:0},i={x:"x0",y:"y0",x1:"x0",y1:"y0",x2:"x0",y2:"y0"};return t.forEach(function(t){for(var e in"moveto"===t.command&&(n=t),t.x0=r.x,t.y0=r.y,i)e in t&&(t[e]+=t.relative?t[i[e]]:0);"x"in t||(t.x=r.x),"y"in t||(t.y=r.y),t.relative=!1,t.code=t.code.toUpperCase(),"closepath"==t.command&&(t.x=n.x,t.y=n.y),r=t}),t};function Qb(t,e,n,r){var i,o,a=tx(r=void 0===r?"...":r,n),s=np(t)?t:dp(t),l=e,u=[];if(tx(t,n)<=e)return t;for(;;){if(i=s.substr(0,16),l<(o=tx(i,n))+a)break;if(u.push(i),l-=o,!(s=s.substr(16)))return u.join("")}for(;;){if(i=s.substr(0,1),l<(o=tx(i,n))+a)break;if(u.push(i),l-=o,!(s=s.substr(1)))return u.join("")}return"".concat(u.join("")).concat(r)}var tx=bp(function(t,e){var n=(e=void 0===e?{}:e).fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,e=e.fontVariant;return(Jb=Jb||document.createElement("canvas").getContext("2d")).font=[o,e,i,"".concat(n,"px"),r].join(" "),Jb.measureText(np(t)?t:"").width},function(t,e){return z([t],j(hp(e=void 0===e?{}:e)),!1).join("")});function ex(t,e){return"string"==typeof t?tx(t,e):t}var nx=function(t){var e=t.style.fontFamily||"sans-serif",n=t.style.fontWeight||"normal",r=t.style.fontStyle||"normal",i=t.style.fontVariant,t=t.style.fontSize;return{fontSize:t="object"==typeof t?t.value:t,fontFamily:e,fontWeight:n,fontStyle:r,fontVariant:i}};function rx(t,e){return"capitalize"===e?t.toLowerCase().replace(/( |^)[a-z]/g,function(t){return t.toUpperCase()}):"lowercase"===e?t.toLowerCase():"uppercase"===e?t.toUpperCase():t}function ix(t,e){e=Math.pow(10,e);return~~(t*e)/e}function ox(t){return t.toLocaleString()}function ax(t,e){return void 0===e&&(e=0),Math.abs(t)<1e3?String(t):"".concat(ix(t/1e3,e).toLocaleString(),"K")}var sx=function(t,e,n){return t<0&&Number.isFinite(t)?e:n},lx=function(t,e,n){return 0<t&&Number.isFinite(t)?e:n},ux=function(t,e){return t*e},cx=Math.PI/180;function hx(t){if(ap(t))return[t,t,t,t];if(Zf(t)){var e=t.length;if(1===e)return[t[0],t[0],t[0],t[0]];if(2===e)return[t[0],t[1],t[0],t[1]];if(3===e)return[t[0],t[1],t[2],t[1]];if(4===e)return t}return[0,0,0,0]}var dx=["default","active","selected","disabled","inactive"],fx={fontSize:"16px",fontFamily:"sans-serif",fontWeight:"normal",fontVariant:"normal",fontStyle:"normal",textAlign:"start",textBaseline:"alphabetic"};function px(t){if(t)return null==t?void 0:t.default;var e=xp(t)||{};return dx.forEach(function(t){t in e&&delete e[t]}),e}function yx(t,e,n){if(void 0===n&&(n=!1),!e)return px(t)||{};e=kp(t,e);return n?C({},px(t),e):e}function gx(t){var e=t.canvas,n=t.touches,r=t.offsetX,t=t.offsetY;return e?[e.x,e.y]:n?[(e=n[0]).clientX,e.clientY]:r&&t?[r,t]:[0,0]}mx.prototype.selectAll=function(t){return new mx("string"==typeof t?this.__parent__.querySelectorAll(t):t,null,this.__elements__[0],this.__document__)},mx.prototype.select=function(t){t="string"==typeof t?this.__parent__.querySelectorAll(t)[0]||null:t;return new mx([t],null,t,this.__document__)},mx.prototype.append=function(n){var r=this,t="function"==typeof n?n:function(){var t=n;if(r.__document__)return r.__document__.createElement(t,{});var e=mx.registry[t];return e?new e:new Error("Unknown node type: ".concat(t))},e=[];if(null!==this.__data__){for(var i=0;i<this.__data__.length;i++)(s=t(o=this.__data__[i],i)).__data__=o,this.__parent__.appendChild(s),e.push(s);return new mx(e,null,this.__parent__,this.__document__)}for(i=0;i<this.__elements__.length;i++){var o,a=this.__elements__[i],s=t(o=a.__data__,i);a.appendChild(s),e.push(s)}return new mx(e,null,e[0],this.__document__)},mx.prototype.data=function(t,n){void 0===n&&(n=function(t){return t});for(var e=[],r=[],i=new Map(this.__elements__.map(function(t,e){return[n(t.__data__,e),t]})),o=0;o<t.length;o++){var a,s=t[o],l=n(s,o);i.has(l)?((a=i.get(l)).__data__=s,r.push(a),i.delete(l)):e.push(s)}var u=Array.from(i.values()),u=[new mx([],e,this.__parent__,this.__document__),new mx(r,null,this.__parent__,this.__document__),new mx(u,null,this.__parent__,this.__document__)];return new mx(this.__elements__,null,this.__parent__,this.__document__,u)},mx.prototype.merge=function(t){return new mx(z(z([],j(this.__elements__),!1),j(t.__elements__),!1),null,this.__parent__,this.__document__)},mx.prototype.join=function(t,e,n){void 0===e&&(e=function(t){return t}),void 0===n&&(n=function(t){return t.remove()});t=(t=void 0===t?function(t){return t}:t)(this.__enter__),e=e(this.__update__),n=n(this.__exit__);return e.merge(t).merge(n)},mx.prototype.remove=function(){var n=z([],j(this.__elements__),!1);return this.__elements__.forEach(function(t){var e;t.parentNode&&(t.parentNode.removeChild(t),e=n.indexOf(t),n.splice(e,1),null!=(e=t.parentNode)&&e.removeChild(t),t.remove())}),new mx(n,null,this.__parent__,this.__document__)},mx.prototype.each=function(t){for(var e=0;e<this.__elements__.length;e++){var n,r=this.__elements__[e];r&&(n=r.__data__,t.call(r,n,e))}return this},mx.prototype.attr=function(n,r){var i="function"!=typeof r?function(){return r}:r;return this.each(function(t,e){void 0!==r&&(this[n]=i.call(this,t,e))}),this},mx.prototype.style=function(n,r){var i="function"!=typeof r?function(){return r}:r;return this.each(function(t,e){void 0!==r&&(this.style[n]=i.call(this,t,e))}),this},mx.prototype.on=function(t,e){return this.each(function(){this.addEventListener(t,e)}),this},mx.prototype.call=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.call.apply(t,z([this.__parent__,this],j(e),!1)),this},mx.prototype.node=function(){return this.__elements__[0]},mx.prototype.nodes=function(){return this.__elements__},mx.registry={g:Hh,rect:ed,circle:Fh,path:Zh,text:rd,ellipse:Vh,image:Uh,line:qh,polygon:$h,polyline:Qh,html:od};var vx=mx;function mx(t,e,n,r,i){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),void 0===i&&(i=[null,null,null]),this.__elements__=t=void 0===t?null:t,this.__data__=e,this.__parent__=n,this.__document__=r,this.__enter__=i[0],this.__update__=i[1],this.__exit__=i[2]}function A(t){return new vx([t],null,t,t.ownerDocument)}function N(t,e){var n,r;if(e)try{for(var i=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&r>=t.length?void 0:t)&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=j(o.value,2),s=a[0],l=a[1];t.style(s,l)}}catch(t){n={error:t}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}function B(t,e,n){return t.querySelector(e)?A(t).select(e):A(t).append(n)}function bx(t){t=t&&t.getRenderBounds();if(!t)return{width:0,height:0};var e=t.getMax(),t=t.getMin();return{width:e[0]-t[0],height:e[1]-t[1]}}function xx(t){var t=t.getLocalBounds(),t=j([t.min,t.max],2),e=j(t[0],2),n=e[0],e=e[1],t=j(t[1],2),r=t[0],t=t[1];return{x:n,y:e,width:r-n,height:t-e,left:n,bottom:t,top:e,right:r}}function wx(t){return"string"==typeof t?(e=t,(n=document.createElement("div")).innerHTML=e,n.firstChild):t;var e,n}var kx=["year","month","day","hour","minute","second"],Ex=["YYYY","MM","DD","hh","mm","ss"];function _x(t){return t instanceof Date?t:new Date(t)}function Sx(t){for(var e,t=j(t,2),n=t[0],t=t[1],n=kx.indexOf(n),r=kx.indexOf(t),i="",o=n;o<=r;o+=1)i+=Ex[o],o<r&&(e="-",2===o?e=" ":2<o&&(e=":"),i+=e);return i}function Mx(t,e){var n={YYYY:t.getFullYear(),MM:t.getMonth()+1,DD:t.getDate(),hh:t.getHours(),mm:t.getMinutes(),ss:t.getSeconds()},r=e;return Object.keys(n).forEach(function(t){var e=n[t];r=r.replace(t,"YYYY"===t?"".concat(e):"0".concat(e).slice(-2))}),r}function Tx(t,e){t=new Date(t);return{year:function(t){t.setMonth(0),t.setHours(0,0,0,0)},month:function(t){t.setDate(1),t.setHours(0,0,0,0)},day:function(t){return t.setHours(0,0,0,0)},hour:function(t){return t.setMinutes(0,0,0)},minute:function(t){return t.setSeconds(0,0)},second:function(t){return t.setMilliseconds(0)}}[e](t),Mx(t,Sx(["year",e]))}function Ox(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)Px(t,e[r]);return t}var Px=function(r,i,o,a){void 0===o&&(o=0),void 0===a&&(a=5),Object.entries(i).forEach(function(t){var t=j(t,2),e=t[0],t=t[1],n=r;Object.prototype.hasOwnProperty.call(i,e)&&(t?ep(t)?(ep(r[e])||(n[e]={}),o<a?Px(r[e],t,o+1,a):n[e]=i[e]):Zf(t)?(n[e]=[],n[e]=n[e].concat(t)):n[e]=t:n[e]=t)})};function Ax(t,e,n,r,i,o){return(t===e||Math.min(t,e)<=i&&i<=Math.max(t,e))&&(n===r||Math.min(n,r)<=o&&o<=Math.max(n,r))}function Cx(t,e,n){var r=t;(!t.length||e<t[0]||e===t[0]&&n<t[1])&&(r[0]=e,r[1]=n)}function Nx(t,e){var t=j(t,2),n=t[0],t=t[1],e=j(e,2),r=e[0],e=e[1];return Math.pow(Math.pow(n-r,2)+Math.pow(t-e,2),.5)}function Lx(o){return void 0===o&&(o=0),function(t,e,n){var r,i=n.value;"function"==typeof i&&(n.value=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];r||(t=this,r=window.setTimeout(function(){i.apply(t,e),r=null},o))})}}var Ix=function(t){return void 0!==t&&null!=t&&!Number.isNaN(t)};function Rx(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e],["Z"]]}pt=Rx;function Dx(t,e,n){return[["M",t,e+n],["L",t,e-n]]}function jx(t,e,n){return[["M",t-n,e],["L",t+n,e]]}Q=jx;function Bx(t){n="default",Kf(e=t)&&e instanceof Image?n="image":qf(e)?n="symbol":np(e)&&(r=new RegExp("data:(image|text)"),n=e.match(r)?"base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)?"url":"symbol");var e,n,r=n;return["base64","url","image"].includes(r)?"image":t&&"symbol"===r?"path":null}i(zx,Fx=G),zx.prototype.render=function(t,e){t.x,t.y;var r=t.symbol,n=t.size,i=void 0===n?16:n,o=I(t,["x","y","symbol","size"]),a=Bx(r);a?B(e,".".concat(a,"-marker"),a).attr("className","marker ".concat(a,"-marker")).call(function(t){var e,n;"image"===a?(e=2*i,t.style("img",r).style("width",e).style("height",e).style("x",-i).style("y",-i)):(e=i/2,n=qf(r)?r:zx.getSymbol(r),t.style("path",null==n?void 0:n(0,0,e)).call(N,o))}):(null!=(n=this.querySelector(".marker"))&&n.remove(),this.removeChildren())},zx.MARKER_SYMBOL_MAP=new Map,zx.registerSymbol=function(t,e){zx.MARKER_SYMBOL_MAP.set(t,e)},zx.getSymbol=function(t){return zx.MARKER_SYMBOL_MAP.get(t)};var Fx,L=zx;function zx(){return null!==Fx&&Fx.apply(this,arguments)||this}L.registerSymbol("cross",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]}),L.registerSymbol("hyphen",function(t,e,n){return[["M",t-n,e],["L",t+n,e]]}),L.registerSymbol("line",Dx),L.registerSymbol("plus",function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]}),L.registerSymbol("tick",function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]}),L.registerSymbol("circle",Rx),L.registerSymbol("point",pt),L.registerSymbol("bowtie",function(t,e,n){var r=n-1.5;return[["M",t-n,e-r],["L",t+n,e+r],["L",t+n,e-r],["L",t-n,e+r],["Z"]]}),L.registerSymbol("hexagon",function(t,e,n){var r=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+r,e-n/2],["L",t+r,e+n/2],["L",t,e+n],["L",t-r,e+n/2],["L",t-r,e-n/2],["Z"]]}),L.registerSymbol("square",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]}),L.registerSymbol("diamond",function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]}),L.registerSymbol("triangle",function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+r],["L",t,e-r],["L",t+n,e+r],["Z"]]}),L.registerSymbol("triangle-down",function(t,e,n){var r=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-r],["L",t+n,e-r],["L",t,e+r],["Z"]]}),L.registerSymbol("line",Dx),L.registerSymbol("dot",jx),L.registerSymbol("dash",Q),L.registerSymbol("smooth",function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]}),L.registerSymbol("hv",function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]}),L.registerSymbol("vh",function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]}),L.registerSymbol("hvh",function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]}),L.registerSymbol("vhv",function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]});i(Hx,Vx=G),Hx.prototype.render=function(t,e){var n,r,i=t.padding,o=t.marker,a=t.text,s=t.textStyle,l=t.radius,u=t.backgroundStyle,c=t.spacing,h=t.align,t=t.verticalAlign,i=j(hx(i),4),d=i[0],f=i[1],p=i[2],i=i[3],y=B(e,".tag-content","g").attr("className","tag-content").node(),g=B(y,".tag-marker",function(){return new L({})}).attr("className","tag-marker").call(function(t){t.node().clear(),t.node().update(o||{symbol:"triangle",size:0,x:0})}).node(),c=(c=c,{x:(v=(g=g).getLocalBounds()).halfExtents[0]?v.max[0]+(c||0):g.style.x,y:v.halfExtents[1]?(v.min[1]+v.max[1])/2:g.style.y}),v=c.x,g=c.y,g=(B(y,".tag-text","text").attr("className","tag-text").style("fontFamily","sans-serif").style("fontSize",12).style("x",v).style("y",g).style("text",T(a)?"":"".concat(a)).call(N,s).style("textBaseline","middle").call(function(t){a||t.remove()}),c=i,v=d,g=h||"start",s=t||"top",t=(h=y).getLocalBounds(),r=n=0,"start"===g&&(n=c),"center"===g&&(n=-t.halfExtents[0]),"end"===g&&(n=-c-2*t.halfExtents[0]),"top"===s&&(r=v+t.halfExtents[1]),"middle"===s&&(r=0),"bottom"===s&&(r=v-2*t.halfExtents[1]),h.setLocalPosition([n,r]),y.getLocalBounds());B(e,".tag-background","rect").attr("className","tag-background").style("zIndex",(y.style.zIndex||0)-1).style("x",g.min[0]-i).style("y",g.min[1]-d).style("width",null!==u?i+f+2*g.halfExtents[0]:0).style("height",null!==u?d+p+2*g.halfExtents[1]:0).style("radius",null!=l?l:2).style("fill","#fafafa").style("stroke","#d9d9d9").style("lineWidth",1).call(N,u)},Hx.defaultOptions={type:Hx.tag="tag",style:{padding:4,spacing:4}};var Vx,Gx=Hx;function Hx(t){return Vx.call(this,C({},Hx.defaultOptions,t))||this}var Wx,Ux,Yx={small:{textStyle:{fontSize:10},buttonStyle:{width:40,height:20},markerStyle:{size:8}},middle:{textStyle:{fontSize:12},buttonStyle:{width:60,height:30},markerStyle:{size:12}},large:{textStyle:{fontSize:16},buttonStyle:{width:80,height:40},markerStyle:{size:16}}},qx={primary:{textStyle:{default:{fill:"#fff"},active:{}},buttonStyle:{default:{fill:"#1890ff",lineWidth:0},active:{fill:"#40a9ff"}},markerStyle:{default:{fill:"#1890ff"},active:{fill:"#40a9ff"}}},dashed:{textStyle:{default:{},active:{}},buttonStyle:{default:{fill:"transparent",stroke:"#bbb",lineDash:[5,5]},active:{}},markerStyle:{}},link:{textStyle:{default:{fill:"#1890ff"},active:{}},buttonStyle:{default:{fill:"transparent",lineWidth:0},active:{}},markerStyle:{default:{fill:"#1890ff"}}},text:{textStyle:{default:{fill:"#000"},active:{}},buttonStyle:{default:{fill:"transparent",lineWidth:0},active:{}},markerStyle:{default:{stroke:"#000"}}},default:{textStyle:{default:{fill:"#000"},active:{fill:"#1890ff"}},buttonStyle:{default:{fill:"transparent",stroke:"#bbb"},active:{stroke:"#1890ff"}},markerStyle:{default:{stroke:"#bbb",lineWidth:1},active:{stroke:"#1890ff"}}}},Xx={strict:{textStyle:{fill:"#b8b8b8"},buttonStyle:{},markerStyle:{}},textStyle:{},buttonStyle:{stroke:"#d9d9d9",fill:"#f5f5f5"},markerStyle:{stroke:"#d9d9d9"}},Zx=(i(Kx,Wx=G),Object.defineProperty(Kx.prototype,"markerSize",{get:function(){var t=this.attributes.marker,e=this.getStyle("markerStyle");return t?(null==e?void 0:e.size)||2:0},enumerable:!1,configurable:!0}),Object.defineProperty(Kx.prototype,"text",{get:function(){var t=this.attributes.text;if(""===t)return t;var e=this.textAvailableWidth;return Qb(t,e)},enumerable:!1,configurable:!0}),Object.defineProperty(Kx.prototype,"textAvailableWidth",{get:function(){var t=this.attributes,e=t.marker,n=t.padding,r=t.ellipsis,i=t.width,t=t.markerSpacing;if(!r)return 1/0;r=pp(i)?this.getStyle("buttonStyle").width:i;return e?r-2*n-t-this.markerSize:r-2*n},enumerable:!1,configurable:!0}),Object.defineProperty(Kx.prototype,"buttonHeight",{get:function(){var t=this.attributes.height;return t||this.getStyle("buttonStyle").height},enumerable:!1,configurable:!0}),Kx.prototype.getStyle=function(e){var t=this.attributes,n=t.size,t=t.type,r=this.state,i=C({},kp(Yx,[n,e]),yx(kp(qx,[t,e]),r),yx(kp(this.attributes,e),r,!0));return"disabled"===r&&(Object.keys(i).forEach(function(t){t in Xx[e]&&(i[t]=kp(Xx,[e,t]))}),Object.keys(Xx.strict[e]).forEach(function(t){i[t]=kp(Xx,["strict",e,t])}),C(i,yx(kp(this.attributes,e),"disabled"))),i},Kx.prototype.render=function(t,e){var n=t.padding,r=t.marker,t=t.markerSpacing,t=void 0===t?0:t,n=(e.attr("cursor","disabled"===this.state?"not-allowed":"pointer"),j(hx(n),4)),i=(n[0],n[1]),o=(n[2],n[3]),a=this.buttonHeight,s=this.getStyle("markerStyle"),l=this.markerSize,n=B(e,".marker",function(){return new L({className:"marker",style:{symbol:"circle"}})}).call(function(t){t.node().update(S(S({},s),{symbol:r,x:o+l/2,y:a/2,size:l}))}).node().getLocalBounds(),u=this.text,u=void 0===u?"":u,c=this.getStyle("textStyle"),n=(this.textShape=B(e,".text","text").attr("className","text").style("x",l?n.max[0]+t:o).style("y",a/2).style("text",u).style("textAlign","left").style("textBaseline","middle").call(N,c).node(),this.textShape.getLocalBounds()),u=this.getStyle("buttonStyle");B(e,".background","rect").attr("className","background").style("zIndex",-1).call(N,u).style("height",a).style("width",o+(l?l+t:0)+2*n.halfExtents[0]+i).node()},Kx.prototype.update=function(t){this.attr(C({},this.attributes,t=void 0===t?{}:t));t=this.attributes.state;this.state=void 0===t?"default":t,this.render(this.attributes,this)},Kx.prototype.setState=function(t){this.update({state:t})},Kx.prototype.hide=function(){this.style.visibility="hidden"},Kx.prototype.show=function(){this.style.visibility="visible"},Kx.prototype.bindEvents=function(){this.addEventListener("click",this.clickEvents),this.addEventListener("mouseenter",this.mouseenterEvent),this.addEventListener("mouseleave",this.mouseleaveEvent)},Kx.defaultOptions={type:Kx.tag="button",style:{cursor:"pointer",padding:10,size:"middle",type:"default",text:"",markerAlign:"left",markerSpacing:5,textStyle:{default:{},active:{}},buttonStyle:{default:{lineWidth:1,radius:5},active:{}},markerStyle:{default:{}}}},Kx);function Kx(t){var n=Wx.call(this,Ox({},Kx.defaultOptions,t))||this;return n.state="default",n.clickEvents=function(){var t=n.attributes,e=t.onClick;"disabled"!==t.state&&null!=e&&e.call(n,n)},n.mouseenterEvent=function(){"disabled"!==n.attributes.state&&(n.state="active",n.render(n.attributes,n))},n.mouseleaveEvent=function(){var t=n.attributes.state;n.state=void 0===t?"default":t,n.render(n.attributes,n)},n}function $x(t){return Ux.call(this,C({},$x.defaultOptions,t))||this}i($x,Ux=G),$x.prototype.render=function(t,e){for(var n=t.x,r=t.y,s=t.items,l=t.textStyle,i=t.padding,u=t.width,c=t.separator,t=j(hx(i),3),i=t[0],h=t[1],t=t[2],d=B(e,".container","g").attr("className","container").style("x",n+t).style("y",r+i),f=0,p=0,y=(d.node().removeChildren(!0),this),o=0;o<s.length;o++)!function(t){var e,n=s[t],r=new Gx({className:"breadcrumb-item",style:S(S({x:f,y:p,text:Xf(n.text)?n.id:n.text,textStyle:l},Ep(n,["marker"])),{padding:0,backgroundStyle:null})}),i=(d.append(function(){return r}),r.getLocalBounds()),o=2*i.halfExtents[0],i=2*i.halfExtents[1],o=(f+=o,Xf(u)||u-h<f&&(r.attr({x:0,y:p+i}),f=o,p+=i),y.bindInnerEvents(r,n),c||{}),n=o.spacing,n=void 0===n?0:n,a=o.text,a=void 0===a?"/":a,o=o.style;t!==s.length-1&&(e=new rd({className:"".concat($x.tag,"-separator"),id:"".concat($x.tag,"-separator-").concat(t),style:S(S(S(S({},fx),{x:f+n,y:p+i/2}),o),{text:a,textAlign:"end",textBaseline:"middle"})}),d.append(function(){return e}),t=e.getLocalBounds(),f+=2*t.halfExtents[0]+n)}(o)},$x.prototype.update=function(t){this.attr(C({},this.attributes,t)),this.render(this.attributes,this)},$x.prototype.bindInnerEvents=function(t,e){var n=this.attributes,r=n.items,i=n.onClick;i&&t.addEventListener("click",function(){i.call(t,e.id,e,r)})},$x.defaultOptions={type:$x.tag="breadcrumb",style:{separator:{text:"/",style:{fontSize:14,fill:"rgba(0, 0, 0, 0.45)"},spacing:8},textStyle:{default:S(S({},fx),{fontSize:14,fill:"rgba(0, 0, 0, 0.45)"}),active:{fill:"#5468ff",cursor:"pointer"}},padding:[8,8,8,8]}};i(tw,Jx=k),tw.prototype.render=function(){var t=this.attributes,e=t.lines,t=t.areas;e&&this.createLines(e),t&&this.createAreas(t)},tw.prototype.clear=function(){this.linesGroup.removeChildren(!0),this.areasGroup.removeChildren(!0)},tw.prototype.update=function(t){var e=t.lines,t=t.areas;this.clear(),e&&this.setAttribute("lines",e),t&&this.setAttribute("areas",t),this.render()},tw.prototype.createLines=function(t){var e=this;t.forEach(function(t){e.linesGroup.appendChild(new Zh({name:"line",style:t}))})},tw.prototype.createAreas=function(t){var e=this;t.forEach(function(t){e.areasGroup.appendChild(new Zh({name:"area",style:t}))})};var Jx,Qx=tw;function tw(t){var e=this,n=t.style,t=I(t,["style"]);return(e=Jx.call(this,C({},{type:"lines",style:{width:0,height:0}},S({style:n},t)))||this).linesGroup=new Hh({name:"lines"}),e.appendChild(e.linesGroup),e.areasGroup=new Hh({name:"areas"}),e.appendChild(e.areasGroup),e.render(),e}i(rw,ew=k),rw.prototype.render=function(){var e=this;this.attributes.columns.forEach(function(t){t.forEach(function(t){e.columnsGroup.appendChild(new ed({name:"column",style:t}))})})},rw.prototype.update=function(t){this.attr(C({},this.attributes,t)),t.columns&&(this.clear(),this.render())},rw.prototype.clear=function(){this.removeChildren(!0)};var ew,nw=rw;function rw(t){var e=this,n=t.style,t=I(t,["style"]);return(e=ew.call(this,C({},{type:"column",style:{width:0,height:0}},S({style:n},t)))||this).columnsGroup=new Hh({name:"columns"}),e.appendChild(e.columnsGroup),e.render(),e}function iw(t){return 0===t.length?[0,0]:[tp(cp(t,function(t){return tp(t)||0})),Qf(up(t,function(t){return Qf(t)||0}))]}function ow(t){for(var e=xp(t),n=e[0].length,t=j([Array(n).fill(0),Array(n).fill(0)],2),r=t[0],i=t[1],o=0;o<e.length;o+=1)for(var a=e[o],s=0;s<n;s+=1)0<=a[s]?(a[s]+=r[s],r[s]=a[s]):(a[s]+=i[s],i[s]=a[s]);return e}function aw(t,e,n){void 0===n&&(n=[[0,0],[1,1]]);for(var e=!!(e=void 0===e?!1:e),r=[],i=0,o=t.length;i<o;i+=2)r.push([t[i],t[i+1]]);for(var a,s,l,u=function(t,e,n,r){var i,o=[],a=!!r;if(a){u=r[0],c=r[1];for(var s=0,l=t.length;s<l;s+=1)var u=yo([0,0],u,x=t[s]),c=go([0,0],c,x)}for(var s=0,h=t.length;s<h;s+=1){var d,f,p,y,g,v,m,b,x=t[s];0!==s||n?s!==h-1||n?(d=t[[s?s-1:h-1,s-1][n?0:1]],f=t[n?(s+1)%h:s+1],v=vo(v=ko([0,0],f,d),v,e),0!==(g=(p=mo(x,d))+(y=mo(x,f)))&&(p/=g,y/=g),g=vo([0,0],v,-p),v=vo([0,0],v,y),m=po([0,0],x,g),b=yo([0,0],b=po([0,0],x,v),go([0,0],f,x)),b=go([0,0],b,yo([0,0],f,x)),m=yo([0,0],m=po([0,0],x,g=vo([0,0],g=ko([0,0],b,x),-p/y)),go([0,0],d,x)),m=go([0,0],m,yo([0,0],d,x)),b=po([0,0],x,v=vo([0,0],v=ko([0,0],x,m),y/p)),a&&(m=yo([0,0],m=go([0,0],m,u),c),b=yo([0,0],b=go([0,0],b,u),c)),o.push(i),o.push(m),i=b):(m=x,o.push(i),o.push(m)):i=x}return n&&o.push(o.shift()),o}(r,.4,e,n),c=r.length,h=[],i=0;i<c-1;i+=1)a=u[2*i],s=u[2*i+1],l=r[i+1],h.push(["C",a[0],a[1],s[0],s[1],l[0],l[1]]);return e&&(a=u[c],s=u[c+1],l=r[0],h.push(["C",a[0],a[1],s[0],s[1],l[0],l[1]])),h}function sw(t,e,n){return e<=t&&t<=n}function lw(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function uw(t,e,n){var r=!1,i=t.length;if(!(i<=2)){for(var o,a,s,l=0;l<i;l++){var u=t[l],c=t[(l+1)%i];if(a=c,((s=[e,n])[0]-(o=u)[0])*(a[1]-o[1])==(a[0]-o[0])*(s[1]-o[1])&&Math.min(o[0],a[0])<=s[0]&&s[0]<=Math.max(o[0],a[0])&&Math.min(o[1],a[1])<=s[1]&&s[1]<=Math.max(o[1],a[1]))return 1;0<lw(u[1]-n)!=0<lw(c[1]-n)&&lw(e-(n-u[1])*(u[0]-c[0])/(u[1]-c[1])-u[0])<0&&(r=!r)}return r}}function cw(t){for(var e,n,r=[],i=t.length,o=0;o<i-1;o++){var a=t[o],s=t[o+1];r.push({from:{x:a[0],y:a[1]},to:{x:s[0],y:s[1]}})}return 1<r.length&&(e=t[0],n=t[i-1],r.push({from:{x:n[0],y:n[1]},to:{x:e[0],y:e[1]}})),r}function hw(t,u){var c=!1;return $f(t,function(t){if(e=t.from,t=t.to,n=u.from,r=u.to,i=n.x-e.x,o=n.y-e.y,a=t.x-e.x,t=t.y-e.y,s=r.x-n.x,r=r.y-n.y,l=null,.001*(a*a+t*t)*(s*s+r*r)<(n=a*r-t*s)*n&&(sw(r=(i*r-o*s)/n,0,1)&&sw((i*t-o*a)/n,0,1)&&(l={x:e.x+r*a,y:e.y+r*t})),l)return!(c=!0);var e,n,r,i,o,a,s,l}),c}function dw(t){var e=t.map(function(t){return t[0]}),t=t.map(function(t){return t[1]});return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,t),maxY:Math.max.apply(null,t)}}function fw(t,e){var n=(e=void 0===e?!1:e)?t.length-1:0,t=t.map(function(t,e){return z([e===n?"M":"L"],j(t),!1)});return e?t.reverse():t}function pw(t,e){if(void 0===e&&(e=!1),t.length<=2)return fw(t);for(var n=[],r=t.length,i=0;i<r;i+=1){var o=e?t[r-i-1]:t[i];Ap(o,n.slice(-2))||n.push.apply(n,z([],j(o),!1))}var a=aw(n,!1);return e?a.unshift(z(["M"],j(t[r-1]),!1)):a.unshift(z(["M"],j(t[0]),!1)),a}function yw(t,e,n){t=xp(t);return t.push(["L",e,n],["L",0,n],["Z"]),t}i(bw,gw=G),Object.defineProperty(bw.prototype,"rawData",{get:function(){var t=this.attributes.data;if(!t||0===(null==t?void 0:t.length))return[[]];t=xp(t);return t=ap(t[0])?[t]:t},enumerable:!1,configurable:!0}),Object.defineProperty(bw.prototype,"data",{get:function(){return this.attributes.isStack?ow(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(bw.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(bw.prototype,"baseline",{get:function(){var t=this.scales.y,e=j(t.getOptions().domain||[0,0],2),n=e[0],e=e[1];return e<0?t.map(e):t.map(n<0?0:n)},enumerable:!1,configurable:!0}),Object.defineProperty(bw.prototype,"containerCfg",{get:function(){var t=this.attributes;return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),Object.defineProperty(bw.prototype,"linesCfg",{get:function(){var n=this,t=this.attributes,r=t.areaStyle,e=t.isStack,i=t.lineStyle,o=t.smooth,t=this.containerCfg.width,a=this.data;if(0===a[0].length)return{lines:[],areas:[]};var s,l,u,c,h,d,f,p=this.scales,y=p.x,p=p.y,p=(a=a,s=(y={type:"line",x:y,y:p}).x,l=y.y,u=(y=j(l.getOptions().range||[0,0],2))[0],c=y[1],u<c&&(y=j([u,c],2),c=y[0],u=y[1]),a.map(function(t){return t.map(function(t,e){return[s.map(e),op(l.map(t),c,u)]})})),y=[];return r&&(a=this.baseline,y=e?(o?function(t,e,n){for(var r=[],i=t.length-1;0<=i;--i){var o,a=t[i],s=pw(a),l=void 0,l=0===i?yw(s,e,n):(o=pw(t[i-1],!0),a=a[0],o[0][0]="L",z(z(z([],j(s),!1),j(o),!1),[z(["M"],j(a),!1),["Z"]],!1));r.push(l)}return r}:function(t,e,n){for(var r=[],i=t.length-1;0<=i;--i){var o,a=fw(t[i]),s=void 0,s=0===i?yw(a,e,n):((o=fw(t[i-1],!0))[0][0]="L",z(z(z([],j(a),!1),j(o),!1),[["Z"]],!1));r.push(s)}return r})(p,t,a):(h=o,d=t,f=a,p.map(function(t){return yw((h?pw:fw)(t),d,f)}))),{lines:p.map(function(t,e){return S({stroke:n.getColor(e),path:(o?pw:fw)(t)},i)}),areas:y.map(function(t,e){return S({path:t,fill:n.getColor(e)},r)})}},enumerable:!1,configurable:!0}),Object.defineProperty(bw.prototype,"columnsCfg",{get:function(){var i=this,t=this.attributes,o=t.isStack,a=t.columnStyle,t=this.containerCfg.height,s=this.rawData;if(!s)return{columns:[]};o&&(s=ow(s));var e=this.createScales(s),l=e.x,u=e.y,e=j(iw(s),2),n=e[0],e=e[1],c=new mm({domain:[0,e-(0<n?0:n)],range:[0,t]}),h=l.getBandWidth(),d=this.rawData;return{columns:s.map(function(t,r){return t.map(function(t,e){var n=h/s.length;return S(S({fill:i.getColor(r)},a),o?{x:l.map(e),y:u.map(t),width:h,height:c.map(d[r][e])}:{x:l.map(e)+n*r,y:0<=t?u.map(t):u.map(0),width:n,height:c.map(Math.abs(t))})})})}},enumerable:!1,configurable:!0}),bw.prototype.render=function(t,e){this.containerShape=B(e,".container","rect").attr("className","container").node();var n=this.attributes.type,r="spark".concat(n),i="line"===n?this.linesCfg:this.columnsCfg;this.sparkShape=B(e,".".concat(r),function(){return new("line"===n?Qx:nw)({className:r,style:i})}).call(N,i).node()},bw.prototype.update=function(t){this.attr(C({},this.attributes,t)),this.render(this.attributes,this)},bw.prototype.clear=function(){this.removeChild(this.sparkShape),this.sparkShape.clear(),this.sparkShape.destroy()},bw.prototype.getColor=function(t){var e=this.attributes.color;return Zf(e)?e[t%e.length]:qf(e)?e.call(null,t):e},bw.prototype.createScales=function(t){var e=this.attributes,n=e.type,r=e.isGroup,i=e.barPadding,o=e.nice,o=void 0===o||o,a=e.minValue,e=e.maxValue,s=this.containerCfg,l=s.width,s=s.height,u=j(iw(t),2),c=u[0],u=u[1];return{type:n,x:"line"===n?new mm({domain:[0,t[0].length-1],range:[0,l]}):new bv({domain:t[0].map(function(t,e){return e}),range:[0,l],paddingInner:r?i:0}),y:new mm({domain:[null!=a?a:c,null!=e?e:u],range:[s,0],nice:o})}},bw.tag="sparkline",bw.defaultOptions={style:{type:"line",width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineStyle:{lineWidth:1},isGroup:!1,columnStyle:{lineWidth:1,stroke:"#fff",padding:.1}}};var gw,vw,mw=bw;function bw(t){return gw.call(this,C({},bw.defaultOptions,t))||this}function xw(){return null!==vw&&vw.apply(this,arguments)||this}function ww(e,n){return i(t,r=jh),t.prototype.connectedCallback=function(){var t,e;null!=(t=(e=this.descriptor).render)&&t.call(e,this.attributes,this),null!=(e=(t=this.descriptor).bindEvents)&&e.call(t,this.attributes,this)},t.prototype.update=function(t){var e;this.attr(C({},this.attributes,t=void 0===t?{}:t)),null!=(e=(t=this.descriptor).render)&&e.call(t,this.attributes,this)},t;function t(t){t=r.call(this,Ox({},{style:n},t))||this;return t.descriptor=e,t}var r}i(xw,vw=jh);var kw=ww({render:function(t,e){function n(t,e,n,r,i){B(h,"line-".concat(t),"line").attr("className","line-".concat(t)).style("x1",e).style("y1",n).style("x2",r).style("y2",i).style("stroke",h.style.stroke).style("strokeOpacity",h.style.strokeOpacity).style("lineWidth",h.style.lineWidth)}var r=t.size,i=t.radius,o=t.stroke,a=t.fill,s=t.lineWidth,l=t.orient,u=t.fillOpacity,t=t.strokeOpacity,r=void 0===r?10:r,c=2.4*r,h=B(e,".rect","rect").attr("className","rect").style("x",-r/2).style("y",-c/2).style("width",r).style("height",c).style("fill",a||"#fff").style("fillOpacity",u||1).style("stroke",o||"#bfbfbf").style("lineWidth","number"!=typeof s?1:s).style("strokeOpacity",t).style("radius","number"!=typeof i?r/4:null!=i?i:2).node(),a=1/3*r,u=2/3*r,o=.25*c,s=.75*c;n(0,a,o,a,s),n(0,u,o,u,s),h.setOrigin(r/2,c/2),"vertical"===l?e.setLocalEulerAngles(90):e.setLocalEulerAngles(0)}});i(Tw,Ew=G),Tw.prototype.render=function(t,e){var n,r,i,o=t.iconCfg,t=t.textCfg;i=e,o=((n=o)||{}).type,r="handle-icon ".concat(o,"-handle"),A(i).selectAll(".handle-icon").data(o?[o]:[],function(t){return t}).join(function(t){return t.append(function(t){return"symbol"===t?new L({className:r,name:"icon",style:n}):new kw({name:"icon",className:r,style:n})})},function(t){return t.each(function(){this.update(n)})},function(t){return t.remove()}),void 0===(i=t)&&(i={}),B(e,".".concat(o="handle-text"),"text").attr("className",o).style("fontSize",12).style("fill","#000").style("fillOpacity",.45).style("textAlign","center").style("textBaseline","middle").call(N,i)};var Ew,_w,Sw,Mw=Tw;function Tw(){return null!==Ew&&Ew.apply(this,arguments)||this}function Ow(t){var o=_w.call(this,C({},Ow.defaultOptions,t))||this;return o.onSelectionMouseenter=function(){o.selectionShape.attr(o.getStyle("selectionStyle"))},o.onSelectionMouseleave=function(){o.selectionShape.attr(o.getStyle("selectionStyle"))},o.onDragStart=function(i){return function(t){t.stopPropagation(),o.target=i,o.prevPos=o.getOrientVal(gx(t));var t=o.availableSpace,e=t.x,t=t.y,n=o.attributes,r=n.x,n=n.y;o.selectionStartPos=o.getRatio(o.prevPos-o.getOrientVal([e,t])-o.getOrientVal([r,n])),o.selectionWidth=0,o.addEventListener("mousemove",o.onDragging),o.addEventListener("touchmove",o.onDragging),document.addEventListener("mouseup",o.onDragEnd),document.addEventListener("touchend",o.onDragEnd)}},o.onDragging=function(t){t.stopPropagation();var t=o.getOrientVal(gx(t)),e=t-o.prevPos;if(e){var n=o.getRatio(e);switch(o.target){case"start":o.setValuesOffset(n);break;case"end":o.setValuesOffset(0,n);break;case"selection":o.setValuesOffset(n,n);break;case"background":o.selectionWidth+=n,o.setValues([o.selectionStartPos,o.selectionStartPos+o.selectionWidth].sort())}o.prevPos=t}},o.onDragEnd=function(){o.removeEventListener("mousemove",o.onDragging),o.removeEventListener("mousemove",o.onDragging),document.removeEventListener("mouseup",o.onDragEnd),document.removeEventListener("touchend",o.onDragEnd)},o.onValueChanged=function(t){t=new Th("valueChanged",{detail:{oldValue:t,value:o.getValues()}});o.dispatchEvent(t)},o.selectionStartPos=0,o.selectionWidth=0,o.prevPos=0,o.target="",o}function Pw(t){var a=Sw.call(this,C({},Pw.defaultOptions,t))||this;return a.onValueChanged=function(t){var e=a.style.value;t!==e&&(e=new Th("scroll",t={detail:{oldValue:t,value:e}}),a.dispatchEvent(e),e=new Th("valueChanged",t),a.dispatchEvent(e))},a.onTrackClick=function(t){var e=a.attributes.thumbLen,n=j(a.getLocalPosition(),2),r=n[0],n=n[1],i=j(a.padding,4),o=i[0],i=i[3],r=a.getOrientVal([r+i,n+o]),i=a.getOrientVal(gx(t))-e/2,n=a.valueOffset(i-r,!0);a.setValue(n)},a.onThumbMouseenter=function(){a.thumbShape.attr(a.getStyle("thumbStyle","active"))},a.onTrackMouseenter=function(){a.trackShape.attr(a.getStyle("trackStyle","active"))},a.onThumbMouseleave=function(){a.thumbShape.attr(a.getStyle("thumbStyle"))},a.onTrackMouseleave=function(){a.trackShape.attr(a.getStyle("trackStyle"))},a.onDragStart=function(t){t.stopPropagation(),a.prevPos=a.getOrientVal(gx(t)),document.addEventListener("mousemove",a.onDragging),document.addEventListener("mouseup",a.onDragEnd),document.addEventListener("touchmove",a.onDragging),document.addEventListener("touchcancel",a.onDragEnd)},a.onDragging=function(t){t.stopPropagation();var t=a.getOrientVal(gx(t)),e=t-a.prevPos;a.setOffset(e),a.prevPos=t},a.onDragEnd=function(t){t.preventDefault(),document.removeEventListener("mousemove",a.onDragging),document.removeEventListener("mouseup",a.onDragEnd),document.removeEventListener("touchmove",a.onDragging),document.removeEventListener("touchcancel",a.onDragEnd)},a}i(Ow,_w=G),Object.defineProperty(Ow.prototype,"values",{get:function(){return this.getAttribute("values")},set:function(t){this.setAttribute("values",this.getSafetyValues(t))},enumerable:!1,configurable:!0}),Object.defineProperty(Ow.prototype,"names",{get:function(){return this.getAttribute("names")},set:function(t){this.setAttribute("names",t)},enumerable:!1,configurable:!0}),Object.defineProperty(Ow.prototype,"backgroundShapeCfg",{get:function(){return S(S({cursor:"crosshair",zIndex:0},this.availableSpace),this.getStyle("backgroundStyle"))},enumerable:!1,configurable:!0}),Object.defineProperty(Ow.prototype,"sparklineShapeCfg",{get:function(){var t=this.attributes,t=(t.orient,t.sparkline),e=t.padding,t=I(t,["padding"]),e=j(hx(e),4),n=e[0],r=e[1],i=e[2],e=e[3],o=this.availableSpace,a=o.width,o=o.height,s=this.getStyle("backgroundStyle").lineWidth,s=void 0===s?0:s;return S(S({x:s/2+e,y:s/2+n},t),{zIndex:0,width:a-s-e-r,height:o-s-n-i})},enumerable:!1,configurable:!0}),Object.defineProperty(Ow.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.padding,n=t.width,t=t.height,e=j(hx(e),4),r=e[0],i=e[1],o=e[2],e=e[3];return{x:e,y:r,width:n-(e+i),height:t-(r+o)}},enumerable:!1,configurable:!0}),Ow.prototype.getValues=function(){return this.values},Ow.prototype.setValues=function(t){this.values=t,this.update({values:t})},Ow.prototype.getNames=function(){return this.names},Ow.prototype.setNames=function(t){this.names=t},Ow.prototype.render=function(t,e){function n(e){var t="slider-".concat(e,"-handle");return B(o,".".concat(t),function(){return new Mw({className:t})}).call(function(t){t.node().update(r.getHandleShapeCfg(e))}).node()}var r=this,i=t.backgroundStyle,t=t.selectionStyle,e=B(e,".slider-background","rect").attr("className","slider-background").style("cursor","crosshair").style("fill","#416180").style("fillOpacity",.05).call(N,this.availableSpace).call(N,yx(i)).node(),o=(B(this.backgroundShape=e,".slider-sparkline",function(){return new mw({})}).attr("className","slider-sparkline").call(function(t){t.node().update(r.sparklineShapeCfg)}),B(e,".slider-foreground","g").attr("className","slider-foreground").node());this.selectionShape=B(o,".slider-selection","rect").attr("className","slider-selection").style("cursor","move").style("zIndex",2).style("fill","#5B8FF9").style("fillOpacity",.15).call(N,this.calcMask()).call(N,yx(t)||{}).node();this.startHandle=n("start"),this.endHandle=n("end")},Ow.prototype.getSafetyValues=function(t,e){void 0===t&&(t=this.getValues()),void 0===e&&(e=4);var n,r=this.attributes,i=r.min,r=r.max,o=j(this.getValues(),2),a=o[0],o=o[1],t=j(t||[a,o],2),s=t[0],t=t[1],l=t-s;return t<s&&(s=(n=j([t,s],2))[0],t=n[1]),r-i<l?[i,r]:s<i?a===i&&o===t?[i,t]:[i,l+i]:r<t?o===r&&a===s?[s,r]:[r-l,r]:[ix(s,e),ix(t,e)]},Ow.prototype.getStyle=function(t,e,n){return void 0===e&&(e="default"),n?this.getHandleCfg(n):yx(kp(this.attributes,t),e,!0)},Ow.prototype.calcMask=function(t){var t=j(this.getSafetyValues(t),2),e=t[0],t=t[1],n=this.availableSpace,r=n.width,n=n.height;return this.getOrientVal([{y:0,height:n,x:e*r,width:(t-e)*r},{x:0,width:r,y:e*n,height:(t-e)*n}])},Ow.prototype.calcHandlePosition=function(t){var e=this.availableSpace,n=e.width,e=e.height,r=j(this.getSafetyValues(),2),i=r[0],r=r[1],t=("start"===t?i:r)*this.getOrientVal([n,e]);return{x:this.getOrientVal([t,n/2]),y:this.getOrientVal([e/2,t])}},Ow.prototype.calcHandleText=function(t){var e,n,r=this.attributes,i=r.orient,r=r.names,o=this.getHandleCfg(t),a=o.spacing,s=o.formatter,o=o.textStyle,l=this.getHandleSize(t),u=this.getSafetyValues(),c=this.availableSpace,h=c.width,c=c.height,d=this.calcMask(),f=d.x,p=d.y,y=d.width,d=d.height,r=j("start"===t?[r[0],u[0]]:[r[1],u[1]],2),u=s(r[0],r[1]),s=new rd({style:S(S({},o),{text:u})}),r=bx(s),o=r.width,r=r.height,s=(s.destroy(),0),g=0,l=l/2,v="center";return"horizontal"===i?(e=(i=a+l)+o/2,v="start"===t?(s=0<(n=f-i-o)?-e:e,0<n?"end":"start"):(s=(n=o<h-f-y-i)?e:-e,n?"start":"end")):(o=a+l,g="start"===t?r<p-l?-o:o:r<c-p-d-l?o:-o),{x:s,y:g,text:u,textAlign:v}},Ow.prototype.getHandleTextShapeCfg=function(t){var e=this.getHandleCfg(t).textStyle;return S(S({},e),this.calcHandleText(t))},Ow.prototype.getHandleIconShapeCfg=function(t){var e,n=this.attributes.orient,r=this.getHandleCfg(t),i=r.handleIcon,r=r.handleStyle,o=this.getOrientVal(["ew-resize","ns-resize"]),t=this.getHandleSize(t),i=i?(e="symbol",S(S({},r),{cursor:o,size:t,symbol:i})):(e="default",S(S({},r),{cursor:o,size:t}));return S({orient:n,type:e},i)},Ow.prototype.getHandleShapeCfg=function(t){var e=this.getHandleCfg(t),n=this.calcHandlePosition(t),r=n.x,n=n.y,i=this.calcHandleText(t);return{x:r,y:n,handleType:t,zIndex:3,visibility:null!=e&&e.show?"visible":"hidden",iconCfg:this.getHandleIconShapeCfg(t),textCfg:S(S({},this.getHandleTextShapeCfg(t)),i)}},Ow.prototype.getHandleCfg=function(t){var e=kp(this.attributes,"handle"),n=e.start,r=e.end,e=I(e,["start","end"]),i={};return"start"===t?i=n:"end"===t&&(i=r),C({},e,i)},Ow.prototype.getHandleSize=function(t){t=this.getHandleCfg(t).size;if(t)return t;var t=this.attributes,e=t.width,t=t.height;return Math.floor((this.getOrientVal([t,e])+4)/2.4)},Ow.prototype.getOrientVal=function(t){var t=j(t,2),e=t[0],t=t[1];return"horizontal"===this.attributes.orient?e:t},Ow.prototype.setValuesOffset=function(t,e){void 0===e&&(e=0);var n=j(this.getValues(),2),r=n[0],n=n[1],t=[r+t,n+e].sort();this.setValues(t),this.onValueChanged([r,n])},Ow.prototype.getRatio=function(t){var e=this.availableSpace,n=e.width,e=e.height;return t/this.getOrientVal([n,e])},Ow.prototype.bindEvents=function(){function r(t){return t&&".handle-text"!==t.className}var i=this,t=this.selectionShape;t.addEventListener("mousedown",this.onDragStart("selection")),t.addEventListener("touchstart",this.onDragStart("selection")),t.addEventListener("mouseenter",this.onSelectionMouseenter),t.addEventListener("mouseleave",this.onSelectionMouseleave);[this.startHandle,this.endHandle].forEach(function(t){var n=t.style.handleType;t.addEventListener("mousedown",function(t){var e=t.target;r(e)&&i.onDragStart(n)(t)}),t.addEventListener("touchstart",function(t){var e=t.target;r(e)&&i.onDragStart(n)(t)})}),this.backgroundShape.addEventListener("mousedown",this.onDragStart("background")),this.backgroundShape.addEventListener("touchstart",this.onDragStart("background"))},Ow.defaultOptions={type:Ow.tag="slider",style:{orient:"horizontal",values:[0,1],names:["",""],min:0,max:1,width:200,height:20,sparkline:{padding:[1,1,1,1]},padding:[0,0,0,0],selectionStyle:{active:{fill:"#ccdaf5"}},handle:{show:!0,formatter:function(t,e){return t},spacing:10}}},i(Pw,Sw=G),Object.defineProperty(Pw.prototype,"padding",{get:function(){return hx(this.attributes.padding)},enumerable:!1,configurable:!0}),Object.defineProperty(Pw.prototype,"availableSpace",{get:function(){var t=this.attributes,e=t.width,t=t.height,n=j(this.padding,4),r=n[0],i=n[1],o=n[2],n=n[3];return{x:n,y:r,width:e-(n+i),height:t-(r+o)}},enumerable:!1,configurable:!0}),Object.defineProperty(Pw.prototype,"trackLen",{get:function(){var t=this.availableSpace,e=t.width,t=t.height;return this.getOrientVal([e,t])},enumerable:!1,configurable:!0}),Object.defineProperty(Pw.prototype,"thumbRadius",{get:function(){var t=this.attributes.isRound,e=this.availableSpace,n=e.width,e=e.height,r=kp(this.attributes,["thumbStyle","default","radius"]);return t?r||this.getOrientVal([e,n])/2:0},enumerable:!1,configurable:!0}),Pw.prototype.render=function(t,e){var n=t.width,r=t.height,i=t.trackStyle,o=t.thumbStyle,a=t.value,s=t.thumbLen,t=t.orient,e=B(e,".track","rect").attr("className","track").style("width",null!=n?n:10).style("height",null!=r?r:200).call(N,yx(i)).node(),n=this.valueOffset(a||0),r=this.availableSpace;this.thumbShape=B(e,".thumb","rect").attr("className","thumb").style("x","vertical"===t?r.x:r.x+n).style("y","vertical"===t?r.y+n:r.y).style("width","vertical"===t?r.width:s).style("height","vertical"===t?s:r.height).style("radius",this.thumbRadius).call(N,yx(o)).node(),this.trackShape=e},Pw.prototype.getValue=function(){return this.style.value},Pw.prototype.setValue=function(t){var e=this.style,n=e.value,r=e.min,e=e.max;this.update({value:op(t,r,e)}),this.onValueChanged(n)},Pw.prototype.setOffset=function(t){var e=this.getValue();this.setValue(this.valueOffset(t,!0)+e)},Pw.prototype.valueOffset=function(t,e){var n=this.attributes,r=n.thumbLen,i=n.min,n=n.max,r=this.trackLen-r;return(e=void 0!==e&&e)?t/r:r*op(t,i,n)},Pw.prototype.getStyle=function(t,e){return void 0===e&&(e="default"),yx(kp(this.attributes,t),e)},Pw.prototype.bindEvents=function(){this.trackShape.addEventListener("click",this.onTrackClick),this.thumbShape.addEventListener("mousedown",this.onDragStart),this.thumbShape.addEventListener("touchstart",this.onDragStart),this.onHover()},Pw.prototype.getOrientVal=function(t){return"horizontal"===this.attributes.orient?t[0]:t[1]},Pw.prototype.onHover=function(){this.thumbShape.addEventListener("mouseenter",this.onThumbMouseenter),this.trackShape.addEventListener("mouseenter",this.onTrackMouseenter),this.thumbShape.addEventListener("mouseleave",this.onThumbMouseleave),this.trackShape.addEventListener("mouseleave",this.onTrackMouseleave)},Pw.defaultOptions={type:Pw.tag="scrollbar",style:{orient:"vertical",min:0,max:1,isRound:!0,thumbLen:20,padding:[2,2,2,2],trackStyle:{default:{fill:"#fafafa",lineWidth:1,stroke:"#e8e8e8"},active:{}},thumbStyle:{default:{fill:"#c1c1c1"},active:{opacity:.8}}}};Object.defineProperty(Cw.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(Cw.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(Cw.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(Cw.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(Cw.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(Cw.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),Cw.prototype.clear=function(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this},Cw.prototype.empty=function(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},Cw.prototype.add=function(t,e){return t<this.x1&&(this.x1=t),e<this.y1&&(this.y1=e),t>this.x2&&(this.x2=t),e>this.y2&&(this.y2=e),this},Cw.prototype.rotate=function(t,e,n){t=this.rotatedPoints(t,e,n);return this.clear().add(t[0],t[1]).add(t[2],t[3]).add(t[4],t[5]).add(t[6],t[7])},Cw.prototype.rotatedPoints=function(t,e,n){var r=this.x1,i=this.y1,o=this.x2,a=this.y2,s=Math.cos(t),t=Math.sin(t),l=e-e*s+n*t,e=n-e*t-n*s;return[[s*r-t*i+l,t*r+s*i+e],[s*r-t*a+l,t*r+s*a+e],[s*o-t*a+l,t*o+s*a+e],[s*o-t*i+l,t*o+s*i+e]].flat(1)},Cw.prototype.set=function(t,e,n,r){return n<t?(this.x2=t,this.x1=n):(this.x1=t,this.x2=n),r<e?(this.y2=e,this.y1=r):(this.y1=e,this.y2=r),this},Cw.prototype.intersects=function(t){return t&&!(this.x2<t.x1||this.x1>t.x2||this.y2<t.y1||this.y1>t.y2)},Cw.prototype.defined=function(t){return this[t]!==Number.MAX_VALUE&&this[t]!==-Number.MAX_VALUE};var Aw=Cw;function Cw(t){var t=t||{},e=t.left,n=t.top,r=t.right,t=t.bottom;this.x1=null!=e?e:+Number.MAX_VALUE,this.x2=null!=r?r:-Number.MAX_VALUE,this.y1=null!=n?n:+Number.MAX_VALUE,this.y2=null!=t?t:-Number.MAX_VALUE}function Nw(t,c){return[[t[0],t[1],t[2],t[3]],[t[2],t[3],t[4],t[5]],[t[4],t[5],t[6],t[7]],[t[6],t[7],t[0],t[1]]].some(function(t){var e=(i=j(i=c,4))[0],n=i[1],r=i[2],i=i[3],o=(t=j(t,4))[0],a=t[1],r=r-e,i=i-n,s=t[2]-o,t=t[3]-a,l=r*t-s*i;if(0==l)return!1;var u=0<l,e=e-o;return(n=r*(o=n-a)-i*e)<0!=u&&((a=s*o-t*e)<0!=u&&(l<n!=u&&l<a!=u))})}function Lw(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=e.getEulerAngles()||0,i=(e.setEulerAngles(0),e.getLocalBounds()),o=i.min,a=i.max,i=i.halfExtents,s=o[0],l=2*i[0],i=2*i[1],o=o[1],u=a[0],a=a[1],c=0,h=0,d=s,f=o,p=("text"===e.tagName&&(i-=1.5,p=e.style.textAlign,y=e.style.textBaseline,c=+e.style.dx,h=+e.style.dy,"center"===p?d=(s+u)/2:"right"!==p&&"end"!==p||(d=u),"middle"===y?f=(o+a)/2:"bottom"!==y&&"baseline"!==y||(f=a)),j(n,4)),u=p[0],y=void 0===u?0:u,a=p[1],n=void 0===a?0:a,u=p[2],a=p[3];return t.set((c+=s)-(void 0===a?n:a),(h+=o)-y,c+l+n,h+i+(void 0===u?y:u)),e.setEulerAngles(r),t.rotatedPoints(r*cx,d,f)}function Iw(t,e,n){var r,t=Lw(new Aw,t,n),e=Lw(new Aw,e,n),n=Nw(e,[t[0],t[1],t[2],t[3]])||Nw(e,[t[0],t[1],t[4],t[5]])||Nw(e,[t[4],t[5],t[6],t[7]])||Nw(e,[t[2],t[3],t[6],t[7]]);return localStorage.getItem("__debug__")&&window.canvas&&((r=function(t,e){return void 0===e&&(e="red"),window.canvas.appendChild(new Zh({style:{lineWidth:1,stroke:e,path:[["M",t[0],t[1]],["L",t[2],t[3]],["L",t[4],t[5]],["L",t[6],t[7]],["Z"]]}}))})(t),r(e,"blue")),n}function Rw(t,e,n){return"top"===t||"bottom"===t?e:n}function Dw(t,e,n){return"left"===t||"right"===t?e:n}function jw(t,e,n){return"outside"===t?e:n}var Bw=function(t,e,n){return"left"===t?e:n},Fw=function(t,e,n){return"right"===t?e:n},zw=function(t,e,n){return"left"===t||"top"===t||"inside"===t?e:n};function Vw(t,r){var i;return z([],j(t.reduce(function(t,e,n){return n&&i&&Iw(i,e,r)?(t.add(i),t.add(e)):i=e,t},new Set)),!1)}var s={style:{title:{content:"",rotate:void 0,maxLength:260},ticks:[],ticksThreshold:100,tickLine:{len:6},subTickLine:{len:4,count:0},label:{type:"text",alignTick:!0,tickPadding:2,margin:[0,0,0,0],overlapOrder:["autoRotate","autoEllipsis","autoHide"],autoRotate:!1,autoEllipsis:!1,autoHide:!1,autoHideTickLine:!0,showLast:!0,showFirst:!0,optionalAngles:[0,45,90],minLabel:0,minLength:14,maxLength:160,ellipsisStep:" "},verticalFactor:1}},Gw=(C({},s,{style:{type:"arc"}}),C({},s,{style:{}}),{year:[["year","second"],["year","day"],["month","day"],["day","day"]],month:[["month","day"],["day","day"]],day:[["month","day"],["day","day"]],hour:[["hour","second"],["hour","minute"],["hour","hour"]],minute:[["minute","second"],["second","second"]],second:[["second","second"]]});function Hw(t,r){for(var i,o=t.map(function(t,e){return[t.id,{text:t.style.text,value:t.style.tip||t.style.text,idx:e}]}),a=new Map(o),e=cp(o,function(t){t=j(t,2),t[0],t=t[1].value;return new Date(t).getTime()}).text,n=up(o,function(t){t=j(t,2),t[0],t=t[1].value;return new Date(t).getTime()}).text,s=(n=n,e=j([_x(e=e),_x(n)],2),n=e[0],e=e[1],n.getFullYear()!==e.getFullYear()?"year":n.getMonth()!==e.getMonth()?"month":n.getDay()!==e.getDay()?"day":n.getHours()!==e.getHours()?"hour":n.getMinutes()!==e.getMinutes()?"minute":"second"),l=new Date("1970-01-01 00:00:00"),u=nx(t[0]),c=0;c<Gw[s].length;c+=1){var h=Gw[s][c];if(Lp(Mx(l,Sx(h)),u)<r){i=h;break}i=h}return function(t,e){var e=a.get(e.id).idx;if(0===e)return t;var e=null==(e=o[e-1])?void 0:e[1].text,t=new Date(t),n=i;return Tx(new Date(e),s)!==Tx(t,s)&&(n=function(t,e,n,r){for(var i=[],o=j(t,2)[1],a=kx.indexOf(o),s=0;s<=a;s+=1){var l=[kx[s],o];if(Lp(Mx(e,Sx(l)),r)<n){i=l;break}}return i}(i,t,r,u)),Mx(t,Sx(n))}}function Ww(a,s,t){if(!(s.length<=1))for(var e=t.ellipsisStep,n=t.minLength,r=t.maxLength,i=t.margin,l=void 0===i?[]:i,u=t.labelType,c=nx(s[0]),o=ex(e,c)||1,h=ex(n,c)||1,i=ex(r,c),d=(!Xf(i)&&i!==1/0||(i=Math.max.apply(null,s.map(function(t){return t.getBBox().width}))),Date.now()),f=s.slice(),t=j(l,4),e=(t[0],t[1]),p=void 0===e?0:e,n=(t[2],t[3]),y=void 0===n?p:n,g=function(e){if((f=Vw(s,l)).length<1)return{value:void 0};if(300<Date.now()-d)return{value:void 0};var t,n,r,i=function(t,e){return""},o=Rw(a,e-y-p,e),i="time"===u?Hw(s,o):"number"===u?(o=o,n=(t=s).map(function(t,e){return{text:t.style.text,value:Number(t.style.tip||t.style.text)}}),n=Number(up(n,function(t){t=t.text;return(null==t?void 0:t.length)||0}).value),t=nx(t[0]),r=ox(n),Lp(r,t)<=o?function(t,e){return ox(Number(t))}:(r=ax(n),Lp(r,t)<=o?function(t,e){return ax(Number(t),1)}:function(t,e){return Number(t).toExponential()})):function(t){return Qb(t,e,c)};f.forEach(function(t,e){var n=t.style.tip||t.style.text,n=(t.style.tip=n,i.call(null,n,t));t.attr("text",n)})},v=i;h+o<v;v-=o){var m=g(v);if("object"==typeof m)return m.value}}var Uw=function(t,e){var e=e.seq,n=void 0===e?2:e;return t.filter(function(t,e){return!(e%n)||!(t.style.visibility="hidden")})};function Yw(t,e,n){var r=e.length;if(!(r<=1||2===r&&null!=n&&n.showFirst&&null!=n&&n.showLast)){var i,o,a,s=Uw,l=2,u=e.slice(),c=e.slice(),h=Date.now(),d=Math.min.apply(null,e.map(function(t){return t.getBBox().width}))||1;for("top"!==t&&"bottom"!==t||(t=xx(e[0]).left,e=xx(e[r-1]).right,e=Math.abs(e-t)||1,l=Math.max(Math.floor(r*d/e),l)),null!=n&&n.showFirst&&(i=u.splice(0,1)[0]),null!=n&&n.showLast&&(o=u.splice(-1,1)[0],u.reverse());Vw((o?z(z([o],j(c),!1),[i],!1):z([i],j(c),!1)).filter(function(t){return Ix(t)}),null==n?void 0:n.margin).length;)if(o&&!i&&l%2==0?u.splice(0,1).forEach(function(t){return t.style.visibility="hidden"}):o&&i&&u.splice(0,1).forEach(function(t){return t.style.visibility="hidden"}),c=s(((a=u).forEach(function(t){return t.style.visibility="visible"}),a),{seq:l}),l++,200<Date.now()-h)return}}function qw(o,t,e){for(var n=e.optionalAngles,a=void 0===n?[0,45,90]:n,r=e.margin,i=function(i){if(t.forEach(function(t){return e=o,t=t,n=a[i],t.setEulerAngles(n),void(n&&(r=zw(e,-1,1),e=Bw(e,"end",Fw(e,"start",lx(ux(r,n),"left",sx(ux(r,n),"right")))),t.style.textAlign=e));var e,n,r}),Vw(t,r).length<1)return"break"},s=0;s<a.length&&"break"!==i(s);s++);}var Xw=new Map([["autoHide",{getDefault:function(){return Yw},equidistance:Yw,greedy:function(t,e,n){var r,i=e.length;i<=1||2===i&&null!=n&&n.showFirst&&null!=n&&n.showLast||e.slice().forEach(function(t,e){e&&r&&Iw(r,t,null==n?void 0:n.margin)?e===i-1&&null!=n&&n.showLast?r.style.visibility="hidden":t.style.visibility="hidden":r=t})}}],["autoRotate",{getDefault:function(){return qw}}],["autoEllipsis",{getDefault:function(){return Ww},ellipsis:Ww}]]);function Zw(t,e,n){var r,t=Array.from(t||[]).map(function(t,e){return S({id:"".concat(e)},t)}),i=t.length,o=t;return"number"==typeof e&&e<i&&(r=Math.ceil(i/e),o=t.filter(function(t,e){return e%r==0||e===i-1})),n&&1!==o[o.length-1].value&&o.push({value:1,id:"append"}),o}function Kw(a,s){return function(i){var t,o;a&&(t=void 0===(t=a.overlapOrder)?[]:t,o=S({labelType:a.type},Ep(a,["optionalAngles","minLength","maxLength","ellipsisStep","showFirst","showLast","margin"])),t.forEach(function(t){var e,n=Xw.get(t),r=a[t];n&&r&&(t=t,(e=a)&&("autoRotate"!==t||Xf(e.rotate)))&&(t=n.getDefault(),"function"==typeof r?t=r:"object"==typeof r?(t=n[r.type]||Mp,o=S(S({},o),r.cfg)):"string"==typeof r&&(t=n[r]||Mp),t(s,i,o))}))}}function $w(t,n,e){e&&t.forEach(function(t,e){e=n[e];e&&(e.style.visibility=t.style.visibility)})}function Jw(t,e,n,r,i,o){B(t,".axis-title","text").attr("className","axis-title").style("text",(null==o?void 0:o.content)||"").style("x",e).style("y",n).style("fill","black").style("fontSize",12).style("fontWeight","lighter").style("textAlign",r).style("textBaseline",i).style("transform","rotate(".concat((null==o?void 0:o.rotate)||0,"deg)")).style("visibility",o?"visible":"hidden").call(N,(null==o?void 0:o.style)||{})}function Qw(t,e,n,r){var i=n[e].data,n=n.map(function(t){return t.data}),i="function"==typeof r?r.call(null,i,e,n):r;t.attr(i||{})}function t2(t,n,r,e){void 0===e&&(e=""),A(t).selectAll(".axis-".concat(e,"tick")).data(r?n:[],function(t){return t.id}).join(function(t){return t.append(function(t){return new qh({className:"axis-".concat(e,"tick"),style:t})}).style("stroke","#416180").style("lineWidth",.5).style("strokeOpacity","sub"===e?.45:.65).style("visibility","visible").each(function(t,e){this.attr(t),Qw(this,e,n,null==r?void 0:r.style)})},function(t){return t.each(function(t,e){this.attr(t),Qw(this,e,n,null==r?void 0:r.style)}).style("visibility","visible")},function(t){return t.remove()})}function e2(t,e,n,r){var i=n[e].data,n=n.map(function(t){return t.data}),i="function"==typeof r?r.call(null,i,e,n):r;t.attr(i||{})}function n2(t,e){var n=nx(t),e=ex(e,n);t.attr("tip",null),Ix(e)&&e<2*t.getBounds().halfExtents[0]&&(e=Qb(t.style.text||"",e,n,"..."),t.attr("tip",t.style.text),t.attr("text",e))}function r2(t,e,n,r,i){A(t).selectAll(".".concat(e)).data(n,function(t){return t.id}).join(function(t){return t.append("text").attr("className",e).style("fontFamily","sans-serif").style("fontSize",12).style("fontWeight","normal").call(N,i||{}).each(function(t,e){this.attr(t),n2(this,(null==r?void 0:r.maxLength)||Number.MAX_SAFE_INTEGER),e2(this,e,n,null==r?void 0:r.style)})},function(t){return t.each(function(t,e){this.attr(t),n2(this,(null==r?void 0:r.maxLength)||Number.MAX_SAFE_INTEGER),e2(this,e,n,null==r?void 0:r.style)})},function(t){return t.remove()})}function i2(t,e,n){r2(t,"axis-label",(n=void 0===n?{}:n)?e:[],n,{fill:"#000",fontWeight:"lighter"})}function o2(t,e,n,r,i,o){B(t,".axis-".concat(e,"-arrow"),function(){return new L({})}).attr("className","axis-arrow$$ axis-".concat(e,"-arrow")).style("visibility",o?"visible":"hidden").style("symbol","axis-arrow").style("x",n).style("y",r).style("size",8).style("lineWidth",.5).style("fill","grey").style("stroke","grey").style("fillOpacity",.85).style("strokeOpacity",.85).style("transformOrigin","left").style("transform","rotate(".concat(i,"deg)")).call(N,o||{})}function a2(t,e,n,r){var i,o,a,s;void 0===r&&(r={}),B(t,".axis-line","path").attr("className","axis-line").style("visibility",r?"visible":"hidden").style("stroke","grey").style("lineWidth",.5).style("strokeOpacity",.85).style("path",e).call(N,(null==r?void 0:r.style)||{}),n&&(r=(e=(null==r?void 0:r.arrow)||{}).start,e=e.end,n=j(n,2),i=(o=j(n[0],2))[0],o=o[1],a=(n=j(n[1],2))[0],n=n[1],s=Math.atan((n-o)/(a-i))/Math.PI*180/2,i===a?s=n<o?45:-45:o===n&&(s=a<i?0:90),o2(t,"start",i,o,s,r),o2(t,"end",a,n,s+90,e))}function s2(t,e,n,r){if(!e)return"";i=t[0],o=e,a=(i=j(i,2))[0],i=i[1],a=(o=j(o,2))[0]-a,o=o[1]-i;var i,o,a,s=Math.sqrt(a*a+o*o),l=r?0:1;return n?"M".concat(e[0],",").concat(e[1]-s," A").concat(s,",").concat(s,",0,0,").concat(l,",").concat(e[0],",").concat(e[1]+s," A").concat(s,",").concat(s,",0,0,").concat(l,",").concat(e[0],",").concat(e[1]-s," Z"):t.reduce(function(t,e,n){return(0===n?"M":"".concat(t,"A").concat(s,",").concat(s,",0,0,").concat(l,",")).concat(e[0],",").concat(e[1])},"")}function l2(t,e,n,r,i){if("circle"===e)return s2(t,n,r,i);e=t.reduce(function(t,e,n){return"".concat(t).concat(0===n?"M":" L").concat(e[0],",").concat(e[1])},"");return"".concat(e).concat(r?"Z":"")}i(h2,u2=G),h2.prototype.render=function(t,e){var n,r,i,o,a=t.items,s=void 0===a?[]:a,l=t.type,u=t.center,a=t.lineStyle,c=t.alternateColor,h=t.closed,t=s.map(function(t,e){return{id:t.id||"grid-line-".concat(e),path:l2(t.points,l,u,h)}}),d=(n=t,r={style:a},A(e).selectAll(".grid-line").data(n,function(t){return t.id}).join(function(t){return t.append("path").attr("className","grid-line").style("stroke","#D9D9D9").style("lineWidth",1).style("lineDash",[4,4]).each(function(t,e){this.attr(t),Qw(this,e,n,null==r?void 0:r.style)})},function(t){return t.each(function(t,e){this.attr(t),Qw(this,e,n,null==r?void 0:r.style)})},function(t){return t.remove()}),[]);if(c)for(var f=Array.isArray(c)?c:[c,"transparent"],p=0;p<s.length-1;p++){0===p&&2<s[0].points.length&&(y=l2(s[0].points,l,u),d.push({path:y,fill:f[d.length%2]}));var y=l2(s[p].points,l,u,h),g=l2(s[p+1].points.slice().reverse(),l,u,h,!0),v=void 0,v=h?"".concat(y," ").concat(g):"".concat(y," L").concat(g.slice(1)," Z");d.push({path:v,fill:f[d.length%2]})}i=d,A(e).selectAll(".grid-region").data(i,function(t,e){return e}).join(function(t){return t.append("path").attr("className","grid-region").each(function(t,e){this.attr(t),Qw(this,e,i,null==o?void 0:o.style)})},function(t){return t.each(function(t,e){this.attr(t),Qw(this,e,i,null==o?void 0:o.style)})},function(t){return t.remove()})};var u2,c2=h2;function h2(){return null!==u2&&u2.apply(this,arguments)||this}function d2(t,e){e?B(t,".axis-grid",function(){return new c2({})}).attr("className","axis-grid").call(function(t){return t.node().update(e)}):(t=t.querySelector(".axis-grid"))&&t.remove()}function f2(t,e,n,r){void 0===r&&(r=0);var t=j(t,2),i=j(t[0],2),o=i[0],i=i[1],t=j(t[1],2),a=t[0],t=t[1],e=j([e*(a-o)+o,e*(t-i)+i],2),s=e[0],e=e[1],a=bo([0,0],[Math.abs(a-o),-Math.abs(t-i)]),o=zw(n,-1,1),n=j(vo([0,0],(t=a,!(i=[])?(i[0]=t[1],i[1]=-1*t[0]):(i[0]=-1*t[1],i[1]=t[0]),i),r),2),a=n[0],t=n[1];return[[s,e],[s+ux(o,a),e+ux(o,t)]]}function p2(a,s,t,e,n){var l=(null==n?void 0:n.len)||0,u=t,n=e||{},c=n.formatter,t=n.tickPadding,h=void 0===t?0:t,e=n.offset,d=void 0===e?0:e,t=n.alignTick,f=void 0===t||t,e=n.rotate,p=void 0===e?0:e,y=zw(u,-1,1);return Array.from(a).map(function(t,e){var n=t.value,r=(f||(n=((e===a.length-1?1:null==(r=a[e+1])?void 0:r.value)+n)/2+(i||0)/2),j(f2(s,n,u,l+h),2)),i=j(r[1],2),n=i[0],i=i[1],e=c?c(t,e):t.text,o=Rw(u,"center",Bw(u,"end","start"));return p&&(o=Bw(u,"end",Fw(u,"start",lx(ux(y,p),"left",sx(ux(y,p),"right"))))),{id:"label-".concat(t.id),data:t,x:n+Rw(u,d,0),y:i+Dw(u,d,0),text:e,textAlign:o,textBaseline:Dw(u,"middle","top"===u?"bottom":"top"),transform:"rotate(".concat(p||0,"deg)")}})}L.registerSymbol("axis-arrow",function(t,e,n){var r=t+2*n;return[["M",t,e],["L",r,e],["L",r-n,e-n],["L",r+n,e],["L",r-n,e+n],["L",r,e]]});var y2=ww({render:function(t,e){var n=t.startPos,r=t.endPos,i=t.verticalFactor,o=t.ticksThreshold,a=t.appendTick,s=t.axisLine,l=t.ticks,l=void 0===l?[]:l,u=t.label,u=void 0===u?{}:u,c=t.tickLine,h=t.subTickLine,d=t.title,t=t.grid,n=[n||[0,0],r||[0,0]],r=j(n,2),f=j(r[0],2),p=f[0],f=f[1],r=j(r[1],2),y=r[0],r=r[1],g=bo([0,0],[y-p,r-f]),g=(void 0===(g=g)&&(g=[0,0]),void 0===(i=i||1)&&(i=1),Math.abs(g[0])>Math.abs(g[1])?1===i?"bottom":"top":-1===i?"left":"right"),i=Zw(l,o,a);d2(e,t);a2(B(e,".axis-line-group","g").attr("className","axis-line-group").node(),"M".concat(p,",").concat(f," L").concat(y,",").concat(r),n,s);l=B(e,".axis-tick-group","g").attr("className","axis-tick-group").node();v=n,m=g,b=(null==c?void 0:c.len)||0;t2(l,Array.from(i).map(function(t){var e=j(f2(v,t.value,m,b),2),n=j(e[0],2),r=n[0],n=n[1],e=j(e[1],2);return{x1:r,y1:n,x2:e[0],y2:e[1],id:"tick-".concat(t.id),data:t}}),c);var v,m,b,o="axis-subtick-group",a=B(e,".".concat(o),"g").attr("className",o).node();x=i,w=n,k=g,E=null==h?void 0:h.count,_=null==h?void 0:h.len,void 0===E&&(E=0),void 0===_&&(_=0);t2(a,Array.from(x).map(function(a,s){return s===x.length-1?[]:Array(E).fill(null).map(function(t,e){var n=(((null==(n=x[s+1])?void 0:n.value)||1)-a.value)/(E+1),n=a.value+n*(e+1),n=j(f2(w,n,k,_),2),r=j(n[0],2),i=r[0],r=r[1],n=j(n[1],2),o=n[0],n=n[1];return{id:"sub-".concat(a.id,"-").concat(e),x1:i,y1:r,x2:o,y2:n}})}).flat(),h,"sub");var x,w,k,E,_,S,M,T,t="axis-label-group",p=B(e,".".concat(t),"g").attr("className",t).node(),f=(i2(p,p2(i,n,g,u,c),u),p.querySelectorAll(".axis-label")),y=p.querySelectorAll(".axis-tick"),r=(Kw(u,g)(f),$w(f,y,null==u?void 0:u.autoHideTickLine),j(l.getBounds().halfExtents,2)),o=r[0],a=r[1],h=j(p.getBounds().halfExtents,2),t=h[0],i=h[1],f=+((null==(c=null==s?void 0:s.style)?void 0:c.lineWidth)||0),u=(y=g,u=2*(o+t)+f,l=2*(a+i)+f,r=d,h=(p=j(p=n,2))[0],p=p[1],s=(h=j(h,2))[0],h=h[1],c=(p=j(p,2))[0],p=p[1],g=Math.min(s,c),o=Math.max(s,c),t=Math.min(h,p),a=Math.max(h,p),i=g,f=t,S=n=0,M="bottom",T="start","left"===y||"right"===y?(n=u+((null==r?void 0:r.titlePadding)||0),"center"===(null==r?void 0:r.titleAnchor)&&(f=(h+p)/2),"end"===(null==r?void 0:r.titleAnchor)&&(f=a,M="top"),"left"===y&&(T="end",n*=-1)):(S=l+((null==r?void 0:r.titlePadding)||0),"center"===(null==r?void 0:r.titleAnchor)&&(i=(s+c)/2,T="center"),"end"===(null==r?void 0:r.titleAnchor)&&(i=o,T="end"),"top"===y&&(S*=-1),"bottom"===y&&(M="top")),void 0!==(null==r?void 0:r.positionX)&&(i=g+r.positionX,T="start"),void 0!==(null==r?void 0:r.positionY)&&(f=t+r.positionY,M="bottom"),{x:i+n,y:f+S,textAlign:T,textBaseline:M});Jw(e,u.x,u.y,u.textAlign,u.textBaseline,d)}},s.style),g2=Math.PI,v2=Math.abs,m2=Math.cos,b2=Math.sin,x2=j([2*g2],1)[0];function w2(t,e,n,r,i){void 0===i&&(i=0);var t=j(t,2),o=t[0],t=t[1],n=n*cx,a=e*m2(n),s=e*b2(n),r=zw(r,-1,1);return[[o+a,t+s],[o+(e+ux(r,i))*m2(n),t+(e+ux(r,i))*b2(n)]]}function k2(t){var e;return lp(t[0],0)?e="center":0<t[0]?e="start":t[0]<0&&(e="end"),e}function E2(t,d,f,p,y,e,g,v){void 0===v&&(v=0);var m=e,b=zw(m,-1,1),e=g.tickPadding,x=void 0===e?0:e,w=g.formatter,k=g.align,E=g.rotate;return Array.from(t).map(function(t,e){var n,r=(f-d)*t.value+d,i=v+x,o=270<=(o=r)?(o-360)%360:o,a=j(w2(y,p,r,m,i),2),a=j(a[1],2),s=a[0],a=a[1],l=w?w(t,e):t.text,u="center",c="baseline",h=[ux(b,s-y[0]),ux(b,a-y[1])];return"radial"===k?(c="middle",(90<=o||o<-90)&&(o+=180),u=k2(h),lp(o,-90)&&(u=jw(m,"start","end")),lp(o,270)&&(u=jw(m,"end","start"))):"tangential"===k?(u="center",c="bottom",0<=o&&o<180?(o+=270,e="function"==typeof(null==g?void 0:g.style)?g.style(t,e):null!=(e=null==(e=null==g?void 0:g.style)?void 0:e.fontSize)?e:14,r=j(w2(y,p,r,m,i+e),2),s=(i=j(r[1],2))[0],a=i[1]):o+=90):(o=null!=E?E:0,u=k2(h),lp((e=h)[1],0)?n="middle":0<e[1]?n="top":e[1]<0&&(n="bottom"),c=n),{id:"label-".concat(t.id),x:s,y:a,text:l,textAlign:u,textBaseline:c,transform:"rotate(".concat((o||0).toFixed(0),"deg)"),data:t}})}var _2,S2=ww({render:function(t,e){var n=t.startAngle,n=void 0===n?0:n,r=t.endAngle,r=void 0===r?0:r,i=t.center,o=t.radius,a=t.axisLine,s=t.tickLine,l=t.subTickLine,u=t.label,u=void 0===u?{}:u,c=t.ticks,D=t.title,h=t.grid,d=t.ticksThreshold,f=t.appendTick,t=t.verticalFactor,c=Zw(void 0===c?[]:c,d,f),d=-1===t?"inside":"outside",f=(d2(e,h),B(e,".axis-line-group","g").attr("className","axis-line-group").node());t=i,h=o,g=n/180*Math.PI,R=r/180*Math.PI,void 0===h&&(h=0),void 0===g&&(g=0),void 0===R&&(R=0),p=(t=j(t=void 0===t?[0,0]:t,2))[0],t=t[1],L=(I=j([h,h],2))[0],I=I[1],E=(_=j([p+h*m2(g),t+h*b2(g)],2))[0],_=_[1],y=(h=j([p+h*m2(R),t+h*b2(R)],2))[0],h=h[1];a2(f,(f=v2(R-g))===x2?"M".concat(p,",").concat(t-I,", A").concat(L,",").concat(I,",0,1,1,").concat(p,",").concat(t+I,", A").concat(L,",").concat(I,",0,1,1,").concat(p,",").concat(t-I):(f=g2<f?1:0,R=R<g?0:1,"M".concat(p,",").concat(t,",L").concat(E,",").concat(_,",A").concat(L,",").concat(I,",0,").concat(f,",").concat(R,",").concat(y,",").concat(h,",L").concat(p,",").concat(t)),void 0,a);var p,y,g=B(e,".axis-tick-group","g").attr("className","axis-tick-group").node();v=n,m=r,b=o,x=i,w=d,void 0===(k=null==s?void 0:s.len)&&(k=0);t2(g,Array.from(c).map(function(t){var e=(m-v)*t.value+v,e=j(w2(x,b,e,w,k),2),n=j(e[0],2),r=n[0],n=n[1],e=j(e[1],2);return{x1:r,y1:n,x2:e[0],y2:e[1],id:"tick-".concat(t.id),data:t}}),s);var v,m,b,x,w,k,E="axis-subtick-group",_=B(e,".".concat(E),"g").attr("className",E).node();S=c,M=n,T=r,O=o,P=i,A=d,C=null==l?void 0:l.count,N=null==l?void 0:l.len,void 0===C&&(C=0),void 0===N&&(N=0);t2(_,Array.from(S).map(function(a,s){return Array(C).fill(null).map(function(t,e){var n=(((null==(n=S[s+1])?void 0:n.value)||1+S[0].value)-a.value)/(C+1),n=a.value+n*(e+1),n=j(w2(P,O,(T-M)*n+M,A,N),2),r=j(n[0],2),i=r[0],r=r[1],n=j(n[1],2),o=n[0],n=n[1];return{id:"sub-".concat(a.id,"-").concat(e),x1:i,y1:r,x2:o,y2:n}})}).flat(),l,"sub");var S,M,T,O,P,A,C,N,L="axis-label-group",I=B(e,".".concat(L),"g").attr("className",L).node(),f=(i2(I,E2(c,n,r,o,i,d,u,null==s?void 0:s.len),u),I.querySelectorAll(".axis-label")),R=I.querySelectorAll(".axis-tick");Kw(u,d)(f),$w(f,R,null==u?void 0:u.autoHideTickLine),Jw(e,i[0],i[1],"center","middle",D)}},Ox({startAngle:-90,endAngle:270,center:[0,0],label:{tickPadding:2,style:{},align:"normal"}},s.style||{})),M2=(i(T2,_2=jh),T2.prototype.connectedCallback=function(){this.render(),this.bindEvents()},T2.prototype.update=function(t){this.attr(C({},this.attributes,t=void 0===t?{}:t)),t.disabled&&(this.active=!1,this.disabled=!0),this.render()},T2.prototype.setState=function(t){"disabled"===t?(this.active=!1,this.disabled=!0):this.disabled=!1,this.render()},T2.prototype.render=function(){var t=this.style,e=t.size,e=void 0===e?8:e,n=t.symbol,r=t.markerStyle,t=t.backgroundStyle,i=j(hx(this.style.margin),4),o=i[0],a=i[1],s=i[2],i=i[3],l=j(hx(this.style.padding),4),u=l[0],c=l[1],h=l[2],l=l[3],c=(e-c-l)/2,h=(e-u-h)/2,a=(B(this,".container","rect").attr("className","container").style("x",-(c+l+i)).style("y",-(h+u+o)).style("width",e+a+i).style("height",e+o+s).style("fill","transparent").style("cursor",this.disabled?"not-allowed":"pointer").style("zIndex",1),t||{}),i=a.active,o=a.disabled,s=I(a,["active","disabled"]),t=(B(this,".background","rect").attr("className","background").style("x",-(c+l)).style("y",-(h+u)).style("width",e).style("height",e).call(N,s).call(N,this.active?i:{}).call(N,this.disabled?o:{}),"function"==typeof n?n:T2.getSymbol(n||"")),a=r||{},l=a.active,u=a.disabled,e=I(a,["active","disabled"]);B(this,".marker","path").attr("className","marker").style("x",0).style("y",0).style("path",null==t?void 0:t(0,0,Math.min(c,h))).call(N,e).call(N,this.active?l:{}).call(N,this.disabled?u:{})},T2.prototype.bindEvents=function(){var e=this,n=A(this).select(".marker"),r=A(this).select(".background");A(this).on("pointerup",function(){e.disabled||(e.active=!0)}),A(this).on("pointermove",function(){var t;e.disabled||(e.active=!0,N(n,null==(t=e.style.markerStyle)?void 0:t.active),N(r,null==(t=e.style.backgroundStyle)?void 0:t.active))}),A(this).on("pointerout",function(){e.disabled||(e.active=!1,N(n,_p(e.style.markerStyle||{},["active"])),N(r,_p(e.style.backgroundStyle||{},["active"])))})},T2.MARKER_SYMBOL_MAP=new Map,T2.registerSymbol=function(t,e){T2.MARKER_SYMBOL_MAP.set(t,e)},T2.getSymbol=function(t){return T2.MARKER_SYMBOL_MAP.get(t)},T2);function T2(t){t=_2.call(this,t)||this;return t.active=!1,t.disabled=!1,t.disabled=t.style.disabled||!1,t}M2.registerSymbol("timeline-prev-button",function(t,e,n){return[["M",t+n,e+n],["L",t,e],["L",t+n,e-n],["M",t,e+n],["L",t-n,e],["L",t,e-n]]}),M2.registerSymbol("timeline-next-button",function(t,e,n){return[["M",t,e+n],["L",t+n,e],["L",t,e-n],["M",t-n,e+n],["L",t,e],["L",t-n,e-n]]}),M2.registerSymbol("timeline-play-button",function(t,e,n){return[["M",t+2,e+3],["L",t+2,e-3],["M",t-2,e+3],["L",t-2,e-3]]}),M2.registerSymbol("timeline-stop-button",function(t,e,n){return[["M",t+3,e],["L",t-1.5,e-1.5*Math.sqrt(3)],["L",t-1.5,e+1.5*Math.sqrt(3)],["Z"]]});var c={margin:[2,4],markerStyle:{stroke:"#bfbfbf",active:{stroke:"#3471F9"}},backgroundStyle:{fill:"transparent"}},O2={x:0,y:0,data:[],width:500,height:40,selection:[0,0],orient:"horizontal",singleModeControl:{width:56,size:12,labelStyle:{text:"单一时间",fontSize:10,dx:4}},speedControl:{width:32,markerSize:4,speeds:[1,2,3,4,5],labelStyle:{fontFamily:"sans-serif",fill:"rgba(0,0,0,0.45)",fontStyle:"normal",fontWeight:500,fontSize:10,textBaseline:"top"},formatter:function(t){return"".concat(t.toFixed(1),"x")}},controlPosition:"bottom",controlButton:{spacing:14,prevBtn:S(S({},c),{symbol:"timeline-prev-btn",padding:0,size:8}),nextBtn:S(S({},c),{symbol:"timeline-next-btn",padding:0,size:8}),playBtn:{margin:4,padding:0,size:20,symbol:"",markerStyle:{stroke:"#bfbfbf",fill:"#bfbfbf",active:{stroke:"#3471F9",fill:"#3471F9"}},backgroundStyle:{stroke:"#bfbfbf",lineWidth:1,fill:"#F7F7F7",active:{fill:"rgba(52, 113, 249, 0.1)",stroke:"#3471F9"}}}},padding:[0,8],playAxis:{appendPadding:[4,0],handleStyle:{r:3,lineWidth:1},label:{position:1,tickPadding:2,tickLine:{len:4,style:{stroke:"rgba(0,0,0,0.25)",lineWidth:1}},style:{fontSize:10,fillOpacity:1,fill:"rgba(0,0,0,0.45)"}},loop:!1},playInterval:2e3,autoPlay:!1},P2=C({},{x:0,y:0,data:[],length:120,orient:"horizontal",selection:0,selectionStyle:{fill:"#5B8FF9",fillOpacity:.15},loop:!1,playInterval:1e3},O2.playAxis),A2={axisLine:null,label:{autoRotate:!1,rotate:0,autoHide:!0,autoHideTickLine:!1,autoEllipsis:!0,minLength:50,alignTick:!0}};function C2(t,e){void 0===t&&(t=[]);var t=j(Array.of(t).flat(),2),n=t[0],n=void 0===n?0:n,t=t[1];return e?[n,n]:[n,void 0===t?n:t]}i(L2,N2=jh),L2.prototype.update=function(t){var e=C({},this.attributes,t=void 0===t?{}:t),t=(t.selection&&(this.selection=C2(t.selection,e.singleMode)),t.singleMode&&(this.selection=C2(e.selection,t.singleMode)),this.playTimer);t&&this.stop(),this.attr(e),this.render(),t&&this.play()},L2.prototype.play=function(){var r=this,t=this.style,e=t.data,i=t.loop,o=t.singleMode,a=t.playMode,s=e.length,t=this.style.playInterval;Xf(t)&&(t=P2.playInterval),this.playTimer&&clearInterval(this.playTimer),this.playTimer=setInterval(function(){var t,e,n;!i&&r.selection[1]>=s-1?r.stop(!0):o?(t=(r.selection[0]+1)%s,r.setSelection({start:t,end:t})):(t=r.selection[0],n=r.selection[1],e=r.selection[1]-r.selection[0],n=s-1<=n?"increase"===a?t:(t=0,e):("increase"!==a&&(t=(t+1)%s),(n+1)%s),r.setSelection({start:t,end:n}))},t)},L2.prototype.stop=function(t){clearInterval(this.playTimer),this.playTimer=void 0,t&&this.dispatchEvent(new Th("timelineStopped",{selection:this.selection}))},L2.prototype.prev=function(){var t,e=j(this.selection,2),n=e[0],e=e[1],r=this.style.data.length,r=r&&this.style.singleMode?t=(n-1+r)%r:0===n?(t=r-(e-n)-1,r-1):(t=n-1,e-1);this.setSelection({start:null!=t?t:this.selection[0],end:null!=r?r:this.selection[1]})},L2.prototype.next=function(){var t,e=j(this.selection,2),n=e[0],e=e[1],r=this.style.data.length,r=r&&this.style.singleMode?t=(n+1)%r:e===r-1?(t=0,e-n):(t=n+1,e+1);this.setSelection({start:null!=t?t:this.selection[0],end:null!=r?r:this.selection[1]})},L2.prototype.getSelection=function(){return this.selection},Object.defineProperty(L2.prototype,"orient",{get:function(){return this.style.orient||"horizontal"},enumerable:!1,configurable:!0}),L2.prototype.ifH=function(t,e){return"horizontal"===this.orient?"function"==typeof t?t():t:"function"==typeof e?e():e},L2.prototype.destroy=function(){N2.prototype.destroy.call(this),this.playTimer&&clearInterval(this.playTimer),this.playTimer=void 0};var N2,a=L2;function L2(){var t=null!==N2&&N2.apply(this,arguments)||this;return t.selection=[0,0],t}function I2(t,e){return new bm({domain:t.map(function(t,e){return e}),range:e,padding:.1})}function R2(t,e,n){n=I2(n,[0,e]).getStep(),e=0<t?Math.ceil:Math.floor;return 0<n?e(t/n):0}function D2(t,e,n){return I2(n,[0,e]).map(t)}i(F2,j2=a),F2.prototype.connectedCallback=function(){this.render(),this.bindEvents()},Object.defineProperty(F2.prototype,"styles",{get:function(){return C({},F2.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),F2.prototype.setSelection=function(t){var e,n,r=t.start,t=t.end,i=this.styles,o=i.data,o=void 0===o?[]:o,i={duration:i.playInterval/2,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",fill:"both"},a=this.ifH("cx","cy"),s=A(this).select(".slider-start-handle").node();void 0!==r&&(n=D2(r,this.style.length,o),this.startHandleAnimation=s.animate([((e={})[a]=s.style[a],e),((s={})[a]=n,s)],i)),void 0!==t&&(e=A(this).select(".slider-end-handle").node(),n=D2(t,this.style.length,o),this.endHandleAnimation=e.animate([((s={})[a]=e.style[a],s),((o={})[a]=n,o)],i)),this.selection=[null!=r?r:this.selection[0],null!=t?t:this.selection[1]],this.dispatchEvent(new Th("selectionChanged",{detail:{selection:this.selection}}))},F2.prototype.render=function(){var e=this,n=this.styles,t=j(this.ifH([n.length,n.size],[n.size,n.length]),2),r=t[0],i=t[1],t=B(this,".slider-background","line").attr("className","slider-background").style("x1",0).style("y1",0).style("x2",this.ifH(r,0)).style("y2",this.ifH(0,i)).style("lineWidth",n.size).style("lineCap","round").style("stroke",null==(t=n.backgroundStyle)?void 0:t.fill).style("strokeOpacity",null==(t=n.backgroundStyle)?void 0:t.fillOpacity).node(),o=I2(n.data,[0,1]),a=j(this.selection.map(function(t){return o.map(t)}),2),s=a[0],s=void 0===s?0:s,a=a[1],a=void 0===a?s:a,l=this.ifH(s*r,0),u=this.ifH(a*r,0),s=this.ifH(0,s*i),a=this.ifH(0,a*i),c=(B(t,".slider-selection","line").attr("className","slider-selection").style("x1",l).style("y1",s).style("x2",u).style("y2",a).style("lineWidth",n.size).style("lineCap","round").style("stroke",null==(h=n.selectionStyle)?void 0:h.fill).style("strokeOpacity",null==(h=n.selectionStyle)?void 0:h.fillOpacity).style("visibility",n.singleMode?"hidden":"visible").call(N,n.selectionStyle),"running"===(null==(h=this.startHandleAnimation)?void 0:h.playState)&&this.startHandleAnimation.pause(),B(t,".slider-start-handle","circle").attr("className","slider-start-handle").style("cx",l).style("cy",s).call(N,n.handleStyle),"paused"===(null==(h=this.startHandleAnimation)?void 0:h.playState)&&this.startHandleAnimation.play(),"running"===(null==(l=this.endHandleAnimation)?void 0:l.playState)&&this.endHandleAnimation.pause(),B(t,".slider-end-handle","circle").attr("className","slider-end-handle").style("cx",u).style("cy",a).style("visibility",n.singleMode?"hidden":"visible").call(N,n.handleStyle),"paused"===(null==(s=this.endHandleAnimation)?void 0:s.playState)&&this.endHandleAnimation.play(),n.data.map(function(t,e){return{value:o.map(e),text:t.date}})),h=n.label||{},l=h.position,d=void 0===l?-1:l,f=h.tickLine,p=I(h,["position","tickLine"]);B(t,".slider-axis",function(){return new y2({className:"slider-axis"})}).call(function(t){return t.node().update(C({},A2,{startPos:[d*e.ifH(0,r+2),d*e.ifH(i+2,0)],endPos:[e.ifH(r,0)+d*e.ifH(0,r+2),e.ifH(0,i)+d*e.ifH(i+2,0)],ticks:c,verticalFactor:d,tickLine:null===n.label?null:f,label:null===n.label?null:p}))})},F2.prototype.bindEvents=function(){var t=A(this).select(".slider-background"),r=(this.dragHandle(t,"start"),this.dragHandle(t,"end"),this.dragSelection(t),t.select(".slider-selection").node()),e=t.select(".slider-start-handle").node(),t=t.select(".slider-end-handle").node();e.addEventListener(m.ATTR_MODIFIED,function(t){var e=t.attrName,n=t.newValue;t.prevValue,"cx"!==e&&"cy"!==e||(t=parseFloat(n)||0,r.style["cx"===e?"x1":"y1"]=t)}),t.addEventListener(m.ATTR_MODIFIED,function(t){var e=t.attrName,n=t.newValue;t.prevValue,"cx"!==e&&"cy"!==e||(t=parseFloat(n)||0,r.style["cx"===e?"x2":"y2"]=t)})},F2.prototype.dragHandle=function(n,o){function t(t){var e,n,r,i;u&&(u=!1,t=R2(s?l.ifH(t.x-s[0],t.y-s[1]):0,l.style.length,l.style.data),s=void 0,e=(n=j(l.selection,2))[0],n=n[1],r=l.style.data.length-1,"start"===o?e===n&&0<t?(i=op(0,e+t,r),l.setSelection({start:i,end:i})):l.setSelection({start:op(e+t,0,n)}):e===n&&t<0?(i=op(0,n+t,r),l.setSelection({start:i,end:i})):l.setSelection({end:op(n+t,e,r)}),l.playTimer&&l.play())}var a,s,l=this,u=!1;n.on("pointerdown",function(t){l.playTimer&&clearInterval(l.playTimer);var e=n.select(".slider-".concat(o,"-handle")).node();t.target===e&&(u=!0,s=[t.x,t.y],a=[t.x,t.y])}.bind(this)).on("pointerup",t).on("mouseupoutside",t).on("touchendoutside",t).on("pointermove",function(t){var e,n,r,i;u&&(e=l.styles.length,n=A(l).select(".slider-".concat(o,"-handle")).node(),r=l.ifH(t.x-a[0],t.y-a[1]),i=n.getLocalPosition(),"vertical"===l.orient?n.style.cy=op(i[1]+r,0,e):n.style.cx=op(i[0]+r,0,e),a=[t.x,t.y])})},F2.prototype.dragSelection=function(t){function e(t){l.playTimer&&clearInterval(l.playTimer),t.target===o&&(h=!0,i=[t.x,t.y],s=[t.x,t.y])}function n(t){var e;h&&(h=!1,t=R2(i?l.ifH(t.x-i[0],t.y-i[1]):0,l.style.length,l.style.data),i=void 0,e=l.selection[1]-l.selection[0],t=op(l.selection[1]+t,e,l.style.data.length-1),l.setSelection({start:t-e,end:t}),l.playTimer&&l.play())}function r(t){var e,n,r,i,o,a;h&&(e=l.styles.length,n=l.ifH(t.x-s[0],t.y-s[1]),r=(a=j(u.getLocalPosition(),2))[0],a=a[1],i=(o=j(c.getLocalPosition(),2))[0],o=o[1],"vertical"===l.orient?(u.style.cy=op(a+n,0,e-(o=o-a)),c.style.cy=u.style.cy+o):(a=i-r,u.style.cx=op(r+n,0,e),c.style.cx=u.style.cx+a),s=[t.x,t.y])}var s,i,l=this,o=t.select(".slider-selection").node(),u=t.select(".slider-start-handle").node(),c=t.select(".slider-end-handle").node(),h=!1;t.on("mousedown",e.bind(this)).on("touchstart",e.bind(this)).on("mouseup",n.bind(this)).on("mouseupoutside",n.bind(this)).on("touchend",n.bind(this)).on("touchendoutside",n.bind(this)).on("mousemove",r.bind(this)).on("touchmove",r.bind(this))},F2.defaultOptions={style:C({},P2,{tag:"slider-axis",size:3,handleStyle:{r:3,stroke:"#8AADF3",strokeOpacity:.75,lineWidth:1,fill:"#fff",fillOpacity:1},backgroundStyle:{fill:"#416180",fillOpacity:.1},selectionStyle:{cursor:"grabbing"}})};var j2,B2=F2;function F2(t){t=j2.call(this,C({},F2.defaultOptions,t))||this;return t.startHandleAnimation=null,t.endHandleAnimation=null,t.selection=C2(t.style.selection,t.style.singleMode),t}function z2(t,e){return new bv({domain:t.map(function(t,e){return e}),range:e,paddingOuter:0,paddingInner:0})}i(H2,V2=a),H2.prototype.connectedCallback=function(){this.render(),this.bindEvents()},Object.defineProperty(H2.prototype,"styles",{get:function(){return C({},H2.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),H2.prototype.setSelection=function(t){var e,n=j(this.selection,2),r=n[0],n=n[1];this.selection=C2([null!=(e=t.start)?e:r,null!=(e=t.end)?e:n],this.style.singleMode),this.dispatchEvent(new Th("selectionChanged",{detail:{selection:this.selection}})),this.render()},H2.prototype.render=function(){var i=this,r=this.styles,o=r.size,a=r.spacing,t=j(this.ifH(["x","y","width","height"],["y","x","height","width"]),4),s=t[0],l=t[1],u=t[2],c=t[3],t=B(this,".slider-background","rect").attr("className","slider-background").style("x",0).style("y",0).style(u,r.length).style(c,o+a).call(N,r.backgroundStyle).node(),h=this.getCellScale(),d=h.getBandWidth(),e=r.data.map(function(t,e){var n;return S(((n={})[s]=h.map(e),n[l]=a/2,n[u]=d-r.cellGap,n[c]=o,n),r.cellStyle)}),e=(A(t).selectAll(".cell").data(e).join(function(t){return t.append("rect").attr("className","cell").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.attr(t)})},function(t){return t.remove()}),e.filter(function(t,e){var n=j(i.selection,2),r=n[0],n=n[1];return r<=e&&e<=n}).map(function(t){return S(S({},t),r.selectionStyle)})),n={duration:this.style.playInterval/2,easing:"cubic-bezier(0.250, 0.460, 0.450, 0.940)",fill:"both"},f=(A(t).selectAll(".selected-cell").data(e).join(function(t){return t.append("rect").attr("className","selected-cell").each(function(t){this.attr(t)})},function(t){return t.each(function(t){this.animate([t],n)})},function(t){return t.remove()}),r.length-2*r.spacing+r.cellGap),p=z2(r.data,[0,f]),y=r.data.map(function(t,e){return{value:(p.map(e)+(d-r.cellGap)/2)/f,text:t.date}}),e=r.label||{},g=e.position,v=void 0===g?-1:g,m=e.tickLine,b=I(e,["position","tickLine"]),g=-1===v?-2:r.spacing+o+2,x=[r.spacing,g],w=[a+f,g];"vertical"===this.orient&&(x=[x[1],x[0]],w=[w[1],w[0]]),B(t,".slider-axis",function(){return new y2({className:"slider-axis",style:A2})}).call(function(t){return t.node().update({startPos:x,endPos:w,ticks:y,verticalFactor:v,tickLine:null===r.label?null:m,label:null===r.label?null:b})})},H2.prototype.bindEvents=function(){this.dragSelection()},H2.prototype.getCellScale=function(){var t=this.styles.cellGap,e=this.styles.length,n=this.styles.spacing;return z2(this.style.data,[n,e-n+t])},H2.prototype.dragSelection=function(){function t(){r=!1,i.playTimer&&i.play()}var n,i=this,o=A(this).select(".slider-background"),r=!1,a=this.styles.spacing,s=function(t){var e=j(o.node().getPosition(),2),n=e[0],e=e[1],n=i.ifH(n+4,e+a),e=i.styles.cellGap,r=i.getCellScale().getStep();return Math.floor((t-n+e)/r)};o.on("pointerdown",function(t){i.playTimer&&clearInterval(i.playTimer),r=!0,n=i.ifH(t.x,t.y);t=s(n);i.setSelection({start:t,end:t})}).on("pointerup",t).on("mouseupoutside",t).on("touchendoutside",t).on("pointermove",function(t){var e;r&&(t=s(i.ifH(t.x,t.y)),e=(t=j((e=n?s(n):t)<t?[e,t]:[t,e],2))[0],t=t[1],i.setSelection({start:e,end:t}))})},H2.defaultOptions={style:C({},P2,{tag:"cell-axis",backgroundStyle:{fill:"#416180",fillOpacity:.05},size:16,spacing:4,cellGap:2,cellStyle:{fill:"#416180",fillOpacity:.1},selectionStyle:{fillOpacity:.45},label:{autoHideTickLine:!0}})};var V2,G2=H2;function H2(t){t=V2.call(this,C({},H2.defaultOptions,t))||this;return t.selection=C2(t.style.selection,t.style.singleMode),t}function W2(t,e){return[1.43,2.79,4.89,7.57,11.66][t]/11.66*e}var U2,l=C({},O2.speedControl,{markerFill:"#8c8c8c",spacing:1,lineStyle:{stroke:"#bfbfbf",lineWidth:1}}),Y2=(i(q2,U2=jh),q2.prototype.connectedCallback=function(){this.render(),this.bindEvents()},q2.prototype.update=function(t){this.attr(C({},this.attributes,t=void 0===t?{}:t)),this.render()},Object.defineProperty(q2.prototype,"styles",{get:function(){return C({},q2.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),q2.prototype.render=function(){var t=this.styles,e=t.initialSpeed,n=t.markerSize,r=t.markerFill,i=t.lineStyle,o=t.speeds,a=t.labelStyle,s=t.spacing,t=t.formatter,t=void 0===t?function(t){return"".concat(t)}:t,e=o.indexOf(e),l=2*n,u=W2(e=-1===e?0:e,2*l),c=n*Math.tan(Math.PI/6)*2,r=(B(this,".speed-marker","path").attr("className","speed-marker").style("fill",r).style("path",[["M",0,u-c/2],["L",n,u],["L",0,u+c/2],["Z"]]),n-.5),u=B(this,".line-group","rect").attr("className","line-group").style("x",r).style("y",0).style("width",l).style("height",2*l).style("cursor","pointer").style("fill","transparent").node(),c=o.reduce(function(t,e,n){n=W2(n,2*l);return t.push(["M",0,n],["L",l,n]),t},[]);B(u,".speed-path","path").attr("className","speed-path").style("path",c).call(N,i),B(this,".speed-label","text").attr("className","speed-label").style("x",r+l+s).style("y",2).style("text",t(o[e])).call(N,a)},q2.prototype.bindEvents=function(){var e=this,t=this.querySelector(".line-group");t.addEventListener("pointerdown",function(t){return e.onClick(t)}),t.addEventListener("touchmove",function(t){return e.onClick(t)})},q2.prototype.onClick=function(t){var o,e=this.styles,a=e.speeds,n=e.markerSize,e=e.formatter,e=void 0===e?function(t){return"".concat(t)}:e,s=2*n*2,n=this.querySelector(".line-group"),r=A(this).select(".speed-label").node(),i=A(this).select(".speed-marker").node();t.currentTarget===n&&(o=t.y-n.getBBox().y,-1!==(t=a.findIndex(function(t,e){var n=W2(e,s),r=W2(e-1,s),i=W2(e+1,s);if(0===e)return o<n+(W2(1,s)-n)/2;if(e===a.length-1)return n-(n-r)/2<o;e=[n-(n-r)/2,n+(i-n)/2];return e[0]<=o&&o<e[1]}))&&(r.setAttribute("text",e(a[t])),i.setLocalPosition(0,W2(t,s)-s/8),this.dispatchEvent(new Th("speedChanged",{detail:{speed:a[t]}}))))},q2.tag="speed-control",q2.defaultOptions={style:l},q2);function q2(t){return U2.call(this,C({},q2.defaultOptions,t))||this}i($2,X2=jh),$2.prototype.connectedCallback=function(){this.render(),this.bindEvents()},Object.defineProperty($2.prototype,"styles",{get:function(){return C({},$2.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),$2.prototype.update=function(t){this.attr(C({},this.attributes,t=void 0===t?{}:t)),Xf(t.active)||(this.active=t.active),this.render()},$2.prototype.render=function(){var t,e=this.styles,n=e.size,r=e.buttonStyle,i=e.labelStyle,e=e.symbol,o=r.active,r=I(r,["active"]),r=B(this,".button","rect").attr("className","button").style("x",0).style("y",0).style("width",n).style("height",n).call(N,r).call(N,this.active?o:{}).node();B(r,".symbol","path").attr("className","symbol").style("x",n/2).style("y",n/2).style("path",[["M",(o=n/2)-(t=r=n/2)/7*4,r-t/14],["L",o-t/7,r+t/7*3],["L",o+t/7*4,r-t/7*3]]).style("lineWidth",1).style("lineCap","round").style("stroke","transparent").style("cursor","pointer").call(N,this.active?null==e?void 0:e.active:{}),B(this,".label","text").attr("className","label").style("x",n).style("y",n/2).call(N,i)},$2.prototype.bindEvents=function(){var t=this;A(this).select(".button").on("pointerdown",function(){t.dispatchEvent(new Th("singleModeChanged",{detail:{active:!t.active}}))})},$2.defaultOptions={style:{size:12,buttonStyle:{fill:"transparent",stroke:"#000",strokeOpacity:.15,cursor:"pointer",lineWidth:1,radius:2,active:{stroke:"#3471F9",fill:"#3471F9",strokeOpacity:1}},symbol:{active:{stroke:"#fff"}},labelStyle:{text:"",textAlign:"left",textBaseline:"middle",fill:"#000",fillOpacity:.65},cursor:"pointer"}};var X2,Z2,K2=$2;function $2(t){t=X2.call(this,C({},$2.defaultOptions,t))||this;return t.active=!1,t.active=t.style.active||!1,t}function J2(t,e,n){var n=C({},O2,n),r=n.type,i=n.playAxis,o=n.controlButton,a=n.speedControl,s=n.singleModeControl,l=(null==(l=null==i?void 0:i.label)?void 0:l.position)||-1,u=null!=(u=null==i?void 0:i.spacing)?u:(null==(u=null==(u=G2.defaultOptions)?void 0:u.style)?void 0:u.spacing)||0,c=(null==i?void 0:i.size)||("cell"===r?null==(c=null==(c=G2.defaultOptions)?void 0:c.style)?void 0:c.size:null==(c=null==(c=B2.defaultOptions)?void 0:c.style)?void 0:c.size)||4,u=(c+="cell"===r?u:0,j(hx(null==i?void 0:i.appendPadding),4)),h=u[0],d=u[1],f=u[2],u=u[3],p=(null==o?void 0:o.spacing)||0,y=fp(o)||fp(null==o?void 0:o.playBtn)?0:null==(y=null==o?void 0:o.playBtn)?void 0:y.size,g=fp(o)||fp(null==o?void 0:o.prevBtn)?0:null==(g=null==o?void 0:o.prevBtn)?void 0:g.size,o=fp(o)||fp(null==o?void 0:o.nextBtn)?0:null==(o=null==o?void 0:o.nextBtn)?void 0:o.size,v=y/2+g/2+p,m=y/2+o/2+p,b=null===a?0:null==a?void 0:a.markerSize,x=2*b,a=null===a?0:null==a?void 0:a.width,w=2*x+b/2,k=null===s?0:null==s?void 0:s.width,s=null===s?0:(null==s?void 0:s.size)+2;if("vertical"===n.orient)return{axis:{x:(n=u+(-1===l?30:0))+("cell"===r?0:c/2),y:S=(_=g+p+y/2)+y/2+p+h,length:(E=(M=(T=e-s)-4-w)-p-o/2)-p-o/2-f-S},prevBtn:{x:S=n+c/2,y:g/2,size:g},playBtn:{x:S,y:_,size:y},nextBtn:{x:S,y:E,size:o},speedControl:{x:n-a/2,y:M,size:a},singleModeControl:{x:0,y:T}};var E,_=e-k,S=_-8-a,M=(E=i,(E=C({},O2.playAxis,E).label)?((null==(n=E.tickLine)?void 0:n.len)||0)+(E.tickPadding||0)+(Number(E.style.fontSize)||0)+2:0),T=(-1===l?M:0)+("cell"===r?0:c/2)+h;if("bottom"===t)return{axis:{x:u,y:T,length:e-(u+d)},playBtn:{x:k=e/2,y:i=T+(1===l?M:0)+c+y/2+f,size:y},prevBtn:{x:k-v,y:i,size:g},nextBtn:{x:k+m,y:i,size:o},speedControl:{x:S,y:n=T+(1===l?M:0)+c+f,size:a},singleModeControl:{x:_,y:n+x-s/2}};h="cell"===r?T+c/2:T,e="cell"===r&&-1===l?M+c-w:1===l?T+b/2:T-w;if("left"===t)return{axis:{x:n=(f=(i=(k=g/2)+v)+m)+o/2+u,y:T,length:S-d-n},prevBtn:{x:k,y:h,size:g},playBtn:{x:i,y:h,size:y},nextBtn:{x:f,y:h,size:o},speedControl:{x:S,y:e,size:a},singleModeControl:{x:_,y:e+x-s/2}};r=S-(o/2+p),M=r-m,c=M-v;return{axis:{x:u,y:T,length:c-g/2-d-u},playBtn:{x:M,y:h,size:y},prevBtn:{x:c,y:h,size:g},nextBtn:{x:r,y:h,size:o},speedControl:{x:S,y:e,size:a},singleModeControl:{x:_,y:e+x-s/2}}}function Q2(t){t=Z2.call(this,C({},{style:O2},t))||this;return t.speed=1,t.singleMode=!1,t.playing=!1,t.selection=[0,0],t.singleMode=t.style.singleMode||!1,t.selection=C2(t.style.selection,t.singleMode),t}function tk(t){var e,n={left:0,top:0,width:0,height:0};return"html"===(null==t?void 0:t.tagName)?n={left:0,top:0,width:(e=t.style).width,height:e.height}:t&&(t=(e=t.getLocalBounds()).min,e=e.halfExtents,n={left:t[0],top:t[1],width:2*e[0],height:2*e[1]}),{left:0,top:0,right:n.width,bottom:n.height}}function ek(t,n){var e;if(!n)return(e=t.querySelector(".legend-title"))&&e.remove(),null;var r=n.useHTML,i=n.style,o="legend-title ".concat(r?"html":"text","-title"),a="<span>".concat((null==n?void 0:n.content)||"","</span>");return B(t,".".concat(o),function(){return r?new od({className:o,style:{innerHTML:a}}):new rd({className:o,style:i})}).call(function(t){var e;r?t.style("width",null!=(e=n.width)?e:80).style("height",null!=(e=n.height)?e:20).style("innerHTML",a):t.style("fontSize",12).style("textBaseline","top").style("text",n.content||"")}).call(N,i).node()}function nk(t,e,n,r){return B(t,".".concat(e),"g").attr("className",e).style("x",n).style("y",r).node()}function rk(t,e,n,r,i){B(t,".".concat(e),"rect").attr("className",e).style("zIndex",-1).style("width",n).style("height",r).call(N,i||{}).node()}i(Q2,Z2=jh),Q2.prototype.connectedCallback=function(){this.render(),this.bindEvents()},Q2.prototype.update=function(t){this.attr(C({},this.attributes,t=void 0===t?{}:t)),void 0!==t.singleMode&&(this.singleMode=t.singleMode),t.selection&&(this.selection=C2(t.selection,this.singleMode)),this.render()},Object.defineProperty(Q2.prototype,"styles",{get:function(){return C({},O2,this.attributes)},enumerable:!1,configurable:!0}),Q2.prototype.render=function(){var e=this,t=this.styles,n=t.width,r=t.height,i=t.controlPosition,o=t.speedControl,a=t.singleModeControl,t=j(hx(this.styles.padding),4),s=t[0],s=void 0===s?0:s,l=t[1],l=void 0===l?0:l,u=t[2],t=t[3],t=void 0===t?l:t,c=B(this,".container","g").attr("className","container").style("x",t).style("y",s).node(),h=J2(i,"vertical"===this.style.orient?r-(s+u):n-(t+l),this.styles);this.renderAxis(c,h),this.renderControlButton(c,h),B(c,".timeline-speed-control",function(){return new Y2({})}).attr("className","timeline-speed-control").call(function(t){null===o?t.remove():t.node().update(S(S({x:h.speedControl.x,y:h.speedControl.y},o),{initialSpeed:e.speed}))}),B(c,".timeline-single-control",function(){return new K2({})}).attr("className","timeline-single-control").call(function(t){null===a?t.remove():t.node().update(S(S({x:h.singleModeControl.x,y:h.singleModeControl.y},a),{active:e.singleMode}))})},Q2.prototype.renderAxis=function(t,e){var n=this,r=this.styles.data,i=this.styles.type||"slider",o=A(t).select(".timeline-axis").node(),a="cell"===i?G2:B2;o&&o.style.tag!=="".concat(i,"-axis")&&(o.remove(),this.removeChild(o)),B(t,".timeline-axis",function(){return new a({})}).attr("className","timeline-axis").call(function(t){t.node().update(S({x:e.axis.x,y:e.axis.y,length:e.axis.length,data:r,selection:n.selection,orient:n.style.orient,playInterval:n.style.playInterval/n.speed,singleMode:n.singleMode},n.style.playAxis||{})),t.node().update({handleStyle:{cursor:"vertical"===n.style.orient?"ns-resize":"ew-resize"}})}).node()},Q2.prototype.renderControlButton=function(t,n){var e,r=this,i=n.playBtn.size||0,o=n.prevBtn.size||0,a=(null==(e=n.nextBtn)?void 0:e.size)||0;B(t,".timeline-prev-btn",function(){return new M2({})}).attr("className","timeline-prev-btn").call(function(t){var e;o?(t.node().update(S(S({},(null==(e=r.style.controlButton)?void 0:e.prevBtn)||{}),{x:n.prevBtn.x,y:n.prevBtn.y,size:o,symbol:"timeline-prev-button"})),t.node().update({markerStyle:{transformOrigin:"center",transform:"vertical"===r.style.orient?"rotate(90deg)":""}})):t.remove()}),B(t,".timeline-play-btn",function(){return new M2({})}).attr("className","timeline-play-btn").call(function(t){var e;i?(t.node().update({backgroundStyle:{radius:(n.playBtn.size||0)/2}}),t.node().update(S(S({},(null==(e=r.style.controlButton)?void 0:e.playBtn)||{}),{x:n.playBtn.x,y:n.playBtn.y,size:i,symbol:r.playing?"timeline-play-button":"timeline-stop-button"}))):t.remove()}),B(t,".timeline-next-btn",function(){return new M2({})}).attr("className","timeline-next-btn").call(function(t){var e;a?(t.node().update(S(S({},(null==(e=r.style.controlButton)?void 0:e.nextBtn)||{}),{x:n.nextBtn.x,y:n.nextBtn.y,size:a,symbol:"timeline-next-button"})),t.node().update({markerStyle:{transformOrigin:"center",transform:"vertical"===r.style.orient?"rotate(90deg)":""}})):t.remove()}),this.style.autoPlay&&!this.playing&&(this.playing=!0,A(this).select(".timeline-axis").call(function(t){return null==(t=t.node())?void 0:t.play()}),A(this).select(".timeline-play-btn").call(function(t){return null==(t=t.node())?void 0:t.update({symbol:"timeline-play-button"})})),!this.style.autoPlay&&this.playing&&(this.playing=!1,A(this).select(".timeline-axis").call(function(t){return null==(t=t.node())?void 0:t.stop()}),A(this).select(".timeline-play-btn").call(function(t){return null==(t=t.node())?void 0:t.update({symbol:"timeline-stop-button"})}))};var r={style:{x:0,y:0,padding:0,orient:"horizontal",backgroundStyle:{fill:"transparent",lineWidth:0},title:{content:"",spacing:4,align:"left",style:{fontWeight:"bold",fontFamily:"sans-serif",fontSize:12,textAlign:"top",textBaseline:"top",fill:"#2C3542"}},label:{style:{fill:"#2C3542",fillOpacity:.65,fontSize:12}}}},ik={symbol:"circle",size:8},ok={style:{inactive:{fill:"#d3d2d3",opacity:.5}}},ak={style:{inactive:{fill:"#d3d2d3",opacity:.5}}},sk=C({},r,{style:{type:"category",items:[],maxWidth:void 0,maxHeight:void 0,maxCols:void 0,maxRows:void 0,spacing:[8,2],itemBackground:{padding:0,style:{fill:"transparent",active:{cursor:"pointer"}}},reverse:!(Q2.prototype.bindEvents=function(){var e=this,n=A(this).select(".timeline-axis").node(),r=A(this).select(".timeline-play-btn").node();r&&A(r).on("pointerdown",function(t){e.playing?(e.playing=!1,n.stop(),r.update({symbol:"timeline-stop-button"})):(e.playing=!0,n.play(),r.update({symbol:"timeline-play-button"}))}),A(this).on("timelineStopped",function(){e.playing=!1,null!=r&&r.update({symbol:"timeline-stop-button"})}),A(this).on("speedChanged",function(t){e.speed=t.detail.speed,n.update({playInterval:e.style.playInterval/e.speed})}),A(this).select(".timeline-prev-btn").on("pointerdown",function(){return n.prev()}),A(this).select(".timeline-next-btn").on("pointerdown",function(){return n.next()}),A(this).on("singleModeChanged",function(t){e.singleMode=t.detail.active,e.selection=C2(e.selection,e.singleMode),e.render()}),A(this).on("selectionChanged",function(t){e.selection=t.detail.selection})}),pageNavigator:{loop:!1}}}),lk={width:100,height:20,type:"color",chunked:!1,ticks:[],isGradient:"auto",backgroundColor:"#c5c5c5"},uk={spacing:4,formatter:function(t){return String(t)},align:"rail",flush:!0,maxLength:30},ck={size:25,stroke:"#c5c5c5",fill:"#fff",lineWidth:1},hk=C({},r,{style:{type:"continuous",color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],label:uk,rail:lk,slidable:!0,indicator:{size:8,spacing:10,padding:5,backgroundStyle:{fill:"#262626","background-color":"#262626","border-radius":"5px"},text:{style:{color:"white","font-size":"12px"}}}}}),dk="legend-item-";function fk(t,e){t&&(t.setAttribute("tip",t.style.text),null!=t&&t.attr("text",e||""))}function pk(n,t){return void 0===n&&(n={}),(t=void 0===t?"":t).split("-").reduce(function(t,e){return S(S({},t),kp(n,e,{}))},{})}i(vk,yk=G),vk.prototype.setState=function(t,e){void 0===t&&(t=""),void 0===e&&(e=!0);var n=new Set((this.state||"").split("-"));e?n.add(t):n.delete(t),this.state=z([],j(n),!1).join("-"),this.update()},vk.prototype.getState=function(){return this.state},vk.prototype.update=function(t){yk.prototype.update.call(this,t=void 0===t?{}:t),t.state&&(this.state=t.state)},Object.defineProperty(vk.prototype,"styles",{get:function(){return C({},vk.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),vk.prototype.render=function(t,e){var n,r,i,o,a,s,l=this,u=this.styles,c=u.backgroundStyle,h=u.itemMarker,d=u.padding,f=u.itemName,p=u.itemValue,u=u.maxItemWidth,y=this.styles.itemHeight,d=j(hx(d),4),g=d[0],v=d[1],m=d[2],d=d[3],b=Number((null==h?void 0:h.size)||0),x=(Xf(y)&&(y=Math.max.call(null,b,Number((null==(x=null==f?void 0:f.style)?void 0:x.fontSize)||0),Number((null==(x=null==p?void 0:p.style)?void 0:x.fontSize)||0))+(g+m)),B(this,".".concat(dk,"container"),"g").attr("className","".concat(dk,"container")).style("x",d).style("y",y/2).node()),w=(B(x,".".concat(dk,"marker"),function(){return new L({})}).attr("className","".concat(dk,"marker")).call(function(t){h?t.node().update(S(S({x:b/2,y:0,size:b,symbol:h.symbol},h.style||{}),pk(h.style,l.state))):t.remove()}),b?b+((null==f?void 0:f.spacing)||0):0),g=B(x,".".concat(dk,"name"),"text").attr("className","".concat(dk,"name")).call(function(t){f?t.node().attr(S(S({x:w,y:0,tip:"",text:(null==f?void 0:f.content)||"",textBaseline:"middle",textAlign:"left"},f.style||{}),pk(f.style,l.state))):t.remove()}).node(),k=w,m=(g&&!g.destroyed&&(k=g.getLocalBounds().max[0]),B(x,".".concat(dk,"value"),"text").attr("className","".concat(dk,"value")).call(function(t){p?t.node().attr(S(S(S({x:k+(p.spacing||0),y:0,tip:"",text:(null==p?void 0:p.content)||"",textAlign:"left"},p.style||{}),pk(p.style,l.state)),{textBaseline:"middle"})):t.remove()}).node()),E=(Xf(u)||(g=null!=g&&g.destroyed?null:g,m=null!=m&&m.destroyed?null:m,n=u-w-(d+v),(g||m)&&"number"==typeof n&&(Number(n)<=0?(fk(g,""),fk(m,"")):g&&m?(a=g.getLocalBounds(),i=m.getLocalBounds(),n<(r=2*a.halfExtents[0])+(E=2*i.halfExtents[0])+(i=r&&E?i.min[0]-a.max[0]:0)&&(o=(a=j([.5*n,.5*n],2))[0],a=a[1],s=_=!0,r<=o?(a=n-(r+i),_=!1):E<=a&&(o=n-(E+i),s=!1),_&&(fk(g,Qb(g.style.text,o,nx(g))),m.attr("x",Number(g.style.x)+o+i)),s&&fk(m,Qb(m.style.text,a,nx(m))))):n<2*(r=g||m).getLocalBounds().halfExtents[0]&&fk(r,Qb(r.style.text,n,nx(r))))),x.getLocalBounds()),_=Math.max(2*E.halfExtents[0]+v+d,this.styles.itemWidth||0);Xf(u)||(_=Math.min(u,_)),B(this,".".concat(dk,"background"),"rect").attr("className","".concat(dk,"background")).style("x",E.min[0]-d).style("y",0).style("width",_).style("height",y).style("zIndex",-1).call(N,c).call(N,pk(c,this.state))},vk.defaultOptions={style:{id:"",value:{},itemMarker:{size:8,symbol:"circle",style:{fill:"#d3d2d3",fillOpacity:1,lineWidth:0,active:{cursor:"pointer"}}},itemName:{spacing:4,style:{fontFamily:"sans-serif",fill:"#646464",fontSize:12,opacity:1,active:{cursor:"pointer"}}},itemValue:{spacing:4,style:{fontFamily:"sans-serif",fill:"#646464",opacity:1,fontSize:12,active:{cursor:"pointer"}}}}};var yk,gk=vk;function vk(t){t=yk.call(this,C({},vk.defaultOptions,t))||this;return t.state="default",t.state=t.style.state||"selected",t}function mk(t,o,a){void 0===a&&(a=0);var s=0,l=0,u=0;return t.reduce(function(t,e){var n=j(e.getLocalBounds().halfExtents,2),r=n[0],n=n[1],i="horizontal"===o?[t,0]:[0,t];return e.setLocalPosition(i[0],i[1]),l=Math.max(l,2*n),u=Math.max(u,2*r),(s="horizontal"===o?t+2*r:t+2*n)+a},0),{totalSize:s,maxItemWidth:u,maxItemHeight:l}}M2.registerSymbol("left",function(t,e,n){return[["M",t-n*Math.sin(Math.PI/3),e],["L",t+n,e-n],["L",t+n,e+n],["Z"]]}),M2.registerSymbol("right",function(t,e,n){return[["M",t-n,e-n],["L",t+n*Math.sin(Math.PI/3),e],["L",t-n,e+n],["Z"]]}),M2.registerSymbol("up",function(t,e,n){return[["M",t-n,e+n],["L",t,e-n*Math.sin(Math.PI/3)],["L",t+n,e+n],["Z"]]}),M2.registerSymbol("down",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t,e+n*Math.sin(Math.PI/3)],["Z"]]});i(wk,bk=jh),wk.prototype.connectedCallback=function(){this.container=this.appendChild(new Hh),this.clipView=new Zh({style:{path:[]}}),this.render(),this.bindEvents()},wk.prototype.update=function(t){this.attr(C({},this.attributes,t=void 0===t?{}:t)),this.render()},Object.defineProperty(wk.prototype,"styles",{get:function(){return C({},wk.defaultOptions.style,this.attributes)},enumerable:!1,configurable:!0}),wk.prototype.render=function(){this.renderButtonGroup();var t=this.style.items,t=void 0===t?[]:t;this.items=A(this.container).selectAll(".legend-item").data(t||[],function(t,e){return t.id||e}).join(function(t){return t.append(function(t){return new gk({id:t.id,className:"legend-item",style:t})})},function(t){return t.each(function(t){this.update(t)})},function(t){return t.remove()}).nodes(),this.adjustLayout()},wk.prototype.bindEvents=function(){this.prevButton.addEventListener("pointerdown",this.prev.bind(this)),this.nextButton.addEventListener("pointerdown",this.next.bind(this))},wk.prototype.ifHorizontal=function(t,e){return"vertical"===this.style.orient?"function"==typeof e?e():e:"function"==typeof t?t():t},wk.prototype.renderButtonGroup=function(){var t=this.styles,e=t.pageButtonStyle,n=void 0===e?{}:e,e=t.pageTextStyle,t=B(this,".page-button-group",function(){return new Hh({className:"page-button-group"})}).node(),r="page-prev-button",i="page-next-button";this.prevButton=B(t,"#".concat(r),function(){return new M2({})}).attr("id",r).attr("className","page-button").attr("zIndex",2).call(function(t){t.node().update(n)}).node(),B(t,".page-info","text").attr("className","page-info").call(N,e),this.nextButton=B(t,"#".concat(i),function(){return new M2({})}).attr("id",i).attr("className","page-button").attr("zIndex",2).call(function(t){t.node().update(n)}).node(),this.updatePageButtonSymbol()},Object.defineProperty(wk.prototype,"pageInfoBounds",{get:function(){var t=this.querySelector(".page-info");if(!t)return{width:0,height:0};var e=this.styles,n=e.pageFormatter,e=e.pageInfoSpacing,r=t.style.visibility,n=(t.style.visibility="hidden",t.style.text=n(1,this.styles.items.length),j(t.getLocalBounds().halfExtents,2)),i=n[0],n=n[1];return t.style.visibility=r,{width:2*(i+e),height:2*(n+e)}},enumerable:!1,configurable:!0}),wk.prototype.layoutButton=function(t){var e,n=this.style.pageInfoSpacing,r=this.pageInfoBounds.height,n=this.pageInfoBounds.width+2*(void 0===n?0:n),i=j(this.querySelector(".page-button-group").childNodes,3),o=i[0],a=i[1],i=i[2];"horizontal"===t?(t=2*o.getLocalBounds().halfExtents[0],e=2*i.getLocalBounds().halfExtents[0],o.style.x=t/2,i.style.x=t+n+e/2,a.style.x=(Number(o.style.x)+Number(i.style.x))/2,o.style.y=0,i.style.y=0,a.style.y=0):(t=2*o.getLocalBounds().halfExtents[1],n=2*i.getLocalBounds().halfExtents[1],o.style.y=-(r+t)/2,i.style.y=(r+n)/2,a.style.y=0,e=this.pageInfoBounds.width/2,o.style.x=e,i.style.x=e,a.style.x=e)},wk.prototype.showButtonGroup=function(){this.querySelector(".page-button-group").style.visibility="visible"},wk.prototype.resetPageCfg=function(){this.querySelector(".page-button-group").style.visibility="hidden",this.container.style.clipPath=null,this.currPage=void 0,this.maxPages=void 0,this.pageOffsets=[],this.container.style.transform="translate(0,0)",this.clipView&&(this.clipView.style.transform="translate(0,0)")},wk.prototype.adjustLayout=function(){var t,e,n,r;this.resetPageCfg(),this.items.length<=1||(t=(n=j(hx(this.style.spacing),2))[0],n=n[1],t=this.ifHorizontal(t,n),t=(n=mk(this.items,this.style.orient||"horizontal",t)).totalSize,e=n.maxItemWidth,n=n.maxItemHeight,r=this.ifHorizontal(this.style.maxWidth,this.style.maxHeight),!Xf(r)&&r!==1/0&&r<t&&(this.style.autoWrap&&"vertical"!==this.style.orient?(this.layoutButton("vertical"),this.adjustHorizontalWrap(e,n,r)):(this.layoutButton("horizontal"),this.adjustFlip(e,n,r))))},wk.prototype.adjustFlip=function(t,e,n){this.showButtonGroup();var r=this.querySelector(".page-button-group"),i=this.style.pageSpacing,o=this.prevButton.style.size||wk.defaultOptions.style.pageButtonSize,a=r.getLocalBounds(),s=2*a.halfExtents[0],a=2*a.halfExtents[1],e=j(this.ifHorizontal([n-(s+i),e],[t,n-(a+i)]),2),l=e[0],u=e[1];this.clipView.style.path="M-1,0 L".concat(l,",0 L").concat(l,",").concat(u," L-1,").concat(u," Z"),this.container.style.clipPath=this.clipView,r.style.x=this.ifHorizontal(n-s,0),r.style.y=this.ifHorizontal(u/2-1,u+o+i);for(var c="x"===this.ifHorizontal("x","y")?0:1,h=[0],d=1,f=0;f<this.items.length;f++){var p=this.items[f].getLocalBounds(),y=p.min;p.max[c]-ip(h)>this.ifHorizontal(l,u)+4&&(0!==y[c]&&h.push(y[c]),d+=1)}this.maxPages=d,this.currPage=1,this.pageOffsets=h,this.updatePageNavigatorState()},wk.prototype.adjustHorizontalWrap=function(t,u,e){this.showButtonGroup();var n,r=this.querySelector(".page-button-group"),i=this.style,o=i.pageSpacing,o=void 0===o?0:o,a=i.cols,i=this.pageInfoBounds.width,c=this.style.maxRows||2,s=r.getLocalBounds(),s=Math.max(2*s.halfExtents[0],i),i=e-(s+o),l=u*c;function h(t,e){for(var n=1,r=0,i=[0],o=0;o<e.length;o++){var a=e[o],s=a.getLocalBounds(),l=s.min;s.max[0]-r>t&&(n+=1,r=l[0],n%c==1&&i.push((n-1)*u)),a.setLocalPosition(l[0]-r,(n-1)*u)}return i}a&&c&&(a*c<=this.items.length&&(i=e),n=e/a),this.clipView.style.path="M-1,0 L".concat(i,",0 L").concat(i,",").concat(l," L-1,").concat(l," Z"),this.container.style.clipPath=this.clipView;var d=[];if(a&&n)for(var f=j(hx(this.style.spacing),1)[0],p=0,y=0,g=0;g<this.items.length;g+=a){y=0,(p+=1)%c==1&&d.push(Math.floor(p/c)*l);for(var v=0;v<a&&g+v<this.items.length;v++)this.items[g+v].update({x:y,y:(p-1)*u,maxItemWidth:n-f}),y+=n}else 1===(d=h(i,this.items)).length&&(f=(o=j(hx(this.style.spacing),2))[0],i=o[1],y=this.ifHorizontal(f,i),mk(this.items,this.style.orient||"horizontal",y),h(e,this.items));this.maxPages=d.length,this.currPage=1,this.pageOffsets=d,this.maxPages<=1?this.resetPageCfg():(r.style.x=e-s,r.style.y=l/2-2,this.updatePageNavigatorState())},wk.prototype.updatePageNavigatorState=function(){this.updatePageInfo(),this.currPage===this.maxPages?this.nextButton.setState("disabled"):this.nextButton.setState("default"),1===this.currPage?this.prevButton.setState("disabled"):this.prevButton.setState("default")},wk.prototype.updatePageButtonSymbol=function(){var t=this.style.autoWrap,t=this.ifHorizontal(t?1:0,1);this.prevButton.update({symbol:["left","up"][t]}),this.nextButton.update({symbol:["right","down"][t]})},wk.prototype.updatePageInfo=function(){var t=this.styles.pageFormatter;A(this).select(".page-info").style("text",this.currPage&&this.maxPages?t(this.currPage,this.maxPages):"")},wk.prototype.finished=function(){var e=this;return this.finishedPromise||(this.finishedPromise=new Promise(function(t){e.resolveFinishedPromise=function(){e.finishedPromise=null,t(e.currPage)}})),"idle"===this.playState&&this.resolveFinishedPromise(),this.finishedPromise},wk.prototype.prev=function(){var t,e;this.maxPages&&this.currPage&&(t=this.style.loop,(e=this.currPage-1)<1&&(e=t?this.maxPages:1),this.goTo(e))},wk.prototype.next=function(){var t,e,n;this.maxPages&&this.currPage&&(t=this.style.loop,e=this.maxPages,n=this.currPage+1,this.goTo(n=e<n?t?1:e:n))},wk.prototype.goTo=function(t){var e,n,r,i,o=this;t!==this.currPage&&"idle"===this.playState&&(e=(i=this.style).effect,n=i.duration,i=i.autoWrap,r=(i=j(this.ifHorizontal(i?[0,-this.pageOffsets[t-1]]:[-this.pageOffsets[t-1],0],[0,-this.pageOffsets[t-1]]),2))[0],i=i[1],this.playState="running",this.clipView.animate([{transform:this.clipView.style.transform},{transform:"translate(".concat(-r,"px,").concat(-i,"px)")}],{duration:n,easing:e,fill:"both"}),this.container.animate([{transform:this.container.style.transform},{transform:"translate(".concat(r,"px,").concat(i,"px)")}],{duration:n,easing:e,fill:"both"}),Promise.all(this.clipView.getAnimations().map(function(t){return t.finished})).then(function(){o.currPage=t,o.updatePageNavigatorState(),o.resolveFinishedPromise(),o.playState="idle"}),this.finished())},wk.defaultOptions={style:{spacing:[4,0],effect:"easeQuadInOut",duration:320,maxRows:2,maxCols:2,pageButtonSize:10,pageInfoSpacing:2,pageFormatter:function(t,e){return"".concat(t,"/").concat(e)},pageButtonStyle:{size:10,margin:0,padding:0,markerStyle:{fill:"black",cursor:"pointer",disabled:{fill:"#d9d9d9",cursor:"not-allowed"}},backgroundStyle:{cursor:"pointer",fill:"transparent",disabled:{cursor:"not-allowed"}}},pageTextStyle:{fontSize:12,textBaseline:"middle",textAlign:"center"}}};var bk,xk=wk;function wk(t){t=bk.call(this,C({},wk.defaultOptions,t))||this;return t.items=[],t.maxPages=void 0,t.currPage=void 0,t.pageOffsets=[],t.playState="idle",t}function kk(t){var e=t.items,i=t.maxWidth,o=t.maxItemWidth,a=t.itemMarker,s=t.itemName,l=t.itemValue,n=t.reverse,u=t.itemWidth,c=t.itemHeight,h=t.itemPadding,d=t.itemBackgroundStyle,f=e.slice();return n&&f.reverse(),f.map(function(t,e){return{id:t.id||"legend-item-".concat(e),state:t.state||"default",value:t,maxItemWidth:tp([null!=o?o:Number.MAX_VALUE,null!=i?i:Number.MAX_VALUE]),itemMarker:(r=qf(a)?a(t,e,f):a,C({},ik,{symbol:t.marker,style:{fill:t.color,stroke:t.color}},r)),itemName:(r=C({},{formatter:function(){return t.name}},s),n=r.formatter,r=I(r,["formatter"]),C({},ok,{content:n(t,e,f)},r)),itemValue:(n=C({},{formatter:function(){return t.value}},l),r=n.formatter,n=I(n,["formatter"]),C({},ak,{content:r(t,e,f)},n)),itemWidth:u,itemHeight:c,padding:h,backgroundStyle:d};var n,r})}i(Sk,Ek=G),Sk.prototype.render=function(e,t){var n=e.padding,r=e.title,i=e.inset,o=e.orient,a=void 0===o?"horizontal":o,s=e.spacing,l=e.autoWrap,u=e.maxRows,c=e.maxWidth,h=e.maxHeight,d=e.cols,f=e.pageNavigator,o=e.backgroundStyle,o=void 0===o?{}:o,n=j(hx(n),4),p=n[0],y=n[1],g=n[2],n=n[3],v=nk(t,"legend-container",n,p),m=ek(v,r),r=(null==r?void 0:r.spacing)||0,i=j(hx(i),4),b=i[0],i=i[3],m=tk(m),i=(B(nk(v,"legend-inner-group",m.left+i,m.bottom+b+r),".category-items",function(){return new xk({})}).attr("className","category-items").call(function(t){t.node().update(S({orient:a,items:kk(e),spacing:s,autoWrap:l,maxRows:u,maxWidth:c,maxHeight:h,cols:d},f||{}))}).node(),v.getLocalBounds()),m=i.min,b=i.max,r=b[0]-m[0],v=b[1]-m[1];rk(t,"legend-background",Math.min(r+y+n,c||Number.MAX_VALUE),Math.min(v+p+g,h||Number.MAX_VALUE),o)},Sk.prototype.getItem=function(t){return this.querySelector("[id=".concat(t,"]"))},Sk.prototype.setItemState=function(t,e,n){void 0===n&&(n=!0),null!=(t=this.getItem(t))&&t.setState(e,n)},Sk.prototype.getItemsStates=function(){return this.querySelectorAll(".legend-item").map(function(t){return{id:t.id,state:t.getState()}})};var Ek,_k=Sk;function Sk(t){return Ek.call(this,C({},sk,t))||this}function Mk(t,e,n){return"horizontal"===(t=void 0===t?"horizontal":t)?e:n}L.registerSymbol("hiddenHandle",function(t,e,n){var r=1.4*n;return[["M",t-n,e-r],["L",t+n,e-r],["L",t+n,e+r],["L",t-n,e+r],["Z"]]}),L.registerSymbol("verticalHandle",function(t,e,n){var r=1.4*n,i=n/2,o=t+.4*r;return[["M",t,e],["L",o,e+i],["L",t+r,e+i],["L",t+r,e-i],["L",o,e-i],["Z"],["M",o,e+(n=n/6)],["L",t+r-2,e+n],["M",o,e-n],["L",t+r-2,e-n]]}),L.registerSymbol("horizontalHandle",function(t,e,n){var r=1.4*n,i=n/2,o=e+.4*r;return[["M",t,e],["L",t-i,o],["L",t-i,e+r],["L",t+i,e+r],["L",t+i,o],["Z"],["M",t-(n=n/6),o],["L",t-n,e+r-2],["M",t+n,o],["L",t+n,e+r-2]]});i(Pk,Tk=jh),Pk.prototype.connectedCallback=function(){this.draw()},Pk.prototype.attributeChangedCallback=function(){this.draw()},Pk.prototype.draw=function(){this.updateBackground(),this.updateTrack()},Pk.prototype.updateBackground=function(){var t=this.style.backgroundColor;this.path.style.path=this.getRailPath(),this.path.attr({fill:t,fillOpacity:.45})},Pk.prototype.updateTrack=function(){var t=this.style.fill;this.track.style.path=this.getRailPath(),this.track.style.clipPath=this.getClipPath(),this.track.style.fill=t},Object.defineProperty(Pk.prototype,"box",{get:function(){var t=this.style,e=t.orient,n=t.size,t=t.length;return Mk(e,[t,n],[n,t])},enumerable:!1,configurable:!0}),Pk.prototype.getRailPath=function(){var t=this.style.type,e=j(this.box,2),n=e[0],e=e[1];return"size"===t?[["M",0,e],["L",0+n,0],["L",0+n,e]]:[["M",0,e],["L",0,0],["L",0+n,0],["L",0+n,e]]},Pk.prototype.getClipPath=function(){var t=this.style,e=t.orient,t=t.selection;if(!t)return null;var n=j(this.box,2),r=n[0],n=n[1],t=j(t,2),i=t[0],t=t[1],o=Mk(e,i*r,0),i=Mk(e,0,i*n),r=Mk(e,t*r,r),e=Mk(e,n,t*n);return new Zh({style:{path:[["M",o,i],["L",o,e],["L",r,e],["L",r,i]]}})};var Tk,Ok=Pk;function Pk(t){t=Tk.call(this,Ox({},{style:lk},t=void 0===t?{}:t))||this;return t.path=t.appendChild(new Zh({className:"rail-path"})),t.track=t.appendChild(new Zh({className:"rail-path"})),t}i(Nk,Ak=G),Nk.prototype.render=function(t,e){var n=t.textStyle,r=t.visibility,i=t.symbol,o=t.size,a=t.fill,s=t.stroke,l=t.lineWidth;i&&"hidden"!==r?(B(e,".handle",function(){return new L({})}).attr("className","handle").call(function(t){t.node().update({symbol:i,size:o,fill:a,stroke:s,lineWidth:l})}),B(e,".handle-text","text").attr("className","handle-text").call(N,n)):(null!=(t=e.querySelector(".handle"))&&t.remove(),null!=(r=e.querySelector(".handle-text"))&&r.remove())};var Ak,Ck=Nk;function Nk(){return null!==Ak&&Ak.apply(this,arguments)||this}i(Rk,Lk=jh),Rk.prototype.connectedCallback=function(){this.init(),this.bindEvents()},Rk.prototype.attributeChangedCallback=function(t,e,n){"textStyle"!==t&&"padding"!==t&&"position"!==t||this.init()},Rk.prototype.hide=function(){this.style.visibility="hidden"},Rk.prototype.show=function(){this.style.visibility="visible"},Rk.prototype.init=function(){var t=this.style,e=t.textStyle;"top"===t.position?this.text.attr(S({textAlign:"center"},e)):this.text.attr(S({textAlign:"left"},e))},Rk.prototype.updateBackground=function(){var t=this.text.getLocalBounds(),e=t.min,t=t.max,n=Math.min(t[0]-e[0],40),e=[e[0]-4,e[1]-2,e[0]+n+4,t[1]+2],n=function(t,e){var n=(e=j(e,4))[0],r=e[1],i=e[2],e=e[3];if("top"===t)return[["M",n,e],["L",n,r],["L",i,r],["L",i,e],["L",n+(t=i-n)/2+(o=op(10,t/3,t/2))/2,e],["L",n+t/2,e+4],["L",n+t/2-o/2,e],["L",n,e]];var o=op(6,(t=e-r)/3,t/2);return[["M",n,r],["L",i,r],["L",i,e],["L",n,e],["L",n,r+t/2+o/2],["L",n-4,r+t/2],["L",n,r+t/2-o/2],["L",n,r]]}(this.style.position,e);this.background.style.path=n},Rk.prototype.bindEvents=function(){var t=this;this.text.addEventListener(m.BOUNDS_CHANGED,function(){t.updateBackground()})};var Lk,Ik=Rk;function Rk(t){t=Lk.call(this,Ox({},{style:{visibility:"hidden"}},t=void 0===t?{}:t))||this;return t.background=t.appendChild(new Zh({style:{lineCap:"round",fill:"#262626",lineWidth:1,stroke:"#333"}})),t.text=t.appendChild(new rd({style:{text:"",fill:"#fff",fontSize:10,textBaseline:"middle"}})),t}function Dk(t,e){var t=j(function(t,e){for(var n=1;n<t.length;n+=1){var r=t[n-1],i=t[n];if(r<=e&&e<=i)return[r,i]}return[e,e]}(t,e),2),n=t[0],t=t[1];return{tick:(n+t)/2<e?t:n,range:[n,t]}}function jk(t,e,n,r,i){var o=j(Mk(t,["dx","dy"],["dy","dx"]),2),a=o[0],o=o[1],s={};return s[a]=e,s[o]="start"===n?-i:r+i,s.textAlign=Mk(t,"center","start"===n?"right":"left"),s.textBaseline=Mk(t,"start"===n?"bottom":"top","middle"),s}function Bk(t,e){var n,s=t.min,l=t.max,r=t.handle,i=t.orient,u=void 0===i?"horizontal":i;if(null===t.label||r)return[];var o,a,c,h=Ox({size:24,length:200},lk,t.rail||{}),i=Ox({},uk,t.label||{}),d=i.align,f=i.spacing;return"rail"===d?(t=(r=j(Mk(u,["dx","dy"],["dy","dx"]),2))[0],i=r[1],o=(r=j(Mk(u,["right","left"],["center","center"]),2))[0],r=r[1],a=(c=j(Mk(u,["middle","middle"],["bottom","top"]),2))[0],c=c[1],[((n={id:"legend-label-0",text:"".concat(s)})[t]=-f,n[i]=h.size/2,n.textAlign=o,n.textBaseline=a,n),((o={id:"legend-label-1",text:"".concat(l)})[t]=h.length+f,o[i]=h.size/2,o.textAlign=r,o.textBaseline=c,o)]):e.map(function(t,e){a=t,n=s,r=l,i=h;var n,r,i,o=(o=void 0!==o&&o)?a*(r-n)/i.length:ix((a-n)*(n<r?i.length/(r-n):0),2),a=jk(u,o,d,h.size,f);return S({id:"legend-label-".concat(e),text:"".concat(t)},a)})}var Fk=bp(function(t){return t.sort(function(t,e){return t-e})},function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)});i(Uk,zk=G),Uk.prototype.render=function(t,e){var n=t.padding,r=t.title,i=t.inset,o=(t.orient,t.backgroundStyle),o=void 0===o?{}:o,a=t.maxWidth,s=t.maxHeight,l=t.label,n=j(hx(n),4),u=n[0],c=n[1],h=n[2],n=n[3],d=nk(e,"legend-container",n,u),f=ek(d,r),r=(null==r?void 0:r.spacing)||0,i=j(hx(i),4),p=i[0],i=i[3],f=tk(f),i=nk(d,"legend-inner-group",f.left+i,f.bottom+p+r),f=Bk(t,this.ticks),p=(r2(i,"legend-label",f,l,{fill:"#2C3542",fillOpacity:.65,fontWeight:"normal"}),this.drawInner(),d.getLocalBounds()),r=p.min,t=p.max,i=t[0]-r[0],f=t[1]-r[1];rk(e,"legend-background",Math.min(i+c+n,a||Number.MAX_VALUE),Math.min(f+u+h,s||Number.MAX_VALUE),o)},Uk.prototype.drawInner=function(){this.drawRail(),this.drawHandles(),this.createIndicator()},Object.defineProperty(Uk.prototype,"orient",{get:function(){return this.style.orient||"horizontal"},enumerable:!1,configurable:!0}),Object.defineProperty(Uk.prototype,"selection",{get:function(){var t=this.style,e=t.min,n=t.max;return[t.start||e,t.end||n]},enumerable:!1,configurable:!0}),Object.defineProperty(Uk.prototype,"labelsCfg",{get:function(){var t=this.style.label;return Ox({},uk,t||{})},enumerable:!1,configurable:!0}),Object.defineProperty(Uk.prototype,"railCfg",{get:function(){var t=this.style.rail;return Ox({size:24,length:200},lk,t||{})},enumerable:!1,configurable:!0}),Object.defineProperty(Uk.prototype,"handleCfg",{get:function(){var t=this.style,e=t.handle,t=t.label;return Ox({},ck,e||{},{textStyle:this.labelsCfg.style,spacing:this.labelsCfg.spacing,visibility:e&&null!==t?"visible":"hidden"})},enumerable:!1,configurable:!0}),Uk.prototype.ifHorizontal=function(t,e){return Mk(this.orient,"function"==typeof t?t():t,"function"==typeof e?e():e)},Object.defineProperty(Uk.prototype,"color",{get:function(){var t,e,i,o,a,n=this.style.color,n=Array.from(void 0===n?[]:n),r=n.length;return r?this.railCfg.chunked?(t=this.ticks,e=this.orient,i=Array.from(n),o=i.length,a=t.length,t.reduce(function(t,e,n){var r=i[n%o];return t+" ".concat(n/(a-1),":").concat(r).concat(n<a-1?" ".concat((n+1)/(a-1),":").concat(r):"")},"l(".concat("horizontal"===e?"0":"270",")"))):n.reduce(function(t,e,n){return t+" ".concat(n/(r-1),":").concat(e)},"l(".concat(this.ifHorizontal("0","270"),")")):""},enumerable:!1,configurable:!0}),Object.defineProperty(Uk.prototype,"slidable",{get:function(){return!!this.style.handle},enumerable:!1,configurable:!0}),Object.defineProperty(Uk.prototype,"ticks",{get:function(){var t=this.style,e=t.min,t=t.max;return Fk(z(z([e],j(this.railCfg.ticks||[]),!1),[t],!1))},enumerable:!1,configurable:!0}),Uk.prototype.drawRail=function(){var t=this.style,e=t.orient,n=t.min,t=t.max,r=j(this.selection,2),i=r[0],r=r[1],o=this.querySelector(".legend-inner-group");this.rail=A(this.rail||o.appendChild(new Ok)).attr("className","legend-rail").call(N,S(S({},this.railCfg),{fill:this.color,orient:e})).style("selection",this.slidable?[(i-n)/(t-n),(r-n)/(t-n)]:void 0).node()},Uk.prototype.drawHandles=function(){var t=j(this.selection,2),e=t[0],t=t[1];this.startHandle=this.drawHandle("start",e),this.endHandle=this.drawHandle("end",t)},Uk.prototype.drawHandle=function(t,e){var n=this,r=this.labelsCfg,i=r.align,r=r.spacing,o=this.railCfg.size,a=this.handleCfg.size,s=this.getOffset(e),l=jk(this.orient,s,i,o,-a/3),u=l.dx,c=l.dy,h=jk(this.orient,s,i,o,"start"===i?r:a/3+r),l="start"===t?this.startHandle:this.endHandle,s=this.querySelector(".legend-inner-group");return A(l||s.appendChild(new Ck({}))).attr("className","legend-handle-".concat(t)).call(function(t){return t.node().update(S(S({},n.handleCfg),{x:u,y:c,symbol:n.ifHorizontal("horizontalHandle","verticalHandle"),textStyle:S({text:"".concat(null!=e?e:""),x:+h.dx-+u,y:+h.dy-+c,textAlign:h.textAlign,textBaseline:h.textBaseline},n.handleCfg.textStyle)}))}).node()},Uk.prototype.createIndicator=function(){this.indicator=this.appendChild(new Ik({zIndex:2,className:"legend-indicator",style:{position:this.ifHorizontal("top","right")}}))},Uk.prototype.bindEvents=function(){var n=this,t=new Map;t.set("rail",this.rail),t.set("start",this.startHandle),t.set("end",this.endHandle),t.forEach(function(t,e){t.addEventListener("mousedown",n.onDragStart(e)),t.addEventListener("touchstart",n.onDragStart(e))}),this.startHandle.addEventListener("mouseover",function(){return n.updateMouse()}),this.endHandle.addEventListener("mouseover",function(){return n.updateMouse()}),this.rail.addEventListener("mousemove",this.onHovering),this.addEventListener("mouseout",this.hideIndicator)},Uk.prototype.showIndicator=function(t,e){var n,r,i,o,a,s,l;void 0===e&&(e="".concat(t)),"number"!=typeof t?this.hideIndicator():(this.indicator.show(),l=this.querySelector(".legend-container"),t=zs(t,(t=this.style).min,t.max),n=this.ifHorizontal(this.getOffset(t),this.railCfg.size+12),t=this.ifHorizontal(-14,this.getOffset(t)),r=(i=this.rail.getBBox()).x,i=i.y,o=(a=l.getBBox()).x,a=a.y,s=(l=j(l.getLocalPosition(),2))[0],l=l[1],this.indicator.style.x=r-o+s+n,this.indicator.style.y=i-a+l+t,this.indicator.style.textStyle={text:e})},Uk.prototype.hideIndicator=function(){var t;null!=(t=this.indicator)&&t.hide()},Uk.prototype.onDragEnd=function(){this.style.cursor="default",this.removeEventListener("mousemove",this.onDragging),this.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd)},Uk.prototype.updateMouse=function(){this.style.slidable&&(this.style.cursor="grabbing")},Uk.prototype.setSelection=function(t,e){this.updateSelection(t,e)},Uk.prototype.updateSelection=function(t,e,n){void 0===n&&(n=!1);var r,i,o,a,s,l=j(this.selection,2),u=l[0],l=l[1],t=j([t,e],2),e=t[0],t=t[1],n=(n&&(e+=u,t+=l),this.style),u=n.min,l=n.max,c=j((n=[u,l],u=[e,t],l=this.selection,void 0===r&&(r=4),i=(n=j(n,2))[0],n=n[1],o=(u=j(u,2))[0],u=u[1],a=(l=j(l,2))[0],l=l[1],u=(o=j([o,u],2))[0],s=(o=o[1])-u,o<u&&(u=(c=j([o,u],2))[0],o=c[1]),n-i<s?[i,n]:u<i?a===i&&l===o?[i,o]:[i,s+i]:n<o?l===n&&a===u?[u,n]:[n-s,n]:[ix(u,r),ix(o,r)]),2),e=c[0],t=c[1];this.update({start:e,end:t}),this.dispatchSelection()},Object.defineProperty(Uk.prototype,"step",{get:function(){var t=this.attributes,e=t.step,n=t.min,t=t.max;return pp(e)?ix(.01*(t-n),0):e},enumerable:!1,configurable:!0}),Uk.prototype.getTickValue=function(t){return this.railCfg.chunked?Dk(this.ticks,t).tick:(e=this.step,(n=this.style.min)+Math.round((t-n)/e)*e);var e,n},Uk.prototype.getValueByCanvasPoint=function(t,e){var n=this.style,r=n.min,n=n.max,i=j(this.rail.getPosition(),2),o=i[0],i=i[1],o=this.ifHorizontal(o,i),i=this.ifHorizontal.apply(this,z([],j(gx(t)),!1));return zs(this.getOffset(i-o,!0)+r,r,n)},Uk.prototype.getOffset=function(t,e){var n=this.style,r=n.min,n=n.max;return(e=void 0!==e&&e)?t*(n-r)/this.railCfg.length:ix((t-r)*(r<n?this.railCfg.length/(n-r):0),2)},Uk.prototype.dispatchSelection=function(){var t=new Th("valueChanged",{detail:{value:this.selection}});this.dispatchEvent(t)},Uk.prototype.dispatchIndicated=function(t,e){t=new Th("onIndicated",{detail:{value:t,range:e}});this.dispatchEvent(t)},t([Lx(20)],Uk.prototype,"dispatchSelection",null),t([Lx(20)],Uk.prototype,"dispatchIndicated",null);var zk,Vk,Gk,Hk,Wk=Uk;function Uk(t){var o=zk.call(this,Ox({type:"continuous-legend"},hk,t))||this;return o.onHovering=function(t){t.stopPropagation();var e,t=o.getValueByCanvasPoint(t);kp(o.attributes,["rail","chunked"])?(e=Dk(o.ticks,t).range,o.showIndicator((e[0]+e[1])/2,"".concat(e[0],"-").concat(e[1])),o.dispatchIndicated(t,e)):(e=o.getTickValue(t),o.showIndicator(e),o.dispatchIndicated(e))},o.onDragStart=function(e){return function(t){t.stopPropagation(),o.slidable&&(o.target=e,o.prevValue=o.getTickValue(o.getValueByCanvasPoint(t)),o.addEventListener("mousemove",o.onDragging),o.addEventListener("touchmove",o.onDragging),o.addEventListener("mouseleave",o.onDragEnd),o.addEventListener("mouseup",o.onDragEnd),document.addEventListener("mouseup",o.onDragEnd),document.addEventListener("touchend",o.onDragEnd))}},o.onDragging=function(t){var e=o.target,n=(o.updateMouse(),j(o.selection,2)),r=n[0],n=n[1],t=o.getTickValue(o.getValueByCanvasPoint(t)),i=t-o.prevValue;"start"===e?r!==t&&o.updateSelection(t,n):"end"===e?n!==t&&o.updateSelection(r,t):"rail"===e&&0!=i&&(o.prevValue=t,o.updateSelection(i,i,!0))},o}function Yk(t){Vk||(Vk=document.createElement("table"),Hk=document.createElement("tr"),Gk=/^\s*<(\w+|!)[^>]*>/,Hk={tr:document.createElement("tbody"),tbody:Vk,thead:Vk,tfoot:Vk,td:Hk,th:Hk,"*":document.createElement("div")});var e=Gk.test(t)&&RegExp.$1,e=(e&&e in Hk||(e="*"),Hk[e]),t=(t="string"==typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,e.innerHTML=""+t,e.childNodes[0]);return t&&e.contains(t)&&e.removeChild(t),t}var qk,b="tooltip",Xk="tooltip-title",Zk="tooltip-list",tt="tooltip-list-item",u="tooltip-list-item-name",dt="tooltip-list-item-marker",_t="tooltip-list-item-name-label",ft="tooltip-list-item-value",ge="tooltip-crosshair-x",o="tooltip-crosshair-y",J={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},h=((n={})[".".concat(b)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},n[".".concat(Xk)]={color:"rgba(0, 0, 0, 0.45)"},n[".".concat(Zk)]={margin:"0px","list-style-type":"none",padding:"0px"},n[".".concat(tt)]={"list-style-type":"none","margin-top":"12px",display:"flex","line-height":"1em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},n[".".concat(dt)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},n[".".concat(u)]={display:"flex","align-items":"center","max-width":"216px"},n[".".concat(_t)]=S({flex:1},J),n[".".concat(ft)]=S({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},J),n[".".concat(ge)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},n[".".concat(o)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},n),Kk=(i($k,qk=G),Object.defineProperty($k.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),Object.defineProperty($k.prototype,"position",{set:function(t){var t=j(t,2),e=t[0],t=t[1];this.attr({x:e,y:t}),this.updatePosition()},enumerable:!1,configurable:!0}),Object.defineProperty($k.prototype,"elementSize",{get:function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},enumerable:!1,configurable:!0}),Object.defineProperty($k.prototype,"items",{get:function(){var t=this.attributes.items;return this.sort(this.filter(t.map(function(t,e){var n=t.name,n=void 0===n?"":n,r=t.value,i=t.color,i=void 0===i?"black":i,o=t.index,t=I(t,["name","value","color","index"]);return S({name:n,value:r,color:i,index:void 0===o?e:o},t)})))},enumerable:!1,configurable:!0}),Object.defineProperty($k.prototype,"HTMLTooltipItemsElements",{get:function(){var e=this.attributes.template.item,r=[];return this.items.forEach(function(t){var n;r.push(Yk((n=t,(t=e)&&n?t.replace(/\\?\{([^{}]+)\}/g,function(t,e){return"\\"===t.charAt(0)?t.slice(1):void 0===n[e]?"":n[e]}):t)))}),r},enumerable:!1,configurable:!0}),Object.defineProperty($k.prototype,"customContent",{get:function(){var t=this.attributes.customContent;return np(t)?wx(t):yp(t)?t:qf(t)?wx(t(this.attributes.items)):void 0},enumerable:!1,configurable:!0}),$k.prototype.render=function(t,e){this.updateHTMLTooltipElement(),this.updatePosition()},$k.prototype.update=function(t){this.attr(C({},this.attributes,t)),this.render(this.attributes,this)},$k.prototype.clear=function(){this.element.innerHTML=""},$k.prototype.destroy=function(){var t;null!=(t=this.element)&&t.remove(),null!=(t=this.customContent)&&t.remove()},$k.prototype.show=function(){this.visibility="visible",this.element.style.visibility="visible"},$k.prototype.hide=function(){this.visibility="hidden",this.element.style.visibility="hidden"},$k.prototype.initShape=function(){var t=this.attributes.template.container;this.element=Yk(t),!this.id&&""===this.id||this.element.setAttribute("id",this.id)},$k.prototype.updateHTMLTooltipElement=function(){var e,r,t=this.attributes.title,n=this.element,i=this.customContent,t=(this.clear(),i?n.appendChild(i):(i=this.attributes.template.title,n.innerHTML=i,n.getElementsByClassName(Xk)[0].innerHTML=t,i=this.HTMLTooltipItemsElements,(e=document.createElement("ul")).className=Zk,i.forEach(function(t){e.appendChild(t)}),this.element.appendChild(e)),this.attributes.style);r=n,Object.entries(t).forEach(function(t){var t=j(t,2),e=t[0],n=t[1];z([r],j(r.querySelectorAll(e)),!1).filter(function(t){return t.matches(e)}).forEach(function(t){t&&(t.style.cssText+=Object.entries(n).reduce(function(t,e){return"".concat(t).concat(e.join(":"),";")},""))})}),this.element.style.visibility=this.visibility},$k.prototype.getRelativeOffsetFromCursor=function(t){var e=this.attributes,n=e.position,e=j(e.offset,2),i=e[0],o=e[1],e=(t||n).split("-"),a={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},t=this.elementSize,s=t.width,l=t.height,u=[-s/2,-l/2];return e.forEach(function(t){var e=j(u,2),n=e[0],e=e[1],t=j(a[t],2),r=t[0],t=t[1];u=[n+(s/2+i)*r,e+(l/2+o)*t]}),u},$k.prototype.setOffsetPosition=function(t){var t=j(t,2),e=t[0],t=t[1],n=this.attributes,r=n.x,i=n.y,n=n.container,o=n.x,n=n.y;this.element.style.left="".concat(r+o+e,"px"),this.element.style.top="".concat(i+n+t,"px")},$k.prototype.updatePosition=function(){this.throttleUpdatePosition()},$k.prototype.autoPosition=function(t){var t=j(t,2),e=t[0],t=t[1],n=this.attributes,r=n.x,i=n.y,o=n.autoPosition,n=n.bounding;if(!o)return[e,t];var o=this.element,a=o.offsetWidth,o=o.offsetHeight,r=j([r+e,i+t],2),e=r[0],i=r[1],t=this.attributes.position,s={left:"right",right:"left",top:"bottom",bottom:"top"},r=n.x,l=n.y,u={left:e<r,right:r+n.width<e+a,top:i<l,bottom:l+n.height<i+o},c=[],r=(t.split("-").forEach(function(t){u[t]?c.push(s[t]):c.push(t)}),c.join("-"));return this.getRelativeOffsetFromCursor(r)},$k.prototype.filter=function(t){var e=this.attributes.filterBy;return e?t.filter(e):t},$k.prototype.sort=function(t){var e=this.attributes.sortBy;return e?t.sort(e):t},$k.tag="tooltip",$k.defaultOptions={style:{x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],follow:!0,enterable:!1,autoPosition:!0,items:[],throttleFrequency:50,container:{x:0,y:0},bounding:{x:0,y:0,width:0,height:0},template:{container:'<div class="'.concat(b,'"></div>'),title:'<div class="'.concat(Xk,'"></div>'),item:'<li class="'.concat(tt,'" data-index={index}>\n <span class="').concat(u,'">\n <span class="').concat(dt,'" style="background:{color}"></span>\n <span class="').concat(_t,'" title="{name}">{name}</span>\n </span>\n <span class="').concat(ft,'" title="{value}">{value}</span>\n </li>')},style:h}},$k);function $k(t){var e=qk.call(this,C({},$k.defaultOptions,t))||this;return e.visibility="visible",e.throttleUpdatePosition=Sp(function(){e.setOffsetPosition(e.autoPosition(e.getRelativeOffsetFromCursor()))},e.attributes.throttleFrequency,{}),e.visibility=e.attributes.visibility,e.initShape(),e.render(e.attributes,e),e}var Jk,Qk={default:{sizeStyle:{width:44,height:22,radius:11},tagStyle:{textStyle:{fontSize:12,lineHeight:16,fill:"#fff"},padding:0},markerStyle:{size:11}},small:{sizeStyle:{width:28,height:16,radius:8},tagStyle:{textStyle:{fontSize:10,lineHeight:14,fill:"#fff"},padding:0},markerStyle:{size:8}},mini:{sizeStyle:{width:20,height:14,radius:7},tagStyle:{textStyle:{fontSize:7,lineHeight:10,fill:"#fff"},padding:0},markerStyle:{size:7}}};function tE(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!0);var r=Number(t.style.height)-2*e;return{x:n?Number(t.style.width)+Number(t.style.x)-e-r:Number(t.style.x)+e,y:Number(t.style.y)+e,width:r,height:r,radius:r/2}}function eE(t){return Jk.call(this,C({},eE.defaultOptions,t))||this}i(eE,Jk=G),eE.prototype.render=function(t,e){var i=this,n=t.size,n=void 0===n?"default":n,o=t.spacing,r=t.disabled,a=t.checked,s=t.unCheckedChildren,t=t.checkedChildren,e=B(e,".switch-content","g").attr("className","switch-content").node(),l=e.getLocalBounds(),n=kp(Qk,n,Qk.default),u=n.sizeStyle,c=n.tagStyle,h=r?"no-drop":"pointer",n=a?"#1890FF":"#00000040",d=u,f=a?t:s,p=((t||s)&&B(e,".switch-tag",function(){return new Gx({})}).attr("className","switch-tag").call(function(t){var e,t=t.node(),n=(t.update(C({cursor:h,backgroundStyle:null,text:!1,marker:!1},c,f)),null==t?void 0:t.getLocalBounds()),r=n.max,n=n.min,i=r[0]-n[0]+u.radius,r=r[1]-n[1],n=Math.max(i+u.height+2,u.width);d=S(S({},u),{width:n}),t.update((t={x:l.min[0],y:l.min[1],width:n,height:d.height},n={width:i,height:r},i=d.radius,r=a,e=n.width,n=n.height,void 0===i&&(i=0),{x:(r=void 0===a?!0:r)?Number(t.x)+i:Number(t.width)+Number(t.x)-e,y:Number(t.y)+(Number(t.height)-n)/2}))}),B(e,".switch-background","rect").attr("className","switch-background").style("zIndex",(e.style.zIndex||0)-1).style("x",l.min[0]).style("y",l.min[1]).style("fill",n).style("cursor",h).style("fillOpacity",r?.4:1).call(N,d).node()),y=B(e,".switch-background-stroke","rect").attr("className","switch-background-stroke").style("zIndex",(e.style.zIndex||0)-2).style("x",l.min[0]).style("y",l.min[1]).style("stroke",n).style("lineWidth",0).call(N,d).node();B(e,".switch-handle","rect").attr("className","switch-handle").style("fill","#fff").style("cursor",h).call(function(t){var e,t=t.node(),n=tE(p,o,a),r=tE(p,o,!a);t.attr("x")&&!Ap(n,r)&&i.checked!==a?(t.attr(r),null!=(e=t.getAnimations()[0])&&e.cancel(),null!=(e=y.getAnimations()[0])&&e.cancel(),t.animate([{x:r.x},{x:n.x}],{duration:120,fill:"both"}),y.animate([{lineWidth:0,strokeOpacity:.5},{lineWidth:14,strokeOpacity:0}],{duration:400,easing:"ease-on"})):t.attr(n)}),this.checked=!!a},eE.defaultOptions={type:eE.tag="switch",style:{x:0,y:0,spacing:2,checked:!0,disabled:!1}};var nE,at={text:"",type:"primary",height:20,width:20,buttonStyle:{default:{lineWidth:0,fill:"#fff"},active:{fill:"#fff"},disabled:{fill:"#fff"}},markerStyle:{default:{fill:"black",size:10},disabled:{fill:"#8c8c8c"}}};function rE(t){var t=nE.call(this,C({},rE.defaultOptions,t))||this,e=(t.playState="idle",t.attributes),n=e.view,e=e.initPageNum;return t.currPage=e,t.view=n,t.init(),t}i(rE,nE=G),Object.defineProperty(rE.prototype,"finished",{get:function(){var e=this;return this.finishedPromise||(this.finishedPromise=new Promise(function(t){e.resolveFinishedPromise=function(){e.finishedPromise=null,t(e.currPage)}})),"idle"===this.playState&&this.resolveFinishedPromise(),this.finishedPromise},enumerable:!1,configurable:!0}),Object.defineProperty(rE.prototype,"maxPages",{get:function(){var t=this.attributes,e=t.pageWidth,n=t.pageHeight,r=t.orient,i=t.pageLimit;if(t.pageCallback||i!==1/0)return i;return"horizontal"===r?Math.ceil(this.width/e):Math.ceil(this.height/n)},enumerable:!1,configurable:!0}),Object.defineProperty(rE.prototype,"view",{get:function(){return this.fullView},set:function(t){var e=this.attributes,n=e.width,e=e.height;t.setLocalPosition(0,0),this.fullView=t,n&&e||(e=(n=bx(t)).width,t=n.height,this.width=e,this.height=t)},enumerable:!1,configurable:!0}),Object.defineProperty(rE.prototype,"width",{get:function(){var t=this.attributes.width;return t||this.viewWidth},set:function(t){this.viewWidth=t},enumerable:!1,configurable:!0}),Object.defineProperty(rE.prototype,"height",{get:function(){var t=this.attributes.height;return t||this.viewHeight},set:function(t){this.viewHeight=t},enumerable:!1,configurable:!0}),Object.defineProperty(rE.prototype,"btnPosition",{get:function(){var t;return null!=(t=this.style.button)&&t.position?this.style.button.position:"horizontal"===this.style.orient?"right":"bottom"},enumerable:!1,configurable:!0}),Object.defineProperty(rE.prototype,"defaultShape",{get:function(){return["left","right","left-right"].includes(this.btnPosition)?["left","right"]:["up","down"]},enumerable:!1,configurable:!0}),Object.defineProperty(rE.prototype,"buttonCfg",{get:function(){var t=j(this.defaultShape,2),e=t[0],t=t[1],n=this.attributes.button,r=n.prev,n=n.next;return{prev:S({marker:e},r),next:S({marker:t},n)}},enumerable:!1,configurable:!0}),rE.prototype.render=function(t,e){},rE.prototype.init=function(){this.initShape(),this.updateView(),this.updateButton(),this.updateButtonState(),this.adjustLayout()},rE.prototype.update=function(t){var e=t.view;e&&(this.view&&(this.view.style.clipPath=null,this.removeChild(this.view,!1)),this.currPage=this.attributes.initPageNum,this.view=e,this.view.style.clipPath=this.clipView,this.appendChild(this.view),this.view.toBack()),this.attr(C({},this.attributes,t)),this.updateView(),this.updateButton(),this.updateButtonState(),this.adjustLayout()},rE.prototype.clear=function(){this.view&&(this.view.style.clipPath=null,this.removeChild(this.view,!1)),this.fullView=void 0,this.removeChildren(!0)},rE.prototype.destroy=function(){this.removeChildren(!0),nE.prototype.destroy.call(this)},rE.prototype.goTo=function(t){var e,n,r,i,o,a,s,l,u,c,h=this;return"idle"===this.playState&&(e=(n=this.attributes).effect,n=n.duration,r=(u=this.calcRelativePagingOffset(t)).viewFromX,i=u.viewFromY,o=u.viewToX,a=u.viewToY,c=u.clipFromX,s=u.clipFromY,l=u.clipToX,u=u.clipToY,this.playState="running",this.clipView.animate([{transform:"translate(".concat(c,"px, ").concat(s,"px)")},{transform:"translate(".concat(l,"px, ").concat(u,"px)")}],{duration:n,easing:e,fill:"both"}),null!=(c=this.view.animate([{transform:"translate(".concat(r,"px, ").concat(i,"px)")},{transform:"translate(".concat(o,"px, ").concat(a,"px)")}],{duration:n,easing:e,fill:"both"}))&&c.finished.then(function(){h.currPage=t,h.updateButtonState(),h.resolveFinishedPromise(),h.playState="idle"})),this.finished},rE.prototype.prev=function(){var t=this.attributes.loop,e=this.currPage-1;return e<1&&(e=t?this.maxPages:1),this.goTo(e)},rE.prototype.next=function(){var t=this.attributes.loop,e=this.maxPages,n=this.currPage+1;return this.goTo(n=e<n?t?1:e:n)},rE.prototype.initShape=function(){this.clipView=new ed({name:"clipView",style:{x:0,y:0,width:0,height:0}}),this.view.style.clipPath=this.clipView,this.appendChild(this.view),this.view.toBack();var t=j(this.defaultShape,2),e=t[0],t=t[1];this.prevButton=new Zx({name:"prevButton",style:S(S({},rE.defaultOptions.style.button.prev),{marker:e,onClick:this.prev.bind(this)})}),this.appendChild(this.prevButton),this.nextButton=new Zx({name:"nextButton",style:S(S({},rE.defaultOptions.style.button.next),{marker:t,onClick:this.next.bind(this)})}),this.appendChild(this.nextButton),this.paginationGroup=new Hh({name:"paginationGroup"}),this.appendChild(this.paginationGroup)},rE.prototype.updateView=function(){var t=this.getClipViewSpace(this.currPage),e=t.width,t=t.height;this.clipView.attr({width:e,height:t}),this.view.setLocalPosition(0,0),this.clipView.setLocalPosition(0,0)},rE.prototype.updateButton=function(){var t=this.buttonCfg,e=t.prev,t=t.next;e&&this.prevButton.update(e),t&&this.nextButton.update(t)},rE.prototype.updateButtonState=function(){this.attributes.loop?(this.nextButton.setState("default"),this.prevButton.setState("default")):(this.nextButton.setState(this.currPage===this.maxPages?"disabled":"default"),this.prevButton.setState(1===this.currPage?"disabled":"default"))},rE.prototype.getClipViewSpace=function(t){var e=this.attributes,n=e.orient,r=e.pageWidth,i=e.pageHeight,e=e.pageCallback,o={x:0,y:0,width:r,height:i},a=this.maxPages;return e?S(S({},o),e(t)):(a<t||t<1||("vertical"===n?o.y=(t-1)*i:"horizontal"===n&&(o.x=(t-1)*r)),o)},rE.prototype.absolute2Relative=function(t,e){var n=this.currPage,n=this.getClipViewSpace(n);return[t+n.x,e+n.y]},rE.prototype.getViewPosition=function(t){var e=this.getClipViewSpace(1),n=e.x,e=e.y,t=this.getClipViewSpace(t),n=j([-t.x+n,-t.y+e],2);return{x:n[0],y:n[1]}},rE.prototype.getRelativeViewPosition=function(t){var t=this.getViewPosition(t),e=t.x,t=t.y,e=j(this.absolute2Relative(e,t),2);return{x:e[0],y:e[1]}},rE.prototype.calcRelativePagingOffset=function(t){var e=j(this.absolute2Relative.apply(this,z([],j(this.view.getLocalPosition().slice(0,2)),!1)),2),n=e[0],e=e[1],t=this.getRelativeViewPosition(t),r=t.x,t=t.y,i=j([-n,-e],2),o=i[0],i=i[1],a=j([-r,-t],2);return{viewFromX:n,viewFromY:e,viewToX:r,viewToY:t,clipFromX:o,clipFromY:i,clipToX:a[0],clipToY:a[1]}},rE.prototype.adjustLayout=function(){this.adjustButton()},rE.prototype.adjustButton=function(){var t,e=this.attributes,n=e.button,r=e.pageWidth,e=e.pageHeight,i=this.btnPosition,n=(null==n?void 0:n.spacing)||0,o=bx(this.prevButton),a=o.width,o=o.height,s=bx(this.nextButton),l=s.width,s=s.height,u=0,c=0,h=0,d=0;"left-right"===i?(u=-(n+a),c=(e-o)/2,h=n+r,d=(e-s)/2):"top-bottom"===i?(u=(r-a)/2,c=-(n+o),h=(r-l)/2,d=n+e):"top"===i?(u=(r-n)/2-a,c=-(n+(t=Qf([o,s]))),h=(r+n)/2,d=-(n+t)):"bottom"===i?(u=(r-n)/2-a,h=(r+n)/2,d=c=n+e):"left"===i?(u=(h=-(n+l))-(n+a),d=c=(e-(t=Qf([o,s])))/2):"right"===i&&(h=(u=n+r)+a,d=c=(e-(t=Qf([o,s])))/2),this.prevButton.setLocalPosition(u,c),this.nextButton.setLocalPosition(h,d)},rE.defaultOptions={type:rE.tag="page-navigator",style:{x:0,y:0,effect:"linear",duration:200,orient:"horizontal",initPageNum:1,pageLimit:1/0,loop:!1,button:{prev:S({spacing:0},at),next:S({spacing:0},at),style:{default:{},active:{},disabled:{}},spacing:5},pagination:{type:"currTotal",style:{default:{},active:{}},separator:"/",spacing:5}}},L.registerSymbol("left",function(t,e,n){return[["M",t-n,e],["L",t+n,e-n],["L",t+n,e+n],["Z"]]}),L.registerSymbol("right",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e],["L",t-n,e+n],["Z"]]}),L.registerSymbol("up",function(t,e,n){return[["M",t-n,e+n],["L",t,e-n],["L",t+n,e+n],["Z"]]}),L.registerSymbol("down",function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t,e+n],["Z"]]});var iE,Z={text:{text:""},lineStyle:{stroke:"#416180",strokeOpacity:.45,lineWidth:1,lineDash:[5,5]}},W=Ox({},Z,{type:"line",text:{position:"start",align:"center",verticalAlign:"bottom"}}),H=Ox({},Z,{type:"circle",defaultRadius:0}),pt=Ox({},Z,{type:"polygon",defaultRadius:0,startAngle:0}),Q=(i(oE,iE=G),Object.defineProperty(oE.prototype,"localPointer",{get:function(){var t=j(this.getPosition(),2),e=t[0],t=t[1],n=j(this.pointer,2);return[n[0]-e,n[1]-t]},enumerable:!1,configurable:!0}),Object.defineProperty(oE.prototype,"tagCfg",{get:function(){var t=this.attributes.text;return t.position,I(t,["position"])},enumerable:!1,configurable:!0}),Object.defineProperty(oE.prototype,"crosshairCfg",{get:function(){var t=this.attributes.lineStyle;return S(S({},t),{path:this.crosshairPath})},enumerable:!1,configurable:!0}),oE.prototype.render=function(t,e){var n=this,e=B(e,".crosshair-group","g").attr("className","crosshair-group").node();this.shapesGroup=e,this.tagShape=B(e,".crosshair-tag",function(){return new Gx({className:"crosshair-tag",style:n.tagCfg})}).node(),this.crosshairShape=B(e,".crosshair-path","path").attr("className","crosshair-path").call(N,this.crosshairCfg).node(),this.adjustLayout()},oE.prototype.update=function(t){this.attr(C({},this.attributes,t=void 0===t?{}:t)),this.render(this.attributes,this)},oE.prototype.setPointer=function(t){this.pointer=t},oE.defaultOptions={type:oE.tag="crosshair-base",style:Z},oE);function oE(t){return iE.call(this,C({},oE.defaultOptions,t))||this}i(lE,aE=Q),Object.defineProperty(lE.prototype,"crosshairPath",{get:function(){var t=this.attributes,e=j(t.startPos,2),n=e[0],e=e[1],t=j(t.endPos,2);return[["M",0,0],["L",t[0]-n,t[1]-e],["Z"]]},enumerable:!1,configurable:!0}),Object.defineProperty(lE.prototype,"localPointer",{get:function(){if(!this.pointer)return this.attributes.startPos;var t=j(this.getPosition(),2),e=t[0],t=t[1],n=j(this.pointer,2);return[n[0]-e,n[1]-t]},enumerable:!1,configurable:!0}),Object.defineProperty(lE.prototype,"isVertical",{get:function(){var t=this.attributes,e=j(t.startPos,2),n=e[0],e=e[1],t=j(t.endPos,2),r=t[0],t=t[1];return n===r&&e!==t},enumerable:!1,configurable:!0}),Object.defineProperty(lE.prototype,"tagShapeSpace",{get:function(){var t=bx(this.tagShape);return{width:t.width,height:t.height}},enumerable:!1,configurable:!0}),lE.prototype.update=function(t){aE.prototype.update.call(this,t)},lE.prototype.setPointer=function(t){aE.prototype.setPointer.call(this,t),this.adjustPosition()},lE.prototype.setText=function(t){this.tagShape.update({text:t}),this.adjustTag()},lE.prototype.adjustLayout=function(){this.adjustPosition(),this.adjustTag()},lE.prototype.adjustPosition=function(){var t=j(this.localPointer,2),e=t[0],t=t[1],n=j(this.attributes.startPos,2),r=n[0],n=n[1],r=this.getOrientVal([r,t],[e,n]);this.shapesGroup.setLocalPosition(r)},lE.prototype.adjustTag=function(){var t,e,n=this.attributes,r=n.text,i=j(n.startPos,2),o=i[0],i=i[1],n=j(n.endPos,2),a=n[0],n=n[1];r&&""!==r?(this.tagShape.show(),r=r.position,e=(t=this.tagShapeSpace).width,t=t.height,o=(a=j(this.getOrientVal({start:[-e/2,t/2],end:[a-o+e/2,t/2]},{start:[0,0],end:[0,n-i+t]})[r],2))[0],e=a[1],this.tagShape.setLocalPosition(o,e)):this.tagShape.hide()},lE.prototype.getOrientVal=function(t,e){return this.isVertical?e:t},lE.defaultOptions={type:lE.tag="line-crosshair",style:W},t([Lx(20)],lE.prototype,"setPointer",null);var aE,sE=lE;function lE(t){return aE.call(this,Ox({},lE.defaultOptions,t))||this}i(dE,uE=Q),Object.defineProperty(dE.prototype,"crosshairPath",{get:function(){return this.createCirclePath()},enumerable:!1,configurable:!0}),dE.prototype.update=function(t){uE.prototype.update.call(this,t)},dE.prototype.setPointer=function(t){var t=j(t,2),e=t[0],t=t[1],e=(uE.prototype.setPointer.call(this,[e,t]),j(this.localPointer,2)),t=e[0],e=e[1],n=j(this.attributes.center,2),r=n[0],n=n[1],t=this.createCirclePath(Math.pow(Math.pow(t-r,2)+Math.pow(e-n,2),.5));this.crosshairShape.attr({path:t})},dE.prototype.adjustLayout=function(){this.tagShape.hide()},dE.prototype.createCirclePath=function(t){var e=this.attributes,n=j(e.center,2),r=n[0],n=n[1],e=e.defaultRadius;return Rx(r,n,t||e)},dE.defaultOptions={type:dE.tag="circle-crosshair",style:H},t([Lx(20)],dE.prototype,"setPointer",null);var uE,cE,hE=dE;function dE(t){return uE.call(this,Ox({},dE.defaultOptions,t))||this}function fE(t){return cE.call(this,Ox({},fE.defaultOptions,t))||this}i(fE,cE=Q),Object.defineProperty(fE.prototype,"crosshairPath",{get:function(){return this.createPolygonPath()},enumerable:!1,configurable:!0}),fE.prototype.update=function(t){cE.prototype.update.call(this,t)},Object.defineProperty(fE.prototype,"points",{get:function(){for(var t,e,n,r,i,o,a=this.attributes,s=a.startAngle,l=a.sides,u=2*Math.PI/l,c=[1,0],h=[],d=0;d<l;d+=1)h.push((t=[0,0],e=c,n=[0,0],r=s/180*Math.PI+u*d,o=i=void 0,i=e[0]-n[0],e=e[1]-n[1],o=Math.sin(r),r=Math.cos(r),t[0]=i*r-e*o+n[0],t[1]=i*o+e*r+n[1],t));return h},enumerable:!1,configurable:!0}),fE.prototype.setPointer=function(t){var t=j(t,2),e=t[0],t=t[1],e=(cE.prototype.setPointer.call(this,[e,t]),j(this.localPointer,2)),t=e[0],e=e[1],n=this.attributes.center,r=j(this.intersection([t,e]),2),i=r[0],r=r[1];i&&r&&(t=Nx(n,[t,e])/Nx(n,[i,r]),e=this.createPolygonPath(t),this.crosshairShape.attr({path:e}))},fE.prototype.adjustLayout=function(){this.tagShape.hide()},fE.prototype.createPolygonPath=function(r){var t=this.attributes,i=t.defaultRadius,t=j(t.center,2),o=t[0],a=t[1],t=this.points.map(function(t,e){var t=j(t,2),t=j(vo([0,0],[t[0],t[1]],r||i),2),n=t[0],t=t[1];return[0===e?"M":"L",o+n,a+t]});return t.push(["Z"]),t},fE.prototype.intersection=function(t){for(var e,n,r,i,o,a,s,l,t=j(t,2),u=t[0],c=t[1],h=this.points,t=j(this.attributes.center,2),d=t[0],f=t[1],p=1;p<=h.length;p+=1){var y=j(h[p-1],2),g=y[0],y=y[1],v=j(h[p%h.length],2),m=v[0],v=v[1],g=(i=[d,f],g=[g+d,y+f],y=[m+d,v+f],l=s=a=o=v=m=void 0,v=(r=j(r=[u,c],2))[0],r=r[1],o=(i=j(i,2))[0],i=i[1],a=(g=j(g,2))[0],g=g[1],s=(y=j(y,2))[0],y=y[1],l=[],(y-g)*(o-v)==(i-r)*(s-a)?(i-r)*(a-v)==(g-r)*(o-v)&&(Ax(v,o,r,i,a,g)&&Cx(l,a,g),Ax(v,o,r,i,s,y)&&Cx(l,s,y),Ax(a,s,g,y,v,r)&&Cx(l,v,r),Ax(a,s,g,y,o,i)&&Cx(l,o,i)):(m=(v*(i-r)+g*(o-v)-r*(o-v)-a*(i-r))/((s-a)*(i-r)-(o-v)*(y-g)),0<=(y=(a*(y-g)+r*(s-a)-g*(s-a)-v*(y-g))/((o-v)*(y-g)-(s-a)*(i-r)))&&y<=1&&0<=m&&m<=1&&(l[0]=v+y*(o-v),l[1]=r+y*(i-r))),l);0!==g.length&&(e=(s=j(g,2))[0],n=s[1])}return[e,n]},fE.defaultOptions={type:fE.tag="polygon-crosshair",style:pt},t([Lx(20)],fE.prototype,"setPointer",null);i(vE,pE=k),Object.defineProperty(vE.prototype,"decorationType",{get:function(){var t=this.attributes.type;return t&&"none"!==t&&Zf(t)?t.map(function(t){return Zf(t)?t:[t,"solid"]}):"none"},enumerable:!1,configurable:!0}),Object.defineProperty(vE.prototype,"doubleSpacing",{get:function(){return 2*this.attributes.style.lineWidth},enumerable:!1,configurable:!0}),Object.defineProperty(vE.prototype,"hangingRate",{get:function(){return this.attributes.hangingRate},enumerable:!1,configurable:!0}),Object.defineProperty(vE.prototype,"dashedCfg",{get:function(){var t=this.attributes.style.lineWidth;return{lineDash:[2*t,t]}},enumerable:!1,configurable:!0}),Object.defineProperty(vE.prototype,"dottedCfg",{get:function(){var t=this.attributes.style.lineWidth;return{lineDash:[t,t]}},enumerable:!1,configurable:!0}),Object.defineProperty(vE.prototype,"solidCfg",{get:function(){return{lineDash:[0,0]}},enumerable:!1,configurable:!0}),Object.defineProperty(vE.prototype,"decorationCfg",{get:function(){var r=this,i=this.attributes.style,t=this.decorationType;return"none"===t?[]:t.map(function(t){var t=j(t,2),e=t[0],t=t[1];if("wavy"===t)return S({path:r.getWavyPath(e)},i);if("double"===t)return S({path:r.getDoubleLinePath(e)},i);var n={solid:r.solidCfg,dashed:r.dashedCfg,dotted:r.dottedCfg};return S(S({path:r.getLinePath(e)},i),n[t])})},enumerable:!1,configurable:!0}),vE.prototype.update=function(t){var e=this;this.attr(Ox({},this.attributes,t)),this.clear(),this.decorationCfg.forEach(function(t){e.appendChild(new Zh({style:t}))})},vE.prototype.clear=function(){this.removeChildren(!0)},vE.prototype.getLinePos=function(t){var e=j(this.hangingRate,3),n=e[0],r=e[1],e=e[2],i=this.attributes,o=i.height,i=i.fontSize,a=j([0,0],2),s=a[0],a=a[1],a="overline"===t?(s=(n=j([0,o*n-i/2],2))[0],n[1]):"line-through"===t?(s=(n=j([0,o*r],2))[0],n[1]):(s=(t=j([0,o*e+i/2],2))[0],t[1]);return[s,a]},vE.prototype.getLinePath=function(t){var e=this.attributes.width,t=j(this.getLinePos(t),2),n=t[0],t=t[1];return[["M",n,t],["L",n+e,t]]},vE.prototype.getDoubleLinePath=function(t){var e,n=this.doubleSpacing,r=this.attributes.width,i=j(this.getLinePos(t),2),o=i[0],i=i[1],a=j([0,0],2),s=a[0],a=a[1];return"line-through"===t&&(s=(e=j([-.5,.5],2))[0],a=e[1]),"underline"===t?(s=(e=j([0,1],2))[0],a=e[1]):"overline"===t&&(s=(e=j([1,0],2))[0],a=e[1]),[["M",o,i+n*s],["L",o+r,i+n*s],["M",o,i+n*a],["L",o+r,i+n*a]]},vE.prototype.getWavyPath=function(t){return[]},vE.tag="decoration",vE.defaultOptions={style:{width:0,height:0,type:"none",hangingRate:[.5,.55,.5],style:{lineWidth:1,stroke:"#000"}}};var pE,yE,gE=vE;function vE(t){t=pE.call(this,Ox({},vE.defaultOptions,t))||this;return t.update({}),t}function mE(t){t=yE.call(this,Ox({},mE.defaultOptions,t))||this;return t.init(),t}i(mE,yE=G),Object.defineProperty(mE.prototype,"textWidth",{get:function(){var e=this;return Qf(this.renderText.split("\n").map(function(t){return tx(t,e.font)}))||0},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"textHeight",{get:function(){return bx(this.textShape).height},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"width",{get:function(){var t=this.attributes.width;return"auto"===t||void 0===t||0===t?this.textWidth:t},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"height",{get:function(){var t=this.attributes.height;return ap(t)&&0!==t?t:bx(this.textShape).height},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"lineHeight",{get:function(){var t=this.attributes,e=t.lineHeight,t=t.fontSize;return e&&0!==e?e:t},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"capitalizeWord",{get:function(){return this.attributes.text.split("\n").map(function(t){return t.split(" ").map(function(t){return rx(t,"capitalize")}).join(" ")}).join("\n")},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"text",{get:function(){var t=this.attributes,e=t.transform,t=t.text;return"capitalize"===e?this.capitalizeWord:rx(t,e)},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"ellipsisText",{get:function(){var e=this,t=this.text,n=this.attributes,r=n.width,n=n.overflow,i="ellipsis"===n?"...":n;return t.split("\n").map(function(t){return Qb(t,ap(r)?r:1/0,e.font,i)}).join("\n")},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"renderText",{get:function(){var t=this.attributes.width,e=this.attributes.overflow;return e&&!["none","clip","wrap"].includes(e)&&ap(t)?this.ellipsisText:this.text},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"verticalAlign",{get:function(){return this.attributes.verticalAlign},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"font",{get:function(){return Ep(this.attributes,["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","letterSpacing","leading"])},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"fontColor",{get:function(){return this.attributes.fontColor},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"wordWrap",{get:function(){return"wrap"===this.attributes.overflow},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"wordWrapWidth",{get:function(){var t=this.width;return this.wordWrap?t:1/0},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"textCfg",{get:function(){var t=this.renderText,e=this.lineHeight,n=this.wordWrap,r=this.wordWrapWidth,i=this.fontColor;return S(S(S({},fx),this.font),{fill:i,wordWrap:n,lineHeight:e,wordWrapWidth:r,text:t,textAlign:"start",textBaseline:"middle"})},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"backgroundCfg",{get:function(){var t=this.width,e=this.height,n=this.attributes.backgroundStyle;return S({x:0,y:0,width:t,height:e},n)},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"decorationLineWidth",{get:function(){var t=this.attributes.fontSize;return Math.floor(2*Math.log10(t))},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"decorationCfg",{get:function(){var t=this.attributes,e=t.decoration,n=t.fontSize,r=this.decorationLineWidth,i=this.fontColor;return this.textShape.getLineBoundingRects().map(function(t){return Ox({},{fontSize:n,style:{stroke:i,lineWidth:r}},e,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(mE.prototype,"clipRectCfg",{get:function(){var t=this.height;return{width:this.attributes.width,height:t}},enumerable:!1,configurable:!0}),mE.prototype.init=function(){this.initShape(),this.update({})},mE.prototype.update=function(t){this.attr(Ox({},this.attributes,t)),this.render()},mE.prototype.render=function(){var e=this;this.clear(),this.backgroundShape.attr(this.backgroundCfg),this.textShape.attr(this.textCfg),this.layout(),this.decorationGroup.removeChildren(!0),this.decorationCfg.forEach(function(t){e.decorationGroup.appendChild(new gE({style:t}))})},mE.prototype.clear=function(){var t;(this.backgroundShape.style.clipPath=null)!=(t=this.clipRect)&&t.destroy()},mE.prototype.initShape=function(){this.backgroundShape=new ed({name:"background",style:{width:0,height:0}}),this.decorationGroup=new Hh({name:"decoration-group"}),this.textShape=new rd({name:"text",style:this.textCfg}),this.textShape.appendChild(this.decorationGroup),this.backgroundShape.appendChild(this.textShape),this.appendChild(this.backgroundShape)},mE.prototype.overflow=function(){var t=this.wordWrap,e=this.attributes,n=e.width,e=e.overflow;e&&"none"!==e&&!t&&ap(n)&&"clip"===e&&(this.clipRect=new ed({name:"clip-rect",style:this.clipRectCfg}),this.backgroundShape.style.clipPath=this.clipRect)},mE.prototype.adjustTextAlign=function(){var t=this.textWidth,e=this.attributes,n=e.width,e=e.textAlign;ap(n)&&(n=0,n="start"===e?0:"center"===e?(this.width-t)/2:this.width-t,this.textShape.attr({x:n}))},mE.prototype.adjustVerticalAlign=function(){var t=this.verticalAlign,e=this.textHeight,n=0,n="top"===t?e/2:"middle"===t?this.height/2:this.height-e/2;this.textShape.attr({y:n})},mE.prototype.layout=function(){this.adjustTextAlign(),this.adjustVerticalAlign(),this.overflow()},mE.defaultOptions={type:mE.tag="paragraph",style:{text:"",fontColor:"#000",fontFamily:"sans-serif",fontSize:12,fontWeight:"normal",fontVariant:"normal",letterSpacing:0,leading:0,fontStyle:"normal",decoration:{type:"none",style:{}},overflow:"none",backgroundStyle:{},transform:"none",tooltip:!1,tooltipWait:300}};var bE,s=S(S({},fx),{fill:"rgba(0,0,0,0.45)",fontSize:10,textAlign:"start",textBaseline:"middle",overflow:"clip"}),xE={default:{width:12,height:12,radius:2,stroke:"#dadada",lineWidth:1,fill:"#ffffff",cursor:"pointer"},selected:{width:12,height:12,radius:2,stroke:"#3471F9",lineWidth:1,fill:"#3471F9",cursor:"pointer"}},wE={path:[["M",3,6],["L","5","8.5"],["L","8.5","4"]],lineWidth:1,cursor:"pointer"};function kE(t){return bE.call(this,C({},kE.defaultOptions,t))||this}i(kE,bE=G),kE.prototype.render=function(t,e){var n=t.label,r=t.boxStyle,i=t.checkedStyle,o=t.checked,t=t.spacing,o=(this.checked=!!o,B(e,".checkbox-content","g").attr("className","checkbox-content").node()),e=mp({},this.checked?xE.selected:xE.default,r),r=mp({},wE,i),t=(this.checkboxBoxShape=B(o,".checkbox-box","rect").attr("className","checkbox-box").style("zIndex",(o.style.zIndex||0)-1).call(N,e).node(),B(this.checkboxBoxShape,".checkbox-checked","path").attr("className","checkbox-box-checked").style("stroke","#ffffff").call(N,r),i=this.checkboxBoxShape,e=Number(t),{x:(r=i.getLocalBounds()).halfExtents[0]?r.max[0]+(e||0):i.style.x,y:r.halfExtents[1]?(r.min[1]+r.max[1])/2:i.style.y}),e=t.x,r=t.y;B(o,".checkbox-label","text").attr("className","checkbox-label").style("x",e).style("y",r).call(N,n)},kE.defaultOptions={type:kE.tag="checkbox",style:{x:0,y:0,label:S({text:""},s),spacing:4,checked:!1}};var EE="gui-poptip",_E="gui-poptip-arrow",SE="gui-poptip-text",ME=((c={})[".".concat(EE)]={visibility:"visible",position:"absolute","background-color":"rgba(0, 0, 0)","box-shadow":"0px 0px 10px #aeaeae","border-radius":"3px",color:"#fff",opacity:.8,"font-size":"12px",padding:"4px 6px",display:"flex","justify-content":"center","align-items":"center","z-index":8,transition:"visibility 50ms"},c[".".concat(SE)]={"text-align":"center"},c[".".concat(EE,"[data-position='top']")]={transform:"translate(-50%, -100%)"},c[".".concat(EE,"[data-position='left']")]={transform:"translate(-100%, -50%)"},c[".".concat(EE,"[data-position='right']")]={transform:"translate(0, -50%)"},c[".".concat(EE,"[data-position='bottom']")]={transform:"translate(-50%, 0)"},c[".".concat(EE,"[data-position='top-left']")]={transform:"translate(0,-100%)"},c[".".concat(EE,"[data-position='top-right']")]={transform:"translate(-100%,-100%)"},c[".".concat(EE,"[data-position='left-top']")]={transform:"translate(-100%, 0)"},c[".".concat(EE,"[data-position='left-bottom']")]={transform:"translate(-100%, -100%)"},c[".".concat(EE,"[data-position='right-top']")]={transform:"translate(0, 0)"},c[".".concat(EE,"[data-position='right-bottom']")]={transform:"translate(0, -100%)"},c[".".concat(EE,"[data-position='bottom-left']")]={transform:"translate(0, 0)"},c[".".concat(EE,"[data-position='bottom-right']")]={transform:"translate(-100%, 0)"},c[".".concat(_E)]={width:"4px",height:"4px",transform:"rotate(45deg)","background-color":"rgba(0, 0, 0)",position:"absolute","z-index":-1},c[".".concat(EE,"[data-position='top']")]={transform:"translate(-50%, calc(-100% - 5px))"},c["[data-position='top'] .".concat(_E)]={bottom:"-2px"},c[".".concat(EE,"[data-position='left']")]={transform:"translate(calc(-100% - 5px), -50%)"},c["[data-position='left'] .".concat(_E)]={right:"-2px"},c[".".concat(EE,"[data-position='right']")]={transform:"translate(5px, -50%)"},c["[data-position='right'] .".concat(_E)]={left:"-2px"},c[".".concat(EE,"[data-position='bottom']")]={transform:"translate(-50%, 5px)"},c["[data-position='bottom'] .".concat(_E)]={top:"-2px"},c[".".concat(EE,"[data-position='top-left']")]={transform:"translate(0, calc(-100% - 5px))"},c["[data-position='top-left'] .".concat(_E)]={left:"10px",bottom:"-2px"},c[".".concat(EE,"[data-position='top-right']")]={transform:"translate(-100%, calc(-100% - 5px))"},c["[data-position='top-right'] .".concat(_E)]={right:"10px",bottom:"-2px"},c[".".concat(EE,"[data-position='left-top']")]={transform:"translate(calc(-100% - 5px), 0)"},c["[data-position='left-top'] .".concat(_E)]={right:"-2px",top:"8px"},c[".".concat(EE,"[data-position='left-bottom']")]={transform:"translate(calc(-100% - 5px), -100%)"},c["[data-position='left-bottom'] .".concat(_E)]={right:"-2px",bottom:"8px"},c[".".concat(EE,"[data-position='right-top']")]={transform:"translate(5px, 0)"},c["[data-position='right-top'] .".concat(_E)]={left:"-2px",top:"8px"},c[".".concat(EE,"[data-position='right-bottom']")]={transform:"translate(5px, -100%)"},c["[data-position='right-bottom'] .".concat(_E)]={left:"-2px",bottom:"8px"},c[".".concat(EE,"[data-position='bottom-left']")]={transform:"translate(0, 5px)"},c["[data-position='bottom-left'] .".concat(_E)]={top:"-2px",left:"8px"},c[".".concat(EE,"[data-position='bottom-right']")]={transform:"translate(-100%, 5px)"},c["[data-position='bottom-right'] .".concat(_E)]={top:"-2px",right:"8px"},c),TE=void 0;var OE;function PE(t){var e=t&&document.getElementById(t);return e||((e=document.createElement("div")).setAttribute("id",t),document.body.appendChild(e)),e}function AE(t){var n,r;return n=PE,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return r=r||n.apply(TE,t)}(t)}function CE(t){t=OE.call(this,C({style:{id:"gui-poptip"}},CE.defaultOptions,t))||this;return t.visibility="visible",t.map=new Map,t.domStyles="",t.initShape(),t.render(t.attributes,t),t}i(CE,OE=G),Object.defineProperty(CE.prototype,"visible",{get:function(){return"visible"===this.visibility},enumerable:!1,configurable:!0}),CE.prototype.render=function(t,e){this.visibility=this.style.visibility,this.updatePoptipElement()},CE.prototype.update=function(t){this.attr(C({},this.style,t)),this.render(this.attributes,this)},CE.prototype.bind=function(s,l){var u,t,e,c=this;s&&(u=this.style.text,e=function(){c.hideTip()},s.addEventListener("mousemove",t=function(t){var e=s,n=c.style,r=u,i=(l&&(a=(i="function"==typeof l?l.call(null,t):l).html,o=i.target,i=I(i,["html","target"]),n=mp({},c.style,i),!o&&!1!==o||(e=o),"string"==typeof a&&(r=a)),n.position),o=n.arrowPointAtCenter,a=n.follow,n=n.offset;e?(e=(t=j(function(t,e,n,r,i,o){if(void 0===i&&(i=!1),o=void 0===o?!1:o)return[t,e];var a=(o=n.getBoundingClientRect()).x,s=o.y,l=o.width,u=o.height;switch(r){case"top":return i?[a+l/2,s]:[t,s];case"left":return i?[a,s+u/2]:[a,e];case"bottom":return i?[a+l/2,s+u]:[t,s+u];case"right":return i?[a+l,s+u/2]:[a+l,e];case"top-right":case"right-top":return[a+l,s];case"left-bottom":case"bottom-left":return[a,s+u];case"right-bottom":case"bottom-right":return[a+l,s+u];default:return[a,s]}}(t.clientX,t.clientY,e,i,o,a),2))[0],o=t[1],c.showTip(e,o,{text:r,position:i,offset:n})):c.hideTip()}),s.addEventListener("mouseleave",e),this.map.set(s,[t,e]))},CE.prototype.unbind=function(t){var e,n;this.map.has(t)&&(e=(n=j(this.map.get(t)||[],2))[0],n=n[1],e&&t.removeEventListener("mousemove",e),n&&t.removeEventListener("mouseleave",n),this.map.delete(t))},CE.prototype.clear=function(){this.container.innerHTML=""},CE.prototype.destroy=function(){var t,e=this;z([],j(this.map.keys()),!1).forEach(function(t){return e.unbind(t)}),null!=(t=this.container)&&t.remove()},CE.prototype.showTip=function(t,e,n){var r,i=kp(n,"text");i&&"string"!=typeof i||(this.applyStyles(),t&&e&&n&&(r=n.offset,(n=n.position)&&this.container.setAttribute("data-position",n),this.setOffsetPosition(t,e,r),"string"==typeof i&&(n=this.container.querySelector(".".concat(SE)))&&(n.innerHTML=i),this.visibility="visible",this.container.style.visibility="visible"))},CE.prototype.hideTip=function(){this.visibility="hidden",this.container.style.visibility="hidden"},CE.prototype.getContainer=function(){return this.container},CE.prototype.getClassName=function(){var t=this.style.containerClassName;return"".concat(EE).concat(t?" ".concat(t):"")},CE.prototype.initShape=function(){var t=this,e=this.style.id;this.container=AE(e),this.container.setAttribute("class",this.getClassName()),this.container.addEventListener("mousemove",function(){return t.showTip()}),this.container.addEventListener("mouseleave",function(){return t.hideTip()})},CE.prototype.updatePoptipElement=function(){var t=this.container,e=(this.clear(),this.style),n=e.id,r=e.template,e=e.text,n=(this.container.setAttribute("id",n),this.container.setAttribute("class",this.getClassName()),'<span class="'.concat(_E,'"></span>'));t.innerHTML=n,np(r)?t.innerHTML+=r:r&&yp(r)&&t.appendChild(r),e&&(t.getElementsByClassName(SE)[0].textContent=e),this.applyStyles(),this.container.style.visibility=this.visibility},CE.prototype.applyStyles=function(){var t,e=Ox({},ME,this.style.domStyles),e=Object.entries(e).reduce(function(t,e){var e=j(e,2),n=e[0],e=e[1],e=Object.entries(e).reduce(function(t,e){var e=j(e,2),n=e[0],e=e[1];return"".concat(t).concat(n,": ").concat(e,";")},"");return"".concat(t).concat(n,"{").concat(e,"}")},"");this.domStyles!==e&&(this.domStyles=e,(t=this.container.querySelector("style"))&&this.container.removeChild(t),(t=document.createElement("style")).innerHTML=e,this.container.appendChild(t))},CE.prototype.setOffsetPosition=function(t,e,n){var n=j(n=void 0===n?this.style.offset:n,2),r=n[0],n=n[1],n=void 0===n?0:n;this.container.style.left="".concat(t+(void 0===r?0:r),"px"),this.container.style.top="".concat(e+n,"px")},CE.tag="poptip",CE.defaultOptions={style:{x:0,y:0,width:0,height:0,target:null,visibility:"hidden",text:"",position:"top",follow:!1,offset:[0,0],domStyles:ME,template:'<div class="'.concat(SE,'"></div>')}};class NE extends jh{constructor(t){super(t)}connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){this.drawText(),this.drawBackground(),this.drawConnector(),this.drawPoints()}get endPoint(){const t=this.style["connector"];var e,n;return Array.isArray(null===t||void 0===t?void 0:t.path)&&t.path.length?([[,e,n]]=t.path.slice(-1),{x:e,y:n}):{x:0,y:0}}drawText(){var t=this.attributes,e=t["textAlign"],t=I(t,["class","connector","startMarker","endMarker","background","transform","textAlign"]),{x:n,y:r}=this.endPoint;this.textShape=ib(this.textShape||this.appendChild(new rd({}))).call(ab,t).style("x",+n).style("y",+r).style("textAlign",e||(n<0?"right":0<n?"left":"center")).node()}drawBackground(){var t,e,n,r,i,o,a,s,l,u=this.style["background"];u?(t=u.padding,u=I(u,["padding"]),[t=0,e=0,n=t,r=e]=t||[],i=this.getEulerAngles(),{min:[o,a],halfExtents:[s,l]}=(this.setEulerAngles(0),this.textShape.getLocalBounds()),this.setEulerAngles(i),this.background=ib(this.background||this.appendChild(new ed({}))).style("zIndex",-1).style("x",o-r).style("y",a-t).style("width",2*s+r+e).style("height",2*l+t+n).call(ab,u).node()):(this.background&&this.removeChild(this.background,!0),this.background=void 0)}drawConnector(){var t,e=this.style["connector"];e?(t=e.path||function(t){var{min:[t,e],max:[n,r]}=t.getLocalBounds();let i=0,o=0;return 0<t&&(i=t),n<0&&(i=n),0<e&&(o=e),r<0&&(o=r),[["M",0,0],["L",i,o]]}(this.background||this.textShape),this.connector=ib(this.connector||this.appendChild(new Zh({}))).style("zIndex",-1).style("stroke","black").style("lineWidth",1).call(ab,e).style("path",t).node()):(this.connector&&this.removeChild(this.connector,!0),this.connector=void 0)}drawPoints(){var{startMarker:t,endMarker:e}=this.style;this.drawStartMarker(t),this.drawEndMarker(e&&Object.assign(Object.assign({},e),this.endPoint))}drawStartMarker(t){var e=this.startMarkerPoint;t?(e||(this.startMarkerPoint=this.appendChild(new L({style:{symbol:"circle",size:4}}))),this.startMarkerPoint.update(t)):(e&&this.removeChild(e,!0),this.startMarkerPoint=void 0)}drawEndMarker(t){var e=this.endMarkerPoint;t?(e||(this.endMarkerPoint=this.appendChild(new L({style:{symbol:"circle",size:4}}))),this.endMarkerPoint.update(t)):(e&&this.removeChild(e,!0),this.endMarkerPoint=void 0)}}const LE=t=>{const l=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,text:r="",fontSize:i=12,rotate:o=0,transform:a=""}=e,[[t,s]]=t;return ib(new NE({})).style("x",t).style("y",s).style("text",String(r)).style("stroke",e).style("fill",e).style("fontSize",i).style("transform",a+`rotate(${+o}deg)`).call(ab,l).node()}};LE.props={defaultEnterAnimation:"fadeIn"};class IE extends jh{constructor(t){super(t)}connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){this.drawMarker(),this.drawText()}drawMarker(){const t=this.attributes,{size:s=24}=t,e=I(t,["class","size"]);this.badgeMarker=this.badgeMarker||this.appendChild(new L({})),this.badgeMarker.className="badge-marker",this.badgeMarker.update(Object.assign(Object.assign({symbol:()=>{var t=s/2,e=t/Math.sqrt(2),n=t*Math.sqrt(2),[r,i]=[-e,e-n],[o,a]=[0,0],[e,n]=[e,e-n];return[["M",r,i],["A",t,t,0,1,1,e,n],["L",o,a],["Z"]]},size:s},e),{x:0,y:0}))}drawText(){var t=function(t){var{min:t,max:e}=t.getLocalBounds();return{x:(t[0]+e[0])/2,y:(t[1]+e[1])/2}}(this.badgeMarker),{content:e="",textStyle:n}=this.style,{fontSize:n=10,fill:r="#333"}=n||{};this.badgeText=this.badgeText||this.appendChild(new rd({})),ib(this.badgeText).attr("className","badge-text").style("x",t.x).style("y",t.y).style("textAlign","center").style("textBaseline","middle").call(ab,{fill:r,fontSize:n,text:e}).node()}}const RE=t=>{const o=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,text:r=""}=e,[[t,i]]=t;return ib(new IE({})).style("x",t).style("y",i).style("text",String(r)).style("stroke",e).style("fill",e).call(ab,o).node()}};function DE(t,e,n,r){const i=t.slice(0,t.length/2),o=t.slice(t.length/2);var a,s,l,u,c;if(zg(r)){const h=r.getCenter();t=e["transform"];return r=O1().curve(P1),a=r.curve,s=r.lineX0,l=r.lineX1,u=r.lineY0,c=r.lineY1,r.angle=r.x,delete r.x,r.startAngle=r.x0,delete r.x0,r.endAngle=r.x1,delete r.x1,r.radius=r.y,delete r.y,r.innerRadius=r.y0,delete r.y0,r.outerRadius=r.y1,delete r.y1,r.lineStartAngle=function(){return N1(s())},delete r.lineX0,r.lineEndAngle=function(){return N1(l())},delete r.lineX1,r.lineInnerRadius=function(){return N1(u())},delete r.lineY0,r.lineOuterRadius=function(){return N1(c())},delete r.lineY1,r.curve=function(t){return arguments.length?a(C1(t)):a()._curve},[r.angle((t,e)=>K1(X1(i[e],h))).outerRadius((t,e)=>Z1(i[e],h)).innerRadius((t,e)=>Z1(o[e],h)).curve(n)(o),`translate(${h[0]}, ${h[1]}) `+(t||"")]}return[O1().x((t,e)=>i[e][0]).y1((t,e)=>i[e][1]).y0((t,e)=>o[e][1]).curve(n)(i),""]}RE.props={defaultEnterAnimation:"fadeIn"};const jE=t=>{const{curve:a,gradient:s=!1}=t,l=I(t,["curve","gradient"]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:r=r,seriesColor:i,seriesX:o}=e,[t,e]=DE(t,e,a,n),n=s&&i?cb(i,o):r;return ib(new Zh({})).style("d",t).style("fill",n).style("stroke",n).style("transform",e).call(ab,l).node()}},BE=(jE.props={defaultEnterAnimation:"fadeIn"},o=>(t,e,n,r)=>{var i=zg(n)?H1:_1;return jE(Object.assign({curve:i},o))(t,e,n,r)}),FE=(BE.props=Object.assign({},jE.props),t=>{const{alpha:o=.5}=t,a=I(t,["alpha"]);return(t,e,n,r)=>{const i=zg(n)?V1:F1;return jE(Object.assign({curve:i.alpha(o)},a))(t,e,n,r)}}),zE=(FE.props=Object.assign({},jE.props),t=>{const s=t["arrow"],l=I(t,["arrow"]);return(t,e,n,r)=>{var i,r=r["defaultColor"],{color:e=r,transform:r}=e,[t,o]=t;const a=e1();return a.moveTo(...t),a.lineTo(...o),s&&([t,i]=lb(t,o,s),a.moveTo(...o),a.lineTo(...t),a.moveTo(...o),a.lineTo(...i)),ib(new Zh).style("d",a.toString()).style("stroke",e).style("transform",r).call(ab,l).node()}}),VE=(zE.props={defaultEnterAnimation:"fadeIn"},t=>{const s=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,src:r="",size:i=32,transform:o=""}=e,[[t,a]]=t,t=t-Number(i)/2,a=a-Number(i)/2;return ib(new Uh).style("x",t).style("y",a).style("width",i).style("height",i).style("img",r).style("stroke",e).style("transform",o).call(ab,s).node()}});VE.props={defaultEnterAnimation:"fadeIn"};const GE=t=>{const o=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e;const i=function(i,t){const o=e1();if(zg(t)){const a=t.getCenter(),e=[...i,i[0]],s=e.map(t=>Z1(t,a));return e.forEach((t,e)=>{var n,r;0===e?o.moveTo(t[0],t[1]):(n=s[e],r=i[e-1],void 0!==(e=s[e-1])&&Math.abs(n-e)<1e-10?ub(o,r,t,a,n):o.lineTo(t[0],t[1]))}),o.closePath(),o}return sb(o,i)}(t,n);return ib(new Zh).style("d",i.toString()).style("stroke",e).style("fill",e).style("transform",r).call(ab,o).node()}};GE.props={defaultEnterAnimation:"fadeIn"};const HE=t=>{const o=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e;const i=function(t,e){const n=e1();var r,i,o,a,s,l,u,c;return zg(e)?([r,i]=e=e.getCenter(),o=K1(X1(t[0],e)),a=K1(X1(t[1],e)),s=Z1(e,t[2]),l=Z1(e,t[3]),u=Z1(e,t[8]),c=Z1(e,t[10]),e=Z1(e,t[11]),n.moveTo(...t[0]),n.arc(r,i,s,o,a),n.arc(r,i,s,a,o,!0),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.arc(r,i,l,o,a),n.lineTo(...t[6]),n.arc(r,i,c,a,o,!0),n.closePath(),n.moveTo(...t[8]),n.arc(r,i,u,o,a),n.arc(r,i,u,a,o,!0),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.arc(r,i,e,o,a),n.arc(r,i,e,a,o,!0)):(n.moveTo(...t[0]),n.lineTo(...t[1]),n.moveTo(...t[2]),n.lineTo(...t[3]),n.moveTo(...t[4]),n.lineTo(...t[5]),n.lineTo(...t[6]),n.lineTo(...t[7]),n.closePath(),n.moveTo(...t[8]),n.lineTo(...t[9]),n.moveTo(...t[10]),n.lineTo(...t[11]),n.moveTo(...t[12]),n.lineTo(...t[13])),n}(t,n);return ib(new Zh).style("d",i.toString()).style("stroke",e).style("fill",e).style("transform",r).call(ab,o).node()}},WE=(HE.props={defaultEnterAnimation:"fadeIn"},a=>(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r,size:i}=e,[t,o]=t[0];return ib(new Zh).style("d",Eb(t,o,+i)).style("lineWidth",0).style("stroke",e).style("transform",r).style("fill",e).call(ab,a).node()}),UE=(WE.props={defaultEnterAnimation:"fadeIn"},(...t)=>GE(...t)),YE=(UE.props={defaultEnterAnimation:"fadeIn"},(...t)=>zE(...t)),qE=(YE.props={defaultEnterAnimation:"fadeIn"},t=>{const a=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e,[t,i]=t;const o=e1();return o.moveTo(t[0],t[1]),o.bezierCurveTo(t[0]/2+i[0]/2,t[1],t[0]/2+i[0]/2,i[1],i[0],i[1]),ib(new Zh).style("d",o.toString()).style("stroke",e).style("transform",r).call(ab,a).node()}});qE.props={defaultEnterAnimation:"fadeIn"};const XE=t=>{const{cornerRatio:a=1/3}=t,s=I(t,["cornerRatio"]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e,[t,i]=t;const o=function(t,e,n,r){const i=e1();var o,a;return zg(n)?(a=Z1(t,o=n.getCenter()),a=(Z1(e,o)-a)*r+a,i.moveTo(t[0],t[1]),ub(i,t,e,o,a),i.lineTo(e[0],e[1])):(Fg(n)?(i.moveTo(t[0],t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,t[1]),i.lineTo(t[0]+(e[0]-t[0])*r,e[1])):(i.moveTo(t[0],t[1]),i.lineTo(t[0],t[1]+(e[1]-t[1])*r),i.lineTo(e[0],t[1]+(e[1]-t[1])*r)),i.lineTo(e[0],e[1])),i}(t,i,n,a);return ib(new Zh).style("d",o.toString()).style("stroke",e).style("transform",r).call(ab,s).node()}},ZE=(XE.props={defaultEnterAnimation:"fadeIn"},t=>{const u=I(t,[]);return(t,e,n,r)=>{var i,o,a,r=r["defaultColor"],{color:e=r,transform:r}=e,[t,s]=t;const l=e1();return l.moveTo(t[0],t[1]),zg(n)?(n=n.getCenter(),l.quadraticCurveTo(n[0],n[1],s[0],s[1])):([[n,i],[o,a]]=[t,s],n=[(n+o)/2,(i+a)/2],o=Z1(t,s)/2,ub(l,t,s,n,o)),ib(new Zh).style("d",l.toString()).style("stroke",e).style("transform",r).call(ab,u).node()}});ZE.props={defaultEnterAnimation:"fadeIn"};const KE=t=>{const o=I(t,[]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e;const i=function(t,e){var n,[t,r,i,o]=t;const a=e1();return zg(e)?(n=Z1(e=e.getCenter(),t),a.moveTo(t[0],t[1]),a.quadraticCurveTo(e[0],e[1],i[0],i[1]),ub(a,i,o,e,n),a.quadraticCurveTo(e[0],e[1],r[0],r[1]),ub(a,r,t,e,n),a.closePath()):(a.moveTo(t[0],t[1]),a.bezierCurveTo(t[0]/2+i[0]/2,t[1],t[0]/2+i[0]/2,i[1],i[0],i[1]),a.lineTo(o[0],o[1]),a.bezierCurveTo(o[0]/2+r[0]/2,o[1],o[0]/2+r[0]/2,r[1],r[0],r[1]),a.lineTo(t[0],t[1]),a.closePath()),a}(t,n);return ib(new Zh).style("d",i.toString()).style("fill",e).style("stroke",e).style("transform",r).call(ab,o).node()}};KE.props={defaultEnterAnimation:"fadeIn"};const $E=t=>{const a=I(t,[]);return(t,e,n,r)=>{var{defaultColor:r,defaultSize:i}=r,{color:r=r,size:i=i}=e,o=(t=t,zg(o=n)?(o=o.getCenter(),w1()({startAngle:0,endAngle:2*Math.PI,outerRadius:Z1(t[0],o),innerRadius:Z1(t[1],o)})):T1().x(t=>t[0]).y(t=>t[1])(t)),t=function(t,e){if(!zg(t))return e;var[t,n]=t.getCenter();return`translate(${t}, ${n}) `+(e||"")}(n,e.transform);return ib(new Zh({})).style("d",o).style("stroke",r).style("lineWidth",i).style("transform",t).call(ab,a).node()}};$E.props={defaultEnterAnimation:"fadeIn"};class JE extends jh{constructor(t){super(t)}connectedCallback(){this.draw()}attributeChangedCallback(){this.draw()}draw(){this.drawPath(),this.drawEndMarker()}drawPath(){var t=this.attributes,e=t["connectorPath"],t=I(t,["connectorPath","class"]);this.connector=ib(this.connector||this.appendChild(new Zh({}))).style("path",e).call(ab,t).node()}drawEndMarker(){var{stroke:t,endMarker:e}=this.style;this.endMarker=this.endMarker||this.appendChild(new L({})),this.endMarker.update(Object.assign({size:8,fill:t},e))}}function QE(t,e,n){return[["M",t-n,e+2*n],["L",t,e],["L",t+n,e+2*n],["Z"]]}function t_(t,e,n){return[["M",t,e],["L",t-n,e-2*n],["L",t+n,e-2*n],["Z"]]}function e_(t,e,n){return[["M",t,e],["L",t+2*n,e-n],["L",t+2*n,e+n],["Z"]]}const n_=t=>{const{direction:o="upward",offset:a=12,endMarker:s}=t,l=I(t,["direction","offset","endMarker"]);return(t,e,n,r)=>{var r=r["defaultColor"],{color:e=r,transform:r}=e,n=function(t,e,n,r){var[e,i]=e;return Fg(t)?[e,[t="downward"===n?Math.min(e[0],i[0])-r:Math.max(e[0],i[0])+r,e[1]],[t,i[1]],i]:(t="downward"===n?Math.max(e[1],i[1])+r:Math.min(e[1],i[1])-r,[e,[e[0],t],[i[0],t],i])}(n,t,o,a),t=(t=n,T1().x(t=>t[0]).y(t=>t[1])(t)),[,,,i]=n;return ib(new JE({})).style("connectorPath",t).style("stroke",e).style("transform",r).style("endMarker",Object.assign({x:i[0],y:i[1],symbol:function(t){var[,,t,e]=t;return e[0]<t[0]?e_:t[1]>e[1]?QE:t_}(n)},s)).call(ab,l).node()}},r_=(n_.props={defaultEnterAnimation:"fadeIn"},t=>{const{label:s={}}=t;return(t,e,n,r)=>{const i=e.element;var{min:o,max:a}=i.getRenderBounds(),[o]=o,[a]=a,a=a-o,o=e["label"];return ib(new rd).style("x",a/2).style("y",0).style("text",""+o).style("fontSize",12).style("dy","-2px").style("textAlign","center").call(ab,s).node()}}),i_=(r_.props={},t=>{return Object.assign({},{defaultColor:"#5B8FF9",defaultCategory10:"category10",defaultCategory20:"category20",defaultSize:1,elementActiveStroke:"black",enter:{duration:300,fill:"both",delay:0},title:{fill:"rgba(0,0,0,0.85)",fontSize:14,fontWeight:"bold"},subtitle:{fill:"rgba(0,0,0,0.65)",fontSize:10}},t)});function o_(r,t,e,i,o){var n;const a=(null==(n=r.getTicks)?void 0:n.call(r))||t,s=(null==(n=r.getFormatter)?void 0:n.call(r))||e;return zg(o)||Fg(o)?a.map(t=>{var e,n=(null==(n=r.getBandWidth)?void 0:n.call(r,t))/2||0,n=r.map(t)+n;return{value:Fg(o)&&null!=(e=r.getTicks)&&e.call(r)?1-n:n,text:s(t)}}):a.map(t=>{var e=(null==(e=r.getBandWidth)?void 0:e.call(r,t))/2||0,e=r.map(t)+e;n=e;var n=function(t,e,n){var{width:n,height:r}=n.getOptions();if("bottom"===e){const i=t[0],o=new mm({domain:[0,n],range:[0,1]});return o.map(i)}const i=t[1],o=new mm({domain:[0,r],range:[0,1]});return o.map(i)}(o.map("bottom"===i?[n,1]:[0,n]),i,o);return{value:Vg(o)?e:n,text:s(t)}})}function a_(t,e,n,r,i){return zg(n)||Vg(n)?[]:t.map(t=>{return{points:function(t,e,n,r,i){var[r,o]=r,[i,a]=i,[n,s]=n.getSize();let l,u,c,h;return"bottom"===e||"top"===e?(l=u=r+(i-r)*t,c=o,h="bottom"===e?o-s:o+s):(c=h=o+(a-o)*t,l=r,u="left"===e?r+n:r-n),[[l,c],[u,h]]}(t.value,e,n,r,i)}})}i_.props={};const s_=t=>{const{position:s,formatter:l=t=>""+t}=t;return(t,e,n,r)=>{var[i,o]=n.getCenter(),{domain:e,bbox:a}=e,i=[i+a.x,o+a.y],o=o_(t,e,l,s,n),e=Math.min(a.width,a.height)/2,n=t.getOptions().guide||{},a=n["grid"],t=a?function(t,e,n,r,i){const[o,a]=e;return t.map(({value:t})=>{t=(r-n)*t+n;return{points:[[o,a],[o+i*Math.cos(t*Math.PI/180),a+i*Math.sin(t*Math.PI/180)]]}})}(o,i,-90,270,e):[];return new S2({style:C({},{center:i,radius:e,startAngle:-90,endAngle:270,ticks:o,axisLine:{style:{lineWidth:0,strokeOpacity:0}},grid:{items:t,lineStyle:{stroke:"#1b1e23",strokeOpacity:.1,lineDash:[0,0]}},tickLine:{len:4,style:{lineWidth:1,stroke:"#BFBFBF"}},label:{align:"tangential",tickPadding:2}},n)})}},l_=t=>{const{position:v,title:m=!0,formatter:b=t=>""+t}=t;return(t,e,n,r)=>{var{domain:e,field:i,bbox:o}=e,{startPos:o,endPos:a,labelOffset:s,titlePosition:l,titlePadding:u,titleRotate:c,verticalFactor:h,titleOffsetY:d,label:f=!0,axisLine:p,tickLine:y=!0}=function(t,e,n){var r,{x:i,y:o,width:a,height:s}=e;return"bottom"===t?{startPos:[i,o],endPos:[i+a,o],labelOffset:8,titlePosition:"end",titlePadding:2,titleRotate:0,verticalFactor:1}:"left"===t||"centerHorizontal"===t?{startPos:[i+a,o],endPos:[i+a,o+s],titlePosition:"center",titlePadding:6,titleRotate:-90,labelAlign:"end",labelOffset:4,verticalFactor:-1}:"right"===t?{startPos:[i,o],endPos:[i,o+s],titlePosition:"center",titlePadding:16,titleRotate:-90,labelAlign:"start",labelOffset:4,verticalFactor:1}:"arcY"===t?([t,n]=n.getCenter(),r=Math.min(e.width,e.height)/2,{startPos:[t+e.x,n+e.y-r],endPos:[t+e.x,n+e.y],titlePosition:"start",titlePadding:4,titleOffsetY:0,titleRotate:-90,labelOffset:4,verticalFactor:-1,axisLine:!1}):{startPos:[i,o+s],endPos:[i+a,o+s],titlePosition:"end",titlePadding:2,titleRotate:0,labelOffset:4,verticalFactor:-1}}(v,o,n),e=o_(t,e,b,v,n),l=t.getTicks?l:"center",g=t.getOptions().guide||{},{grid:t=!!t.getTicks}=g,t=t?a_(e,v,n,o,a):[];return new y2({style:C(Object.assign({startPos:o,endPos:a,verticalFactor:h,ticks:e,label:f?{tickPadding:s,autoHide:!1,style:{}}:null,axisLine:p?{stroke:"#BFBFBF"}:null,grid:{items:t,lineStyle:{stroke:"#1b1e23",strokeOpacity:.05,lineDash:[0,0]}},tickLine:y?{len:4,style:{lineWidth:1,stroke:"#BFBFBF"}}:null},i&&m&&{title:{content:Array.isArray(i)?i[0]:i,titleAnchor:l,style:{fontWeight:"bold",fillOpacity:1,dy:d,textAnchor:l},titlePadding:u,rotate:c}}),g)})}},u_=i=>{const o=i["position"];return(t,e,n,r)=>("arc"===o?s_:l_)(i)(t,e,n,r)},c_=(u_.props={defaultPosition:"left",defaultSize:45,defaultOrder:0},t=>u_(t)),h_=(c_.props=Object.assign(Object.assign({},u_.props),{defaultPosition:"bottom"}),t=>u_(t)),d_=(h_.props=Object.assign(Object.assign({},u_.props),{defaultPosition:"left"}),t=>{const{position:p,formatter:y=t=>""+t}=t;return(e,t,n,r)=>{const{domain:i,field:o,bbox:a}=t;var{x:t,y:s,width:l,height:u}=a,c=i.map(t=>({id:t,name:y(t),color:e.map(t)})),h=e.getOptions().guide||{},{cols:d,autoWrap:f}=h,h=I(h,["cols","autoWrap"]),d=f&&d?l/d:void 0,c=C({},Object.assign(Object.assign({items:c,x:t,y:s,orient:["right","left"].includes(p)?"vertical":"horizontal",maxWidth:l,maxHeight:u,autoWrap:f,maxItemWidth:d,itemWidth:d,spacing:[8,0],itemName:{style:{fontSize:12,fillOpacity:1,fill:"#000",fontWeight:"lighter",active:{fillOpacity:.8},inactive:{fill:"#d8d8d8"},unchecked:{fill:"#d8d8d8"}}}},o&&{title:{content:Array.isArray(o)?o[0]:o,style:{fontSize:12,fontWeight:"bold",fillOpacity:1}}}),{itemMarker:{size:8,symbol:"circle",style:{fillOpacity:1,inactive:{fillOpacity:.2},unchecked:{fill:"#d8d8d8",stroke:"#d8d8d8"}}},itemBackgroundStyle:{fill:"transparent"}}),h);return new _k({className:"category-legend",style:c})}}),f_=(d_.props={defaultPosition:"top",defaultOrder:1,defaultSize:40},t=>(e,t,n,r)=>{const{field:i,domain:o,bbox:a}=t;var{x:t,y:s}=a,l=(null==(l=e.getTicks)?void 0:l.call(e))||[],[u,c]=o;return new Wk({style:Object.assign(Object.assign({x:t,y:s,rail:{length:120,size:12,ticks:l},min:u,max:c,indicator:null,handle:null},i&&{title:{content:Array.isArray(i)?i[0]:i,style:{fontSize:12}}}),{color:o.map(t=>e.map(t))})})});function p_(e){return class extends jh{constructor(t){super(t),this.descriptor=e}connectedCallback(){var t,e;null!=(e=(t=this.descriptor).render)&&e.call(t,this.attributes,this)}update(t={}){var e;this.attr(C({},this.attributes,t)),null!=(e=(t=this.descriptor).render)&&e.call(t,this.attributes,this)}}}function y_(t,e,n){return t.querySelector(e)?ib(t).select(e):ib(t).append(n)}f_.props={defaultPosition:"top",defaultOrder:1,defaultSize:40};const g_=p_({render(t,e){const{text:n,style:r,subtitle:i,subtitleStyle:o}=t,a=y_(e,".title","text").attr("className","title").style("fontSize",14).style("textBaseline","top").style("text",n).call(ab,r||{}).node();t=a.getLocalBounds();y_(e,".sub-title","text").attr("className","sub-title").style("y",t.max[1]+((null===o||void 0===o?void 0:o.spacing)||0)).style("fontSize",12).style("textBaseline","top").call(t=>{if(!i)return t.node().remove();t.node().attr(Object.assign({text:i},o))})}}),v_=t=>{const{text:o,style:a,subtitle:s,subtitleStyle:l}=t;return(t,e,n,r)=>{var{x:e,y:i}=e.bbox;return new g_({style:C({},{style:r.title,subtitleStyle:r.subtitle},{x:e,y:i,style:a,text:o,subtitle:s,subtitleStyle:l})})}};v_.props={defaultPosition:"top",defaultOrder:2,defaultSize:30};class m_{constructor(t){this.$value=t}static of(t){return new m_(t)}call(t,...e){return this.$value=t(this.$value,...e),this}value(){return this.$value}}function b_(t,e,n){return m_.of({}).call(x_,t).call(x_,e).call(x_,n).value()}function x_(t,e){for(var[n,r]of Object.entries(e))void 0!==r&&(t[n]=e[n]);return t}const w_=h=>{return(t,e,n,r,i)=>{const[o]=t;var t=o.getBoundingClientRect()["height"],a=o.style["transform"],{fillOpacity:s,strokeOpacity:l,opacity:u}=o.parsedStyle,[r,t]=Fg(r)?[[0,t],"scale(1, 0.0001)"]:[[0,0],"scale(0.0001, 1)"],t=[{transform:(a+" "+t).trimStart(),fillOpacity:0,strokeOpacity:0,opacity:0},{transform:(a+" "+t).trimStart(),fillOpacity:s.value,strokeOpacity:l.value,opacity:u.value,offset:.01},{transform:(a+" scale(1, 1)").trimStart()}];o.setOrigin(r);const c=o.animate(t,b_(i,n,h));return c.finished.then(()=>o.setOrigin(0,0)),c}},k_=h=>{return(t,e,n,r,i)=>{const[o]=t;var t=o.getBoundingClientRect()["height"],a=o.style["transform"],{fillOpacity:s,strokeOpacity:l,opacity:u}=o.parsedStyle,[r,t]=Fg(r)?[[0,t],"scale(1, 0.0001)"]:[[0,0],"scale(0.0001, 1)"],s=[{transform:(a+" scale(1, 1)").trimStart()},{transform:(a+" "+t).trimStart(),fillOpacity:s.value,strokeOpacity:l.value,opacity:u.value,offset:.99},{transform:(a+" "+t).trimStart(),fillOpacity:0,strokeOpacity:0,opacity:0}];o.setOrigin(r);const c=o.animate(s,b_(i,n,h));return c.finished.then(()=>o.setOrigin(0,0)),c}},E_=h=>{return(t,e,n,r,i)=>{const[o]=t;var t=o.getBoundingClientRect()["height"],a=o.style["transform"],{fillOpacity:s,strokeOpacity:l,opacity:u}=o.parsedStyle,[r,t]=Fg(r)?[[0,0],"scale(0.0001, 1)"]:[[0,t],"scale(1, 0.0001)"],t=[{transform:(a+" "+t).trimStart(),fillOpacity:0,strokeOpacity:0,opacity:0},{transform:(a+" "+t).trimStart(),fillOpacity:s.value,strokeOpacity:l.value,opacity:u.value,offset:.01},{transform:(a+" scale(1, 1)").trimStart()}];o.setOrigin(r);const c=o.animate(t,b_(i,n,h));return c.finished.then(()=>o.setOrigin(0,0)),c}},__=h=>{return(t,e,n,r,i)=>{const[o]=t;var t=o.getBoundingClientRect()["height"],a=o.style["transform"],{fillOpacity:s,strokeOpacity:l,opacity:u}=o.parsedStyle,[r,t]=Fg(r)?[[0,0],"scale(0.0001, 1)"]:[[0,t],"scale(1, 0.0001)"],s=[{transform:(a+" scale(1, 1)").trimStart()},{transform:(a+" "+t).trimStart(),fillOpacity:s.value,strokeOpacity:l.value,opacity:u.value,offset:.99},{transform:(a+" "+t).trimStart(),fillOpacity:0,strokeOpacity:0,opacity:0}];o.setOrigin(r);const c=o.animate(s,b_(i,n,h));return c.finished.then(()=>o.setOrigin(0,0)),c}},S_=l=>(t,e,n,r,i)=>{const[o]=t;var{fillOpacity:t,strokeOpacity:a,opacity:s}=o.parsedStyle,t=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:t.value,strokeOpacity:a.value,opacity:s.value}];return o.animate(t,b_(i,n,l))},M_=(S_.props={},l=>(t,e,n,r,i)=>{const[o]=t;var{fillOpacity:t,strokeOpacity:a,opacity:s}=o.parsedStyle,t=[{fillOpacity:t.value,strokeOpacity:a.value,opacity:s.value},{fillOpacity:0,strokeOpacity:0,opacity:0}];return o.animate(t,b_(i,n,l))});function T_(t,e){const n={};for(const i of e){var r=t.style[i];r&&(n[i]=r)}return n}function O_(t,e){var[n,r,i,t]=function(t){var{min:t,max:e}=t.getLocalBounds(),[t,n]=t,[e,r]=e;return[t,n,e-t,r-n]}(t),o=Math.ceil(Math.sqrt(e/(t/i)));const a=[];var s=t/Math.ceil(e/o);let l=0,u=e;for(;0<u;){var c=Math.min(u,o),h=i/c;for(let t=0;t<c;t++){var d=n+t*h,f=r+l*s;a.push(function(t){var[t,e,n,r]=t;return`
|
|
2
|
+
M ${t} ${e}
|
|
3
|
+
L ${t+n} ${e}
|
|
4
|
+
L ${t+n} ${e+r}
|
|
5
|
+
L ${t} ${e+r}
|
|
6
|
+
Z
|
|
7
|
+
`}([d,f,h,s]))}u-=c,l+=1}return a}function P_(t,e,n,r){var i=su(e),o=su(n);if(void 0===i||void 0===o)return null;var a=["fill","stroke","fillOpacity","strokeOpacity","opacity","lineWidth"],i=[Object.assign({path:i},T_(e,a)),Object.assign({path:o},T_(n,a))],e=t.animate(i,r);return t.style.transform="scale(1, 1)",t.style.transform="none",e}M_.props={};const A_=y=>(t,e,n,r,i)=>{[o="pack"]=[y.split];var o="function"==typeof o?o:O_,i=b_(i,n,y),n=t["length"],a=e["length"];if(1===n&&1===a||1<n&&1<a)return[s]=t,[u]=e,P_(s,s,u,i);if(1===n&&1<a){var[s]=t;{var l=s,u=e,c=i,s=o;l.style.visibility="hidden";const f=s(l,u.length);return u.map((t,e)=>{return P_(t,new Zh({style:{path:f[e],fill:l.style.fill}}),t,c)})}}if(1<n&&1===a){var[n]=e;{var a=t,h=n,d=i;const p=(e=o)(h,a.length);var{fillOpacity:e,strokeOpacity:t,opacity:n}=h.parsedStyle,e=[{fillOpacity:0,strokeOpacity:0,opacity:0},{fillOpacity:0,strokeOpacity:0,opacity:0,offset:.99},{fillOpacity:e.value,strokeOpacity:t.value,opacity:n.value}],t=h.animate(e,d);return[...a.map((t,e)=>{return P_(t,t,new Zh({style:{path:p[e],fill:h.style.fill}}),d)}),t]}}return null},C_=(A_.props={},()=>t=>{const{event:e,shared:n}=t;var{target:r,offsetX:i,offsetY:o}=e;const a=(r||{})["className"];return n.mouseX=i,n.mouseY=o,a&&a.includes("element")?n.selectedElements=[r]:n.selectedElements=[],t}),N_=(C_.props={},t=>{const a=t["multiple"];return t=>{const{event:e,shared:n}=t,r=e.composedPath();var i=r.find(t=>"legend-item"===t.className);const o=a&&n.triggerInfo||[];return i&&o.push({id:i.id,scaleType:"color"}),n.triggerInfo=o,t}});function L_(t){return t.selectAll(".element").nodes().map(n=>{const r=n["__data__"],{seriesX:i=[],seriesY:o=[],seriesTooltip:a=[],seriesTitle:s=[]}=r;return i.length?i.map((t,e)=>Object.assign(Object.assign({},n),{__data__:Object.assign(Object.assign({},r),{x:i[e],y:o[e],title:s[e],tooltip:a[e]})})):n}).flat()}function I_(t,e,n,r="x"){let i=n;if(e.getRange){var o=e.getRange();for(let t=0;t<o.length;t++){var a=o[t],s=e.invert(a),l=e.getBandWidth(s),s=(e.getStep(s)-l)/2;if(a-s<=n&&n<a+l+s){i=a;break}}}return i?jg(t,({__data__:t})=>Math.pow(t[r]-i,2)):null}N_.props={};const R_=t=>{const{trigger:E,filterBy:_,multiple:S,toggle:M}=t;return t=>{const{event:e,shared:n,selection:r,scale:i,transientLayer:o,coordinate:a}=t,s=L_(r),{selectedElements:l=[]}=n;n.selectedElements=[];let u=[];if("axis"===E){const m=r.select(".plot").node();var[c,h]=m.getBounds().min,{offsetX:d,offsetY:f}=e,[d]=a.invert([d-c,f-h]);const b=I_(s,i.x,d);u=b?s.filter(({__data__:{x:t}})=>t===b.__data__.x):[]}else if("triggerInfo"===E){var{triggerInfo:c=[]}=n;u=(f=s,p=i,y=c,f.filter(t=>{var e=t["__data__"];for(const n of y){const r=p[n.scaleType];if(r&&r.invert(e[n.scaleType])===n.id)return!0}}))}else if("rect-mask"===E){const x=o.selectAll(".mask").nodes();u=s.filter(n=>x.some(t=>{var e=n.getRenderBounds(),t=t.getRenderBounds();return!(t.min[0]>e.max[0]||t.max[0]<e.min[0]||t.min[1]>e.max[1]||t.max[1]<e.min[1])}))}else if("polygon-mask"===E){const w=o.selectAll(".mask").nodes();u=s.filter(l=>w.some(({__data__:{points:t}})=>{var{min:e,max:n}=l.getLocalBounds(),n=[e,[e[0],n[1]],n,[n[0],e[1]]],r=t,i=n;if(r.length<2||i.length<2)return!1;e=dw(r),t=dw(i);if(e=e,(t=t).minX>e.maxX||t.maxX<e.minX||t.minY>e.maxY||t.maxY<e.minY)return!1;var o=!1;if($f(i,function(t){if(uw(r,t[0],t[1]))return!(o=!0)}),o)return!0;if($f(r,function(t){if(uw(i,t[0],t[1]))return!(o=!0)}),o)return!0;var a=cw(r),t=cw(i),s=!1;return $f(t,function(t){if(hw(a,t))return!(s=!0)}),s}))}else{h=e["target"];const k=(h||{})["className"];k&&k.includes("element")&&(d=ib(h).node()["__data__"],u=_?((e,n)=>{const t=r.selectAll(".element").nodes();return t.filter(({__data__:t})=>t[e]===n)})(_,d[_]):[h])}var p,y,g;[g,c=[]]=[u,l];const v=c.filter(e=>g.find(({__data__:{key:t}})=>t===e.__data__.key)).map(t=>t.__data__.key);return n.selectedElements=u,S&&l.forEach(t=>{v.includes(t.__data__.key)||n.selectedElements.push(t)}),M&&(n.selectedElements=n.selectedElements.filter(t=>!v.includes(t.__data__.key))),t}},D_=(R_.props={},t=>{const a=t["from"];return t=>{const{shared:e,selection:n,scale:r}=t,i=n.select(".category-legend").node();if("triggerInfo"===a)e.selectedLegendItems=e.triggerInfo.map(({id:t})=>i.getItem(t));else if("selectedElements"===a){const o=e.selectedElements.map(({__data__:{color:t}})=>r.color.invert(t));e.selectedLegendItems=o.map(t=>i.getItem(t))}return t}}),j_=(D_.props={},t=>{const n=t["state"];return t=>{const e=t["shared"];return e.currentState=n,t}}),B_=(j_.props={},t=>{const{clear:d,start:f}=t;return t=>{const{shared:e,selection:n,event:r}=t,i=n.select(".plot").node();var[o,a]=i.getBounds().min,{offsetX:s,offsetY:l}=r;if(d)e.points=[];else{var{points:u=[]}=e;const c=[...u];u=[s-o,l-a];if(f)e.points=[...c,[u]];else{const h=c.splice(-1,1)[0]||[];h.push(u),e.points=[...c,h]}}return t}}),F_=(B_.props={},t=>{const o=t["clear"];return t=>{const{shared:e,event:n}=t;var{offsetX:r,offsetY:i}=n;return o?e.currentPoint=null:e.currentPoint=[r,i],t}});F_.props={};const z_=t=>{const u=t["dim"];return t=>{const{shared:e,coordinate:l}=t,{points:n=[]}=e;return e.regions=n.map(i=>{{var o=l,a=u,o=o.getOptions(),s=rp(i),i=ip(i);let t=Math.min(s[0],i[0]),e=Math.min(s[1],i[1]),n=Math.abs(i[0]-s[0]),r=Math.abs(i[1]-s[1]);return"x"===a?(e=o.y,r=o.height):"y"===a&&(t=o.x,n=o.width),{x1:t,y1:e,x2:t+n,y2:e+r}}}),t}},V_=(z_.props={},l=>t=>{const{shared:e,theme:n,selectionLayer:r}=t,{selectedElements:i=[]}=e;var o=n["elementActiveStroke"];const{color:a=o,border:s}=l;o=i.map(t=>t.__data__);return r.selectAll(".highlight-element").remove(),r.selectAll(".highlight-element").data(o,t=>t.key).join(t=>t.append((t,e)=>i[e].cloneNode()).style("lineWidth",function(){return void 0!==s?s:+this.style.lineWidth||1}).style("stroke",a).attr("className","highlight-element")),t});function G_(t,e,n,r){n.includes(e)?(t.style.fillOpacity=1,t.style.lineWidth=+t.style.lineWidth||1,t.style.stroke=r):(t.style.fillOpacity=.45,t.style.stroke="transparent")}V_.props={};const H_=c=>{const h=c["clear"];return t=>{const{shared:e,selection:n,theme:r,selectionLayer:i}=t,{selectedElements:o=[]}=e;var a=r["elementActiveStroke"];const{color:s=a}=c,l=o.map(t=>t.__data__),u=n.selectAll(".element").each(function(){this.style.originVisibility||(this.style.originVisibility=this.style.visibility||"visible"),this.style.visibility=l.length?"hidden":this.style.originVisibility}).nodes();a=l.length?u.map(t=>t.__data__):[];return i.selectAll(".highlight-element").data(h?[]:a,(t,e)=>e).join(t=>t.append((t,e)=>u[e].cloneNode(!0)).attr("className","highlight-element").style("visibility","visible").each(function(t){G_(this,t,l,s)}),t=>t.each(function(t){G_(this,t,l,s)}),t=>t.remove()),t}};function W_(t){t.selectAll(".tooltip-crosshairs").each(function(){this.hide()})}function U_(t){t.selectAll(".tooltip-markers").each(function(){this.hide()})}function Y_(t){t.selectAll(".tooltip").each(function(){this.hide()}),W_(t),U_(t)}function q_(t,e,n={}){const{transientLayer:r,coordinate:i}=t;var o,a;e?(t=n.follow,n=I(n,["follow"]),{x:e,y:o,items:a}=e,t=function(t,e,n){let r,i;var o,a,s,{type:n="y",line:l={lineDash:[4,4],lineWidth:1},text:u=!1}=n;return zg(t)?(o=Z1(a=t.getCenter(),e),i={id:"circle-y",center:a,defaultRadius:o,type:"circle",text:u,lineStyle:l},r={id:"line-x",startPos:[a[0],a[1]],endPos:e,text:u,lineStyle:l}):({x:o,y:a,width:t,height:s}=t.getOptions(),r={id:"line-x",startPos:[o,e[1]],endPos:[o+t,e[1]],text:u,lineStyle:l},i={id:"line-y",startPos:[e[0],a],endPos:[e[0],a+s],text:u,lineStyle:l}),"x"===n?[r]:"xy"===n?[r,i]:[i]}(i,t?[e,o]:[a[0].x,a[0].y],n),r.selectAll(".tooltip-crosshairs").data(t,(t,e)=>e).join(t=>t.append(t=>{var e=t["type"],t=I(t,["type"]);const n="circle"===e?hE:sE;return new n({className:"tooltip-crosshairs",style:t})}),t=>t.each(function(t){this.update(t),this.show()}),t=>t.remove())):W_(r)}function X_(t,e){return Object.entries(t).filter(([t])=>t.startsWith(e)).map(([,t])=>t)}function Z_(t,e){var n;return(null==(n=null==t?void 0:t.getBandWidth)?void 0:n.call(t,t.invert(e)))||0}function K_(t,e,n,r){const{shared:i,scale:u,coordinate:c}=t;var{mouseX:t,mouseY:o,selectedElements:a}=i;const s=r["defaultColor"],l=u["x"],h=a,d=h.map(t=>{const i=t["__data__"],{seriesX:o=[],seriesY:a=[],seriesTooltip:s=[],seriesTitle:l=[]}=i;var e;return o.length?o.map((t,e)=>{var[n,r]=c.map([o[e],a[e]]);return{x:n,y:r,datum:Object.assign(Object.assign({},i),{x:o[e],title:l[e],tooltip:s[e]})}}):([t,e]=function(t,e,n){const r=X_(t,"x"),i=(t=X_(t,"y"),e["x"]);return e=r.reduce((t,e)=>t+e+Z_(i,e)/2,0),n.map([e/r.length,Math.min.apply(null,t)])}(i,u,c),{x:t,y:e,datum:i})}).flat(),f=c.invert([e,n])[0],p=jg(d,({datum:{x:t}})=>Math.pow(t+Z_(l,t)/2-f,2));if(!p)return null;r=d.filter(({datum:{x:t}})=>t===p.datum.x).map(t=>{const{datum:e,x:r,y:i}=t,{color:o=s,title:a}=e;return Object.entries(e).filter(([t])=>t.startsWith("tooltip")).map(([t,e])=>{var{field:t,title:t=t}=u[t].getOptions(),n="object"==typeof e&&!(e instanceof Date);return{x:r,y:i,title:a,color:o,name:t,value:n?e.value:void 0===e?e:""+e}}).filter(({value:t})=>void 0!==t)}).flat();return r.length?{x:t,y:o,title:r[0].title,items:r}:null}H_.props={};const $_=t=>{const{showCrosshairs:w,showMarkers:k}=t,E=I(t,["showCrosshairs","showMarkers"]);return t=>{const{scale:e,coordinate:n,theme:r,selection:i,shared:o,transientLayer:a}=t;var s=e["tooltip"];if(void 0===s)Y_(a);else{var{mouseX:s,mouseY:l}=o;const v=i.select(".plot").node();var u=v.getRootNode().defaultView.getConfig().container,{x:c,y:h,width:d,height:f}=n.getOptions(),[p,y]=v.getBounds().min;const m=function(t,e,n){let r=t.select(".tooltip").node();return r||(r=new Kk({className:"tooltip",style:{container:{x:0,y:0},items:[],bounding:n,position:"bottom-right",offset:[10,10],style:{".tooltip":{"max-width":"170px"},".tooltip-title":{overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}}}}),t.append(()=>r),e.appendChild(r.HTMLTooltipElement)),r}(a,u,{x:p+c,y:y+h,width:d,height:f});u=K_(t,s-p,l-y,r);u?({title:c,items:h}=u,m.update({x:s,y:l,title:c,position:"bottom-right",offset:[14,10],items:h}),m.show()):Y_(a);{var[d,f,g={}]=[t,k?u:null,E.markers];const b=d["transientLayer"];if(f){const x=f["items"];d=x.map(t=>{var{x:t,y:e,color:n}=t;return Object.assign({cx:t,cy:e,fill:n,r:3,stroke:"#fff",lineWidth:1.5,zIndex:1},g)});b.selectAll(".tooltip-markers").data(d,(t,e)=>e).join(t=>t.append(t=>new Fh({className:"tooltip-markers",style:t})),t=>t.each(function(t){this.attr(t),this.show()}),t=>t.remove())}else U_(b)}q_(t,w?u:null,E.crosshairs)}return t}},J_=($_.props={},()=>t=>{const{shared:e,update:n}=t;var r=e["updatedOptions"];return n(r),t}),Q_=(J_.props={},t=>{const c=t["reset"];return t=>{const{shared:n,scale:e,options:r}=t,i=n["selectedElements"],o=(n.originTransform||(n.originTransform=r.marks[0].transform||[]),e)["x"],a=!!o.getBandWidth,s=i.map(t=>t.__data__.title),l=Math.min.apply(null,s),u=Math.max.apply(null,s);return n.updatedOptions=(()=>{if(c)r.marks[0].transform=n.originTransform;else if(0<s.length){const e=[...n.originTransform];var t=o.getOptions()["field"];e.push({type:"filterBy",fields:[t],callback:t=>a?s.includes(t):t>=l&&t<=u}),r.marks[0].transform=e}return r})(),t}});function tS(t,e,n){n.includes(e)?t.style.visibility=t.style.originVisibility:t.style.visibility="hidden"}Q_.props={};const eS=()=>t=>{const{shared:e,selection:n,selectionLayer:r}=t,{selectedElements:i=[]}=e,o=i.map(t=>t.__data__),a=n.selectAll(".element").each(function(){this.style.originVisibility||(this.style.originVisibility=this.style.visibility||"visible"),this.style.visibility=o.length?"hidden":this.style.originVisibility}).nodes();var s=o.length?a.map(t=>t.__data__):[];return r.selectAll(".filtered-element").data(s,(t,e)=>e).join(t=>t.append((t,e)=>a[e].cloneNode(!0)).attr("className","filtered-element").each(function(t){tS(this,t,o)}),t=>t.each(function(t){tS(this,t,o)}),t=>t.remove()),t};eS.props={};const nS=t=>{const{items:u,state:c="active"}=t;return t=>{const{shared:e,selection:n}=t;if(u.includes("legendItem")){const{selectedLegendItems:o=[]}=e,a=n.select(".category-legend").node();if("highlight"===c){var r=a;var i=o;const s=(null==r?void 0:r.getItemsStates())||[];i.length?(s.forEach(({id:t})=>r.setItemState(t,"inactive",!0)),i.forEach(t=>t.setState("inactive",!1))):s.forEach(({id:t})=>r.setItemState(t,"inactive",!1))}else{const l=(null===a||void 0===a?void 0:a.getItemsStates())||[];l.forEach(({id:t})=>a.setItemState(t,c,!1)),o.forEach(t=>t.setState(c,!0))}}return t}},rS=(nS.props={},y=>t=>{const{event:e,selection:n,shared:r,options:i}=t;var{updatedOptions:o={}}=r,{offsetX:a,offsetY:s}=e;const l=n.select(".main").node();var{min:[u,c],max:[h,d]}=l.getBounds();if(a<u||h<a||(s<c||d<s))r.updatedOptions=C({},i);else{const f=a-u,p=s-c;r.updatedOptions=C(o,(()=>{const{coordinate:t=[]}=i;var e=t.findIndex(t=>"fisheye"===t.type);if(-1===e)return Object.assign(Object.assign({},i),{coordinate:[...t,{type:"cartesian"},Object.assign(Object.assign({type:"fisheye"},y),{focusX:f,focusY:p})]});{var n=t[e],n=Object.assign(Object.assign(Object.assign({},n),y),{focusX:f,focusY:p});const r=[...t];return r.splice(e,1,n),Object.assign(Object.assign({},i),{coordinate:r})}})())}return t}),iS=(rS.props={},t=>{const a=t["cursor"];return t=>{const{selection:e,event:n}=t;var r=n["target"];const i=e.node().getRootNode().defaultView,o=i.getContextService().getDomElement();return o.style.cursor=a||(null==(r=r.style)?void 0:r.cursor),t}});iS.props={};const oS={n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",se:"nwse-resize",ne:"nesw-resize",sw:"nesw-resize"};const aS=t=>{const{maskType:l,fill:u="#C5D4EB",fillOpacity:c=.3}=t;return t=>{const{shared:e,transientLayer:n}=t,{regions:r=[],points:i=[]}=e,o="polygon"===l?i:r.map(t=>{var{x1:t,y1:e,x2:n,y2:r}=t;return[[t,e],[n,e],[n,r],[t,r]]});var a=o.map((t,e)=>({draggable:!0,d:sb(e1(),t).toString(),fill:u,fillOpacity:c,stroke:u,lineWidth:.5,points:t,cursor:"move",index:e}));n.selectAll(".mask").data(a,(t,e)=>e).join(t=>t.append(t=>new Zh({className:"mask",style:t})),t=>t.each(function(t){this.attr(t),this.dispatchEvent(new Th("maskChange"))}),t=>t.remove());const s="polygon"===(a=l)?[]:"rectX"===a?["w","e"]:"rectY"===a?["n","s"]:["n","e","s","w","ne","se","sw","nw"];a=r.map((t,e)=>{const{x1:n,y1:r,x2:i,y2:o}=t;return s.map(t=>({draggable:!0,x:t.includes("e")?i-3:n-3,y:t.includes("s")?o-3:r-3,width:"n"===t||"s"===t?i-n+6:6,height:"e"===t||"w"===t?o-r+6:6,className:"handle handle-"+t,fill:"transparent",type:t,cursor:oS[t],index:e}))}).flat();return n.selectAll(".handle").data(a,(t,e)=>e).join(t=>t.append(t=>{var e=t["className"],t=I(t,["className"]);return new ed({className:e,style:t})}),t=>t.each(function(t){this.attr(t)}),t=>t.remove()),t}},sS=(aS.props={},p_({render(t,e){var{text:t,textStyle:n,fill:r,stroke:i,padding:o=[],radius:a}=t,[o,s=o,l=o,u=s]=o;const c=y_(e,".button-text","text").attr("className","button-text").style("x",u).style("y",o+(n.fontSize||12)/2).style("fontSize",12).style("textAlign","end").style("textBaseline","middle").style("fill","#3080d0").style("text",t).style("z-index",1).call(ab,n).node();var{min:t,halfExtents:n}=c.getLocalBounds(),h=2*n[0],n=2*n[1];y_(e,".button-rect","rect").attr("className","button-rect").style("x",t[0]-u).style("y",t[1]-o).style("width",h+u+s).style("height",n+o+l).style("radius",a).style("fill",r).style("stroke",i).style("z-index",0)}}));const lS=t=>{const{hide:o,fill:a="#f7f7f7",stroke:s="#ccc",padding:l=[4,5,4,5],text:u="Reset",radius:c=4,textStyle:h={},position:d}=t;return t=>{const{transientLayer:e,coordinate:n}=t;var r={text:u,fill:a,stroke:s,textStyle:h,padding:l,radius:c},i=function(t,e,n){var{x:e,y:r,width:i}=e.getOptions(),[n,n=n]=n,o=[8,4];return"top-left"===t?{x:e+o[0],y:r+o[1],textStyle:{textAlign:"start"}}:{x:e+i-o[0]-n,y:r+o[1],textStyle:{textAlign:"end"}}}(d,n,l),r=C({},r,i);return e.selectAll(".button").data(o?[]:[r],(t,e)=>e).join(t=>t.append(t=>new sS({className:"button",style:t})),t=>t.each(function(t){this.update(t)}),t=>t.remove()),t}},uS=(lS.props={},{selection:1,n:0,e:1,s:0,w:-1,nw:-1,ne:1,se:1,sw:-1}),cS={selection:1,n:-1,e:0,s:1,w:0,nw:-1,ne:-1,se:1,sw:1},hS=()=>t=>{const{shared:i,event:e}=t,{target:o,offsetX:n,offsetY:r}=e;var[a=n,s=r]=i.currentPoint||[];if(o){const u=n-a,c=r-s;a=o.style["index"];if(2<=(null==(s=i.points[a])?void 0:s.length)&&0<=a){const h=i.points[a];if(o.className.includes("handle")){var s=o.style["type"],l=uS[s],s=cS[s];let[t,e]=rp(h),[n,r]=ip(h);l<0&&(n=Math.max(t+=u,n)),0<l&&(t=Math.min(t,n+=u)),s<0&&(r=Math.max(e+=c,r)),0<s&&(e=Math.min(e,r+=c)),i.points[a]=[[t,e],[n,r]]}else i.points[a]=h.map(([t,e])=>[t+u,e+c])}}return t},dS=(hS.props={},t=>{const{clear:f,fill:p="#CCD6EC",fillOpacity:y=.3}=t;return t=>{const{coordinate:n,event:e,scale:r,selection:i,transientLayer:o}=t;if(!zg(n)){const c=r.x,h=i.select(".plot").node();var[a,s]=h.getBounds().min,{offsetX:l,offsetY:u}=e,[l]=n.invert([l-a,u-s]);const d=[];a=I_(L_(i),c,l);if(!f&&a){u=a.__data__["x"],s=c.invert(u);let t=.01,e=.01;c.getBandWidth&&(l=c.getBandWidth(s),a=(c.getStep(s)-l)/2,t=a,e=l+a);var[s,l]=n.map([u-t,0]),[a,u]=n.map([u+e,1]);d.push({x:s,y:l,width:a-s,height:u-l})}return o.style("zIndex",-1).selectAll(".active-region").data(d,(t,e)=>e).join(t=>t.append("rect").attr("className","active-region").style("fill",p).style("fillOpacity",y).each(function(t){this.attr(t)}),t=>t.each(function(t){this.attr(t)}),t=>t.remove()),t}}}),fS=(dS.props={},t=>{const i=t["tip"];return t=>{const{shared:e,event:n}=t;var r=n["target"];return e.tip=null!==i&&void 0!==i?i:r.style.tip,t}}),pS=(fS.props={},(t="",e="")=>`<div style="
|
|
8
|
+
background-color:rgba(0,0,0,0.75);color:#fff;width:max-content;padding:4px;font-size:12px;border-radius:2.5px;
|
|
9
|
+
box-shadow:0 3px 6px -4px rgba(0,0,0,0.12), 0 6px 16px 0 rgba(0,0,0,0.08), 0 9px 28px 8px rgba(0,0,0,0.05);${e||""}
|
|
10
|
+
">${t||""}</div>`),yS=(y={})=>{const g=y["htmlStyle"];return t=>{const{transientLayer:e,selection:n,shared:r}=t;var{mouseX:i,mouseY:o,tip:a}=r;const s=n.select(".plot").node();var[l,u]=s.getBounds().min,[c,h]=[8,8];let d=i-l+c,f=o-u+h;void 0!==y.x&&(d=y.x-l),void 0!==y.y&&(f=y.y-u);const p=e.node();return a?y_(p,".tip-popover",()=>new od({className:"tip-popover",style:{innerHTML:pS("",g)}})).style("x",d).style("y",f).style("innerHTML",pS(a,g)):null!=(i=p.querySelector(".tip-popover"))&&i.remove(),t}},gS=(yS.props={},()=>({actions:[{action:"enter",events:["plot:mouseenter"]},{action:"hover",events:["plot:mousemove"]},{action:"leave",events:["plot:mouseleave"]}]})),vS=()=>({actions:[{action:"enter",events:["plot:touchstart"]},{action:"hover",events:["plot:touchmove"]},{action:"leave",events:["plot:touchend"]}]});function mS(o,t={"action.surfacePointSelection":C_,"action.elementSelection":R_,"action.recordState":j_,"action.recordPoint":B_,"action.recordCurrentPoint":F_,"action.recordRegion":z_,"action.activeElement":V_,"action.highlightElement":H_,"action.filterElement":eS,"action.legendItemSelection":D_,"action.triggerInfoSelection":N_,"action.setItemState":nS,"action.tooltip":$_,"action.fisheyeFocus":rS,"action.plot":J_,"action.filter":Q_,"action.cursor":iS,"action.mask":aS,"action.button":lS,"action.move":hS,"action.activeRegion":dS,"action.recordTip":fS,"action.poptip":yS,"interactor.mousePosition":gS,"interactor.touchPosition":vS}){const[a]=bS("interactor",t),[g]=bS("action",t);return t=>{const{start:e=[],end:n=[],interactors:r=[]}=o(t),p=[...e,...n],i=r.map(a),y=Tg(i.flatMap(({actions:t})=>t.flatMap(({action:e,events:t})=>t.map(t=>[t,e]))),t=>t[1]);return(t,e)=>{const n=function(t,e){const{view:n,update:r,container:i,options:o}=t,a=ib(i),s=a.select(".plot").append("g").attr("className","selection").style("fill","transparent"),l=a.select(".plot").append("g").attr("className","transient").style("fill","transparent");return Object.assign(Object.assign({},n),{update:r,options:o,selection:a,selectionLayer:s,transientLayer:l,viewInstances:e,shared:{}})}(t,e),r=n["selection"];for(const{trigger:l,isEnable:u=()=>!0,action:c,throttle:h}of p){var i,o=[c].flat(1).map(t=>"object"==typeof t?t:{type:t}).map(g);const d=h?t=>Sp(t,h.wait,h):t=>t,f=d(Q1(o));for([i]of y.get(l)||[[l]]){var[a,s]=i.includes(":")?i.split(":"):[null,i];(a?r.selectAll("."+a):r).on(s,t=>{t=Object.assign({event:t},n);u(t)&&f(t)})}}}}}function bS(e,n){const r=t=>{if("string"!=typeof t)return t;t=e+"."+t;return n[t]||tb("Unknown Component: "+t)};return[t=>{var e=t["type"],t=I(t,["type"]);return r(e)(Object.assign({},t))},r]}const xS=mS(t=>({interactors:[{type:"mousePosition"},{type:"touchPosition"}],start:[{trigger:"hover",action:[{type:"elementSelection"},Object.assign({type:"activeElement"},t)]}],end:[{trigger:"leave",action:[{type:"elementSelection"},Object.assign({type:"activeElement"},t)]}]}));xS.props={};const wS=mS((t={})=>{var{singleMode:e=!1}=t;return{start:[{trigger:"plot:pointerdown",action:[{type:"elementSelection",multiple:!e,toggle:!0},Object.assign({type:"activeElement",border:2},t)]}]}});wS.props={};const kS=mS(t=>({interactors:[{type:"mousePosition"},{type:"touchPosition"}],start:[{trigger:"hover",action:[{type:"surfacePointSelection"},{type:"elementSelection",trigger:null!=t&&t.shared?"axis":"item"},Object.assign({type:"tooltip"},t)],throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"leave",action:[{type:"elementSelection",clear:!0},Object.assign({type:"tooltip",hide:!0},t)]}]}));kS.props={};const ES=mS(t=>({interactors:[{type:"mousePosition"},{type:"touchPosition"}],start:[{trigger:"hover",throttle:{wait:50,leading:!0,trailing:!1},action:[Object.assign({type:"fisheyeFocus"},t),{type:"plot"}]}],end:[{trigger:"leave",action:[Object.assign({type:"fisheyeFocus"},t),{type:"plot"}]}]}));ES.props={};const _S=mS(t=>({start:[{trigger:"plot:pointermove",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t)]}],end:[{trigger:"plot:pointerleave",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t)]}]}));_S.props={};const SS=mS(t=>({start:[{trigger:"plot:pointermove",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t),{type:"legendItemSelection",from:"selectedElements"},{type:"setItemState",items:["legendItem"],state:"highlight"}]}],end:[{trigger:"plot:pointerleave",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t),{type:"legendItemSelection",from:"selectedElements"},{type:"setItemState",items:["legendItem"],state:"highlight"}]}]}));SS.props={};const MS=mS(t=>({start:[{trigger:"plot:pointermove",action:[{type:"elementSelection",filterBy:"x"},Object.assign({type:"highlightElement"},t)]}],end:[{trigger:"plot:pointerleave",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t)]}]}));MS.props={};const TS=mS(t=>({start:[{trigger:"plot:pointermove",action:[{type:"elementSelection",filterBy:"color"},Object.assign({type:"highlightElement"},t)]}],end:[{trigger:"plot:pointerleave",action:[{type:"elementSelection"},Object.assign({type:"highlightElement"},t)]}]}));TS.props={};const OS=mS(t=>({start:[{trigger:"legend-item:pointermove",action:[{type:"triggerInfoSelection"},{type:"legendItemSelection",trigger:"triggerInfo"},{type:"setItemState",items:"legendItem",state:"active"},{type:"elementSelection",trigger:"triggerInfo"},{type:"activeElement"}]}],end:[{trigger:"legend-item:pointerleave",action:[{type:"triggerInfoSelection"},{type:"legendItemSelection",trigger:"triggerInfo"},{type:"setItemState",items:"legendItem",state:"active"},{type:"elementSelection",trigger:"triggerInfo"},{type:"activeElement"}]}]}));OS.props={};const PS=mS(t=>({start:[{trigger:"legend-item:pointermove",action:[{type:"triggerInfoSelection"},{type:"legendItemSelection",trigger:"triggerInfo"},{type:"setItemState",items:"legendItem",state:"highlight"},{type:"elementSelection",trigger:"triggerInfo"},{type:"highlightElement"}]}],end:[{trigger:"legend-item:pointerleave",action:[{type:"triggerInfoSelection"},{type:"legendItemSelection",trigger:"triggerInfo"},{type:"setItemState",items:"legendItem",state:"highlight"},{type:"elementSelection",trigger:"triggerInfo"},{type:"highlightElement"}]}]}));function AS(t){var t=t["event"],t=t["target"];return t&&(null==(t=t.className)?void 0:t.includes("button"))}PS.props={};const CS=mS(t=>{var t=t["brushType"],e="polygon"===t?"polygon":"rect",n="rectX"===t?"x":"rectY"===t?"y":"";return{start:[{trigger:"plot:pointermove",isEnable:t=>!AS(t),action:[{type:"cursor",cursor:"crosshair"}]},{trigger:"plot:pointermove",isEnable:t=>AS(t),action:[{type:"cursor",cursor:"pointer"},{type:"button"}]},{trigger:"plot:pointermove",isEnable:t=>"filtered"===t.shared.currentState&&!AS(t),action:[{type:"button",fill:"#f7f7f7"}]},{trigger:"plot:pointerdown",isEnable:t=>!AS(t),action:[{type:"recordPoint",clear:!0},{type:"recordPoint",start:!0},{type:"recordRegion",dim:n},{type:"recordState",state:"brushing"}]},{trigger:"plot:pointermove",isEnable:t=>"brushing"===t.shared.currentState,action:[{type:"recordPoint"},{type:"recordRegion",dim:n},{type:"mask",maskType:t}]},{trigger:"plot:maskChange",action:[{type:"elementSelection",trigger:e+"-mask"},{type:"highlightElement"}]},{trigger:"plot:pointerup",isEnable:t=>!AS(t),action:[{type:"recordState",state:null},{type:"elementSelection",trigger:e+"-mask"},{type:"filter"},{type:"plot"},{type:"recordState",state:"filtered"},{type:"recordPoint",clear:!0},{type:"recordRegion"},{type:"mask"},{type:"elementSelection",trigger:e+"-mask"},{type:"highlightElement"},{type:"button"}]},{trigger:"plot:click",isEnable:t=>AS(t),action:[{type:"button",hide:!0},{type:"filter",reset:!0},{type:"plot"},{type:"recordState",state:null}]}],end:[{trigger:"plot:pointerleave",action:[{type:"cursor",cursor:"default"}]}]}});function NS(t){var t=t["event"],t=t["target"];return t&&(null==(t=t.className)?void 0:t.includes("mask"))}function LS(t){var t=t["event"],t=t["target"];return t&&(null==(t=t.className)?void 0:t.includes("handle"))}function IS(t){return!NS(t)&&!LS(t)}function RS(t){return NS(t)||LS(t)}CS.props={};const DS=mS(t=>{var{brushType:t,multiple:e}=t,n="polygon"===t?"polygon":"rect";const r="rectX"===t?"x":"rectY"===t?"y":"";return{start:[{trigger:"plot:pointermove",isEnable:t=>IS(t),action:[{type:"cursor",cursor:"crosshair"}]},{trigger:"plot:pointermove",isEnable:t=>!IS(t),action:[{type:"cursor"}]},{trigger:"plot:pointerdown",isEnable:t=>IS(t),action:[e?null:{type:"recordPoint",clear:!0},{type:"recordPoint",start:!0},{type:"recordRegion",dim:r},{type:"recordState",state:"brushing"}].filter(t=>!!t)},{trigger:"plot:pointermove",isEnable:t=>"brushing"===t.shared.currentState&&!NS(t),action:[{type:"recordPoint"},{type:"recordRegion",dim:r},{type:"mask",maskType:t}]},{trigger:"plot:maskChange",action:[{type:"elementSelection",trigger:n+"-mask"},{type:"highlightElement"}]},{trigger:"plot:pointerup",isEnable:t=>"brushing"===t.shared.currentState,action:[{type:"recordState",state:null}]},{trigger:"plot:dragstart",isEnable:t=>RS(t),action:[{type:"recordCurrentPoint"}]},{trigger:"plot:drag",isEnable:t=>RS(t)&&t.shared.currentPoint,action:[{type:"move"},{type:"recordRegion",dim:r},{type:"mask",maskType:t},{type:"recordCurrentPoint"}]},{trigger:"plot:dragend",isEnable:t=>RS(t),action:[{type:"recordCurrentPoint",clear:!0}]}],end:[{trigger:"plot:pointerleave",action:[{type:"cursor",cursor:"default"}]},{trigger:"plot:click",isEnable:t=>2===t.event.detail&&!NS(t),action:[{type:"recordPoint",clear:!0},{type:"recordRegion"},{type:"mask"},{type:"elementSelection",trigger:n+"-mask"},{type:"highlightElement"}]}]}});DS.props={};const jS=mS(t=>{var t=t["brushType"],e="polygon"===t?"polygon":"rect",n="rectX"===t?"x":"rectY"===t?"y":"";return{start:[{trigger:"plot:pointerenter",action:[{type:"cursor",cursor:"crosshair"}]},{trigger:"plot:pointerdown",action:[{type:"recordPoint",clear:!0},{type:"recordPoint",start:!0},{type:"recordRegion",dim:n},{type:"recordState",state:"brushing"}]},{trigger:"plot:pointermove",isEnable:t=>"brushing"===t.shared.currentState,action:[{type:"recordPoint"},{type:"recordRegion",dim:n},{type:"mask",maskType:t}]},{trigger:"plot:maskChange",action:[{type:"elementSelection",trigger:e+"-mask"},{type:"highlightElement"}]},{trigger:"plot:pointerup",action:[{type:"recordState",state:null},{type:"elementSelection",trigger:e+"-mask"},{type:"filterElement"},{type:"highlightElement",clear:!0},{type:"recordPoint",clear:!0},{type:"recordRegion"},{type:"mask"}]}],end:[{trigger:"plot:pointerleave",action:[{type:"cursor",cursor:"default"}]}]}});jS.props={};const BS=mS((t={})=>({start:[{trigger:"plot:mousemove",action:[Object.assign({type:"activeRegion"},t)]},{trigger:"plot:mouseleave",action:[{type:"activeRegion",clear:!0}]}]}));BS.props={};const FS=mS(t=>({start:[{trigger:"mousemove",throttle:{wait:50,leading:!0,trailing:!1},action:[{type:"surfacePointSelection"},{type:"recordTip"},Object.assign({type:"poptip"},t)]}]})),zS=(FS.props={},()=>t=>{const e=t["children"];if(!Array.isArray(e))return[];const{x:n=0,y:r=0,width:i,height:o,data:a}=t;return e.map(t=>{var{data:e=a}=t,t=I(t,["data"]);return Object.assign(Object.assign({},t),{data:e,x:n,y:r,width:i,height:o})})}),VS=(zS.props={},()=>e=>{const n=e["children"];if(!Array.isArray(n))return[];const{direction:t="row",ratio:r=n.map(()=>1),padding:i=0,data:o}=e;var[a,s,l,u]="col"===t?["y","height","width","x"]:["x","width","height","y"];const c=r.reduce((t,e)=>t+e),h=e[s]-i*(n.length-1);var d=r.map(t=>h*(t/c));const f=[];let p=e[a]||0;for(let t=0;t<d.length;t+=1){var y=n[t],{data:g=o}=y,y=I(y,["data"]);f.push(Object.assign({[a]:p,[s]:d[t],[u]:e[u]||0,[l]:e[l],data:g},y)),p+=d[t]+i}return f}),GS=(VS.props={},()=>t=>{const e=t["children"],n=I(t,["children"]);if(!Array.isArray(e))return[];const{data:r,scale:i={}}=n,o=I(n,["data","scale"]);t=e.map(t=>{var{data:e=r,scale:n}=t,t=I(t,["data","scale"]);return Object.assign({data:e,scale:C({},i,n)},t)});return[Object.assign(Object.assign({},o),{marks:t,type:"standardView"})]}),HS=(GS.props={},()=>t=>{var{width:e,height:n,paddingLeft:r,paddingRight:i,paddingTop:o,paddingBottom:a,data:s,coordinate:l,theme:u,component:c,interaction:h,x:d,y:f,key:p,frame:y,title:g}=t,t=I(t,["width","height","paddingLeft","paddingRight","paddingTop","paddingBottom","data","coordinate","theme","component","interaction","x","y","key","frame","title"]);return[{type:"standardView",x:d,y:f,key:p,width:e,height:n,paddingLeft:r,paddingRight:i,paddingTop:o,paddingBottom:a,theme:u,coordinate:l,component:c,interaction:h,frame:y,title:g,marks:[Object.assign(Object.assign({},t),{key:p+"-0",data:s})]}]});function WS(t){return t.map((t,e)=>e)}function US(n){return(t,...e)=>C({},n(t,...e),t)}function YS(n){return(t,...e)=>C({},t,n(t,...e))}HS.props={};const qS=US(t=>{const{encode:e,data:i,scale:o,shareSize:a=!1}=t;var{x:t,y:n}=e,r=(e,t)=>{if(void 0===e||!a)return{};const n=Tg(i,t=>t[e]),r=(null==(t=null===o||void 0===o?void 0:o[t])?void 0:t.domain)||Array.from(n.keys());t=r.map(t=>n.has(t)?n.get(t).length:1);return{domain:r,flex:t}};return{scale:{x:Object.assign(Object.assign({paddingOuter:0,guide:void 0===t?null:{position:"top"}},void 0===t&&{paddingInner:0}),r(t,"x")),y:Object.assign(Object.assign({range:[0,1],paddingOuter:0,guide:void 0===n?null:{position:"right"}},void 0===n&&{paddingInner:0}),r(n,"y"))}}}),XS=US(t=>{const{data:e,scale:n}=t,r=[t];let i,o;for(;r.length;){const{children:l,encode:u={},scale:n={}}=r.shift();var a=u["color"],s=n["color"];void 0!==a&&(i=a),void 0!==s&&(o=s),Array.isArray(l)&&r.push(...l)}var t=Object.assign({},o);o&&(o.guide=null);return{encode:{color:i},scale:{color:C({},t,{domain:void 0!==(t=null==(t=null===n||void 0===n?void 0:n.color)?void 0:t.domain)?t:void 0!==i?Array.from(new Set(e.map(t=>t[i]))):void 0,field:i,type:"ordinal"})}}}),ZS=US(()=>({animate:{enter:{type:"fadeIn"}}})),KS=YS(()=>({frame:!1,encode:{shape:"hollowRect"},style:{lineWidth:0}})),$S=YS(()=>({type:"grid"})),JS=YS(u=>{var{transform:t=[]}=u;return{transform:[...t,{type:"connector",callback:()=>{const{data:t,encode:e}=u,{x:n,y:r}=e,i=n?Array.from(new Set(t.map(t=>t[n]))):[],o=r?Array.from(new Set(t.map(t=>t[r]))):[];if(i.length&&o.length){const a=[];for(const s of i)for(const l of o)a.push({[n]:s,[r]:l});return a}return i.length?i.map(t=>({[n]:t})):o.length?o.map(t=>({[r]:t})):void 0}}]}}),QS=YS((t,d=function(t){t=t.points;return $1(t)},w=function(o){return(t,e)=>{var{rowIndex:t,rowValuesLength:n,columnIndex:r,columnValuesLength:i}=t;if(t!==n-1)return tM(o,e);t=e.length?void 0:null;return C({title:r===i-1&&void 0,grid:t},o)}},k=function(r){return(t,e)=>{var{rowIndex:t,columnIndex:n}=t;if(0!==n)return tM(r,e);n=e.length?void 0:null;return C({title:0===t&&void 0,grid:n},r)}},E={})=>{const{data:_,encode:e,children:f,scale:n,x:S=0,y:M=0,shareData:T=!1}=t,{x:O,y:P}=e;t=n.color;const A=t["domain"];return{children:(t,e,n)=>{const{x:r,y:i}=e,{paddingLeft:p,paddingTop:y}=n,{domain:o,field:a}=r.getOptions(),{domain:s,field:l}=i.getOptions(),u=WS(t),g=t.map(d),c=t.map(({x:t,y:e})=>[r.invert(t),i.invert(e)]),h=c.map(([n,r])=>t=>{var{[a]:t,[l]:e}=t,t=void 0===O||t===n,e=void 0===P||e===r;return t&&e}),v=h.map(t=>_.filter(t)),m=T?Pg(v,t=>t.length):void 0,b=c.map(([t,e])=>({columnField:a,columnIndex:o.indexOf(t),columnValue:t,columnValuesLength:o.length,rowField:l,rowIndex:s.indexOf(e),rowValue:e,rowValuesLength:s.length})),x=b.map(t=>Array.isArray(f)?f:[f(t)].flat(1));return u.flatMap(s=>{const[l,u,c,h]=g[s],d=b[s],f=v[s],t=x[s];return t.map(t=>{var{scale:e,key:n,facet:r=!0}=t,t=I(t,["scale","key","facet"]),i=null==(i=null==e?void 0:e.y)?void 0:i.guide,o=null==(o=null==e?void 0:e.x)?void 0:o.guide,a={x:{tickCount:O?5:void 0},y:{tickCount:P?5:void 0}},r=r?f:_,o={x:{guide:eM(o,w)(d,r)},y:{guide:eM(i,k)(d,r)},color:{guide:null,domain:A}};return Object.assign(Object.assign({key:n+"-"+s,data:r,x:l+p+S,y:u+y+M,width:c,height:h,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!!r.length,dataDomain:m,scale:C(a,e,o)},t),E)})})}}});function tM(t,e){return e.length?C({title:!1,tickLine:null,label:null,subTickLine:null},t):null}function eM(t,e){return"function"==typeof t?t:null===t?()=>null:e(t)}const nM=()=>t=>{return[m_.of(t).call($S).call(XS).call(ZS).call(qS).call(KS).call(JS).call(QS).value()]},rM=(nM.props={},US(t=>({scale:{x:{guide:null,paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}}))),iM=YS(t=>{const{data:k,children:c,x:E=0,y:_=0}=t;return{children:(t,e,n)=>{const{x:r,y:i}=e,{paddingLeft:g,paddingTop:v}=n,{domain:o,field:a}=r.getOptions(),{domain:s,field:l}=i.getOptions(),u=WS(t),m=t.map(({points:t})=>$1(t)),b=t.map(({x:t,y:e})=>[r.invert(t),i.invert(e)]),x=b.map(([t,e])=>({columnField:a,columnIndex:o.indexOf(t),columnValue:t,columnValuesLength:o.length,rowField:l,rowIndex:s.indexOf(e),rowValue:e,rowValuesLength:s.length})),w=x.map(t=>Array.isArray(c)?c:[c(t)].flat(1));return u.flatMap(l=>{const[u,c,h,d]=m[l],[f,p]=b[l],y=x[l],t=w[l];return t.map(t=>{var n,r,{scale:e,key:i,encode:o}=t,t=I(t,["scale","key","encode"]),a=null==(a=null==e?void 0:e.y)?void 0:a.guide,s=null==(s=null==e?void 0:e.x)?void 0:s.guide,s={x:{guide:("function"==typeof(r=s)?r:null===r?()=>null:(t,e)=>{var{rowIndex:t,rowValuesLength:n}=t;if(t!==n-1)return tM(r,e)})(y,k)},y:{guide:("function"==typeof(n=a)?n:null===n?()=>null:(t,e)=>{t=t.columnIndex;if(0!==t)return tM(n,e)})(y,k)}};return Object.assign({data:k,key:i+"-"+l,x:u+g+E,y:c+v+_,width:h,height:d,paddingLeft:0,paddingRight:0,paddingTop:0,paddingBottom:0,frame:!0,scale:C({color:{guide:null},x:{guide:{title:{titleAnchor:"center"}},tickCount:5,facet:!1},y:{guide:{title:{titleAnchor:"center"}},tickCount:5,facet:!1}},e,s),encode:C({},o,{x:f,y:p})},t)})})}}}),oM=t=>{var e=t["encode"],t=I(t,["encode"]);const{position:n=[],x:r=n,y:i=[...n].reverse()}=e,o=I(e,["position","x","y"]),a=[];for(const s of[r].flat(1))for(const l of[i].flat(1))a.push({$x:s,$y:l});return Object.assign(Object.assign({},t),{data:a,encode:Object.assign(Object.assign({},o),{x:"$x",y:"$y"})})};const aM=()=>t=>{return[m_.of(t).call($S).call(XS).call(iM).call(oM).call(ZS).call(KS).call(rM).value()]},sM=US(t=>({scale:{x:{guide:{type:"axisX"},paddingOuter:0,paddingInner:.1},y:{guide:null,range:[0,1],paddingOuter:0,paddingInner:.1}}})),lM=US(t=>({coordinate:[{type:"polar"}]})),uM=t=>{var e=t["encode"],t=I(t,["encode"]),e=e["position"];return Object.assign(Object.assign({},t),{encode:{x:e}})};function cM(t){return t=>null}function hM(t){var t=t["points"],[t,e,n,r]=t,i=Z1(t,r),t=X1(t,r),r=X1(e,n),r=(e=r,r=K1(r=t),e=K1(e),r<e?e-r:2*Math.PI-(r-e)),e=1/Math.sin(r/2),i=i/(1+e),o=i*Math.sqrt(2),[n,a]=n,t=K1(t)+r/2,r=i*e;return[n+r*Math.sin(t)-o/2,a+r*Math.cos(t)-o/2,o,o]}const dM=()=>t=>{return[m_.of(t).call($S).call(uM).call(XS).call(lM).call(QS,hM,cM,cM,{frame:!1}).call(JS).call(ZS).call(KS).call(sM).value()]};const fM=()=>t=>{const{children:e=[],duration:a=1e3,iterationCount:l=1,direction:u="normal",easing:s="ease-in-out-sine"}=t,c=e.length;if(!Array.isArray(e)||0===c)return[];const n=e[0]["key"],h=e.map(t=>Object.assign(Object.assign({},t),{key:n})).map(t=>{{var e=a,n=s;const i=[t];for(;i.length;){const o=i.pop();o.animate=C({enter:{duration:e},update:{duration:e,type:"morphing",easing:n,fill:"both"},exit:{duration:e}},o.animate||{});var r=o["children"];Array.isArray(r)&&i.push(...r)}return t}});return function*(){let t=0,e;for(;"infinite"===l||t<l;){n=u,o=t,a=c,s=void 0,s=[0,a],a=[1-a,1];var[n,r]="normal"===n?s:"reverse"===n?a:"alternate"===n?o%2==0?s:a:"reverse-alternate"===n?o%2==0?a:s:void 0;for(let t=n;t<r;t+=1){var i=Math.abs(t);e!==i&&(yield h[i]),e=i}t++}var o,a,s}},pM=(fM.props={},()=>(t,e,n)=>{var r=t.length;if(0===r)return[];var{innerWidth:i,innerHeight:o}=n;let l=Math.ceil(Math.sqrt(e/(o/i))),u=i/l,c=Math.ceil(e/l),a=c*u;for(;a>o;)l+=1,u=i/l,c=Math.ceil(e/l),a=c*u;const h=o-c*u,d=c<=1?0:h/(c-1),[f,p]=c<=1?[(i-r*u)/(r-1),(o-u)/2]:[0,0];return t.map((t,e)=>{var[t,n,r,i]=$1(t),o=e%l,e=Math.floor(e/l),a=o*u,s=(c-e-1)*u+h,r=u/r,i=u/i;return`translate(${a-t+f*o}, ${s-n-d*e-p}) scale(${r}, ${i})`})});function yM(t,e){var n,r,i;const o=Object.assign({},t);for([r,i]of Object.entries(e))o[r]=null!=(n=o[r])?n:i;return o}function gM(i){return r=>F(this,void 0,void 0,function*(){var t=yield i(r),e=t["encode"],n=r["encode"];return Object.assign(Object.assign(Object.assign({},r),t),e&&{encode:Object.assign(Object.assign({},n),e)})})}function vM(t){if(null!==t)return{type:"column",value:t}}function mM(t){return{type:"constant",value:t}}function bM(t,e,n){return e&&(t.field=n?n(e.field):e.field),t}pM.props={};const xM=()=>gM(({encode:t})=>({encode:yM(t,{y1:mM(0)})}));function wM(t,e){const{columnOf:n,encode:r,data:i,I:o}=e,a=(e=t,(Array.isArray(e)?e:[e]).map(t=>[t,n(i,r[t])]).filter(([,t])=>null!==t));return Array.from(Tg(o,e=>a.map(([,t])=>t[e]).join("-")).values())}function kM(t){return Array.isArray(t)?(o=t,(i,t,e)=>(n,r)=>o.reduce((t,e)=>0!==t?t:wg(i[n][e],i[r][e]),0)):"function"==typeof t?(r=t,(e,t,n)=>PM(t=>r(e[t]))):"series"===t?SM:"value"===t?MM:"sum"===t?TM:"maxIndex"===t?OM:()=>null;var o,r}function EM(t,e){for(const n of t)n.sort(e)}function _M(t,e){return(null==e?void 0:e.domain)||Array.from(new Set(t))}function SM(t,e,n){return PM(t=>n[t])}function MM(t,e,n){return PM(t=>e[t])}function TM(t,n,e){t=WS(t);const r=Array.from(Tg(t,t=>e[+t]).entries()),i=new Map(r.map(([t,e])=>[t,e.reduce((t,e)=>t+ +n[e])]));return PM(t=>i.get(e[t]))}function OM(t,n,e){t=WS(t);const r=Array.from(Tg(t,t=>e[+t]).entries()),i=new Map(r.map(([t,e])=>[t,Ag(e,t=>n[t])]));return PM(t=>i.get(e[t]))}function PM(n){return(t,e)=>wg(n(t),n(e))}xM.props={category:"inference"};const AM=(t={})=>{const{groupBy:m="x",orderBy:b,reverse:x=!1,y:w="y"}=t;return gM(t=>{const{data:e,I:n,columnOf:r,encode:i}=t,{y:o,y1:a,series:s,color:l}=i;var u=r(e,o),c=r(e,a),h=r(e,s||l),t=wM(m,t);const d=kM(b);h=d(e,u,h);h&&EM(t,h);const f=new Array(n.length),p=new Array(n.length);for(const g of t){x&&g.reverse();var y=c?+c[g[0]]:0;let t=y,e=y;for(const v of g){const o=+u[v]-y;o<0?e=f[v]=(p[v]=e)+o:0<o?t=f[v]=(p[v]=t)+o:f[v]=p[v]=t}}return{encode:{y:vM(bM("y"===w?f:p,u)),y1:vM(bM(p,c))}}})};function CM(t){t=t.type;return"string"==typeof t&&["stackY","dodgeX","groupX"].includes(t)}AM.props={category:"statistic"};const NM=o=>gM(t=>{const{encode:e,transform:n}=t;var{x:r,y:i}=e;if(n.some(CM))return{};if(void 0===r||void 0===i)return{};r=o.series,i=r?["x","series"]:"x";return AM({groupBy:i})(t)}),LM=(NM.props={category:"inference"},()=>gM(({encode:t,columnOf:e,data:n})=>{var{x:t,title:r}=t;if(void 0!==r)return{};r=e(n,t);return{encode:{x:vM(r),title:vM(r)}}})),IM=(LM.props={category:"inference"},t=>{const a=t["channel"];return gM(({encode:t,data:i,columnOf:o})=>{var e=t["tooltip"];if(void 0!==e)return{};e=Object.entries(t).filter(([t])=>t.startsWith(a)).flatMap(([t,e])=>{var n=new RegExp(a+"(\\d*)").exec(t)[1],e=o(i,e);const r=[[t,vM(e)]];return e&&null!==e.field&&r.push(["tooltip"+n,vM(e)]),r});return{encode:Object.fromEntries(e)}})}),RM=(IM.props={category:"inference"},()=>IM({channel:"position"})),DM=(RM.props={category:"inference"},()=>IM({channel:"y"})),jM=(DM.props={category:"inference"},()=>gM(({encode:t})=>({encode:yM(t,{x:mM(0)})}))),BM=(jM.props={category:"inference"},()=>gM(({encode:t})=>({encode:yM(t,{y:mM(0)})}))),FM=(BM.props={category:"inference"},()=>gM(({encode:t})=>({encode:yM(t,{size:mM(3)})}))),zM=(FM.props={category:"inference"},()=>gM(({encode:t,columnOf:n,data:r,I:a})=>{const e=Object.entries(t).filter(([t])=>t.startsWith("x")||t.startsWith("y")||t.startsWith("position")).map(([t,e])=>[t,vM(n(r,e))]);t=e.filter(([,t])=>{t=t.value;return Array.isArray(t[0])}).flatMap(([n,t])=>{const r=[[n,new Array(a.length).fill(void 0)]],i=t["value"];for(let e=0;e<i.length;e++){var o=i[e];if(Array.isArray(o))for(let t=0;t<o.length;t++){const vM=r[t]||[""+n+t,new Array(a).fill(void 0)];vM[1][e]=o[t],r[t]=vM}}return r.map(([t,e])=>[t,vM(bM(e,i))])});return{encode:Object.fromEntries([...e,...t])}})),VM=(zM.props={category:"inference"},()=>gM(({encode:t,data:e,I:n,columnOf:r})=>{var i=t["key"],t=I(t,["key"]);if(void 0!==i)return{};const o=Object.values(t).map(t=>r(e,t));return{encode:{key:vM(n.map(e=>o.filter(t=>null!==t).map(t=>t[e]).join("-")))}}})),GM=(VM.props={category:"inference"},()=>gM(({encode:t,data:e,columnOf:n})=>{var{series:t,color:r}=t;if(void 0!==t)return{};t=n(e,r);return{encode:{color:vM(t),series:vM(t)}}})),HM=(GM.props={category:"inference"},(t={})=>{const{groupBy:p="x",reverse:y=!1,orderBy:g}=t,v=I(t,["groupBy","reverse","orderBy"]);return gM(t=>{const{data:e,encode:n,columnOf:r,I:i,scale:o}=t;var{series:a,color:s,y:l}=n,u=o["series"],l=r(e,l),a=r(e,a||s),c=_M(a,u),s=wM(p,t);const h=kM(g);u=h(e,l,a);u&&EM(s,u);const d=new Array(i.length);for(const f of s){y&&f.reverse();for(let t=0;t<f.length;t++)d[f[t]]=c[t]}return{scale:C({},o,{series:Object.assign({domain:c},v)}),encode:{series:vM(d)}}})}),WM=(HM.props={category:"statistic"},t=>{const{by:g=["x"]}=t;return gM(({encode:e,I:n,data:r,columnOf:i})=>{var{enterDuration:t,enterDelay:o}=e;if(void 0===t)return{};var a=g.map(t=>[t,i(r,e[t])]);if(0===a.length)return{};let s=[n];for(const[,f]of a){const p=[];for(const n of s){var l=Array.from(Tg(n,t=>f[t]).values());p.push(...l)}s=p}const u=i(r,t);var c=i(r,o)||new Array(n.length).fill(0);const h=new Array(n.length);for(let t=0,e=0;t<s.length;t++){const n=s[t];var d=Pg(n,t=>+u[t]);for(const y of n)h[y]=c[y]+e;e+=d}return{encode:{enterDuration:vM(u),enterDelay:vM(h)}}})});WM.props={category:"statistic"};const UM=(t={})=>{const{groupBy:p="x",basis:y="max"}=t;return gM(t=>{const{data:n,encode:e,columnOf:r,I:i}=t;var o=I(e,["x"]);const a=Object.entries(o).filter(([t])=>t.startsWith("y")).map(([t,e])=>[t,r(n,e)]),s=a.map(([t,e])=>{return[t,bM(new Array(i.length),e)]});o=wM(p,t);const l={min:Cg,max:Pg,first:t=>t[0],last:t=>t[t.length-1],mean:Rg,extent:Eg,median:Dg,sum:Bg,deviation:kg}[y]||Pg;for(const i of o){var u=i.flatMap(e=>a.map(([,t])=>+t[e])),c=l(u);for(const d of i)for(let t=0;t<a.length;t++){var[,h]=a[t];const[,f]=s[t];f[d]=+h[d]/c}}return{encode:Object.fromEntries(s.map(([t,e])=>[t,vM(e)]))}})};function YM(t,e,n){if(null===t)return[-.5,.5];t=_M(t,e);const r=new bv({domain:t,range:[0,1],padding:n});e=r.getBandWidth();return[-e/2,e/2]}UM.props={category:"statistic"};const qM=(t={})=>{const{paddingX:h=0,paddingY:d=0}=t;return gM(t=>{const{data:e,I:n,columnOf:r,encode:i,scale:o}=t;var{x:t,y:a}=i,{x:s,y:l}=o,t=r(e,t),a=r(e,a);const u=YM(t,s,h),c=YM(a,l,d);t=n.map(()=>rb(...c)),s=n.map(()=>rb(...u));return{encode:{dy:vM(t),dx:vM(s)}}})},XM=(qM.props={category:"statistic"},(t={})=>{const{padding:l=0}=t;return gM(t=>{const{data:e,I:n,columnOf:r,encode:i,scale:o}=t;var t=i["y"],a=o["y"];const s=YM(r(e,t),a,l);return{encode:{dy:vM(n.map(()=>rb(...s)))}}})}),ZM=(XM.props={category:"statistic"},(t={})=>{const{groupBy:v="x"}=t;return gM(t=>{const{I:n,data:r,encode:e,columnOf:i}=t;var o=I(e,["x"]);const a=Object.entries(o).filter(([t])=>t.startsWith("y")).map(([t,e])=>[t,i(r,e)]),s=a.map(([t,e])=>{return[t,bM(new Array(n.length),e)]});var l=wM(v,t);const u=new Array(l.length);for(let t=0;t<l.length;t++){const n=l[t];var[c,h]=Eg(n.flatMap(e=>a.map(([,t])=>+t[e])));u[t]=(c+h)/2}var d=Math.max(...u);for(let t=0;t<l.length;t++){var f=d-u[t];const n=l[t];for(const y of n)for(let t=0;t<a.length;t++){var[,p]=a[t];const[,g]=s[t];g[y]=+p[y]+f}}return{encode:Object.fromEntries(s.map(([t,e])=>[t,vM(e)]))}})});function KM(t,e){return[t[0]]}function $M(t,e){return[t[t.length-1]]}function JM(t,e){return[t[Ag(t,t=>e[t])]]}function QM(t,e){return[t[function(t,e){let n,r=-1,i=-1;if(void 0===e)for(const a of t)++i,null!=a&&(n>a||void 0===n&&a>=a)&&(n=a,r=i);else for(var o of t)null!=(o=e(o,++i,t))&&(n>o||void 0===n&&o>=o)&&(n=o,r=i);return r}(t,t=>e[t])]]}ZM.props={category:"statistic"};const tT=(t={})=>{const{groupBy:l="series"}=t,u=I(t,["groupBy"]);return gM(t=>{const{data:e,columnOf:n,encode:r}=t,i=wM(l,t);var[t,o]=Object.entries(u)[0],{[t]:t}=r;const a=n(e,t),s="function"==typeof(t=o)?t:{first:KM,last:$M,max:JM,min:QM}[t]||KM;return{I:i.flatMap(t=>s(t,a))}})},eT=(tT.props={category:"statistic"},(t={})=>{var e=t["selector"],t=I(t,["selector"]);return tT(Object.assign({x:e},t))}),nT=(eT.props={category:"statistic"},(t={})=>{var e=t["selector"],t=I(t,["selector"]);return tT(Object.assign({y:e},t))});function rT(){return[(t,e)=>Rg(t,t=>+e[t]),t=>"mean of "+t]}function iT(){return[(t,e)=>Pg(t,t=>+e[t]),t=>"max of "+t]}function oT(){return[(t,e)=>t.length,t=>"count of "+t]}function aT(){return[(t,e)=>Bg(t,t=>+e[t]),t=>"sum of "+t]}function sT(){return[(t,e)=>e[0],t=>"first of "+t]}function lT(){return[(t,e)=>e[t[t.length-1]],t=>"last of "+t]}nT.props={category:"statistic"};const uT=(t={})=>{const o=I(t,["orderBy","reverse"]);return gM(t=>{const{data:a,encode:s,columnOf:l,I:e}=t;t=s.x;const n=l(a,t),u=n?Array.from(Tg(e,t=>n[t]).values()):[e];var t=Object.entries(o).map(([t,e])=>{var{[t]:n}=s;const r=l(a,n),[i,o]=function(t){if("function"==typeof t)return[t,null];const e={mean:rT,max:iT,count:oT,first:sT,last:lT,sum:aT}[t];if(e)return e();throw new Error(`Unknown reducer: ${t}.`)}(e);return[t,vM(bM(u.map(t=>i(t,null!==r&&void 0!==r?r:a)),r,o))]}),r=u.map(t=>a[t[0]]),i=u.map(t=>n[t[0]]);return{I:WS(u),data:r,encode:Object.assign({x:vM(bM(i,n))},Object.fromEntries(t))}})};uT.props={category:"statistic"};var cT={},hT={},dT=34,fT=10,pT=13;function yT(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function gT(t){var n=Object.create(null),r=[];return t.forEach(function(t){for(var e in t)e in n||r.push(n[e]=e)}),r}function vT(t,e){var t=t+"",n=t.length;return n<e?new Array(e-n+1).join(0)+t:t}function mT(t){var e,n=t.getUTCHours(),r=t.getUTCMinutes(),i=t.getUTCSeconds(),o=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":((e=t.getUTCFullYear())<0?"-"+vT(-e,6):9999<e?"+"+vT(e,6):vT(e,4))+"-"+vT(t.getUTCMonth()+1,2)+"-"+vT(t.getUTCDate(),2)+(o?"T"+vT(n,2)+":"+vT(r,2)+":"+vT(i,2)+"."+vT(o,3)+"Z":i?"T"+vT(n,2)+":"+vT(r,2)+":"+vT(i,2)+"Z":r||n?"T"+vT(n,2)+":"+vT(r,2)+"Z":"")}function bT(r){var e=new RegExp('["'+r+"\n\r]"),h=r.charCodeAt(0);function n(r,t){var e,n=[],i=r.length,o=0,a=0,s=i<=0,l=!1;function u(){if(s)return hT;if(l)return l=!1,cT;var t,e,n=o;if(r.charCodeAt(n)===dT){for(;o++<i&&r.charCodeAt(o)!==dT||r.charCodeAt(++o)===dT;);return(t=o)>=i?s=!0:(e=r.charCodeAt(o++))===fT?l=!0:e===pT&&(l=!0,r.charCodeAt(o)===fT&&++o),r.slice(n+1,t-1).replace(/""/g,'"')}for(;o<i;){if((e=r.charCodeAt(t=o++))===fT)l=!0;else if(e===pT)l=!0,r.charCodeAt(o)===fT&&++o;else if(e!==h)continue;return r.slice(n,t)}return s=!0,r.slice(n,i)}for(r.charCodeAt(i-1)===fT&&--i,r.charCodeAt(i-1)===pT&&--i;(e=u())!==hT;){for(var c=[];e!==cT&&e!==hT;)c.push(e),e=u();t&&null==(c=t(c,a++))||n.push(c)}return n}function i(t,n){return t.map(function(e){return n.map(function(t){return a(e[t])}).join(r)})}function o(t){return t.map(a).join(r)}function a(t){return null==t?"":t instanceof Date?mT(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,o){var a,s;return(t=n(t,function(t,e){if(a)return a(t,e-1);var n,r,i;s=t,a=o?(r=o,i=yT(n=t),function(t,e){return r(i(t),e,n)}):yT(t)})).columns=s||[],t},parseRows:n,format:function(t,e){return[(e=null==e?gT(t):e).map(a).join(r)].concat(i(t,e)).join("\n")},formatBody:function(t,e){return i(t,e=null==e?gT(t):e).join("\n")},formatRows:function(t){return t.map(o).join("\n")},formatRow:o,formatValue:a}}const xT=t=>{const{url:r,callback:i=J1,format:o,delimiter:a=","}=t;return gM(()=>F(void 0,void 0,void 0,function*(){const t=yield fetch(r);var e;if("csv"===o)return e=yield t.text(),{data:bT(a).parse(e,i)};const n=yield t.json();return{data:Array.isArray(n)?n.map(i):n}}))},wT=(xT.props={category:"preprocessor"},Math.PI/180),kT=64,ET=2048;function _T(t){return t.text}function ST(){return"serif"}function MT(){return"normal"}function TT(t){return t.value}function OT(){return 90*~~(2*Math.random())}function PT(){return 1}function AT(){}function CT(t,a,r,s){if(!a.sprite){const g=t.context,v=t.ratio;g.clearRect(0,0,(kT<<5)/v,ET/v);let i=0,o=0,n=0;var l,u,c,h,e=r.length;for(--s;++s<e;){a=r[s],g.save(),g.font=a.style+" "+a.weight+" "+~~((a.size+1)/v)+"px "+a.font;let t=g.measureText(a.text+"m").width*v,e=a.size<<1;if(a.rotate?(h=Math.sin(a.rotate*wT),c=Math.cos(a.rotate*wT),l=t*c,u=t*h,c=e*c,h=e*h,t=Math.max(Math.abs(l+h),Math.abs(l-h))+31>>5<<5,e=~~Math.max(Math.abs(u+c),Math.abs(u-c))):t=t+31>>5<<5,e>n&&(n=e),i+t>=kT<<5&&(i=0,o+=n,n=0),o+e>=ET)break;g.translate((i+(t>>1))/v,(o+(e>>1))/v),a.rotate&&g.rotate(a.rotate*wT),g.fillText(a.text,0,0),a.padding&&(g.lineWidth=2*a.padding,g.strokeText(a.text,0,0)),g.restore(),a.width=t,a.height=e,a.xoff=i,a.yoff=o,a.x1=t>>1,a.y1=e>>1,a.x0=-a.x1,a.y0=-a.y1,a.hasText=!0,i+=t}const m=g.getImageData(0,0,(kT<<5)/v,ET/v).data,b=[];for(;0<=--s;)if((a=r[s]).hasText){var d=a.width,f=d>>5;let n=a.y1-a.y0;for(let t=0;t<n*f;t++)b[t]=0;if(null==(i=a.xoff))return;o=a.yoff;let r=0,t=-1;for(let e=0;e<n;e++){for(let t=0;t<d;t++){var p=f*e+(t>>5),y=m[(o+e)*(kT<<5)+(i+t)<<2]?1<<31-t%32:0;b[p]|=y,r|=y}r?t=e:(a.y0++,n--,e--,o++)}a.y1=a.y0+t,a.sprite=b.slice(0,(a.y1-a.y0)*f)}}}function NT(t){const e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function LT(t){const e=[];let n=-1;for(;++n<t;)e[n]=0;return e}function IT(){return document.createElement("canvas")}function RT(t){return"function"==typeof t?t:function(){return t}}const DT={archimedean:NT,rectangular:function(t){const n=4*t[0]/t[1];let r=0,i=0;return function(t){var e=t<0?-1:1;switch(Math.sqrt(1+4*e*t)-e&3){case 0:r+=n;break;case 1:i+=4;break;case 2:r-=n;break;default:i-=4}return[r,i]}}};function jT(){let b=[256,256],r=_T,i=ST,o=TT,y=MT,g=OT,v=PT,x=NT,w=Math.random,m=AT,e=[],n=null,k=1/0;const E=MT,_=IT,S={};return S.start=function(){const[a,s]=b,l=function(t){t.width=t.height=1;const e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2),n=(t.width=(kT<<5)/e,t.height=ET/e,t.getContext("2d"));return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(_()),u=S.board||LT((b[0]>>5)*b[1]),c=e.length,h=[],d=e.map(function(t,e,n){return t.text=r.call(this,t,e,n),t.font=i.call(this,t,e,n),t.style=E.call(this,t,e,n),t.weight=y.call(this,t,e,n),t.rotate=g.call(this,t,e,n),t.size=~~o.call(this,t,e,n),t.padding=v.call(this,t,e,n),t}).sort(function(t,e){return e.size-t.size});let f=-1,p=S.board?[{x:0,y:0},{x:a,y:s}]:void 0;function t(){for(var t=Date.now();Date.now()-t<k&&++f<c;){const r=d[f];if(r.x=a*(w()+.5)>>1,r.y=s*(w()+.5)>>1,CT(l,r,d,f),r.hasText&&function(i,t,e){const n=t.x,r=t.y,o=Math.sqrt(b[0]*b[0]+b[1]*b[1]),a=x(b),s=w()<.5?1:-1;let l,u=-s,c,h;for(;(l=a(u+=s))&&(c=~~l[0],h=~~l[1],!(Math.min(Math.abs(c),Math.abs(h))>=o));)if(t.x=n+c,t.y=r+h,!(t.x+t.x0<0||t.y+t.y0<0||t.x+t.x1>b[0]||t.y+t.y1>b[1])&&(!e||!function(t,n,r){var i=t.sprite,o=t.width>>5,e=t.x-(o<<4),a=127&e,s=32-a,l=t.y1-t.y0;let u=(t.y+t.y0)*(r>>=5)+(e>>5),c;for(let e=0;e<l;e++){for(let t=c=0;t<=o;t++)if((c<<s|(t<o?(c=i[e*o+t])>>>a:0))&n[u+t])return 1;u+=r}}(t,i,b[0]))&&(!e||function(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0<e[1].x&&t.y+t.y1>e[0].y&&t.y+t.y0<e[1].y}(t,e))){var d=t.sprite,f=t.width>>5,p=b[0]>>5,y=t.x-(f<<4),g=127&y,v=32-g,m=t.y1-t.y0;let n,r=(t.y+t.y0)*p+(y>>5);for(let e=0;e<m;e++){for(let t=n=0;t<=f;t++)i[r+t]|=n<<v|(t<f?(n=d[e*f+t])>>>g:0);r+=p}return delete t.sprite,1}return}(u,r,p)){if(m.call(null,"word",{cloud:S,word:r}),h.push(r),p){if(!S.hasImage){e=void 0;n=void 0;var e=p;var n=r;const i=e[0],o=e[1];n.x+n.x0<i.x&&(i.x=n.x+n.x0),n.y+n.y0<i.y&&(i.y=n.y+n.y0),n.x+n.x1>o.x&&(o.x=n.x+n.x1),n.y+n.y1>o.y&&(o.y=n.y+n.y1)}}else p=[{x:r.x+r.x0,y:r.y+r.y0},{x:r.x+r.x1,y:r.y+r.y1}];r.x-=b[0]>>1,r.y-=b[1]>>1}}S._tags=h,S._bounds=p,f>=c&&(S.stop(),m.call(null,"end",{cloud:S,words:h,bounds:p}))}return n&&clearInterval(n),n=setInterval(t,0),t(),S},S.stop=function(){return n&&(clearInterval(n),n=null),S},S.createMask=t=>{const e=document.createElement("canvas");var[n,r]=b;if(n&&r){var i=n>>5;const l=LT((n>>5)*r),u=(e.width=n,e.height=r,e.getContext("2d"));u.drawImage(t,0,0,t.width,t.height,0,0,n,r);var o=u.getImageData(0,0,n,r).data;for(let e=0;e<r;e++)for(let t=0;t<n;t++){var a=i*e+(t>>5),s=e*n+t<<2,s=250<=o[s]&&250<=o[1+s]&&250<=o[2+s]?1<<31-t%32:0;l[a]|=s}S.board=l,S.hasImage=!0}},S.timeInterval=function(t){k=null==t?1/0:t},S.words=function(t){e=t},S.size=function(t=[]){b=[+t[0],+t[1]]},S.text=function(t){r=RT(t)},S.font=function(t){i=RT(t)},S.fontWeight=function(t){y=RT(t)},S.rotate=function(t){g=RT(t)},S.spiral=function(t){x=DT[t]||t},S.fontSize=function(t){o=RT(t)},S.padding=function(t){v=RT(t)},S.random=function(t){w=RT(t)},S.on=function(t){m=RT(t)},S}const BT={size:[500,500],fontSize:[14,28]};function FT(r){return new Promise((t,e)=>{if(r instanceof HTMLImageElement)t(r);else if("string"==typeof r){const n=new Image;n.crossOrigin="anonymous",n.src=r,n.onload=()=>t(n),void(n.onerror=()=>{console.error(`'image ${r} load failed !!!'`),e()})}else e()})}const zT=y=>gM(({data:p})=>F(void 0,void 0,void 0,function*(){var i,o,t=Object.assign({},BT,y);const e=jT();i=e,o=t,yield{set(t,e,n){return void 0!==o[t]&&(e=e?e.call(null,o[t]):o[t],n?n.call(null,e):"function"==typeof i[t]?i[t](e):i[t]=e),this},setAsync(e,n,r){return F(this,void 0,void 0,function*(){var t;return void 0!==o[e]&&(t=n?yield n.call(null,o[e]):o[e],r?r.call(null,t):"function"==typeof i[e]?i[e](t):i[e]=t),this})}}.set("fontSize",t=>{var e=p.map(t=>t.value),n=t,t=[Cg(e),Pg(e)];if("function"==typeof n)return n;if(Array.isArray(n)){const[r,i]=n;if(!t)return()=>(i+r)/2;const[o,a]=t;return a===o?()=>(i+r)/2:({value:t})=>(i-r)/(a-o)*(t-o)+r}return()=>n}).set("font").set("fontStyle").set("fontWeight").set("padding").set("rotate").set("size").set("spiral").set("timeInterval").set("random").set("text").set("on").setAsync("imageMask",FT,e.createMask),e.words([...p]);var n=e.start();const[r,a]=t.size;t=[{x:0,y:0},{x:r,y:a}];const{_bounds:s=t,_tags:l,hasImage:u}=n,c=l.map(t=>{var{x:e,y:n}=t,t=I(t,["x","y"]);return Object.assign(Object.assign({},t),{x:e+r/2,y:n+a/2})});var[{x:n,y:t},{x:h,y:d}]=s,f={text:"",value:0,opacity:0,fontSize:0};return c.push(Object.assign(Object.assign({},f),{x:u?0:n,y:u?0:t}),Object.assign(Object.assign({},f),{x:u?r:h,y:u?a:d})),{data:c}}));zT.props={category:"preprocessor"};const VT=t=>{const{fields:o,as:n=[]}=t;return gM(({data:t})=>{if(!o||(e=o,0===Object.keys(e).length))return{data:t};var e;const[r="key",i="value"]=n;return{data:t.reduce((e,n)=>{for(let t=0;t<o.length;t++)e.push(Object.assign(Object.assign({},n),{[r]:o[t],[i]:n[o[t]]}));return e},[])}})};VT.props={category:"preprocessor"};const GT=t=>{const{fields:n=[],callback:r=function(t){return null!=t&&!Number.isNaN(t)}}=t;return gM(({data:t})=>({data:t.filter(e=>n.every(t=>r(e[t])))}))};function HT(t,e,n){return Math.min(n,Math.max(e,t))}GT.props={category:"preprocessor"};const WT=i=>gM(({data:t})=>{const{fields:e=[]}=i;let{start:n=0,end:r=t.length}=i;n=HT(n,0,t.length-1),r=HT(r,1,t.length),n>r&&([n,r]=[r,n]);return{data:t.filter((t,e)=>e>=n&&e<r).map(n=>e.reduce((t,e)=>(e in n&&(t[e]=n[e]),t),{}))}}),UT=(WT.props={category:"preprocessor"},t=>{t=t.fields;return WT({fields:t})});UT.props={category:"preprocessor"};const YT=t=>{const r=t["map"];return gM(({data:t})=>{if(!r||(e=r,0===Object.keys(e).length))return t;var e;return{data:t.map(t=>Object.entries(t).reduce((t,[e,n])=>(t[r[e]||e]=n,t),{}))}})},qT=(YT.props={category:"preprocessor"},t=>{const{fields:i=[],order:r="ASC"}=t;return gM(({data:t})=>{const n=(n,r)=>i.reduce((t,e)=>0!==t?t:n[e]<r[e]?-1:+(n[e]!==r[e]),0);var e="ASC"===r?n:(t,e)=>n(e,t);return{data:[...t].sort(e)}})});function XT(t){return function(){return t}}function ZT(t){return t[0]}function KT(t){return t[1]}function $T(){this._=null}function JT(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function QT(t,e){var n=e,e=e.R,r=n.U;r?r.L===n?r.L=e:r.R=e:t._=e,e.U=r,n.U=e,n.R=e.L,n.R&&(n.R.U=n),e.L=n}function tO(t,e){var n=e,e=e.L,r=n.U;r?r.L===n?r.L=e:r.R=e:t._=e,e.U=r,n.U=e,n.L=e.R,n.L&&(n.L.U=n),e.R=n}function eO(t){for(;t.L;)t=t.L;return t}function nO(t,e,n,r){var i=[null,null],o=kO.push(i)-1;return i.left=t,i.right=e,n&&iO(i,t,e,n),r&&iO(i,e,t,r),xO[t.index].halfedges.push(o),xO[e.index].halfedges.push(o),i}function rO(t,e,n){e=[e,n];return e.left=t,e}function iO(t,e,n,r){t[0]||t[1]?t.left===n?t[1]=r:t[0]=r:(t[0]=r,t.left=e,t.right=n)}function oO(t,e,n,r){for(var i,o=kO.length;o--;)(function(t,e,n,r,i){var o=t[1];if(!o){var a,s=t[0],l=t.left,u=t.right,c=l[0],l=l[1],h=u[0],u=u[1],d=(c+h)/2;if(u===l){if(d<e||r<=d)return;if(h<c){if(s){if(s[1]>=i)return}else s=[d,n];o=[d,i]}else{if(s){if(s[1]<n)return}else s=[d,i];o=[d,n]}}else if(d=(l+u)/2-(a=(c-h)/(u-l))*d,a<-1||1<a)if(h<c){if(s){if(s[1]>=i)return}else s=[(n-d)/a,n];o=[(i-d)/a,i]}else{if(s){if(s[1]<n)return}else s=[(i-d)/a,i];o=[(n-d)/a,n]}else if(l<u){if(s){if(s[0]>=r)return}else s=[e,a*e+d];o=[r,a*r+d]}else{if(s){if(s[0]<e)return}else s=[r,a*r+d];o=[e,a*e+d]}t[0]=s,t[1]=o}return 1})(i=kO[o],t,e,n,r)&&function(t,e,n,r,i){var o=t[0],a=t[1],s=o[0],o=o[1],l=0,u=1,c=a[0]-s,a=a[1]-o,e=e-s;if(c||!(0<e)){if(e/=c,c<0){if(e<l)return;e<u&&(u=e)}else if(0<c){if(u<e)return;l<e&&(l=e)}if(e=r-s,c||!(e<0)){if(e/=c,c<0){if(u<e)return;l<e&&(l=e)}else if(0<c){if(e<l)return;e<u&&(u=e)}if(e=n-o,a||!(0<e)){if(e/=a,a<0){if(e<l)return;e<u&&(u=e)}else if(0<a){if(u<e)return;l<e&&(l=e)}if(e=i-o,a||!(e<0)){if(e/=a,a<0){if(u<e)return;l<e&&(l=e)}else if(0<a){if(e<l)return;e<u&&(u=e)}return(0<l||u<1)&&(0<l&&(t[0]=[s+l*c,o+l*a]),u<1&&(t[1]=[s+u*c,o+u*a])),1}}}}}(i,t,e,n,r)&&(Math.abs(i[0][0]-i[1][0])>EO||Math.abs(i[0][1]-i[1][1])>EO)||delete kO[o]}function aO(t,e){return e[+(e.left!==t.site)]}function sO(){for(var t,e,n,r,i,o,a,s=0,l=xO.length;s<l;++s)if((t=xO[s])&&(n=(e=t.halfedges).length)){for(var u=new Array(n),c=new Array(n),h=0;h<n;++h)u[h]=h,c[h]=(r=t,i=kO[e[h]],a=o=void 0,r=r.site,o=i.left,a=i.right,r===a&&(a=o,o=r),a?Math.atan2(a[1]-o[1],a[0]-o[0]):(a=r===o?(o=i[1],i[0]):(o=i[0],i[1]),Math.atan2(o[0]-a[0],a[1]-o[1])));for(u.sort(function(t,e){return c[e]-c[t]}),h=0;h<n;++h)c[h]=e[u[h]];for(h=0;h<n;++h)e[h]=c[h]}}qT.props={category:"preprocessor"},$T.prototype={constructor:$T,insert:function(t,e){var n,r,i;if(t){if(e.P=t,e.N=t.N,t.N&&(t.N.P=e),t.N=e,t.R){for(t=t.R;t.L;)t=t.L;t.L=e}else t.R=e;n=t}else n=this._?(t=eO(this._),e.P=null,(e.N=t).P=t.L=e,t):(e.P=e.N=null,this._=e,null);for(e.L=e.R=null,e.U=n,e.C=!0,t=e;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.R&&(QT(this,n),n=(t=n).U),n.C=!1,r.C=!0,tO(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,t=r):(t===n.L&&(tO(this,n),n=(t=n).U),n.C=!1,r.C=!0,QT(this,r)),n=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var e,n,r=t.U,i=t.L,o=t.R,a=i?o?eO(o):i:o;if(r?r.L===t?r.L=a:r.R=a:this._=a,i&&o?(n=a.C,a.C=t.C,((a.L=i).U=a)!==o?(r=a.U,a.U=t.U,t=a.R,r.L=t,(a.R=o).U=a):(a.U=r,t=(r=a).R)):(n=t.C,t=a),t&&(t.U=r),!n)if(t&&t.C)t.C=!1;else{do{if(t===this._)break;if(t===r.L){if((e=r.R).C&&(e.C=!1,r.C=!0,QT(this,r),e=r.R),e.L&&e.L.C||e.R&&e.R.C){e.R&&e.R.C||(e.L.C=!1,e.C=!0,tO(this,e),e=r.R),e.C=r.C,r.C=e.R.C=!1,QT(this,r),t=this._;break}}else if((e=r.L).C&&(e.C=!1,r.C=!0,tO(this,r),e=r.L),e.L&&e.L.C||e.R&&e.R.C){e.L&&e.L.C||(e.R.C=!1,e.C=!0,QT(this,e),e=r.L),e.C=r.C,r.C=e.L.C=!1,tO(this,r),t=this._;break}}while(e.C=!0,r=(t=r).U,!t.C);t&&(t.C=!1)}}};var lO,uO=[];function cO(){JT(this),this.x=this.y=this.arc=this.site=this.cy=null}function hO(t){var e=t.P,n=t.N;if(e&&n){var e=e.site,r=t.site,n=n.site;if(e!==n){var i=r[0],o=r[1],a=e[0]-i,e=e[1]-o,s=n[0]-i,n=n[1]-o,l=2*(a*n-e*s);if(!(-_O<=l)){for(var u=a*a+e*e,c=s*s+n*n,n=(n*u-e*c)/l,e=(a*c-s*u)/l,h=uO.pop()||new cO,d=(h.arc=t,h.site=r,h.x=n+i,h.y=(h.cy=e+o)+Math.sqrt(n*n+e*e),t.circle=h,null),f=wO._;f;)if(h.y<f.y||h.y===f.y&&h.x<=f.x){if(!f.L){d=f.P;break}f=f.L}else{if(!f.R){d=f;break}f=f.R}wO.insert(d,h),d||(lO=h)}}}}function dO(t){var e=t.circle;e&&(e.P||(lO=e.N),wO.remove(e),uO.push(e),JT(e),t.circle=null)}var fO=[];function pO(){JT(this),this.edge=this.site=this.circle=null}function yO(t){var e=fO.pop()||new pO;return e.site=t,e}function gO(t){dO(t),bO.remove(t),fO.push(t),JT(t)}function vO(t){for(var e,n,r,i,o=t[0],a=t[1],s=bO._;s;)if(r=mO(s,a)-o,EO<r)s=s.L;else{if(i=o-function(t,e){var n=t.N;if(n)return mO(n,e);n=t.site;return n[1]===e?n[0]:1/0}(s,a),!(EO<i)){-EO<r?(e=s.P,n=s):-EO<i?n=(e=s).N:e=n=s;break}if(!s.R){e=s;break}s=s.R}xO[t.index]={site:t,halfedges:[]};var l,u,c,h,d,f,p,y,g,v,m=yO(t);bO.insert(e,m),(e||n)&&(e===n?(dO(e),n=yO(e.site),bO.insert(m,n),m.edge=n.edge=nO(e.site,m.site),hO(e),hO(n)):n?(dO(e),dO(n),u=(l=e.site)[0],c=l[1],h=t[0]-u,v=t[1]-c,f=(d=n.site)[0]-u,p=d[1]-c,iO(n.edge,l,d,v=[(p*(y=h*h+v*v)-v*(g=f*f+p*p))/(p=2*(h*p-v*f))+u,(h*g-f*y)/p+c]),m.edge=nO(l,t,null,v),n.edge=nO(t,d,null,v),hO(e),hO(n)):m.edge=nO(e.site,m.site))}function mO(t,e){var n=t.site,r=n[0],i=n[1],o=i-e;if(!o)return r;t=t.P;if(!t)return-1/0;t=(n=t.site)[0],n=n[1],e=n-e;if(!e)return t;var a=t-r,s=1/o-1/e,l=a/e;return s?(-l+Math.sqrt(l*l-2*s*(a*a/(-2*e)-n+e/2+i-o/2)))/s+r:(r+t)/2}var bO,xO,wO,kO,EO=1e-6,_O=1e-12;function SO(t,e){return e[1]-t[1]||e[0]-t[0]}function MO(t,e){var D,j,n,r=t.sort(SO).pop();for(kO=[],xO=new Array(t.length),bO=new $T,wO=new $T;;)if(n=lO,r&&(!n||r[1]<n.y||r[1]===n.y&&r[0]<n.x))r[0]===D&&r[1]===j||(vO(r),D=r[0],j=r[1]),r=t.pop();else{if(!n)break;y=p=f=d=h=c=u=l=s=a=o=i=void 0;for(var i=n.arc,o=i.circle,a=o.x,s=o.cy,l=[a,s],u=i.P,c=i.N,h=[i],d=(gO(i),u);d.circle&&Math.abs(a-d.circle.x)<EO&&Math.abs(s-d.circle.cy)<EO;)u=d.P,h.unshift(d),gO(d),d=u;h.unshift(d),dO(d);for(var f=c;f.circle&&Math.abs(a-f.circle.x)<EO&&Math.abs(s-f.circle.cy)<EO;)c=f.N,h.push(f),gO(f),f=c;h.push(f),dO(f);for(var p=h.length,y=1;y<p;++y)f=h[y],d=h[y-1],iO(f.edge,d.site,f.site,l);d=h[0],(f=h[p-1]).edge=nO(d.site,f.site,null,l),hO(d),hO(f)}if(sO(),e){var g,v,m,b,x,w,k,E,_,S,M=+e[0][0],T=+e[0][1],O=+e[1][0],e=+e[1][1],P=(oO(M,T,O,e),M),A=T,C=O,N=e,B=xO.length,L=!0;for(R=0;R<B;++R)if(g=xO[R]){for(v=g.site,m=(b=g.halfedges).length;m--;)kO[b[m]]||b.splice(m,1);for(m=0,x=b.length;m<x;)_=g,_=(S=(S=kO[b[m]])[+(S.left===_.site)])[0],E=S[1],w=(k=aO(g,kO[b[++m%x]]))[0],k=k[1],(Math.abs(_-w)>EO||Math.abs(E-k)>EO)&&(b.splice(m,0,kO.push(rO(v,S,Math.abs(_-P)<EO&&EO<N-E?[P,Math.abs(w-P)<EO?k:N]:Math.abs(E-N)<EO&&EO<C-_?[Math.abs(k-N)<EO?w:C,N]:Math.abs(_-C)<EO&&EO<E-A?[C,Math.abs(w-C)<EO?k:A]:Math.abs(E-A)<EO&&EO<_-P?[Math.abs(k-A)<EO?w:P,A]:null))-1),++x);x&&(L=!1)}if(L){for(var I,F=1/0,R=0,L=null;R<B;++R)(g=xO[R])&&(I=(I=(v=g.site)[0]-P)*I+(I=v[1]-A)*I)<F&&(F=I,L=g);L&&(M=[C,N],T=[C,A],L.halfedges.push(kO.push(rO(v=L.site,O=[P,A],e=[P,N]))-1,kO.push(rO(v,e,M))-1,kO.push(rO(v,M,T))-1,kO.push(rO(v,T,O))-1))}for(R=0;R<B;++R)!(g=xO[R])||g.halfedges.length||delete xO[R]}this.edges=kO,this.cells=xO,bO=wO=kO=xO=null}MO.prototype={constructor:MO,polygons:function(){var n=this.edges;return this.cells.map(function(e){var t=e.halfedges.map(function(t){return aO(e,n[t])});return t.data=e.site.data,t})},triangles:function(){var c=[],h=this.edges;return this.cells.forEach(function(t,e){if(r=(n=t.halfedges).length)for(var n,r,i,o,a=t.site,s=-1,l=h[n[r-1]],u=l.left===a?l.right:l.left;++s<r;)i=u,u=(l=h[n[s]]).left===a?l.right:l.left,i&&u&&e<i.index&&e<u.index&&(o=u,(a[0]-o[0])*(i[1]-a[1])-(a[0]-i[0])*(o[1]-a[1])<0)&&c.push([a.data,i.data,u.data])}),c},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(n,r,t){for(var e,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;for(var l=n-i.site[0],u=r-i.site[1],c=l*l+u*u;i=o.cells[e=a],a=null,i.halfedges.forEach(function(t){var t=o.edges[t],e=t.left;!(e!==i.site&&e||(e=t.right))||(t=(t=n-e[0])*t+(t=r-e[1])*t)<c&&(c=t,a=e.index)}),null!==a;);return o._found=e,null==t||c<=t*t?i.site:null}};const TO=t=>{const{fields:e,as:n,extend:r}=t,[a,s]=e,[l,u]=n;return gM(({data:t})=>{var i,o,e;function n(r){return new MO(r.map(function(t,e){var n=[Math.round(i(t,e,r)/EO)*EO,Math.round(o(t,e,r)/EO)*EO];return n.index=e,n.data=t,n}),e)}return i=ZT,o=KT,e=null,n.polygons=function(t){return n(t).polygons()},n.links=function(t){return n(t).links()},n.triangles=function(t){return n(t).triangles()},n.x=function(t){return arguments.length?(i="function"==typeof t?t:XT(+t),n):i},n.y=function(t){return arguments.length?(o="function"==typeof t?t:XT(+t),n):o},n.extent=function(t){return arguments.length?(e=null==t?null:[[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]],n):e&&[[e[0][0],e[0][1]],[e[1][0],e[1][1]]]},n.size=function(t){return arguments.length?(e=null==t?null:[[0,0],[+t[0],+t[1]]],n):e&&[e[1][0]-e[0][0],e[1][1]-e[0][1]]},{data:n.x(t=>t[a]).y(t=>t[s]).extent(r).polygons(t).map(t=>Object.assign(Object.assign({},t.data),{[l]:t.map(t=>t[0]),[u]:t.map(t=>t[1])}))}})};function OO(t){return t.target.depth}function PO(t,e){return t.sourceLinks.length?t.depth:e-1}function AO(t){return function(){return t}}function CO(t,e){return LO(t.source,e.source)||t.index-e.index}function NO(t,e){return LO(t.target,e.target)||t.index-e.index}function LO(t,e){return t.y0-e.y0}function IO(t){return t.value}function RO(t){return t.index}function DO(t){return t.nodes}function jO(t){return t.links}function BO(t,e){t=t.get(e);if(t)return t;throw new Error("missing: "+e)}function FO({nodes:t}){for(const n of t){let t=n.y0,e=t;for(const r of n.sourceLinks)r.y0=t+r.width/2,t+=r.width;for(const i of n.targetLinks)i.y1=e+i.width/2,e+=i.width}}function zO(){let b=0,x=0,w=1,k=1,E=24,_=8,S,M=RO,T=PO,O,P,A,C=DO,N=jO,L=6;function e(e){e={nodes:C(e),links:N(e)};{var{nodes:i,links:t}=e;i.forEach((t,e)=>{t.index=e,t.sourceLinks=[],t.targetLinks=[]});const f=new Map(i.map(t=>[M(t),t]));if(t.forEach((t,e)=>{t.index=e;let{source:n,target:r}=t;"object"!=typeof n&&(n=t.source=BO(f,n)),"object"!=typeof r&&(r=t.target=BO(f,r)),n.sourceLinks.push(t),r.targetLinks.push(t)}),null!=A)for(var{sourceLinks:n,targetLinks:r}of i)n.sort(A),r.sort(A)}t=e.nodes;for(const p of t)p.value=void 0===p.fixedValue?Math.max(Bg(p.sourceLinks,IO),Bg(p.targetLinks,IO)):p.fixedValue;{var o=e.nodes,a=o.length;let t=new Set(o),n=new Set,r=0;for(;t.size;){if(t.forEach(t=>{t.depth=r;for(var{target:e}of t.sourceLinks)n.add(e)}),++r>a)throw new Error("circular link");t=n,n=new Set}if(O){var s=Math.max(Pg(o,t=>t.depth)+1,0);let e;for(let t=0;t<o.length;t++)(e=o[t]).depth=O.call(null,e,s)}}{var l=(i=e.nodes).length;let t=new Set(i),n=new Set,r=0;for(;t.size;){if(t.forEach(t=>{t.height=r;for(var{source:e}of t.targetLinks)n.add(e)}),++r>l)throw new Error("circular link");t=n,n=new Set}}var u=function({nodes:t}){const e=Math.max(Pg(t,t=>t.depth)+1,0),n=(w-b-E)/(e-1),r=new Array(e).fill(0).map(()=>[]);for(const o of t){var i=Math.max(0,Math.min(e-1,Math.floor(T.call(null,o,e))));o.layer=i,o.x0=b+i*n,o.x1=o.x0+E,r[i]?r[i].push(o):r[i]=[o]}if(P)for(const a of r)a.sort(P);return r}(e),t=(S=Math.min(_,(k-x)/(Pg(u,t=>t.length)-1)),u),c=Cg(t,t=>(k-x-(t.length-1)*S)/Bg(t,IO));for(const y of t){let e=x;for(const g of y){g.y0=e,g.y1=e+g.value*c,e=g.y1+S;for(const v of g.sourceLinks)v.width=v.value*c}e=(k-e+S)/(y.length+1);for(let t=0;t<y.length;++t){const m=y[t];m.y0+=e*(t+1),m.y1+=e*(t+1)}!function(t){if(void 0===A)for(var{sourceLinks:e,targetLinks:n}of t)e.sort(NO),n.sort(CO)}(y)}for(let t=0;t<L;++t){var h=Math.pow(.99,t),d=Math.max(1-h,(t+1)/L);!function(n,r,i){for(let t=n.length,e=t-2;0<=e;--e){const l=n[e];for(const u of l){let t=0,e=0;for(var{target:o,value:a}of u.sourceLinks){a=a*(o.layer-u.layer);t+=function(t,e){let n=e.y0-(e.targetLinks.length-1)*S/2;for(var{source:r,width:i}of e.targetLinks){if(r===t)break;n+=i+S}for(var{target:o,width:a}of t.sourceLinks){if(o===e)break;n-=a}return n}(u,o)*a,e+=a}var s;0<e&&(s=(t/e-u.y0)*r,u.y0+=s,u.y1+=s,R(u))}void 0===P&&l.sort(LO),l.length&&I(l,i)}}(u,h,d),!function(n,r,i){for(let t=1,e=n.length;t<e;++t){const l=n[t];for(const u of l){let t=0,e=0;for(var{source:o,value:a}of u.targetLinks){a=a*(u.layer-o.layer);t+=function(t,e){let n=t.y0-(t.sourceLinks.length-1)*S/2;for(var{target:r,width:i}of t.sourceLinks){if(r===e)break;n+=i+S}for(var{source:o,width:a}of e.targetLinks){if(o===t)break;n-=a}return n}(o,u)*a,e+=a}var s;0<e&&(s=(t/e-u.y0)*r,u.y0+=s,u.y1+=s,R(u))}void 0===P&&l.sort(LO),l.length&&I(l,i)}}(u,h,d)}return FO(e),e}function I(t,e){var n=t.length>>1,r=t[n];o(t,r.y0-S,n-1,e),i(t,r.y1+S,1+n,e),o(t,k,t.length-1,e),i(t,x,0,e)}function i(t,e,n,r){for(;n<t.length;++n){const o=t[n];var i=(e-o.y0)*r;1e-6<i&&(o.y0+=i,o.y1+=i),e=o.y1+S}}function o(t,e,n,r){for(;0<=n;--n){const o=t[n];var i=(o.y1-e)*r;1e-6<i&&(o.y0-=i,o.y1-=i),e=o.y0-S}}function R({sourceLinks:t,targetLinks:e}){if(void 0===A){for(const{source:{sourceLinks:t}}of e)t.sort(NO);for(const{target:{targetLinks:e}}of t)e.sort(CO)}}return e.update=function(t){return FO(t),t},e.nodeId=function(t){return arguments.length?(M="function"==typeof t?t:AO(t),e):M},e.nodeAlign=function(t){return arguments.length?(T="function"==typeof t?t:AO(t),e):T},e.nodeDepth=function(t){return arguments.length?(O=t,e):O},e.nodeSort=function(t){return arguments.length?(P=t,e):P},e.nodeWidth=function(t){return arguments.length?(E=+t,e):E},e.nodePadding=function(t){return arguments.length?(_=S=+t,e):_},e.nodes=function(t){return arguments.length?(C="function"==typeof t?t:AO(t),e):C},e.links=function(t){return arguments.length?(N="function"==typeof t?t:AO(t),e):N},e.linkSort=function(t){return arguments.length?(A=t,e):A},e.size=function(t){return arguments.length?(b=x=0,w=+t[0],k=+t[1],e):[w-b,k-x]},e.extent=function(t){return arguments.length?(b=+t[0][0],w=+t[1][0],x=+t[0][1],k=+t[1][1],e):[[b,x],[w,k]]},e.iterations=function(t){return arguments.length?(L=+t,e):L},e}TO.props={category:"preprocessor"};const VO={nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodes:t=>t.nodes,links:t=>t.links,nodeSort:void 0,linkSort:void 0,iterations:6},GO={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Cg(t.sourceLinks,OO)-1:0},justify:PO};const HO=p=>gM(({data:t})=>{var{nodeId:e,nodeSort:n,nodeAlign:r,nodeWidth:i,nodePadding:o,nodeDepth:a,nodes:s,links:l,linkSort:u,iterations:c}=Object.assign({},VO,p);const h=zO().nodeSort(n).linkSort(u).links(l).nodes(s).nodeWidth(i).nodePadding(o).nodeDepth(a).nodeAlign("string"==(u=typeof(n=r))?GO[n]||PO:"function"==u?n:PO).iterations(c).extent([[0,0],[1,1]]),{nodes:d,links:f}=("function"==typeof e&&h.nodeId(e),h(t));return{data:{nodes:d.map(t=>{var{x0:e,x1:n,y0:r,y1:i}=t;return Object.assign(Object.assign({},t),{x:[e,n,n,e],y:[r,r,i,i]})}),links:f.map(t=>{var{source:e,target:n}=t,e=e.x1,n=n.x0,r=t.width/2;return Object.assign(Object.assign({},t),{x:[e,e,n,n],y:[t.y0+r,t.y0-r,t.y1+r,t.y1-r]})})}}});HO.props={category:"preprocessor"};var WO=Object.freeze({__proto__:null,weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,e){return(""+t.id).localeCompare(""+e.id)},name:function(t,e){return(""+t.name).localeCompare(""+e.name)}});const UO={y:0,thickness:.05,weight:!1,marginRatio:.1,id:t=>t.id,source:t=>t.source,target:t=>t.target,sourceWeight:t=>t.value||1,targetWeight:t=>t.value||1,sortBy:null};function YO(t){const{y:u,thickness:c,weight:h,marginRatio:d,id:f,source:p,target:y,sourceWeight:g,targetWeight:v,sortBy:m}=Object.assign(Object.assign({},UO),t);return function(t){var e=t.nodes.map(t=>Object.assign({},t)),t=t.edges.map(t=>Object.assign({},t));{var n=e,r=t;r.forEach(t=>{t.source=p(t),t.target=y(t),t.sourceWeight=g(t),t.targetWeight=v(t)});const i=Tg(r,t=>t.source),o=Tg(r,t=>t.target);n.forEach(t=>{t.id=f(t);var e=i.has(t.id)?i.get(t.id):[],n=o.has(t.id)?o.get(t.id):[];t.frequency=e.length+n.length,t.value=Bg(e,t=>t.sourceWeight)+Bg(n,t=>t.targetWeight)})}if(r=e,(n="function"==typeof m?m:WO[m])&&r.sort(n),!(n=(r=e).length))throw tb("Invalid nodes: it's empty!");if(h){const a=d/(2*n),s=r.reduce((t,e)=>t+=e.value,0);r.reduce((t,e)=>{e.weight=e.value/s,e.width=e.weight*(1-d),e.height=c;var n=a+t,r=n+e.width,i=u-c/2,o=i+c;return e.x=[n,r,r,n],e.y=[i,i,o,o],t+e.width+2*a},0)}else{const l=1/n;r.forEach((t,e)=>{t.x=(e+.5)*l,t.y=u})}return function(t,e){const r=new Map(t.map(t=>[t.id,t]));if(!h)return e.forEach(t=>{var e=p(t),n=y(t),e=r.get(e),n=r.get(n);e&&n&&(t.x=[e.x,n.x],t.y=[e.y,n.y])});e.forEach(t=>{t.x=[0,0,0,0],t.y=[u,u,u,u]});const s=Tg(e,t=>t.source),l=Tg(e,t=>t.target);t.forEach(n=>{const{width:r,value:i,id:t}=n,e=s.get(t)||[],o=l.get(t)||[];let a=0;e.map(t=>{var e=t.sourceWeight/i*r;t.x[0]=n.x[0]+a,t.x[1]=n.x[0]+a+e,a+=e}),o.forEach(t=>{var e=t.targetWeight/i*r;t.x[3]=n.x[0]+a,t.x[2]=n.x[0]+a+e,a+=e})})}(e,t),{nodes:e,edges:t}}}const qO=e=>gM(({data:t})=>({data:YO(e)(t)}));function XO(t,e){return t.parent===e.parent?1:2}function ZO(t,e){return t+e.x}function KO(t,e){return Math.max(t,e.y)}function $O(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;0<=--r;)e+=n[r].value;else e=1;t.value=e}function JO(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=tP)):void 0===e&&(e=QO);for(var n,r,i,o,a,t=new rP(t),s=[t];n=s.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;0<=o;--o)s.push(r=i[o]=new rP(i[o])),r.parent=n,r.depth=n.depth+1;return t.eachBefore(nP)}function QO(t){return t.children}function tP(t){return Array.isArray(t)?t[1]:null}function eP(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function nP(t){for(var e=0;t.height=e,(t=t.parent)&&t.height<++e;);}function rP(t){this.data=t,this.depth=this.height=0,this.parent=null}function iP(t,e){return t.parent===e.parent?1:2}function oP(t){var e=t.children;return e?e[0]:t.t}function aP(t){var e=t.children;return e?e[e.length-1]:t.t}function sP(t,e){this._=t,this.parent=null,this.children=null,this.A=null,(this.a=this).z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}qO.props={category:"preprocessor"},rP.prototype=JO.prototype={constructor:rP,count:function(){return this.eachAfter($O)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],s=[],l=-1;o=a.pop();)if(s.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=s.pop();)t.call(e,o,++l,this);return this},eachBefore:function(t,e){for(var n,r,i,o=[this],a=-1;n=o.pop();)if(t.call(e,n,++a,this),r=n.children)for(i=r.length-1;0<=i;--i)o.push(r[i]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(i){return this.eachAfter(function(t){for(var e=+i(t.data)||0,n=t.children,r=n&&n.length;0<=--r;)e+=n[r].value;t.value=e})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,n=[];return e.each(function(t){t!==e&&n.push({source:t.parent,target:t})}),n},copy:function(){return JO(this).eachBefore(eP)},[Symbol.iterator]:function*(){var t,e,n,r,i,o=[this];do{for(e=o.reverse(),o=[];t=e.pop();)if(yield t,n=t.children)for(r=0,i=n.length;r<i;++r)o.push(n[r])}while(o.length)}},sP.prototype=Object.create(rP.prototype);a=f=>d=>gM(({data:t})=>{const{field:e="value",nodeSize:n,separation:r,sortBy:i,as:o=["x","y"]}=d,[a,s]=o,l=JO(t,t=>t.children).sum(t=>t[e]).sort(i),u=f(),c=(u.size([1,1]),n&&u.nodeSize(n),r&&u.separation(r),u(l),[]),h=(l.each(t=>{t[a]=t.x,t[s]=t.y,t.name=t.data.name,c.push(t)}),l.links());return h.forEach(t=>{t[a]=[t.source[a],t.target[a]],t[s]=[t.source[s],t.target[s]]}),{data:{nodes:c,edges:h}}});const lP=a(function(){var s=XO,l=1,u=1,c=!1;function e(e){var r,i=0,t=(e.eachAfter(function(t){var e,n=t.children;n?(t.x=(e=n).reduce(ZO,0)/e.length,t.y=1+n.reduce(KO,0)):(t.x=r?i+=s(t,r):0,t.y=0,r=t)}),function(t){for(var e;e=t.children;)t=e[0];return t}(e)),n=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(e),o=t.x-s(t,n)/2,a=n.x+s(n,t)/2;return e.eachAfter(c?function(t){t.x=(t.x-e.x)*l,t.y=(e.y-t.y)*u}:function(t){t.x=(t.x-o)/(a-o)*l,t.y=(1-(e.y?t.y/e.y:1))*u})}return e.separation=function(t){return arguments.length?(s=t,e):s},e.size=function(t){return arguments.length?(c=!1,l=+t[0],u=+t[1],e):c?null:[l,u]},e.nodeSize=function(t){return arguments.length?(c=!0,l=+t[0],u=+t[1],e):c?[l,u]:null},e}),uP=(lP.props={category:"preprocessor"},a(function(){var d=iP,l=1,u=1,c=null;function e(t){var e,n,r,i,o,a,s=function(t){for(var e,n,r,i,o,a=[t=new sP(t,0)];e=a.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;0<=i;--i)a.push(n=e.children[i]=new sP(r[i],i)),n.parent=e;return(t.parent=new sP(null,0)).children=[t],t}(t);return s.eachAfter(h),s.parent.m=-s.z,s.eachBefore(f),c?t.eachBefore(p):((r=n=e=t).eachBefore(function(t){t.x<e.x&&(e=t),t.x>n.x&&(n=t),t.depth>r.depth&&(r=t)}),s=e===n?1:d(e,n)/2,i=s-e.x,o=l/(n.x+s+i),a=u/(r.depth||1),t.eachBefore(function(t){t.x=(t.x+i)*o,t.y=t.depth*a})),t}function h(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e){for(var i,o=0,a=0,s=t.children,l=s.length;0<=--l;)(i=s[l]).z+=o,i.m+=o,o+=i.s+(a+=i.c);e=(e[0].z+e[e.length-1].z)/2;r?(t.z=r.z+d(t._,r._),t.m=t.z-e):t.z=e}else r&&(t.z=r.z+d(t._,r._));t.parent.A=function(t,e,n){if(e){for(var r,i=t,o=t,a=e,s=i.parent.children[0],l=i.m,u=o.m,c=a.m,h=s.m;a=aP(a),i=oP(i),a&&i;)s=oP(s),(o=aP(o)).a=t,0<(r=a.z+c-i.z-l+d(a._,i._))&&(function(t,e,n){var r=n/(e.i-t.i);e.c-=r,e.s+=n,t.c+=r,e.z+=n,e.m+=n}(function(t,e,n){return t.a.parent===e.parent?t.a:n}(a,t,n),t,r),l+=r,u+=r),c+=a.m,l+=i.m,h+=s.m,u+=o.m;a&&!aP(o)&&(o.t=a,o.m+=c-u),i&&!oP(s)&&(s.t=i,s.m+=l-h,n=t)}return n}(t,r,t.parent.A||n[0])}function f(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function p(t){t.x*=l,t.y=t.depth*u}return e.separation=function(t){return arguments.length?(d=t,e):d},e.size=function(t){return arguments.length?(c=!1,l=+t[0],u=+t[1],e):c?null:[l,u]},e.nodeSize=function(t){return arguments.length?(c=!0,l=+t[0],u=+t[1],e):c?[l,u]:null},e})),cP=(uP.props={category:"preprocessor"},n=>gM(({data:t})=>{const e=n["callback"];return{data:e?e(t):t}}));function hP(){return{"transform.fetch":xT,"transform.sortBy":qT,"transform.filterBy":GT,"transform.pick":UT,"transform.rename":YT,"transform.subset":WT,"transform.fold":VT,"transform.wordCloud":zT,"transform.voronoi":TO,"transform.sankey":HO,"transform.arc":qO,"transform.cluster":lP,"transform.tree":uP,"transform.connector":cP,"transform.maybeZeroY1":xM,"transform.maybeZeroX":jM,"transform.maybeStackY":NM,"transform.maybeTitleX":LM,"transform.maybeTooltipY":DM,"transform.maybeTooltipPosition":RM,"transform.maybeArrayField":zM,"transform.maybeSeries":GM,"transform.stackY":AM,"transform.dodgeX":HM,"transform.jitter":qM,"transform.jitterY":XM,"transform.symmetryY":ZM,"transform.stackEnter":WM,"transform.normalizeY":UM,"transform.select":tT,"transform.selectX":eT,"transform.selectY":nT,"transform.groupX":uT,"transform.maybeSize":FM,"transform.maybeZeroY":BM,"transform.maybeKey":VM,"renderer.canvas":ag,"coordinate.cartesian":sg,"coordinate.polar":lg,"coordinate.transpose":ug,"coordinate.parallel":cg,"coordinate.fisheye":hg,"encode.constant":dg,"encode.field":pg,"encode.transform":fg,"encode.column":yg,"mark.interval":xg,"mark.line":Wg,"mark.point":Ug,"mark.text":Yg,"mark.grid":qg,"mark.area":Xg,"mark.link":Jg,"mark.node":$g,"mark.edge":Kg,"mark.image":Qg,"mark.polygon":Zg,"mark.schema":tv,"mark.vector":ev,"mark.annotation.text":nv,"mark.annotation.lineX":iv,"mark.annotation.lineY":rv,"mark.annotation.connector":ov,"mark.annotation.range":lv,"mark.annotation.rangeX":uv,"mark.annotation.rangeY":cv,"palette.category10":hv,"palette.category20":dv,"scale.linear":zm,"scale.ordinal":Vm,"scale.band":Fm,"scale.identity":Gm,"scale.point":Hm,"scale.time":Wm,"scale.log":Um,"scale.pow":Ym,"scale.threshold":qm,"scale.quantile":Xm,"scale.quantize":Zm,"shape.rect":db,"shape.hollowRect":fb,"shape.funnel":pb,"shape.pyramid":gb,"shape.line":mb,"shape.hv":xb,"shape.vh":wb,"shape.hvh":kb,"shape.smooth":bb,"shape.bowtie":Mb,"shape.cross":Tb,"shape.diamond":Ob,"shape.hexagon":Pb,"shape.hollowBowtie":Ab,"shape.hollowDiamond":Cb,"shape.hollowHexagon":Nb,"shape.hollowPoint":Lb,"shape.hollowSquare":Ib,"shape.hollowTriangle":Rb,"shape.hollowTriangleDown":Db,"shape.hyphen":jb,"shape.linePoint":Bb,"shape.plus":Fb,"shape.point":zb,"shape.square":Vb,"shape.tick":Gb,"shape.triangle":Hb,"shape.triangleDown":Wb,"shape.text":Yb,"shape.area":BE,"shape.smoothArea":FE,"shape.edge":YE,"shape.smoothEdge":qE,"shape.vhvEdge":XE,"shape.arc":ZE,"shape.link":zE,"shape.pointNode":WE,"shape.polygonNode":UE,"shape.image":VE,"shape.polygon":GE,"shape.ribbon":KE,"shape.box":HE,"shape.vector":Ub,"shape.label":r_,"shape.annotation.text":LE,"shape.annotation.badge":RE,"shape.annotation.line":$E,"shape.annotation.connector":n_,"shape.annotation.range":db,"theme.light":i_,"component.axisX":c_,"component.axisY":h_,"component.legendCategory":d_,"component.legendContinuous":f_,"component.title":v_,"animation.scaleInX":w_,"animation.scaleOutX":k_,"animation.scaleInY":E_,"animation.scaleOutY":__,"animation.fadeIn":S_,"animation.fadeOut":M_,"animation.morphing":A_,"interaction.elementActive":xS,"interaction.elementSelected":wS,"interaction.elementHighlight":_S,"interaction.elementHighlightByX":MS,"interaction.elementHighlightByColor":TS,"interaction.elementListHighlight":SS,"interaction.legendActive":OS,"interaction.legendHighlight":PS,"interaction.tooltip":kS,"interaction.fisheye":ES,"interaction.brush":CS,"interaction.brushHighlight":DS,"interaction.brushVisible":jS,"interaction.activeRegion":BS,"interaction.ellipsisText":FS,"composition.layer":zS,"composition.flex":VS,"composition.mark":HS,"composition.view":GS,"composition.rect":nM,"composition.matrix":aM,"composition.circle":dM,"composition.keyframe":fM,"adjust.pack":pM}}function dP(e,n){const r=t=>{if("string"!=typeof t)return t;t=e+"."+t;return n[t]||tb("Unknown Component: "+t)};return[t=>{var e=t["type"],t=I(t,["type"]);return r(e)(Object.assign({},t))},r]}function fP(t,e,n){for(;t<e;)t+=2*Math.PI;for(;n<t;)t-=2*Math.PI;return t}cP.props={category:"preprocessor"};function pP(t,e,n,r,i){var o=t[0],t=t[1],a=fi();return o=[o,t],(t=a)[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=o[0],t[7]=o[1],t[8]=1,t}function yP(t,e,n,r,i){var o=new mm({range:[e,e+r]}),a=new mm({range:[n,n+i]});return{transform:function(t){var e=t[0],t=t[1];return[o.map(e),a.map(t)]},untransform:function(t){var e=t[0],t=t[1];return[o.invert(e),a.invert(t)]}}}function gP(t,e,n,r,i){return(0,t[0])(e,n,r,i)}function vP(t,e,n,r,i){return t[0]}function mP(t,e,n,r,i){var o=t[0],a=t[1],s=t[2],t=t[3],l=new mm({range:[s,t]}),u=new mm({range:[o,a]}),c=1<(s=i/r)?1:s,h=1<s?1/s:1;return{transform:function(t){var e=t[0],t=t[1],e=u.map(e),t=l.map(t);return[.5*(t*Math.cos(e)*c)+.5,.5*(t*Math.sin(e)*h)+.5]},untransform:function(t){var e=t[0],t=t[1],e=2*(e-.5)/c,t=2*(t-.5)/h,n=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),t=fP(Math.atan2(t,e),o,a);return[u.invert(t),l.invert(n)]}}}function bP(t,e,n,r,i){return{transform:function(t){var e=t[0];return[t[1],e]},untransform:function(t){var e=t[0];return[t[1],e]}}}function xP(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return MP.apply(void 0,TP([[-1,-1]],e,!1))}function wP(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return MP.apply(void 0,TP([[-1,1]],e,!1))}function kP(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return MP.apply(void 0,TP([[1,-1]],e,!1))}function EP(t,e,n,r,i){var o,t=t[0],a=fi();return a=a,t=t,o=Math.sin(t),t=Math.cos(t),a[0]=t,a[1]=o,a[2]=0,a[3]=-o,a[4]=t,a[5]=0,a[6]=0,a[7]=0,a[8]=1,a}function _P(t,e,n,r,i){var o=t[0],a=t[1],s=t[2],l=(t[3]-s)/(+a/(2*Math.PI)+1),u=l/(2*Math.PI),c=new mm({range:[s,s+.99*l]}),h=new mm({range:[o,a]}),d=1<(t=i/r)?1:t,f=1<t?1/t:1;return{transform:function(t){var e=t[0],t=t[1],e=h.map(e),t=c.map(t);return[.5*(Math.cos(e)*(u*e+t)*d)+.5,.5*(Math.sin(e)*(u*e+t)*f)+.5]},untransform:function(t){var e=t[0],t=t[1],e=2*(e-.5)/d,t=2*(t-.5)/f,n=Math.sqrt(Math.pow(e,2)+Math.pow(t,2)),t=fP(Math.atan2(t,e)+Math.floor(n/l)*Math.PI*2,o,a),e=n-u*t;return[h.invert(t),c.invert(e)]}}}function SP(t,e,n,r,i){var s=t[0],l=t[1],o=t[2],t=t[3],u=new mm({range:[o,t]});return{transform:function(t){for(var e=[],n=t.length,r=new bm({domain:new Array(n).fill(0).map(function(t,e){return e}),range:[s,l]}),i=0;i<n;i++){var o=t[i],a=r.map(i),o=u.map(o);e.push(a,o)}return e},untransform:function(t){for(var e=[],n=0;n<t.length;n+=2){var r=t[n+1];e.push(u.invert(r))}return e}}}var MP=function(t,e,n,r,i){var o=t[0],t=t[1],a=fi();return o=[o,t],(t=a)[0]=o[0],t[1]=0,t[2]=0,t[3]=0,t[4]=o[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},TP=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};function OP(t){return 1/Math.tan(t)}function PP(t,e,n,r,i){var o=OP(t[0]);return{transform:function(t){var e=t[0],t=t[1];return[e+t*o,t]},untransform:function(t){var e=t[0],t=t[1];return[e-t*o,t]}}}function AP(t,e,n,r,i){var o=OP(t[0]);return{transform:function(t){var e=t[0];return[e,t[1]+e*o]},untransform:function(t){var e=t[0];return[e,t[1]-e*o]}}}function CP(t,e,n,r,i){var o=t<e,i=(o?e-r:i-e)||i-r,r=o?-1:1;return r*i*(n+1)/(n+i/((t-e)*r))+e}function NP(t,e,n,r,i){var o=t<e,i=(o?e-r:i-e)||i-r;return i/(i*(n+1)/(t-e)-n*(o?-1:1))+e}function LP(t,n,e,r,i){var o=t[0],a=t[1];return{transform:function(t){var e=t[0],t=t[1];return[CP(e,o,a,n,n+r),t]},untransform:function(t){var e=t[0],t=t[1];return[NP(e,o,a,n,n+r),t]}}}function IP(t,e,n,r,i){var o=t[0],a=t[1];return{transform:function(t){return[t[0],CP(t[1],o,a,n,n+i)]},untransform:function(t){return[t[0],NP(t[1],o,a,n,n+i)]}}}function RP(t,n,r,i,o){var a=t[0],s=t[1],l=t[2],u=t[3];return{transform:function(t){var e=t[0],t=t[1];return[CP(e,a,l,n,n+i),CP(t,s,u,r,r+o)]},untransform:function(t){var e=t[0],t=t[1];return[NP(e,a,l,n,n+i),NP(t,s,u,r,r+o)]}}}function DP(t,e,n,r,i){var o=t[0],a=t[1],s=t[2],l=t[3];return{transform:function(t){var e=t[0],t=t[1],n=e-o,r=t-a,i=Math.sqrt(n*n+r*r);if(s<i)return[e,t];e=CP(i,0,l,0,s),t=Math.atan2(r,n);return[o+e*Math.cos(t),a+e*Math.sin(t)]},untransform:function(t){var e=t[0],t=t[1],n=e-o,r=t-a,i=Math.sqrt(n*n+r*r);if(s<i)return[e,t];e=NP(i,0,l,0,s),t=Math.atan2(r,n);return[o+e*Math.cos(t),a+e*Math.sin(t)]}}}var jP=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||((r=r||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},BP=(FP.prototype.update=function(t){this.options=C({},this.options,t),this.recoordinate()},FP.prototype.clone=function(){return new FP(this.options)},FP.prototype.getOptions=function(){return this.options},FP.prototype.clear=function(){this.update({transformations:[]})},FP.prototype.getSize=function(){var t=this.options;return[t.width,t.height]},FP.prototype.getCenter=function(){var t=this.options,e=t.x,n=t.y;return[(2*e+t.width)/2,(2*n+t.height)/2]},FP.prototype.transform=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.options.transformations;return this.update({transformations:jP(jP([],n,!0),[jP([],t,!0)],!1)}),this},FP.prototype.map=function(t){return this.output(t)},FP.prototype.invert=function(t){return this.input(t)},FP.prototype.recoordinate=function(){this.output=this.compose(),this.input=this.compose(!0)},FP.prototype.compose=function(t){for(var e=(t=void 0===t?!1:t)?jP([],this.options.transformations,!0).reverse():this.options.transformations,n=t?function(t){return t.untransform}:function(t){return t.transform},r=[],o=[],i=function(t,e){return o.push((e=void 0===e?!0:e)?(i=t,function(t){for(var e=[],n=0;n<t.length-1;n+=2){var r=[t[n],t[n+1]],r=i(r);e.push.apply(e,r)}return e}):t);var i},a=0,s=e;a<s.length;a++){var l,u,c,h,d=s[a],f=d[0],d=d.slice(1),p=this.transformers[f];p&&(l=(h=this.options).x,u=h.y,c=h.width,h=h.height,p=p(jP([],d,!0),l,u,c,h),(d=p)instanceof Float32Array||d instanceof Array?r.push(p):(r.length&&(i(this.createMatrixTransform(r,t)),r.splice(0,r.length)),i(n(p)||Tp,"parallel"!==f)))}return r.length&&i(this.createMatrixTransform(r,t)),function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t?e.reduce(function(e,n){return function(t){return n(e(t))}},t):Tp}.apply(void 0,o)},FP.prototype.createMatrixTransform=function(t,e){var n,r,i,o,a,s,l,u,c,h,d,f,p=fi();return e&&t.reverse(),t.forEach(function(t){return pi(p,p,t)}),e&&(e=t=p,(f=new di(9))[0]=e[0],f[1]=e[1],f[2]=e[2],f[3]=e[3],f[4]=e[4],f[5]=e[5],f[6]=e[6],f[7]=e[7],f[8]=e[8],f=(e=f)[0],n=e[1],r=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],u=(e=e[8])*o-a*l,(d=f*u+n*(c=-e*i+a*s)+r*(h=l*i-o*s))&&(t[0]=u*(d=1/d),t[1]=(-e*n+r*l)*d,t[2]=(a*n-r*o)*d,t[3]=c*d,t[4]=(e*f-r*s)*d,t[5]=(-a*f+r*i)*d,t[6]=h*d,t[7]=(-l*f+n*s)*d,t[8]=(o*f-n*i)*d)),function(t){t=[t[0],t[1],1];return Ki(t,t,p),[t[0],t[1]]}},FP);function FP(t){this.options={x:0,y:0,width:300,height:150,transformations:[]},this.transformers={cartesian:yP,translate:pP,custom:gP,matrix:vP,polar:mP,transpose:bP,scale:MP,"shear.x":PP,"shear.y":AP,reflect:xP,"reflect.x":wP,"reflect.y":kP,rotate:EP,helix:_P,parallel:SP,fisheye:RP,"fisheye.x":LP,"fisheye.y":IP,"fisheye.circular":DP},this.update(t)}function zP(t){return void 0!==t.find(t=>"polar"===t.type)}function VP(t){return t.filter(({type:t})=>"transpose"===t).length%2==1}function GP(t,e,n,r,i,o,a){var s=t["scaleName"],t=function(t,e,n,r,i,o){var{name:a,field:s}=t,{field:s=s,guide:l={}}=e,u=function(t,e){var{scale:t,name:n,value:r,type:i}=t,{type:e,domain:o,range:a}=e;return void 0!==t?t:void 0!==e?e:"constant"===i&&!KP(n)||function(t){return t.some(t=>"object"==typeof t&&!(t instanceof Date)&&null!==t)}(r)?"identity":2<(o||a||[]).length?YP(n):void 0===o?XP(r)?YP(n):ZP(r)?"time":"linear":XP(o)?YP(n):ZP(r)?"time":"linear"}(t,e);return"string"!=typeof u?e:Object.assign(Object.assign(Object.assign({},e),function(t,e,n,r){var i=e["name"];switch(t){case"linear":case"time":case"log":case"pow":return function(t){var{interpolate:e=am,nice:n=!1,tickCount:r=10}=t;return Object.assign(Object.assign({},t),{interpolate:e,nice:n,tickCount:r})}(n);case"band":case"point":return function(t,e,n,r){if(void 0!==r.padding)return r;var t=function(t,e,n){return"enterDelay"===e||"enterDuration"===e?0:"band"===t?zP(n)?0:.1:"point"===t&&zP(n)?.5:0}(t,e,n),{paddingInner:e=t,paddingOuter:n=t}=r;return Object.assign(Object.assign({},r),{paddingInner:e,paddingOuter:n})}(t,i,r,n);default:return n}}(u,t,e,n)),{domain:function(t,e,n){var r=e["value"],e=n["domain"];if(void 0!==e)return e;switch(t){case"linear":case"time":case"log":case"pow":case"threshold":return function(t,e){var{zero:e=!1}=e;if(0===t.length)return[];let n=1/0,r=-1/0;for(const i of t)nb(i)&&(n=Math.min(n,+i),r=Math.max(r,+i));return e?[Math.min(0,n),r]:[n,r]}(r,n);case"band":case"ordinal":case"point":return qP(r);case"quantile":return function(t){return qP(t).sort()}(r);default:return[]}}(u,t,e),range:function(t,e,n,r,i,o){var a=n["range"];if(void 0!==a)return a;const[s]=dP("palette",o),{name:l,value:u}=e,{defaultCategory10:c,defaultCategory20:h}=i,d={type:function(t){return Array.from(new Set(t))}(u).length<=10?c:h},{palette:f=d}=n,p=s(f);switch(t){case"linear":case"band":case"point":case"time":case"log":return function(t,e){return"enterDelay"===t?[0,1e3]:"enterDuration"==t?[300,1e3]:t.startsWith("y")||t.startsWith("position")?[1,0]:"color"===t?[e[0],function(t){return t[t.length-1]}(e)]:"size"===t?[1,10]:[0,1]}(l,p);case"ordinal":return"color"===l?p:r;default:return[]}}(u,t,e,r,i,o),guide:l,name:a,field:s,type:u})}(t,e,n,r,i,a),e=t["independent"];if(e)return t;if(!o.has(s))return o.set(s,t),t;var n=o.get(s),r=s,i=n,a=t,{type:e,domain:o,range:s}=i,{type:a,domain:t,range:l}=a;return"string"==typeof e&&"string"==typeof a&&(i.type=function(t,e,n){{if($P(t,e,"linear","identity"))return"identity";if($P(t,e,"band","point"))return"band";if(t!==e)throw new Error(`Incompatible scale type: ${t} !== ${e} for channel: `+n);return t}}(e,a,r),i.domain=function(t,e,n){switch(t){case"linear":case"pow":case"log":return JP(e,n);case"band":case"ordinal":return QP(e,n);default:return e}}(e,o,t),i.range=function(t,e,n){switch(t){case"linear":case"band":case"pow":case"log":return JP(e,n);case"ordinal":return QP(e,n);default:return e}}(e,s,l)),n}function HP(t,e){const n=t.map(t=>t[e]).filter(({facet:t=!0})=>t);var t=n.flatMap(t=>t.domain),r=n.every(WP)?Eg(t):n.every(UP)?Array.from(new Set(t)):null;if(null!==r)for(const i of n)i.domain=r}function WP(t){t=t.type;if("string"!=typeof t)return!1;return["linear","log","pow","time"].includes(t)}function UP(t){t=t.type;if("string"!=typeof t)return!1;return["band","point","ordinal"].includes(t)}function YP(t){return(t=t).startsWith("x")||t.startsWith("y")||t.startsWith("position")||t.startsWith("size")?"point":"ordinal"}function qP(t){return Array.from(new Set(t))}function XP(t){return t.some(t=>{t=typeof t;return"string"==t||"boolean"==t})}function ZP(t){return t.some(t=>t instanceof Date)}function KP(t){return t.startsWith("x")||t.startsWith("y")||t.startsWith("position")}function $P(t,e,n,r){return t===n&&e===r||t===r&&e===n}function JP(t,e){var[t,n]=t,[e,r]=e;return[Math.min(+t,+e),Math.max(+n,+r)]}function QP(t,e){return Array.from(new Set([...t,...e]))}function tA(y,g,v,m,b,x){return F(this,void 0,void 0,function*(){const{data:c,encode:t,I:e,columnOf:h,scale:n={}}=yield function(d,f,p){return F(this,void 0,void 0,function*(){const[t,e]=dP("transform",p);d.encode=function(t){const e={};for(var[n,r]of Object.entries(t))if(Array.isArray(r))for(let t=0;t<r.length;t++){var i=""+n+(0===t?"":t);e[i]=r[t]}else e[n]=r;return e}(d.encode);var n=eA(d,p),{transform:r=[]}=d,{preInference:i=[],postInference:o=[]}=f;const a=[],s=[];for(const h of r){var l=h["type"],{category:l="preprocessor"}=e(l).props||{};("preprocessor"===l?a:s).push(h)}var r=yield Q1(a.map(t))(n),u=r["data"],u=u?WS(u):[];const c=[...i,...s,...o];return Q1(c.map(t))(Object.assign(Object.assign(Object.assign({},n),r),{I:u}))})}(y,g,x);if(!1===Array.isArray(c))return null;const r=g["channels"],i=Tg(Object.entries(t).filter(([,t])=>nb(t)),([t])=>{return/([^\d]+)\d*$/.exec(t)[1]}),o=r.filter(t=>{var{name:t,required:e}=t;if(i.has(t))return!0;if(e)throw new Error(`Missing encoding for channel: ${t}.`);return!1}).flatMap(u=>{var t=u["name"];const e=i.get(t);return e.map(t=>{var e=u,n=c,r=h,{independent:i=!1,name:o,scaleName:a}=e,e=I(e,["independent","name","scaleName"]),[t,s]=t,l=(s=nA(n,s)).type;return Object.assign(Object.assign({},e),{type:l,name:t,scaleName:null!=a?a:i?t:o,value:r(n,s),field:rA(s)})})}),a={};var{coordinate:s=[]}=b;const l=Tg(o,t=>t.scaleName);for(const[p,o]of l.entries()){var u=g["shapes"],d=function(t){const e={};for(const a of t){var{value:n=[],field:r}=e,{value:i=[],field:o}=a;Object.assign(e,a),e.value=[...n,...i],e.field=null==o?r:o}return e}(o),{[p]:f={}}=n;a[p]=GP(d,f,s,u,m,v,x)}return[Object.assign(Object.assign({},y),{encode:t,scale:a,data:c}),Object.assign(Object.assign({},g),{channels:o,index:e})]})}function eA(t,e){var{data:t,encode:n={},transform:r=[],scale:i={}}=t;return{data:t,encode:n,columnOf:function(t){const[r]=dP("encode",t);return(t,e)=>{if(void 0===e)return null;if(void 0===t)return null;e=nA(t,e);const n=r(e)(t);t=rA(e);return n.field=t,n}}(e),transform:r,I:Array.isArray(t)?WS(t):[],scale:i}}function nA(t,e){return"object"!=typeof e||e instanceof Date?(t=t,{type:"function"==typeof(n=e)?"transform":"string"==typeof n&&void 0!==(null==(t=null==t?void 0:t[0])?void 0:t[n])?"field":"constant",value:e}):e;var n}function rA(t){var{type:t,value:e}=t;return"field"===t&&"string"==typeof e?e:e&&e.field?e.field:null}function iA(t,n,e){var{component:r=[],coordinate:i=[],title:o,theme:a}=n;const[,s]=dP("component",e);var l,e=t.filter(({guide:t,name:e})=>null!==t&&(!function(t){const{marks:e=[]}=t;return e.some(t=>"object"==typeof t.adjust)}(n)||!KP(e)));const u=[...r];o&&(t=s("title")["props"],{defaultPosition:r,defaultOrder:t,defaultSize:l}=t,a=function(t){var{size:t,text:e,subtitle:n,style:r,subtitleStyle:i}=t;if(t)return t;r=null!=(t=null==r?void 0:r.fontSize)?t:14,t=null!=(t=null==i?void 0:i.fontSize)?t:12,i=(null==i?void 0:i.spacing)||0;return(e?r+4:0)+(n?t+i:0)}(C({size:l},a,l="string"==typeof o?{text:o}:o)),u.push(Object.assign({type:"title",position:r,order:t,size:a},l)));for(const g of e){var c,h,d,f,p,y=function(t,e){const{name:n,guide:r,type:i}=t,o=r["type"];if(void 0!==o)return o;if("color"===n)switch(i){case"ordinal":return"legendCategory";case"linear":return"legendContinuous";default:return null}return VP(e)&&zP(e)?null:n.startsWith("x")?VP(e)?"axisY":"axisX":n.startsWith("y")?VP(e)?"axisX":"axisY":n.startsWith("position")&&!zP(e)?"axisY":null}(g,i);null!==y&&(f=s(y)["props"],{defaultPosition:f,defaultSize:p,defaultOrder:c}=f,{guide:h,name:d}=g,{position:d=function(t,e,n,r,i){r=["left","right","top","bottom","centerHorizontal"].includes(r.position)?r.position:n;{if("axisY"===e&&function(t){return void 0!==t.find(t=>"parallel"===t.type)}(i))return null===(n=/position(\d*)/g.exec(t))||0==+n[1]?r:"centerHorizontal";if("axisX"===e&&zP(i)&&!VP(i)||"axisY"===e&&zP(i)&&VP(i))return"arc";if(zP(i)&&("axisX"===e||"axisY"===e))return"arcY"}return r}(d,y,f,h,i),size:f=p,order:p=c}=h,u.push(Object.assign(Object.assign({},h),{position:d,order:p,size:f,type:y,scale:g})))}return u}function oA(t,e,n,r){const[i]=dP("scale",r),[o]=dP("component",r);var{scale:r,bbox:a}=t,t=I(t,["scale","bbox"]),s=r?i(r):null,{field:r,domain:l}=r||{},r={field:r,domain:l,bbox:a};const u=o(t);return u(s,r,e,n)}function aA(t,e){var t=function(t,e){const n=Tg(t,t=>t.position),{paddingLeft:r,paddingRight:i,paddingBottom:o,paddingTop:a}=e,s={paddingBottom:o,paddingLeft:r,paddingTop:a,paddingRight:i};for(const c of["left","right","top","bottom"]){var l="padding"+function(t){return t.replace(/( |^)[a-z]/g,t=>t.toUpperCase())}(c);if(void 0===s[l])if(n.has(c)){const t=n.get(c);var u=t.reduce((t,{size:e})=>t+e,0);s[l]=u}else s[l]=30}return s}(t,e),{paddingLeft:n,paddingRight:r,paddingTop:i,paddingBottom:o}=t,{width:e,height:a,x:s=0,y:l=0}=e;return Object.assign(Object.assign({},t),{width:e,height:a,innerWidth:e-n-r,innerHeight:a-i-o,x:s,y:l})}function sA(t,e,n){const r=Tg(t,t=>t.position);var{paddingLeft:t,paddingRight:i,paddingTop:o,paddingBottom:a,innerHeight:s,innerWidth:l,height:u,width:c}=n,h={top:[t,0,l,o,0,!0,wg],right:[c-i,o,i,s,1,!1,wg],bottom:[t,u-a,l,a,0,!1,wg],left:[0,o,t,s,1,!0,wg],centerHorizontal:[t,o,l,s,-1,null,null],arc:[t,o,c-t-i,u-o-a,-1,null,null],arcY:[t,o,c-t-i,u-o-a,-1,null,null]};for(const[b,t]of r.entries()){var d=h[b];if("centerHorizontal"===b)!function(e,t,n,r){const[,i,,o]=r,a=t["paddingLeft"],s=new Array(e.length+1).fill(0),l=n.map(s),u=l.filter((t,e)=>e%2==0).map(t=>t+a);for(let t=0;t<e.length;t++){const d=e[t];var c=u[t],h=u[t+1]-c;d.bbox={x:c,y:i,width:h,height:o}}}(t,n,e,d);else if("arc"===b||"arcY"===b){m=v=g=y=p=f=void 0;var f=t,p=d,[y,g,v,m]=p;for(let t=0;t<f.length;t++){const x=f[t];x.bbox={x:y,y:g,width:v,height:m}}}else!function(n,t){const[e,r,i,o,a,s,l]=t,[u,c,h,d,f,p,y,g]=0===a?["y",r,"x",e,"height",o,"width",i]:["x",e,"y",r,"width",i,"height",o],v=(n.sort((t,e)=>l(t.order,e.order)),s?c+p:c);for(let t=0,e=v;t<n.length;t++){const b=n[t];var m=b["size"];b.bbox={[u]:s?e-m:e,[h]:d,[f]:m,[y]:g},e+=m*(s?-1:1)}}(t,d)}}function lA(C,N,L){return F(this,void 0,void 0,function*(){const[r]=dP("composition",L),[t]=dP("interaction",L),e=new Set(Object.keys(L).filter(t=>t.startsWith("mark")).map(t=>t.split(".").pop())),i=t=>{t=t.type;return"string"==typeof t&&e.has(t)?"mark":t};const o=t=>"standardView"===i(t);var n=t=>{if(o(t))return[t];var e=i(t);const n=r({type:e});return n(t)};const a=[],s=new Map,l=new Map,u=[C],c=[];for(;u.length;){var h=u.shift();if(o(h)){var d=l.get(h);const[E,_]=d?dA(d,h,L):yield cA(h,L),S=(s.set(E,h),a.push(E),_.flatMap(n));if(u.push(...S),S.every(o)){var f=yield Promise.all(S.map(t=>hA(t,L)));HP(d=(d=f).flatMap(t=>Array.from(t.keys())).map(t=>t.scale),"x"),HP(d,"y");for(let t=0;t<S.length;t++){var p=S[t],y=f[t];l.set(p,y)}}}else{d="mark"===i(h)?h:yield function(o,a){return F(this,void 0,void 0,function*(){var[t]=dP("transform",a);const{transform:e=[]}=o,n=I(o,["transform","data"]);var r=eA(o,a),{data:t,encode:r,scale:i}=yield Q1(e.map(t))(r);return Object.assign(Object.assign({},n),{data:t,encode:r,scale:i})})}(h,L);const M=n(d);Array.isArray(M)?u.push(...M):"function"==typeof M&&c.push(M())}}const g=new Map,v=[];N.selectAll(".view").data(a,t=>t.key).join(t=>t.append("g").attr("className","view").attr("id",t=>t.key).call(uA).each(function(t){fA(t,ib(this),v,L),g.set(t,this)}),t=>t.call(uA).each(function(t){fA(t,ib(this),v,L)}),t=>t.remove()),N.selectAll(".view").each(function(t){{var e=t,n=ib(this),r=(v,L),i,o;const s=e["markState"];for([i,o]of s.entries()){var a=i["key"];const l=n.select("#"+a),u=function(t,e,n,r){return pA("labelShape",t,e,n,r)}(i,o,e,r);l.selectAll(".element").each(function(t,e){if(void 0!==(null==t?void 0:t.label)){const n=u(t,e,this);t=this.getElementById(".label");t?eb(t,n):(n.id="label",this.appendChild(n))}})}}});var m=Array.from(g.entries()).map(([t,e])=>({view:t,container:e,options:s.get(t),update:function(i,o){return r=>F(this,void 0,void 0,function*(){var[t,e]=yield cA(r,o);fA(t,i,[],o);for(const n of e)lA(n,i,o)})}(ib(e),L)}));for(const T of m){const C=T["options"];var b=C["interaction"];for(const O of function(t=[]){const n=[...t];return["tooltip","ellipsisText"].forEach(e=>{t.find(t=>t.type===e)||n.push({type:e})}),n}(b)){const P=t(O);P(T,m)}}const{width:x,height:w}=C;for(const A of c){var k=new Promise(e=>F(this,void 0,void 0,function*(){for(const t of A)yield lA(Object.assign({width:x,height:w},t),N,L);e()}));v.push(k)}return Promise.all(v)})}function uA(t){t.style("transform",t=>`translate(${t.layout.x}, ${t.layout.y})`)}function cA(t,e){return F(this,void 0,void 0,function*(){return dA(yield hA(t,e),t,e)})}function hA(c,h){return F(this,void 0,void 0,function*(){const[t]=dP("theme",h),[,e]=dP("mark",h);var{theme:n,marks:r}=c,i=t(vA(n));const o=new Map;var a=new Map;for(const u of r){var s,{type:l=tb("G2Mark type is required.")}=u,l=e(l)["props"],l=yield tA(u,l,a,i,c,h);l&&([l,s]=l,o.set(l,s))}return o})}function dA(t,e,n){const[r]=dP("mark",n);var[i]=dP("scale",n);const[o]=dP("adjust",n),[a]=dP("theme",n);var{key:s,frame:l,theme:u}=e,u=a(vA(u));const c=Array.from(t.keys());var h,d,f=new Set(c.flatMap(t=>Object.values(t.scale))),f=iA(Array.from(f),e,n),p=aA(f,e),y=function(t,e,n){var[n]=dP("coordinate",n),{innerHeight:t,innerWidth:r}=t,{coordinate:e=[]}=e;const i=(e=e).find(t=>"cartesian"===t.type)?e:[...e,{type:"cartesian"}];return new BP({x:0,y:0,width:r,height:t,transformations:i.map(n).flat()})}(p,e,n),g=(sA(f,y,p),{});const v=[];for([h,d]of t.entries()){const{scale:k,children:E,dataDomain:_,adjust:S}=h;var{index:m,channels:b}=d,x=function(r,i){return Object.entries(r).reduce((t,[e,n])=>(t[e]=i(n,e,r),t),{})}(k,i);Object.assign(g,x);const M=function(t,e){const n={};for(var{scaleName:r,value:i,name:o}of t){const a=e[r];n[o]=i.map(t=>a.map(t))}return n}(b,x),T=r(h),[O,P,A]=T(m,x,M,y),C=[],N=[];for(let t=0;t<O.length;t++){var w=O[t];const I=P[t];I.every(([t,e])=>nb(t)&&nb(e))&&(C.push(w),N.push(I))}b=_||C.length;const L=S?o(S)(P,b,p):[];m=C.map((t,e)=>{const n={points:N[e],transform:L[e]};for(const[r,i]of Object.entries(M))n[r]=i[t],A&&(n["series"+gp(r)]=A[e].map(t=>i[t]));return n}),b=(d.data=m,d.index=C,null===E||void 0===E?void 0:E(m,x,p));v.push(...b||[])}return[{layout:p,theme:u,coordinate:y,components:f,markState:t,key:s,frame:l,scale:g},v]}function fA(v,m,b,x){F(this,void 0,void 0,function*(){const{components:t,theme:n,layout:e,markState:r,coordinate:i,key:o,frame:a=!1}=v;m.selectAll(".component").data(t,(t,e)=>t.type+"-"+e).join(t=>t.append("g").style("zIndex",({zIndex:t})=>t||-1).attr("className","component").append(t=>oA(t,i,n,x)),t=>t.each(function(t){t=oA(t,i,n,x).attributes;const[e]=this.childNodes;e.update(Object.assign({},t))})),m.selectAll(".plot").data([e],()=>o).join(t=>t.append("rect").attr("className","plot").style("fill","transparent").call(bA,a).call(mA).call(xA,Array.from(r.keys())),t=>t.call(mA).call(xA,Array.from(r.keys())));for(var[s,l]of r.entries()){var u=l["data"];const{key:o,class:d}=s,f=(c=s,h=l,pA("shape",c,h,v,x)),p=(c=s,h=l,yA("enter",c,h,v,x)),y=(c=s,h=l,yA("update",c,h,v,x)),g=(c=s,h=l,yA("exit",c,h,v,x));s=function(t,e,n){const r=t.node().parentElement;return r.findAll(t=>t.style.facet===e).flatMap(t=>t.getElementsByClassName(n))}(m,d,"element"),l=m.select("#"+o).selectAll(".element").selectFacetAll(s).data(u,t=>t.key,t=>t.groupKey).join(t=>t.append(f).attr("className","element").transition(function(t){return p(t,[this])}),e=>e.call(t=>{const l=t.parent(),u=function(n){const r=new Map;return t=>{if(r.has(t))return r.get(t);var e=n(t);return r.set(t,e),e}}(t=>{var[t,e]=t.getBounds().min;return[t,e]});e.transition(function(t,e){n=this,r=l,i=u,n.__facet__&&(o=n.parentNode.parentNode,s=r.parentNode,[o,a]=i(o),[i,s]=i(s),o=`translate(${o-i}, ${a-s})`,i=n.style.transform,n.style.transform=(("none"===i?"":i)+" "+o).trimStart(),r.append(n));var n,r,i,o,a=f(t,e),s=y(t,[this],[a]);return null===s&&eb(this,a),s})}),t=>t.transition(function(t){return g(t,[this])}).remove(),t=>t.append(f).attr("className","element").transition(function(t){var e=this["__fromElements__"],t=y(t,e,[this]);const n=new ob(e,null,this.parentNode);return n.transition(t).remove(),t}),t=>t.transition(function(t){const e=new ob([],this.__toData__,this.parentNode);var n=e.append(f).attr("className","element").nodes();return y(t,[this],n)}).remove()).transitions();b.push(...l)}var c,h})}function pA(a,t,e,n,r){const[s]=dP("shape",r);r="default"+gp(a);const{[r]:l,data:i}=e,u=i.map(t=>t.points),{theme:c,coordinate:h}=n,d=t["style"];return(t,e,n)=>{var r=t[a],i=t["points"],t=I(t,["symbol"==typeof a?a:a+"","points"]),t=Object.assign(Object.assign({},t),{index:e,element:n}),n="object"==typeof(e=r||l)?e:{type:e};const o=s(Object.assign(Object.assign({},n),d));return o(i,t,h,c,u)}}function yA(l,t,e,n,r){const[,i]=dP("shape",r),[u]=dP("animation",r);r=e.defaultShape;const{theme:o,coordinate:c}=n;e=`default${gp(l)}Animation`;const{[e]:h}=i(r).props,{[l]:d={}}=t.animate||{},{[l]:f={}}=o;return(t,e,n)=>{var{[l+"Type"]:t,[l+"Delay"]:r,[l+"Duration"]:i,[l+"Easing"]:o}=t,t=Object.assign({type:t||h},d);if(!t.type)return null;const a=u(t),s=a(e,n,{delay:r,duration:i,easing:o},c,f);return Array.isArray(s)?Promise.all(s.map(gA)):gA(s)}}function gA(t){return t.finished.then(()=>{t.cancel()})}function vA(t={type:"light"}){var{type:e="light"}=t;return Object.assign(Object.assign({},t),{type:e})}function mA(t){t.style("x",t=>t.paddingLeft).style("y",t=>t.paddingTop).style("width",t=>t.innerWidth).style("height",t=>t.innerHeight)}function bA(t,e){e&&t.style("lineWidth",1).style("stroke","black")}function xA(t,e){const n=t=>void 0!==t.class?""+t.class:"";t.each(function(){ib(this).selectAll(".main").data(e,t=>t.key).join(t=>t.append("g").attr("className","main").attr("id",t=>t.key).style("facet",n).style("fill","transparent"),t=>t.style("facet",n),t=>t.remove())})}function wA(t,e={},n){const{width:r=640,height:i=480}=t,o=function(t){t=C({},t);const e=new Map([[t,null]]),n=new Map([[null,-1]]),r=[t];for(;r.length;){const l=r.shift();void 0===l.key&&(o=e.get(l),i=n.get(l),o=null===o?"0":o.key+"-"+i,l.key=o);var i,o,{children:a=[]}=l;if(Array.isArray(a))for(let t=0;t<a.length;t++){var s=a[t];e.set(s,l),n.set(s,t),r.push(s)}}return t}(t),{canvas:a=ag({width:r,height:i,container:document.createElement("div")}),library:s=hP()}=e,l=(e.canvas=a,e.library=s,ib(a.document.documentElement));return a.addEventListener(pf.READY,()=>F(this,void 0,void 0,function*(){yield lA(Object.assign(Object.assign({},o),{width:r,height:i}),l,s),null!=n&&n()})),"string"==typeof(t=a.getConfig().container)?document.getElementById(t):t}class kA{constructor(t={},e){this.parentNode=null,this.children=[],this.index=0,this.type=e,this.value=t}map(t=t=>t){t=t(xp(this.value));return this.value=t,this}attr(e,n){return void 0===n?this.value[e]:this.map(t=>(t[e]=n,t))}append(t){const e=new t({});return e.children=[],e.parentNode=this,e.index=this.children.length,this.children.push(e),e}call(t,...e){return t(this.map(),...e),this}}function EA(r){return t=>{for(const n of r){var e=n["type"];"value"===e?function(t,{name:e}){t.prototype[e]=function(t){return this.attr(e,t)}}(t,n):"array"===e?function(t,{name:r}){t.prototype[r]=function(t){if(Array.isArray(t)||void 0===t)return this.attr(r,t);var e=this.attr(r);const n=[...Array.isArray(e)?e:[]];return n.push(t),this.attr(r,n)}}(t,n):"object"===e?function(t,{name:r}){t.prototype[r]=function(t,e){if(Kf(t)||void 0===t)return this.attr(r,t);const n=xp(this.attr(r)||{});return n[t]=e,this.attr(r,n)}}(t,n):"node"===e?function(t,{name:e,ctor:n}){t.prototype[e]=function(){return this.append(n)}}(t,n):"container"===e&&function(t,{name:e,ctor:n}){t.prototype[e]=function(){return this.type=null,this.append(n)}}(t,n)}return t}}function _A(t){return Object.entries(t).map(([t,e])=>({type:"node",name:t,ctor:e}))}l=[{name:"encode",type:"object"},{name:"scale",type:"object"},{name:"data",type:"value"},{name:"key",type:"value"},{name:"class",type:"value"},{name:"transform",type:"array"},{name:"style",type:"object"},{name:"animate",type:"object"},{name:"frame",type:"value"},{name:"facet",type:"value"},{name:"adjust",type:"value"},{name:"coordinate",type:"array"},{name:"interaction",type:"array"},{name:"paddingLeft",type:"value"},{name:"paddingRight",type:"value"},{name:"paddingBottom",type:"value"},{name:"paddingTop",type:"value"}];let SA=class extends kA{constructor(){super({},"interval")}},MA=(SA=t([EA(l)],SA),class extends kA{constructor(){super({},"point")}}),TA=(MA=t([EA(l)],MA),class extends kA{constructor(){super({},"area")}}),OA=(TA=t([EA(l)],TA),class extends kA{constructor(){super({},"line")}}),PA=(OA=t([EA(l)],OA),class extends kA{constructor(){super({},"grid")}}),AA=(PA=t([EA(l)],PA),class extends kA{constructor(){super({},"vector")}}),CA=(AA=t([EA(l)],AA),class extends kA{constructor(){super({},"link")}}),NA=(CA=t([EA(l)],CA),class extends kA{constructor(){super({},"polygon")}});NA=t([EA(l)],NA);r=t([EA(l)],class extends kA{constructor(){super({},"image")}});let LA=class extends kA{constructor(){super({},"text")}},IA=(LA=t([EA(l)],LA),class extends kA{constructor(){super({},"schema")}}),RA=(IA=t([EA(l)],IA),class extends kA{constructor(){super({},"annotation.text")}}),DA=(RA=t([EA(l)],RA),class extends kA{constructor(){super({},"annotation.lineX")}}),jA=(DA=t([EA(l)],DA),class extends kA{constructor(){super({},"annotation.lineY")}}),BA=(jA=t([EA(l)],jA),class extends kA{constructor(){super({},"annotation.range")}}),FA=(BA=t([EA(l)],BA),class extends kA{constructor(){super({},"annotation.rangeX")}}),zA=(FA=t([EA(l)],FA),class extends kA{constructor(){super({},"annotation.rangeY")}}),VA=(zA=t([EA(l)],zA),class extends kA{constructor(){super({},"annotation.connector")}});VA=t([EA(l)],VA);J={interval:SA,point:MA,area:TA,line:OA,grid:PA,vector:AA,link:CA,polygon:NA,image:r,text:LA,schema:IA,annotationText:RA,annotationLineX:DA,annotationLineY:jA,annotationRange:BA,annotationRangeX:FA,annotationRangeY:zA,annotationConnector:VA};let GA=class extends kA{constructor(){super({},"view")}},HA=(GA=t([EA([{type:"value",name:"paddingLeft"},{type:"value",name:"paddingRight"},{type:"value",name:"paddingBottom"},{type:"value",name:"paddingTop"},{type:"value",name:"data"},{type:"value",name:"key"},{type:"array",name:"coordinate"},{type:"array",name:"interaction"},{type:"object",name:"theme"},..._A(J)])],GA),class extends kA{constructor(){super({},"layer")}}),WA=(HA=t([EA([{type:"value",name:"data"},{type:"value",name:"key"},..._A(J)])],HA),class extends kA{constructor(){super({},"flex")}}),UA=(WA=t([EA([{type:"value",name:"data"},{type:"value",name:"key"},{type:"value",name:"padding"},{type:"value",name:"ratio"},{type:"value",name:"direction"},..._A(J)])],WA),class extends kA{constructor(){super({},"rect")}}),YA=(UA=t([EA([{type:"value",name:"data"},{type:"value",name:"key"},{type:"array",name:"transform"},{type:"object",name:"scale"},{type:"object",name:"encode"},{type:"value",name:"paddingLeft"},{type:"value",name:"paddingRight"},{type:"value",name:"paddingBottom"},{type:"value",name:"paddingTop"},{type:"value",name:"shareData"},{type:"value",name:"shareSize"},..._A(J)])],UA),class extends kA{constructor(){super({},"circle")}}),qA=(YA=t([EA([{type:"value",name:"data"},{type:"value",name:"key"},{type:"array",name:"transform"},{type:"object",name:"scale"},{type:"object",name:"encode"},{type:"value",name:"paddingLeft"},{type:"value",name:"paddingRight"},{type:"value",name:"paddingBottom"},{type:"value",name:"paddingTop"},..._A(J)])],YA),class extends kA{constructor(){super({},"matrix")}}),XA=(qA=t([EA([{type:"value",name:"data"},{type:"value",name:"key"},{type:"array",name:"transform"},{type:"object",name:"scale"},{type:"object",name:"encode"},{type:"value",name:"paddingLeft"},{type:"value",name:"paddingRight"},{type:"value",name:"paddingBottom"},{type:"value",name:"paddingTop"},..._A(J)])],qA),class extends kA{constructor(){super({},"keyframe")}});XA=t([EA([{type:"value",name:"key"},{type:"value",name:"direction"},{type:"value",name:"easing"},{type:"value",name:"iterationCount"},{type:"value",name:"duration"},..._A(J)])],XA);var ZA={view:GA,layer:HA,flex:WA,rect:UA,circle:YA,matrix:qA,keyframe:XA};for(const JA of Object.values(ZA))EA(_A(ZA))(JA);function KA(t){var e=xp(t.value);return Object.assign(Object.assign({},e),{type:t.type})}function $A(t){t=function(t){if(null!==t.type)return t;const e=t.children[t.children.length-1];return e.attr("width",t.attr("width")),e.attr("height",t.attr("height")),e.attr("paddingLeft",t.attr("paddingLeft")),e.attr("paddingTop",t.attr("paddingTop")),e.attr("paddingBottom",t.attr("paddingBottom")),e.attr("paddingRight",t.attr("paddingRight")),e}(t);const e=[t],n=new Map;for(n.set(t,KA(t));e.length;){const t=e.pop(),i=n.get(t);for(const o of t.children){var r=KA(o);const{children:a=[]}=i;a.push(r),e.push(o),n.set(o,r),i.children=a}}return n.get(t)}ge=[{name:"data",type:"value"},{name:"coordinate",type:"array"},{name:"interaction",type:"array"},{name:"theme",type:"object"},{name:"title",type:"object"},{name:"key",type:"value"},{name:"transform",type:"array"},{name:"theme",type:"object"},..._A(J),...Object.entries(ZA).map(([t,e])=>({type:"container",name:t,ctor:e}))];w.Chart=class extends kA{constructor(t={}){var e=t["container"];super(I(t,["container"]),"view"),this.container=void 0===(t=e)?document.createElement("div"):"string"==typeof t?document.getElementById(t):t}render(){var t=wA($A(this));return this.container.append(t),this}options(){return $A(this)}node(){return this.container}},w.Chart=t([EA(ge)],w.Chart),w.createLibrary=hP,w.render=wA,Object.defineProperty(w,"__esModule",{value:!0})});
|