cnhis-design-vue 3.1.5-beta.5 → 3.1.5-beta.6

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 (212) hide show
  1. package/env.d.ts +23 -11
  2. package/es/_virtual/_commonjsHelpers.mjs +1 -0
  3. package/es/_virtual/inherits.mjs +1 -0
  4. package/es/_virtual/inherits_browser.mjs +1 -0
  5. package/es/node_modules/diagram-js/lib/command/CommandInterceptor.mjs +1 -0
  6. package/es/node_modules/diagram-js/lib/draw/BaseRenderer.mjs +1 -0
  7. package/es/node_modules/diagram-js/lib/features/popup-menu/PopupMenu.mjs +1 -0
  8. package/es/node_modules/diagram-js/lib/features/rules/RuleProvider.mjs +1 -0
  9. package/es/node_modules/diagram-js/lib/navigation/movecanvas/MoveCanvas.mjs +1 -0
  10. package/es/node_modules/diagram-js/lib/navigation/movecanvas/index.mjs +1 -0
  11. package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomScroll.mjs +1 -0
  12. package/es/node_modules/diagram-js/lib/navigation/zoomscroll/ZoomUtil.mjs +1 -0
  13. package/es/node_modules/diagram-js/lib/util/ClickTrap.mjs +1 -0
  14. package/es/node_modules/diagram-js/lib/util/Cursor.mjs +1 -0
  15. package/es/node_modules/diagram-js/lib/util/Event.mjs +1 -0
  16. package/es/node_modules/diagram-js/lib/util/Math.mjs +1 -0
  17. package/es/node_modules/diagram-js/lib/util/Mouse.mjs +1 -0
  18. package/es/node_modules/diagram-js/lib/util/Platform.mjs +1 -0
  19. package/es/node_modules/diagram-js/lib/util/PositionUtil.mjs +1 -0
  20. package/es/node_modules/diagram-js/lib/util/RenderUtil.mjs +1 -0
  21. package/es/node_modules/diagram-js/lib/util/SvgTransformUtil.mjs +1 -0
  22. package/es/node_modules/ids/dist/index.esm.mjs +1 -0
  23. package/es/node_modules/inherits/inherits.mjs +1 -0
  24. package/es/node_modules/inherits/inherits_browser.mjs +1 -0
  25. package/es/node_modules/inherits-browser/dist/index.es.mjs +1 -0
  26. package/es/node_modules/min-dash/dist/index.esm.mjs +1 -0
  27. package/es/node_modules/min-dom/dist/index.esm.mjs +1 -0
  28. package/es/node_modules/tiny-svg/dist/index.esm.mjs +1 -0
  29. package/es/packages/big-table/index.d.ts +2044 -0
  30. package/es/packages/big-table/src/BigTable.vue.d.ts +2043 -0
  31. package/es/packages/big-table/src/BigTable.vue_vue_type_script_setup_true_lang.mjs +1 -1
  32. package/es/packages/big-table/src/components/NoData.vue.d.ts +51 -0
  33. package/es/packages/big-table/src/components/NoData.vue_vue_type_script_setup_true_lang.mjs +1 -1
  34. package/es/packages/bpmn-workflow/index.d.ts +74 -0
  35. package/es/packages/bpmn-workflow/index.mjs +1 -0
  36. package/es/packages/bpmn-workflow/index2.mjs +1 -0
  37. package/es/packages/bpmn-workflow/src/BpmnWorkflow.d.mjs +1 -0
  38. package/es/packages/bpmn-workflow/src/BpmnWorkflow.mjs +1 -0
  39. package/es/packages/bpmn-workflow/src/BpmnWorkflow.vue.d.ts +77 -0
  40. package/es/packages/bpmn-workflow/src/BpmnWorkflow.vue_vue_type_script_setup_true_lang.mjs +1 -0
  41. package/es/packages/bpmn-workflow/src/BpmnWorkflow2.mjs +1 -0
  42. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.d.ts +75 -0
  43. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer.mjs +1 -0
  44. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/BpmnRenderer2.mjs +1 -0
  45. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.d.ts +24 -0
  46. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider.mjs +1 -0
  47. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomContextPadProvider2.mjs +1 -0
  48. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.d.ts +19 -0
  49. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette.mjs +1 -0
  50. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPalette2.mjs +1 -0
  51. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.d.ts +70 -0
  52. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap.mjs +1 -0
  53. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomPathMap2.mjs +1 -0
  54. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.d.ts +21 -0
  55. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer.mjs +1 -0
  56. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRenderer2.mjs +1 -0
  57. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.d.ts +12 -0
  58. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules.mjs +1 -0
  59. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/CustomRules2.mjs +1 -0
  60. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/index.d.ts +16 -0
  61. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/index.mjs +1 -0
  62. package/es/packages/bpmn-workflow/src/custom/customModeler/customBpmn/index2.mjs +1 -0
  63. package/es/packages/bpmn-workflow/src/custom/customModeler/index.d.ts +6 -0
  64. package/es/packages/bpmn-workflow/src/custom/customModeler/index.mjs +1 -0
  65. package/es/packages/bpmn-workflow/src/custom/customModeler/index2.mjs +1 -0
  66. package/es/packages/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.d.ts +5 -0
  67. package/es/packages/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu.mjs +1 -0
  68. package/es/packages/bpmn-workflow/src/custom/customOtherModule/CustomPopupMenu2.mjs +1 -0
  69. package/es/packages/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.d.ts +12 -0
  70. package/es/packages/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer.mjs +1 -0
  71. package/es/packages/bpmn-workflow/src/custom/customOtherModule/customViewerRenderer2.mjs +1 -0
  72. package/es/packages/bpmn-workflow/src/custom/customOtherModule/zoomScroll.d.ts +5 -0
  73. package/es/packages/bpmn-workflow/src/custom/customOtherModule/zoomScroll.mjs +1 -0
  74. package/es/packages/bpmn-workflow/src/custom/customOtherModule/zoomScroll2.mjs +1 -0
  75. package/es/packages/bpmn-workflow/src/custom/customRules/no-task.d.ts +4 -0
  76. package/es/packages/bpmn-workflow/src/custom/customRules/no-task.mjs +1 -0
  77. package/es/packages/bpmn-workflow/src/custom/customRules/no-task2.mjs +1 -0
  78. package/es/packages/bpmn-workflow/src/custom/customTranslate/customTranslate.d.ts +1 -0
  79. package/es/packages/bpmn-workflow/src/custom/customTranslate/customTranslate.mjs +1 -0
  80. package/es/packages/bpmn-workflow/src/custom/customTranslate/customTranslate2.mjs +1 -0
  81. package/es/packages/bpmn-workflow/src/custom/customTranslate/zh.d.ts +226 -0
  82. package/es/packages/bpmn-workflow/src/custom/customTranslate/zh.mjs +1 -0
  83. package/es/packages/bpmn-workflow/src/custom/customTranslate/zh2.mjs +1 -0
  84. package/es/packages/bpmn-workflow/style/index.css +29 -0
  85. package/es/packages/bpmn-workflow/style/index.less +29 -0
  86. package/es/packages/bpmn-workflow/types/BpmnViewer.d.mjs +1 -0
  87. package/es/packages/bpmn-workflow/types/ModelingModule.d.mjs +1 -0
  88. package/es/packages/bpmn-workflow/types/MoveCanvasModule.d.mjs +1 -0
  89. package/es/packages/button-print/index.d.ts +7373 -0
  90. package/es/packages/button-print/src/ButtonPrint.vue.d.ts +7372 -0
  91. package/es/packages/button-print/src/ButtonPrint.vue_vue_type_script_setup_true_lang.mjs +1 -1
  92. package/es/packages/button-print/src/components/IdentityVerification.vue.d.ts +103 -52
  93. package/es/packages/button-print/src/components/IdentityVerification.vue_vue_type_script_setup_true_lang.mjs +1 -1
  94. package/es/packages/chunk-upload/index.d.ts +1748 -0
  95. package/es/packages/chunk-upload/src/chunk-upload-new.vue.d.ts +1905 -0
  96. package/es/packages/chunk-upload/src/chunk-upload-new.vue_vue_type_script_setup_true_lang.mjs +1 -1
  97. package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue.d.ts +1749 -0
  98. package/es/packages/chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue_vue_type_script_setup_true_lang.mjs +1 -1
  99. package/es/packages/drag-layout/index.d.ts +415 -289
  100. package/es/packages/drag-layout/src/DragFormLeftItem.vue.d.ts +113 -89
  101. package/es/packages/drag-layout/src/DragFormLeftItem.vue_vue_type_script_setup_true_lang.mjs +1 -1
  102. package/es/packages/drag-layout/src/DragFormRightItem.vue.d.ts +95 -77
  103. package/es/packages/drag-layout/src/DragFormRightItem.vue_vue_type_script_setup_true_lang.mjs +1 -1
  104. package/es/packages/drag-layout/src/DragLayout.vue.d.ts +415 -289
  105. package/es/packages/drag-layout/src/DragLayout.vue_vue_type_script_setup_true_lang.mjs +1 -1
  106. package/es/packages/editor/index.d.ts +30 -0
  107. package/es/packages/editor/index.mjs +1 -0
  108. package/es/packages/editor/index2.mjs +1 -0
  109. package/es/packages/editor/src/Editor.d.ts +30 -0
  110. package/es/packages/editor/src/Editor.mjs +1 -0
  111. package/es/packages/editor/src/Editor2.mjs +1 -0
  112. package/es/packages/editor/style/index.css +0 -0
  113. package/es/packages/editor/style/index.less +0 -0
  114. package/es/packages/field-set/index.d.ts +2647 -0
  115. package/es/packages/field-set/src/FieldSet.vue.d.ts +2599 -0
  116. package/es/packages/field-set/src/FieldSet.vue_vue_type_script_setup_true_lang.mjs +1 -1
  117. package/es/packages/form-table/index.d.ts +35903 -0
  118. package/es/packages/form-table/src/FormTable.vue.d.ts +35912 -0
  119. package/es/packages/form-table/src/FormTable.vue_vue_type_script_setup_true_lang.mjs +1 -1
  120. package/es/packages/form-table/src/components/index.d.ts +35662 -0
  121. package/es/packages/form-table/src/components/table-age.vue.d.ts +4305 -0
  122. package/es/packages/form-table/src/components/table-age.vue_vue_type_script_setup_true_lang.mjs +1 -1
  123. package/es/packages/form-table/src/components/table-date-picker.vue.d.ts +5286 -0
  124. package/es/packages/form-table/src/components/table-date-picker.vue_vue_type_script_setup_true_lang.mjs +1 -1
  125. package/es/packages/form-table/src/components/table-digital.vue.d.ts +2916 -0
  126. package/es/packages/form-table/src/components/table-digital.vue_vue_type_script_setup_true_lang.mjs +1 -1
  127. package/es/packages/form-table/src/components/table-input-password.vue.d.ts +1622 -0
  128. package/es/packages/form-table/src/components/table-input-password.vue_vue_type_script_setup_true_lang.mjs +1 -1
  129. package/es/packages/form-table/src/components/table-input.vue.d.ts +1579 -0
  130. package/es/packages/form-table/src/components/table-input.vue_vue_type_script_setup_true_lang.mjs +1 -1
  131. package/es/packages/form-table/src/components/table-month-picker.vue.d.ts +5229 -0
  132. package/es/packages/form-table/src/components/table-month-picker.vue_vue_type_script_setup_true_lang.mjs +1 -1
  133. package/es/packages/form-table/src/components/table-search-more.vue.d.ts +1785 -0
  134. package/es/packages/form-table/src/components/table-search-more.vue_vue_type_script_setup_true_lang.mjs +1 -1
  135. package/es/packages/form-table/src/components/table-search.vue.d.ts +3111 -0
  136. package/es/packages/form-table/src/components/table-search.vue_vue_type_script_setup_true_lang.mjs +1 -1
  137. package/es/packages/form-table/src/components/table-select-multiple.vue.d.ts +1567 -0
  138. package/es/packages/form-table/src/components/table-select-multiple.vue_vue_type_script_setup_true_lang.mjs +1 -1
  139. package/es/packages/form-table/src/components/table-select.vue.d.ts +1566 -0
  140. package/es/packages/form-table/src/components/table-select.vue_vue_type_script_setup_true_lang.mjs +1 -1
  141. package/es/packages/form-table/src/components/table-textarea.vue.d.ts +1638 -0
  142. package/es/packages/form-table/src/components/table-textarea.vue_vue_type_script_setup_true_lang.mjs +1 -1
  143. package/es/packages/form-table/src/components/table-time-picker.vue.d.ts +2673 -0
  144. package/es/packages/form-table/src/components/table-time-picker.vue_vue_type_script_setup_true_lang.mjs +1 -1
  145. package/es/packages/form-table/src/components/table-tree-select.vue.d.ts +1883 -0
  146. package/es/packages/form-table/src/components/table-tree-select.vue_vue_type_script_setup_true_lang.mjs +1 -1
  147. package/es/packages/form-table/src/components/text-over-tooltip.vue.d.ts +543 -0
  148. package/es/packages/form-table/src/components/text-over-tooltip.vue_vue_type_script_setup_true_lang.mjs +1 -1
  149. package/es/packages/index.css +61 -0
  150. package/es/packages/index.d.ts +4 -1
  151. package/es/packages/index.less +64 -0
  152. package/es/packages/index.mjs +1 -1
  153. package/es/packages/index2.mjs +1 -1
  154. package/es/packages/info-header/index.d.ts +1823 -0
  155. package/es/packages/info-header/src/hidden-content.mjs +1 -0
  156. package/es/packages/info-header/src/hidden-content.vue.d.ts +359 -0
  157. package/es/packages/info-header/src/hidden-content.vue_vue_type_script_setup_true_lang.mjs +1 -0
  158. package/es/packages/info-header/src/hidden-content2.mjs +1 -0
  159. package/es/packages/info-header/src/info-header.vue.d.ts +1824 -0
  160. package/es/packages/info-header/src/info-header.vue_vue_type_script_setup_true_lang.mjs +1 -1
  161. package/es/packages/info-header/style/index.css +1 -0
  162. package/es/packages/info-header/style/index.less +1 -0
  163. package/es/packages/map/index.d.ts +2313 -0
  164. package/es/packages/map/src/Map.vue.d.ts +2313 -0
  165. package/es/packages/map/src/Map.vue_vue_type_script_setup_true_lang.mjs +1 -1
  166. package/es/packages/scale-view/index.d.ts +4297 -0
  167. package/es/packages/scale-view/src/ScaleView.vue.d.ts +4141 -0
  168. package/es/packages/scale-view/src/ScaleView.vue_vue_type_script_setup_true_lang.mjs +1 -1
  169. package/es/packages/scale-view/src/components/AnswerParse.vue.d.ts +72 -0
  170. package/es/packages/scale-view/src/components/AnswerParse.vue_vue_type_script_setup_true_lang.mjs +1 -1
  171. package/es/packages/scale-view/src/components/EvaluateCountdown.vue.d.ts +150 -0
  172. package/es/packages/scale-view/src/components/EvaluateCountdown.vue_vue_type_script_setup_true_lang.mjs +1 -1
  173. package/es/packages/scale-view/src/components/EvaluatePage.vue.d.ts +1503 -0
  174. package/es/packages/scale-view/src/components/EvaluatePage.vue_vue_type_script_setup_true_lang.mjs +1 -1
  175. package/es/packages/scale-view/src/components/NoData.vue.d.ts +51 -0
  176. package/es/packages/scale-view/src/components/NoData.vue_vue_type_script_setup_true_lang.mjs +1 -1
  177. package/es/packages/scale-view/src/components/composables/choose-common.d.ts +1 -1
  178. package/es/packages/scale-view/src/components/formitem/text-over-tooltip/TextOverTooltip.vue.d.ts +3 -2
  179. package/es/packages/scale-view/src/hooks/use-component.d.ts +2673 -0
  180. package/es/packages/select-label/index.d.ts +12091 -0
  181. package/es/packages/select-label/src/LabelFormContent.vue.d.ts +296 -94
  182. package/es/packages/select-label/src/LabelFormContent.vue_vue_type_script_setup_true_lang.mjs +1 -1
  183. package/es/packages/select-label/src/SelectLabel.vue.d.ts +7526 -0
  184. package/es/packages/select-label/src/SelectLabel.vue_vue_type_script_setup_true_lang.mjs +1 -1
  185. package/es/packages/select-label/src/components/label-classify.vue.d.ts +229 -66
  186. package/es/packages/select-label/src/components/label-classify.vue_vue_type_script_setup_true_lang.mjs +1 -1
  187. package/es/packages/select-person/index.d.ts +3500 -0
  188. package/es/packages/select-person/src/SearchTree.vue.d.ts +344 -0
  189. package/es/packages/select-person/src/SearchTree.vue_vue_type_script_setup_true_lang.mjs +1 -1
  190. package/es/packages/select-person/src/SelectPerson.vue.d.ts +3501 -0
  191. package/es/packages/select-person/src/SelectPerson.vue_vue_type_script_setup_true_lang.mjs +1 -1
  192. package/es/packages/time-line/index.d.ts +1720 -0
  193. package/es/packages/time-line/index.mjs +1 -0
  194. package/es/packages/time-line/index2.mjs +1 -0
  195. package/es/packages/time-line/src/TimeLine.mjs +1 -0
  196. package/es/packages/time-line/src/TimeLine.vue.d.ts +1723 -0
  197. package/es/packages/time-line/src/TimeLine.vue_vue_type_script_setup_true_lang.mjs +1 -0
  198. package/es/packages/time-line/src/TimeLine2.mjs +1 -0
  199. package/es/packages/time-line/style/index.css +32 -0
  200. package/es/packages/time-line/style/index.less +35 -0
  201. package/es/src/components/SelectPage/SelectPage.vue.d.ts +1446 -0
  202. package/es/src/components/SelectPage/SelectPage.vue_vue_type_script_setup_true_lang.mjs +1 -1
  203. package/es/src/components/SvgIcon/SvgIcon.vue_vue_type_script_setup_true_lang.mjs +1 -1
  204. package/es/src/components/TextOverTooltip/TextOverTooltip.vue.d.ts +3 -2
  205. package/es/src/components/TextOverTooltip/TextOverTooltip.vue_vue_type_script_setup_true_lang.mjs +1 -1
  206. package/es/src/components/player-vod/index.vue_vue_type_script_setup_true_lang.mjs +1 -1
  207. package/package.json +15 -8
  208. package/yarn-error.log +122 -0
  209. package/CHANGELOG.md +0 -269
  210. package/es/packages/info-header/src/hiddenContent.mjs +0 -1
  211. package/es/packages/info-header/src/hiddenContent.vue_vue_type_script_setup_true_lang.mjs +0 -1
  212. package/es/packages/info-header/src/hiddenContent2.mjs +0 -1
