@templmf/temp-solf-lmf 0.0.94 → 0.0.95

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (528) hide show
  1. package/@antv/algorithm@^0.1.26 +5 -0
  2. package/@antv/component@2.1.7/es2022/esm/animation.mjs +3 -0
  3. package/@antv/component@2.1.7/es2022/esm/core.mjs +3 -0
  4. package/@antv/component@2.1.7/es2022/esm/ui/axis/utils.mjs +3 -0
  5. package/@antv/component@2.1.7/es2022/esm/util/layout.mjs +3 -0
  6. package/@antv/component@^2.1.7 +11 -0
  7. package/@antv/event-emitter@^0.1.3 +3 -0
  8. package/@antv/g-camera-api@2.0.41/es2022/g-camera-api.mjs +15 -0
  9. package/@antv/g-canvas@^2.0.48 +6 -0
  10. package/@antv/g-dom-mutation-observer-api@2.0.38/es2022/g-dom-mutation-observer-api.mjs +15 -0
  11. package/@antv/g-lite@2.3.2/es2022/g-lite.mjs +22 -0
  12. package/@antv/g-math@3.0.1/es2022/g-math.mjs +17 -0
  13. package/@antv/g-plugin-canvas-path-generator@2.1.22/es2022/g-plugin-canvas-path-generator.mjs +16 -0
  14. package/@antv/g-plugin-canvas-picker@2.1.27/es2022/g-plugin-canvas-picker.mjs +20 -0
  15. package/@antv/g-plugin-canvas-renderer@2.3.3/es2022/g-plugin-canvas-renderer.mjs +17 -0
  16. package/@antv/g-plugin-dom-interaction@2.1.27/es2022/g-plugin-dom-interaction.mjs +15 -0
  17. package/@antv/g-plugin-dragndrop@^2.0.38 +4 -0
  18. package/@antv/g-plugin-html-renderer@2.1.27/es2022/g-plugin-html-renderer.mjs +15 -0
  19. package/@antv/g-plugin-image-loader@2.1.26/es2022/g-plugin-image-loader.mjs +19 -0
  20. package/@antv/g-web-animations-api@2.1.28/es2022/g-web-animations-api.mjs +17 -0
  21. package/@antv/g@^6.1.11 +6 -0
  22. package/@antv/g@^6.1.28 +6 -0
  23. package/@antv/graphlib@^2.0.4 +3 -0
  24. package/@antv/hierarchy@^0.7.1 +3 -0
  25. package/@antv/layout@^2.0.0 +2 -0
  26. package/@antv/scale@^0.4.16 +5 -0
  27. package/@antv/util@^2.0.13 +3 -0
  28. package/@antv/util@^3.3.10 +4 -0
  29. package/@antv/util@^3.3.11 +4 -0
  30. package/@antv/util@^3.3.5 +4 -0
  31. package/animate.css@4.1.1/animate.css +4072 -0
  32. package/echarts@6.0.0/es2022/lib/animation/basicTransition.mjs +3 -0
  33. package/echarts@6.0.0/es2022/lib/animation/customGraphicKeyframeAnimation.mjs +3 -0
  34. package/echarts@6.0.0/es2022/lib/animation/customGraphicTransition.mjs +3 -0
  35. package/echarts@6.0.0/es2022/lib/animation/morphTransitionHelper.mjs +3 -0
  36. package/echarts@6.0.0/es2022/lib/animation/universalTransition.mjs +3 -0
  37. package/echarts@6.0.0/es2022/lib/chart/bar/BarSeries.mjs +3 -0
  38. package/echarts@6.0.0/es2022/lib/chart/bar/BarView.mjs +3 -0
  39. package/echarts@6.0.0/es2022/lib/chart/bar/BaseBarSeries.mjs +3 -0
  40. package/echarts@6.0.0/es2022/lib/chart/bar/PictorialBarSeries.mjs +3 -0
  41. package/echarts@6.0.0/es2022/lib/chart/bar/PictorialBarView.mjs +3 -0
  42. package/echarts@6.0.0/es2022/lib/chart/boxplot/BoxplotSeries.mjs +3 -0
  43. package/echarts@6.0.0/es2022/lib/chart/boxplot/BoxplotView.mjs +3 -0
  44. package/echarts@6.0.0/es2022/lib/chart/boxplot/boxplotLayout.mjs +3 -0
  45. package/echarts@6.0.0/es2022/lib/chart/boxplot/boxplotTransform.mjs +3 -0
  46. package/echarts@6.0.0/es2022/lib/chart/boxplot/prepareBoxplotData.mjs +3 -0
  47. package/echarts@6.0.0/es2022/lib/chart/candlestick/CandlestickSeries.mjs +3 -0
  48. package/echarts@6.0.0/es2022/lib/chart/candlestick/CandlestickView.mjs +3 -0
  49. package/echarts@6.0.0/es2022/lib/chart/candlestick/candlestickLayout.mjs +3 -0
  50. package/echarts@6.0.0/es2022/lib/chart/candlestick/candlestickVisual.mjs +3 -0
  51. package/echarts@6.0.0/es2022/lib/chart/candlestick/preprocessor.mjs +3 -0
  52. package/echarts@6.0.0/es2022/lib/chart/chord/ChordEdge.mjs +3 -0
  53. package/echarts@6.0.0/es2022/lib/chart/chord/ChordSeries.mjs +3 -0
  54. package/echarts@6.0.0/es2022/lib/chart/chord/ChordView.mjs +3 -0
  55. package/echarts@6.0.0/es2022/lib/chart/custom/CustomView.mjs +3 -0
  56. package/echarts@6.0.0/es2022/lib/chart/custom/customSeriesRegister.mjs +3 -0
  57. package/echarts@6.0.0/es2022/lib/chart/effectScatter/EffectScatterSeries.mjs +3 -0
  58. package/echarts@6.0.0/es2022/lib/chart/effectScatter/EffectScatterView.mjs +3 -0
  59. package/echarts@6.0.0/es2022/lib/chart/funnel/FunnelSeries.mjs +3 -0
  60. package/echarts@6.0.0/es2022/lib/chart/funnel/FunnelView.mjs +3 -0
  61. package/echarts@6.0.0/es2022/lib/chart/funnel/funnelLayout.mjs +3 -0
  62. package/echarts@6.0.0/es2022/lib/chart/gauge/GaugeSeries.mjs +3 -0
  63. package/echarts@6.0.0/es2022/lib/chart/gauge/GaugeView.mjs +3 -0
  64. package/echarts@6.0.0/es2022/lib/chart/graph/GraphSeries.mjs +3 -0
  65. package/echarts@6.0.0/es2022/lib/chart/graph/GraphView.mjs +3 -0
  66. package/echarts@6.0.0/es2022/lib/chart/graph/adjustEdge.mjs +3 -0
  67. package/echarts@6.0.0/es2022/lib/chart/graph/categoryFilter.mjs +3 -0
  68. package/echarts@6.0.0/es2022/lib/chart/graph/categoryVisual.mjs +3 -0
  69. package/echarts@6.0.0/es2022/lib/chart/graph/circularLayout.mjs +3 -0
  70. package/echarts@6.0.0/es2022/lib/chart/graph/createView.mjs +3 -0
  71. package/echarts@6.0.0/es2022/lib/chart/graph/edgeVisual.mjs +3 -0
  72. package/echarts@6.0.0/es2022/lib/chart/graph/forceHelper.mjs +3 -0
  73. package/echarts@6.0.0/es2022/lib/chart/graph/forceLayout.mjs +3 -0
  74. package/echarts@6.0.0/es2022/lib/chart/graph/graphHelper.mjs +3 -0
  75. package/echarts@6.0.0/es2022/lib/chart/graph/simpleLayout.mjs +3 -0
  76. package/echarts@6.0.0/es2022/lib/chart/graph/simpleLayoutHelper.mjs +3 -0
  77. package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapLayer.mjs +3 -0
  78. package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapSeries.mjs +3 -0
  79. package/echarts@6.0.0/es2022/lib/chart/heatmap/HeatmapView.mjs +3 -0
  80. package/echarts@6.0.0/es2022/lib/chart/helper/EffectLine.mjs +3 -0
  81. package/echarts@6.0.0/es2022/lib/chart/helper/EffectSymbol.mjs +3 -0
  82. package/echarts@6.0.0/es2022/lib/chart/helper/LargeLineDraw.mjs +3 -0
  83. package/echarts@6.0.0/es2022/lib/chart/helper/Line.mjs +3 -0
  84. package/echarts@6.0.0/es2022/lib/chart/helper/LineDraw.mjs +3 -0
  85. package/echarts@6.0.0/es2022/lib/chart/helper/LinePath.mjs +3 -0
  86. package/echarts@6.0.0/es2022/lib/chart/helper/Polyline.mjs +3 -0
  87. package/echarts@6.0.0/es2022/lib/chart/helper/Symbol.mjs +3 -0
  88. package/echarts@6.0.0/es2022/lib/chart/helper/SymbolDraw.mjs +3 -0
  89. package/echarts@6.0.0/es2022/lib/chart/helper/createClipPathFromCoordSys.mjs +3 -0
  90. package/echarts@6.0.0/es2022/lib/chart/helper/createRenderPlanner.mjs +3 -0
  91. package/echarts@6.0.0/es2022/lib/chart/helper/createSeriesData.mjs +3 -0
  92. package/echarts@6.0.0/es2022/lib/chart/helper/createSeriesDataSimply.mjs +3 -0
  93. package/echarts@6.0.0/es2022/lib/chart/helper/enableAriaDecalForTree.mjs +3 -0
  94. package/echarts@6.0.0/es2022/lib/chart/helper/labelHelper.mjs +3 -0
  95. package/echarts@6.0.0/es2022/lib/chart/helper/multipleGraphEdgeHelper.mjs +3 -0
  96. package/echarts@6.0.0/es2022/lib/chart/helper/treeHelper.mjs +3 -0
  97. package/echarts@6.0.0/es2022/lib/chart/helper/whiskerBoxCommon.mjs +3 -0
  98. package/echarts@6.0.0/es2022/lib/chart/line/LineSeries.mjs +3 -0
  99. package/echarts@6.0.0/es2022/lib/chart/line/LineView.mjs +3 -0
  100. package/echarts@6.0.0/es2022/lib/chart/line/helper.mjs +3 -0
  101. package/echarts@6.0.0/es2022/lib/chart/line/lineAnimationDiff.mjs +3 -0
  102. package/echarts@6.0.0/es2022/lib/chart/line/poly.mjs +3 -0
  103. package/echarts@6.0.0/es2022/lib/chart/lines/LinesSeries.mjs +3 -0
  104. package/echarts@6.0.0/es2022/lib/chart/lines/LinesView.mjs +3 -0
  105. package/echarts@6.0.0/es2022/lib/chart/lines/linesLayout.mjs +3 -0
  106. package/echarts@6.0.0/es2022/lib/chart/lines/linesVisual.mjs +3 -0
  107. package/echarts@6.0.0/es2022/lib/chart/map/MapSeries.mjs +3 -0
  108. package/echarts@6.0.0/es2022/lib/chart/map/MapView.mjs +3 -0
  109. package/echarts@6.0.0/es2022/lib/chart/map/mapDataStatistic.mjs +3 -0
  110. package/echarts@6.0.0/es2022/lib/chart/map/mapSymbolLayout.mjs +3 -0
  111. package/echarts@6.0.0/es2022/lib/chart/parallel/ParallelSeries.mjs +3 -0
  112. package/echarts@6.0.0/es2022/lib/chart/parallel/ParallelView.mjs +3 -0
  113. package/echarts@6.0.0/es2022/lib/chart/parallel/parallelVisual.mjs +3 -0
  114. package/echarts@6.0.0/es2022/lib/chart/pie/PieSeries.mjs +3 -0
  115. package/echarts@6.0.0/es2022/lib/chart/pie/PieView.mjs +3 -0
  116. package/echarts@6.0.0/es2022/lib/chart/pie/pieLayout.mjs +3 -0
  117. package/echarts@6.0.0/es2022/lib/chart/radar/RadarSeries.mjs +3 -0
  118. package/echarts@6.0.0/es2022/lib/chart/radar/RadarView.mjs +3 -0
  119. package/echarts@6.0.0/es2022/lib/chart/radar/backwardCompat.mjs +3 -0
  120. package/echarts@6.0.0/es2022/lib/chart/radar/radarLayout.mjs +3 -0
  121. package/echarts@6.0.0/es2022/lib/chart/sankey/SankeySeries.mjs +3 -0
  122. package/echarts@6.0.0/es2022/lib/chart/sankey/SankeyView.mjs +3 -0
  123. package/echarts@6.0.0/es2022/lib/chart/sankey/sankeyLayout.mjs +3 -0
  124. package/echarts@6.0.0/es2022/lib/chart/sankey/sankeyVisual.mjs +3 -0
  125. package/echarts@6.0.0/es2022/lib/chart/scatter/ScatterSeries.mjs +3 -0
  126. package/echarts@6.0.0/es2022/lib/chart/scatter/jitterLayout.mjs +3 -0
  127. package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstPiece.mjs +3 -0
  128. package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstSeries.mjs +3 -0
  129. package/echarts@6.0.0/es2022/lib/chart/sunburst/SunburstView.mjs +3 -0
  130. package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstAction.mjs +3 -0
  131. package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstLayout.mjs +3 -0
  132. package/echarts@6.0.0/es2022/lib/chart/sunburst/sunburstVisual.mjs +3 -0
  133. package/echarts@6.0.0/es2022/lib/chart/themeRiver/ThemeRiverSeries.mjs +3 -0
  134. package/echarts@6.0.0/es2022/lib/chart/themeRiver/ThemeRiverView.mjs +3 -0
  135. package/echarts@6.0.0/es2022/lib/chart/themeRiver/themeRiverLayout.mjs +3 -0
  136. package/echarts@6.0.0/es2022/lib/chart/tree/TreeSeries.mjs +3 -0
  137. package/echarts@6.0.0/es2022/lib/chart/tree/TreeView.mjs +3 -0
  138. package/echarts@6.0.0/es2022/lib/chart/tree/layoutHelper.mjs +3 -0
  139. package/echarts@6.0.0/es2022/lib/chart/tree/treeAction.mjs +3 -0
  140. package/echarts@6.0.0/es2022/lib/chart/tree/treeVisual.mjs +3 -0
  141. package/echarts@6.0.0/es2022/lib/chart/treemap/Breadcrumb.mjs +3 -0
  142. package/echarts@6.0.0/es2022/lib/chart/treemap/TreemapSeries.mjs +3 -0
  143. package/echarts@6.0.0/es2022/lib/chart/treemap/TreemapView.mjs +3 -0
  144. package/echarts@6.0.0/es2022/lib/chart/treemap/treemapLayout.mjs +3 -0
  145. package/echarts@6.0.0/es2022/lib/chart/treemap/treemapVisual.mjs +3 -0
  146. package/echarts@6.0.0/es2022/lib/component/aria/install.mjs +3 -0
  147. package/echarts@6.0.0/es2022/lib/component/aria/preprocessor.mjs +3 -0
  148. package/echarts@6.0.0/es2022/lib/component/axis/AngleAxisView.mjs +3 -0
  149. package/echarts@6.0.0/es2022/lib/component/axis/AxisBuilder.mjs +3 -0
  150. package/echarts@6.0.0/es2022/lib/component/axis/CartesianAxisView.mjs +3 -0
  151. package/echarts@6.0.0/es2022/lib/component/axis/ParallelAxisView.mjs +3 -0
  152. package/echarts@6.0.0/es2022/lib/component/axis/RadiusAxisView.mjs +3 -0
  153. package/echarts@6.0.0/es2022/lib/component/axis/SingleAxisView.mjs +3 -0
  154. package/echarts@6.0.0/es2022/lib/component/axis/axisAction.mjs +3 -0
  155. package/echarts@6.0.0/es2022/lib/component/axis/axisBreakHelper.mjs +3 -0
  156. package/echarts@6.0.0/es2022/lib/component/axis/axisBreakHelperImpl.mjs +3 -0
  157. package/echarts@6.0.0/es2022/lib/component/axis/axisSplitHelper.mjs +3 -0
  158. package/echarts@6.0.0/es2022/lib/component/axis/installBreak.mjs +3 -0
  159. package/echarts@6.0.0/es2022/lib/component/axis/parallelAxisAction.mjs +3 -0
  160. package/echarts@6.0.0/es2022/lib/component/axisPointer/AxisPointerModel.mjs +3 -0
  161. package/echarts@6.0.0/es2022/lib/component/axisPointer/AxisPointerView.mjs +3 -0
  162. package/echarts@6.0.0/es2022/lib/component/axisPointer/BaseAxisPointer.mjs +3 -0
  163. package/echarts@6.0.0/es2022/lib/component/axisPointer/CartesianAxisPointer.mjs +3 -0
  164. package/echarts@6.0.0/es2022/lib/component/axisPointer/PolarAxisPointer.mjs +3 -0
  165. package/echarts@6.0.0/es2022/lib/component/axisPointer/SingleAxisPointer.mjs +3 -0
  166. package/echarts@6.0.0/es2022/lib/component/axisPointer/axisTrigger.mjs +3 -0
  167. package/echarts@6.0.0/es2022/lib/component/axisPointer/findPointFromSeries.mjs +3 -0
  168. package/echarts@6.0.0/es2022/lib/component/axisPointer/globalListener.mjs +3 -0
  169. package/echarts@6.0.0/es2022/lib/component/axisPointer/install.mjs +3 -0
  170. package/echarts@6.0.0/es2022/lib/component/axisPointer/modelHelper.mjs +3 -0
  171. package/echarts@6.0.0/es2022/lib/component/axisPointer/viewHelper.mjs +3 -0
  172. package/echarts@6.0.0/es2022/lib/component/brush/BrushModel.mjs +3 -0
  173. package/echarts@6.0.0/es2022/lib/component/brush/BrushView.mjs +3 -0
  174. package/echarts@6.0.0/es2022/lib/component/brush/install.mjs +3 -0
  175. package/echarts@6.0.0/es2022/lib/component/brush/preprocessor.mjs +3 -0
  176. package/echarts@6.0.0/es2022/lib/component/brush/selector.mjs +3 -0
  177. package/echarts@6.0.0/es2022/lib/component/brush/visualEncoding.mjs +3 -0
  178. package/echarts@6.0.0/es2022/lib/component/calendar/install.mjs +3 -0
  179. package/echarts@6.0.0/es2022/lib/component/dataZoom/DataZoomModel.mjs +3 -0
  180. package/echarts@6.0.0/es2022/lib/component/dataZoom/InsideZoomModel.mjs +3 -0
  181. package/echarts@6.0.0/es2022/lib/component/dataZoom/InsideZoomView.mjs +3 -0
  182. package/echarts@6.0.0/es2022/lib/component/dataZoom/SliderZoomModel.mjs +3 -0
  183. package/echarts@6.0.0/es2022/lib/component/dataZoom/SliderZoomView.mjs +3 -0
  184. package/echarts@6.0.0/es2022/lib/component/dataZoom/dataZoomAction.mjs +3 -0
  185. package/echarts@6.0.0/es2022/lib/component/dataZoom/dataZoomProcessor.mjs +3 -0
  186. package/echarts@6.0.0/es2022/lib/component/dataZoom/helper.mjs +3 -0
  187. package/echarts@6.0.0/es2022/lib/component/dataZoom/history.mjs +3 -0
  188. package/echarts@6.0.0/es2022/lib/component/dataZoom/install.mjs +3 -0
  189. package/echarts@6.0.0/es2022/lib/component/dataZoom/installCommon.mjs +3 -0
  190. package/echarts@6.0.0/es2022/lib/component/dataZoom/installDataZoomInside.mjs +3 -0
  191. package/echarts@6.0.0/es2022/lib/component/dataZoom/installDataZoomSlider.mjs +3 -0
  192. package/echarts@6.0.0/es2022/lib/component/dataZoom/roams.mjs +3 -0
  193. package/echarts@6.0.0/es2022/lib/component/dataset/install.mjs +3 -0
  194. package/echarts@6.0.0/es2022/lib/component/geo/GeoView.mjs +3 -0
  195. package/echarts@6.0.0/es2022/lib/component/geo/install.mjs +3 -0
  196. package/echarts@6.0.0/es2022/lib/component/graphic/GraphicModel.mjs +3 -0
  197. package/echarts@6.0.0/es2022/lib/component/graphic/GraphicView.mjs +3 -0
  198. package/echarts@6.0.0/es2022/lib/component/graphic/install.mjs +3 -0
  199. package/echarts@6.0.0/es2022/lib/component/grid/install.mjs +3 -0
  200. package/echarts@6.0.0/es2022/lib/component/grid/installSimple.mjs +3 -0
  201. package/echarts@6.0.0/es2022/lib/component/helper/BrushTargetManager.mjs +3 -0
  202. package/echarts@6.0.0/es2022/lib/component/helper/MapDraw.mjs +3 -0
  203. package/echarts@6.0.0/es2022/lib/component/helper/RoamController.mjs +3 -0
  204. package/echarts@6.0.0/es2022/lib/component/helper/brushHelper.mjs +3 -0
  205. package/echarts@6.0.0/es2022/lib/component/helper/cursorHelper.mjs +3 -0
  206. package/echarts@6.0.0/es2022/lib/component/helper/interactionMutex.mjs +3 -0
  207. package/echarts@6.0.0/es2022/lib/component/helper/listComponent.mjs +3 -0
  208. package/echarts@6.0.0/es2022/lib/component/helper/sliderMove.mjs +3 -0
  209. package/echarts@6.0.0/es2022/lib/component/helper/thumbnailBridge.mjs +3 -0
  210. package/echarts@6.0.0/es2022/lib/component/legend/LegendModel.mjs +3 -0
  211. package/echarts@6.0.0/es2022/lib/component/legend/LegendView.mjs +4 -0
  212. package/echarts@6.0.0/es2022/lib/component/legend/ScrollableLegendModel.mjs +3 -0
  213. package/echarts@6.0.0/es2022/lib/component/legend/ScrollableLegendView.mjs +3 -0
  214. package/echarts@6.0.0/es2022/lib/component/legend/install.mjs +3 -0
  215. package/echarts@6.0.0/es2022/lib/component/legend/installLegendPlain.mjs +3 -0
  216. package/echarts@6.0.0/es2022/lib/component/legend/installLegendScroll.mjs +3 -0
  217. package/echarts@6.0.0/es2022/lib/component/legend/legendAction.mjs +4 -0
  218. package/echarts@6.0.0/es2022/lib/component/legend/legendFilter.mjs +3 -0
  219. package/echarts@6.0.0/es2022/lib/component/legend/scrollableLegendAction.mjs +3 -0
  220. package/echarts@6.0.0/es2022/lib/component/marker/MarkAreaModel.mjs +3 -0
  221. package/echarts@6.0.0/es2022/lib/component/marker/MarkAreaView.mjs +3 -0
  222. package/echarts@6.0.0/es2022/lib/component/marker/MarkLineModel.mjs +3 -0
  223. package/echarts@6.0.0/es2022/lib/component/marker/MarkLineView.mjs +3 -0
  224. package/echarts@6.0.0/es2022/lib/component/marker/MarkPointModel.mjs +3 -0
  225. package/echarts@6.0.0/es2022/lib/component/marker/MarkPointView.mjs +3 -0
  226. package/echarts@6.0.0/es2022/lib/component/marker/MarkerModel.mjs +3 -0
  227. package/echarts@6.0.0/es2022/lib/component/marker/MarkerView.mjs +3 -0
  228. package/echarts@6.0.0/es2022/lib/component/marker/checkMarkerInSeries.mjs +3 -0
  229. package/echarts@6.0.0/es2022/lib/component/marker/installMarkArea.mjs +3 -0
  230. package/echarts@6.0.0/es2022/lib/component/marker/installMarkLine.mjs +3 -0
  231. package/echarts@6.0.0/es2022/lib/component/marker/installMarkPoint.mjs +3 -0
  232. package/echarts@6.0.0/es2022/lib/component/marker/markerHelper.mjs +3 -0
  233. package/echarts@6.0.0/es2022/lib/component/matrix/MatrixView.mjs +3 -0
  234. package/echarts@6.0.0/es2022/lib/component/matrix/install.mjs +3 -0
  235. package/echarts@6.0.0/es2022/lib/component/parallel/ParallelView.mjs +3 -0
  236. package/echarts@6.0.0/es2022/lib/component/parallel/install.mjs +3 -0
  237. package/echarts@6.0.0/es2022/lib/component/polar/install.mjs +3 -0
  238. package/echarts@6.0.0/es2022/lib/component/radar/RadarView.mjs +3 -0
  239. package/echarts@6.0.0/es2022/lib/component/radar/install.mjs +3 -0
  240. package/echarts@6.0.0/es2022/lib/component/singleAxis/install.mjs +3 -0
  241. package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailBridgeImpl.mjs +3 -0
  242. package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailModel.mjs +3 -0
  243. package/echarts@6.0.0/es2022/lib/component/thumbnail/ThumbnailView.mjs +3 -0
  244. package/echarts@6.0.0/es2022/lib/component/thumbnail/install.mjs +3 -0
  245. package/echarts@6.0.0/es2022/lib/component/timeline/SliderTimelineModel.mjs +3 -0
  246. package/echarts@6.0.0/es2022/lib/component/timeline/SliderTimelineView.mjs +3 -0
  247. package/echarts@6.0.0/es2022/lib/component/timeline/TimelineAxis.mjs +3 -0
  248. package/echarts@6.0.0/es2022/lib/component/timeline/TimelineModel.mjs +3 -0
  249. package/echarts@6.0.0/es2022/lib/component/timeline/TimelineView.mjs +3 -0
  250. package/echarts@6.0.0/es2022/lib/component/timeline/install.mjs +3 -0
  251. package/echarts@6.0.0/es2022/lib/component/timeline/preprocessor.mjs +3 -0
  252. package/echarts@6.0.0/es2022/lib/component/timeline/timelineAction.mjs +3 -0
  253. package/echarts@6.0.0/es2022/lib/component/title/install.mjs +3 -0
  254. package/echarts@6.0.0/es2022/lib/component/toolbox/ToolboxModel.mjs +3 -0
  255. package/echarts@6.0.0/es2022/lib/component/toolbox/ToolboxView.mjs +3 -0
  256. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/Brush.mjs +3 -0
  257. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/DataView.mjs +20 -0
  258. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/DataZoom.mjs +3 -0
  259. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/MagicType.mjs +3 -0
  260. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/Restore.mjs +3 -0
  261. package/echarts@6.0.0/es2022/lib/component/toolbox/feature/SaveAsImage.mjs +3 -0
  262. package/echarts@6.0.0/es2022/lib/component/toolbox/featureManager.mjs +3 -0
  263. package/echarts@6.0.0/es2022/lib/component/toolbox/install.mjs +3 -0
  264. package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipHTMLContent.mjs +3 -0
  265. package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipRichContent.mjs +3 -0
  266. package/echarts@6.0.0/es2022/lib/component/tooltip/TooltipView.mjs +5 -0
  267. package/echarts@6.0.0/es2022/lib/component/tooltip/helper.mjs +3 -0
  268. package/echarts@6.0.0/es2022/lib/component/tooltip/install.mjs +3 -0
  269. package/echarts@6.0.0/es2022/lib/component/tooltip/seriesFormatTooltip.mjs +3 -0
  270. package/echarts@6.0.0/es2022/lib/component/tooltip/tooltipMarkup.mjs +9 -0
  271. package/echarts@6.0.0/es2022/lib/component/transform/install.mjs +3 -0
  272. package/echarts@6.0.0/es2022/lib/component/transform/sortTransform.mjs +3 -0
  273. package/echarts@6.0.0/es2022/lib/component/visualMap/ContinuousView.mjs +3 -0
  274. package/echarts@6.0.0/es2022/lib/component/visualMap/PiecewiseModel.mjs +3 -0
  275. package/echarts@6.0.0/es2022/lib/component/visualMap/PiecewiseView.mjs +3 -0
  276. package/echarts@6.0.0/es2022/lib/component/visualMap/VisualMapModel.mjs +3 -0
  277. package/echarts@6.0.0/es2022/lib/component/visualMap/VisualMapView.mjs +3 -0
  278. package/echarts@6.0.0/es2022/lib/component/visualMap/helper.mjs +3 -0
  279. package/echarts@6.0.0/es2022/lib/component/visualMap/install.mjs +3 -0
  280. package/echarts@6.0.0/es2022/lib/component/visualMap/installCommon.mjs +3 -0
  281. package/echarts@6.0.0/es2022/lib/component/visualMap/installVisualMapContinuous.mjs +3 -0
  282. package/echarts@6.0.0/es2022/lib/component/visualMap/installVisualMapPiecewise.mjs +3 -0
  283. package/echarts@6.0.0/es2022/lib/component/visualMap/preprocessor.mjs +3 -0
  284. package/echarts@6.0.0/es2022/lib/component/visualMap/visualEncoding.mjs +3 -0
  285. package/echarts@6.0.0/es2022/lib/component/visualMap/visualMapAction.mjs +3 -0
  286. package/echarts@6.0.0/es2022/lib/coord/Axis.mjs +3 -0
  287. package/echarts@6.0.0/es2022/lib/coord/CoordinateSystem.mjs +3 -0
  288. package/echarts@6.0.0/es2022/lib/coord/View.mjs +3 -0
  289. package/echarts@6.0.0/es2022/lib/coord/axisAlignTicks.mjs +3 -0
  290. package/echarts@6.0.0/es2022/lib/coord/axisCommonTypes.mjs +3 -0
  291. package/echarts@6.0.0/es2022/lib/coord/axisHelper.mjs +3 -0
  292. package/echarts@6.0.0/es2022/lib/coord/axisModelCreator.mjs +3 -0
  293. package/echarts@6.0.0/es2022/lib/coord/axisTickLabelBuilder.mjs +3 -0
  294. package/echarts@6.0.0/es2022/lib/coord/calendar/CalendarModel.mjs +3 -0
  295. package/echarts@6.0.0/es2022/lib/coord/calendar/prepareCustom.mjs +3 -0
  296. package/echarts@6.0.0/es2022/lib/coord/cartesian/Axis2D.mjs +3 -0
  297. package/echarts@6.0.0/es2022/lib/coord/cartesian/AxisModel.mjs +3 -0
  298. package/echarts@6.0.0/es2022/lib/coord/cartesian/Cartesian.mjs +3 -0
  299. package/echarts@6.0.0/es2022/lib/coord/cartesian/Cartesian2D.mjs +3 -0
  300. package/echarts@6.0.0/es2022/lib/coord/cartesian/Grid.mjs +3 -0
  301. package/echarts@6.0.0/es2022/lib/coord/cartesian/GridModel.mjs +3 -0
  302. package/echarts@6.0.0/es2022/lib/coord/cartesian/cartesianAxisHelper.mjs +3 -0
  303. package/echarts@6.0.0/es2022/lib/coord/cartesian/legacyContainLabel.mjs +3 -0
  304. package/echarts@6.0.0/es2022/lib/coord/cartesian/prepareCustom.mjs +3 -0
  305. package/echarts@6.0.0/es2022/lib/coord/geo/Geo.mjs +3 -0
  306. package/echarts@6.0.0/es2022/lib/coord/geo/GeoJSONResource.mjs +4 -0
  307. package/echarts@6.0.0/es2022/lib/coord/geo/GeoModel.mjs +3 -0
  308. package/echarts@6.0.0/es2022/lib/coord/geo/GeoSVGResource.mjs +4 -0
  309. package/echarts@6.0.0/es2022/lib/coord/geo/Region.mjs +3 -0
  310. package/echarts@6.0.0/es2022/lib/coord/geo/fix/diaoyuIsland.mjs +3 -0
  311. package/echarts@6.0.0/es2022/lib/coord/geo/fix/nanhai.mjs +3 -0
  312. package/echarts@6.0.0/es2022/lib/coord/geo/fix/textCoord.mjs +3 -0
  313. package/echarts@6.0.0/es2022/lib/coord/geo/geoCreator.mjs +3 -0
  314. package/echarts@6.0.0/es2022/lib/coord/geo/geoSourceManager.mjs +3 -0
  315. package/echarts@6.0.0/es2022/lib/coord/geo/parseGeoJson.mjs +3 -0
  316. package/echarts@6.0.0/es2022/lib/coord/geo/prepareCustom.mjs +3 -0
  317. package/echarts@6.0.0/es2022/lib/coord/matrix/Matrix.mjs +3 -0
  318. package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixBodyCorner.mjs +3 -0
  319. package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixDim.mjs +3 -0
  320. package/echarts@6.0.0/es2022/lib/coord/matrix/MatrixModel.mjs +3 -0
  321. package/echarts@6.0.0/es2022/lib/coord/matrix/matrixCoordHelper.mjs +3 -0
  322. package/echarts@6.0.0/es2022/lib/coord/parallel/AxisModel.mjs +3 -0
  323. package/echarts@6.0.0/es2022/lib/coord/parallel/Parallel.mjs +3 -0
  324. package/echarts@6.0.0/es2022/lib/coord/parallel/ParallelModel.mjs +3 -0
  325. package/echarts@6.0.0/es2022/lib/coord/parallel/parallelCreator.mjs +3 -0
  326. package/echarts@6.0.0/es2022/lib/coord/parallel/parallelPreprocessor.mjs +3 -0
  327. package/echarts@6.0.0/es2022/lib/coord/polar/AngleAxis.mjs +3 -0
  328. package/echarts@6.0.0/es2022/lib/coord/polar/AxisModel.mjs +3 -0
  329. package/echarts@6.0.0/es2022/lib/coord/polar/Polar.mjs +3 -0
  330. package/echarts@6.0.0/es2022/lib/coord/polar/PolarModel.mjs +3 -0
  331. package/echarts@6.0.0/es2022/lib/coord/polar/RadiusAxis.mjs +3 -0
  332. package/echarts@6.0.0/es2022/lib/coord/polar/polarCreator.mjs +3 -0
  333. package/echarts@6.0.0/es2022/lib/coord/polar/prepareCustom.mjs +3 -0
  334. package/echarts@6.0.0/es2022/lib/coord/radar/Radar.mjs +3 -0
  335. package/echarts@6.0.0/es2022/lib/coord/radar/RadarModel.mjs +3 -0
  336. package/echarts@6.0.0/es2022/lib/coord/scaleRawExtentInfo.mjs +3 -0
  337. package/echarts@6.0.0/es2022/lib/coord/single/AxisModel.mjs +3 -0
  338. package/echarts@6.0.0/es2022/lib/coord/single/Single.mjs +3 -0
  339. package/echarts@6.0.0/es2022/lib/coord/single/SingleAxis.mjs +3 -0
  340. package/echarts@6.0.0/es2022/lib/coord/single/prepareCustom.mjs +3 -0
  341. package/echarts@6.0.0/es2022/lib/coord/single/singleAxisHelper.mjs +3 -0
  342. package/echarts@6.0.0/es2022/lib/coord/single/singleCreator.mjs +3 -0
  343. package/echarts@6.0.0/es2022/lib/core/CoordinateSystem.mjs +3 -0
  344. package/echarts@6.0.0/es2022/lib/core/ExtensionAPI.mjs +3 -0
  345. package/echarts@6.0.0/es2022/lib/core/Scheduler.mjs +3 -0
  346. package/echarts@6.0.0/es2022/lib/core/echarts.mjs +3 -0
  347. package/echarts@6.0.0/es2022/lib/core/impl.mjs +3 -0
  348. package/echarts@6.0.0/es2022/lib/core/lifecycle.mjs +3 -0
  349. package/echarts@6.0.0/es2022/lib/core/locale.mjs +3 -0
  350. package/echarts@6.0.0/es2022/lib/core/task.mjs +3 -0
  351. package/echarts@6.0.0/es2022/lib/data/DataDiffer.mjs +3 -0
  352. package/echarts@6.0.0/es2022/lib/data/DataStore.mjs +3 -0
  353. package/echarts@6.0.0/es2022/lib/data/OrdinalMeta.mjs +3 -0
  354. package/echarts@6.0.0/es2022/lib/data/SeriesData.mjs +3 -0
  355. package/echarts@6.0.0/es2022/lib/data/SeriesDimensionDefine.mjs +3 -0
  356. package/echarts@6.0.0/es2022/lib/data/Source.mjs +3 -0
  357. package/echarts@6.0.0/es2022/lib/data/helper/SeriesDataSchema.mjs +3 -0
  358. package/echarts@6.0.0/es2022/lib/data/helper/createDimensions.mjs +3 -0
  359. package/echarts@6.0.0/es2022/lib/data/helper/dataProvider.mjs +3 -0
  360. package/echarts@6.0.0/es2022/lib/data/helper/dataStackHelper.mjs +3 -0
  361. package/echarts@6.0.0/es2022/lib/data/helper/dataValueHelper.mjs +3 -0
  362. package/echarts@6.0.0/es2022/lib/data/helper/dimensionHelper.mjs +3 -0
  363. package/echarts@6.0.0/es2022/lib/data/helper/sourceHelper.mjs +3 -0
  364. package/echarts@6.0.0/es2022/lib/data/helper/sourceManager.mjs +3 -0
  365. package/echarts@6.0.0/es2022/lib/data/helper/transform.mjs +3 -0
  366. package/echarts@6.0.0/es2022/lib/export/api/format.mjs +3 -0
  367. package/echarts@6.0.0/es2022/lib/export/api/graphic.mjs +3 -0
  368. package/echarts@6.0.0/es2022/lib/export/api/helper.mjs +3 -0
  369. package/echarts@6.0.0/es2022/lib/export/api/number.mjs +3 -0
  370. package/echarts@6.0.0/es2022/lib/export/api/time.mjs +3 -0
  371. package/echarts@6.0.0/es2022/lib/export/api/util.mjs +3 -0
  372. package/echarts@6.0.0/es2022/lib/export/api.mjs +3 -0
  373. package/echarts@6.0.0/es2022/lib/i18n/langEN.mjs +3 -0
  374. package/echarts@6.0.0/es2022/lib/i18n/langZH.mjs +3 -0
  375. package/echarts@6.0.0/es2022/lib/label/LabelManager.mjs +3 -0
  376. package/echarts@6.0.0/es2022/lib/label/installLabelLayout.mjs +3 -0
  377. package/echarts@6.0.0/es2022/lib/label/labelGuideHelper.mjs +3 -0
  378. package/echarts@6.0.0/es2022/lib/label/labelLayoutHelper.mjs +3 -0
  379. package/echarts@6.0.0/es2022/lib/label/labelStyle.mjs +3 -0
  380. package/echarts@6.0.0/es2022/lib/label/sectorLabel.mjs +3 -0
  381. package/echarts@6.0.0/es2022/lib/layout/barGrid.mjs +3 -0
  382. package/echarts@6.0.0/es2022/lib/layout/barPolar.mjs +3 -0
  383. package/echarts@6.0.0/es2022/lib/layout/points.mjs +3 -0
  384. package/echarts@6.0.0/es2022/lib/legacy/dataSelectAction.mjs +3 -0
  385. package/echarts@6.0.0/es2022/lib/loading/default.mjs +3 -0
  386. package/echarts@6.0.0/es2022/lib/model/Component.mjs +3 -0
  387. package/echarts@6.0.0/es2022/lib/model/Global.mjs +3 -0
  388. package/echarts@6.0.0/es2022/lib/model/Model.mjs +3 -0
  389. package/echarts@6.0.0/es2022/lib/model/OptionManager.mjs +3 -0
  390. package/echarts@6.0.0/es2022/lib/model/Series.mjs +3 -0
  391. package/echarts@6.0.0/es2022/lib/model/globalDefault.mjs +3 -0
  392. package/echarts@6.0.0/es2022/lib/model/internalComponentCreator.mjs +3 -0
  393. package/echarts@6.0.0/es2022/lib/model/mixin/areaStyle.mjs +3 -0
  394. package/echarts@6.0.0/es2022/lib/model/mixin/dataFormat.mjs +3 -0
  395. package/echarts@6.0.0/es2022/lib/model/mixin/itemStyle.mjs +3 -0
  396. package/echarts@6.0.0/es2022/lib/model/mixin/lineStyle.mjs +3 -0
  397. package/echarts@6.0.0/es2022/lib/model/mixin/makeStyleMapper.mjs +3 -0
  398. package/echarts@6.0.0/es2022/lib/model/mixin/palette.mjs +3 -0
  399. package/echarts@6.0.0/es2022/lib/model/mixin/textStyle.mjs +3 -0
  400. package/echarts@6.0.0/es2022/lib/model/referHelper.mjs +3 -0
  401. package/echarts@6.0.0/es2022/lib/preprocessor/backwardCompat.mjs +3 -0
  402. package/echarts@6.0.0/es2022/lib/preprocessor/helper/compatStyle.mjs +3 -0
  403. package/echarts@6.0.0/es2022/lib/processor/dataFilter.mjs +3 -0
  404. package/echarts@6.0.0/es2022/lib/processor/dataSample.mjs +3 -0
  405. package/echarts@6.0.0/es2022/lib/processor/negativeDataFilter.mjs +3 -0
  406. package/echarts@6.0.0/es2022/lib/renderer/installCanvasRenderer.mjs +3 -0
  407. package/echarts@6.0.0/es2022/lib/renderer/installSVGRenderer.mjs +3 -0
  408. package/echarts@6.0.0/es2022/lib/scale/Log.mjs +3 -0
  409. package/echarts@6.0.0/es2022/lib/scale/Ordinal.mjs +3 -0
  410. package/echarts@6.0.0/es2022/lib/scale/Scale.mjs +3 -0
  411. package/echarts@6.0.0/es2022/lib/scale/Time.mjs +3 -0
  412. package/echarts@6.0.0/es2022/lib/scale/break.mjs +3 -0
  413. package/echarts@6.0.0/es2022/lib/scale/breakImpl.mjs +3 -0
  414. package/echarts@6.0.0/es2022/lib/scale/helper.mjs +3 -0
  415. package/echarts@6.0.0/es2022/lib/theme/dark.mjs +3 -0
  416. package/echarts@6.0.0/es2022/lib/util/ECEventProcessor.mjs +3 -0
  417. package/echarts@6.0.0/es2022/lib/util/animation.mjs +3 -0
  418. package/echarts@6.0.0/es2022/lib/util/clazz.mjs +3 -0
  419. package/echarts@6.0.0/es2022/lib/util/component.mjs +3 -0
  420. package/echarts@6.0.0/es2022/lib/util/decal.mjs +3 -0
  421. package/echarts@6.0.0/es2022/lib/util/event.mjs +3 -0
  422. package/echarts@6.0.0/es2022/lib/util/graphic.mjs +3 -0
  423. package/echarts@6.0.0/es2022/lib/util/jitter.mjs +3 -0
  424. package/echarts@6.0.0/es2022/lib/util/layout.mjs +3 -0
  425. package/echarts@6.0.0/es2022/lib/util/model.mjs +3 -0
  426. package/echarts@6.0.0/es2022/lib/util/number.mjs +3 -0
  427. package/echarts@6.0.0/es2022/lib/util/states.mjs +3 -0
  428. package/echarts@6.0.0/es2022/lib/util/styleCompat.mjs +3 -0
  429. package/echarts@6.0.0/es2022/lib/util/symbol.mjs +3 -0
  430. package/echarts@6.0.0/es2022/lib/util/time.mjs +3 -0
  431. package/echarts@6.0.0/es2022/lib/util/types.mjs +3 -0
  432. package/echarts@6.0.0/es2022/lib/util/vendor.mjs +3 -0
  433. package/echarts@6.0.0/es2022/lib/view/Chart.mjs +3 -0
  434. package/echarts@6.0.0/es2022/lib/view/Component.mjs +3 -0
  435. package/echarts@6.0.0/es2022/lib/visual/VisualMapping.mjs +3 -0
  436. package/echarts@6.0.0/es2022/lib/visual/aria.mjs +3 -0
  437. package/echarts@6.0.0/es2022/lib/visual/decal.mjs +3 -0
  438. package/echarts@6.0.0/es2022/lib/visual/helper.mjs +3 -0
  439. package/echarts@6.0.0/es2022/lib/visual/style.mjs +3 -0
  440. package/echarts@6.0.0/es2022/lib/visual/tokens.mjs +3 -0
  441. package/echarts@6.0.0/es2022/lib/visual/visualDefault.mjs +3 -0
  442. package/echarts@6.0.0/es2022/lib/visual/visualSolution.mjs +3 -0
  443. package/eventemitter3@^5.0.1 +3 -0
  444. package/gl-matrix@^3.3.0 +2 -0
  445. package/gl-matrix@^3.4.3 +2 -0
  446. package/package.json +1 -1
  447. package/zrender@6.0.0/es2022/lib/Element.mjs +3 -0
  448. package/zrender@6.0.0/es2022/lib/Handler.mjs +3 -0
  449. package/zrender@6.0.0/es2022/lib/Storage.mjs +3 -0
  450. package/zrender@6.0.0/es2022/lib/animation/Animation.mjs +3 -0
  451. package/zrender@6.0.0/es2022/lib/animation/Animator.mjs +3 -0
  452. package/zrender@6.0.0/es2022/lib/animation/cubicEasing.mjs +3 -0
  453. package/zrender@6.0.0/es2022/lib/animation/easing.mjs +3 -0
  454. package/zrender@6.0.0/es2022/lib/animation/requestAnimationFrame.mjs +3 -0
  455. package/zrender@6.0.0/es2022/lib/canvas/dashStyle.mjs +3 -0
  456. package/zrender@6.0.0/es2022/lib/canvas/graphic.mjs +3 -0
  457. package/zrender@6.0.0/es2022/lib/contain/line.mjs +3 -0
  458. package/zrender@6.0.0/es2022/lib/contain/polygon.mjs +3 -0
  459. package/zrender@6.0.0/es2022/lib/contain/quadratic.mjs +3 -0
  460. package/zrender@6.0.0/es2022/lib/contain/text.mjs +4 -0
  461. package/zrender@6.0.0/es2022/lib/contain/util.mjs +3 -0
  462. package/zrender@6.0.0/es2022/lib/contain/windingLine.mjs +3 -0
  463. package/zrender@6.0.0/es2022/lib/core/BoundingRect.mjs +3 -0
  464. package/zrender@6.0.0/es2022/lib/core/Eventful.mjs +3 -0
  465. package/zrender@6.0.0/es2022/lib/core/GestureMgr.mjs +3 -0
  466. package/zrender@6.0.0/es2022/lib/core/LRU.mjs +3 -0
  467. package/zrender@6.0.0/es2022/lib/core/PathProxy.mjs +3 -0
  468. package/zrender@6.0.0/es2022/lib/core/Point.mjs +3 -0
  469. package/zrender@6.0.0/es2022/lib/core/Transformable.mjs +3 -0
  470. package/zrender@6.0.0/es2022/lib/core/WeakMap.mjs +3 -0
  471. package/zrender@6.0.0/es2022/lib/core/bbox.mjs +3 -0
  472. package/zrender@6.0.0/es2022/lib/core/curve.mjs +3 -0
  473. package/zrender@6.0.0/es2022/lib/core/dom.mjs +3 -0
  474. package/zrender@6.0.0/es2022/lib/core/env.mjs +3 -0
  475. package/zrender@6.0.0/es2022/lib/core/event.mjs +3 -0
  476. package/zrender@6.0.0/es2022/lib/core/fourPointsTransform.mjs +3 -0
  477. package/zrender@6.0.0/es2022/lib/core/matrix.mjs +3 -0
  478. package/zrender@6.0.0/es2022/lib/core/platform.mjs +3 -0
  479. package/zrender@6.0.0/es2022/lib/core/timsort.mjs +3 -0
  480. package/zrender@6.0.0/es2022/lib/core/util.mjs +3 -0
  481. package/zrender@6.0.0/es2022/lib/core/vector.mjs +3 -0
  482. package/zrender@6.0.0/es2022/lib/dom/HandlerProxy.mjs +3 -0
  483. package/zrender@6.0.0/es2022/lib/graphic/CompoundPath.mjs +3 -0
  484. package/zrender@6.0.0/es2022/lib/graphic/Displayable.mjs +3 -0
  485. package/zrender@6.0.0/es2022/lib/graphic/Gradient.mjs +3 -0
  486. package/zrender@6.0.0/es2022/lib/graphic/Group.mjs +3 -0
  487. package/zrender@6.0.0/es2022/lib/graphic/Image.mjs +3 -0
  488. package/zrender@6.0.0/es2022/lib/graphic/IncrementalDisplayable.mjs +3 -0
  489. package/zrender@6.0.0/es2022/lib/graphic/LinearGradient.mjs +3 -0
  490. package/zrender@6.0.0/es2022/lib/graphic/Path.mjs +3 -0
  491. package/zrender@6.0.0/es2022/lib/graphic/RadialGradient.mjs +3 -0
  492. package/zrender@6.0.0/es2022/lib/graphic/constants.mjs +3 -0
  493. package/zrender@6.0.0/es2022/lib/graphic/helper/image.mjs +3 -0
  494. package/zrender@6.0.0/es2022/lib/graphic/helper/poly.mjs +3 -0
  495. package/zrender@6.0.0/es2022/lib/graphic/helper/roundRect.mjs +3 -0
  496. package/zrender@6.0.0/es2022/lib/graphic/helper/roundSector.mjs +3 -0
  497. package/zrender@6.0.0/es2022/lib/graphic/helper/smoothBezier.mjs +3 -0
  498. package/zrender@6.0.0/es2022/lib/graphic/helper/subPixelOptimize.mjs +3 -0
  499. package/zrender@6.0.0/es2022/lib/graphic/shape/Arc.mjs +3 -0
  500. package/zrender@6.0.0/es2022/lib/graphic/shape/Circle.mjs +3 -0
  501. package/zrender@6.0.0/es2022/lib/graphic/shape/Ellipse.mjs +3 -0
  502. package/zrender@6.0.0/es2022/lib/graphic/shape/Line.mjs +3 -0
  503. package/zrender@6.0.0/es2022/lib/graphic/shape/Polygon.mjs +3 -0
  504. package/zrender@6.0.0/es2022/lib/graphic/shape/Polyline.mjs +3 -0
  505. package/zrender@6.0.0/es2022/lib/graphic/shape/Rect.mjs +3 -0
  506. package/zrender@6.0.0/es2022/lib/graphic/shape/Ring.mjs +3 -0
  507. package/zrender@6.0.0/es2022/lib/graphic/shape/Sector.mjs +3 -0
  508. package/zrender@6.0.0/es2022/lib/mixin/Draggable.mjs +3 -0
  509. package/zrender@6.0.0/es2022/lib/svg/Painter.mjs +3 -0
  510. package/zrender@6.0.0/es2022/lib/svg/SVGPathRebuilder.mjs +3 -0
  511. package/zrender@6.0.0/es2022/lib/svg/core.mjs +5 -0
  512. package/zrender@6.0.0/es2022/lib/svg/cssAnimation.mjs +3 -0
  513. package/zrender@6.0.0/es2022/lib/svg/cssClassId.mjs +3 -0
  514. package/zrender@6.0.0/es2022/lib/svg/cssEmphasis.mjs +3 -0
  515. package/zrender@6.0.0/es2022/lib/svg/domapi.mjs +3 -0
  516. package/zrender@6.0.0/es2022/lib/svg/graphic.mjs +3 -0
  517. package/zrender@6.0.0/es2022/lib/svg/helper.mjs +4 -0
  518. package/zrender@6.0.0/es2022/lib/svg/mapStyleToAttrs.mjs +3 -0
  519. package/zrender@6.0.0/es2022/lib/svg/patch.mjs +3 -0
  520. package/zrender@6.0.0/es2022/lib/tool/color.mjs +3 -0
  521. package/zrender@6.0.0/es2022/lib/tool/convertPath.mjs +3 -0
  522. package/zrender@6.0.0/es2022/lib/tool/dividePath.mjs +3 -0
  523. package/zrender@6.0.0/es2022/lib/tool/morphPath.mjs +3 -0
  524. package/zrender@6.0.0/es2022/lib/tool/parseSVG.mjs +3 -0
  525. package/zrender@6.0.0/es2022/lib/tool/parseXML.mjs +3 -0
  526. package/zrender@6.0.0/es2022/lib/tool/path.mjs +3 -0
  527. package/zrender@6.0.0/es2022/lib/zrender.mjs +16 -0
  528. package/@antv/g6 +0 -13
@@ -0,0 +1,22 @@
1
+ /* esm.sh - @antv/g-lite@2.3.2 */
2
+ function Me(r){"@babel/helpers - typeof";return Me=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Me(r)}function ln(r,n){if(Me(r)!="object"||!r)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var t=e.call(r,n||"default");if(Me(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(r)}function Ot(r){var n=ln(r,"string");return Me(n)=="symbol"?n:n+""}function W(r,n,e){return(n=Ot(n))in r?Object.defineProperty(r,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[n]=e,r}function cn(r,n){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(r);n&&(t=t.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),e.push.apply(e,t)}return e}function $(r){for(var n=1;n<arguments.length;n++){var e=arguments[n]!=null?arguments[n]:{};n%2?cn(Object(e),!0).forEach(function(t){W(r,t,e[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):cn(Object(e)).forEach(function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(e,t))})}return r}function D(r,n){if(!(r instanceof n))throw new TypeError("Cannot call a class as a function")}function fn(r,n){for(var e=0;e<n.length;e++){var t=n[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(r,Ot(t.key),t)}}function _(r,n,e){return n&&fn(r.prototype,n),e&&fn(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function vt(r,n){(n==null||n>r.length)&&(n=r.length);for(var e=0,t=Array(n);e<n;e++)t[e]=r[e];return t}function hn(r){if(Array.isArray(r))return vt(r)}function vn(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function rt(r,n){if(r){if(typeof r=="string")return vt(r,n);var e={}.toString.call(r).slice(8,-1);return e==="Object"&&r.constructor&&(e=r.constructor.name),e==="Map"||e==="Set"?Array.from(r):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?vt(r,n):void 0}}function dn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(r){return hn(r)||vn(r)||rt(r)||dn()}function Ge(r){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ge(r)}function fr(){try{var r=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fr=function(){return!!r})()}function gn(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function pn(r,n){if(n&&(Me(n)=="object"||typeof n=="function"))return n;if(n!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gn(r)}function Z(r,n,e){return n=Ge(n),pn(r,fr()?Reflect.construct(n,e||[],Ge(r).constructor):n.apply(r,e))}function Lt(r,n){return Lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lt(r,n)}function K(r,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(n&&n.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),n&&Lt(r,n)}function mn(r){if(Array.isArray(r))return r}function yn(r,n){var e=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(e!=null){var t,i,o,a,s=[],u=!0,l=!1;try{if(o=(e=e.call(r)).next,n===0){if(Object(e)!==e)return;u=!1}else for(;!(u=(t=o.call(e)).done)&&(s.push(t.value),s.length!==n);u=!0);}catch(c){l=!0,i=c}finally{try{if(!u&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(l)throw i}}return s}}function xn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
4
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j(r,n){return mn(r)||yn(r,n)||rt(r,n)||xn()}import gi from"/eventemitter3@^5.0.1?target=es2022";import{vec3 as T,vec4 as ue,mat4 as A,mat3 as Ar,quat as H,vec2 as Jt}from"/gl-matrix@^3.4.3?target=es2022";import{isNumber as ft,distanceSquareRoot as ze,isString as tt,isNil as ge,clamp as wt,getTotalLength as va,min as Sn,max as bn,isNumberEqual as da,mod as pi,normalizePath as Nn,path2Curve as Cn,equalizeSegments as ga,getDrawDirection as Mn,reverseCurve as pa,clonePath as ma,getRotatedCurve as ya,isUndefined as re,isArray as xa,isBoolean as An,isFunction as kt,isObject as ka,getPointAtLength as Ea}from"/@antv/util@^3.3.5?target=es2022";function kn(r,n){for(;!{}.hasOwnProperty.call(r,n)&&(r=Ge(r))!==null;);return r}function It(){return It=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(r,n,e){var t=kn(r,n);if(t){var i=Object.getOwnPropertyDescriptor(t,n);return i.get?i.get.call(arguments.length<3?r:e):i.value}},It.apply(null,arguments)}function hr(r,n,e,t){var i=It(Ge(1&t?r.prototype:r),n,e);return 2&t&&typeof i=="function"?function(o){return i.apply(e,o)}:i}import{polylineLength as Ta,arcBox as wa,cubicBox as Pa,quadBox as Sa,linePointAt as mi,lineLength as yi}from"/@antv/g-math@3.0.1/es2022/g-math.mjs";function Dt(r,n){this.v=r,this.k=n}function ve(r,n,e,t){var i=Object.defineProperty;try{i({},"",{})}catch{i=0}ve=function(a,s,u,l){function c(f,h){ve(a,f,function(v){return this._invoke(f,h,v)})}s?i?i(a,s,{value:u,enumerable:!l,configurable:!l,writable:!l}):a[s]=u:(c("next",0),c("throw",1),c("return",2))},ve(r,n,e,t)}function dt(){var r,n,e=typeof Symbol=="function"?Symbol:{},t=e.iterator||"@@iterator",i=e.toStringTag||"@@toStringTag";function o(v,d,m,E){var w=d&&d.prototype instanceof s?d:s,k=Object.create(w.prototype);return ve(k,"_invoke",function(P,L,x){var g,p,y,N=0,b=x||[],M=!1,S={p:0,n:0,v:r,a:B,f:B.bind(r,4),d:function(V,z){return g=V,p=0,y=r,S.n=z,a}};function B(G,V){for(p=G,y=V,n=0;!M&&N&&!z&&n<b.length;n++){var z,R=b[n],U=S.p,Y=R[2];G>3?(z=Y===V)&&(y=R[(p=R[4])?5:(p=3,3)],R[4]=R[5]=r):R[0]<=U&&((z=G<2&&U<R[1])?(p=0,S.v=V,S.n=R[1]):U<Y&&(z=G<3||R[0]>V||V>Y)&&(R[4]=G,R[5]=V,S.n=Y,p=0))}if(z||G>1)return a;throw M=!0,V}return function(G,V,z){if(N>1)throw TypeError("Generator is already running");for(M&&V===1&&B(V,z),p=V,y=z;(n=p<2?r:y)||!M;){g||(p?p<3?(p>1&&(S.n=-1),B(p,y)):S.n=y:S.v=y);try{if(N=2,g){if(p||(G="next"),n=g[G]){if(!(n=n.call(g,y)))throw TypeError("iterator result is not an object");if(!n.done)return n;y=n.value,p<2&&(p=0)}else p===1&&(n=g.return)&&n.call(g),p<2&&(y=TypeError("The iterator does not provide a '"+G+"' method"),p=1);g=r}else if((n=(M=S.n<0)?y:P.call(L,S))!==a)break}catch(R){g=r,p=1,y=R}finally{N=1}}return{value:n,done:M}}}(v,m,E),!0),k}var a={};function s(){}function u(){}function l(){}n=Object.getPrototypeOf;var c=[][t]?n(n([][t]())):(ve(n={},t,function(){return this}),n),f=l.prototype=s.prototype=Object.create(c);function h(v){return Object.setPrototypeOf?Object.setPrototypeOf(v,l):(v.__proto__=l,ve(v,i,"GeneratorFunction")),v.prototype=Object.create(f),v}return u.prototype=l,ve(f,"constructor",l),ve(l,"constructor",u),u.displayName="GeneratorFunction",ve(l,i,"GeneratorFunction"),ve(f),ve(f,i,"Generator"),ve(f,t,function(){return this}),ve(f,"toString",function(){return"[object Generator]"}),(dt=function(){return{w:o,m:h}})()}function nt(r,n){function e(i,o,a,s){try{var u=r[i](o),l=u.value;return l instanceof Dt?n.resolve(l.v).then(function(c){e("next",c,a,s)},function(c){e("throw",c,a,s)}):n.resolve(l).then(function(c){u.value=c,a(u)},function(c){return e("throw",c,a,s)})}catch(c){s(c)}}var t;this.next||(ve(nt.prototype),ve(nt.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ve(this,"_invoke",function(i,o,a){function s(){return new n(function(u,l){e(i,a,u,l)})}return t=t?t.then(s,s):s()},!0)}function _t(r,n,e,t,i){return new nt(dt().w(r,n,e,t),i||Promise)}function En(r,n,e,t,i){var o=_t(r,n,e,t,i);return o.next().then(function(a){return a.done?a.value:o.next()})}function Tn(r){var n=Object(r),e=[];for(var t in n)e.unshift(t);return function i(){for(;e.length;)if((t=e.pop())in n)return i.value=t,i.done=!1,i;return i.done=!0,i}}function vr(r){if(r!=null){var n=r[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],e=0;if(n)return n.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length))return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}}}throw new TypeError(Me(r)+" is not iterable")}function Ve(){"use strict";var r=dt(),n=r.m(Ve),e=(Object.getPrototypeOf?Object.getPrototypeOf(n):n.__proto__).constructor;function t(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===e||(s.displayName||s.name)==="GeneratorFunction")}var i={throw:1,return:2,break:3,continue:3};function o(a){var s,u;return function(l){s||(s={stop:function(){return u(l.a,2)},catch:function(){return l.v},abrupt:function(f,h){return u(l.a,i[f],h)},delegateYield:function(f,h,v){return s.resultName=h,u(l.d,vr(f),v)},finish:function(f){return u(l.f,f)}},u=function(f,h,v){l.p=s.prev,l.n=s.next;try{return f(h,v)}finally{s.next=l.n}}),s.resultName&&(s[s.resultName]=l.v,s.resultName=void 0),s.sent=l.v,s.next=l.n;try{return a.call(this,s)}finally{l.p=s.prev,l.n=s.next}}}return(Ve=function(){return{wrap:function(u,l,c,f){return r.w(o(u),l,c,f&&f.reverse())},isGeneratorFunction:t,mark:r.m,awrap:function(u,l){return new Dt(u,l)},AsyncIterator:nt,async:function(u,l,c,f,h){return(t(l)?_t:En)(o(u),l,c,f,h)},keys:Tn,values:vr}})()}function wn(r,n,e,t,i,o,a){try{var s=r[o](a),u=s.value}catch(l){return void e(l)}s.done?n(u):Promise.resolve(u).then(t,i)}function Ft(r){return function(){var n=this,e=arguments;return new Promise(function(t,i){var o=r.apply(n,e);function a(u){wn(o,t,i,a,s,"next",u)}function s(u){wn(o,t,i,a,s,"throw",u)}a(void 0)})}}function He(r,n){var e=typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(!e){if(Array.isArray(r)||(e=rt(r))||n&&r&&typeof r.length=="number"){e&&(r=e);var t=0,i=function(){};return{s:i,n:function(){return t>=r.length?{done:!0}:{done:!1,value:r[t++]}},e:function(l){throw l},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
5
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,a=!0,s=!1;return{s:function(){e=e.call(r)},n:function(){var l=e.next();return a=l.done,l},e:function(l){s=!0,o=l},f:function(){try{a||e.return==null||e.return()}finally{if(s)throw o}}}}function Pn(r,n){if(r==null)return{};var e={};for(var t in r)if({}.hasOwnProperty.call(r,t)){if(n.indexOf(t)!==-1)continue;e[t]=r[t]}return e}function Ue(r,n){if(r==null)return{};var e,t,i=Pn(r,n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);for(t=0;t<o.length;t++)e=o[t],n.indexOf(e)===-1&&{}.propertyIsEnumerable.call(r,e)&&(i[e]=r[e])}return i}var ba=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},xi={exports:{}};(function(r,n){(function(e,t){r.exports=t()})(ba,function(){function e(x,g,p,y,N){t(x,g,p||0,y||x.length-1,N||o)}function t(x,g,p,y,N){for(;y>p;){if(y-p>600){var b=y-p+1,M=g-p+1,S=Math.log(b),B=.5*Math.exp(2*S/3),G=.5*Math.sqrt(S*B*(b-B)/b)*(M-b/2<0?-1:1),V=Math.max(p,Math.floor(g-M*B/b+G)),z=Math.min(y,Math.floor(g+(b-M)*B/b+G));t(x,g,V,z,N)}var R=x[g],U=p,Y=y;for(i(x,p,g),N(x[y],R)>0&&i(x,p,y);U<Y;){for(i(x,U,Y),U++,Y--;N(x[U],R)<0;)U++;for(;N(x[Y],R)>0;)Y--}N(x[p],R)===0?i(x,p,Y):(Y++,i(x,Y,y)),Y<=g&&(p=Y+1),g<=Y&&(y=Y-1)}}function i(x,g,p){var y=x[g];x[g]=x[p],x[p]=y}function o(x,g){return x<g?-1:x>g?1:0}var a=function(g){g===void 0&&(g=9),this._maxEntries=Math.max(4,g),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};a.prototype.all=function(){return this._all(this.data,[])},a.prototype.search=function(g){var p=this.data,y=[];if(!k(g,p))return y;for(var N=this.toBBox,b=[];p;){for(var M=0;M<p.children.length;M++){var S=p.children[M],B=p.leaf?N(S):S;k(g,B)&&(p.leaf?y.push(S):w(g,B)?this._all(S,y):b.push(S))}p=b.pop()}return y},a.prototype.collides=function(g){var p=this.data;if(!k(g,p))return!1;for(var y=[];p;){for(var N=0;N<p.children.length;N++){var b=p.children[N],M=p.leaf?this.toBBox(b):b;if(k(g,M)){if(p.leaf||w(g,M))return!0;y.push(b)}}p=y.pop()}return!1},a.prototype.load=function(g){if(!(g&&g.length))return this;if(g.length<this._minEntries){for(var p=0;p<g.length;p++)this.insert(g[p]);return this}var y=this._build(g.slice(),0,g.length-1,0);if(!this.data.children.length)this.data=y;else if(this.data.height===y.height)this._splitRoot(this.data,y);else{if(this.data.height<y.height){var N=this.data;this.data=y,y=N}this._insert(y,this.data.height-y.height-1,!0)}return this},a.prototype.insert=function(g){return g&&this._insert(g,this.data.height-1),this},a.prototype.clear=function(){return this.data=P([]),this},a.prototype.remove=function(g,p){if(!g)return this;for(var y=this.data,N=this.toBBox(g),b=[],M=[],S,B,G;y||b.length;){if(y||(y=b.pop(),B=b[b.length-1],S=M.pop(),G=!0),y.leaf){var V=s(g,y.children,p);if(V!==-1)return y.children.splice(V,1),b.push(y),this._condense(b),this}!G&&!y.leaf&&w(y,N)?(b.push(y),M.push(S),S=0,B=y,y=y.children[0]):B?(S++,y=B.children[S],G=!1):y=null}return this},a.prototype.toBBox=function(g){return g},a.prototype.compareMinX=function(g,p){return g.minX-p.minX},a.prototype.compareMinY=function(g,p){return g.minY-p.minY},a.prototype.toJSON=function(){return this.data},a.prototype.fromJSON=function(g){return this.data=g,this},a.prototype._all=function(g,p){for(var y=[];g;)g.leaf?p.push.apply(p,g.children):y.push.apply(y,g.children),g=y.pop();return p},a.prototype._build=function(g,p,y,N){var b=y-p+1,M=this._maxEntries,S;if(b<=M)return S=P(g.slice(p,y+1)),u(S,this.toBBox),S;N||(N=Math.ceil(Math.log(b)/Math.log(M)),M=Math.ceil(b/Math.pow(M,N-1))),S=P([]),S.leaf=!1,S.height=N;var B=Math.ceil(b/M),G=B*Math.ceil(Math.sqrt(M));L(g,p,y,G,this.compareMinX);for(var V=p;V<=y;V+=G){var z=Math.min(V+G-1,y);L(g,V,z,B,this.compareMinY);for(var R=V;R<=z;R+=B){var U=Math.min(R+B-1,z);S.children.push(this._build(g,R,U,N-1))}}return u(S,this.toBBox),S},a.prototype._chooseSubtree=function(g,p,y,N){for(;N.push(p),!(p.leaf||N.length-1===y);){for(var b=1/0,M=1/0,S=void 0,B=0;B<p.children.length;B++){var G=p.children[B],V=v(G),z=m(g,G)-V;z<M?(M=z,b=V<b?V:b,S=G):z===M&&V<b&&(b=V,S=G)}p=S||p.children[0]}return p},a.prototype._insert=function(g,p,y){var N=y?g:this.toBBox(g),b=[],M=this._chooseSubtree(N,this.data,p,b);for(M.children.push(g),c(M,N);p>=0&&b[p].children.length>this._maxEntries;)this._split(b,p),p--;this._adjustParentBBoxes(N,b,p)},a.prototype._split=function(g,p){var y=g[p],N=y.children.length,b=this._minEntries;this._chooseSplitAxis(y,b,N);var M=this._chooseSplitIndex(y,b,N),S=P(y.children.splice(M,y.children.length-M));S.height=y.height,S.leaf=y.leaf,u(y,this.toBBox),u(S,this.toBBox),p?g[p-1].children.push(S):this._splitRoot(y,S)},a.prototype._splitRoot=function(g,p){this.data=P([g,p]),this.data.height=g.height+1,this.data.leaf=!1,u(this.data,this.toBBox)},a.prototype._chooseSplitIndex=function(g,p,y){for(var N,b=1/0,M=1/0,S=p;S<=y-p;S++){var B=l(g,0,S,this.toBBox),G=l(g,S,y,this.toBBox),V=E(B,G),z=v(B)+v(G);V<b?(b=V,N=S,M=z<M?z:M):V===b&&z<M&&(M=z,N=S)}return N||y-p},a.prototype._chooseSplitAxis=function(g,p,y){var N=g.leaf?this.compareMinX:f,b=g.leaf?this.compareMinY:h,M=this._allDistMargin(g,p,y,N),S=this._allDistMargin(g,p,y,b);M<S&&g.children.sort(N)},a.prototype._allDistMargin=function(g,p,y,N){g.children.sort(N);for(var b=this.toBBox,M=l(g,0,p,b),S=l(g,y-p,y,b),B=d(M)+d(S),G=p;G<y-p;G++){var V=g.children[G];c(M,g.leaf?b(V):V),B+=d(M)}for(var z=y-p-1;z>=p;z--){var R=g.children[z];c(S,g.leaf?b(R):R),B+=d(S)}return B},a.prototype._adjustParentBBoxes=function(g,p,y){for(var N=y;N>=0;N--)c(p[N],g)},a.prototype._condense=function(g){for(var p=g.length-1,y=void 0;p>=0;p--)g[p].children.length===0?p>0?(y=g[p-1].children,y.splice(y.indexOf(g[p]),1)):this.clear():u(g[p],this.toBBox)};function s(x,g,p){if(!p)return g.indexOf(x);for(var y=0;y<g.length;y++)if(p(x,g[y]))return y;return-1}function u(x,g){l(x,0,x.children.length,g,x)}function l(x,g,p,y,N){N||(N=P(null)),N.minX=1/0,N.minY=1/0,N.maxX=-1/0,N.maxY=-1/0;for(var b=g;b<p;b++){var M=x.children[b];c(N,x.leaf?y(M):M)}return N}function c(x,g){return x.minX=Math.min(x.minX,g.minX),x.minY=Math.min(x.minY,g.minY),x.maxX=Math.max(x.maxX,g.maxX),x.maxY=Math.max(x.maxY,g.maxY),x}function f(x,g){return x.minX-g.minX}function h(x,g){return x.minY-g.minY}function v(x){return(x.maxX-x.minX)*(x.maxY-x.minY)}function d(x){return x.maxX-x.minX+(x.maxY-x.minY)}function m(x,g){return(Math.max(g.maxX,x.maxX)-Math.min(g.minX,x.minX))*(Math.max(g.maxY,x.maxY)-Math.min(g.minY,x.minY))}function E(x,g){var p=Math.max(x.minX,g.minX),y=Math.max(x.minY,g.minY),N=Math.min(x.maxX,g.maxX),b=Math.min(x.maxY,g.maxY);return Math.max(0,N-p)*Math.max(0,b-y)}function w(x,g){return x.minX<=g.minX&&x.minY<=g.minY&&g.maxX<=x.maxX&&g.maxY<=x.maxY}function k(x,g){return g.minX<=x.maxX&&g.minY<=x.maxY&&g.maxX>=x.minX&&g.maxY>=x.minY}function P(x){return{children:x,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function L(x,g,p,y,N){for(var b=[g,p];b.length;)if(p=b.pop(),g=b.pop(),!(p-g<=y)){var M=g+Math.ceil((p-g)/y/2)*y;e(x,M,g,p,N),b.push(g,M,M,p)}}return a})})(xi);var Na=xi.exports,F=function(r){return r.GROUP="g",r.FRAGMENT="fragment",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",r}({}),qt=function(r){return r[r.ZERO=0]="ZERO",r[r.NEGATIVE_ONE=1]="NEGATIVE_ONE",r}({}),uf=function(){function r(){D(this,r),this.plugins=[]}return _(r,[{key:"addRenderingPlugin",value:function(e){this.plugins.push(e),this.context.renderingPlugins.push(e)}},{key:"removeAllRenderingPlugins",value:function(){var e=this;this.plugins.forEach(function(t){var i=e.context.renderingPlugins.indexOf(t);i>=0&&e.context.renderingPlugins.splice(i,1)})}}])}(),lf=function(){function r(n){D(this,r),this.clipSpaceNearZ=qt.NEGATIVE_ONE,this.plugins=[],this.config=$({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0,enableRenderingOptimization:!1},n)}return _(r,[{key:"registerPlugin",value:function(e){var t=this.plugins.findIndex(function(i){return i===e});t===-1&&this.plugins.push(e)}},{key:"unregisterPlugin",value:function(e){var t=this.plugins.findIndex(function(i){return i===e});t>-1&&this.plugins.splice(t,1)}},{key:"getPlugins",value:function(){return this.plugins}},{key:"getPlugin",value:function(e){return this.plugins.find(function(t){return t.name===e})}},{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(e){Object.assign(this.config,e)}}])}(),dr=T.add,it=T.copy,Ca=T.max,Ma=T.min,Rn=T.scale,gr=T.sub,ye=function(){function r(){D(this,r),this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return _(r,[{key:"update",value:function(e,t){it(this.center,e),it(this.halfExtents,t),gr(this.min,this.center,this.halfExtents),dr(this.max,this.center,this.halfExtents)}},{key:"setMinMax",value:function(e,t){dr(this.center,t,e),Rn(this.center,this.center,.5),gr(this.halfExtents,t,e),Rn(this.halfExtents,this.halfExtents,.5),it(this.min,e),it(this.max,t)}},{key:"getMin",value:function(){return this.min}},{key:"getMax",value:function(){return this.max}},{key:"add",value:function(e){if(!r.isEmpty(e)){if(r.isEmpty(this)){this.setMinMax(e.getMin(),e.getMax());return}var t=this.center,i=t[0],o=t[1],a=t[2],s=this.halfExtents,u=s[0],l=s[1],c=s[2],f=i-u,h=i+u,v=o-l,d=o+l,m=a-c,E=a+c,w=e.center,k=w[0],P=w[1],L=w[2],x=e.halfExtents,g=x[0],p=x[1],y=x[2],N=k-g,b=k+g,M=P-p,S=P+p,B=L-y,G=L+y;N<f&&(f=N),b>h&&(h=b),M<v&&(v=M),S>d&&(d=S),B<m&&(m=B),G>E&&(E=G),t[0]=(f+h)*.5,t[1]=(v+d)*.5,t[2]=(m+E)*.5,s[0]=(h-f)*.5,s[1]=(d-v)*.5,s[2]=(E-m)*.5,this.min[0]=f,this.min[1]=v,this.min[2]=m,this.max[0]=h,this.max[1]=d,this.max[2]=E}}},{key:"setFromTransformedAABB",value:function(e,t){var i=this.center,o=this.halfExtents,a=e.center,s=e.halfExtents,u=t[0],l=t[4],c=t[8],f=t[1],h=t[5],v=t[9],d=t[2],m=t[6],E=t[10],w=Math.abs(u),k=Math.abs(l),P=Math.abs(c),L=Math.abs(f),x=Math.abs(h),g=Math.abs(v),p=Math.abs(d),y=Math.abs(m),N=Math.abs(E);i[0]=t[12]+u*a[0]+l*a[1]+c*a[2],i[1]=t[13]+f*a[0]+h*a[1]+v*a[2],i[2]=t[14]+d*a[0]+m*a[1]+E*a[2],o[0]=w*s[0]+k*s[1]+P*s[2],o[1]=L*s[0]+x*s[1]+g*s[2],o[2]=p*s[0]+y*s[1]+N*s[2],gr(this.min,i,o),dr(this.max,i,o)}},{key:"intersects",value:function(e){var t=this.getMax(),i=this.getMin(),o=e.getMax(),a=e.getMin();return i[0]<=o[0]&&t[0]>=a[0]&&i[1]<=o[1]&&t[1]>=a[1]&&i[2]<=o[2]&&t[2]>=a[2]}},{key:"intersection",value:function(e){if(!this.intersects(e))return null;var t=new r,i=Ca([0,0,0],this.getMin(),e.getMin()),o=Ma([0,0,0],this.getMax(),e.getMax());return t.setMinMax(i,o),t}},{key:"getNegativeFarPoint",value:function(e){return e.pnVertexFlag===273?it([0,0,0],this.min):e.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:e.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]}},{key:"getPositiveFarPoint",value:function(e){return e.pnVertexFlag===273?it([0,0,0],this.max):e.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:e.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:e.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:e.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:e.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:e.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]}}],[{key:"isEmpty",value:function(e){return!e||e.halfExtents[0]===0&&e.halfExtents[1]===0&&e.halfExtents[2]===0}}])}(),Aa=function(){function r(n,e){D(this,r),this.distance=n||0,this.normal=e||T.fromValues(0,1,0),this.updatePNVertexFlag()}return _(r,[{key:"updatePNVertexFlag",value:function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)}},{key:"distanceToPoint",value:function(e){return T.dot(e,this.normal)-this.distance}},{key:"normalize",value:function(){var e=1/T.len(this.normal);T.scale(this.normal,this.normal,e),this.distance*=e}},{key:"intersectsLine",value:function(e,t,i){var o=this.distanceToPoint(e),a=this.distanceToPoint(t),s=o/(o-a),u=s>=0&&s<=1;return u&&i&&T.lerp(i,e,t,s),u}}])}(),at=function(r){return r[r.OUTSIDE=4294967295]="OUTSIDE",r[r.INSIDE=0]="INSIDE",r[r.INDETERMINATE=2147483647]="INDETERMINATE",r}({}),Ra=function(){function r(n){if(D(this,r),this.planes=[],n)this.planes=n;else for(var e=0;e<6;e++)this.planes.push(new Aa)}return _(r,[{key:"extractFromVPMatrix",value:function(e){var t=j(e,16),i=t[0],o=t[1],a=t[2],s=t[3],u=t[4],l=t[5],c=t[6],f=t[7],h=t[8],v=t[9],d=t[10],m=t[11],E=t[12],w=t[13],k=t[14],P=t[15];T.set(this.planes[0].normal,s-i,f-u,m-h),this.planes[0].distance=P-E,T.set(this.planes[1].normal,s+i,f+u,m+h),this.planes[1].distance=P+E,T.set(this.planes[2].normal,s+o,f+l,m+v),this.planes[2].distance=P+w,T.set(this.planes[3].normal,s-o,f-l,m-v),this.planes[3].distance=P-w,T.set(this.planes[4].normal,s-a,f-c,m-d),this.planes[4].distance=P-k,T.set(this.planes[5].normal,s+a,f+c,m+d),this.planes[5].distance=P+k,this.planes.forEach(function(L){L.normalize(),L.updatePNVertexFlag()})}}])}(),pe=function(){function r(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;D(this,r),this.x=0,this.y=0,this.x=n,this.y=e}return _(r,[{key:"clone",value:function(){return new r(this.x,this.y)}},{key:"copyFrom",value:function(e){this.x=e.x,this.y=e.y}}])}(),lt=function(){function r(n,e,t,i){D(this,r),this.x=n,this.y=e,this.width=t,this.height=i,this.left=n,this.right=n+t,this.top=e,this.bottom=e+i}return _(r,[{key:"toJSON",value:function(){}}],[{key:"fromRect",value:function(e){return new r(e.x,e.y,e.width,e.height)}},{key:"applyTransform",value:function(e,t){var i=ue.fromValues(e.x,e.y,0,1),o=ue.fromValues(e.x+e.width,e.y,0,1),a=ue.fromValues(e.x,e.y+e.height,0,1),s=ue.fromValues(e.x+e.width,e.y+e.height,0,1),u=ue.create(),l=ue.create(),c=ue.create(),f=ue.create();ue.transformMat4(u,i,t),ue.transformMat4(l,o,t),ue.transformMat4(c,a,t),ue.transformMat4(f,s,t);var h=Math.min(u[0],l[0],c[0],f[0]),v=Math.min(u[1],l[1],c[1],f[1]),d=Math.max(u[0],l[0],c[0],f[0]),m=Math.max(u[1],l[1],c[1],f[1]);return r.fromRect({x:h,y:v,width:d-h,height:m-v})}}])}(),ne="Method not implemented.",ot="Use document.documentElement instead.",Oa="Cannot append a destroyed element.";function pr(r){return r===void 0?0:r>360||r<-360?r%360:r}var mr=T.create();function Te(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return Array.isArray(r)&&r.length===3?t?T.clone(r):T.copy(mr,r):ft(r)?t?T.fromValues(r,n,e):T.set(mr,r,n,e):t?T.fromValues(r[0],r[1]||n,r[2]||e):T.set(mr,r[0],r[1]||n,r[2]||e)}var La=Math.PI/180;function Q(r){return r*La}var Ia=180/Math.PI;function be(r){return r*Ia}var Da=.9;function cf(r){return r%=400,r<0&&(r+=400),r*Da}function ff(r){return r/360}function _a(r){return 360*r}var Qt=Math.PI/2;function Fa(r,n){var e=n[0],t=n[1],i=n[2],o=n[3],a=e*e,s=t*t,u=i*i,l=o*o,c=a+s+u+l,f=e*o-t*i;return f>.499995*c?(r[0]=Qt,r[1]=2*Math.atan2(t,e),r[2]=0):f<-.499995*c?(r[0]=-Qt,r[1]=2*Math.atan2(t,e),r[2]=0):(r[0]=Math.asin(2*(e*i-o*t)),r[1]=Math.atan2(2*(e*o+t*i),1-2*(u+l)),r[2]=Math.atan2(2*(e*t+i*o),1-2*(s+u))),r}function Ba(r,n){var e,t,i=A.getScaling(T.create(),n),o=j(i,3),a=o[0],s=o[1],u=o[2],l=Math.asin(-n[2]/a);return l<Qt?l>-Qt?(e=Math.atan2(n[6]/s,n[10]/u),t=Math.atan2(n[1]/a,n[0]/a)):(t=0,e=-Math.atan2(n[4]/s,n[5]/s)):(t=0,e=Math.atan2(n[4]/s,n[5]/s)),r[0]=e,r[1]=l,r[2]=t,r}function yr(r,n){return n.length===16?Ba(r,n):Fa(r,n)}function Ga(r,n,e,t,i){var o=Math.cos(r),a=Math.sin(r);return Ar.fromValues(t*o,i*a,0,-t*a,i*o,0,n,e,1)}function Va(r,n,e,t,i,o,a){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,u=2*o,l=e-n,c=t-i,f=u/l,h=u/c,v=(e+n)/l,d=(t+i)/c,m,E,w=a-o,k=a*o;return s?(m=-a/w,E=-k/w):(m=-(a+o)/w,E=-2*k/w),r[0]=f,r[1]=0,r[2]=0,r[3]=0,r[4]=0,r[5]=h,r[6]=0,r[7]=0,r[8]=v,r[9]=d,r[10]=m,r[11]=-1,r[12]=0,r[13]=0,r[14]=E,r[15]=0,r}function On(r){var n=r[0],e=r[1],t=r[3],i=r[4],o=Math.sqrt(n*n+e*e),a=Math.sqrt(t*t+i*i),s=n*i-e*t;if(s<0&&(n<i?o=-o:a=-a),o){var u=1/o;n*=u,e*=u}if(a){var l=1/a;t*=l,i*=l}var c=Math.atan2(e,n),f=be(c);return[r[6],r[7],o,a,f]}var Ie=A.create(),Ae=A.create(),gt=ue.create(),X=[T.create(),T.create(),T.create()],Ln=T.create();function Ya(r,n,e,t,i,o){if(!Ua(Ie,r)||(A.copy(Ae,Ie),Ae[3]=0,Ae[7]=0,Ae[11]=0,Ae[15]=1,Math.abs(A.determinant(Ae))<1e-8))return!1;var a=Ie[3],s=Ie[7],u=Ie[11],l=Ie[12],c=Ie[13],f=Ie[14],h=Ie[15];if(a!==0||s!==0||u!==0){gt[0]=a,gt[1]=s,gt[2]=u,gt[3]=h;var v=A.invert(Ae,Ae);if(!v)return!1;A.transpose(Ae,Ae),ue.transformMat4(i,gt,Ae)}else i[0]=i[1]=i[2]=0,i[3]=1;if(n[0]=l,n[1]=c,n[2]=f,za(X,Ie),e[0]=T.length(X[0]),T.normalize(X[0],X[0]),t[0]=T.dot(X[0],X[1]),xr(X[1],X[1],X[0],1,-t[0]),e[1]=T.length(X[1]),T.normalize(X[1],X[1]),t[0]/=e[1],t[1]=T.dot(X[0],X[2]),xr(X[2],X[2],X[0],1,-t[1]),t[2]=T.dot(X[1],X[2]),xr(X[2],X[2],X[1],1,-t[2]),e[2]=T.length(X[2]),T.normalize(X[2],X[2]),t[1]/=e[2],t[2]/=e[2],T.cross(Ln,X[1],X[2]),T.dot(X[0],Ln)<0)for(var d=0;d<3;d++)e[d]*=-1,X[d][0]*=-1,X[d][1]*=-1,X[d][2]*=-1;return o[0]=.5*Math.sqrt(Math.max(1+X[0][0]-X[1][1]-X[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-X[0][0]+X[1][1]-X[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-X[0][0]-X[1][1]+X[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+X[0][0]+X[1][1]+X[2][2],0)),X[2][1]>X[1][2]&&(o[0]=-o[0]),X[0][2]>X[2][0]&&(o[1]=-o[1]),X[1][0]>X[0][1]&&(o[2]=-o[2]),!0}function Ua(r,n){var e=n[15];if(e===0)return!1;for(var t=1/e,i=0;i<16;i++)r[i]=n[i]*t;return!0}function za(r,n){r[0][0]=n[0],r[0][1]=n[1],r[0][2]=n[2],r[1][0]=n[4],r[1][1]=n[5],r[1][2]=n[6],r[2][0]=n[8],r[2][1]=n[9],r[2][2]=n[10]}function xr(r,n,e,t,i){r[0]=n[0]*t+e[0]*i,r[1]=n[1]*t+e[1]*i,r[2]=n[2]*t+e[2]*i}var se=function(r){return r[r.ORBITING=0]="ORBITING",r[r.EXPLORING=1]="EXPLORING",r[r.TRACKING=2]="TRACKING",r}({}),Rr=function(r){return r[r.DEFAULT=0]="DEFAULT",r[r.ROTATIONAL=1]="ROTATIONAL",r[r.TRANSLATIONAL=2]="TRANSLATIONAL",r[r.CINEMATIC=3]="CINEMATIC",r}({}),Se=function(r){return r[r.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",r[r.PERSPECTIVE=1]="PERSPECTIVE",r}({}),ki={UPDATED:"updated"},In=2e-4,Xa=function(){function r(){D(this,r),this.clipSpaceNearZ=qt.NEGATIVE_ONE,this.eventEmitter=new gi,this.matrix=A.create(),this.right=T.fromValues(1,0,0),this.up=T.fromValues(0,1,0),this.forward=T.fromValues(0,0,1),this.position=T.fromValues(0,0,1),this.focalPoint=T.fromValues(0,0,0),this.distanceVector=T.fromValues(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=A.create(),this.projectionMatrixInverse=A.create(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=se.EXPLORING,this.trackingMode=Rr.DEFAULT,this.projectionMode=Se.PERSPECTIVE,this.frustum=new Ra,this.orthoMatrix=A.create()}return _(r,[{key:"isOrtho",value:function(){return this.projectionMode===Se.ORTHOGRAPHIC}},{key:"getProjectionMode",value:function(){return this.projectionMode}},{key:"getPerspective",value:function(){return this.jitteredProjectionMatrix||this.projectionMatrix}},{key:"getPerspectiveInverse",value:function(){return this.projectionMatrixInverse}},{key:"getFrustum",value:function(){return this.frustum}},{key:"getPosition",value:function(){return this.position}},{key:"getFocalPoint",value:function(){return this.focalPoint}},{key:"getDollyingStep",value:function(){return this.dollyingStep}},{key:"getNear",value:function(){return this.near}},{key:"getFar",value:function(){return this.far}},{key:"getZoom",value:function(){return this.zoom}},{key:"getOrthoMatrix",value:function(){return this.orthoMatrix}},{key:"getView",value:function(){return this.view}},{key:"setEnableUpdate",value:function(e){this.enableUpdate=e}},{key:"setType",value:function(e,t){return this.type=e,this.type===se.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===se.TRACKING&&t!==void 0&&this.setTrackingMode(t),this}},{key:"setProjectionMode",value:function(e){return this.projectionMode=e,this}},{key:"setTrackingMode",value:function(e){if(this.type!==se.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=e,this}},{key:"setWorldRotation",value:function(e){return this.rotateWorld=e,this._getAngles(),this}},{key:"getViewTransform",value:function(){return A.invert(A.create(),this.matrix)}},{key:"getWorldTransform",value:function(){return this.matrix}},{key:"jitterProjectionMatrix",value:function(e,t){var i=A.fromTranslation(A.create(),[e,t,0]);this.jitteredProjectionMatrix=A.multiply(A.create(),i,this.projectionMatrix)}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0}},{key:"setMatrix",value:function(e){return this.matrix=e,this._update(),this}},{key:"setProjectionMatrix",value:function(e){this.projectionMatrix=e}},{key:"setFov",value:function(e){return this.setPerspective(this.near,this.far,e,this.aspect),this}},{key:"setAspect",value:function(e){return this.setPerspective(this.near,this.far,this.fov,e),this}},{key:"setNear",value:function(e){return this.projectionMode===Se.PERSPECTIVE?this.setPerspective(e,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,e,this.far),this}},{key:"setFar",value:function(e){return this.projectionMode===Se.PERSPECTIVE?this.setPerspective(this.near,e,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,e),this}},{key:"setViewOffset",value:function(e,t,i,o,a,s){return this.aspect=e/t,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=e,this.view.fullHeight=t,this.view.offsetX=i,this.view.offsetY=o,this.view.width=a,this.view.height=s,this.projectionMode===Se.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}},{key:"clearViewOffset",value:function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===Se.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}},{key:"setZoom",value:function(e){return this.zoom=e,this.projectionMode===Se.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===Se.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this}},{key:"setZoomByViewportPoint",value:function(e,t){var i=this.canvas.viewport2Canvas({x:t[0],y:t[1]}),o=i.x,a=i.y,s=this.roll;this.rotate(0,0,-s),this.setPosition(o,a),this.setFocalPoint(o,a),this.setZoom(e),this.rotate(0,0,s);var u=this.canvas.viewport2Canvas({x:t[0],y:t[1]}),l=u.x,c=u.y,f=T.fromValues(l-o,c-a,0),h=T.dot(f,this.right)/T.length(this.right),v=T.dot(f,this.up)/T.length(this.up),d=this.getPosition(),m=j(d,2),E=m[0],w=m[1],k=this.getFocalPoint(),P=j(k,2),L=P[0],x=P[1];return this.setPosition(E-h,w-v),this.setFocalPoint(L-h,x-v),this}},{key:"setPerspective",value:function(e,t,i,o){var a;this.projectionMode=Se.PERSPECTIVE,this.fov=i,this.near=e,this.far=t,this.aspect=o;var s=this.near*Math.tan(Q(.5*this.fov))/this.zoom,u=2*s,l=this.aspect*u,c=-.5*l;if((a=this.view)!==null&&a!==void 0&&a.enabled){var f=this.view.fullWidth,h=this.view.fullHeight;c+=this.view.offsetX*l/f,s-=this.view.offsetY*u/h,l*=this.view.width/f,u*=this.view.height/h}return Va(this.projectionMatrix,c,c+l,s-u,s,e,this.far,this.clipSpaceNearZ===qt.ZERO),A.invert(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this}},{key:"setOrthographic",value:function(e,t,i,o,a,s){var u;this.projectionMode=Se.ORTHOGRAPHIC,this.rright=t,this.left=e,this.top=i,this.bottom=o,this.near=a,this.far=s;var l=(this.rright-this.left)/(2*this.zoom),c=(this.top-this.bottom)/(2*this.zoom),f=(this.rright+this.left)/2,h=(this.top+this.bottom)/2,v=f-l,d=f+l,m=h+c,E=h-c;if((u=this.view)!==null&&u!==void 0&&u.enabled){var w=(this.rright-this.left)/this.view.fullWidth/this.zoom,k=(this.top-this.bottom)/this.view.fullHeight/this.zoom;v+=w*this.view.offsetX,d=v+w*this.view.width,m-=k*this.view.offsetY,E=m-k*this.view.height}return this.clipSpaceNearZ===qt.NEGATIVE_ONE?A.ortho(this.projectionMatrix,v,d,m,E,a,s):A.orthoZO(this.projectionMatrix,v,d,m,E,a,s),A.invert(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this}},{key:"setPosition",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.position[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.position[2],o=Te(e,t,i);return this._setPosition(o),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this}},{key:"setFocalPoint",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.focalPoint[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.focalPoint[2],o=T.fromValues(0,1,0);if(this.focalPoint=Te(e,t,i),this.trackingMode===Rr.CINEMATIC){var a=T.subtract(T.create(),this.focalPoint,this.position);e=a[0],t=a[1],i=a[2];var s=T.length(a),u=be(Math.asin(t/s)),l=90+be(Math.atan2(i,e)),c=A.create();A.rotateY(c,c,Q(l)),A.rotateX(c,c,Q(u)),o=T.transformMat4(T.create(),[0,1,0],c)}return A.invert(this.matrix,A.lookAt(A.create(),this.position,this.focalPoint,o)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this}},{key:"getDistance",value:function(){return this.distance}},{key:"getDistanceVector",value:function(){return this.distanceVector}},{key:"setDistance",value:function(e){if(this.distance===e||e<0)return this;this.distance=e,this.distance<In&&(this.distance=In),this.dollyingStep=this.distance/100;var t=T.create();e=this.distance;var i=this.forward,o=this.focalPoint;return t[0]=e*i[0]+o[0],t[1]=e*i[1]+o[1],t[2]=e*i[2]+o[2],this._setPosition(t),this.triggerUpdate(),this}},{key:"setMaxDistance",value:function(e){return this.maxDistance=e,this}},{key:"setMinDistance",value:function(e){return this.minDistance=e,this}},{key:"setAzimuth",value:function(e){return this.azimuth=pr(e),this.computeMatrix(),this._getAxes(),this.type===se.ORBITING||this.type===se.EXPLORING?this._getPosition():this.type===se.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getAzimuth",value:function(){return this.azimuth}},{key:"setElevation",value:function(e){return this.elevation=pr(e),this.computeMatrix(),this._getAxes(),this.type===se.ORBITING||this.type===se.EXPLORING?this._getPosition():this.type===se.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getElevation",value:function(){return this.elevation}},{key:"setRoll",value:function(e){return this.roll=pr(e),this.computeMatrix(),this._getAxes(),this.type===se.ORBITING||this.type===se.EXPLORING?this._getPosition():this.type===se.TRACKING&&this._getFocalPoint(),this.triggerUpdate(),this}},{key:"getRoll",value:function(){return this.roll}},{key:"_update",value:function(){this._getAxes(),this._getPosition(),this._getDistance(),this._getAngles(),this._getOrthoMatrix(),this.triggerUpdate()}},{key:"computeMatrix",value:function(){var e=H.setAxisAngle(H.create(),[0,0,1],Q(this.roll));A.identity(this.matrix);var t=H.setAxisAngle(H.create(),[1,0,0],Q((this.rotateWorld&&this.type!==se.TRACKING||this.type===se.TRACKING?1:-1)*this.elevation)),i=H.setAxisAngle(H.create(),[0,1,0],Q((this.rotateWorld&&this.type!==se.TRACKING||this.type===se.TRACKING?1:-1)*this.azimuth)),o=H.multiply(H.create(),i,t);o=H.multiply(H.create(),o,e);var a=A.fromQuat(A.create(),o);this.type===se.ORBITING||this.type===se.EXPLORING?(A.translate(this.matrix,this.matrix,this.focalPoint),A.multiply(this.matrix,this.matrix,a),A.translate(this.matrix,this.matrix,[0,0,this.distance])):this.type===se.TRACKING&&(A.translate(this.matrix,this.matrix,this.position),A.multiply(this.matrix,this.matrix,a))}},{key:"_setPosition",value:function(e,t,i){this.position=Te(e,t,i);var o=this.matrix;o[12]=this.position[0],o[13]=this.position[1],o[14]=this.position[2],o[15]=1,this._getOrthoMatrix()}},{key:"_getAxes",value:function(){T.copy(this.right,Te(ue.transformMat4(ue.create(),[1,0,0,0],this.matrix))),T.copy(this.up,Te(ue.transformMat4(ue.create(),[0,1,0,0],this.matrix))),T.copy(this.forward,Te(ue.transformMat4(ue.create(),[0,0,1,0],this.matrix))),T.normalize(this.right,this.right),T.normalize(this.up,this.up),T.normalize(this.forward,this.forward)}},{key:"_getAngles",value:function(){var e=this.distanceVector[0],t=this.distanceVector[1],i=this.distanceVector[2],o=T.length(this.distanceVector);if(o===0){this.elevation=0,this.azimuth=0;return}this.type===se.TRACKING?(this.elevation=be(Math.asin(t/o)),this.azimuth=be(Math.atan2(-e,-i))):this.rotateWorld?(this.elevation=be(Math.asin(t/o)),this.azimuth=be(Math.atan2(-e,-i))):(this.elevation=-be(Math.asin(t/o)),this.azimuth=-be(Math.atan2(-e,-i)))}},{key:"_getPosition",value:function(){T.copy(this.position,Te(ue.transformMat4(ue.create(),[0,0,0,1],this.matrix))),this._getDistance()}},{key:"_getFocalPoint",value:function(){T.transformMat3(this.distanceVector,[0,0,-this.distance],Ar.fromMat4(Ar.create(),this.matrix)),T.add(this.focalPoint,this.position,this.distanceVector),this._getDistance()}},{key:"_getDistance",value:function(){this.distanceVector=T.subtract(T.create(),this.focalPoint,this.position),this.distance=T.length(this.distanceVector),this.dollyingStep=this.distance/100}},{key:"_getOrthoMatrix",value:function(){if(this.projectionMode===Se.ORTHOGRAPHIC){var e=this.position,t=H.setAxisAngle(H.create(),[0,0,1],-this.roll*Math.PI/180);A.fromRotationTranslationScaleOrigin(this.orthoMatrix,t,T.fromValues((this.rright-this.left)/2-e[0],(this.top-this.bottom)/2-e[1],0),T.fromValues(this.zoom,this.zoom,1),e)}}},{key:"triggerUpdate",value:function(){if(this.enableUpdate){var e=this.getViewTransform(),t=A.multiply(A.create(),this.getPerspective(),e);this.getFrustum().extractFromVPMatrix(t),this.eventEmitter.emit(ki.UPDATED)}}},{key:"rotate",value:function(e,t,i){throw new Error(ne)}},{key:"pan",value:function(e,t){throw new Error(ne)}},{key:"dolly",value:function(e){throw new Error(ne)}},{key:"createLandmark",value:function(e,t){throw new Error(ne)}},{key:"gotoLandmark",value:function(e,t){throw new Error(ne)}},{key:"cancelLandmarkAnimation",value:function(){throw new Error(ne)}}])}(),Wa=function(r){return r[r.Standard=0]="Standard",r}({}),er=function(r){return r[r.ADDED=0]="ADDED",r[r.REMOVED=1]="REMOVED",r[r.Z_INDEX_CHANGED=2]="Z_INDEX_CHANGED",r}({}),Ha=T.create(),pt=A.create(),$a=H.create();function Dn(r){if(r.localDirtyFlag){var n=r.localSkew[0]!==0||r.localSkew[1]!==0;if(n){A.fromRotationTranslationScaleOrigin(r.localTransform,r.localRotation,r.localPosition,T.fromValues(1,1,1),r.origin),(r.localSkew[0]!==0||r.localSkew[1]!==0)&&(A.identity(pt),pt[4]=Math.tan(r.localSkew[0]),pt[1]=Math.tan(r.localSkew[1]),A.multiply(r.localTransform,r.localTransform,pt));var e=A.fromRotationTranslationScaleOrigin(pt,H.set($a,0,0,0,1),T.set(Ha,1,1,1),r.localScale,r.origin);A.multiply(r.localTransform,r.localTransform,e)}else{var t=r.localTransform,i=r.localPosition,o=r.localRotation,a=r.localScale,s=r.origin,u=i[0]!==0||i[1]!==0||i[2]!==0,l=o[3]!==1||o[0]!==0||o[1]!==0||o[2]!==0,c=a[0]!==1||a[1]!==1||a[2]!==1,f=s[0]!==0||s[1]!==0||s[2]!==0;!l&&!c&&!f?u?A.fromTranslation(t,i):A.identity(t):A.fromRotationTranslationScaleOrigin(t,o,i,a,s)}r.localDirtyFlag=!1}}function Za(r,n){r.dirtyFlag&&(n?A.multiply(r.worldTransform,n.worldTransform,r.localTransform):A.copy(r.worldTransform,r.localTransform),r.dirtyFlag=!1)}var Ei={absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new lt(0,0,0,0)},O=function(r){return r.COORDINATE="<coordinate>",r.COLOR="<color>",r.PAINT="<paint>",r.NUMBER="<number>",r.ANGLE="<angle>",r.OPACITY_VALUE="<opacity-value>",r.SHADOW_BLUR="<shadow-blur>",r.LENGTH="<length>",r.PERCENTAGE="<percentage>",r.LENGTH_PERCENTAGE="<length> | <percentage>",r.LENGTH_PERCENTAGE_12="[<length> | <percentage>]{1,2}",r.LENGTH_PERCENTAGE_14="[<length> | <percentage>]{1,4}",r.LIST_OF_POINTS="<list-of-points>",r.PATH="<path>",r.FILTER="<filter>",r.Z_INDEX="<z-index>",r.OFFSET_DISTANCE="<offset-distance>",r.DEFINED_PATH="<defined-path>",r.MARKER="<marker>",r.TRANSFORM="<transform>",r.TRANSFORM_ORIGIN="<transform-origin>",r.TEXT="<text>",r.TEXT_TRANSFORM="<text-transform>",r}({});function zr(r,n,e){r.prototype=n.prototype=e,e.constructor=r}function Ti(r,n){var e=Object.create(r.prototype);for(var t in n)e[t]=n[t];return e}function Nt(){}var Pt=.7,tr=1/Pt,st="\\s*([+-]?\\d+)\\s*",St="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",_e="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ka=/^#([0-9a-f]{3,8})$/,qa=new RegExp(`^rgb\\(${st},${st},${st}\\)$`),ja=new RegExp(`^rgb\\(${_e},${_e},${_e}\\)$`),Ja=new RegExp(`^rgba\\(${st},${st},${st},${St}\\)$`),Qa=new RegExp(`^rgba\\(${_e},${_e},${_e},${St}\\)$`),eo=new RegExp(`^hsl\\(${St},${_e},${_e}\\)$`),to=new RegExp(`^hsla\\(${St},${_e},${_e},${St}\\)$`),_n={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};zr(Nt,or,{copy(r){return Object.assign(new this.constructor,this,r)},displayable(){return this.rgb().displayable()},hex:Fn,formatHex:Fn,formatHex8:ro,formatHsl:no,formatRgb:Bn,toString:Bn});function Fn(){return this.rgb().formatHex()}function ro(){return this.rgb().formatHex8()}function no(){return wi(this).formatHsl()}function Bn(){return this.rgb().formatRgb()}function or(r){var n,e;return r=(r+"").trim().toLowerCase(),(n=Ka.exec(r))?(e=n[1].length,n=parseInt(n[1],16),e===6?Gn(n):e===3?new we(n>>8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):e===8?Bt(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):e===4?Bt(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=qa.exec(r))?new we(n[1],n[2],n[3],1):(n=ja.exec(r))?new we(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=Ja.exec(r))?Bt(n[1],n[2],n[3],n[4]):(n=Qa.exec(r))?Bt(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=eo.exec(r))?Un(n[1],n[2]/100,n[3]/100,1):(n=to.exec(r))?Un(n[1],n[2]/100,n[3]/100,n[4]):_n.hasOwnProperty(r)?Gn(_n[r]):r==="transparent"?new we(NaN,NaN,NaN,0):null}function Gn(r){return new we(r>>16&255,r>>8&255,r&255,1)}function Bt(r,n,e,t){return t<=0&&(r=n=e=NaN),new we(r,n,e,t)}function io(r){return r instanceof Nt||(r=or(r)),r?(r=r.rgb(),new we(r.r,r.g,r.b,r.opacity)):new we}function ao(r,n,e,t){return arguments.length===1?io(r):new we(r,n,e,t??1)}function we(r,n,e,t){this.r=+r,this.g=+n,this.b=+e,this.opacity=+t}zr(we,ao,Ti(Nt,{brighter(r){return r=r==null?tr:Math.pow(tr,r),new we(this.r*r,this.g*r,this.b*r,this.opacity)},darker(r){return r=r==null?Pt:Math.pow(Pt,r),new we(this.r*r,this.g*r,this.b*r,this.opacity)},rgb(){return this},clamp(){return new we(Qe(this.r),Qe(this.g),Qe(this.b),rr(this.opacity))},displayable(){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:Vn,formatHex:Vn,formatHex8:oo,formatRgb:Yn,toString:Yn}));function Vn(){return`#${Je(this.r)}${Je(this.g)}${Je(this.b)}`}function oo(){return`#${Je(this.r)}${Je(this.g)}${Je(this.b)}${Je((isNaN(this.opacity)?1:this.opacity)*255)}`}function Yn(){let r=rr(this.opacity);return`${r===1?"rgb(":"rgba("}${Qe(this.r)}, ${Qe(this.g)}, ${Qe(this.b)}${r===1?")":`, ${r})`}`}function rr(r){return isNaN(r)?1:Math.max(0,Math.min(1,r))}function Qe(r){return Math.max(0,Math.min(255,Math.round(r)||0))}function Je(r){return r=Qe(r),(r<16?"0":"")+r.toString(16)}function Un(r,n,e,t){return t<=0?r=n=e=NaN:e<=0||e>=1?r=n=NaN:n<=0&&(r=NaN),new Le(r,n,e,t)}function wi(r){if(r instanceof Le)return new Le(r.h,r.s,r.l,r.opacity);if(r instanceof Nt||(r=or(r)),!r)return new Le;if(r instanceof Le)return r;r=r.rgb();var n=r.r/255,e=r.g/255,t=r.b/255,i=Math.min(n,e,t),o=Math.max(n,e,t),a=NaN,s=o-i,u=(o+i)/2;return s?(n===o?a=(e-t)/s+(e<t)*6:e===o?a=(t-n)/s+2:a=(n-e)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Le(a,s,u,r.opacity)}function so(r,n,e,t){return arguments.length===1?wi(r):new Le(r,n,e,t??1)}function Le(r,n,e,t){this.h=+r,this.s=+n,this.l=+e,this.opacity=+t}zr(Le,so,Ti(Nt,{brighter(r){return r=r==null?tr:Math.pow(tr,r),new Le(this.h,this.s,this.l*r,this.opacity)},darker(r){return r=r==null?Pt:Math.pow(Pt,r),new Le(this.h,this.s,this.l*r,this.opacity)},rgb(){var r=this.h%360+(this.h<0)*360,n=isNaN(r)||isNaN(this.s)?0:this.s,e=this.l,t=e+(e<.5?e:1-e)*n,i=2*e-t;return new we(kr(r>=240?r-240:r+120,i,t),kr(r,i,t),kr(r<120?r+240:r-120,i,t),this.opacity)},clamp(){return new Le(zn(this.h),Gt(this.s),Gt(this.l),rr(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let r=rr(this.opacity);return`${r===1?"hsl(":"hsla("}${zn(this.h)}, ${Gt(this.s)*100}%, ${Gt(this.l)*100}%${r===1?")":`, ${r})`}`}}));function zn(r){return r=(r||0)%360,r<0?r+360:r}function Gt(r){return Math.max(0,Math.min(1,r||0))}function kr(r,n,e){return(r<60?n+(e-n)*r/60:r<180?e:r<240?n+(e-n)*(240-r)/60:n)*255}function ce(r,n){if(typeof r!="function"||n!=null&&typeof n!="function")throw new TypeError("Expected a function");var e=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=n?n.apply(this,o):o[0],u=e.cache;if(u.has(s))return u.get(s);var l=r.apply(this,o);return e.cache=u.set(s,l)||u,l};return e.cache=new(ce.Cache||Map),ce.cacheList.push(e.cache),e}ce.Cache=Map;ce.cacheList=[];ce.clearCache=function(){ce.cacheList.forEach(function(r){return r.clear()})};var I=function(r){return r[r.kUnknown=0]="kUnknown",r[r.kNumber=1]="kNumber",r[r.kPercentage=2]="kPercentage",r[r.kEms=3]="kEms",r[r.kPixels=4]="kPixels",r[r.kRems=5]="kRems",r[r.kDegrees=6]="kDegrees",r[r.kRadians=7]="kRadians",r[r.kGradians=8]="kGradians",r[r.kTurns=9]="kTurns",r[r.kMilliseconds=10]="kMilliseconds",r[r.kSeconds=11]="kSeconds",r[r.kInteger=12]="kInteger",r}({}),Oe=function(r){return r[r.kUNumber=0]="kUNumber",r[r.kUPercent=1]="kUPercent",r[r.kULength=2]="kULength",r[r.kUAngle=3]="kUAngle",r[r.kUTime=4]="kUTime",r[r.kUOther=5]="kUOther",r}({}),uo=function(r){return r[r.kYes=0]="kYes",r[r.kNo=1]="kNo",r}({}),lo=function(r){return r[r.kYes=0]="kYes",r[r.kNo=1]="kNo",r}({}),co=[{name:"em",unit_type:I.kEms},{name:"px",unit_type:I.kPixels},{name:"deg",unit_type:I.kDegrees},{name:"rad",unit_type:I.kRadians},{name:"grad",unit_type:I.kGradians},{name:"ms",unit_type:I.kMilliseconds},{name:"s",unit_type:I.kSeconds},{name:"rem",unit_type:I.kRems},{name:"turn",unit_type:I.kTurns}],ct=function(r){return r[r.kUnknownType=0]="kUnknownType",r[r.kUnparsedType=1]="kUnparsedType",r[r.kKeywordType=2]="kKeywordType",r[r.kUnitType=3]="kUnitType",r[r.kSumType=4]="kSumType",r[r.kProductType=5]="kProductType",r[r.kNegateType=6]="kNegateType",r[r.kInvertType=7]="kInvertType",r[r.kMinType=8]="kMinType",r[r.kMaxType=9]="kMaxType",r[r.kClampType=10]="kClampType",r[r.kTransformType=11]="kTransformType",r[r.kPositionType=12]="kPositionType",r[r.kURLImageType=13]="kURLImageType",r[r.kColorType=14]="kColorType",r[r.kUnsupportedColorType=15]="kUnsupportedColorType",r}({}),fo=function(n){return co.find(function(e){return e.name===n}).unit_type},ho=function(n){return n?n==="number"?I.kNumber:n==="percent"||n==="%"?I.kPercentage:fo(n):I.kUnknown},vo=function(n){switch(n){case I.kNumber:case I.kInteger:return Oe.kUNumber;case I.kPercentage:return Oe.kUPercent;case I.kPixels:return Oe.kULength;case I.kMilliseconds:case I.kSeconds:return Oe.kUTime;case I.kDegrees:case I.kRadians:case I.kGradians:case I.kTurns:return Oe.kUAngle;default:return Oe.kUOther}},go=function(n){switch(n){case Oe.kUNumber:return I.kNumber;case Oe.kULength:return I.kPixels;case Oe.kUPercent:return I.kPercentage;case Oe.kUTime:return I.kSeconds;case Oe.kUAngle:return I.kDegrees;default:return I.kUnknown}},Xn=function(n){var e=1;switch(n){case I.kPixels:case I.kDegrees:case I.kSeconds:break;case I.kMilliseconds:e=.001;break;case I.kRadians:e=180/Math.PI;break;case I.kGradians:e=.9;break;case I.kTurns:e=360;break}return e},Or=function(n){switch(n){case I.kNumber:case I.kInteger:return"";case I.kPercentage:return"%";case I.kEms:return"em";case I.kRems:return"rem";case I.kPixels:return"px";case I.kDegrees:return"deg";case I.kRadians:return"rad";case I.kGradians:return"grad";case I.kMilliseconds:return"ms";case I.kSeconds:return"s";case I.kTurns:return"turn"}return""},sr=function(){function r(){D(this,r)}return _(r,[{key:"toString",value:function(){return this.buildCSSText(uo.kNo,lo.kNo,"")}},{key:"isNumericValue",value:function(){return this.getType()>=ct.kUnitType&&this.getType()<=ct.kClampType}}],[{key:"isAngle",value:function(e){return e===I.kDegrees||e===I.kRadians||e===I.kGradians||e===I.kTurns}},{key:"isLength",value:function(e){return e>=I.kEms&&e<I.kDegrees}},{key:"isRelativeUnit",value:function(e){return e===I.kPercentage||e===I.kEms||e===I.kRems}},{key:"isTime",value:function(e){return e===I.kSeconds||e===I.kMilliseconds}}])}(),po=function(r){function n(e){var t;return D(this,n),t=Z(this,n),t.colorSpace=e,t}return K(n,r),_(n,[{key:"getType",value:function(){return ct.kColorType}},{key:"to",value:function(t){return this}}])}(sr),Vt=function(r){return r[r.Constant=0]="Constant",r[r.LinearGradient=1]="LinearGradient",r[r.RadialGradient=2]="RadialGradient",r}({}),Yt=function(r){function n(e,t){var i;return D(this,n),i=Z(this,n),i.type=e,i.value=t,i}return K(n,r),_(n,[{key:"clone",value:function(){return new n(this.type,this.value)}},{key:"buildCSSText",value:function(t,i,o){return o}},{key:"getType",value:function(){return ct.kColorType}}])}(sr),Ne=function(r){function n(e){var t;return D(this,n),t=Z(this,n),t.value=e,t}return K(n,r),_(n,[{key:"clone",value:function(){return new n(this.value)}},{key:"getType",value:function(){return ct.kKeywordType}},{key:"buildCSSText",value:function(t,i,o){return o+this.value}}])}(sr),mo=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",t="";return Number.isFinite(n)?t="NaN":n>0?t="infinity":t="-infinity",t+=e},Lr=function(n){return go(vo(n))},q=function(r){function n(e){var t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.kNumber;D(this,n),t=Z(this,n);var o;return typeof i=="string"?o=ho(i):o=i,t.unit=o,t.value=e,t}return K(n,r),_(n,[{key:"clone",value:function(){return new n(this.value,this.unit)}},{key:"equals",value:function(t){var i=t;return this.value===i.value&&this.unit===i.unit}},{key:"getType",value:function(){return ct.kUnitType}},{key:"convertTo",value:function(t){if(this.unit===t)return new n(this.value,this.unit);var i=Lr(this.unit);if(i!==Lr(t)||i===I.kUnknown)return null;var o=Xn(this.unit)/Xn(t);return new n(this.value*o,t)}},{key:"buildCSSText",value:function(t,i,o){var a;switch(this.unit){case I.kUnknown:break;case I.kInteger:a=Number(this.value).toFixed(0);break;case I.kNumber:case I.kPercentage:case I.kEms:case I.kRems:case I.kPixels:case I.kDegrees:case I.kRadians:case I.kGradians:case I.kMilliseconds:case I.kSeconds:case I.kTurns:{var s=-999999,u=999999,l=this.value,c=Or(this.unit);if(l<s||l>u){var f=Or(this.unit);!Number.isFinite(l)||Number.isNaN(l)?a=mo(l,f):a=l+(f||"")}else a="".concat(l).concat(c)}}return o+=a,o}}])}(sr),Re=new q(0,"px");new q(1,"px");var et=new q(0,"deg"),Xr=function(r){function n(e,t,i){var o,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;return D(this,n),o=Z(this,n,["rgb"]),o.r=e,o.g=t,o.b=i,o.alpha=a,o.isNone=s,o}return K(n,r),_(n,[{key:"clone",value:function(){return new n(this.r,this.g,this.b,this.alpha)}},{key:"buildCSSText",value:function(t,i,o){return"".concat(o,"rgba(").concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")}}])}(po),Wn=new Ne("unset"),yo=new Ne("initial"),xo=new Ne("inherit"),Er={"":Wn,unset:Wn,initial:yo,inherit:xo},ko=function(n){return Er[n]||(Er[n]=new Ne(n)),Er[n]},Pi=new Xr(0,0,0,0,!0),Si=new Xr(0,0,0,0),Eo=ce(function(r,n,e,t){return new Xr(r,n,e,t)},function(r,n,e,t){return"rgba(".concat(r,",").concat(n,",").concat(e,",").concat(t,")")}),te=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:I.kNumber;return new q(n,e)};new q(50,"%");function To(r){var n=r.type,e=r.value;return n==="hex"?"#".concat(e):n==="literal"?e:n==="rgb"?"rgb(".concat(e.join(","),")"):"rgba(".concat(e.join(","),")")}var wo=function(){var r={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]+\.?))/},n="";function e(R){throw new Error("".concat(n,": ").concat(R))}function t(){var R=i();return n.length>0&&e("Invalid input not EOF"),R}function i(){return P(o)}function o(){return a("linear-gradient",r.linearGradient,u)||a("repeating-linear-gradient",r.repeatingLinearGradient,u)||a("radial-gradient",r.radialGradient,f)||a("repeating-radial-gradient",r.repeatingRadialGradient,f)||a("conic-gradient",r.conicGradient,f)}function a(R,U,Y){return s(U,function(fe){var he=Y();return he&&(V(r.comma)||e("Missing comma before color stops")),{type:R,orientation:he,colorStops:P(L)}})}function s(R,U){var Y=V(R);if(Y){V(r.startCall)||e("Missing (");var fe=U(Y);return V(r.endCall)||e("Missing )"),fe}}function u(){return l()||c()}function l(){return G("directional",r.sideOrCorner,1)}function c(){return G("angular",r.angleValue,1)}function f(){var R,U=h(),Y;return U&&(R=[],R.push(U),Y=n,V(r.comma)&&(U=h(),U?R.push(U):n=Y)),R}function h(){var R=v()||d();if(R)R.at=E();else{var U=m();if(U){R=U;var Y=E();Y&&(R.at=Y)}else{var fe=w();fe&&(R={type:"default-radial",at:fe})}}return R}function v(){var R=G("shape",/^(circle)/i,0);return R&&(R.style=B()||m()),R}function d(){var R=G("shape",/^(ellipse)/i,0);return R&&(R.style=M()||m()),R}function m(){return G("extent-keyword",r.extentKeywords,1)}function E(){if(G("position",/^at/,0)){var R=w();return R||e("Missing positioning value"),R}}function w(){var R=k();if(R.x||R.y)return{type:"position",value:R}}function k(){return{x:M(),y:M()}}function P(R){var U=R(),Y=[];if(U)for(Y.push(U);V(r.comma);)U=R(),U?Y.push(U):e("One extra comma");return Y}function L(){var R=x();return R||e("Expected color definition"),R.length=M(),R}function x(){return p()||N()||y()||g()}function g(){return G("literal",r.literalColor,0)}function p(){return G("hex",r.hexColor,1)}function y(){return s(r.rgbColor,function(){return{type:"rgb",value:P(b)}})}function N(){return s(r.rgbaColor,function(){return{type:"rgba",value:P(b)}})}function b(){return V(r.number)[1]}function M(){return G("%",r.percentageValue,1)||S()||B()}function S(){return G("position-keyword",r.positionKeywords,1)}function B(){return G("px",r.pixelValue,1)||G("em",r.emValue,1)}function G(R,U,Y){var fe=V(U);if(fe)return{type:R,value:fe[Y]}}function V(R){var U=/^[\n\r\t\s]+/.exec(n);U&&z(U[0].length);var Y=R.exec(n);return Y&&z(Y[0].length),Y}function z(R){n=n.substring(R)}return function(R){return n=R,t()}}();function hf(r,n,e,t){var i=Q(t.value),o=0,a=0,s=o+n/2,u=a+e/2,l=Math.abs(n*Math.cos(i))+Math.abs(e*Math.sin(i)),c=r[0]+s-Math.cos(i)*l/2,f=r[1]+u-Math.sin(i)*l/2,h=r[0]+s+Math.cos(i)*l/2,v=r[1]+u+Math.sin(i)*l/2;return{x1:c,y1:f,x2:h,y2:v}}function vf(r,n,e,t,i,o){var a=t.value,s=i.value;t.unit===I.kPercentage&&(a=t.value/100*n),i.unit===I.kPercentage&&(s=i.value/100*e);var u=Math.max(ze([0,0],[a,s]),ze([0,e],[a,s]),ze([n,e],[a,s]),ze([n,0],[a,s]));return o&&(o instanceof q?u=o.value:o instanceof Ne&&(o.value==="closest-side"?u=Math.min(a,n-a,s,e-s):o.value==="farthest-side"?u=Math.max(a,n-a,s,e-s):o.value==="closest-corner"&&(u=Math.min(ze([0,0],[a,s]),ze([0,e],[a,s]),ze([n,e],[a,s]),ze([n,0],[a,s]))))),{x:a+r[0],y:s+r[1],r:u}}var Po=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,So=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,bo=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,bi=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function No(r){var n,e=r.length;if(r[e-1].length=(n=r[e-1].length)!==null&&n!==void 0?n:{type:"%",value:"100"},e>1){var t;r[0].length=(t=r[0].length)!==null&&t!==void 0?t:{type:"%",value:"0"}}for(var i=0,o=Number(r[0].length.value),a=1;a<e;a++){var s,u=(s=r[a].length)===null||s===void 0?void 0:s.value;if(!ge(u)&&!ge(o)){for(var l=1;l<a-i;l++)r[i+l].length={type:"%",value:"".concat(o+(Number(u)-o)*l/(a-i))};i=a,o=Number(u)}}}var Co={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},Mo=ce(function(r){var n;return r.type==="angular"?n=Number(r.value):n=Co[r.value]||0,te(n,"deg")}),Ao=ce(function(r){var n=50,e=50,t="%",i="%";if(r?.type==="position"){var o=r.value,a=o.x,s=o.y;a?.type==="position-keyword"&&(a.value==="left"?n=0:a.value==="center"?n=50:a.value==="right"?n=100:a.value==="top"?e=0:a.value==="bottom"&&(e=100)),s?.type==="position-keyword"&&(s.value==="left"?n=0:s.value==="center"?e=50:s.value==="right"?n=100:s.value==="top"?e=0:s.value==="bottom"&&(e=100)),(a?.type==="px"||a?.type==="%"||a?.type==="em")&&(t=a?.type,n=Number(a.value)),(s?.type==="px"||s?.type==="%"||s?.type==="em")&&(i=s?.type,e=Number(s.value))}return{cx:te(n,t),cy:te(e,i)}}),Ro=ce(function(r){if(r.indexOf("linear")>-1||r.indexOf("radial")>-1){var n=wo(r);return n.map(function(s){var u=s.type,l=s.orientation,c=s.colorStops;No(c);var f=c.map(function(P){return{offset:te(Number(P.length.value),"%"),color:To(P)}});if(u==="linear-gradient")return new Yt(Vt.LinearGradient,{angle:l?Mo(l):et,steps:f});if(u==="radial-gradient"&&(l||(l=[{type:"shape",value:"circle"}]),l[0].type==="shape"&&l[0].value==="circle")){var h=Ao(l[0].at),v=h.cx,d=h.cy,m;if(l[0].style){var E=l[0].style,w=E.type,k=E.value;w==="extent-keyword"?m=ko(k):m=te(k,w)}return new Yt(Vt.RadialGradient,{cx:v,cy:d,size:m,steps:f})}})}var e=r[0];if(r[1]==="("||r[2]==="("){if(e==="l"){var t=Po.exec(r);if(t){var i,o=((i=t[2].match(bi))===null||i===void 0?void 0:i.map(function(s){return s.split(":")}))||[];return[new Yt(Vt.LinearGradient,{angle:te(parseFloat(t[1]),"deg"),steps:o.map(function(s){var u=j(s,2),l=u[0],c=u[1];return{offset:te(Number(l)*100,"%"),color:c}})})]}}else if(e==="r"){var a=Oo(r);if(a)if(tt(a))r=a;else return[new Yt(Vt.RadialGradient,a)]}else if(e==="p")return Lo(r)}});function Oo(r){var n=So.exec(r);if(n){var e,t=((e=n[4].match(bi))===null||e===void 0?void 0:e.map(function(i){return i.split(":")}))||[];return{cx:te(50,"%"),cy:te(50,"%"),steps:t.map(function(i){var o=j(i,2),a=o[0],s=o[1];return{offset:te(Number(a)*100,"%"),color:s}})}}return null}function Lo(r){var n=bo.exec(r);if(n){var e=n[1],t=n[2];switch(e){case"a":e="repeat";break;case"x":e="repeat-x";break;case"y":e="repeat-y";break;case"n":e="no-repeat";break;default:e="no-repeat"}return{image:t,repetition:e}}return null}function df(r){return!!r.type&&!!r.value}function Io(r){return r&&!!r.image}function Hn(r){return r&&!ge(r.r)&&!ge(r.g)&&!ge(r.b)}var Tt=ce(function(r){if(Io(r))return $({repetition:"repeat"},r);if(ge(r)&&(r=""),r==="transparent")return Si;if(r==="currentColor")r="black";else if(r==="none")return Pi;var n=Ro(r);if(n)return n;var e=or(r),t=[0,0,0,0];return e!==null&&(t[0]=e.r||0,t[1]=e.g||0,t[2]=e.b||0,t[3]=e.opacity),Eo.apply(void 0,t)});function Do(r,n){if(!(!Hn(r)||!Hn(n)))return[[Number(r.r),Number(r.g),Number(r.b),Number(r.alpha)],[Number(n.r),Number(n.g),Number(n.b),Number(n.alpha)],function(e){var t=e.slice();if(t[3])for(var i=0;i<3;i++)t[i]=Math.round(wt(t[i],0,255));return t[3]=wt(t[3],0,1),"rgba(".concat(t.join(","),")")}]}function Ct(r,n){if(ge(n))return te(0,"px");if(n="".concat(n).trim().toLowerCase(),isFinite(Number(n))){if("px".search(r)>=0)return te(Number(n),"px");if("deg".search(r)>=0)return te(Number(n),"deg")}var e=[];n=n.replace(r,function(i){return e.push(i),"U".concat(i)});var t="U(".concat(r.source,")");return e.map(function(i){return te(Number(n.replace(new RegExp("U".concat(i),"g"),"").replace(new RegExp(t,"g"),"*0")),i)})[0]}var Ni=function(n){return Ct(new RegExp("px","g"),n)},_o=ce(Ni),Fo=function(n){return Ct(new RegExp("%","g"),n)};ce(Fo);var Ci=function(n){return ft(n)||isFinite(Number(n))?te(Number(n)||0,"px"):Ct(new RegExp("px|%|em|rem","g"),n)},Ir=ce(Ci),Mi=function(n){return Ct(new RegExp("deg|rad|grad|turn","g"),n)},Bo=ce(Mi);function Go(r,n,e,t){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o="",a=r.value||0,s=n.value||0,u=Lr(r.unit),l=r.convertTo(u),c=n.convertTo(u);return l&&c?(a=l.value,s=c.value,o=Or(r.unit)):(q.isLength(r.unit)||q.isLength(n.unit))&&(a=Pe(r,i,e),s=Pe(n,i,e),o="px"),[a,s,function(f){return t&&(f=Math.max(f,0)),f+o}]}function Ee(r){var n=0;return r.unit===I.kDegrees?n=r.value:r.unit===I.kRadians?n=be(Number(r.value)):r.unit===I.kTurns?n=_a(Number(r.value)):r.value&&(n=r.value),n}function $n(r,n){var e;return Array.isArray(r)?e=r.map(function(t){return Number(t)}):tt(r)?e=r.split(" ").map(function(t){return Number(t)}):ft(r)&&(e=[r]),n===2?e.length===1?[e[0],e[0]]:[e[0],e[1]]:n===4?e.length===1?[e[0],e[0],e[0],e[0]]:e.length===2?[e[0],e[1],e[0],e[1]]:e.length===3?[e[0],e[1],e[2],e[1]]:[e[0],e[1],e[2],e[3]]:n==="even"&&e.length%2===1?[].concat(J(e),J(e)):e}function Pe(r,n,e){var t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(r.unit===I.kPixels)return Number(r.value);if(r.unit===I.kPercentage&&e){var i=e.nodeName===F.GROUP?e.getLocalBounds():e.getGeometryBounds();return(t?i.min[n]:0)+r.value/100*i.halfExtents[n]*2}return 0}var Vo=function(n){return Ct(/deg|rad|grad|turn|px|%/g,n)},Yo=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Uo(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(r=r.toLowerCase().trim(),r==="none")return[];for(var n=/\s*([\w-]+)\(([^)]*)\)/g,e=[],t,i=0;t=n.exec(r);){if(t.index!==i)return[];if(i=t.index+t[0].length,Yo.indexOf(t[1])>-1&&e.push({name:t[1],params:t[2].split(" ").map(function(o){return Vo(o)||Tt(o)})}),n.lastIndex===r.length)return e}return[]}function Ai(r){return r.toString()}var Ri=function(n){return typeof n=="number"?te(n):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(n)?te(Number(n)):te(0)},Dr=ce(Ri);ce(function(r){return tt(r)?r.split(" ").map(Dr):r.map(Dr)});function Wr(r,n){return[r,n,Ai]}function Hr(r,n){return function(e,t){return[e,t,function(i){return Ai(wt(i,r,n))}]}}function Oi(r,n){if(r.length===n.length)return[r,n,function(e){return e}]}function Zn(r){return r.parsedStyle.d.totalLength===0&&(r.parsedStyle.d.totalLength=va(r.parsedStyle.d.absolutePath)),r.parsedStyle.d.totalLength}function zo(r){return r.parsedStyle.points.totalLength===0&&(r.parsedStyle.points.totalLength=Ta(r.parsedStyle.points.points)),r.parsedStyle.points.totalLength}function Xo(r){for(var n=0;n<r.length;n++){var e=r[n-1],t=r[n],i=t[0];if(i==="M"&&e){var o=e[0],a=[t[1],t[2]],s=void 0;o==="L"||o==="M"?s=[e[1],e[2]]:(o==="C"||o==="A"||o==="Q")&&(s=[e[e.length-2],e[e.length-1]]),s&&nr(a,s)&&(r.splice(n,1),n--)}}}function Wo(r){for(var n=!1,e=r.length,t=0;t<e;t++){var i=r[t],o=i[0];if(o==="C"||o==="A"||o==="Q"){n=!0;break}}return n}function Ho(r){for(var n=[],e=[],t=[],i=0;i<r.length;i++){var o=r[i],a=o[0];a==="M"?(t.length&&(e.push(t),t=[]),t.push([o[1],o[2]])):a==="Z"?t.length&&(n.push(t),t=[]):t.push([o[1],o[2]])}return t.length>0&&e.push(t),{polygons:n,polylines:e}}function nr(r,n){return r[0]===n[0]&&r[1]===n[1]}function $o(r,n){for(var e=[],t=[],i=[],o=0;o<r.length;o++){var a=r[o],s=a.currentPoint,u=a.params,l=a.prePoint,c=void 0;switch(a.command){case"Q":c=Sa(l[0],l[1],u[1],u[2],u[3],u[4]);break;case"C":c=Pa(l[0],l[1],u[1],u[2],u[3],u[4],u[5],u[6]);break;case"A":var f=a.arcParams;c=wa(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:e.push(s[0]),t.push(s[1]);break}c&&(a.box=c,e.push(c.x,c.x+c.width),t.push(c.y,c.y+c.height)),n&&(a.command==="L"||a.command==="M")&&a.prePoint&&a.nextPoint&&i.push(a)}e=e.filter(function(L){return!Number.isNaN(L)&&L!==1/0&&L!==-1/0}),t=t.filter(function(L){return!Number.isNaN(L)&&L!==1/0&&L!==-1/0});var h=Sn(e),v=Sn(t),d=bn(e),m=bn(t);if(i.length===0)return{x:h,y:v,width:d-h,height:m-v};for(var E=0;E<i.length;E++){var w=i[E],k=w.currentPoint,P=void 0;k[0]===h?(P=Ut(w,n),h-=P.xExtra):k[0]===d&&(P=Ut(w,n),d+=P.xExtra),k[1]===v?(P=Ut(w,n),v-=P.yExtra):k[1]===m&&(P=Ut(w,n),m+=P.yExtra)}return{x:h,y:v,width:d-h,height:m-v}}function Ut(r,n){var e=r.prePoint,t=r.currentPoint,i=r.nextPoint,o=Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2),a=Math.pow(t[0]-i[0],2)+Math.pow(t[1]-i[1],2),s=Math.pow(e[0]-i[0],2)+Math.pow(e[1]-i[1],2),u=Math.acos((o+a-s)/(2*Math.sqrt(o)*Math.sqrt(a)));if(!u||Math.sin(u)===0||da(u,0))return{xExtra:0,yExtra:0};var l=Math.abs(Math.atan2(i[1]-t[1],i[0]-t[0])),c=Math.abs(Math.atan2(i[0]-t[0],i[1]-t[1]));l=l>Math.PI/2?Math.PI-l:l,c=c>Math.PI/2?Math.PI-c:c;var f={xExtra:Math.cos(u/2-l)*(n/2*(1/Math.sin(u/2)))-n/2||0,yExtra:Math.cos(c-u/2)*(n/2*(1/Math.sin(u/2)))-n/2||0};return f}function Kn(r,n){return[n[0]+(n[0]-r[0]),n[1]+(n[1]-r[1])]}var qn=function(n,e){var t=n.x*e.x+n.y*e.y,i=Math.sqrt((Math.pow(n.x,2)+Math.pow(n.y,2))*(Math.pow(e.x,2)+Math.pow(e.y,2))),o=n.x*e.y-n.y*e.x<0?-1:1,a=o*Math.acos(t/i);return a},jn=function(n,e,t,i,o,a,s,u){e=Math.abs(e),t=Math.abs(t),i=pi(i,360);var l=Q(i);if(n.x===s.x&&n.y===s.y)return{x:n.x,y:n.y,ellipticalArcAngle:0};if(e===0||t===0)return{x:0,y:0,ellipticalArcAngle:0};var c=(n.x-s.x)/2,f=(n.y-s.y)/2,h={x:Math.cos(l)*c+Math.sin(l)*f,y:-Math.sin(l)*c+Math.cos(l)*f},v=Math.pow(h.x,2)/Math.pow(e,2)+Math.pow(h.y,2)/Math.pow(t,2);v>1&&(e*=Math.sqrt(v),t*=Math.sqrt(v));var d=Math.pow(e,2)*Math.pow(t,2)-Math.pow(e,2)*Math.pow(h.y,2)-Math.pow(t,2)*Math.pow(h.x,2),m=Math.pow(e,2)*Math.pow(h.y,2)+Math.pow(t,2)*Math.pow(h.x,2),E=d/m;E=E<0?0:E;var w=(o!==a?1:-1)*Math.sqrt(E),k={x:w*(e*h.y/t),y:w*(-(t*h.x)/e)},P={x:Math.cos(l)*k.x-Math.sin(l)*k.y+(n.x+s.x)/2,y:Math.sin(l)*k.x+Math.cos(l)*k.y+(n.y+s.y)/2},L={x:(h.x-k.x)/e,y:(h.y-k.y)/t},x=qn({x:1,y:0},L),g={x:(-h.x-k.x)/e,y:(-h.y-k.y)/t},p=qn(L,g);!a&&p>0?p-=2*Math.PI:a&&p<0&&(p+=2*Math.PI),p%=2*Math.PI;var y=x+p*u,N=e*Math.cos(y),b=t*Math.sin(y),M={x:Math.cos(l)*N-Math.sin(l)*b+P.x,y:Math.sin(l)*N+Math.cos(l)*b+P.y,ellipticalArcStartAngle:x,ellipticalArcEndAngle:x+p,ellipticalArcAngle:y,ellipticalArcCenter:P,resultantRx:e,resultantRy:t};return M};function Zo(r){for(var n=[],e=null,t=null,i=null,o=0,a=r.length,s=0;s<a;s++){var u=r[s];t=r[s+1];var l=u[0],c={command:l,prePoint:e,params:u,startTangent:null,endTangent:null,currentPoint:null,nextPoint:null,arcParams:null,box:null,cubicParams:null};switch(l){case"M":i=[u[1],u[2]],o=s;break;case"A":var f=Ko(e,u);c.arcParams=f;break}if(l==="Z")e=i,t=r[o+1];else{var h=u.length;e=[u[h-2],u[h-1]]}t&&t[0]==="Z"&&(t=r[o],n[o]&&(n[o].prePoint=e)),c.currentPoint=e,n[o]&&nr(e,n[o].currentPoint)&&(n[o].prePoint=c.prePoint);var v=t?[t[t.length-2],t[t.length-1]]:null;c.nextPoint=v;var d=c.prePoint;if(["L","H","V"].includes(l))c.startTangent=[d[0]-e[0],d[1]-e[1]],c.endTangent=[e[0]-d[0],e[1]-d[1]];else if(l==="Q"){var m=[u[1],u[2]];c.startTangent=[d[0]-m[0],d[1]-m[1]],c.endTangent=[e[0]-m[0],e[1]-m[1]]}else if(l==="T"){var E=n[s-1],w=Kn(E.currentPoint,d);E.command==="Q"?(c.command="Q",c.startTangent=[d[0]-w[0],d[1]-w[1]],c.endTangent=[e[0]-w[0],e[1]-w[1]]):(c.command="TL",c.startTangent=[d[0]-e[0],d[1]-e[1]],c.endTangent=[e[0]-d[0],e[1]-d[1]])}else if(l==="C"){var k=[u[1],u[2]],P=[u[3],u[4]];c.startTangent=[d[0]-k[0],d[1]-k[1]],c.endTangent=[e[0]-P[0],e[1]-P[1]],c.startTangent[0]===0&&c.startTangent[1]===0&&(c.startTangent=[k[0]-P[0],k[1]-P[1]]),c.endTangent[0]===0&&c.endTangent[1]===0&&(c.endTangent=[P[0]-k[0],P[1]-k[1]])}else if(l==="S"){var L=n[s-1],x=Kn(L.currentPoint,d),g=[u[1],u[2]];L.command==="C"?(c.command="C",c.startTangent=[d[0]-x[0],d[1]-x[1]],c.endTangent=[e[0]-g[0],e[1]-g[1]]):(c.command="SQ",c.startTangent=[d[0]-g[0],d[1]-g[1]],c.endTangent=[e[0]-g[0],e[1]-g[1]])}else if(l==="A"){var p=Jn(c,0),y=p.x,N=p.y,b=Jn(c,1,!1),M=b.x,S=b.y;c.startTangent=[y,N],c.endTangent=[M,S]}n.push(c)}return n}function Jn(r,n){var e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,t=r.arcParams,i=t.rx,o=i===void 0?0:i,a=t.ry,s=a===void 0?0:a,u=t.xRotation,l=t.arcFlag,c=t.sweepFlag,f=jn({x:r.prePoint[0],y:r.prePoint[1]},o,s,u,!!l,!!c,{x:r.currentPoint[0],y:r.currentPoint[1]},n),h=jn({x:r.prePoint[0],y:r.prePoint[1]},o,s,u,!!l,!!c,{x:r.currentPoint[0],y:r.currentPoint[1]},e?n+.005:n-.005),v=h.x-f.x,d=h.y-f.y,m=Math.sqrt(v*v+d*d);return{x:-v/m,y:-d/m}}function zt(r){return Math.sqrt(r[0]*r[0]+r[1]*r[1])}function _r(r,n){return zt(r)*zt(n)?(r[0]*n[0]+r[1]*n[1])/(zt(r)*zt(n)):1}function Qn(r,n){return(r[0]*n[1]<r[1]*n[0]?-1:1)*Math.acos(_r(r,n))}function Ko(r,n){var e=n[1],t=n[2],i=pi(Q(n[3]),Math.PI*2),o=n[4],a=n[5],s=r[0],u=r[1],l=n[6],c=n[7],f=Math.cos(i)*(s-l)/2+Math.sin(i)*(u-c)/2,h=-1*Math.sin(i)*(s-l)/2+Math.cos(i)*(u-c)/2,v=f*f/(e*e)+h*h/(t*t);v>1&&(e*=Math.sqrt(v),t*=Math.sqrt(v));var d=e*e*(h*h)+t*t*(f*f),m=d?Math.sqrt((e*e*(t*t)-d)/d):1;o===a&&(m*=-1),isNaN(m)&&(m=0);var E=t?m*e*h/t:0,w=e?m*-t*f/e:0,k=(s+l)/2+Math.cos(i)*E-Math.sin(i)*w,P=(u+c)/2+Math.sin(i)*E+Math.cos(i)*w,L=[(f-E)/e,(h-w)/t],x=[(-1*f-E)/e,(-1*h-w)/t],g=Qn([1,0],L),p=Qn(L,x);return _r(L,x)<=-1&&(p=Math.PI),_r(L,x)>=1&&(p=0),a===0&&p>0&&(p-=2*Math.PI),a===1&&p<0&&(p+=2*Math.PI),{cx:k,cy:P,rx:nr(r,[l,c])?0:e,ry:nr(r,[l,c])?0:t,startAngle:g,endAngle:g+p,xRotation:i,arcFlag:o,sweepFlag:a}}function qo(r,n,e){return r.reduce(function(t,i){var o="";if(i[0]==="M"||i[0]==="L"){var a=T.fromValues(i[1],i[2],0);e&&T.transformMat4(a,a,e),o="".concat(i[0]).concat(a[0],",").concat(a[1])}else if(i[0]==="Z")o=i[0];else if(i[0]==="C"){var s=T.fromValues(i[1],i[2],0),u=T.fromValues(i[3],i[4],0),l=T.fromValues(i[5],i[6],0);e&&(T.transformMat4(s,s,e),T.transformMat4(u,u,e),T.transformMat4(l,l,e)),o="".concat(i[0]).concat(s[0],",").concat(s[1],",").concat(u[0],",").concat(u[1],",").concat(l[0],",").concat(l[1])}else if(i[0]==="A"){var c=T.fromValues(i[6],i[7],0);e&&T.transformMat4(c,c,e),o="".concat(i[0]).concat(i[1],",").concat(i[2],",").concat(i[3],",").concat(i[4],",").concat(i[5],",").concat(c[0],",").concat(c[1])}else if(i[0]==="Q"){var f=T.fromValues(i[1],i[2],0),h=T.fromValues(i[3],i[4],0);e&&(T.transformMat4(f,f,e),T.transformMat4(h,h,e)),o="".concat(i[0]).concat(i[1],",").concat(i[2],",").concat(i[3],",").concat(i[4],"}")}return t+=o},"")}function jo(r,n,e,t){return[["M",r,n],["L",e,t]]}function ei(r,n,e,t){var i=(-1+Math.sqrt(2))/3*4,o=r*i,a=n*i,s=e-r,u=e+r,l=t-n,c=t+n;return[["M",s,t],["C",s,t-a,e-o,l,e,l],["C",e+o,l,u,t-a,u,t],["C",u,t+a,e+o,c,e,c],["C",e-o,c,s,t+a,s,t],["Z"]]}function Jo(r,n){var e=r.map(function(t,i){return[i===0?"M":"L",t[0],t[1]]});return n&&e.push(["Z"]),e}function Qo(r,n,e,t,i){if(i){var o=j(i,4),a=o[0],s=o[1],u=o[2],l=o[3],c=r>0?1:-1,f=n>0?1:-1,h=c+f!==0?1:0;return[["M",c*a+e,t],["L",r-c*s+e,t],s?["A",s,s,0,0,h,r+e,f*s+t]:null,["L",r+e,n-f*u+t],u?["A",u,u,0,0,h,r+e-c*u,n+t]:null,["L",e+c*l,n+t],l?["A",l,l,0,0,h,e,n+t-f*l]:null,["L",e,f*a+t],a?["A",a,a,0,0,h,c*a+e,t]:null,["Z"]].filter(function(v){return v})}return[["M",e,t],["L",e+r,t],["L",e+r,t+n],["L",e,t+n],["Z"]]}function gf(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.getLocalTransform(),e=[];switch(r.nodeName){case F.LINE:var t=r.parsedStyle,i=t.x1,o=i===void 0?0:i,a=t.y1,s=a===void 0?0:a,u=t.x2,l=u===void 0?0:u,c=t.y2,f=c===void 0?0:c;e=jo(o,s,l,f);break;case F.CIRCLE:{var h=r.parsedStyle,v=h.r,d=v===void 0?0:v,m=h.cx,E=m===void 0?0:m,w=h.cy,k=w===void 0?0:w;e=ei(d,d,E,k);break}case F.ELLIPSE:{var P=r.parsedStyle,L=P.rx,x=L===void 0?0:L,g=P.ry,p=g===void 0?0:g,y=P.cx,N=y===void 0?0:y,b=P.cy,M=b===void 0?0:b;e=ei(x,p,N,M);break}case F.POLYLINE:case F.POLYGON:var S=r.parsedStyle.points;e=Jo(S.points,r.nodeName===F.POLYGON);break;case F.RECT:var B=r.parsedStyle,G=B.width,V=G===void 0?0:G,z=B.height,R=z===void 0?0:z,U=B.x,Y=U===void 0?0:U,fe=B.y,he=fe===void 0?0:fe,Ce=B.radius,lr=Ce&&Ce.some(function(ht){return ht!==0});e=Qo(V,R,Y,he,lr&&Ce.map(function(ht){return wt(ht,0,Math.min(Math.abs(V)/2,Math.abs(R)/2))}));break;case F.PATH:var cr=r.parsedStyle.d.absolutePath;e=J(cr);break}if(e.length)return qo(e,r,n)}function pf(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,e=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,t=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,o=r.map(function(a,s){var u=a[0],l=r[s+1],c=s===0&&(n!==0||e!==0),f=(s===r.length-1||l&&(l[0]==="M"||l[0]==="Z"))&&t!==0&&i!==0,h=c?[n,e]:[0,0],v=j(h,2),d=v[0],m=v[1],E=f?[t,i]:[0,0],w=j(E,2),k=w[0],P=w[1];switch(u){case"M":return"M ".concat(a[1]+d,",").concat(a[2]+m);case"L":return"L ".concat(a[1]+k,",").concat(a[2]+P);case"Q":return"Q ".concat(a[1]," ").concat(a[2],",").concat(a[3]+k," ").concat(a[4]+P);case"C":return"C ".concat(a[1]," ").concat(a[2],",").concat(a[3]," ").concat(a[4],",").concat(a[5]+k," ").concat(a[6]+P);case"A":return"A ".concat(a[1]," ").concat(a[2]," ").concat(a[3]," ").concat(a[4]," ").concat(a[5]," ").concat(a[6]," ").concat(a[7]).concat(f?" L ".concat(a[6]+t,",").concat(a[7]+i):"");case"Z":return"Z";default:return null}}).filter(function(a){return a!==null}).join(" ");return~o.indexOf("NaN")?"":o}var Li=function(n){if(n===""||Array.isArray(n)&&n.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var e;try{e=Nn(n)}catch{e=Nn(""),console.error("[g]: Invalid SVG Path definition: ".concat(n))}Xo(e);var t=Wo(e),i=Ho(e),o=i.polygons,a=i.polylines,s=Zo(e),u=$o(s,0),l=u.x,c=u.y,f=u.width,h=u.height;return{absolutePath:e,hasArc:t,segments:s,polygons:o,polylines:a,totalLength:0,rect:{x:Number.isFinite(l)?l:0,y:Number.isFinite(c)?c:0,width:Number.isFinite(f)?f:0,height:Number.isFinite(h)?h:0}}},es=ce(Li);function Ii(r){return tt(r)?es(r):Li(r)}function ts(r,n,e){var t=r.curve,i=n.curve;(!t||t.length===0)&&(t=Cn(r.absolutePath,!1),r.curve=t),(!i||i.length===0)&&(i=Cn(n.absolutePath,!1),n.curve=i);var o=[t,i];t.length!==i.length&&(o=ga(t,i));var a=Mn(o[0])!==Mn(o[1])?pa(o[0]):ma(o[0]);return[a,ya(o[1],a),function(s){return s}]}function rs(r,n){var e;return tt(r)?e=r.split(" ").map(function(t){var i=t.split(","),o=j(i,2),a=o[0],s=o[1];return[Number(a),Number(s)]}):e=r,{points:e,totalLength:0,segments:[]}}function ns(r,n){return[r.points,n.points,function(e){return e}]}var ie=null,ut=/\s*(\w+)\(([^)]*)\)/g;function ke(r){return function(n){var e=0;return r.map(function(t){return t===ie?n[e++]:t})}}function $e(r){return r}var bt={matrix:["NNNNNN",[ie,ie,0,0,ie,ie,0,0,0,0,1,0,ie,ie,0,1],$e],matrix3d:["NNNNNNNNNNNNNNNN",$e],rotate:["A"],rotateX:["A"],rotateY:["A"],rotateZ:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",ke([ie,ie,new q(1)]),$e],scaleX:["N",ke([ie,new q(1),new q(1)]),ke([ie,new q(1)])],scaleY:["N",ke([new q(1),ie,new q(1)]),ke([new q(1),ie])],scaleZ:["N",ke([new q(1),new q(1),ie])],scale3d:["NNN",$e],skew:["Aa",null,$e],skewX:["A",null,ke([ie,et])],skewY:["A",null,ke([et,ie])],translate:["Tt",ke([ie,ie,Re]),$e],translateX:["T",ke([ie,Re,Re]),ke([ie,Re])],translateY:["T",ke([Re,ie,Re]),ke([Re,ie])],translateZ:["L",ke([Re,Re,ie])],translate3d:["TTL",$e]};function Di(r){for(var n=[],e=r.length,t=0;t<e;t++){var i=r[t],o=i[0],a=i.slice(1);o==="translate"||o==="skew"?a.length===1&&a.push(0):o==="scale"&&a.length===1&&a.push(a[0]);var s=bt[o];if(!s)return[];var u=a.map(function(l){return te(l)});n.push({t:o,d:u})}return n}function is(r){if(Array.isArray(r))return Di(r);if(r=(r||"none").trim(),r==="none")return[];var n=[],e,t=0;for(ut.lastIndex=0;e=ut.exec(r);){if(e.index!==t)return[];t=e.index+e[0].length;var i=e[1],o=bt[i];if(!o)return[];var a=e[2].split(","),s=o[0];if(s.length<a.length)return[];for(var u=[],l=0;l<s.length;l++){var c=a[l],f=s[l],h=void 0;if(c?h={A:function(d){return d.trim()==="0"?et:Bo(d)},N:Dr,T:Ir,L:_o}[f.toUpperCase()](c):h={a:et,n:u[0],t:Re}[f],h===void 0)return[];u.push(h)}if(n.push({t:i,d:u}),ut.lastIndex===r.length)return n}return[]}function as(r){if(Array.isArray(r))return Di(r);if(r=(r||"none").trim(),r==="none")return[];var n=[],e,t=0;for(ut.lastIndex=0;e=ut.exec(r);){if(e.index!==t)return[];t=e.index+e[0].length;var i=e[1],o=bt[i];if(!o)return[];var a=e[2].split(","),s=o[0];if(s.length<a.length)return[];for(var u=[],l=0;l<s.length;l++){var c=a[l],f=s[l],h=void 0;if(c?h={A:function(d){return d.trim()==="0"?et:Mi(d)},N:Ri,T:Ci,L:Ni}[f.toUpperCase()](c):h={a:et,n:u[0],t:Re}[f],h===void 0)return[];u.push(h)}if(n.push({t:i,d:u}),ut.lastIndex===r.length)return n}return[]}function os(r){var n,e,t,i;switch(r.t){case"rotateX":return i=Q(Ee(r.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=Q(Ee(r.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=Q(Ee(r.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":n=r.d[0].value,e=r.d[1].value,t=r.d[2].value,i=Q(Ee(r.d[3]));var o=n*n+e*e+t*t;if(o===0)n=1,e=0,t=0;else if(o!==1){var a=Math.sqrt(o);n/=a,e/=a,t/=a}var s=Math.sin(i/2),u=s*Math.cos(i/2),l=s*s;return[1-2*(e*e+t*t)*l,2*(n*e*l+t*u),2*(n*t*l-e*u),0,2*(n*e*l-t*u),1-2*(n*n+t*t)*l,2*(e*t*l+n*u),0,2*(n*t*l+e*u),2*(e*t*l-n*u),1-2*(n*n+e*e)*l,0,0,0,0,1];case"scale":return[r.d[0].value,0,0,0,0,r.d[1].value,0,0,0,0,1,0,0,0,0,1];case"scaleX":return[r.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,r.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,r.d[0].value,0,0,0,0,1];case"scale3d":return[r.d[0].value,0,0,0,0,r.d[1].value,0,0,0,0,r.d[2].value,0,0,0,0,1];case"skew":var c=Q(Ee(r.d[0])),f=Q(Ee(r.d[1]));return[1,Math.tan(f),0,0,Math.tan(c),1,0,0,0,0,1,0,0,0,0,1];case"skewX":return i=Q(Ee(r.d[0])),[1,0,0,0,Math.tan(i),1,0,0,0,0,1,0,0,0,0,1];case"skewY":return i=Q(Ee(r.d[0])),[1,Math.tan(i),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return n=Pe(r.d[0],0,null)||0,e=Pe(r.d[1],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,n,e,0,1];case"translateX":return n=Pe(r.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,n,0,0,1];case"translateY":return e=Pe(r.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,e,0,1];case"translateZ":return t=Pe(r.d[0],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,0,0,t,1];case"translate3d":return n=Pe(r.d[0],0,null)||0,e=Pe(r.d[1],0,null)||0,t=Pe(r.d[2],0,null)||0,[1,0,0,0,0,1,0,0,0,0,1,0,n,e,t,1];case"perspective":var h=Pe(r.d[0],0,null)||0,v=h?-1/h:0;return[1,0,0,0,0,1,0,0,0,0,1,v,0,0,0,1];case"matrix":return[r.d[0].value,r.d[1].value,0,0,r.d[2].value,r.d[3].value,0,0,0,0,1,0,r.d[4].value,r.d[5].value,0,1];case"matrix3d":return r.d.map(function(d){return d.value})}}function ss(r,n){return[r[0]*n[0]+r[4]*n[1]+r[8]*n[2]+r[12]*n[3],r[1]*n[0]+r[5]*n[1]+r[9]*n[2]+r[13]*n[3],r[2]*n[0]+r[6]*n[1]+r[10]*n[2]+r[14]*n[3],r[3]*n[0]+r[7]*n[1]+r[11]*n[2]+r[15]*n[3],r[0]*n[4]+r[4]*n[5]+r[8]*n[6]+r[12]*n[7],r[1]*n[4]+r[5]*n[5]+r[9]*n[6]+r[13]*n[7],r[2]*n[4]+r[6]*n[5]+r[10]*n[6]+r[14]*n[7],r[3]*n[4]+r[7]*n[5]+r[11]*n[6]+r[15]*n[7],r[0]*n[8]+r[4]*n[9]+r[8]*n[10]+r[12]*n[11],r[1]*n[8]+r[5]*n[9]+r[9]*n[10]+r[13]*n[11],r[2]*n[8]+r[6]*n[9]+r[10]*n[10]+r[14]*n[11],r[3]*n[8]+r[7]*n[9]+r[11]*n[10]+r[15]*n[11],r[0]*n[12]+r[4]*n[13]+r[8]*n[14]+r[12]*n[15],r[1]*n[12]+r[5]*n[13]+r[9]*n[14]+r[13]*n[15],r[2]*n[12]+r[6]*n[13]+r[10]*n[14]+r[14]*n[15],r[3]*n[12]+r[7]*n[13]+r[11]*n[14]+r[15]*n[15]]}function us(r){return r.length===0?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:r.map(os).reduce(ss)}function ti(r){var n=[0,0,0],e=[1,1,1],t=[0,0,0],i=[0,0,0,1],o=[0,0,0,1];return Ya(us(r),n,e,t,i,o),[[n,e,t,o,i]]}var ls=function(){function r(t,i){for(var o=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],a=0;a<4;a++)for(var s=0;s<4;s++)for(var u=0;u<4;u++)o[a][s]+=i[a][u]*t[u][s];return o}function n(t){return t[0][2]===0&&t[0][3]===0&&t[1][2]===0&&t[1][3]===0&&t[2][0]===0&&t[2][1]===0&&t[2][2]===1&&t[2][3]===0&&t[3][2]===0&&t[3][3]===1}function e(t,i,o,a,s){for(var u=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],l=0;l<4;l++)u[l][3]=s[l];for(var c=0;c<3;c++)for(var f=0;f<3;f++)u[3][c]+=t[f]*u[f][c];var h=a[0],v=a[1],d=a[2],m=a[3],E=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];E[0][0]=1-2*(v*v+d*d),E[0][1]=2*(h*v-d*m),E[0][2]=2*(h*d+v*m),E[1][0]=2*(h*v+d*m),E[1][1]=1-2*(h*h+d*d),E[1][2]=2*(v*d-h*m),E[2][0]=2*(h*d-v*m),E[2][1]=2*(v*d+h*m),E[2][2]=1-2*(h*h+v*v),u=r(u,E);var w=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];o[2]&&(w[2][1]=o[2],u=r(u,w)),o[1]&&(w[2][1]=0,w[2][0]=o[0],u=r(u,w)),o[0]&&(w[2][0]=0,w[1][0]=o[0],u=r(u,w));for(var k=0;k<3;k++)for(var P=0;P<3;P++)u[k][P]*=i[k];return n(u)?[u[0][0],u[0][1],u[1][0],u[1][1],u[3][0],u[3][1]]:u[0].concat(u[1],u[2],u[3])}return e}();function cs(r){return r.toFixed(6).replace(".000000","")}function Tr(r,n){var e,t;return r.decompositionPair!==n&&(r.decompositionPair=n,e=ti(r)),n.decompositionPair!==r&&(n.decompositionPair=r,t=ti(n)),e[0]===null||t[0]===null?[[!1],[!0],function(i){return i?n[0].d:r[0].d}]:(e[0].push(0),t[0].push(1),[e,t,function(i){var o=hs(e[0][3],t[0][3],i[5]),a=ls(i[0],i[1],i[2],o,i[4]),s=a.map(cs).join(",");return s}])}function fs(r,n){for(var e=0,t=0;t<r.length;t++)e+=r[t]*n[t];return e}function hs(r,n,e){var t=fs(r,n);t=wt(t,-1,1);var i=[];if(t===1)i=r;else for(var o=Math.acos(t),a=Math.sin(e*o)*1/Math.sqrt(1-t*t),s=0;s<4;s++)i.push(r[s]*(Math.cos(e*o)-t*a)+n[s]*a);return i}function wr(r){return r.replace(/[XY]/,"")}function Pr(r){return r.replace(/(X|Y|Z|3d)?$/,"3d")}var vs=function(n,e){return n==="perspective"&&e==="perspective"||(n==="matrix"||n==="matrix3d")&&(e==="matrix"||e==="matrix3d")};function ds(r,n,e){var t=!1;if(!r.length||!n.length){r.length||(t=!0,r=n,n=[]);for(var i=function(){var M=r[o],S=M.t,B=M.d,G=S.substring(0,5)==="scale"?1:0;n.push({t:S,d:B.map(function(V){return typeof V=="number"?te(G):te(G,V.unit)})})},o=0;o<r.length;o++)i()}var a=[],s=[],u=[];if(r.length!==n.length){var l=Tr(r,n);a=[l[0]],s=[l[1]],u=[["matrix",[l[2]]]]}else for(var c=0;c<r.length;c++){var f=r[c].t,h=n[c].t,v=r[c].d,d=n[c].d,m=bt[f],E=bt[h],w=void 0;if(vs(f,h)){var k=Tr([r[c]],[n[c]]);a.push(k[0]),s.push(k[1]),u.push(["matrix",[k[2]]]);continue}else if(f===h)w=f;else if(m[2]&&E[2]&&wr(f)===wr(h))w=wr(f),v=m[2](v),d=E[2](d);else if(m[1]&&E[1]&&Pr(f)===Pr(h))w=Pr(f),v=m[1](v),d=E[1](d);else{var P=Tr(r,n);a=[P[0]],s=[P[1]],u=[["matrix",[P[2]]]];break}for(var L=[],x=[],g=[],p=0;p<v.length;p++){var y=Go(v[p],d[p],e,!1,p);L[p]=y[0],x[p]=y[1],g.push(y[2])}a.push(L),s.push(x),u.push([w,g])}if(t){var N=a;a=s,s=N}return[a,s,function(b){return b.map(function(M,S){var B=M.map(function(G,V){return u[S][1][V](G)}).join(",");return u[S][0]==="matrix"&&B.split(",").length===16&&(u[S][0]="matrix3d"),u[S][0]==="matrix3d"&&B.split(",").length===6&&(u[S][0]="matrix"),"".concat(u[S][0],"(").concat(B,")")}).join(" ")}]}var gs=ce(function(r){if(tt(r)){if(r==="text-anchor")return[te(0,"px"),te(0,"px")];var n=r.split(" ");return n.length===1&&(n[0]==="top"||n[0]==="bottom"?(n[1]=n[0],n[0]="center"):n[1]="center"),n.length!==2?null:[Ir(ri(n[0])),Ir(ri(n[1]))]}return[te(r[0]||0,"px"),te(r[1]||0,"px")]});function ri(r){return r==="center"?"50%":r==="left"||r==="top"?"0%":r==="right"||r==="bottom"?"100%":r}var $r=[{n:"display",k:["none"]},{n:"opacity",int:!0,inh:!0,d:"1",syntax:O.OPACITY_VALUE},{n:"fillOpacity",int:!0,inh:!0,d:"1",syntax:O.OPACITY_VALUE},{n:"strokeOpacity",int:!0,inh:!0,d:"1",syntax:O.OPACITY_VALUE},{n:"fill",int:!0,k:["none"],d:"none",syntax:O.PAINT},{n:"fillRule",k:["nonzero","evenodd"],d:"nonzero"},{n:"stroke",int:!0,k:["none"],d:"none",syntax:O.PAINT,l:!0},{n:"shadowType",k:["inner","outer","both"],d:"outer",l:!0},{n:"shadowColor",int:!0,syntax:O.COLOR},{n:"shadowOffsetX",int:!0,l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"shadowOffsetY",int:!0,l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"shadowBlur",int:!0,l:!0,d:"0",syntax:O.SHADOW_BLUR},{n:"lineWidth",int:!0,inh:!0,d:"1",l:!0,a:["strokeWidth"],syntax:O.LENGTH_PERCENTAGE},{n:"increasedLineWidthForHitTesting",inh:!0,d:"0",l:!0,syntax:O.LENGTH_PERCENTAGE},{n:"lineJoin",inh:!0,l:!0,a:["strokeLinejoin"],k:["miter","bevel","round"],d:"miter"},{n:"lineCap",inh:!0,l:!0,a:["strokeLinecap"],k:["butt","round","square"],d:"butt"},{n:"lineDash",int:!0,inh:!0,k:["none"],a:["strokeDasharray"],syntax:O.LENGTH_PERCENTAGE_12},{n:"lineDashOffset",int:!0,inh:!0,d:"0",a:["strokeDashoffset"],syntax:O.LENGTH_PERCENTAGE},{n:"offsetPath",syntax:O.DEFINED_PATH},{n:"offsetDistance",int:!0,syntax:O.OFFSET_DISTANCE},{n:"dx",int:!0,l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"dy",int:!0,l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"zIndex",ind:!0,int:!0,d:"0",k:["auto"],syntax:O.Z_INDEX},{n:"visibility",k:["visible","hidden"],ind:!0,inh:!0,int:!0,d:"visible"},{n:"pointerEvents",inh:!0,k:["none","auto","stroke","fill","painted","visible","visiblestroke","visiblefill","visiblepainted","all"],d:"auto"},{n:"filter",ind:!0,l:!0,k:["none"],d:"none",syntax:O.FILTER},{n:"clipPath",syntax:O.DEFINED_PATH},{n:"textPath",syntax:O.DEFINED_PATH},{n:"textPathSide",k:["left","right"],d:"left"},{n:"textPathStartOffset",l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"transform",p:100,int:!0,k:["none"],d:"none",syntax:O.TRANSFORM},{n:"transformOrigin",p:100,d:"0 0",l:!0,syntax:O.TRANSFORM_ORIGIN},{n:"cx",int:!0,l:!0,d:"0",syntax:O.COORDINATE},{n:"cy",int:!0,l:!0,d:"0",syntax:O.COORDINATE},{n:"cz",int:!0,l:!0,d:"0",syntax:O.COORDINATE},{n:"r",int:!0,l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"rx",int:!0,l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"ry",int:!0,l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"x",int:!0,l:!0,d:"0",syntax:O.COORDINATE},{n:"y",int:!0,l:!0,d:"0",syntax:O.COORDINATE},{n:"z",int:!0,l:!0,d:"0",syntax:O.COORDINATE},{n:"width",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"height",int:!0,l:!0,k:["auto","fit-content","min-content","max-content"],d:"0",syntax:O.LENGTH_PERCENTAGE},{n:"radius",int:!0,l:!0,d:"0",syntax:O.LENGTH_PERCENTAGE_14},{n:"x1",int:!0,l:!0,syntax:O.COORDINATE},{n:"y1",int:!0,l:!0,syntax:O.COORDINATE},{n:"z1",int:!0,l:!0,syntax:O.COORDINATE},{n:"x2",int:!0,l:!0,syntax:O.COORDINATE},{n:"y2",int:!0,l:!0,syntax:O.COORDINATE},{n:"z2",int:!0,l:!0,syntax:O.COORDINATE},{n:"d",int:!0,l:!0,d:"",syntax:O.PATH,p:50},{n:"points",int:!0,l:!0,syntax:O.LIST_OF_POINTS,p:50},{n:"text",l:!0,d:"",syntax:O.TEXT,p:50},{n:"textTransform",l:!0,inh:!0,k:["capitalize","uppercase","lowercase","none"],d:"none",syntax:O.TEXT_TRANSFORM,p:51},{n:"font",l:!0},{n:"fontSize",int:!0,inh:!0,d:"16px",l:!0,syntax:O.LENGTH_PERCENTAGE},{n:"fontFamily",l:!0,inh:!0,d:"sans-serif"},{n:"fontStyle",l:!0,inh:!0,k:["normal","italic","oblique"],d:"normal"},{n:"fontWeight",l:!0,inh:!0,k:["normal","bold","bolder","lighter"],d:"normal"},{n:"fontVariant",l:!0,inh:!0,k:["normal","small-caps"],d:"normal"},{n:"lineHeight",l:!0,syntax:O.LENGTH,int:!0,d:"0"},{n:"letterSpacing",l:!0,syntax:O.LENGTH,int:!0,d:"0"},{n:"miterLimit",l:!0,syntax:O.NUMBER,d:function(n){return n===F.PATH||n===F.POLYGON||n===F.POLYLINE?"4":"10"}},{n:"wordWrap",l:!0},{n:"wordWrapWidth",l:!0},{n:"maxLines",l:!0},{n:"textOverflow",l:!0,d:"clip"},{n:"leading",l:!0},{n:"textBaseline",l:!0,inh:!0,k:["top","hanging","middle","alphabetic","ideographic","bottom"],d:"alphabetic"},{n:"textAlign",l:!0,inh:!0,k:["start","center","middle","end","left","right"],d:"start"},{n:"markerStart",syntax:O.MARKER},{n:"markerEnd",syntax:O.MARKER},{n:"markerMid",syntax:O.MARKER},{n:"markerStartOffset",syntax:O.LENGTH,l:!0,int:!0,d:"0"},{n:"markerEndOffset",syntax:O.LENGTH,l:!0,int:!0,d:"0"}],ps=new Set($r.filter(function(r){return!!r.l}).map(function(r){return r.n})),ms={},ys=function(){function r(n){var e=this;D(this,r),this.runtime=n,$r.forEach(function(t){e.registerMetadata(t)})}return _(r,[{key:"registerMetadata",value:function(e){[e.n].concat(J(e.a||[])).forEach(function(t){ms[t]=e})}},{key:"getPropertySyntax",value:function(e){return this.runtime.CSSPropertySyntaxFactory[e]}},{key:"processProperties",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{skipUpdateAttribute:!1,skipParse:!1,forceUpdateGeometry:!1,usedAttributes:[],memoize:!0};Object.assign(e.attributes,t);var o=e.parsedStyle.clipPath,a=e.parsedStyle.offsetPath;xs(e,t);var s=!!i.forceUpdateGeometry;if(!s){for(var u in t)if(ps.has(u)){s=!0;break}}var l=_i(e);l.has("fill")&&t.fill&&(e.parsedStyle.fill=Tt(t.fill)),l.has("stroke")&&t.stroke&&(e.parsedStyle.stroke=Tt(t.stroke)),l.has("shadowColor")&&t.shadowColor&&(e.parsedStyle.shadowColor=Tt(t.shadowColor)),l.has("filter")&&t.filter&&(e.parsedStyle.filter=Uo(t.filter)),l.has("radius")&&!ge(t.radius)&&(e.parsedStyle.radius=$n(t.radius,4)),l.has("lineDash")&&!ge(t.lineDash)&&(e.parsedStyle.lineDash=$n(t.lineDash,"even")),l.has("points")&&t.points&&(e.parsedStyle.points=rs(t.points)),l.has("d")&&t.d===""&&(e.parsedStyle.d=$({},Ei)),l.has("d")&&t.d&&(e.parsedStyle.d=Ii(t.d)),l.has("textTransform")&&t.textTransform&&this.runtime.CSSPropertySyntaxFactory[O.TEXT_TRANSFORM].calculator(null,null,{value:t.textTransform},e,null),l.has("clipPath")&&!re(t.clipPath)&&this.runtime.CSSPropertySyntaxFactory[O.DEFINED_PATH].calculator("clipPath",o,t.clipPath,e,this.runtime),l.has("offsetPath")&&t.offsetPath&&this.runtime.CSSPropertySyntaxFactory[O.DEFINED_PATH].calculator("offsetPath",a,t.offsetPath,e,this.runtime),l.has("transform")&&t.transform&&(e.parsedStyle.transform=is(t.transform)),l.has("transformOrigin")&&t.transformOrigin&&(e.parsedStyle.transformOrigin=gs(t.transformOrigin)),l.has("markerStart")&&t.markerStart&&(e.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[O.MARKER].calculator(null,t.markerStart,t.markerStart,null,null)),l.has("markerEnd")&&t.markerEnd&&(e.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[O.MARKER].calculator(null,t.markerEnd,t.markerEnd,null,null)),l.has("markerMid")&&t.markerMid&&(e.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[O.MARKER].calculator("",t.markerMid,t.markerMid,null,null)),l.has("zIndex")&&!ge(t.zIndex)&&this.runtime.CSSPropertySyntaxFactory[O.Z_INDEX].postProcessor(e),l.has("offsetDistance")&&!ge(t.offsetDistance)&&this.runtime.CSSPropertySyntaxFactory[O.OFFSET_DISTANCE].postProcessor(e),l.has("transform")&&t.transform&&this.runtime.CSSPropertySyntaxFactory[O.TRANSFORM].postProcessor(e),l.has("transformOrigin")&&t.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[O.TRANSFORM_ORIGIN].postProcessor(e),s&&(e.geometry.dirty=!0,e.dirty(!0,!0),i.forceUpdateGeometry||this.runtime.sceneGraphService.dirtyToRoot(e))}},{key:"updateGeometry",value:function(e){var t=e.nodeName,i=this.runtime.geometryUpdaterFactory[t];if(i){var o=e.geometry;o.contentBounds||(o.contentBounds=new ye),o.renderBounds||(o.renderBounds=new ye);var a=e.parsedStyle,s=i.update(a,e),u=s.cx,l=u===void 0?0:u,c=s.cy,f=c===void 0?0:c,h=s.cz,v=h===void 0?0:h,d=s.hwidth,m=d===void 0?0:d,E=s.hheight,w=E===void 0?0:E,k=s.hdepth,P=k===void 0?0:k,L=[Math.abs(m),Math.abs(w),P],x=a.stroke,g=a.lineWidth,p=g===void 0?1:g,y=a.increasedLineWidthForHitTesting,N=y===void 0?0:y,b=a.shadowType,M=b===void 0?"outer":b,S=a.shadowColor,B=a.filter,G=B===void 0?[]:B,V=a.transformOrigin,z=[l,f,v];o.contentBounds.update(z,L);var R=t===F.POLYLINE||t===F.POLYGON||t===F.PATH?Math.SQRT2:.5,U=x&&!x.isNone;if(U){var Y=((p||0)+(N||0))*R;L[0]+=Y,L[1]+=Y}if(o.renderBounds.update(z,L),S&&M&&M!=="inner"){var fe=o.renderBounds,he=fe.min,Ce=fe.max,lr=a.shadowBlur,cr=a.shadowOffsetX,ht=a.shadowOffsetY,Mt=lr||0,Jr=cr||0,Qr=ht||0,na=he[0]-Mt+Jr,ia=Ce[0]+Mt+Jr,aa=he[1]-Mt+Qr,oa=Ce[1]+Mt+Qr;he[0]=Math.min(he[0],na),Ce[0]=Math.max(Ce[0],ia),he[1]=Math.min(he[1],aa),Ce[1]=Math.max(Ce[1],oa),o.renderBounds.setMinMax(he,Ce)}G.forEach(function(rn){var nn=rn.name,At=rn.params;if(nn==="blur"){var an=At[0].value;o.renderBounds.update(o.renderBounds.center,T.add(o.renderBounds.halfExtents,o.renderBounds.halfExtents,[an,an,0]))}else if(nn==="drop-shadow"){var on=At[0].value,sn=At[1].value,Rt=At[2].value,un=o.renderBounds,Xe=un.min,We=un.max,la=Xe[0]-Rt+on,ca=We[0]+Rt+on,fa=Xe[1]-Rt+sn,ha=We[1]+Rt+sn;Xe[0]=Math.min(Xe[0],la),We[0]=Math.max(We[0],ca),Xe[1]=Math.min(Xe[1],fa),We[1]=Math.max(We[1],ha),o.renderBounds.setMinMax(Xe,We)}}),e.geometry.dirty=!1;var sa=m<0,ua=w<0,en=(sa?-1:1)*(V?Pe(V[0],0,e,!0):0),tn=(ua?-1:1)*(V?Pe(V[1],1,e,!0):0);(en||tn)&&e.setOrigin(en,tn)}}},{key:"updateSizeAttenuation",value:function(e,t){e.style.isSizeAttenuation?(e.style.rawLineWidth||(e.style.rawLineWidth=e.style.lineWidth),e.style.lineWidth=(e.style.rawLineWidth||1)/t,e.nodeName===F.CIRCLE&&(e.style.rawR||(e.style.rawR=e.style.r),e.style.r=(e.style.rawR||1)/t)):(e.style.rawLineWidth&&(e.style.lineWidth=e.style.rawLineWidth,delete e.style.rawLineWidth),e.nodeName===F.CIRCLE&&e.style.rawR&&(e.style.r=e.style.rawR,delete e.style.rawR))}}])}();function xs(r,n){var e=_i(r);for(var t in n)e.has(t)&&(r.parsedStyle[t]=n[t])}function _i(r){return r.constructor.PARSED_STYLE_LIST}var ks=function(){function r(){D(this,r),this.mixer=Wr}return _(r,[{key:"calculator",value:function(e,t,i,o){return Ee(i)}}])}(),Es=function(){function r(){D(this,r)}return _(r,[{key:"calculator",value:function(e,t,i,o,a){return i instanceof Ne&&(i=null),a.sceneGraphService.updateDisplayObjectDependency(e,t,i,o),e==="clipPath"&&o.forEach(function(s){s.childNodes.length===0&&a.sceneGraphService.dirtyToRoot(s)}),i}}])}(),Ts=function(){function r(){D(this,r),this.parser=Tt,this.mixer=Do}return _(r,[{key:"calculator",value:function(e,t,i,o){return i instanceof Ne?i.value==="none"?Pi:Si:i}}])}(),ws=function(){function r(){D(this,r)}return _(r,[{key:"calculator",value:function(e,t,i){return i instanceof Ne?[]:i}}])}();function ni(r){var n=r.parsedStyle,e=n.fontSize;return ge(e)?null:e}var Fr=function(){function r(){D(this,r),this.mixer=Wr}return _(r,[{key:"calculator",value:function(e,t,i,o,a){if(ft(i))return i;if(q.isRelativeUnit(i.unit)){if(i.unit===I.kPercentage)return 0;if(i.unit===I.kEms){if(o.parentNode){var s=ni(o.parentNode);if(s)return s*=i.value,s}return 0}if(i.unit===I.kRems){var u;if(o!=null&&(u=o.ownerDocument)!==null&&u!==void 0&&u.documentElement){var l=ni(o.ownerDocument.documentElement);if(l)return l*=i.value,l}return 0}}else return i.value}}])}(),Ps=function(){function r(){D(this,r),this.mixer=Oi}return _(r,[{key:"calculator",value:function(e,t,i){return i.map(function(o){return o.value})}}])}(),Ss=function(){function r(){D(this,r),this.mixer=Oi}return _(r,[{key:"calculator",value:function(e,t,i){return i.map(function(o){return o.value})}}])}(),bs=function(){function r(){D(this,r)}return _(r,[{key:"calculator",value:function(e,t,i,o){var a;i instanceof Ne&&(i=null);var s=(a=i)===null||a===void 0?void 0:a.cloneNode(!0);return s&&(s.style.isMarker=!0),s}}])}(),Ns=function(){function r(){D(this,r),this.mixer=Wr}return _(r,[{key:"calculator",value:function(e,t,i){return i.value}}])}(),Cs=function(){function r(){D(this,r),this.mixer=Hr(0,1)}return _(r,[{key:"calculator",value:function(e,t,i){return i.value}},{key:"postProcessor",value:function(e){var t=e.parsedStyle,i=t.offsetPath,o=t.offsetDistance;if(i){var a=i.nodeName;if(a===F.LINE||a===F.PATH||a===F.POLYLINE){var s=i.getPoint(o);s&&e.setLocalPosition(s.x,s.y)}}}}])}(),Ms=function(){function r(){D(this,r),this.mixer=Hr(0,1)}return _(r,[{key:"calculator",value:function(e,t,i){return i.value}}])}(),As=function(){function r(){D(this,r),this.parser=Ii,this.mixer=ts}return _(r,[{key:"calculator",value:function(e,t,i){return i instanceof Ne&&i.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new lt(0,0,0,0)}:i}}])}(),Rs=_(function r(){D(this,r),this.mixer=ns}),Os=function(r){function n(){var e;D(this,n);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e=Z(this,n,[].concat(i)),e.mixer=Hr(0,1/0),e}return K(n,r),_(n)}(Fr),Ls=function(){function r(){D(this,r)}return _(r,[{key:"calculator",value:function(e,t,i,o){return i instanceof Ne?i.value==="unset"?"":i.value:"".concat(i)}},{key:"postProcessor",value:function(e){e.nodeValue="".concat(e.parsedStyle.text)||""}}])}(),Is=function(){function r(){D(this,r)}return _(r,[{key:"calculator",value:function(e,t,i,o){var a=o.getAttribute("text");if(a){var s=a;i.value==="capitalize"?s=a.charAt(0).toUpperCase()+a.slice(1):i.value==="lowercase"?s=a.toLowerCase():i.value==="uppercase"&&(s=a.toUpperCase()),o.parsedStyle.text=s}return i.value}}])}(),mf=function(n){return Object.fromEntries(Object.entries(n).filter(function(e){var t=j(e,2),i=t[1];return i!==void 0}))},Sr=new WeakMap;function Ds(r,n,e){if(r){var t=typeof r=="string"?document.getElementById(r):r;Sr.has(t)&&Sr.get(t).destroy(e),Sr.set(t,n)}}var Zr=typeof window<"u"&&typeof window.document<"u";function _s(r){return!!r.getAttribute}function Fs(r,n){for(var e=0,t=r.length;e<t;){var i=e+t>>>1;Fi(r[i],n)<0?e=i+1:t=i}return e}function Fi(r,n){var e=Number(r.parsedStyle.zIndex||0),t=Number(n.parsedStyle.zIndex||0);if(e===t){var i=r.parentNode;if(i){var o=i.childNodes||[];return o.indexOf(r)-o.indexOf(n)}}return e-t}function Bs(r){var n=r;do{var e,t=(e=n.parsedStyle)===null||e===void 0?void 0:e.clipPath;if(t)return n;n=n.parentElement}while(n!==null);return null}var ii="px";function yf(r,n,e){Zr&&r.style&&(r.style.width=n+ii,r.style.height=e+ii)}function Bi(r,n){if(Zr)return document.defaultView.getComputedStyle(r,null).getPropertyValue(n)}function Gs(r){var n=Bi(r,"width");return n==="auto"?r.offsetWidth:parseFloat(n)}function Vs(r){var n=Bi(r,"height");return n==="auto"?r.offsetHeight:parseFloat(n)}var Ys=1,Us={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},Br=typeof performance=="object"&&performance.now?performance:Date;function ir(r){return r.nodeName===F.FRAGMENT?!0:r.getRootNode().nodeName===F.FRAGMENT}function xf(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"auto",n=arguments.length>1?arguments[1]:void 0,e=arguments.length>2?arguments[2]:void 0,t=!1,i=!1,o=!!n&&!n.isNone,a=!!e&&!e.isNone;return r==="visiblepainted"||r==="painted"||r==="auto"?(t=o,i=a):r==="visiblefill"||r==="fill"?t=!0:r==="visiblestroke"||r==="stroke"?i=!0:(r==="visible"||r==="all")&&(t=!0,i=!0),[t,i]}var zs=1,Xs=function(){return zs++},Fe=typeof self=="object"&&self.self===self?self:typeof globalThis=="object"&&globalThis.global===globalThis?globalThis:{},Ws=Date.now(),Hs=function(){return Fe.performance&&typeof Fe.performance.now=="function"?Fe.performance.now():Date.now()-Ws},Et={},ai=Date.now(),$s=function(n){if(typeof n!="function")throw new TypeError("".concat(n," is not a function"));var e=Date.now(),t=e-ai,i=t>16?0:16-t,o=Xs();return Et[o]=n,Object.keys(Et).length>1||setTimeout(function(){ai=e;var a=Et;Et={},Object.keys(a).forEach(function(s){return a[s](Hs())})},i),o},Zs=function(n){delete Et[n]},Ks=["","webkit","moz","ms","o"],Gi=function(n){return typeof n!="string"?$s:n===""?Fe.requestAnimationFrame:Fe["".concat(n,"RequestAnimationFrame")]},qs=function(n){return typeof n!="string"?Zs:n===""?Fe.cancelAnimationFrame:Fe["".concat(n,"CancelAnimationFrame")]||Fe["".concat(n,"CancelRequestAnimationFrame")]},js=function(n,e){for(var t=0;n[t]!==void 0;){if(e(n[t]))return n[t];t+=1}},Vi=js(Ks,function(r){return!!Gi(r)}),Kr=Gi(Vi),Yi=qs(Vi);Fe.requestAnimationFrame=Kr;Fe.cancelAnimationFrame=Yi;var Js=function(){function r(){D(this,r),this.callbacks=[]}return _(r,[{key:"getCallbacksNum",value:function(){return this.callbacks.length}},{key:"tapPromise",value:function(e,t){this.callbacks.push(t)}},{key:"promise",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return Promise.all(this.callbacks.map(function(o){return o.apply(void 0,t)}))}}])}(),Qs=function(){function r(){D(this,r),this.callbacks=[]}return _(r,[{key:"tapPromise",value:function(e,t){this.callbacks.push(t)}},{key:"promise",value:function(){var n=Ft(Ve().mark(function t(){var i,o,a,s,u=arguments;return Ve().wrap(function(l){for(;;)switch(l.prev=l.next){case 0:if(!this.callbacks.length){l.next=6;break}return l.next=1,(i=this.callbacks)[0].apply(i,u);case 1:o=l.sent,a=0;case 2:if(!(a<this.callbacks.length-1)){l.next=5;break}return s=this.callbacks[a],l.next=3,s(o);case 3:o=l.sent;case 4:a++,l.next=2;break;case 5:return l.abrupt("return",o);case 6:return l.abrupt("return",null);case 7:case"end":return l.stop()}},t,this)}));function e(){return n.apply(this,arguments)}return e}()}])}(),me=function(){function r(){D(this,r),this.callbacks=[]}return _(r,[{key:"tap",value:function(e,t){this.callbacks.push(t)}},{key:"call",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var o=arguments;this.callbacks.forEach(function(a){a.apply(void 0,o)})}}])}(),br=function(){function r(){D(this,r),this.callbacks=[]}return _(r,[{key:"tap",value:function(e,t){this.callbacks.push(t)}},{key:"call",value:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if(this.callbacks.length){for(var o=arguments,a=this.callbacks[0].apply(void 0,o),s=0;s<this.callbacks.length-1;s++){var u=this.callbacks[s];a=u(a)}return a}return null}}])}(),eu=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],tu=/([\"\'])[^\'\"]+\1/;function oi(r){var n=r.fontSize,e=n===void 0?16:n,t=r.fontFamily,i=t===void 0?"sans-serif":t,o=r.fontStyle,a=o===void 0?"normal":o,s=r.fontVariant,u=s===void 0?"normal":s,l=r.fontWeight,c=l===void 0?"normal":l;return{fontSize:e,fontFamily:i,fontStyle:a,fontVariant:u,fontWeight:c}}var si=ce(function(n){for(var e=oi(n),t=e.fontSize,i=e.fontFamily,o=e.fontStyle,a=e.fontVariant,s=e.fontWeight,u=ft(t)&&"".concat(t,"px")||"16px",l=i.split(","),c=l.length-1;c>=0;c--){var f=l[c].trim();!tu.test(f)&&eu.indexOf(f)<0&&(f='"'.concat(f,'"')),l[c]=f}return"".concat(o," ").concat(a," ").concat(s," ").concat(u," ").concat(l.join(","))},function(r){var n=oi(r),e=n.fontSize,t=n.fontFamily,i=n.fontStyle,o=n.fontVariant,a=n.fontWeight;return"".concat(i,"_").concat(o,"_").concat(a,"_").concat(e,"_").concat(t)}),ru=1e-6,mt=function(n){return Math.max(n,ru)};function Nr(r,n,e){return A.identity(r),r[4]=Math.tan(n),r[1]=Math.tan(e),r}var le=A.create(),nu=A.create(),iu={scale:function(n){A.fromScaling(le,[n[0].value,n[1].value,1].map(function(e){return mt(e)}))},scaleX:function(n){A.fromScaling(le,[n[0].value,1,1].map(function(e){return mt(e)}))},scaleY:function(n){A.fromScaling(le,[1,n[0].value,1].map(function(e){return mt(e)}))},scaleZ:function(n){A.fromScaling(le,[1,1,n[0].value].map(function(e){return mt(e)}))},scale3d:function(n){A.fromScaling(le,[n[0].value,n[1].value,n[2].value].map(function(e){return mt(e)}))},translate:function(n){A.fromTranslation(le,[n[0].value,n[1].value,0])},translateX:function(n){A.fromTranslation(le,[n[0].value,0,0])},translateY:function(n){A.fromTranslation(le,[0,n[0].value,0])},translateZ:function(n){A.fromTranslation(le,[0,0,n[0].value])},translate3d:function(n){A.fromTranslation(le,[n[0].value,n[1].value,n[2].value])},rotate:function(n){A.fromZRotation(le,Q(Ee(n[0])))},rotateX:function(n){A.fromXRotation(le,Q(Ee(n[0])))},rotateY:function(n){A.fromYRotation(le,Q(Ee(n[0])))},rotateZ:function(n){A.fromZRotation(le,Q(Ee(n[0])))},rotate3d:function(n){A.fromRotation(le,Q(Ee(n[3])),[n[0].value,n[1].value,n[2].value])},skew:function(n){Nr(le,Q(n[0].value),Q(n[1].value))},skewX:function(n){Nr(le,Q(n[0].value),0)},skewY:function(n){Nr(le,0,Q(n[0].value))},matrix:function(n){A.set(le,n[0].value,n[1].value,0,0,n[2].value,n[3].value,0,0,0,0,1,0,n[4].value,n[5].value,0,1)},matrix3d:function(n){A.set.apply(A,[le].concat(J(n.map(function(e){return e.value}))))}},au=T.fromValues(1,1,1),ou=T.create(),ui={translate:function(n,e){C.sceneGraphService.setLocalScale(n,au,!1),C.sceneGraphService.setLocalEulerAngles(n,ou,void 0,void 0,!1),C.sceneGraphService.setLocalPosition(n,[e[0].value,e[1].value,0],!1),C.sceneGraphService.dirtyLocalTransform(n,n.transformable)}};function su(r,n){if(r.length){if(r.length===1&&ui[r[0].t]){ui[r[0].t](n,r[0].d);return}for(var e=A.identity(nu),t=0;t<r.length;t++){var i=r[t],o=i.t,a=i.d,s=iu[o];s&&(s(a),A.mul(e,e,le))}n.setLocalTransform(e)}else n.resetLocalTransform();return n.getLocalTransform()}var uu=function(){function r(){D(this,r),this.parser=as,this.mixer=ds}return _(r,[{key:"calculator",value:function(e,t,i,o){return i instanceof Ne?[]:i}},{key:"postProcessor",value:function(e){su(e.parsedStyle.transform,e)}}])}(),lu=function(){function r(){D(this,r)}return _(r,[{key:"postProcessor",value:function(e){var t=e.parsedStyle.transformOrigin;t[0].unit===I.kPixels&&t[1].unit===I.kPixels?e.setOrigin(t[0].value,t[1].value):e.getGeometryBounds()}}])}(),cu=function(){function r(){D(this,r)}return _(r,[{key:"calculator",value:function(e,t,i,o){return i.value}},{key:"postProcessor",value:function(e){if(e.parentNode){var t=e.parentNode,i=t.renderable,o=t.sortable;i&&t.dirty(),o&&(o.dirty=!0,o.dirtyReason=er.Z_INDEX_CHANGED)}}}])}(),fu=function(){function r(){D(this,r)}return _(r,[{key:"update",value:function(e,t){var i=e.cx,o=i===void 0?0:i,a=e.cy,s=a===void 0?0:a,u=e.r,l=u===void 0?0:u;return{cx:o,cy:s,hwidth:l,hheight:l}}}])}(),hu=function(){function r(){D(this,r)}return _(r,[{key:"update",value:function(e,t){var i=e.cx,o=i===void 0?0:i,a=e.cy,s=a===void 0?0:a,u=e.rx,l=u===void 0?0:u,c=e.ry,f=c===void 0?0:c;return{cx:o,cy:s,hwidth:l,hheight:f}}}])}(),vu=function(){function r(){D(this,r)}return _(r,[{key:"update",value:function(e){var t=e.x1,i=e.y1,o=e.x2,a=e.y2,s=Math.min(t,o),u=Math.max(t,o),l=Math.min(i,a),c=Math.max(i,a),f=u-s,h=c-l,v=f/2,d=h/2;return{cx:s+v,cy:l+d,hwidth:v,hheight:d}}}])}(),du=function(){function r(){D(this,r)}return _(r,[{key:"update",value:function(e){var t=e.d,i=t.rect,o=i.x,a=i.y,s=i.width,u=i.height,l=s/2,c=u/2;return{cx:o+l,cy:a+c,hwidth:l,hheight:c}}}])}(),gu=function(){function r(){D(this,r)}return _(r,[{key:"update",value:function(e){if(e.points&&xa(e.points.points)){var t=e.points.points,i=Math.min.apply(Math,J(t.map(function(h){return h[0]}))),o=Math.max.apply(Math,J(t.map(function(h){return h[0]}))),a=Math.min.apply(Math,J(t.map(function(h){return h[1]}))),s=Math.max.apply(Math,J(t.map(function(h){return h[1]}))),u=o-i,l=s-a,c=u/2,f=l/2;return{cx:i+c,cy:a+f,hwidth:c,hheight:f}}return{cx:0,cy:0,hwidth:0,hheight:0}}}])}(),pu=function(){function r(){D(this,r)}return _(r,[{key:"update",value:function(e,t){var i=e.x,o=i===void 0?0:i,a=e.y,s=a===void 0?0:a,u=e.src,l=e.width,c=l===void 0?0:l,f=e.height,h=f===void 0?0:f,v=c,d=h;return u&&!tt(u)&&(v||(v=u.width,e.width=v),d||(d=u.height,e.height=d)),{cx:o+v/2,cy:s+d/2,hwidth:v/2,hheight:d/2}}}])}(),mu=function(){function r(n){D(this,r),this.globalRuntime=n}return _(r,[{key:"isReadyToMeasure",value:function(e,t){var i=e.text;return i}},{key:"update",value:function(e,t){var i,o=e.text,a=e.textAlign,s=a===void 0?"start":a,u=e.lineWidth,l=u===void 0?1:u,c=e.textBaseline,f=c===void 0?"alphabetic":c,h=e.dx,v=h===void 0?0:h,d=e.dy,m=d===void 0?0:d,E=e.x,w=E===void 0?0:E,k=e.y,P=k===void 0?0:k;if(!this.isReadyToMeasure(e,t))return e.metrics={font:"",width:0,height:0,lines:[],lineWidths:[],lineHeight:0,maxLineWidth:0,fontProperties:{ascent:0,descent:0,fontSize:0},lineMetrics:[]},{hwidth:0,hheight:0,cx:0,cy:0};var L=(t==null||(i=t.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0?void 0:i.getConfig())||{},x=L.offscreenCanvas,g=this.globalRuntime.textService.measureText(o,e,x);e.metrics=g;var p=g.width,y=g.height,N=p/2,b=y/2,M=w+N;s==="center"||s==="middle"?M+=l/2-N:(s==="right"||s==="end")&&(M+=l-N*2);var S=P-b;return f==="middle"?S+=b:f==="top"||f==="hanging"?S+=b*2:f==="alphabetic"||(f==="bottom"||f==="ideographic")&&(S+=0),v&&(M+=v),m&&(S+=m),{cx:M,cy:S,hwidth:N,hheight:b}}}])}(),yu=function(){function r(){D(this,r)}return _(r,[{key:"update",value:function(e,t){return{cx:0,cy:0,hwidth:0,hheight:0}}}])}(),xu=function(){function r(){D(this,r)}return _(r,[{key:"update",value:function(e,t){var i=e.x,o=i===void 0?0:i,a=e.y,s=a===void 0?0:a,u=e.width,l=u===void 0?0:u,c=e.height,f=c===void 0?0:c;return{cx:o+l/2,cy:s+f/2,hwidth:l/2,hheight:f/2}}}])}();function kf(r){return!!r.type}var qr=function(){function r(n){D(this,r),this.eventPhase=r.prototype.NONE,this.bubbles=!0,this.cancelBubble=!0,this.cancelable=!1,this.defaultPrevented=!1,this.propagationStopped=!1,this.propagationImmediatelyStopped=!1,this.layer=new pe,this.page=new pe,this.canvas=new pe,this.viewport=new pe,this.composed=!1,this.NONE=0,this.CAPTURING_PHASE=1,this.AT_TARGET=2,this.BUBBLING_PHASE=3,this.manager=n}return _(r,[{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:"composedPath",value:function(){return this.manager&&(!this.path||this.path[0]!==this.target)&&(this.path=this.target?this.manager.propagationPath(this.target):[]),this.path}},{key:"propagationPath",get:function(){return this.composedPath()}},{key:"preventDefault",value:function(){this.nativeEvent instanceof Event&&this.nativeEvent.cancelable&&this.nativeEvent.preventDefault(),this.defaultPrevented=!0}},{key:"stopImmediatePropagation",value:function(){this.propagationImmediatelyStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"initEvent",value:function(){}},{key:"initUIEvent",value:function(){}},{key:"clone",value:function(){throw new Error(ne)}}])}(),Ui=function(r){function n(){var e;D(this,n);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e=Z(this,n,[].concat(i)),e.client=new pe,e.movement=new pe,e.offset=new pe,e.global=new pe,e.screen=new pe,e}return K(n,r),_(n,[{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}},{key:"getModifierState",value:function(t){return"getModifierState"in this.nativeEvent&&this.nativeEvent.getModifierState(t)}},{key:"initMouseEvent",value:function(){throw new Error(ne)}}])}(qr),Gr=function(r){function n(){var e;D(this,n);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e=Z(this,n,[].concat(i)),e.width=0,e.height=0,e.isPrimary=!1,e}return K(n,r),_(n,[{key:"getCoalescedEvents",value:function(){return this.type==="pointermove"||this.type==="mousemove"||this.type==="touchmove"?[this]:[]}},{key:"getPredictedEvents",value:function(){throw new Error("getPredictedEvents is not supported!")}},{key:"clone",value:function(){return this.manager.clonePointerEvent(this)}}])}(Ui),Vr=function(r){function n(){return D(this,n),Z(this,n,arguments)}return K(n,r),_(n,[{key:"clone",value:function(){return this.manager.cloneWheelEvent(this)}}])}(Ui),xe=function(r){function n(e,t){var i;return D(this,n),i=Z(this,n,[null]),i.type=e,i.detail=t,Object.assign(i,t),i}return K(n,r),_(n)}(qr),zi=function(){function r(){D(this,r),this.emitter=new gi}return _(r,[{key:"on",value:function(e,t,i){return this.addEventListener(e,t,i),this}},{key:"addEventListener",value:function(e,t,i){var o=!1,a=!1;if(An(i))o=i;else if(i){var s=i.capture;o=s===void 0?!1:s;var u=i.once;a=u===void 0?!1:u}o&&(e+="capture"),t=kt(t)?t:t.handleEvent;var l=kt(t)?void 0:t;return a?this.emitter.once(e,t,l):this.emitter.on(e,t,l),this}},{key:"off",value:function(e,t,i){return e?this.removeEventListener(e,t,i):this.removeAllEventListeners(),this}},{key:"removeAllEventListeners",value:function(){var e;(e=this.emitter)===null||e===void 0||e.removeAllListeners()}},{key:"removeEventListener",value:function(e,t,i){var o;if(!this.emitter)return this;var a=An(i)?i:i?.capture;a&&(e+="capture"),t=kt(t)?t:(o=t)===null||o===void 0?void 0:o.handleEvent;var s=kt(t)?void 0:t;return this.emitter.off(e,t,s),this}},{key:"emit",value:function(e,t){this.dispatchEvent(new xe(e,t))}},{key:"dispatchEventToSelf",value:function(e){e.target||(e.target=this),e.currentTarget=this,this.emitter.emit(e.type,e)}},{key:"dispatchEvent",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2?arguments[2]:void 0;if(i)return this.dispatchEventToSelf(e),!0;var o;if(this.document)o=this;else if(this.defaultView)o=this.defaultView;else{var a;o=(a=this.ownerDocument)===null||a===void 0?void 0:a.defaultView}if(o){if(e.manager=o.getEventService(),!e.manager)return!1;e.defaultPrevented=!1,e.path?e.path.length=0:e.page=[],t||(e.target=this),e.manager.dispatchEvent(e,e.type,t)}else this.dispatchEventToSelf(e);return!e.defaultPrevented}}])}(),ae=function(r){function n(){var e;D(this,n);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e=Z(this,n,[].concat(i)),e.shadow=!1,e.ownerDocument=null,e.isConnected=!1,e.baseURI="",e.childNodes=[],e.nodeType=0,e.nodeName="",e.nodeValue=null,e.parentNode=null,e.destroyed=!1,e}return K(n,r),_(n,[{key:"textContent",get:function(){var t="";this.nodeName===F.TEXT&&(t+=this.style.text);var i=He(this.childNodes),o;try{for(i.s();!(o=i.n()).done;){var a=o.value;a.nodeName===F.TEXT?t+=a.nodeValue:t+=a.textContent}}catch(s){i.e(s)}finally{i.f()}return t},set:function(t){var i=this;this.childNodes.slice().forEach(function(o){i.removeChild(o)}),this.nodeName===F.TEXT&&(this.style.text="".concat(t))}},{key:"getRootNode",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return this.parentNode?this.parentNode.getRootNode(t):t.composed&&this.host?this.host.getRootNode(t):this}},{key:"hasChildNodes",value:function(){return this.childNodes.length>0}},{key:"isDefaultNamespace",value:function(t){throw new Error(ne)}},{key:"lookupNamespaceURI",value:function(t){throw new Error(ne)}},{key:"lookupPrefix",value:function(t){throw new Error(ne)}},{key:"normalize",value:function(){throw new Error(ne)}},{key:"isEqualNode",value:function(t){return this===t}},{key:"isSameNode",value:function(t){return this.isEqualNode(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 this.childNodes.length>0?this.childNodes[0]:null}},{key:"lastChild",get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}},{key:"compareDocumentPosition",value:function(t){if(t===this)return 0;for(var i=t,o=this,a=[i],s=[o];(u=i.parentNode)!==null&&u!==void 0?u:o.parentNode;){var u;i=i.parentNode?(a.push(i.parentNode),i.parentNode):i,o=o.parentNode?(s.push(o.parentNode),o.parentNode):o}if(i!==o)return n.DOCUMENT_POSITION_DISCONNECTED|n.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|n.DOCUMENT_POSITION_PRECEDING;var l=a.length>s.length?a:s,c=l===a?s:a;if(l[l.length-c.length]===c[0])return l===a?n.DOCUMENT_POSITION_CONTAINED_BY|n.DOCUMENT_POSITION_FOLLOWING:n.DOCUMENT_POSITION_CONTAINS|n.DOCUMENT_POSITION_PRECEDING;for(var f=l.length-c.length,h=c.length-1;h>=0;h--){var v=c[h],d=l[f+h];if(d!==v){var m=v.parentNode.childNodes;return m.indexOf(v)<m.indexOf(d)?c===a?n.DOCUMENT_POSITION_PRECEDING:n.DOCUMENT_POSITION_FOLLOWING:l===a?n.DOCUMENT_POSITION_PRECEDING:n.DOCUMENT_POSITION_FOLLOWING}}return n.DOCUMENT_POSITION_FOLLOWING}},{key:"contain",value:function(t){return this.contains(t)}},{key:"contains",value:function(t){for(var i=t;i&&this!==i;)i=i.parentNode;return!!i}},{key:"getAncestor",value:function(t){for(var i=this;t>0&&i;)i=i.parentNode,t--;return i}},{key:"forEach",value:function(t){for(var i=[this];i.length>0;){var o=i.pop(),a=t(o);if(a===!1)break;for(var s=o.childNodes.length-1;s>=0;s--)i.push(o.childNodes[s])}}}],[{key:"isNode",value:function(t){return!!t.childNodes}}])}(zi);ae.DOCUMENT_POSITION_DISCONNECTED=1;ae.DOCUMENT_POSITION_PRECEDING=2;ae.DOCUMENT_POSITION_FOLLOWING=4;ae.DOCUMENT_POSITION_CONTAINS=8;ae.DOCUMENT_POSITION_CONTAINED_BY=16;ae.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var ku=2048,Eu=function(){function r(n,e){var t=this;D(this,r),this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=A.create(),this.tmpVec3=T.create(),this.onPointerDown=function(i){var o=t.createPointerEvent(i);if(t.dispatchEvent(o,"pointerdown"),o.pointerType==="touch")t.dispatchEvent(o,"touchstart");else if(o.pointerType==="mouse"||o.pointerType==="pen"){var a=o.button===2;t.dispatchEvent(o,a?"rightdown":"mousedown")}var s=t.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=o.composedPath(),t.freeEvent(o)},this.onPointerUp=function(i){var o=Br.now(),a=t.createPointerEvent(i,void 0,void 0,t.context.config.alwaysTriggerPointerEventOnCanvas?t.rootTarget:void 0);if(t.dispatchEvent(a,"pointerup"),a.pointerType==="touch")t.dispatchEvent(a,"touchend");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var s=a.button===2;t.dispatchEvent(a,s?"rightup":"mouseup")}var u=t.trackingData(i.pointerId),l=t.findMountedTarget(u.pressTargetsByButton[i.button]),c=l;if(l&&!a.composedPath().includes(l)){for(var f=l;f&&!a.composedPath().includes(f);){if(a.currentTarget=f,t.notifyTarget(a,"pointerupoutside"),a.pointerType==="touch")t.notifyTarget(a,"touchendoutside");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var h=a.button===2;t.notifyTarget(a,h?"rightupoutside":"mouseupoutside")}ae.isNode(f)&&(f=f.parentNode)}delete u.pressTargetsByButton[i.button],c=f}if(c){var v,d=t.clonePointerEvent(a,"click");d.target=c,d.path=[],u.clicksByButton[i.button]||(u.clicksByButton[i.button]={clickCount:0,target:d.target,timeStamp:o});var m=t.context.renderingContext.root.ownerDocument.defaultView,E=u.clicksByButton[i.button];E.target===d.target&&o-E.timeStamp<m.getConfig().dblClickSpeed?++E.clickCount:E.clickCount=1,E.target=d.target,E.timeStamp=o,d.detail=E.clickCount,(v=a.detail)!==null&&v!==void 0&&v.preventClick||(!t.context.config.useNativeClickEvent&&(d.pointerType==="mouse"||d.pointerType==="touch")&&t.dispatchEvent(d,"click"),t.dispatchEvent(d,"pointertap")),t.freeEvent(d)}t.freeEvent(a)},this.onPointerMove=function(i){var o=t.createPointerEvent(i,void 0,void 0,t.context.config.alwaysTriggerPointerEventOnCanvas?t.rootTarget:void 0),a=o.pointerType==="mouse"||o.pointerType==="pen",s=t.trackingData(i.pointerId),u=t.findMountedTarget(s.overTargets);if(s.overTargets&&u!==o.target){var l=i.type==="mousemove"?"mouseout":"pointerout",c=t.createPointerEvent(i,l,u||void 0);if(t.dispatchEvent(c,"pointerout"),a&&t.dispatchEvent(c,"mouseout"),!o.composedPath().includes(u)){var f=t.createPointerEvent(i,"pointerleave",u||void 0);for(f.eventPhase=f.AT_TARGET;f.target&&!o.composedPath().includes(f.target);)f.currentTarget=f.target,t.notifyTarget(f),a&&t.notifyTarget(f,"mouseleave"),ae.isNode(f.target)&&(f.target=f.target.parentNode);t.freeEvent(f)}t.freeEvent(c)}if(u!==o.target){var h=i.type==="mousemove"?"mouseover":"pointerover",v=t.clonePointerEvent(o,h);t.dispatchEvent(v,"pointerover"),a&&t.dispatchEvent(v,"mouseover");for(var d=u&&ae.isNode(u)&&u.parentNode;d&&d!==(ae.isNode(t.rootTarget)&&t.rootTarget.parentNode)&&d!==o.target;)d=d.parentNode;var m=!d||d===(ae.isNode(t.rootTarget)&&t.rootTarget.parentNode);if(m){var E=t.clonePointerEvent(o,"pointerenter");for(E.eventPhase=E.AT_TARGET;E.target&&E.target!==u&&E.target!==(ae.isNode(t.rootTarget)&&t.rootTarget.parentNode);)E.currentTarget=E.target,t.notifyTarget(E),a&&t.notifyTarget(E,"mouseenter"),ae.isNode(E.target)&&(E.target=E.target.parentNode);t.freeEvent(E)}t.freeEvent(v)}t.dispatchEvent(o,"pointermove"),o.pointerType==="touch"&&t.dispatchEvent(o,"touchmove"),a&&(t.dispatchEvent(o,"mousemove"),t.cursor=t.getCursor(o.target)),s.overTargets=o.composedPath(),t.freeEvent(o)},this.onPointerOut=function(i){var o=t.trackingData(i.pointerId);if(o.overTargets){var a=i.pointerType==="mouse"||i.pointerType==="pen",s=t.findMountedTarget(o.overTargets),u=t.createPointerEvent(i,"pointerout",s||void 0);t.dispatchEvent(u),a&&t.dispatchEvent(u,"mouseout");var l=t.createPointerEvent(i,"pointerleave",s||void 0);for(l.eventPhase=l.AT_TARGET;l.target&&l.target!==(ae.isNode(t.rootTarget)&&t.rootTarget.parentNode);)l.currentTarget=l.target,t.notifyTarget(l),a&&t.notifyTarget(l,"mouseleave"),ae.isNode(l.target)&&(l.target=l.target.parentNode);o.overTargets=null,t.freeEvent(u),t.freeEvent(l)}t.cursor=null},this.onPointerOver=function(i){var o=t.trackingData(i.pointerId),a=t.createPointerEvent(i),s=a.pointerType==="mouse"||a.pointerType==="pen";t.dispatchEvent(a,"pointerover"),s&&t.dispatchEvent(a,"mouseover"),a.pointerType==="mouse"&&(t.cursor=t.getCursor(a.target));var u=t.clonePointerEvent(a,"pointerenter");for(u.eventPhase=u.AT_TARGET;u.target&&u.target!==(ae.isNode(t.rootTarget)&&t.rootTarget.parentNode);)u.currentTarget=u.target,t.notifyTarget(u),s&&t.notifyTarget(u,"mouseenter"),ae.isNode(u.target)&&(u.target=u.target.parentNode);o.overTargets=a.composedPath(),t.freeEvent(a),t.freeEvent(u)},this.onPointerUpOutside=function(i){var o=t.trackingData(i.pointerId),a=t.findMountedTarget(o.pressTargetsByButton[i.button]),s=t.createPointerEvent(i);if(a){for(var u=a;u;)s.currentTarget=u,t.notifyTarget(s,"pointerupoutside"),s.pointerType==="touch"||(s.pointerType==="mouse"||s.pointerType==="pen")&&t.notifyTarget(s,s.button===2?"rightupoutside":"mouseupoutside"),ae.isNode(u)&&(u=u.parentNode);delete o.pressTargetsByButton[i.button]}t.freeEvent(s)},this.onWheel=function(i){var o=t.createWheelEvent(i);t.dispatchEvent(o),t.freeEvent(o)},this.onClick=function(i){if(t.context.config.useNativeClickEvent){var o=t.createPointerEvent(i);t.dispatchEvent(o),t.freeEvent(o)}},this.onPointerCancel=function(i){var o=t.createPointerEvent(i,void 0,void 0,t.context.config.alwaysTriggerPointerEventOnCanvas?t.rootTarget:void 0);t.dispatchEvent(o),t.freeEvent(o)},this.globalRuntime=n,this.context=e}return _(r,[{key:"init",value:function(){this.rootTarget=this.context.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("pointercancel",this.onPointerCancel),this.addEventMapping("pointerover",this.onPointerOver),this.addEventMapping("pointerupoutside",this.onPointerUpOutside),this.addEventMapping("wheel",this.onWheel),this.addEventMapping("click",this.onClick)}},{key:"destroy",value:function(){this.mappingTable={},this.mappingState={},this.eventPool.clear()}},{key:"getScale",value:function(){var e=this.context.contextService.getBoundingClientRect(),t=1,i=1,o=this.context.contextService.getDomElement();if(o&&e){var a=o.offsetWidth,s=o.offsetHeight;a&&s&&(t=e.width/a,i=e.height/s)}return{scaleX:t,scaleY:i,bbox:e}}},{key:"client2Viewport",value:function(e){var t=this.getScale(),i=t.scaleX,o=t.scaleY,a=t.bbox;return new pe((e.x-(a?.left||0))/i,(e.y-(a?.top||0))/o)}},{key:"viewport2Client",value:function(e){var t=this.getScale(),i=t.scaleX,o=t.scaleY,a=t.bbox;return new pe((e.x+(a?.left||0))*i,(e.y+(a?.top||0))*o)}},{key:"viewport2Canvas",value:function(e){var t=e.x,i=e.y,o=this.rootTarget.defaultView,a=o.getCamera(),s=this.context.config,u=s.width,l=s.height,c=a.getPerspectiveInverse(),f=a.getWorldTransform(),h=A.multiply(this.tmpMatrix,f,c),v=T.set(this.tmpVec3,t/u*2-1,(1-i/l)*2-1,0);return T.transformMat4(v,v,h),new pe(v[0],v[1])}},{key:"canvas2Viewport",value:function(e){var t=this.rootTarget.defaultView,i=t.getCamera(),o=i.getPerspective(),a=i.getViewTransform(),s=A.multiply(this.tmpMatrix,o,a),u=T.set(this.tmpVec3,e.x,e.y,0);T.transformMat4(this.tmpVec3,this.tmpVec3,s);var l=this.context.config,c=l.width,f=l.height;return new pe((u[0]+1)/2*c,(1-(u[1]+1)/2)*f)}},{key:"setPickHandler",value:function(e){this.pickHandler=e}},{key:"addEventMapping",value:function(e,t){this.mappingTable[e]||(this.mappingTable[e]=[]),this.mappingTable[e].push({fn:t,priority:0}),this.mappingTable[e].sort(function(i,o){return i.priority-o.priority})}},{key:"mapEvent",value:function(e){if(this.rootTarget){var t=this.mappingTable[e.type];if(t)for(var i=0,o=t.length;i<o;i++)t[i].fn(e);else console.warn("[EventService]: Event mapping not defined for ".concat(e.type))}}},{key:"dispatchEvent",value:function(e,t,i){if(!i)e.propagationStopped=!1,e.propagationImmediatelyStopped=!1,this.propagate(e,t);else{e.eventPhase=e.AT_TARGET;var o=this.rootTarget.defaultView||null;e.currentTarget=o,this.notifyListeners(e,t)}}},{key:"propagate",value:function(e,t){if(e.target){var i=e.composedPath();e.eventPhase=e.CAPTURING_PHASE;for(var o=i.length-1;o>=1;o--)if(e.currentTarget=i[o],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return;if(e.eventPhase=e.AT_TARGET,e.currentTarget=e.target,this.notifyTarget(e,t),!(e.propagationStopped||e.propagationImmediatelyStopped)){var a=i.indexOf(e.currentTarget);e.eventPhase=e.BUBBLING_PHASE;for(var s=a+1;s<i.length;s++)if(e.currentTarget=i[s],this.notifyTarget(e,t),e.propagationStopped||e.propagationImmediatelyStopped)return}}}},{key:"propagationPath",value:function(e){var t=[e],i=this.rootTarget.defaultView||null;if(i&&i===e)return t.unshift(i.document),t;for(var o=0;o<ku&&e!==this.rootTarget;o++)ae.isNode(e)&&e.parentNode&&(t.push(e.parentNode),e=e.parentNode);return i&&t.push(i),t}},{key:"hitTest",value:function(e){var t=e.viewportX,i=e.viewportY,o=this.context.config,a=o.width,s=o.height,u=o.disableHitTesting;return t<0||i<0||t>a||i>s?null:!u&&this.pickHandler(e)||this.rootTarget||null}},{key:"isNativeEventFromCanvas",value:function(e,t){var i,o=t?.target;if((i=o)!==null&&i!==void 0&&i.shadowRoot&&(o=t.composedPath()[0]),o){if(o===e)return!0;if(e&&e.contains)return e.contains(o)}return t!=null&&t.composedPath?t.composedPath().indexOf(e)>-1:!1}},{key:"getExistedHTML",value:function(e){if(e.nativeEvent.composedPath)for(var t=0,i=e.nativeEvent.composedPath();t<i.length;t++){var o=i[t],a=this.nativeHTMLMap.get(o);if(a)return a}return null}},{key:"pickTarget",value:function(e){return this.hitTest({clientX:e.clientX,clientY:e.clientY,viewportX:e.viewportX,viewportY:e.viewportY,x:e.canvasX,y:e.canvasY})}},{key:"createPointerEvent",value:function(e,t,i,o){var a=this.allocateEvent(Gr);this.copyPointerData(e,a),this.copyMouseData(e,a),this.copyData(e,a),a.nativeEvent=e.nativeEvent,a.originalEvent=e;var s=this.getExistedHTML(a),u=this.context.contextService.getDomElement();return a.target=i??(s||this.isNativeEventFromCanvas(u,a.nativeEvent)&&this.pickTarget(a)||o),typeof t=="string"&&(a.type=t),a}},{key:"createWheelEvent",value:function(e){var t=this.allocateEvent(Vr);this.copyWheelData(e,t),this.copyMouseData(e,t),this.copyData(e,t),t.nativeEvent=e.nativeEvent,t.originalEvent=e;var i=this.getExistedHTML(t),o=this.context.contextService.getDomElement();return t.target=i||this.isNativeEventFromCanvas(o,t.nativeEvent)&&this.pickTarget(t),t}},{key:"trackingData",value:function(e){return this.mappingState.trackingData[e]||(this.mappingState.trackingData[e]={pressTargetsByButton:{},clicksByButton:{},overTarget:null}),this.mappingState.trackingData[e]}},{key:"cloneWheelEvent",value:function(e){var t=this.allocateEvent(Vr);return t.nativeEvent=e.nativeEvent,t.originalEvent=e.originalEvent,this.copyWheelData(e,t),this.copyMouseData(e,t),this.copyData(e,t),t.target=e.target,t.path=e.composedPath().slice(),t.type=e.type,t}},{key:"clonePointerEvent",value:function(e,t){var i=this.allocateEvent(Gr);return i.nativeEvent=e.nativeEvent,i.originalEvent=e.originalEvent,this.copyPointerData(e,i),this.copyMouseData(e,i),this.copyData(e,i),i.target=e.target,i.path=e.composedPath().slice(),i.type=t??i.type,i}},{key:"copyPointerData",value:function(e,t){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}},{key:"copyMouseData",value:function(e,t){t.altKey=e.altKey,t.button=e.button,t.buttons=e.buttons,t.ctrlKey=e.ctrlKey,t.metaKey=e.metaKey,t.shiftKey=e.shiftKey,t.client.copyFrom(e.client),t.movement.copyFrom(e.movement),t.canvas.copyFrom(e.canvas),t.screen.copyFrom(e.screen),t.global.copyFrom(e.global),t.offset.copyFrom(e.offset)}},{key:"copyWheelData",value:function(e,t){t.deltaMode=e.deltaMode,t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ}},{key:"copyData",value:function(e,t){t.isTrusted=e.isTrusted,t.timeStamp=Br.now(),t.type=e.type,t.detail=e.detail,t.view=e.view,t.page.copyFrom(e.page),t.viewport.copyFrom(e.viewport)}},{key:"allocateEvent",value:function(e){this.eventPool.has(e)||this.eventPool.set(e,[]);var t=this.eventPool.get(e).pop()||new e(this);return t.eventPhase=t.NONE,t.currentTarget=null,t.path=[],t.target=null,t}},{key:"freeEvent",value:function(e){if(e.manager!==this)throw new Error("It is illegal to free an event not managed by this EventBoundary!");var t=e.constructor;this.eventPool.has(t)||this.eventPool.set(t,[]),this.eventPool.get(t).push(e)}},{key:"notifyTarget",value:function(e,t){t=t??e.type;var i=e.eventPhase===e.CAPTURING_PHASE||e.eventPhase===e.AT_TARGET?"".concat(t,"capture"):t;this.notifyListeners(e,i),e.eventPhase===e.AT_TARGET&&this.notifyListeners(e,t)}},{key:"notifyListeners",value:function(e,t){var i=e.currentTarget.emitter,o=i._events[t];if(o)if("fn"in o)o.once&&i.removeListener(t,o.fn,void 0,!0),o.fn.call(e.currentTarget||o.context,e);else for(var a=0;a<o.length&&!e.propagationImmediatelyStopped;a++)o[a].once&&i.removeListener(t,o[a].fn,void 0,!0),o[a].fn.call(e.currentTarget||o[a].context,e)}},{key:"findMountedTarget",value:function(e){if(!e)return null;for(var t=e[e.length-1],i=e.length-2;i>=0;i--){var o=e[i];if(o===this.rootTarget||ae.isNode(o)&&o.parentNode===t)t=e[i];else break}return t}},{key:"getCursor",value:function(e){for(var t=e;t;){var i=_s(t)&&t.getAttribute("cursor");if(i)return i;t=ae.isNode(t)&&t.parentNode}}}])}(),Tu=function(){function r(){D(this,r)}return _(r,[{key:"getOrCreateCanvas",value:function(e,t){if(this.canvas)return this.canvas;if(e||C.offscreenCanvas)this.canvas=e||C.offscreenCanvas,this.context=this.canvas.getContext("2d",$({willReadFrequently:!0},t));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",$({willReadFrequently:!0},t)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",$({willReadFrequently:!0},t))}return this.canvas.width=10,this.canvas.height=10,this.canvas}},{key:"getOrCreateContext",value:function(e,t){return this.context?this.context:(this.getOrCreateCanvas(e,t),this.context)}}],[{key:"createCanvas",value:function(){try{return new window.OffscreenCanvas(0,0)}catch{}try{return document.createElement("canvas")}catch{}return null}}])}(),jt=function(r){return r[r.CAMERA_CHANGED=0]="CAMERA_CHANGED",r[r.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",r[r.NONE=2]="NONE",r}({}),wu=function(){function r(n,e){D(this,r),this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new me,initAsync:new Js,dirtycheck:new br,cull:new br,beginFrame:new me,beforeRender:new me,render:new me,afterRender:new me,endFrame:new me,destroy:new me,pick:new Qs,pickSync:new br,pointerDown:new me,pointerUp:new me,pointerMove:new me,pointerOut:new me,pointerOver:new me,pointerWheel:new me,pointerCancel:new me,click:new me},this.globalRuntime=n,this.context=e}return _(r,[{key:"init",value:function(e){var t=this,i=$($({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(o){o.apply(i,t.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,e()):this.hooks.initAsync.promise().then(function(){t.inited=!0,e()}).catch(function(o){})}},{key:"getStats",value:function(){return this.stats}},{key:"disableDirtyRectangleRendering",value:function(){var e=this.context.config.renderer,t=e.getConfig(),i=t.enableDirtyRectangleRendering;return!i||this.context.renderingContext.renderReasons.has(jt.CAMERA_CHANGED)}},{key:"render",value:function(e,t,i){var o=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var a=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(a.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),a.renderReasons.size&&this.inited){a.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var s=a.renderReasons.size===1&&a.renderReasons.has(jt.CAMERA_CHANGED),u=!e.disableRenderHooks||!s;u&&this.renderDisplayObject(a.root,e,a),this.hooks.beginFrame.call(t),u&&a.renderListCurrentFrame.forEach(function(l){o.hooks.beforeRender.call(l),o.hooks.render.call(l),o.hooks.afterRender.call(l)}),this.hooks.endFrame.call(t),a.renderListCurrentFrame=[],a.renderReasons.clear(),i()}}},{key:"renderDisplayObject",value:function(e,t,i){var o=this,a=t.renderer.getConfig(),s=a.enableDirtyCheck,u=a.enableCulling;function l(m){var E=m.renderable,w=m.sortable,k=s?E.dirty||i.dirtyRectangleRenderingDisabled?m:null:m,P=null;k&&(P=u?o.hooks.cull.call(k,o.context.camera):k,P&&(o.stats.rendered+=1,i.renderListCurrentFrame.push(P))),m.dirty(!1),w.renderOrder=o.zIndexCounter,o.zIndexCounter+=1,o.stats.total+=1,w.dirty&&(o.sort(m,w),w.dirty=!1,w.dirtyChildren=[],w.dirtyReason=void 0)}for(var c=[e];c.length>0;){var f,h=c.pop();l(h);for(var v=((f=h.sortable)===null||f===void 0||(f=f.sorted)===null||f===void 0?void 0:f.length)>0?h.sortable.sorted:h.childNodes,d=v.length-1;d>=0;d--)c.push(v[d])}}},{key:"sort",value:function(e,t){var i,o;(t==null||(i=t.sorted)===null||i===void 0?void 0:i.length)>0&&t.dirtyReason!==er.Z_INDEX_CHANGED?t.dirtyChildren.forEach(function(a){var s=t.sorted.indexOf(a);s>-1&&t.sorted.splice(s,1);var u=e.childNodes.indexOf(a);if(u>-1)if(t.sorted.length===0)t.sorted.push(a);else{var l=Fs(t.sorted,a);t.sorted.splice(l,0,a)}}):t.sorted=e.childNodes.slice().sort(Fi),((o=t.sorted)===null||o===void 0?void 0:o.length)>0&&e.childNodes.filter(function(a){return a.parsedStyle.zIndex}).length===0&&(t.sorted=[])}},{key:"destroy",value:function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()}},{key:"dirtify",value:function(){this.context.renderingContext.renderReasons.add(jt.DISPLAY_OBJECT_CHANGED)}}])}(),Pu=/\[\s*(.*)=(.*)\s*\]/,Su=function(){function r(){D(this,r)}return _(r,[{key:"selectOne",value:function(e,t){var i=this;if(e.startsWith("."))return t.find(function(u){return(u?.classList||[]).indexOf(i.getIdOrClassname(e))>-1});if(e.startsWith("#"))return t.find(function(u){return u.id===i.getIdOrClassname(e)});if(e.startsWith("[")){var o=this.getAttribute(e),a=o.name,s=o.value;return a?t.find(function(u){return t!==u&&(a==="name"?u.name===s:i.attributeToString(u,a)===s)}):null}return t.find(function(u){return t!==u&&u.nodeName===e})}},{key:"selectAll",value:function(e,t){var i=this;if(e.startsWith("."))return t.findAll(function(u){return t!==u&&(u?.classList||[]).indexOf(i.getIdOrClassname(e))>-1});if(e.startsWith("#"))return t.findAll(function(u){return t!==u&&u.id===i.getIdOrClassname(e)});if(e.startsWith("[")){var o=this.getAttribute(e),a=o.name,s=o.value;return a?t.findAll(function(u){return t!==u&&(a==="name"?u.name===s:i.attributeToString(u,a)===s)}):[]}return t.findAll(function(u){return t!==u&&u.nodeName===e})}},{key:"is",value:function(e,t){if(e.startsWith("."))return t.className===this.getIdOrClassname(e);if(e.startsWith("#"))return t.id===this.getIdOrClassname(e);if(e.startsWith("[")){var i=this.getAttribute(e),o=i.name,a=i.value;return o==="name"?t.name===a:this.attributeToString(t,o)===a}return t.nodeName===e}},{key:"getIdOrClassname",value:function(e){return e.substring(1)}},{key:"getAttribute",value:function(e){var t=e.match(Pu),i="",o="";return t&&t.length>2&&(i=t[1].replace(/"/g,""),o=t[2].replace(/"/g,"")),{name:i,value:o}}},{key:"attributeToString",value:function(e,t){if(!e.getAttribute)return"";var i=e.getAttribute(t);return ge(i)?"":i.toString?i.toString():""}}])}(),de=function(r){return r.ATTR_MODIFIED="DOMAttrModified",r.INSERTED="DOMNodeInserted",r.MOUNTED="DOMNodeInsertedIntoDocument",r.REMOVED="removed",r.UNMOUNTED="DOMNodeRemovedFromDocument",r.REPARENT="reparent",r.DESTROY="destroy",r.BOUNDS_CHANGED="bounds-changed",r.CULLED="culled",r}({}),Be=function(r){function n(e,t,i,o,a,s,u,l){var c;return D(this,n),c=Z(this,n,[null]),c.relatedNode=t,c.prevValue=i,c.newValue=o,c.attrName=a,c.attrChange=s,c.prevParsedValue=u,c.newParsedValue=l,c.type=e,c}return K(n,r),_(n)}(qr);Be.ADDITION=2;Be.MODIFICATION=1;Be.REMOVAL=3;var bu=new Be(de.REPARENT,null,"","","",0,"",""),Nu=Jt.create(),Xt=T.create(),Cu=T.fromValues(1,1,1),Mu=A.create(),Au=Jt.create(),Ze=T.create(),Ru=A.create(),Ke=H.create(),Ou=T.create(),Lu=H.create(),Iu=T.create(),yt=T.create(),qe=T.create(),Wt=A.create(),li=H.create(),ci=H.create(),Ht=H.create(),$t={affectChildren:!0},Du=function(){function r(n){D(this,r),this.pendingEvents=new Map,this.boundsChangedEvent=new xe(de.BOUNDS_CHANGED),this.displayObjectDependencyMap=new WeakMap,this.runtime=n}return _(r,[{key:"matches",value:function(e,t){return this.runtime.sceneGraphSelector.is(e,t)}},{key:"querySelector",value:function(e,t){return this.runtime.sceneGraphSelector.selectOne(e,t)}},{key:"querySelectorAll",value:function(e,t){return this.runtime.sceneGraphSelector.selectAll(e,t)}},{key:"attach",value:function(e,t,i){var o,a=!1;e.parentNode&&(a=e.parentNode!==t,this.detach(e));var s=e.nodeName===F.FRAGMENT,u=ir(t);e.parentNode=t;var l=s?e.childNodes:[e];ft(i)?l.forEach(function(m){t.childNodes.splice(i,0,m),m.parentNode=t}):l.forEach(function(m){t.childNodes.push(m),m.parentNode=t});var c=t,f=c.sortable;if((f!=null&&(o=f.sorted)!==null&&o!==void 0&&o.length||f.dirty||e.parsedStyle.zIndex)&&(f.dirtyChildren.indexOf(e)===-1&&f.dirtyChildren.push(e),f.dirty=!0,f.dirtyReason=er.ADDED),!u){if(s)this.dirtifyFragment(e);else{var h=e.transformable;h&&this.dirtyWorldTransform(e,h)}if(a){var v,d=((v=t.ownerDocument)===null||v===void 0||(v=v.defaultView)===null||v===void 0||(v=v.getConfig())===null||v===void 0||(v=v.future)===null||v===void 0?void 0:v.experimentalCancelEventPropagation)===!0;e.dispatchEvent(bu,d,d)}}}},{key:"detach",value:function(e){var t,i;if(e.parentNode){var o=e.transformable,a=e.parentNode,s=a.sortable;(s!=null&&(t=s.sorted)!==null&&t!==void 0&&t.length||(i=e.style)!==null&&i!==void 0&&i.zIndex)&&(s.dirtyChildren.indexOf(e)===-1&&s.dirtyChildren.push(e),s.dirty=!0,s.dirtyReason=er.REMOVED);var u=e.parentNode.childNodes.indexOf(e);u>-1&&e.parentNode.childNodes.splice(u,1),o&&this.dirtyWorldTransform(e,o),e.parentNode=null}}},{key:"getLocalPosition",value:function(e){return e.transformable.localPosition}},{key:"getLocalRotation",value:function(e){return e.transformable.localRotation}},{key:"getLocalScale",value:function(e){return e.transformable.localScale}},{key:"getLocalSkew",value:function(e){return e.transformable.localSkew}},{key:"getLocalTransform",value:function(e){var t=e.transformable;return Dn(t),t.localTransform}},{key:"setLocalPosition",value:function(e,t){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=e.transformable;yt[0]=t[0],yt[1]=t[1],yt[2]=(i=t[2])!==null&&i!==void 0?i:0,!T.equals(a.localPosition,yt)&&(T.copy(a.localPosition,yt),o&&this.dirtyLocalTransform(e,a))}},{key:"translateLocal",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof t=="number"&&(t=T.fromValues(t,i,o));var a=e.transformable;T.equals(t,Xt)||(T.transformQuat(t,t,a.localRotation),T.add(a.localPosition,a.localPosition,t),this.dirtyLocalTransform(e,a))}},{key:"setLocalRotation",value:function(e,t,i,o,a){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;typeof t=="number"&&(t=H.set(Ke,t,i,o,a));var u=e.transformable;H.copy(u.localRotation,t),s&&this.dirtyLocalTransform(e,u)}},{key:"rotateLocal",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof t=="number"&&(t=T.fromValues(t,i,o));var a=e.transformable;H.fromEuler(ci,t[0],t[1],t[2]),H.mul(a.localRotation,a.localRotation,ci),this.dirtyLocalTransform(e,a)}},{key:"setLocalScale",value:function(e,t){var i,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=e.transformable;T.set(Ze,t[0],t[1],(i=t[2])!==null&&i!==void 0?i:a.localScale[2]),!T.equals(Ze,a.localScale)&&(T.copy(a.localScale,Ze),o&&this.dirtyLocalTransform(e,a))}},{key:"scaleLocal",value:function(e,t){var i,o=e.transformable;T.multiply(o.localScale,o.localScale,T.set(Ze,t[0],t[1],(i=t[2])!==null&&i!==void 0?i:1)),this.dirtyLocalTransform(e,o)}},{key:"setLocalSkew",value:function(e,t,i){var o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;typeof t=="number"&&(t=Jt.set(Au,t,i));var a=e.transformable;Jt.copy(a.localSkew,t),o&&this.dirtyLocalTransform(e,a)}},{key:"setLocalEulerAngles",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;typeof t=="number"&&(t=T.fromValues(t,i,o));var s=e.transformable;H.fromEuler(s.localRotation,t[0],t[1],t[2]),a&&this.dirtyLocalTransform(e,s)}},{key:"setLocalTransform",value:function(e,t){var i=A.getTranslation(Ou,t),o=A.getRotation(Lu,t),a=A.getScaling(Iu,t);this.setLocalScale(e,a,!1),this.setLocalPosition(e,i,!1),this.setLocalRotation(e,o,void 0,void 0,void 0,!1),this.dirtyLocalTransform(e,e.transformable)}},{key:"resetLocalTransform",value:function(e){this.setLocalScale(e,Cu,!1),this.setLocalPosition(e,Xt,!1),this.setLocalEulerAngles(e,Xt,void 0,void 0,!1),this.setLocalSkew(e,Nu,void 0,!1),this.dirtyLocalTransform(e,e.transformable)}},{key:"getPosition",value:function(e){var t=e.transformable;return A.getTranslation(t.position,this.getWorldTransform(e,t))}},{key:"getRotation",value:function(e){var t=e.transformable;return A.getRotation(t.rotation,this.getWorldTransform(e,t))}},{key:"getScale",value:function(e){var t=e.transformable;return A.getScaling(t.scaling,this.getWorldTransform(e,t))}},{key:"getOrigin",value:function(e){return e.getGeometryBounds(),e.transformable.origin}},{key:"getWorldTransform",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e.transformable;return!t.localDirtyFlag&&!t.dirtyFlag||(e.parentNode&&e.parentNode.transformable&&this.getWorldTransform(e.parentNode),this.internalUpdateTransform(e)),t.worldTransform}},{key:"setPosition",value:function(e,t){var i,o=e.transformable;if(qe[0]=t[0],qe[1]=t[1],qe[2]=(i=t[2])!==null&&i!==void 0?i:0,!T.equals(this.getPosition(e),qe)){if(T.copy(o.position,qe),e.parentNode===null||!e.parentNode.transformable)T.copy(o.localPosition,qe);else{var a=e.parentNode.transformable;A.copy(Wt,a.worldTransform),A.invert(Wt,Wt),T.transformMat4(o.localPosition,qe,Wt)}this.dirtyLocalTransform(e,o)}}},{key:"translate",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof t=="number"&&(t=T.set(Ze,t,i,o)),!T.equals(t,Xt)&&(T.add(Ze,this.getPosition(e),t),this.setPosition(e,Ze))}},{key:"setRotation",value:function(e,t,i,o,a){var s=e.transformable;if(typeof t=="number"&&(t=H.fromValues(t,i,o,a)),e.parentNode===null||!e.parentNode.transformable)this.setLocalRotation(e,t);else{var u=this.getRotation(e.parentNode);H.copy(Ke,u),H.invert(Ke,Ke),H.multiply(s.localRotation,Ke,t),H.normalize(s.localRotation,s.localRotation),this.dirtyLocalTransform(e,s)}}},{key:"rotate",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof t=="number"&&(t=T.fromValues(t,i,o));var a=e.transformable;if(e.parentNode===null||!e.parentNode.transformable)this.rotateLocal(e,t);else{var s=Ke;H.fromEuler(s,t[0],t[1],t[2]);var u=this.getRotation(e),l=this.getRotation(e.parentNode);H.copy(Ht,l),H.invert(Ht,Ht),H.multiply(s,Ht,s),H.multiply(a.localRotation,s,u),H.normalize(a.localRotation,a.localRotation),this.dirtyLocalTransform(e,a)}}},{key:"setOrigin",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof t=="number"&&(t=[t,i,o]);var a=e.transformable;if(!(t[0]===a.origin[0]&&t[1]===a.origin[1]&&t[2]===a.origin[2])){var s=a.origin;s[0]=t[0],s[1]=t[1],s[2]=t[2]||0,this.dirtyLocalTransform(e,a)}}},{key:"setEulerAngles",value:function(e,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof t=="number"&&(t=T.fromValues(t,i,o));var a=e.transformable;if(e.parentNode===null||!e.parentNode.transformable)this.setLocalEulerAngles(e,t);else{H.fromEuler(a.localRotation,t[0],t[1],t[2]);var s=this.getRotation(e.parentNode);H.copy(li,H.invert(Ke,s)),H.mul(a.localRotation,a.localRotation,li),this.dirtyLocalTransform(e,a)}}},{key:"getTransformedGeometryBounds",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2?arguments[2]:void 0,o=this.getGeometryBounds(e,t);if(!ye.isEmpty(o)){var a=i||new ye;return a.setFromTransformedAABB(o,this.getWorldTransform(e)),a}return null}},{key:"getGeometryBounds",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=e,o=i.geometry;o.dirty&&C.styleValueRegistry.updateGeometry(e);var a=t?o.renderBounds:o.contentBounds||null;return a||new ye}},{key:"getBounds",value:function(e){var t=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=e,a=o.renderable;if(!a.boundsDirty&&!i&&a.bounds)return a.bounds;if(!a.renderBoundsDirty&&i&&a.renderBounds)return a.renderBounds;var s=i?a.renderBounds:a.bounds,u=this.getTransformedGeometryBounds(e,i,s),l=e.childNodes;if(l.forEach(function(h){var v=t.getBounds(h,i);v&&(u?u.add(v):(u=s||new ye,u.update(v.center,v.halfExtents)))}),u||(u=new ye),i){var c=Bs(e);if(c){var f=c.parsedStyle.clipPath.getBounds(i);u?f&&(u=f.intersection(u)):u.update(f.center,f.halfExtents)}}return i?(a.renderBounds=u,a.renderBoundsDirty=!1):(a.bounds=u,a.boundsDirty=!1),u}},{key:"getLocalBounds",value:function(e){if(e.parentNode){var t=Mu;e.parentNode.transformable&&(t=A.invert(Ru,this.getWorldTransform(e.parentNode)));var i=this.getBounds(e);if(!ye.isEmpty(i)){var o=new ye;return o.setFromTransformedAABB(i,t),o}}return this.getBounds(e)}},{key:"getBoundingClientRect",value:function(e){var t,i,o=this.getGeometryBounds(e);ye.isEmpty(o)||(i=new ye,i.setFromTransformedAABB(o,this.getWorldTransform(e)));var a=(t=e.ownerDocument)===null||t===void 0||(t=t.defaultView)===null||t===void 0?void 0:t.getContextService().getBoundingClientRect();if(i){var s=i.getMin(),u=j(s,2),l=u[0],c=u[1],f=i.getMax(),h=j(f,2),v=h[0],d=h[1];return new lt(l+(a?.left||0),c+(a?.top||0),v-l,d-c)}return new lt(a?.left||0,a?.top||0,0,0)}},{key:"internalUpdateTransform",value:function(e){var t,i=(t=e.parentNode)===null||t===void 0?void 0:t.transformable;Dn(e.transformable),Za(e.transformable,i)}},{key:"internalUpdateElement",value:function(e,t){var i,o,a,s,u=((i=e.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig())===null||i===void 0||(i=i.future)===null||i===void 0?void 0:i.experimentalAttributeUpdateOptimization)===!0,l=t[t.length-1],c=l?.transformDirty||((o=e.transformable)===null||o===void 0?void 0:o.localDirtyFlag);if(e.transformable){var f;(f=e.transformable).dirtyFlag||(f.dirtyFlag=c)}if(this.internalUpdateTransform(e),c){var h;(h=e.dirty)===null||h===void 0||h.call(e,!0,!0)}var v=((a=e.renderable)===null||a===void 0?void 0:a.boundsDirty)||((s=e.renderable)===null||s===void 0?void 0:s.renderBoundsDirty);if((c||v)&&l?.shapeUpdated===!1&&u)for(var d=t.length-1;d>=0;){var m,E,w=t[d];if(w.shapeUpdated)break;(m=(E=w.node).dirty)===null||m===void 0||m.call(E,!0,!0),w.shapeUpdated=!0,d-=1}return c}},{key:"syncHierarchy",value:function(e){for(var t,i,o=[e],a=e.parentNode?[{node:e.parentNode,transformDirty:((t=e.parentNode.transformable)===null||t===void 0?void 0:t.localDirtyFlag)||((i=e.parentNode.transformable)===null||i===void 0?void 0:i.dirtyFlag),shapeUpdated:!1}]:[];o.length>0;){for(var s=o.pop(),u=a[a.length-1];a.length>0&&s.parentNode!==u.node;)u=a.pop();var l=this.internalUpdateElement(s,a);if(s.childNodes.length>0){for(var c=s.childNodes.length-1;c>=0;c--)o.push(s.childNodes[c]);a.push({node:s,transformDirty:l,shapeUpdated:!1})}}}},{key:"dirtyLocalTransform",value:function(e,t){ir(e)||t.localDirtyFlag||(t.localDirtyFlag=!0,t.dirtyFlag||this.dirtyWorldTransform(e,t))}},{key:"dirtyWorldTransform",value:function(e,t){this.dirtifyWorldInternal(e,t),this.dirtyToRoot(e,!0)}},{key:"dirtifyWorldInternal",value:function(e,t){var i,o=this,a=((i=e.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig())===null||i===void 0||(i=i.future)===null||i===void 0?void 0:i.experimentalAttributeUpdateOptimization)===!0;t.dirtyFlag||(t.dirtyFlag=!0,e.dirty(!0,!0),a||e.childNodes.forEach(function(s){var u=s.transformable;o.dirtifyWorldInternal(s,u)}))}},{key:"dirtyToRoot",value:function(e){for(var t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=e,a=((t=e.ownerDocument)===null||t===void 0||(t=t.defaultView)===null||t===void 0||(t=t.getConfig())===null||t===void 0||(t=t.future)===null||t===void 0?void 0:t.experimentalAttributeUpdateOptimization)===!0;o;){var s,u;if((s=(u=o).dirty)===null||s===void 0||s.call(u,!0,!0),a)break;o=o.parentNode}i&&e.forEach(function(l){var c;(c=l.dirty)===null||c===void 0||c.call(l,!0,!0)}),this.informDependentDisplayObjects(e),this.pendingEvents.set(e,i)}},{key:"dirtifyFragment",value:function(e){var t,i,o=e.transformable;o&&(o.dirtyFlag=!0,o.localDirtyFlag=!0),(t=(i=e).dirty)===null||t===void 0||t.call(i,!0,!0);for(var a=e.childNodes.length,s=0;s<a;s++)this.dirtifyFragment(e.childNodes[s]);e.nodeName===F.FRAGMENT&&this.pendingEvents.set(e,!1)}},{key:"triggerPendingEvents",value:function(){var e=this,t=new Set,i,o,a=function(u,l){if(!(!u.isConnected||t.has(u)||u.nodeName===F.FRAGMENT)){if(e.boundsChangedEvent.detail=l,e.boundsChangedEvent.target=u,u.isMutationObserved)u.dispatchEvent(e.boundsChangedEvent);else{if(i===void 0){var c;i=((c=u.ownerDocument.defaultView)===null||c===void 0||(c=c.getConfig())===null||c===void 0||(c=c.future)===null||c===void 0?void 0:c.experimentalCancelEventPropagation)===!0}u.ownerDocument.defaultView.dispatchEvent(e.boundsChangedEvent,!0,i)}t.add(u)}};this.pendingEvents.forEach(function(s,u){if(u.nodeName!==F.FRAGMENT){if(o===void 0){var l;o=((l=u.ownerDocument)===null||l===void 0||(l=l.defaultView)===null||l===void 0||(l=l.getConfig())===null||l===void 0||(l=l.future)===null||l===void 0?void 0:l.experimentalAttributeUpdateOptimization)===!0}$t.affectChildren=s,o?a(u,$t):s?u.forEach(function(c){a(c,$t)}):a(u,$t)}}),t.clear(),this.clearPendingEvents()}},{key:"clearPendingEvents",value:function(){this.pendingEvents.clear()}},{key:"updateDisplayObjectDependency",value:function(e,t,i,o){if(t&&t!==i){var a=this.displayObjectDependencyMap.get(t);if(a&&a[e]){var s=a[e].indexOf(o);a[e].splice(s,1)}}if(i){var u=this.displayObjectDependencyMap.get(i);u||(this.displayObjectDependencyMap.set(i,{}),u=this.displayObjectDependencyMap.get(i)),u[e]||(u[e]=[]),u[e].push(o)}}},{key:"informDependentDisplayObjects",value:function(e){var t,i=this,o=this.displayObjectDependencyMap.get(e);if(o){var a=(t=e.ownerDocument)===null||t===void 0||(t=t.defaultView)===null||t===void 0||(t=t.getConfig())===null||t===void 0||(t=t.future)===null||t===void 0?void 0:t.experimentalCancelEventPropagation;Object.keys(o).forEach(function(s){o[s].forEach(function(u){i.dirtyToRoot(u,!0),u.dispatchEvent(new Be(de.ATTR_MODIFIED,u,i,i,s,Be.MODIFICATION,i,i),a,a),u.isCustomElement&&u.isConnected&&u.attributeChangedCallback&&u.attributeChangedCallback(s,i,i)})})}}}])}(),fi=function(){function r(n){if(D(this,r),n<=0)throw new Error("LRU capacity must be a positive number.");this.capacity=n,this.cache=new Map}return _(r,[{key:"get",value:function(e){if(this.cache.has(e)){var t=this.cache.get(e);return this.cache.delete(e),this.cache.set(e,t),t}}},{key:"put",value:function(e,t){if(this.cache.has(e)&&this.cache.delete(e),this.cache.set(e,t),this.cache.size>this.capacity){var i=this.cache.keys().next().value;this.cache.delete(i)}}},{key:"len",value:function(){return this.cache.size}},{key:"clear",value:function(){this.cache.clear()}}])}(),je={MetricsString:"|\xC9q\xC5",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]},hi=/[a-zA-Z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff!"#$%&'()*+,-./:;]/,_u=/[!%),.:;?\]}¢°·'""†‡›℃∶、。〃〆〕〗〞﹚﹜!"%'),.:;?!]}~]/,Fu=/[$(£¥·'"〈《「『【〔〖〝﹙﹛$(.[{£¥]/,Bu=/[!),.:;?\]}¢·–—'"•"、。〆〞〕〉》」︰︱︲︳﹐﹑﹒﹓﹔﹕﹖﹘﹚﹜!),.:;?︶︸︺︼︾﹀﹂﹗]|}、]/,Gu=/[([{£¥'"‵〈《「『〔〝︴﹙﹛({︵︷︹︻︽︿﹁﹃﹏]/,Vu=/[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、:;,。.]/,Yu=/[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/,Uu=/[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/,zu=/[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/,Xu=new RegExp("".concat(_u.source,"|").concat(Bu.source,"|").concat(Vu.source,"|").concat(Uu.source)),Wu=new RegExp("".concat(Fu.source,"|").concat(Gu.source,"|").concat(Yu.source,"|").concat(zu.source)),Hu=function(){function r(n){var e=this;D(this,r),this.fontMetricsCache={},this.shouldBreakByKinsokuShorui=function(t,i){return e.isBreakingSpace(i)?!1:!!(t&&(Wu.exec(i)||Xu.exec(t)))},this.trimByKinsokuShorui=function(t){var i=J(t),o=i[i.length-2];if(!o)return t;var a=o[o.length-1];return i[i.length-2]=o.slice(0,-1),i[i.length-1]=a+i[i.length-1],i},this.runtime=n,this.charWidthCache=new fi(100)}return _(r,[{key:"measureFont",value:function(e,t){if(this.fontMetricsCache[e])return this.fontMetricsCache[e];var i={ascent:0,descent:0,fontSize:0},o=this.runtime.offscreenCanvasCreator.getOrCreateCanvas(t),a=this.runtime.offscreenCanvasCreator.getOrCreateContext(t,{willReadFrequently:!0});a.font=e;var s=je.MetricsString+je.BaselineSymbol,u=Math.ceil(a.measureText(s).width),l=Math.ceil(a.measureText(je.BaselineSymbol).width),c=je.HeightMultiplier*l;l=l*je.BaselineMultiplier|0,o.width=u,o.height=c,a.fillStyle="#f00",a.fillRect(0,0,u,c),a.font=e,a.textBaseline="alphabetic",a.fillStyle="#000",a.fillText(s,0,l);var f=a.getImageData(0,0,u||1,c||1).data,h=f.length,v=u*4,d=0,m=0,E=!1;for(d=0;d<l;++d){for(var w=0;w<v;w+=4)if(f[m+w]!==255){E=!0;break}if(!E)m+=v;else break}for(i.ascent=l-d,m=h-v,E=!1,d=c;d>l;--d){for(var k=0;k<v;k+=4)if(f[m+k]!==255){E=!0;break}if(!E)m-=v;else break}return i.descent=d-l,i.fontSize=i.ascent+i.descent,this.fontMetricsCache[e]=i,i}},{key:"measureText",value:function(e,t,i){var o=t.fontSize,a=o===void 0?16:o,s=t.wordWrap,u=s===void 0?!1:s,l=t.lineHeight,c=t.lineWidth,f=c===void 0?1:c,h=t.textBaseline,v=h===void 0?"alphabetic":h,d=t.textAlign,m=d===void 0?"start":d,E=t.letterSpacing,w=E===void 0?0:E,k=t.textPath;t.textPathSide,t.textPathStartOffset;var P=t.leading,L=P===void 0?0:P,x=si(t),g=this.measureFont(x,i);g.fontSize===0&&(g.fontSize=a,g.ascent=a);var p=this.runtime.offscreenCanvasCreator.getOrCreateContext(i);p.font=x,t.isOverflowing=!1;var y=u?this.wordWrap(e,t,i):e,N=y.split(/(?:\r\n|\r|\n)/),b=new Array(N.length),M=0;if(k){k.getTotalLength();for(var S=0;S<N.length;S++)p.measureText(N[S]).width+(N[S].length-1)*w}else{for(var B=0;B<N.length;B++){var G=p.measureText(N[B]).width+(N[B].length-1)*w;b[B]=G,M=Math.max(M,G)}var V=M+f,z=l||g.fontSize+f,R=Math.max(z,g.fontSize+f)+(N.length-1)*(z+L);z+=L;var U=0;return v==="middle"?U=-R/2:v==="bottom"||v==="alphabetic"||v==="ideographic"?U=-R:(v==="top"||v==="hanging")&&(U=0),{font:x,width:V,height:R,lines:N,lineWidths:b,lineHeight:z,maxLineWidth:M,fontProperties:g,lineMetrics:b.map(function(Y,fe){var he=0;return m==="center"||m==="middle"?he-=Y/2:(m==="right"||m==="end")&&(he-=Y),new lt(he-f/2,U+fe*z,Y+f,z)})}}}},{key:"wordWrap",value:function(e,t,i){var o=this,a=Array.from(e);if(a.length===0)return"";var s=this,u=t.wordWrapWidth,l=u===void 0?0:u,c=t.letterSpacing,f=c===void 0?0:c,h=t.maxLines,v=h===void 0?1/0:h,d=t.textOverflow,m=this.runtime.offscreenCanvasCreator.getOrCreateContext(i),E=l+f,w="";d==="ellipsis"?w="...":d&&d!=="clip"&&(w=d);var k=[""],P=0,L=0,x=-1,g=si(t),p=this.charWidthCache.get(g);p||(p=new fi(500),this.charWidthCache.put(g,p));var y=function(Y){return o.getFromCache(Y,f,p,m)},N=y(w);function b(U,Y,fe,he){for(;y(U)<he&&Y<a.length-1&&!s.isNewline(a[Y+1]);)Y+=1,U+=a[Y];for(;y(U)>he&&Y>=fe;)Y-=1,U=U.slice(0,-1);return{lineTxt:U,txtLastCharIndex:Y}}function M(U,Y){if(!(N<=0||N>E)){if(!k[U]){k[U]=w;return}var fe=b(k[U],Y,x+1,E-N);k[U]=fe.lineTxt+w}}for(var S=0;S<a.length;S++){var B=a[S],G=a[S-1],V=a[S+1],z=y(B);if(this.isNewline(B)){if(P+1>=v){S<a.length-1&&M(P,S-1),t.isOverflowing=!0;break}x=S-1,P+=1,L=0,k[P]="";continue}if(z>E){M(P,S-1),t.isOverflowing=!0;break}if(L>0&&L+z>E){var R=b(k[P],S-1,x+1,E);if(R.txtLastCharIndex!==S-1){if(k[P]=R.lineTxt,R.txtLastCharIndex===a.length-1)break;S=R.txtLastCharIndex+1,B=a[S],G=a[S-1],V=a[S+1],z=y(B)}if(P+1>=v){M(P,S-1),t.isOverflowing=!0;break}if(x=S-1,P+=1,L=0,k[P]="",this.isBreakingSpace(B))continue;this.canBreakInLastChar(B)||(k=this.trimToBreakable(k),L=this.sumTextWidthByCache(k[P]||"",y)),this.shouldBreakByKinsokuShorui(B,V)&&(k=this.trimByKinsokuShorui(k),L+=y(G||""))}L+=z,k[P]+=B}return k.join(`
6
+ `)}},{key:"isBreakingSpace",value:function(e){return typeof e!="string"?!1:je.BreakingSpaces.indexOf(e.charCodeAt(0))>=0}},{key:"isNewline",value:function(e){return typeof e!="string"?!1:je.Newlines.indexOf(e.charCodeAt(0))>=0}},{key:"trimToBreakable",value:function(e){var t=J(e),i=t[t.length-2],o=this.findBreakableIndex(i);if(o===-1||!i)return t;var a=i.slice(o,o+1),s=this.isBreakingSpace(a),u=o+1,l=o+(s?0:1);return t[t.length-1]+=i.slice(u,i.length),t[t.length-2]=i.slice(0,l),t}},{key:"canBreakInLastChar",value:function(e){return!(e&&hi.test(e))}},{key:"sumTextWidthByCache",value:function(e,t){return e.split("").reduce(function(i,o){return i+t(o)},0)}},{key:"findBreakableIndex",value:function(e){for(var t=e.length-1;t>=0;t--)if(!hi.test(e[t]))return t;return-1}},{key:"getFromCache",value:function(e,t,i,o){var a=i.get(e);if(typeof a!="number"){var s=e.length*t,u=o.measureText(e);a=u.width+s,i.put(e,a)}return a}},{key:"clearCache",value:function(){this.fontMetricsCache={},this.charWidthCache.clear()}}])}(),C={},$u=function(r){var n=new pu,e=new gu;return r={},W(W(W(W(W(W(W(W(W(W(r,F.FRAGMENT,null),F.CIRCLE,new fu),F.ELLIPSE,new hu),F.RECT,n),F.IMAGE,n),F.GROUP,new yu),F.LINE,new vu),F.TEXT,new mu(C)),F.POLYLINE,e),F.POLYGON,e),W(W(W(r,F.PATH,new du),F.HTML,new xu),F.MESH,null)}(),Zu=function(r){var n=new Ts,e=new Fr;return r={},W(W(W(W(W(W(W(W(W(W(r,O.PERCENTAGE,null),O.NUMBER,new Ns),O.ANGLE,new ks),O.DEFINED_PATH,new Es),O.PAINT,n),O.COLOR,n),O.FILTER,new ws),O.LENGTH,e),O.LENGTH_PERCENTAGE,e),O.LENGTH_PERCENTAGE_12,new Ps),W(W(W(W(W(W(W(W(W(W(r,O.LENGTH_PERCENTAGE_14,new Ss),O.COORDINATE,new Fr),O.OFFSET_DISTANCE,new Cs),O.OPACITY_VALUE,new Ms),O.PATH,new As),O.LIST_OF_POINTS,new Rs),O.SHADOW_BLUR,new Os),O.TEXT,new Ls),O.TEXT_TRANSFORM,new Is),O.TRANSFORM,new uu),W(W(W(r,O.TRANSFORM_ORIGIN,new lu),O.Z_INDEX,new cu),O.MARKER,new bs)}(),Ku=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}};C.CameraContribution=Xa;C.AnimationTimeline=null;C.EasingFunction=null;C.offscreenCanvasCreator=new Tu;C.sceneGraphSelector=new Su;C.sceneGraphService=new Du(C);C.textService=new Hu(C);C.geometryUpdaterFactory=$u;C.CSSPropertySyntaxFactory=Zu;C.styleValueRegistry=new ys(C);C.layoutRegistry=null;C.globalThis=Ku();C.enableStyleSyntax=!0;C.enableSizeAttenuation=!1;var Xi=0;function Ef(){Xi=0}var Yr=new Be(de.INSERTED,null,"","","",0,"",""),Ur=new Be(de.REMOVED,null,"","","",0,"",""),Wi=new xe(de.DESTROY),qu=function(r){function n(){var e;D(this,n);for(var t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return e=Z(this,n,[].concat(i)),e.entity=Xi++,e.transformable={dirtyFlag:!1,localDirtyFlag:!1,localPosition:[0,0,0],localRotation:[0,0,0,1],localScale:[1,1,1],localTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],localSkew:[0,0],position:[0,0,0],rotation:[0,0,0,1],scaling:[1,1,1],worldTransform:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],origin:[0,0,0]},e.renderable={bounds:void 0,boundsDirty:!0,renderBounds:void 0,renderBoundsDirty:!0,dirtyRenderBounds:void 0,dirty:!1},e.geometry={contentBounds:void 0,renderBounds:void 0,dirty:!0},e.cullable={strategy:Wa.Standard,visibilityPlaneMask:-1,visible:!0,enable:!0},e.sortable={dirty:!1,sorted:void 0,renderOrder:0,dirtyChildren:[],dirtyReason:void 0},e.rBushNode={aabb:void 0},e.namespaceURI="g",e.scrollLeft=0,e.scrollTop=0,e.clientTop=0,e.clientLeft=0,e.style={},e.computedStyle={},e.parsedStyle={},e.attributes={},e}return K(n,r),_(n,[{key:"dirty",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.renderable.dirty=t,i&&(this.renderable.boundsDirty=t,this.renderable.renderBoundsDirty=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(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t+1]||null}return null}},{key:"previousSibling",get:function(){if(this.parentNode){var t=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[t-1]||null}return null}},{key:"cloneNode",value:function(t){throw new Error(ne)}},{key:"appendChild",value:function(t,i){var o;if(t.destroyed)throw new Error(Oa);return C.sceneGraphService.attach(t,this,i),(o=this.ownerDocument)!==null&&o!==void 0&&o.defaultView&&(!ir(this)&&t.nodeName===F.FRAGMENT?this.ownerDocument.defaultView.mountFragment(t):this.ownerDocument.defaultView.mountChildren(t)),this.isMutationObserved&&(Yr.relatedNode=this,t.dispatchEvent(Yr)),t}},{key:"insertBefore",value:function(t,i){if(!i)this.appendChild(t);else{t.parentElement&&t.parentElement.removeChild(t);var o=this.childNodes.indexOf(i);o===-1?this.appendChild(t):this.appendChild(t,o)}return t}},{key:"replaceChild",value:function(t,i){var o=this.childNodes.indexOf(i);return this.removeChild(i),this.appendChild(t,o),i}},{key:"removeChild",value:function(t){var i,o,a=((i=this.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig().future)===null||i===void 0?void 0:i.experimentalCancelEventPropagation)===!0;return Ur.relatedNode=this,t.dispatchEvent(Ur,a,a),(o=t.ownerDocument)!==null&&o!==void 0&&o.defaultView&&t.ownerDocument.defaultView.unmountChildren(t),C.sceneGraphService.detach(t),t}},{key:"removeChildren",value:function(){for(var t=this.childNodes.length-1;t>=0;t--){var i=this.childNodes[t];this.removeChild(i)}}},{key:"destroyChildren",value:function(){for(var t=this.childNodes.length-1;t>=0;t--){var i=this.childNodes[t];i.childNodes.length>0&&i.destroyChildren(),i.destroy()}}},{key:"matches",value:function(t){return C.sceneGraphService.matches(t,this)}},{key:"getElementById",value:function(t){return C.sceneGraphService.querySelector("#".concat(t),this)}},{key:"getElementsByName",value:function(t){return C.sceneGraphService.querySelectorAll('[name="'.concat(t,'"]'),this)}},{key:"getElementsByClassName",value:function(t){return C.sceneGraphService.querySelectorAll(".".concat(t),this)}},{key:"getElementsByTagName",value:function(t){return C.sceneGraphService.querySelectorAll(t,this)}},{key:"querySelector",value:function(t){return C.sceneGraphService.querySelector(t,this)}},{key:"querySelectorAll",value:function(t){return C.sceneGraphService.querySelectorAll(t,this)}},{key:"closest",value:function(t){var i=this;do{if(C.sceneGraphService.matches(t,i))return i;i=i.parentElement}while(i!==null);return null}},{key:"find",value:function(t){var i=this,o=null;return this.forEach(function(a){return a!==i&&t(a)?(o=a,!1):!0}),o}},{key:"findAll",value:function(t){var i=this,o=[];return this.forEach(function(a){a!==i&&t(a)&&o.push(a)}),o}},{key:"after",value:function(){var t=this;if(this.parentNode){for(var i=this.parentNode.childNodes.indexOf(this),o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];a.forEach(function(u,l){var c;return(c=t.parentNode)===null||c===void 0?void 0:c.appendChild(u,i+l+1)})}}},{key:"before",value:function(){if(this.parentNode){for(var t,i=this.parentNode.childNodes.indexOf(this),o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];var u=a[0],l=a.slice(1);this.parentNode.appendChild(u,i),(t=u).after.apply(t,J(l))}}},{key:"replaceWith",value:function(){this.after.apply(this,arguments),this.remove()}},{key:"append",value:function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.forEach(function(s){return t.appendChild(s)})}},{key:"prepend",value:function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];o.forEach(function(s,u){return t.appendChild(s,u)})}},{key:"replaceChildren",value:function(){for(;this.childNodes.length&&this.firstChild;)this.removeChild(this.firstChild);this.append.apply(this,arguments)}},{key:"remove",value:function(){return this.parentNode?this.parentNode.removeChild(this):this}},{key:"destroy",value:function(){var t,i=((t=this.ownerDocument)===null||t===void 0||(t=t.defaultView)===null||t===void 0||(t=t.getConfig().future)===null||t===void 0?void 0:t.experimentalCancelEventPropagation)===!0;this.destroyChildren(),this.dispatchEvent(Wi,i,i),this.remove(),this.emitter.removeAllListeners(),this.destroyed=!0}},{key:"getGeometryBounds",value:function(){return C.sceneGraphService.getGeometryBounds(this)}},{key:"getRenderBounds",value:function(){return C.sceneGraphService.getBounds(this,!0)}},{key:"getBounds",value:function(){return C.sceneGraphService.getBounds(this)}},{key:"getLocalBounds",value:function(){return C.sceneGraphService.getLocalBounds(this)}},{key:"getBoundingClientRect",value:function(){return C.sceneGraphService.getBoundingClientRect(this)}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"computedStyleMap",value:function(){return new Map(Object.entries(this.computedStyle))}},{key:"getAttributeNames",value:function(){return Object.keys(this.attributes)}},{key:"getAttribute",value:function(t){if(typeof t!="symbol"){var i=this.attributes[t];return i}}},{key:"hasAttribute",value:function(t){return this.getAttributeNames().includes(t)}},{key:"hasAttributes",value:function(){return!!this.getAttributeNames().length}},{key:"removeAttribute",value:function(t){this.setAttribute(t,null),delete this.attributes[t]}},{key:"setAttribute",value:function(t,i,o,a){this.attributes[t]=i}},{key:"getAttributeNS",value:function(t,i){throw new Error(ne)}},{key:"getAttributeNode",value:function(t){throw new Error(ne)}},{key:"getAttributeNodeNS",value:function(t,i){throw new Error(ne)}},{key:"hasAttributeNS",value:function(t,i){throw new Error(ne)}},{key:"removeAttributeNS",value:function(t,i){throw new Error(ne)}},{key:"removeAttributeNode",value:function(t){throw new Error(ne)}},{key:"setAttributeNS",value:function(t,i,o){throw new Error(ne)}},{key:"setAttributeNode",value:function(t){throw new Error(ne)}},{key:"setAttributeNodeNS",value:function(t){throw new Error(ne)}},{key:"toggleAttribute",value:function(t,i){throw new Error(ne)}}])}(ae);function ee(r){return!!(r!=null&&r.nodeName)}var ju=C.globalThis.Proxy?C.globalThis.Proxy:function(){},De=new Be(de.ATTR_MODIFIED,null,null,null,null,Be.MODIFICATION,null,null),xt=T.create(),Ju=H.create(),oe=function(r){function n(e){var t;return D(this,n),t=Z(this,n),t.isCustomElement=!1,t.isMutationObserved=!1,t.activeAnimations=[],t.config=e,t.id=e.id||"",t.name=e.name||"",(e.className||e.class)&&(t.className=e.className||e.class),t.nodeName=e.type||F.GROUP,e.initialParsedStyle&&Object.assign(t.parsedStyle,e.initialParsedStyle),t.initAttributes(e.style),C.enableStyleSyntax&&(t.style=new ju({setProperty:function(o,a){t.setAttribute(o,a)},getPropertyValue:function(o){return t.getAttribute(o)},removeProperty:function(o){t.removeAttribute(o)},item:function(){return""}},{get:function(o,a){return o[a]!==void 0?o[a]:t.getAttribute(a)},set:function(o,a,s){return t.setAttribute(a,s),!0}})),t}return K(n,r),_(n,[{key:"destroy",value:function(){hr(n,"destroy",this,3)([]),this.getAnimations().forEach(function(t){t.cancel()})}},{key:"cloneNode",value:function(t,i){var o=$({},this.attributes);for(var a in o){var s=o[a];ee(s)&&a!=="clipPath"&&a!=="offsetPath"&&a!=="textPath"&&(o[a]=s.cloneNode(t)),i&&(o[a]=i(a,s))}var u=new this.constructor($($({},this.config),{},{style:o}));return u.setLocalTransform(this.getLocalTransform()),t&&this.children.forEach(function(l){if(!l.style.isMarker){var c=l.cloneNode(t);u.appendChild(c)}}),u}},{key:"initAttributes",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i={forceUpdateGeometry:!0};C.styleValueRegistry.processProperties(this,t,i),this.dirty()}},{key:"setAttribute",value:function(t,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;re(i)||(o||i!==this.attributes[t])&&(this.internalSetAttribute(t,i,{memoize:a}),hr(n,"setAttribute",this,3)([t,i]))}},{key:"internalSetAttribute",value:function(t,i){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=this.attributes[t],s=this.parsedStyle[t];C.styleValueRegistry.processProperties(this,W({},t,i),o),this.dirty();var u=this.parsedStyle[t];if(this.isConnected)if(De.relatedNode=this,De.prevValue=a,De.newValue=i,De.attrName=t,De.prevParsedValue=s,De.newParsedValue=u,this.isMutationObserved)this.dispatchEvent(De);else{var l,c=((l=this.ownerDocument.defaultView.getConfig().future)===null||l===void 0?void 0:l.experimentalCancelEventPropagation)===!0;De.target=this,this.ownerDocument.defaultView.dispatchEvent(De,!0,c)}if(this.isCustomElement&&this.isConnected||!this.isCustomElement){var f,h;(f=(h=this).attributeChangedCallback)===null||f===void 0||f.call(h,t,a,i,s,u)}}},{key:"getBBox",value:function(){var t=this.getBounds(),i=t.getMin(),o=j(i,2),a=o[0],s=o[1],u=t.getMax(),l=j(u,2),c=l[0],f=l[1];return new lt(a,s,c-a,f-s)}},{key:"setOrigin",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return C.sceneGraphService.setOrigin(this,Te(t,i,o,!1)),this}},{key:"getOrigin",value:function(){return C.sceneGraphService.getOrigin(this)}},{key:"setPosition",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return C.sceneGraphService.setPosition(this,Te(t,i,o,!1)),this}},{key:"setLocalPosition",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return C.sceneGraphService.setLocalPosition(this,Te(t,i,o,!1)),this}},{key:"translate",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return C.sceneGraphService.translate(this,Te(t,i,o,!1)),this}},{key:"translateLocal",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return C.sceneGraphService.translateLocal(this,Te(t,i,o,!1)),this}},{key:"getPosition",value:function(){return C.sceneGraphService.getPosition(this)}},{key:"getLocalPosition",value:function(){return C.sceneGraphService.getLocalPosition(this)}},{key:"scale",value:function(t,i,o){return this.scaleLocal(t,i,o)}},{key:"scaleLocal",value:function(t,i,o){return typeof t=="number"&&(i=i||t,o=o||t,t=Te(t,i,o,!1)),C.sceneGraphService.scaleLocal(this,t),this}},{key:"setLocalScale",value:function(t,i,o){return typeof t=="number"&&(i=i||t,o=o||t,t=Te(t,i,o,!1)),C.sceneGraphService.setLocalScale(this,t),this}},{key:"getLocalScale",value:function(){return C.sceneGraphService.getLocalScale(this)}},{key:"getScale",value:function(){return C.sceneGraphService.getScale(this)}},{key:"getEulerAngles",value:function(){var t=yr(xt,C.sceneGraphService.getWorldTransform(this)),i=j(t,3),o=i[2];return be(o)}},{key:"getLocalEulerAngles",value:function(){var t=yr(xt,C.sceneGraphService.getLocalRotation(this)),i=j(t,3),o=i[2];return be(o)}},{key:"setEulerAngles",value:function(t){return C.sceneGraphService.setEulerAngles(this,0,0,t),this}},{key:"setLocalEulerAngles",value:function(t){return C.sceneGraphService.setLocalEulerAngles(this,0,0,t),this}},{key:"rotateLocal",value:function(t,i,o){return ge(i)&&ge(o)?C.sceneGraphService.rotateLocal(this,0,0,t):C.sceneGraphService.rotateLocal(this,t,i,o),this}},{key:"rotate",value:function(t,i,o){return ge(i)&&ge(o)?C.sceneGraphService.rotate(this,0,0,t):C.sceneGraphService.rotate(this,t,i,o),this}},{key:"setRotation",value:function(t,i,o,a){return C.sceneGraphService.setRotation(this,t,i,o,a),this}},{key:"setLocalRotation",value:function(t,i,o,a){return C.sceneGraphService.setLocalRotation(this,t,i,o,a),this}},{key:"setLocalSkew",value:function(t,i){return C.sceneGraphService.setLocalSkew(this,t,i),this}},{key:"getRotation",value:function(){return C.sceneGraphService.getRotation(this)}},{key:"getLocalRotation",value:function(){return C.sceneGraphService.getLocalRotation(this)}},{key:"getLocalSkew",value:function(){return C.sceneGraphService.getLocalSkew(this)}},{key:"getLocalTransform",value:function(){return C.sceneGraphService.getLocalTransform(this)}},{key:"getWorldTransform",value:function(){return C.sceneGraphService.getWorldTransform(this)}},{key:"setLocalTransform",value:function(t){return C.sceneGraphService.setLocalTransform(this,t),this}},{key:"resetLocalTransform",value:function(){C.sceneGraphService.resetLocalTransform(this)}},{key:"getAnimations",value:function(){return this.activeAnimations}},{key:"animate",value:function(t,i){var o,a=(o=this.ownerDocument)===null||o===void 0?void 0:o.timeline;return a?a.play(this,t,i):null}},{key:"isVisible",value:function(){var t;return((t=this.parsedStyle)===null||t===void 0?void 0:t.visibility)!=="hidden"}},{key:"interactive",get:function(){return this.isInteractive()},set:function(t){this.style.pointerEvents=t?"auto":"none"}},{key:"isInteractive",value:function(){var t;return((t=this.parsedStyle)===null||t===void 0?void 0:t.pointerEvents)!=="none"}},{key:"isCulled",value:function(){return!!(this.cullable&&this.cullable.enable&&!this.cullable.visible)}},{key:"toFront",value:function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,J(this.parentNode.children.map(function(t){return Number(t.style.zIndex)})))+1),this}},{key:"toBack",value:function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,J(this.parentNode.children.map(function(t){return Number(t.style.zIndex)})))-1),this}},{key:"getConfig",value:function(){return this.config}},{key:"attr",value:function(){for(var t=this,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];var s=o[0],u=o[1];return s?ka(s)?(Object.keys(s).forEach(function(l){t.setAttribute(l,s[l])}),this):o.length===2?(this.setAttribute(s,u),this):this.attributes[s]:this.attributes}},{key:"getMatrix",value:function(t){var i=t||this.getWorldTransform(),o=A.getTranslation(xt,i),a=j(o,2),s=a[0],u=a[1],l=A.getScaling(xt,i),c=j(l,2),f=c[0],h=c[1],v=A.getRotation(Ju,i),d=yr(xt,v),m=j(d,3),E=m[0],w=m[2];return Ga(E||w,s,u,f,h)}},{key:"getLocalMatrix",value:function(){return this.getMatrix(this.getLocalTransform())}},{key:"setMatrix",value:function(t){var i=On(t),o=j(i,5),a=o[0],s=o[1],u=o[2],l=o[3],c=o[4];this.setEulerAngles(c).setPosition(a,s).setLocalScale(u,l)}},{key:"setLocalMatrix",value:function(t){var i=On(t),o=j(i,5),a=o[0],s=o[1],u=o[2],l=o[3],c=o[4];this.setLocalEulerAngles(c).setLocalPosition(a,s).setLocalScale(u,l)}},{key:"show",value:function(){this.forEach(function(t){t.style.visibility="visible"})}},{key:"hide",value:function(){this.forEach(function(t){t.style.visibility="hidden"})}},{key:"getCount",value:function(){return this.childElementCount}},{key:"getParent",value:function(){return this.parentElement}},{key:"getChildren",value:function(){return this.children}},{key:"getFirst",value:function(){return this.firstElementChild}},{key:"getLast",value:function(){return this.lastElementChild}},{key:"getChildByIndex",value:function(t){return this.children[t]||null}},{key:"add",value:function(t,i){return this.appendChild(t,i)}},{key:"set",value:function(t,i){this.config[t]=i}},{key:"get",value:function(t){return this.config[t]}},{key:"moveTo",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.setPosition(t,i,o),this}},{key:"move",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.setPosition(t,i,o),this}},{key:"setZIndex",value:function(t){return this.style.zIndex=t,this}}])}(qu);oe.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","display","draggable","droppable","fill","fillOpacity","fillRule","filter","increasedLineWidthForHitTesting","lineCap","lineDash","lineDashOffset","lineJoin","lineWidth","miterLimit","hitArea","offsetDistance","offsetPath","offsetX","offsetY","opacity","pointerEvents","shadowColor","shadowType","shadowBlur","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","strokeWidth","strokeLinecap","strokeLineJoin","strokeDasharray","strokeDashoffset","transform","transformOrigin","textTransform","visibility","zIndex"]);var Hi=function(r){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return D(this,n),Z(this,n,[$({type:F.CIRCLE},e)])}return K(n,r),_(n)}(oe);Hi.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["cx","cy","cz","r","isBillboard","isSizeAttenuation"]));var Qu=["style"],el=function(r){function n(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.style,o=Ue(t,Qu);return D(this,n),e=Z(this,n,[$({style:i},o)]),e.isCustomElement=!0,e}return K(n,r),_(n)}(oe);el.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var $i=function(r){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return D(this,n),Z(this,n,[$({type:F.ELLIPSE},e)])}return K(n,r),_(n)}(oe);$i.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["cx","cy","cz","rx","ry","isBillboard","isSizeAttenuation"]));var tl=function(r){function n(){return D(this,n),Z(this,n,[{type:F.FRAGMENT}])}return K(n,r),_(n)}(oe);tl.PARSED_STYLE_LIST=new Set(["class","className"]);var ar=function(r){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return D(this,n),Z(this,n,[$({type:F.GROUP},e)])}return K(n,r),_(n)}(oe);ar.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var rl=["style"],Zi=function(r){function n(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.style,o=Ue(t,rl);return D(this,n),e=Z(this,n,[$({type:F.HTML,style:i},o)]),e.cullable.enable=!1,e}return K(n,r),_(n,[{key:"getDomElement",value:function(){return this.parsedStyle.$el}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"getLocalBounds",value:function(){if(this.parentNode){var t=A.invert(A.create(),this.parentNode.getWorldTransform()),i=this.getBounds();if(!ye.isEmpty(i)){var o=new ye;return o.setFromTransformedAABB(i,t),o}}return this.getBounds()}}])}(oe);Zi.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["x","y","$el","innerHTML","width","height"]));var Ki=function(r){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return D(this,n),Z(this,n,[$({type:F.IMAGE},e)])}return K(n,r),_(n)}(oe);Ki.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["x","y","z","src","width","height","isBillboard","billboardRotation","isSizeAttenuation","keepAspectRatio"]));var nl=["style"],qi=function(r){function n(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.style,o=Ue(t,nl);D(this,n),e=Z(this,n,[$({type:F.LINE,style:$({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0},i)},o)]),e.markerStartAngle=0,e.markerEndAngle=0;var a=e.parsedStyle,s=a.markerStart,u=a.markerEnd;return s&&ee(s)&&(e.markerStartAngle=s.getLocalEulerAngles(),e.appendChild(s)),u&&ee(u)&&(e.markerEndAngle=u.getLocalEulerAngles(),e.appendChild(u)),e.transformMarker(!0),e.transformMarker(!1),e}return K(n,r),_(n,[{key:"attributeChangedCallback",value:function(t,i,o,a,s){t==="x1"||t==="y1"||t==="x2"||t==="y2"||t==="markerStartOffset"||t==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):t==="markerStart"?(a&&ee(a)&&(this.markerStartAngle=0,a.remove()),s&&ee(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):t==="markerEnd"&&(a&&ee(a)&&(this.markerEndAngle=0,a.remove()),s&&ee(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1)))}},{key:"transformMarker",value:function(t){var i=this.parsedStyle,o=i.markerStart,a=i.markerEnd,s=i.markerStartOffset,u=i.markerEndOffset,l=i.x1,c=i.x2,f=i.y1,h=i.y2,v=t?o:a;if(!(!v||!ee(v))){var d=0,m,E,w,k,P,L;t?(w=l,k=f,m=c-l,E=h-f,P=s||0,L=this.markerStartAngle):(w=c,k=h,m=l-c,E=f-h,P=u||0,L=this.markerEndAngle),d=Math.atan2(E,m),v.setLocalEulerAngles(d*180/Math.PI+L),v.setLocalPosition(w+Math.cos(d)*P,k+Math.sin(d)*P)}}},{key:"getPoint",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.parsedStyle,a=o.x1,s=o.y1,u=o.x2,l=o.y2,c=mi(a,s,u,l,t),f=c.x,h=c.y,v=T.transformMat4(T.create(),T.fromValues(f,h,0),i?this.getWorldTransform():this.getLocalTransform());return new pe(v[0],v[1])}},{key:"getPointAtLength",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPoint(t/this.getTotalLength(),i)}},{key:"getTotalLength",value:function(){var t=this.parsedStyle,i=t.x1,o=t.y1,a=t.x2,s=t.y2;return yi(i,o,a,s)}}])}(oe);qi.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["x1","y1","x2","y2","z1","z2","isBillboard","isSizeAttenuation","markerStart","markerEnd","markerStartOffset","markerEndOffset"]));var il=["style"],ji=function(r){function n(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.style,o=Ue(t,il);D(this,n),e=Z(this,n,[$({type:F.PATH,style:i,initialParsedStyle:{miterLimit:4,d:$({},Ei)}},o)]),e.markerStartAngle=0,e.markerEndAngle=0,e.markerMidList=[];var a=e.parsedStyle,s=a.markerStart,u=a.markerEnd,l=a.markerMid;return s&&ee(s)&&(e.markerStartAngle=s.getLocalEulerAngles(),e.appendChild(s)),l&&ee(l)&&e.placeMarkerMid(l),u&&ee(u)&&(e.markerEndAngle=u.getLocalEulerAngles(),e.appendChild(u)),e.transformMarker(!0),e.transformMarker(!1),e}return K(n,r),_(n,[{key:"attributeChangedCallback",value:function(t,i,o,a,s){t==="d"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):t==="markerStartOffset"||t==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):t==="markerStart"?(a&&ee(a)&&(this.markerStartAngle=0,a.remove()),s&&ee(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):t==="markerEnd"?(a&&ee(a)&&(this.markerEndAngle=0,a.remove()),s&&ee(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1))):t==="markerMid"&&this.placeMarkerMid(s)}},{key:"transformMarker",value:function(t){var i=this.parsedStyle,o=i.markerStart,a=i.markerEnd,s=i.markerStartOffset,u=i.markerEndOffset,l=t?o:a;if(!(!l||!ee(l))){var c=0,f,h,v,d,m,E;if(t){var w=this.getStartTangent(),k=j(w,2),P=k[0],L=k[1];v=L[0],d=L[1],f=P[0]-L[0],h=P[1]-L[1],m=s||0,E=this.markerStartAngle}else{var x=this.getEndTangent(),g=j(x,2),p=g[0],y=g[1];v=y[0],d=y[1],f=p[0]-y[0],h=p[1]-y[1],m=u||0,E=this.markerEndAngle}c=Math.atan2(h,f),l.setLocalEulerAngles(c*180/Math.PI+E),l.setLocalPosition(v+Math.cos(c)*m,d+Math.sin(c)*m)}}},{key:"placeMarkerMid",value:function(t){var i=this.parsedStyle.d.segments;if(this.markerMidList.forEach(function(c){c.remove()}),t&&ee(t))for(var o=1;o<i.length-1;o++){var a=j(i[o].currentPoint,2),s=a[0],u=a[1],l=o===1?t:t.cloneNode(!0);this.markerMidList.push(l),this.appendChild(l),l.setLocalPosition(s,u)}}},{key:"getTotalLength",value:function(){return Zn(this)}},{key:"getPointAtLength",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.parsedStyle.d.absolutePath,a=Ea(o,t),s=a.x,u=a.y,l=T.transformMat4(T.create(),T.fromValues(s,u,0),i?this.getWorldTransform():this.getLocalTransform());return new pe(l[0],l[1])}},{key:"getPoint",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPointAtLength(t*Zn(this),i)}},{key:"getStartTangent",value:function(){var t=this.parsedStyle.d.segments,i=[];if(t.length>1){var o=t[0].currentPoint,a=t[1].currentPoint,s=t[1].startTangent;i=[],s?(i.push([o[0]-s[0],o[1]-s[1]]),i.push([o[0],o[1]])):(i.push([a[0],a[1]]),i.push([o[0],o[1]]))}return i}},{key:"getEndTangent",value:function(){var t=this.parsedStyle.d.segments,i=t.length,o=[];if(i>1){var a=t[i-2].currentPoint,s=t[i-1].currentPoint,u=t[i-1].endTangent;o=[],u?(o.push([s[0]-u[0],s[1]-u[1]]),o.push([s[0],s[1]])):(o.push([a[0],a[1]]),o.push([s[0],s[1]]))}return o}}])}(oe);ji.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["d","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard","isSizeAttenuation"]));var al=["style"],ur=function(r){function n(){var e,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=t.style,o=Ue(t,al);D(this,n),e=Z(this,n,[$({type:F.POLYGON,style:i,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},o)]),e.markerStartAngle=0,e.markerEndAngle=0,e.markerMidList=[];var a=e.parsedStyle,s=a.markerStart,u=a.markerEnd,l=a.markerMid;return s&&ee(s)&&(e.markerStartAngle=s.getLocalEulerAngles(),e.appendChild(s)),l&&ee(l)&&e.placeMarkerMid(l),u&&ee(u)&&(e.markerEndAngle=u.getLocalEulerAngles(),e.appendChild(u)),e.transformMarker(!0),e.transformMarker(!1),e}return K(n,r),_(n,[{key:"attributeChangedCallback",value:function(t,i,o,a,s){t==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):t==="markerStartOffset"||t==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):t==="markerStart"?(a&&ee(a)&&(this.markerStartAngle=0,a.remove()),s&&ee(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):t==="markerEnd"?(a&&ee(a)&&(this.markerEndAngle=0,a.remove()),s&&ee(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1))):t==="markerMid"&&this.placeMarkerMid(s)}},{key:"transformMarker",value:function(t){var i=this.parsedStyle,o=i.markerStart,a=i.markerEnd,s=i.markerStartOffset,u=i.markerEndOffset,l=i.points,c=l||{},f=c.points,h=t?o:a;if(!(!h||!ee(h)||!f)){var v=0,d,m,E,w,k,P;if(E=f[0][0],w=f[0][1],t)d=f[1][0]-f[0][0],m=f[1][1]-f[0][1],k=s||0,P=this.markerStartAngle;else{var L=f.length;this.parsedStyle.isClosed?(d=f[L-1][0]-f[0][0],m=f[L-1][1]-f[0][1]):(E=f[L-1][0],w=f[L-1][1],d=f[L-2][0]-f[L-1][0],m=f[L-2][1]-f[L-1][1]),k=u||0,P=this.markerEndAngle}v=Math.atan2(m,d),h.setLocalEulerAngles(v*180/Math.PI+P),h.setLocalPosition(E+Math.cos(v)*k,w+Math.sin(v)*k)}}},{key:"placeMarkerMid",value:function(t){var i=this.parsedStyle.points,o=i||{},a=o.points;if(this.markerMidList.forEach(function(f){f.remove()}),this.markerMidList=[],t&&ee(t)&&a)for(var s=1;s<(this.parsedStyle.isClosed?a.length:a.length-1);s++){var u=a[s][0],l=a[s][1],c=s===1?t:t.cloneNode(!0);this.markerMidList.push(c),this.appendChild(c),c.setLocalPosition(u,l)}}}])}(oe);ur.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isClosed","isBillboard","isSizeAttenuation"]));var ol=["style"],Ji=function(r){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.style,i=Ue(e,ol);return D(this,n),Z(this,n,[$({type:F.POLYLINE,style:t,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i)])}return K(n,r),_(n,[{key:"getTotalLength",value:function(){return zo(this)}},{key:"getPointAtLength",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPoint(t/this.getTotalLength(),i)}},{key:"getPoint",value:function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=this.parsedStyle.points.points;if(this.parsedStyle.points.segments.length===0){var a=[],s=0,u,l,c=this.getTotalLength();o.forEach(function(w,k){o[k+1]&&(u=[0,0],u[0]=s/c,l=yi(w[0],w[1],o[k+1][0],o[k+1][1]),s+=l,u[1]=s/c,a.push(u))}),this.parsedStyle.points.segments=a}var f=0,h=0;this.parsedStyle.points.segments.forEach(function(w,k){t>=w[0]&&t<=w[1]&&(f=(t-w[0])/(w[1]-w[0]),h=k)});var v=mi(o[h][0],o[h][1],o[h+1][0],o[h+1][1],f),d=v.x,m=v.y,E=T.transformMat4(T.create(),T.fromValues(d,m,0),i?this.getWorldTransform():this.getLocalTransform());return new pe(E[0],E[1])}},{key:"getStartTangent",value:function(){var t=this.parsedStyle.points.points,i=[];return i.push([t[1][0],t[1][1]]),i.push([t[0][0],t[0][1]]),i}},{key:"getEndTangent",value:function(){var t=this.parsedStyle.points.points,i=t.length-1,o=[];return o.push([t[i-1][0],t[i-1][1]]),o.push([t[i][0],t[i][1]]),o}}])}(ur);Ji.PARSED_STYLE_LIST=new Set([].concat(J(ur.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard"]));var Qi=function(r){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return D(this,n),Z(this,n,[$({type:F.RECT},e)])}return K(n,r),_(n)}(oe);Qi.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["x","y","z","width","height","isBillboard","isSizeAttenuation","radius"]));var sl=["style"],jr=function(r){function n(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.style,i=Ue(e,sl);return D(this,n),Z(this,n,[$({type:F.TEXT,style:$({fill:"black"},t)},i)])}return K(n,r),_(n,[{key:"getComputedTextLength",value:function(){var t;return this.getGeometryBounds(),((t=this.parsedStyle.metrics)===null||t===void 0?void 0:t.maxLineWidth)||0}},{key:"getLineBoundingRects",value:function(){var t;return this.getGeometryBounds(),((t=this.parsedStyle.metrics)===null||t===void 0?void 0:t.lineMetrics)||[]}},{key:"isOverflowing",value:function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing}}])}(oe);jr.PARSED_STYLE_LIST=new Set([].concat(J(oe.PARSED_STYLE_LIST),["x","y","z","isBillboard","billboardRotation","isSizeAttenuation","text","textAlign","textBaseline","fontStyle","fontSize","fontFamily","fontWeight","fontVariant","lineHeight","letterSpacing","leading","wordWrap","wordWrapWidth","maxLines","textOverflow","isOverflowing","textPath","textDecorationLine","textDecorationColor","textDecorationStyle","textPathSide","textPathStartOffset","metrics","dx","dy"]));var ul=function(){function r(){D(this,r),this.registry={},this.define(F.CIRCLE,Hi),this.define(F.ELLIPSE,$i),this.define(F.RECT,Qi),this.define(F.IMAGE,Ki),this.define(F.LINE,qi),this.define(F.GROUP,ar),this.define(F.PATH,ji),this.define(F.POLYGON,ur),this.define(F.POLYLINE,Ji),this.define(F.TEXT,jr),this.define(F.HTML,Zi)}return _(r,[{key:"define",value:function(e,t){this.registry[e]=t}},{key:"get",value:function(e){return this.registry[e]}}])}(),Tf={number:function(n){return new q(n)},percent:function(n){return new q(n,"%")},px:function(n){return new q(n,"px")},em:function(n){return new q(n,"em")},rem:function(n){return new q(n,"rem")},deg:function(n){return new q(n,"deg")},grad:function(n){return new q(n,"grad")},rad:function(n){return new q(n,"rad")},turn:function(n){return new q(n,"turn")},s:function(n){return new q(n,"s")},ms:function(n){return new q(n,"ms")},registerProperty:function(n){var e=n.name,t=n.inherits,i=n.interpolable,o=n.initialValue,a=n.syntax;C.styleValueRegistry.registerMetadata({n:e,inh:t,int:i,d:o,syntax:a})},registerLayout:function(n,e){C.layoutRegistry.registerLayout(n,e)}},ll=function(r){function n(){var e;D(this,n),e=Z(this,n),e.defaultView=null,e.ownerDocument=null,e.nodeName="document";try{e.timeline=new C.AnimationTimeline(e)}catch{}var t={};return $r.forEach(function(i){var o=i.n,a=i.inh,s=i.d;a&&s&&(t[o]=kt(s)?s(F.GROUP):s)}),e.documentElement=new ar({id:"g-root",style:t}),e.documentElement.ownerDocument=e,e.documentElement.parentNode=e,e.childNodes=[e.documentElement],e}return K(n,r),_(n,[{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:"createElement",value:function(t,i){if(t==="svg")return this.documentElement;var o=this.defaultView.customElements.get(t);o||(console.warn("Unsupported tagName: ",t),o=t==="tspan"?jr:ar);var a=new o(i);return a.ownerDocument=this,a}},{key:"createElementNS",value:function(t,i,o){return this.createElement(i,o)}},{key:"cloneNode",value:function(t){throw new Error(ne)}},{key:"destroy",value:function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch{}}},{key:"elementsFromBBox",value:function(t,i,o,a){var s=this.defaultView.context.rBushRoot,u=s.search({minX:t,minY:i,maxX:o,maxY:a}),l=[];return u.forEach(function(c){var f=c.displayObject,h=f.parsedStyle.pointerEvents,v=h===void 0?"auto":h,d=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(v);(!d||d&&f.isVisible())&&!f.isCulled()&&f.isInteractive()&&l.push(f)}),l.sort(function(c,f){return f.sortable.renderOrder-c.sortable.renderOrder}),l}},{key:"elementFromPointSync",value:function(t,i){var o=this.defaultView.canvas2Viewport({x:t,y:i}),a=o.x,s=o.y,u=this.defaultView.getConfig(),l=u.width,c=u.height;if(a<0||s<0||a>l||s>c)return null;var f=this.defaultView.viewport2Client({x:a,y:s}),h=f.x,v=f.y,d=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:t,y:i,viewportX:a,viewportY:s,clientX:h,clientY:v},picked:[]}),m=d.picked;return m&&m[0]||this.documentElement}},{key:"elementFromPoint",value:function(){var e=Ft(Ve().mark(function i(o,a){var s,u,l,c,f,h,v,d,m,E,w;return Ve().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(s=this.defaultView.canvas2Viewport({x:o,y:a}),u=s.x,l=s.y,c=this.defaultView.getConfig(),f=c.width,h=c.height,!(u<0||l<0||u>f||l>h)){k.next=1;break}return k.abrupt("return",null);case 1:return v=this.defaultView.viewport2Client({x:u,y:l}),d=v.x,m=v.y,k.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:o,y:a,viewportX:u,viewportY:l,clientX:d,clientY:m},picked:[]});case 2:return E=k.sent,w=E.picked,k.abrupt("return",w&&w[0]||this.documentElement);case 3:case"end":return k.stop()}},i,this)}));function t(i,o){return e.apply(this,arguments)}return t}()},{key:"elementsFromPointSync",value:function(t,i){var o=this.defaultView.canvas2Viewport({x:t,y:i}),a=o.x,s=o.y,u=this.defaultView.getConfig(),l=u.width,c=u.height;if(a<0||s<0||a>l||s>c)return[];var f=this.defaultView.viewport2Client({x:a,y:s}),h=f.x,v=f.y,d=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:t,y:i,viewportX:a,viewportY:s,clientX:h,clientY:v},picked:[]}),m=d.picked;return m[m.length-1]!==this.documentElement&&m.push(this.documentElement),m}},{key:"elementsFromPoint",value:function(){var e=Ft(Ve().mark(function i(o,a){var s,u,l,c,f,h,v,d,m,E,w;return Ve().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:if(s=this.defaultView.canvas2Viewport({x:o,y:a}),u=s.x,l=s.y,c=this.defaultView.getConfig(),f=c.width,h=c.height,!(u<0||l<0||u>f||l>h)){k.next=1;break}return k.abrupt("return",[]);case 1:return v=this.defaultView.viewport2Client({x:u,y:l}),d=v.x,m=v.y,k.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:o,y:a,viewportX:u,viewportY:l,clientX:d,clientY:m},picked:[]});case 2:return E=k.sent,w=E.picked,w[w.length-1]!==this.documentElement&&w.push(this.documentElement),k.abrupt("return",w);case 3:case"end":return k.stop()}},i,this)}));function t(i,o){return e.apply(this,arguments)}return t}()},{key:"appendChild",value:function(t,i){throw new Error(ot)}},{key:"insertBefore",value:function(t,i){throw new Error(ot)}},{key:"removeChild",value:function(t,i){throw new Error(ot)}},{key:"replaceChild",value:function(t,i,o){throw new Error(ot)}},{key:"append",value:function(){throw new Error(ot)}},{key:"prepend",value:function(){throw new Error(ot)}},{key:"getElementById",value:function(t){return this.documentElement.getElementById(t)}},{key:"getElementsByName",value:function(t){return this.documentElement.getElementsByName(t)}},{key:"getElementsByTagName",value:function(t){return this.documentElement.getElementsByTagName(t)}},{key:"getElementsByClassName",value:function(t){return this.documentElement.getElementsByClassName(t)}},{key:"querySelector",value:function(t){return this.documentElement.querySelector(t)}},{key:"querySelectorAll",value:function(t){return this.documentElement.querySelectorAll(t)}},{key:"find",value:function(t){return this.documentElement.find(t)}},{key:"findAll",value:function(t){return this.documentElement.findAll(t)}}])}(ae),ea=function(){function r(n){D(this,r),this.strategies=n}return _(r,[{key:"apply",value:function(e){var t=e.config,i=e.camera,o=e.renderingService,a=e.renderingContext,s=this.strategies;o.hooks.cull.tap(r.tag,function(u){if(u){var l,c=u.cullable;if(s.length===0?c.visible=a.unculledEntities.indexOf(u.entity)>-1:c.visible=s.every(function(h){return h.isVisible(i,u)}),!u.isCulled()&&u.isVisible())return u;var f=((l=t.future)===null||l===void 0?void 0:l.experimentalCancelEventPropagation)===!0;return u.dispatchEvent(new xe(de.CULLED),f,f),null}return u}),o.hooks.afterRender.tap(r.tag,function(u){u.cullable.visibilityPlaneMask=-1})}}])}();ea.tag="Culling";var ta=function(){function r(){var n=this;D(this,r),this.autoPreventDefault=!1,this.rootPointerEvent=new Gr(null),this.rootWheelEvent=new Vr(null),this.onPointerMove=function(e){var t,i=(t=n.context.renderingContext.root)===null||t===void 0||(t=t.ownerDocument)===null||t===void 0?void 0:t.defaultView;if(!(i.supportsTouchEvents&&e.pointerType==="touch")){var o=n.normalizeToPointerEvent(e,i),a=He(o),s;try{for(a.s();!(s=a.n()).done;){var u=s.value,l=n.bootstrapEvent(n.rootPointerEvent,u,i,e);n.context.eventService.mapEvent(l)}}catch(c){a.e(c)}finally{a.f()}n.setCursor(n.context.eventService.cursor)}},this.onClick=function(e){var t,i=(t=n.context.renderingContext.root)===null||t===void 0||(t=t.ownerDocument)===null||t===void 0?void 0:t.defaultView,o=n.normalizeToPointerEvent(e,i),a=He(o),s;try{for(a.s();!(s=a.n()).done;){var u=s.value,l=n.bootstrapEvent(n.rootPointerEvent,u,i,e);n.context.eventService.mapEvent(l)}}catch(c){a.e(c)}finally{a.f()}n.setCursor(n.context.eventService.cursor)}}return _(r,[{key:"apply",value:function(e){var t=this;this.context=e;var i=e.renderingService,o=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(a){var s=t.context.renderingService.hooks.pickSync.call({position:a,picked:[],topmost:!0}),u=s.picked;return u[0]||null}),i.hooks.pointerWheel.tap(r.tag,function(a){var s=t.normalizeWheelEvent(a);t.context.eventService.mapEvent(s)}),i.hooks.pointerDown.tap(r.tag,function(a){if(!(o.supportsTouchEvents&&a.pointerType==="touch")){var s=t.normalizeToPointerEvent(a,o);if(t.autoPreventDefault&&s[0].isNormalized){var u=a.cancelable||!("cancelable"in a);u&&a.preventDefault()}var l=He(s),c;try{for(l.s();!(c=l.n()).done;){var f=c.value,h=t.bootstrapEvent(t.rootPointerEvent,f,o,a);t.context.eventService.mapEvent(h)}}catch(v){l.e(v)}finally{l.f()}t.setCursor(t.context.eventService.cursor)}}),i.hooks.pointerUp.tap(r.tag,function(a){if(!(o.supportsTouchEvents&&a.pointerType==="touch")){var s=t.context.contextService.getDomElement(),u=t.context.eventService.isNativeEventFromCanvas(s,a),l=u?"":"outside",c=t.normalizeToPointerEvent(a,o),f=He(c),h;try{for(f.s();!(h=f.n()).done;){var v=h.value,d=t.bootstrapEvent(t.rootPointerEvent,v,o,a);d.type+=l,t.context.eventService.mapEvent(d)}}catch(m){f.e(m)}finally{f.f()}t.setCursor(t.context.eventService.cursor)}}),i.hooks.pointerMove.tap(r.tag,this.onPointerMove),i.hooks.pointerOver.tap(r.tag,this.onPointerMove),i.hooks.pointerOut.tap(r.tag,this.onPointerMove),i.hooks.click.tap(r.tag,this.onClick),i.hooks.pointerCancel.tap(r.tag,function(a){var s=t.normalizeToPointerEvent(a,o),u=He(s),l;try{for(u.s();!(l=u.n()).done;){var c=l.value,f=t.bootstrapEvent(t.rootPointerEvent,c,o,a);t.context.eventService.mapEvent(f)}}catch(h){u.e(h)}finally{u.f()}t.setCursor(t.context.eventService.cursor)})}},{key:"bootstrapEvent",value:function(e,t,i,o){e.view=i,e.originalEvent=null,e.nativeEvent=o,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,this.transferMouseData(e,t);var a=this.context.eventService.client2Viewport({x:t.clientX,y:t.clientY}),s=a.x,u=a.y;e.viewport.x=s,e.viewport.y=u;var l=this.context.eventService.viewport2Canvas(e.viewport),c=l.x,f=l.y;return e.canvas.x=c,e.canvas.y=f,e.global.copyFrom(e.canvas),e.offset.copyFrom(e.canvas),e.isTrusted=o.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=Us[e.type]||e.type),e}},{key:"normalizeWheelEvent",value:function(e){var t=this.rootWheelEvent;this.transferMouseData(t,e),t.deltaMode=e.deltaMode,t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ;var i=this.context.eventService.client2Viewport({x:e.clientX,y:e.clientY}),o=i.x,a=i.y;t.viewport.x=o,t.viewport.y=a;var s=this.context.eventService.viewport2Canvas(t.viewport),u=s.x,l=s.y;return t.canvas.x=u,t.canvas.y=l,t.global.copyFrom(t.canvas),t.offset.copyFrom(t.canvas),t.nativeEvent=e,t.type=e.type,t}},{key:"transferMouseData",value:function(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=Br.now(),e.type=t.type,e.altKey=t.altKey,e.metaKey=t.metaKey,e.shiftKey=t.shiftKey,e.ctrlKey=t.ctrlKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.screen.x=t.screenX,e.screen.y=t.screenY,e.relatedTarget=null}},{key:"setCursor",value:function(e){this.context.contextService.applyCursorStyle(e||this.context.config.cursor||"default")}},{key:"normalizeToPointerEvent",value:function(e,t){var i=[];if(t.isTouchEvent(e))for(var o=0;o<e.changedTouches.length;o++){var a=e.changedTouches[o];re(a.button)&&(a.button=0),re(a.buttons)&&(a.buttons=1),re(a.isPrimary)&&(a.isPrimary=e.touches.length===1&&e.type==="touchstart"),re(a.width)&&(a.width=a.radiusX||1),re(a.height)&&(a.height=a.radiusY||1),re(a.tiltX)&&(a.tiltX=0),re(a.tiltY)&&(a.tiltY=0),re(a.pointerType)&&(a.pointerType="touch"),re(a.pointerId)&&(a.pointerId=a.identifier||0),re(a.pressure)&&(a.pressure=a.force||.5),re(a.twist)&&(a.twist=0),re(a.tangentialPressure)&&(a.tangentialPressure=0),a.isNormalized=!0,a.type=e.type,i.push(a)}else if(t.isMouseEvent(e)){var s=e;re(s.isPrimary)&&(s.isPrimary=!0),re(s.width)&&(s.width=1),re(s.height)&&(s.height=1),re(s.tiltX)&&(s.tiltX=0),re(s.tiltY)&&(s.tiltY=0),re(s.pointerType)&&(s.pointerType="mouse"),re(s.pointerId)&&(s.pointerId=Ys),re(s.pressure)&&(s.pressure=.5),re(s.twist)&&(s.twist=0),re(s.tangentialPressure)&&(s.tangentialPressure=0),s.isNormalized=!0,i.push(s)}else i.push(e);return i}}])}();ta.tag="Event";var cl=[F.CIRCLE,F.ELLIPSE,F.IMAGE,F.RECT,F.LINE,F.POLYLINE,F.POLYGON,F.TEXT,F.PATH,F.HTML],fl=function(){function r(){D(this,r)}return _(r,[{key:"isVisible",value:function(e,t){var i,o=t.cullable;if(!o.enable)return!0;var a=t.getRenderBounds();if(ye.isEmpty(a))return!1;var s=e.getFrustum(),u=(i=t.parentNode)===null||i===void 0||(i=i.cullable)===null||i===void 0?void 0:i.visibilityPlaneMask;return o.visibilityPlaneMask=this.computeVisibilityWithPlaneMask(t,a,u||at.INDETERMINATE,s.planes),o.visible=o.visibilityPlaneMask!==at.OUTSIDE,o.visible}},{key:"computeVisibilityWithPlaneMask",value:function(e,t,i,o){if(i===at.OUTSIDE||i===at.INSIDE)return i;for(var a=at.INSIDE,s=cl.indexOf(e.nodeName)>-1,u=0,l=o.length;u<l;++u){var c=1<<u;if((i&c)!==0&&!(s&&(u===4||u===5))){var f=o[u],h=f.normal,v=f.distance;if(T.dot(h,t.getPositiveFarPoint(o[u]))+v<0)return at.OUTSIDE;T.dot(h,t.getNegativeFarPoint(o[u]))+v<0&&(a|=c)}}return a}}])}(),ra=function(){function r(){D(this,r),this.syncTasks=new Map,this.isFirstTimeRendering=!0,this.syncing=!1,this.isFirstTimeRenderingFinished=!1}return _(r,[{key:"apply",value:function(e){var t=this,i,o,a=e.config,s=e.renderingService,u=e.renderingContext,l=e.rBushRoot,c=u.root.ownerDocument.defaultView;this.rBush=l;var f=function(k){s.dirtify()},h=function(k){t.syncTasks.set(k.target,k.detail.affectChildren),s.dirtify()},v=function(k){var P=k.target;C.enableSizeAttenuation&&C.styleValueRegistry.updateSizeAttenuation(P,c.getCamera().getZoom())},d=function(k){var P=k.target,L=P.rBushNode;L!=null&&L.aabb&&t.rBush.remove(L.aabb),t.syncTasks.delete(P),C.sceneGraphService.dirtyToRoot(P),s.dirtify()};s.hooks.init.tap(r.tag,function(){c.addEventListener(de.MOUNTED,v),c.addEventListener(de.UNMOUNTED,d),c.addEventListener(de.ATTR_MODIFIED,f),c.addEventListener(de.BOUNDS_CHANGED,h)}),s.hooks.destroy.tap(r.tag,function(){c.removeEventListener(de.MOUNTED,v),c.removeEventListener(de.UNMOUNTED,d),c.removeEventListener(de.ATTR_MODIFIED,f),c.removeEventListener(de.BOUNDS_CHANGED,h),t.syncTasks.clear()});var m=(i=C.globalThis.requestIdleCallback)!==null&&i!==void 0?i:Kr.bind(C.globalThis),E=((o=a.future)===null||o===void 0?void 0:o.experimentalRICSyncRTree)===!0;s.hooks.endFrame.tap(r.tag,function(){t.isFirstTimeRendering?(t.isFirstTimeRendering=!1,t.syncing=!0,m(function(){t.syncRTree(!0),t.isFirstTimeRenderingFinished=!0})):E&&C.globalThis.requestIdleCallback&&C.globalThis.cancelIdleCallback?(C.globalThis.cancelIdleCallback(t.ricSyncRTreeId),t.ricSyncRTreeId=C.globalThis.requestIdleCallback(function(){return t.syncRTree()})):t.syncRTree()})}},{key:"syncNode",value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(e.isConnected){var i=e.rBushNode;i.aabb&&this.rBush.remove(i.aabb);var o=e.getRenderBounds();if(o){var a=e.renderable;t&&(a.dirtyRenderBounds||(a.dirtyRenderBounds=new ye),a.dirtyRenderBounds.update(o.center,o.halfExtents));var s=o.getMin(),u=j(s,2),l=u[0],c=u[1],f=o.getMax(),h=j(f,2),v=h[0],d=h[1];i.aabb||(i.aabb={}),i.aabb.displayObject=e,i.aabb.minX=l,i.aabb.minY=c,i.aabb.maxX=v,i.aabb.maxY=d}if(i.aabb&&!isNaN(i.aabb.maxX)&&!isNaN(i.aabb.maxX)&&!isNaN(i.aabb.minX)&&!isNaN(i.aabb.minY))return i.aabb}}},{key:"syncRTree",value:function(){var e=this,t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!t&&(this.syncing||this.syncTasks.size===0))){this.syncing=!0;var i=[],o=new Set,a=function(u){if(!o.has(u)&&u.renderable){var l=e.syncNode(u,t);l&&(i.push(l),o.add(u))}};this.syncTasks.forEach(function(s,u){s&&u.forEach(a);for(var l=u;l;)a(l),l=l.parentElement}),this.rBush.load(i),i.length=0,this.syncing=!1}}}])}();ra.tag="Prepare";function wf(r){return!!r.document}var Ye=function(r){return r.READY="ready",r.BEFORE_RENDER="beforerender",r.RERENDER="rerender",r.AFTER_RENDER="afterrender",r.BEFORE_DESTROY="beforedestroy",r.AFTER_DESTROY="afterdestroy",r.RESIZE="resize",r.DIRTY_RECTANGLE="dirtyrectangle",r.RENDERER_CHANGED="rendererchanged",r}({}),vi=500,hl=.1,vl=1e3,Zt=new xe(de.MOUNTED),Kt=new xe(de.UNMOUNTED),Cr=new xe(Ye.BEFORE_RENDER),di=new xe(Ye.RERENDER),Mr=new xe(Ye.AFTER_RENDER),Pf=function(r){function n(e){var t;D(this,n),t=Z(this,n),t.Element=oe,t.inited=!1,t.context={};var i=e.container,o=e.canvas,a=e.renderer,s=e.width,u=e.height,l=e.background,c=e.cursor,f=e.supportsMutipleCanvasesInOneContainer,h=e.cleanUpOnDestroy,v=h===void 0?!0:h,d=e.offscreenCanvas,m=e.devicePixelRatio,E=e.requestAnimationFrame,w=e.cancelAnimationFrame,k=e.createImage,P=e.supportsTouchEvents,L=e.supportsPointerEvents,x=e.isTouchEvent,g=e.isMouseEvent,p=e.dblClickSpeed,y=s,N=u,b=m||Zr&&window.devicePixelRatio||1;return b=b>=1?Math.ceil(b):1,o&&(y=s||Gs(o)||o.width/b,N=u||Vs(o)||o.height/b),t.customElements=new ul,t.devicePixelRatio=b,t.requestAnimationFrame=E??Kr.bind(C.globalThis),t.cancelAnimationFrame=w??Yi.bind(C.globalThis),t.createImage=k??function(){return new window.Image},t.supportsTouchEvents=P??"ontouchstart"in C.globalThis,t.supportsPointerEvents=L??!!C.globalThis.PointerEvent,t.isTouchEvent=x??function(M){return t.supportsTouchEvents&&M instanceof C.globalThis.TouchEvent},t.isMouseEvent=g??function(M){return!C.globalThis.MouseEvent||M instanceof C.globalThis.MouseEvent&&(!t.supportsPointerEvents||!(M instanceof C.globalThis.PointerEvent))},d&&(C.offscreenCanvas=d),t.document=new ll,t.document.defaultView=t,f||Ds(i,t,v),t.initRenderingContext($($({},e),{},{width:y,height:N,background:l??"transparent",cursor:c??"default",cleanUpOnDestroy:v,devicePixelRatio:b,requestAnimationFrame:t.requestAnimationFrame,cancelAnimationFrame:t.cancelAnimationFrame,createImage:t.createImage,supportsTouchEvents:t.supportsTouchEvents,supportsPointerEvents:t.supportsPointerEvents,isTouchEvent:t.isTouchEvent,isMouseEvent:t.isMouseEvent,dblClickSpeed:p??200})),t.initDefaultCamera(y,N,a.clipSpaceNearZ),t.initRenderer(a,!0),t}return K(n,r),_(n,[{key:"initRenderingContext",value:function(t){this.context.config=t,this.context.renderingContext={root:this.document.documentElement,unculledEntities:[],renderListCurrentFrame:[],renderReasons:new Set,force:!1,dirty:!1}}},{key:"initDefaultCamera",value:function(t,i,o){var a=this,s=new C.CameraContribution;s.clipSpaceNearZ=o,s.setType(se.EXPLORING,Rr.DEFAULT).setPosition(t/2,i/2,vi).setFocalPoint(t/2,i/2,0).setOrthographic(t/-2,t/2,i/2,i/-2,hl,vl),s.canvas=this,s.eventEmitter.on(ki.UPDATED,function(){a.context.renderingContext.renderReasons.add(jt.CAMERA_CHANGED),C.enableSizeAttenuation&&a.getConfig().renderer.getConfig().enableSizeAttenuation&&a.updateSizeAttenuation()}),this.context.camera=s}},{key:"updateSizeAttenuation",value:function(){var t=this.getCamera().getZoom();this.document.documentElement.forEach(function(i){C.styleValueRegistry.updateSizeAttenuation(i,t)})}},{key:"getConfig",value:function(){return this.context.config}},{key:"getRoot",value:function(){return this.document.documentElement}},{key:"getCamera",value:function(){return this.context.camera}},{key:"getContextService",value:function(){return this.context.contextService}},{key:"getEventService",value:function(){return this.context.eventService}},{key:"getRenderingService",value:function(){return this.context.renderingService}},{key:"getRenderingContext",value:function(){return this.context.renderingContext}},{key:"getStats",value:function(){return this.getRenderingService().getStats()}},{key:"ready",get:function(){var t=this;return this.readyPromise||(this.readyPromise=new Promise(function(i){t.resolveReadyPromise=function(){i(t)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise}},{key:"destroy",value:function(){var t,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,o=arguments.length>1?arguments[1]:void 0;ce.clearCache();var a=((t=this.getConfig().future)===null||t===void 0?void 0:t.experimentalCancelEventPropagation)===!0;o||this.dispatchEvent(new xe(Ye.BEFORE_DESTROY),a,a),this.frameId&&this.cancelAnimationFrame(this.frameId);var s=this.getRoot();i&&(this.unmountChildren(s),this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),this.context.rBushRoot&&this.context.rBushRoot.clear(),o||this.dispatchEvent(new xe(Ye.AFTER_DESTROY),a,a);var u=function(c){c.currentTarget=null,c.manager=null,c.target=null,c.relatedNode=null};u(Zt),u(Kt),u(Cr),u(di),u(Mr),u(De),u(Yr),u(Ur),u(Wi),C.textService.clearCache()}},{key:"changeSize",value:function(t,i){this.resize(t,i)}},{key:"resize",value:function(t,i){var o,a=this.context.config;a.width=t,a.height=i,this.getContextService().resize(t,i);var s=this.context.camera,u=s.getProjectionMode();s.setPosition(t/2,i/2,vi).setFocalPoint(t/2,i/2,0),u===Se.ORTHOGRAPHIC?s.setOrthographic(t/-2,t/2,i/2,i/-2,s.getNear(),s.getFar()):s.setAspect(t/i);var l=((o=a.future)===null||o===void 0?void 0:o.experimentalCancelEventPropagation)===!0;this.dispatchEvent(new xe(Ye.RESIZE,{width:t,height:i}),l,l)}},{key:"appendChild",value:function(t,i){return this.document.documentElement.appendChild(t,i)}},{key:"insertBefore",value:function(t,i){return this.document.documentElement.insertBefore(t,i)}},{key:"removeChild",value:function(t){return this.document.documentElement.removeChild(t)}},{key:"removeChildren",value:function(){this.document.documentElement.removeChildren()}},{key:"destroyChildren",value:function(){this.document.documentElement.destroyChildren()}},{key:"render",value:function(t){var i,o=this;t&&(Cr.detail=t,Mr.detail=t);var a=((i=this.getConfig().future)===null||i===void 0?void 0:i.experimentalCancelEventPropagation)===!0;this.dispatchEvent(Cr,a,a);var s=this.getRenderingService();s.render(this.getConfig(),t,function(){o.dispatchEvent(di,a,a)}),this.dispatchEvent(Mr,a,a)}},{key:"run",value:function(){var t=this,i=function(a,s){t.render(s),t.frameId=t.requestAnimationFrame(i)};i()}},{key:"initRenderer",value:function(t){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!t)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new Na,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new ta,new ra,new ea([new fl])),this.loadRendererContainerModule(t),this.context.contextService=new this.context.ContextService($($({},C),this.context)),this.context.renderingService=new wu(C,this.context),this.context.eventService=new Eu(C,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(t,o,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(t,o)}).catch(function(a){console.error(a)})}},{key:"initRenderingService",value:function(t){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.context.renderingService.init(function(){var s;i.inited=!0;var u=((s=i.getConfig().future)===null||s===void 0?void 0:s.experimentalCancelEventPropagation)===!0;o?a?i.requestAnimationFrame(function(){i.dispatchEvent(new xe(Ye.READY),u,u)}):i.dispatchEvent(new xe(Ye.READY),u,u):i.dispatchEvent(new xe(Ye.RENDERER_CHANGED),u,u),i.readyPromise&&i.resolveReadyPromise(),o||i.getRoot().forEach(function(l){var c,f;(c=(f=l).dirty)===null||c===void 0||c.call(f,!0,!0)}),i.mountChildren(i.getRoot()),t.getConfig().enableAutoRendering&&i.run()})}},{key:"loadRendererContainerModule",value:function(t){var i=this,o=t.getPlugins();o.forEach(function(a){a.context=i.context,a.init(C)})}},{key:"setRenderer",value:function(t){var i=this.getConfig();if(i.renderer!==t){var o=i.renderer;i.renderer=t,this.destroy(!1,!0),J(o?.getPlugins()||[]).reverse().forEach(function(a){a.destroy(C)}),this.initRenderer(t)}}},{key:"setCursor",value:function(t){var i=this.getConfig();i.cursor=t,this.getContextService().applyCursorStyle(t)}},{key:"unmountChildren",value:function(t){var i=this;if(t.childNodes.forEach(function(s){i.unmountChildren(s)}),this.inited){if(t.isMutationObserved)t.dispatchEvent(Kt);else{var o,a=((o=this.getConfig().future)===null||o===void 0?void 0:o.experimentalCancelEventPropagation)===!0;Kt.target=t,this.dispatchEvent(Kt,!0,a)}t!==this.document.documentElement&&(t.ownerDocument=null),t.isConnected=!1}t.isCustomElement&&t.disconnectedCallback&&t.disconnectedCallback()}},{key:"mountChildren",value:function(t){var i=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ir(t);if(this.inited){if(!t.isConnected&&(t.ownerDocument=this.document,t.isConnected=!0,!o))if(t.isMutationObserved)t.dispatchEvent(Zt);else{var a,s=((a=this.getConfig().future)===null||a===void 0?void 0:a.experimentalCancelEventPropagation)===!0;Zt.target=t,this.dispatchEvent(Zt,!0,s)}}else 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);t.childNodes.forEach(function(u){i.mountChildren(u,o)}),t.isCustomElement&&t.connectedCallback&&t.connectedCallback()}},{key:"mountFragment",value:function(t){this.mountChildren(t,!1)}},{key:"client2Viewport",value:function(t){return this.getEventService().client2Viewport(t)}},{key:"viewport2Client",value:function(t){return this.getEventService().viewport2Client(t)}},{key:"viewport2Canvas",value:function(t){return this.getEventService().viewport2Canvas(t)}},{key:"canvas2Viewport",value:function(t){return this.getEventService().canvas2Viewport(t)}},{key:"getPointByClient",value:function(t,i){return this.client2Viewport({x:t,y:i})}},{key:"getClientByPoint",value:function(t,i){return this.viewport2Client({x:t,y:i})}}])}(zi);export{ye as AABB,lf as AbstractRenderer,uf as AbstractRendererPlugin,$r as BUILT_IN_PROPERTIES,Tf as CSS,Yt as CSSGradientValue,Ne as CSSKeywordValue,Xr as CSSRGB,sr as CSSStyleValue,q as CSSUnitValue,Xa as Camera,ki as CameraEvent,Se as CameraProjectionMode,Rr as CameraTrackingMode,se as CameraType,Pf as Canvas,Ye as CanvasEvent,Hi as Circle,fu as CircleUpdater,qt as ClipSpaceNearZ,el as CustomElement,ul as CustomElementRegistry,xe as CustomEvent,Su as DefaultSceneGraphSelector,Du as DefaultSceneGraphService,oe as DisplayObject,ll as Document,ne as ERROR_MSG_METHOD_NOT_IMPLEMENTED,qu as Element,de as ElementEvent,$i as Ellipse,hu as EllipseUpdater,Eu as EventService,zi as EventTarget,qr as FederatedEvent,Ui as FederatedMouseEvent,Gr as FederatedPointerEvent,Vr as FederatedWheelEvent,tl as Fragment,Ra as Frustum,Vt as GradientType,ar as Group,yu as GroupUpdater,Zi as HTML,xu as HTMLUpdater,Ki as Image,qi as Line,vu as LineUpdater,at as Mask,Be as MutationEvent,ae as Node,Tu as OffscreenCanvasCreator,ji as Path,du as PathUpdater,Aa as Plane,pe as Point,ur as Polygon,Ji as Polyline,gu as PolylineUpdater,O as PropertySyntax,Na as RBush,Qi as Rect,pu as RectUpdater,lt as Rectangle,jt as RenderReason,wu as RenderingService,F as Shape,er as SortReason,Wa as Strategy,jr as Text,Hu as TextService,mu as TextUpdater,I as UnitType,De as attrModifiedEvent,hf as computeLinearGradient,vf as computeRadialGradient,gf as convertToPath,Te as createVec3,On as decompose,mf as definedProps,Q as deg2rad,ff as deg2turn,Wi as destroyEvent,Bs as findClosestClipPathTarget,Ga as fromRotationTranslationScale,pr as getAngle,yr as getEuler,Zn as getOrCalculatePathTotalLength,cf as grad2deg,Yr as insertedEvent,Zr as isBrowser,df as isCSSGradientValue,Hn as isCSSRGB,wf as isCanvas,ee as isDisplayObject,kf as isFederatedEvent,xf as isFillOrStrokeAffected,Io as isPattern,Do as mergeColors,Tt as parseColor,_o as parseLength,Ii as parsePath,is as parseTransform,su as parsedTransformToMat4,ms as propertyMetadataCache,be as rad2deg,Ur as removedEvent,Ef as resetEntityCounter,C as runtime,yf as setDOMSize,pf as translatePathToString,_a as turn2deg,Dn as updateLocalTransform,Za as updateWorldTransform};
7
+ /*! Bundled license information:
8
+
9
+ @babel/runtime/helpers/esm/regenerator.js:
10
+ (*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE *)
11
+
12
+ @antv/g-lite/dist/index.esm.js:
13
+ (*!
14
+ * @antv/g-lite
15
+ * @description A core module for rendering engine implements DOM API.
16
+ * @version 2.3.2
17
+ * @date 7/30/2025, 1:34:19 PM
18
+ * @author AntVis
19
+ * @docs https://g.antv.antgroup.com/
20
+ *)
21
+ */
22
+ //# sourceMappingURL=g-lite.mjs.map