package/env.d.ts CHANGED
@@ -1,26 +1,38 @@
1
1
  /// <reference types="vite/client" />
2
2
 
3
3
  interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string;
5
- // 更多环境变量...
4
+ readonly VITE_APP_TYPE: string;
5
+ // 更多环境变量...
6
6
  }
7
7
 
8
8
  interface ImportMeta {
9
- readonly env: ImportMetaEnv;
9
+ readonly env: ImportMetaEnv;
10
10
  }
11
11
 
12
12
  import * as Vue from 'vue';
13
13
 
14
14
  declare module '*.vue' {
15
- import type { App, defineComponent } from 'vue';
16
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
17
- // // const component: DefineComponent<{}, {}, any>
18
- const component: ReturnType<typeof defineComponent> & {
19
- install(app: App): void;
20
- };
21
- export default component;
15
+ import type { App, defineComponent } from 'vue';
16
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
17
+ // // const component: DefineComponent<{}, {}, any>
18
+ const component: ReturnType<typeof defineComponent> & {
19
+ install(app: App): void;
20
+ };
21
+ export default component;
22
22
  }
23
23
 
24
+ import { SlateDescendant, SlateElement, SlateText } from '@wangeditor/editor';
25
+ declare module '@wangeditor/editor' {
26
+ // 扩展 Text
27
+ interface SlateText {
28
+ text: string;
29
+ }
24
30
 
31
+ // 扩展 Element
32
+ interface SlateElement {
33
+ type: string;
34
+ children: SlateDescendant[];
35
+ }
36
+ }
25
37
 
26
- declare module '*.js'
38
+ declare module '*.js';
@@ -0,0 +1 @@
1
+ function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}export{e as getDefaultExportFromCjs};
@@ -0,0 +1 @@
1
+ var r={exports:{}};export{r as i};
@@ -0,0 +1 @@
1
+ var r={exports:{}};export{r as i};
@@ -0,0 +1 @@
1
+ import{forEach as e,isFunction as t,isNumber as n,isObject as o,isArray as u}from"../../../min-dash/dist/index.esm.mjs";function r(e){this._eventBus=e}r.$inject=["eventBus"],r.prototype.on=function(r,c,i,s,f,a){if((t(c)||n(c))&&(a=f,f=s,s=i,i=c,c=null),t(i)&&(a=f,f=s,s=i,i=1e3),o(f)&&(a=f,f=!1),!t(s))throw new Error("handlerFn must be a function");u(r)||(r=[r]);var d=this._eventBus;e(r,(function(e){var t=["commandStack",e,c].filter((function(e){return e})).join(".");d.on(t,i,f?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(s,a):s,a)}))};e(["canExecute","preExecute","preExecuted","execute","executed","postExecute","postExecuted","revert","reverted"],(function(e){r.prototype[e]=function(o,u,r,c,i){(t(o)||n(o))&&(i=c,c=r,r=u,u=o,o=null),this.on(o,e,u,r,c,i)}}));export{r as default};
@@ -0,0 +1 @@
1
+ function e(e,n){var t=this;n=n||1e3,e.on(["render.shape","render.connection"],n,(function(e,n){var o=e.type,r=n.element,a=n.gfx,p=n.attrs;if(t.canRender(r))return"render.shape"===o?t.drawShape(a,r,p):t.drawConnection(a,r,p)})),e.on(["render.getShapePath","render.getConnectionPath"],n,(function(e,n){if(t.canRender(n))return"render.getShapePath"===e.type?t.getShapePath(n):t.getConnectionPath(n)}))}e.prototype.canRender=function(){},e.prototype.drawShape=function(){},e.prototype.drawConnection=function(){},e.prototype.getShapePath=function(){},e.prototype.getConnectionPath=function(){};export{e as default};
@@ -0,0 +1 @@
1
+ import{isDefined as t,size as e,assign as i,forEach as r,omit as n,isFunction as o}from"../../../../min-dash/dist/index.esm.mjs";import{remove as s,attr as a,domify as p,assignStyle as c,classes as u,delegate as d}from"../../../../min-dom/dist/index.esm.mjs";var h=["contextPad.close","canvas.viewbox.changing","commandStack.changed"];function l(e,i,r){var n=t(e&&e.scale)?e.scale:{min:1,max:1.5};this._config={scale:n},this._eventBus=i,this._canvas=r,this._providers={},this._current={}}l.$inject=["config.popupMenu","eventBus","canvas"],l.prototype.registerProvider=function(t,e,i){i||(i=e,e=1e3),this._eventBus.on("popupMenu.getProviders."+t,e,(function(t){t.providers.push(i)}))},l.prototype.isEmpty=function(t,i){if(!t)throw new Error("element parameter is missing");if(!i)throw new Error("providerId parameter is missing");var r=this._getProviders(i);if(!r)return!0;var n=this._getEntries(t,r),o=this._getHeaderEntries(t,r),s=e(n)>0,a=o&&e(o)>0;return!s&&!a},l.prototype.open=function(t,r,n){var o=this._getProviders(r);if(!t)throw new Error("Element is missing");if(!o||!o.length)throw new Error("No registered providers for: "+r);if(!n)throw new Error("the position argument is missing");this.isOpen()&&this.close(),this._emit("open");var s=this._current={className:r,element:t,position:n},a=this._getEntries(t,o),p=this._getHeaderEntries(t,o);s.entries=i({},a,p),s.container=this._createContainer(),e(p)&&s.container.appendChild(this._createEntries(p,"djs-popup-header")),e(a)&&s.container.appendChild(this._createEntries(a,"djs-popup-body"));var c=this._canvas.getContainer();this._attachContainer(s.container,c,n.cursor),this._bindAutoClose()},l.prototype.close=function(){this.isOpen()&&(this._emit("close"),this._unbindAutoClose(),s(this._current.container),this._current.container=null)},l.prototype.isOpen=function(){return!!this._current.container},l.prototype.trigger=function(t){t.preventDefault();var e=t.delegateTarget||t.target,i=a(e,"data-id"),r=this._getEntry(i);if(r.action)return r.action.call(null,t,r)},l.prototype._getProviders=function(t){var e=this._eventBus.createEvent({type:"popupMenu.getProviders."+t,providers:[]});return this._eventBus.fire(e),e.providers},l.prototype._getEntries=function(t,e){var i={};return r(e,(function(e){if(e.getPopupMenuEntries){var s=e.getPopupMenuEntries(t);o(s)?i=s(i):r(s,(function(t,e){i[e]=t}))}else r(e.getEntries(t),(function(t){var e=t.id;if(!e)throw new Error("every entry must have the id property set");i[e]=n(t,["id"])}))})),i},l.prototype._getHeaderEntries=function(t,e){var i={};return r(e,(function(e){if(e.getPopupMenuHeaderEntries){var s=e.getPopupMenuHeaderEntries(t);o(s)?i=s(i):r(s,(function(t,e){i[e]=t}))}else{if(!e.getHeaderEntries)return;r(e.getHeaderEntries(t),(function(t){var e=t.id;if(!e)throw new Error("every entry must have the id property set");i[e]=n(t,["id"])}))}})),i},l.prototype._getEntry=function(t){var e=this._current.entries[t];if(!e)throw new Error("entry not found");return e},l.prototype._emit=function(t){this._eventBus.fire("popupMenu."+t)},l.prototype._createContainer=function(){var t=p('<div class="djs-popup">'),e=this._current.position,i=this._current.className;return c(t,{position:"absolute",left:e.x+"px",top:e.y+"px",visibility:"hidden"}),u(t).add(i),t},l.prototype._attachContainer=function(t,e,i){var r=this;d.bind(t,".entry","click",(function(t){r.trigger(t)})),this._updateScale(t),e.appendChild(t),i&&this._assureIsInbounds(t,i)},l.prototype._updateScale=function(e){var i,r,n,o,s=this._canvas.zoom(),a=this._config.scale,p=s;!0!==a&&(!1===a?(i=1,r=1):(i=a.min,r=a.max),t(i)&&s<i&&(p=i),t(r)&&s>r&&(p=r)),o="scale("+p+")",(n=e).style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(t){n.style[t+"transform"]=o}))},l.prototype._assureIsInbounds=function(t,e){var i,r,n=this._canvas._container.getBoundingClientRect(),o=t.offsetLeft,s=t.offsetTop,a=t.scrollWidth,p=t.scrollHeight,u={},d=e.x-n.left,h=e.y-n.top;o+a>n.width&&(u.x=!0),s+p>n.height&&(u.y=!0),u.x&&u.y?(i=d-a+"px",r=h-p+"px"):u.x?(i=d-a+"px",r=h+"px"):u.y&&h<p?(i=d+"px",r="10px"):u.y&&(i=d+"px",r=h-p+"px"),c(t,{left:i,top:r},{visibility:"visible",zIndex:1e3})},l.prototype._createEntries=function(t,e){var i=p("<div>"),n=this;return u(i).add(e),r(t,(function(t,e){var r=n._createEntry(t,e);i.appendChild(r)})),i},l.prototype._createEntry=function(t,e){var i=p("<div>"),r=u(i);if(r.add("entry"),t.className&&t.className.split(" ").forEach((function(t){r.add(t)})),a(i,"data-id",e),t.label){var n=p("<span>");n.textContent=t.label,i.appendChild(n)}return t.imageUrl&&i.appendChild(p('<img src="'+t.imageUrl+'" />')),!0===t.active&&r.add("active"),!0===t.disabled&&r.add("disabled"),t.title&&(i.title=t.title),i},l.prototype._bindAutoClose=function(){this._eventBus.once(h,this.close,this)},l.prototype._unbindAutoClose=function(){this._eventBus.off(h,this.close,this)};export{l as default};
@@ -0,0 +1 @@
1
+ import t from"../../../../inherits-browser/dist/index.es.mjs";import n from"../../command/CommandInterceptor.mjs";function i(t){n.call(this,t),this.init()}i.$inject=["eventBus"],t(i,n),i.prototype.addRule=function(t,n,i){var o=this;"string"==typeof t&&(t=[t]),t.forEach((function(t){o.canExecute(t,n,(function(t,n,o){return i(t)}),!0)}))},i.prototype.init=function(){};export{i as default};
@@ -0,0 +1 @@
1
+ import{set as t,unset as n}from"../../util/Cursor.mjs";import{install as r}from"../../util/ClickTrap.mjs";import{delta as o}from"../../util/PositionUtil.mjs";import{closest as e,event as i}from"../../../../min-dom/dist/index.esm.mjs";import{toPoint as u}from"../../util/Event.mjs";function m(m,s){var a;function d(n){var e,i=a.start,d=a.button,l=u(n),f=o(l,i);if(!a.dragging&&(e=f,Math.sqrt(Math.pow(e.x,2)+Math.pow(e.y,2))>15)&&(a.dragging=!0,0===d&&r(m),t("grab")),a.dragging){var c=a.last||a.start;f=o(l,c),s.scroll({dx:f.x,dy:f.y}),a.last=l}n.preventDefault()}function l(t){i.unbind(document,"mousemove",d),i.unbind(document,"mouseup",l),a=null,n()}m.on("element.mousedown",500,(function(t){return function(t){if(e(t.target,".djs-draggable"))return;var n=t.button;if(n>=2||t.ctrlKey||t.shiftKey||t.altKey)return;return a={button:n,start:u(t)},i.bind(document,"mousemove",d),i.bind(document,"mouseup",l),!0}(t.originalEvent)})),this.isActive=function(){return!!a}}m.$inject=["eventBus","canvas"];export{m as default};
@@ -0,0 +1 @@
1
+ import a from"./MoveCanvas.mjs";var v={__init__:["moveCanvas"],moveCanvas:["type",a]};export{v as default};
@@ -0,0 +1 @@
1
+ import{closest as t,event as o}from"../../../../min-dom/dist/index.esm.mjs";import{getStepSize as e,cap as i}from"./ZoomUtil.mjs";import{log10 as a}from"../../util/Math.mjs";import{bind as n}from"../../../../min-dash/dist/index.esm.mjs";var s=Math.sign||function(t){return t>=0?1:-1},l={min:.2,max:4};function r(t,o,e){t=t||{},this._enabled=!1,this._canvas=e,this._container=e._container,this._handleWheel=n(this._handleWheel,this),this._totalDelta=0,this._scale=t.scale||.75;var i=this;o.on("canvas.init",(function(o){i._init(!1!==t.enabled)}))}r.$inject=["config.zoomScroll","eventBus","canvas"],r.prototype.scroll=function(t){this._canvas.scroll(t)},r.prototype.reset=function(){this._canvas.zoom("fit-viewport")},r.prototype.zoom=function(t,o){var i=e(l,20);this._totalDelta+=t,Math.abs(this._totalDelta)>.1&&(this._zoom(t,o,i),this._totalDelta=0)},r.prototype._handleWheel=function(o){if(!t(o.target,".djs-scrollable",!0)){var e=this._container;o.preventDefault();var i,a=o.ctrlKey,n=o.shiftKey,l=-1*this._scale;if(l*=a?0===o.deltaMode?.02:.32:0===o.deltaMode?1:16,a){var r=e.getBoundingClientRect(),h={x:o.clientX-r.left,y:o.clientY-r.top};i=Math.sqrt(Math.pow(o.deltaY,2)+Math.pow(o.deltaX,2))*s(o.deltaY)*l,this.zoom(i,h)}else i=n?{dx:l*o.deltaY,dy:0}:{dx:l*o.deltaX,dy:l*o.deltaY},this.scroll(i)}},r.prototype.stepZoom=function(t,o){var i=e(l,10);this._zoom(t,o,i)},r.prototype._zoom=function(t,o,e){var n=this._canvas,s=t>0?1:-1,r=a(n.zoom()),h=Math.round(r/e)*e;h+=e*s;var c=Math.pow(10,h);n.zoom(i(l,c),o)},r.prototype.toggle=function(t){var e=this._container,i=this._handleWheel,a=this._enabled;return void 0===t&&(t=!a),a!==t&&o[t?"bind":"unbind"](e,"wheel",i,!1),this._enabled=t,t},r.prototype._init=function(t){this.toggle(t)};export{r as default};
@@ -0,0 +1 @@
1
+ import{log10 as t}from"../../util/Math.mjs";function a(a,m){var n=t(a.min),r=t(a.max);return(Math.abs(n)+Math.abs(r))/m}function m(t,a){return Math.max(t.min,Math.min(t.max,a))}export{m as cap,a as getStepSize};
@@ -0,0 +1 @@
1
+ function n(n,e){function t(){return!1}return e=e||"element.click",n.once(e,5e3,t),function(){n.off(e,t)}}export{n as install};
@@ -0,0 +1 @@
1
+ import{classes as o}from"../../../min-dom/dist/index.esm.mjs";var r=/^djs-cursor-.*$/;function d(d){var n=o(document.body);n.removeMatching(r),d&&n.add("djs-cursor-"+d)}function n(){d(null)}export{d as set,n as unset};
@@ -0,0 +1 @@
1
+ function n(n){return n.originalEvent||n.srcEvent}function t(n){return n.pointers&&n.pointers.length&&(n=n.pointers[0]),n.touches&&n.touches.length&&(n=n.touches[0]),n?{x:n.clientX,y:n.clientY}:null}export{n as getOriginal,t as toPoint};
@@ -0,0 +1 @@
1
+ function t(t){return Math.log(t)/Math.log(10)}export{t as log10};
@@ -0,0 +1 @@
1
+ import{getOriginal as r}from"./Event.mjs";import{isMac as t}from"./Platform.mjs";export{isMac}from"./Platform.mjs";function o(t,o){return(r(t)||t).button===o}function m(r){return o(r,0)}function n(o){var n=r(o)||o;return!!m(o)&&(t()?n.metaKey:n.ctrlKey)}export{n as hasPrimaryModifier,o as isButton,m as isPrimaryButton};
@@ -0,0 +1 @@
1
+ function t(){return/mac/i.test(navigator.platform)}export{t as isMac};
@@ -0,0 +1 @@
1
+ function x(x,n){return{x:x.x-n.x,y:x.y-n.y}}export{x as delta};
@@ -0,0 +1 @@
1
+ import{create as n,attr as r}from"../../../tiny-svg/dist/index.esm.mjs";function t(n){for(var r,t="",i=0;r=n[i];i++)t+=r.x+","+r.y+" ";return t}function i(i,o){var e=n("polyline");return r(e,{points:t(i)}),o&&r(e,o),e}export{i as createLine,t as toSVGPoints};
@@ -0,0 +1 @@
1
+ import{createTransform as t,transform as a}from"../../../tiny-svg/dist/index.esm.mjs";function e(e,s,r,n,o){var i=t();i.setTranslate(s,r);var v=t();v.setRotate(n||0,0,0);var f=t();f.setScale(o||1,o||1),a(e,[i,v,f])}function s(e,s,r){var n=t();n.setTranslate(s,r),a(e,n)}function r(e,s){var r=t();r.setRotate(s,0,0),a(e,r)}export{r as rotate,e as transform,s as translate};
@@ -0,0 +1 @@
1
+ var t,o,r=(t=function(t){var o=t.exports=function(t,r){if(r||(r=16),void 0===t&&(t=128),t<=0)return"0";for(var e=Math.log(Math.pow(2,t))/Math.log(r),n=2;e===1/0;n*=2)e=Math.log(Math.pow(2,t/n))/Math.log(r)*n;var a=e-Math.floor(e),i="";for(n=0;n<Math.floor(e);n++)i=Math.floor(Math.random()*r).toString(r)+i;if(a){var s=Math.pow(r,a);i=Math.floor(Math.random()*s).toString(r)+i}var h=parseInt(i,r);return h!==1/0&&h>=Math.pow(2,t)?o(t,r):i};o.rack=function(t,r,e){var n=function(n){var i=0;do{if(i++>10){if(!e)throw new Error("too many ID collisions, use more bits");t+=e}var s=o(t,r)}while(Object.hasOwnProperty.call(a,s));return a[s]=n,s},a=n.hats={};return n.get=function(t){return n.hats[t]},n.set=function(t,o){return n.hats[t]=o,n},n.bits=t||128,n.base=r||16,n}},t(o={exports:{}},o.exports),o.exports);function e(t){if(!(this instanceof e))return new e(t);t=t||[128,36,1],this._seed=t.length?r.rack(t[0],t[1],t[2]):t}e.prototype.next=function(t){return this._seed(t||!0)},e.prototype.nextPrefixed=function(t,o){var r;do{r=t+this.next(!0)}while(this.assigned(r));return this.claim(r,o),r},e.prototype.claim=function(t,o){this._seed.set(t,o||!0)},e.prototype.assigned=function(t){return this._seed.get(t)||!1},e.prototype.unclaim=function(t){delete this._seed.hats[t]},e.prototype.clear=function(){var t,o=this._seed.hats;for(t in o)this.unclaim(t)};export{e as default};
@@ -0,0 +1 @@
1
+ import{getDefaultExportFromCjs as r}from"../../_virtual/_commonjsHelpers.mjs";import{i as t}from"../../_virtual/inherits.mjs";import{__require as i}from"./inherits_browser.mjs";!function(r){try{var t=require("util");if("function"!=typeof t.inherits)throw"";r.exports=t.inherits}catch(t){r.exports=i()}}(t);var e=r(t.exports);export{e as default};
@@ -0,0 +1 @@
1
+ import{i as t}from"../../_virtual/inherits_browser.mjs";var r;function e(){return r||(r=1,"function"==typeof Object.create?t.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,r){if(r){t.super_=r;var e=function(){};e.prototype=r.prototype,t.prototype=new e,t.prototype.constructor=t}}),t.exports}export{e as __require};
@@ -0,0 +1 @@
1
+ function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}export{e as default};
@@ -0,0 +1 @@
1
+ var n=Object.prototype.toString,t=Object.prototype.hasOwnProperty;function r(n){return void 0===n}function o(n){return void 0!==n}function e(t){return"[object Array]"===n.call(t)}function c(t){return"[object Object]"===n.call(t)}function u(t){return"[object Number]"===n.call(t)}function i(t){var r=n.call(t);return"[object Function]"===r||"[object AsyncFunction]"===r||"[object GeneratorFunction]"===r||"[object AsyncGeneratorFunction]"===r||"[object Proxy]"===r}function a(n,r){return t.call(n,r)}function f(n,t){var o;if(!r(n)){var c=e(n)?p:j;for(var u in n)if(a(n,u)&&!1===t(o=n[u],c(u)))return o}}function b(n){return n&&Object.keys(n)||[]}function l(n){return b(n).length}function j(n){return n}function p(n){return Number(n)}function v(n,t){return n.bind(t)}function y(){return y=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},y.apply(this,arguments)}function O(n){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];return y.apply(void 0,[n].concat(r))}function s(n,t){var r={};return f(Object(n),(function(n,o){-1===t.indexOf(o)&&(r[o]=n)})),r}export{O as assign,v as bind,f as forEach,a as has,e as isArray,o as isDefined,i as isFunction,u as isNumber,c as isObject,r as isUndefined,b as keys,s as omit,l as size};
@@ -0,0 +1 @@
1
+ var t=Object.prototype.toString,e=Object.prototype.hasOwnProperty;function r(t,r){return e.call(t,r)}function n(e,n){var l;if(void 0!==e){var a=function(e){return"[object Array]"===t.call(e)}(e)?o:i;for(var s in e)if(r(e,s)&&!1===n(l=e[s],a(s)))return l}}function i(t){return t}function o(t){return Number(t)}function l(t){for(var e=t.style,r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return n(i,(function(t){t&&n(t,(function(t,r){e[r]=t}))})),t}function a(t,e,r){return 2==arguments.length?t.getAttribute(e):null===r?t.removeAttribute(e):(t.setAttribute(e,r),t)}var s=[].indexOf,u=function(t,e){if(s)return t.indexOf(e);for(var r=0;r<t.length;++r)if(t[r]===e)return r;return-1},c=/\s+/,d=Object.prototype.toString;function h(t){return new f(t)}function f(t){if(!t||!t.nodeType)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}f.prototype.add=function(t){if(this.list)return this.list.add(t),this;var e=this.array();return~u(e,t)||e.push(t),this.el.className=e.join(" "),this},f.prototype.remove=function(t){if("[object RegExp]"==d.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var e=this.array(),r=u(e,t);return~r&&e.splice(r,1),this.el.className=e.join(" "),this},f.prototype.removeMatching=function(t){for(var e=this.array(),r=0;r<e.length;r++)t.test(e[r])&&this.remove(e[r]);return this},f.prototype.toggle=function(t,e){return this.list?(void 0!==e?e!==this.list.toggle(t,e)&&this.list.toggle(t):this.list.toggle(t),this):(void 0!==e?e?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},f.prototype.array=function(){var t=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(c);return""===t[0]&&t.shift(),t},f.prototype.has=f.prototype.contains=function(t){return this.list?this.list.contains(t):!!~u(this.array(),t)};var p="undefined"!=typeof Element?Element.prototype:{},v=p.matches||p.matchesSelector||p.webkitMatchesSelector||p.mozMatchesSelector||p.msMatchesSelector||p.oMatchesSelector,g=function(t,e){if(!t||1!==t.nodeType)return!1;if(v)return v.call(t,e);for(var r=t.parentNode.querySelectorAll(e),n=0;n<r.length;n++)if(r[n]==t)return!0;return!1};function m(t,e,r){for(var n=r?t:t.parentNode;n&&n.nodeType!==document.DOCUMENT_NODE&&n.nodeType!==document.DOCUMENT_FRAGMENT_NODE;){if(g(n,e))return n;n=n.parentNode}return g(n,e)?n:null}var y=window.addEventListener?"addEventListener":"attachEvent",b=window.removeEventListener?"removeEventListener":"detachEvent",E="addEventListener"!==y?"on":"",w={bind:function(t,e,r,n){return t[y](E+e,r,n||!1),r},unbind:function(t,e,r,n){return t[b](E+e,r,n||!1),r}},N=["focus","blur"];var T,C={bind:function(t,e,r,n,i){return-1!==N.indexOf(r)&&(i=!0),w.bind(t,r,(function(r){var i=r.target||r.srcElement;r.delegateTarget=m(i,e,!0),r.delegateTarget&&n.call(t,r)}),i)},unbind:function(t,e,r,n){return-1!==N.indexOf(e)&&(n=!0),w.unbind(t,e,r,n)}},M=function(t,e){if("string"!=typeof t)throw new TypeError("String expected");e||(e=document);var r=/<([\w:]+)/.exec(t);if(!r)return e.createTextNode(t);t=t.replace(/^\s+|\s+$/g,"");var n=r[1];if("body"==n){return(i=e.createElement("html")).innerHTML=t,i.removeChild(i.lastChild)}var i,o=x[n]||x._default,l=o[0],a=o[1],s=o[2];(i=e.createElement("div")).innerHTML=a+t+s;for(;l--;)i=i.lastChild;if(i.firstChild==i.lastChild)return i.removeChild(i.firstChild);var u=e.createDocumentFragment();for(;i.firstChild;)u.appendChild(i.removeChild(i.firstChild));return u},O=!1;"undefined"!=typeof document&&((T=document.createElement("div")).innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',O=!T.getElementsByTagName("link").length,T=void 0);var x={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:O?[1,"X<div>","</div>"]:[0,"",""]};function S(t,e){return(e=e||document).querySelector(t)}function A(t){t.parentNode&&t.parentNode.removeChild(t)}x.td=x.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],x.option=x.optgroup=[1,'<select multiple="multiple">',"</select>"],x.thead=x.tbody=x.colgroup=x.caption=x.tfoot=[1,"<table>","</table>"],x.polyline=x.ellipse=x.polygon=x.circle=x.text=x.line=x.path=x.rect=x.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"];export{l as assignStyle,a as attr,h as classes,m as closest,C as delegate,M as domify,w as event,g as matches,S as query,A as remove};
@@ -0,0 +1 @@
1
+ function t(t,r){return r.appendChild(function(t,r){if(t.ownerDocument!==r.ownerDocument)try{return r.ownerDocument.importNode(t,!0)}catch(t){}return t}(t,r))}function r(r,e){return t(e,r),r}var e={"alignment-baseline":1,"baseline-shift":1,clip:1,"clip-path":1,"clip-rule":1,color:1,"color-interpolation":1,"color-interpolation-filters":1,"color-profile":1,"color-rendering":1,cursor:1,direction:1,display:1,"dominant-baseline":1,"enable-background":1,fill:1,"fill-opacity":1,"fill-rule":1,filter:1,"flood-color":1,"flood-opacity":1,font:1,"font-family":1,"font-size":2,"font-size-adjust":1,"font-stretch":1,"font-style":1,"font-variant":1,"font-weight":1,"glyph-orientation-horizontal":1,"glyph-orientation-vertical":1,"image-rendering":1,kerning:1,"letter-spacing":1,"lighting-color":1,marker:1,"marker-end":1,"marker-mid":1,"marker-start":1,mask:1,opacity:1,overflow:1,"pointer-events":1,"shape-rendering":1,"stop-color":1,"stop-opacity":1,stroke:1,"stroke-dasharray":1,"stroke-dashoffset":1,"stroke-linecap":1,"stroke-linejoin":1,"stroke-miterlimit":1,"stroke-opacity":1,"stroke-width":2,"text-anchor":1,"text-decoration":1,"text-rendering":1,"unicode-bidi":1,visibility:1,"word-spacing":1,"writing-mode":1};function i(t,r,i){var n=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),o=e[n];o?(2===o&&"number"==typeof i&&(i=String(i)+"px"),t.style[n]=i):t.setAttributeNS(null,r,i)}function n(t,r,n){if("string"==typeof r){if(void 0===n)return function(t,r){return e[r]?t.style[r]:t.getAttributeNS(null,r)}(t,r);i(t,r,n)}else!function(t,r){var e,n,o=Object.keys(r);for(e=0;n=o[e];e++)i(t,n,r[n])}(t,r);return t}function o(t,r){if(t.indexOf)return t.indexOf(r);for(var e=0;e<t.length;++e)if(t[e]===r)return e;return-1}var s=/\s+/,a=Object.prototype.toString;function l(t){return void 0!==t}function c(t){return new f(t)}function f(t){if(!t||!t.nodeType)throw new Error("A DOM element reference is required");this.el=t,this.list=t.classList}f.prototype.add=function(t){if(this.list)return this.list.add(t),this;var r=this.array();return~o(r,t)||r.push(t),l(this.el.className.baseVal)?this.el.className.baseVal=r.join(" "):this.el.className=r.join(" "),this},f.prototype.remove=function(t){if("[object RegExp]"===a.call(t))return this.removeMatching(t);if(this.list)return this.list.remove(t),this;var r=this.array(),e=o(r,t);return~e&&r.splice(e,1),this.el.className.baseVal=r.join(" "),this},f.prototype.removeMatching=function(t){for(var r=this.array(),e=0;e<r.length;e++)t.test(r[e])&&this.remove(r[e]);return this},f.prototype.toggle=function(t,r){return this.list?(l(r)?r!==this.list.toggle(t,r)&&this.list.toggle(t):this.list.toggle(t),this):(l(r)?r?this.add(t):this.remove(t):this.has(t)?this.remove(t):this.add(t),this)},f.prototype.array=function(){var t=(this.el.getAttribute("class")||"").replace(/^\s+|\s+$/g,"").split(s);return""===t[0]&&t.shift(),t},f.prototype.has=f.prototype.contains=function(t){return this.list?this.list.contains(t):!!~o(this.array(),t)};var u="http://www.w3.org/2000/svg",h='<svg xmlns="'+u+'"';function p(t){var r=!1;"<svg"===t.substring(0,4)?-1===t.indexOf(u)&&(t=h+t.substring(4)):(t=h+">"+t+"</svg>",r=!0);var e=function(t){var r;return(r=new DOMParser).async=!1,r.parseFromString(t,"text/xml")}(t);if(!r)return e;for(var i=document.createDocumentFragment(),n=e.firstChild;n.firstChild;)i.appendChild(n.firstChild);return i}function d(t,r){var e;return"<"===t.charAt(0)?(e=p(t).firstChild,e=document.importNode(e,!0)):e=document.createElementNS(u,t),r&&n(e,r),e}var m=d("svg");function g(t){return t?m.createSVGTransformFromMatrix(t):m.createSVGTransform()}function v(t,r){return r instanceof SVGMatrix?t.createSVGTransformFromMatrix(r):r}function y(t,r){var e=t.transform.baseVal;return r&&(Array.isArray(r)||(r=[r]),function(t,r){var e,i;for(t.clear(),e=0;i=r[e];e++)t.appendItem(v(t,i))}(e,r)),e.consolidate()}export{r as append,t as appendTo,n as attr,c as classes,d as create,g as createTransform,y as transform};