@fewangsit/wangsvue 1.5.219-alpha.0 → 1.5.219-alpha.2

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 (598) hide show
  1. package/animation/index.es.js +54 -37
  2. package/assets/lottiejs/loading-page.es.js +14 -9
  3. package/assets/lottiejs/loading-plane.es.js +2 -2
  4. package/assets/lottiejs/loading-table.es.js +14 -9
  5. package/assets/lottiejs/no-data.es.js +14 -9
  6. package/backgroundimagecropper/index.es.js +61 -37
  7. package/badge/index.es.js +77 -67
  8. package/badgegroup/index.es.js +62 -50
  9. package/basecalendar/index.es.js +1258 -735
  10. package/basetree/index.es.js +213 -113
  11. package/breadcrumb/index.es.js +46 -38
  12. package/button/index.es.js +60 -54
  13. package/buttonbulkaction/index.es.js +168 -117
  14. package/buttoncopy/index.es.js +25 -22
  15. package/buttondownload/index.es.js +125 -76
  16. package/buttonfilter/index.es.js +21 -15
  17. package/buttonradio/index.es.js +91 -67
  18. package/buttonsearch/index.es.js +62 -46
  19. package/buttonselecttree/index.es.js +233 -172
  20. package/buttontoggle/index.es.js +8 -6
  21. package/calendar/index.es.js +113 -58
  22. package/card/index.es.js +44 -42
  23. package/checkbox/index.es.js +105 -74
  24. package/codesnippet/index.es.js +91 -71
  25. package/codesnippetadapter/index.es.js +25 -21
  26. package/columnlist/index.es.js +249 -171
  27. package/components.d.ts +0 -21
  28. package/config/defaultProps.es.js +9 -9
  29. package/config/index.es.js +11 -10
  30. package/config/locale.es.js +2 -2
  31. package/customcolumn/index.es.js +95 -78
  32. package/datatable/index.es.js +1071 -732
  33. package/dialog/index.es.js +54 -54
  34. package/dialogconfirm/index.es.js +90 -75
  35. package/dialogform/index.es.js +170 -133
  36. package/dialogselecttree/index.es.js +242 -194
  37. package/directives/focus.es.js +13 -8
  38. package/dropdown/index.es.js +250 -196
  39. package/editor/index.es.js +694 -498
  40. package/editorbutton/index.es.js +21 -19
  41. package/event-bus/index.es.js +3 -3
  42. package/event-bus/mitt.es.js +37 -20
  43. package/fieldwrapper/index.es.js +30 -25
  44. package/fileupload/index.es.js +230 -140
  45. package/filtercontainer/index.es.js +299 -222
  46. package/form/index.es.js +176 -126
  47. package/gallerypreview/index.es.js +138 -101
  48. package/icon/index.es.js +38 -36
  49. package/image/index.es.js +161 -108
  50. package/imagecompressor/index.es.js +616 -449
  51. package/imageinputinfo/index.es.js +26 -22
  52. package/inlinemessage/index.es.js +77 -65
  53. package/inputbadge/index.es.js +230 -156
  54. package/inputcurrency/index.es.js +146 -109
  55. package/inputemail/index.es.js +18 -16
  56. package/inputgroup/index.es.js +19 -16
  57. package/inputnumber/index.es.js +252 -182
  58. package/inputpassword/index.es.js +120 -94
  59. package/inputphonenumber/index.es.js +1017 -550
  60. package/inputrangenumber/index.es.js +129 -98
  61. package/inputtext/index.es.js +264 -189
  62. package/inputurl/index.es.js +31 -29
  63. package/invisiblefield/index.es.js +24 -16
  64. package/litedropdown/index.es.js +87 -81
  65. package/loading/index.es.js +21 -19
  66. package/loading-page-BXZ4fLOS.js +8 -0
  67. package/loading-page-BuLpsb_1.js +8 -0
  68. package/loading-page-CNqVBg__.js +4 -0
  69. package/loading-page-DbhhZih2.js +4 -0
  70. package/loading-page-DjfWXoOy.js +8 -0
  71. package/loading-page-S-KRY5zm.js +4 -0
  72. package/loading-plane-C1mi7Whv.js +4 -0
  73. package/loading-plane-CWq1hz_l.js +8 -0
  74. package/loading-table-B7LAXzAp.js +4 -0
  75. package/loading-table-BLmgKUsR.js +4 -0
  76. package/loading-table-CG7-cuhv.js +8 -0
  77. package/loading-table-CUPS49ta.js +4 -0
  78. package/loading-table-CuWWrTbv.js +8 -0
  79. package/loading-table-DbBzVwaZ.js +8 -0
  80. package/mentionlist/index.es.js +77 -44
  81. package/mentionsection/index.es.js +53 -43
  82. package/menu/index.es.js +65 -51
  83. package/menuitem/index.es.js +39 -37
  84. package/multirow/index.es.js +29 -28
  85. package/multiselect/index.es.js +184 -152
  86. package/no-data-B781skt3.js +4 -0
  87. package/no-data-CAksOnDl.js +4 -0
  88. package/no-data-DCsjBXQR.js +4 -0
  89. package/no-data-Dz0QOe7Q.js +8 -0
  90. package/no-data-_Huxiv9q.js +8 -0
  91. package/no-data-ybRQontJ.js +8 -0
  92. package/overlaypanel/index.es.js +49 -36
  93. package/package.json +1 -1
  94. package/paginator/index.es.js +36 -33
  95. package/plugins/WangsVue.es.js +63 -45
  96. package/plugins/formValidation.es.js +15 -11
  97. package/progressbar/index.es.js +39 -32
  98. package/quickfilter/index.es.js +94 -81
  99. package/stats.html +1 -1
  100. package/style.css +2 -2
  101. package/tabmenu/index.es.js +18 -16
  102. package/textarea/index.es.js +94 -72
  103. package/timeline/index.es.js +124 -102
  104. package/timelinecontentbytype/index.es.js +114 -92
  105. package/toast/index.es.js +67 -54
  106. package/toggleswitch/index.es.js +83 -66
  107. package/tree/index.es.js +306 -198
  108. package/treenode/index.es.js +464 -339
  109. package/treesearchinput/index.es.js +32 -26
  110. package/usergroup/index.es.js +83 -67
  111. package/username/index.es.js +99 -85
  112. package/utils/addAttachment.util.es.js +47 -21
  113. package/utils/baseToast.util.es.js +41 -33
  114. package/utils/convertJsonImage.util.es.js +24 -24
  115. package/utils/date.util.es.js +131 -106
  116. package/utils/exportToExcel.util.es.js +81 -47
  117. package/utils/filterOptions.util.es.js +8 -2
  118. package/utils/genPlaceholder.util.es.js +30 -16
  119. package/utils/getProjectPermission.util.es.js +15 -12
  120. package/utils/getSalesRole.util.es.js +4 -4
  121. package/utils/getUser.util.es.js +2 -2
  122. package/utils/getUserType.util.es.js +13 -8
  123. package/utils/isIntersect.es.js +4 -2
  124. package/utils/mergePropsWithDefaults.util.es.js +7 -6
  125. package/utils/object.util.es.js +88 -54
  126. package/utils/queryParamsStringfy.util.es.js +19 -11
  127. package/utils/role.util.es.js +5 -4
  128. package/utils/statusSeverity.util.es.js +20 -5
  129. package/utils/textFormatter.util.es.js +28 -50
  130. package/utils/toast.util.es.js +8 -5
  131. package/utils/xlsx.util.es.js +12 -6
  132. package/validatormessage/index.es.js +9 -9
  133. package/vendor/@popperjs/core/lib/createPopper.es.js +110 -83
  134. package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +14 -13
  135. package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +33 -18
  136. package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +55 -31
  137. package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +43 -22
  138. package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +4 -4
  139. package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +5 -5
  140. package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +23 -13
  141. package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +4 -4
  142. package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +17 -9
  143. package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +3 -3
  144. package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +11 -7
  145. package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +42 -26
  146. package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +13 -10
  147. package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +13 -7
  148. package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +25 -15
  149. package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +8 -7
  150. package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +8 -6
  151. package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +6 -6
  152. package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +16 -15
  153. package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +4 -4
  154. package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +5 -5
  155. package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +4 -4
  156. package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +17 -11
  157. package/vendor/@popperjs/core/lib/enums.es.js +43 -20
  158. package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +49 -25
  159. package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +61 -26
  160. package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +101 -69
  161. package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +30 -16
  162. package/vendor/@popperjs/core/lib/modifiers/flip.es.js +99 -60
  163. package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -31
  164. package/vendor/@popperjs/core/lib/modifiers/offset.es.js +32 -20
  165. package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +11 -11
  166. package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +91 -40
  167. package/vendor/@popperjs/core/lib/popper.es.js +14 -13
  168. package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +29 -21
  169. package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +41 -36
  170. package/vendor/@popperjs/core/lib/utils/debounce.es.js +11 -7
  171. package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +42 -28
  172. package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +5 -4
  173. package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +3 -3
  174. package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +3 -3
  175. package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +2 -2
  176. package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +3 -3
  177. package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +5 -5
  178. package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +5 -5
  179. package/vendor/@popperjs/core/lib/utils/getVariation.es.js +3 -3
  180. package/vendor/@popperjs/core/lib/utils/math.es.js +6 -4
  181. package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +11 -10
  182. package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +4 -4
  183. package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +30 -22
  184. package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +7 -7
  185. package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -6
  186. package/vendor/@popperjs/core/lib/utils/within.es.js +8 -8
  187. package/vendor/@tiptap/core/dist/index.es.js +3494 -2000
  188. package/vendor/@tiptap/extension-bold/dist/index.es.js +29 -19
  189. package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +145 -71
  190. package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +32 -19
  191. package/vendor/@tiptap/extension-code/dist/index.es.js +22 -14
  192. package/vendor/@tiptap/extension-document/dist/index.es.js +4 -4
  193. package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +106 -51
  194. package/vendor/@tiptap/extension-heading/dist/index.es.js +38 -22
  195. package/vendor/@tiptap/extension-history/dist/index.es.js +11 -7
  196. package/vendor/@tiptap/extension-image/dist/index.es.js +20 -17
  197. package/vendor/@tiptap/extension-italic/dist/index.es.js +28 -18
  198. package/vendor/@tiptap/extension-link/dist/index.es.js +236 -147
  199. package/vendor/@tiptap/extension-list-item/dist/index.es.js +6 -6
  200. package/vendor/@tiptap/extension-mention/dist/index.es.js +98 -63
  201. package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +38 -25
  202. package/vendor/@tiptap/extension-paragraph/dist/index.es.js +8 -6
  203. package/vendor/@tiptap/extension-placeholder/dist/index.es.js +34 -27
  204. package/vendor/@tiptap/extension-text/dist/index.es.js +3 -3
  205. package/vendor/@tiptap/extension-underline/dist/index.es.js +16 -10
  206. package/vendor/@tiptap/suggestion/dist/index.es.js +174 -90
  207. package/vendor/@tiptap/vue-3/dist/index.es.js +287 -188
  208. package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +17 -14
  209. package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +69 -55
  210. package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +26 -22
  211. package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +147 -102
  212. package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +102 -77
  213. package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +1298 -551
  214. package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +60 -49
  215. package/vendor/@wangs-ui/core/components/wangs-button.es.js +19 -15
  216. package/vendor/@wangs-ui/core/components/wangs-icon.es.js +3 -3
  217. package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +3 -3
  218. package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +3 -3
  219. package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +116 -102
  220. package/vendor/@wangs-ui/vue/dist/index.es.js +77 -77
  221. package/vendor/base64toblob/base64toblob.es.js +31 -15
  222. package/vendor/highlight.js/es/core.es.js +5 -5
  223. package/vendor/highlight.js/es/languages/javascript.es.js +237 -193
  224. package/vendor/highlight.js/es/languages/json.es.js +18 -15
  225. package/vendor/highlight.js/es/languages/typescript.es.js +288 -228
  226. package/vendor/highlight.js/es/languages/vbscript-html.es.js +2 -2
  227. package/vendor/highlight.js/lib/core.es.js +1144 -666
  228. package/vendor/linkifyjs/dist/linkify.es.es.js +858 -405
  229. package/vendor/lodash/_Symbol.es.js +11 -8
  230. package/vendor/lodash/_baseGetTag.es.js +19 -12
  231. package/vendor/lodash/_baseTrim.es.js +13 -10
  232. package/vendor/lodash/_freeGlobal.es.js +10 -8
  233. package/vendor/lodash/_getRawTag.es.js +28 -15
  234. package/vendor/lodash/_objectToString.es.js +12 -9
  235. package/vendor/lodash/_root.es.js +12 -8
  236. package/vendor/lodash/_trimmedEndIndex.es.js +14 -11
  237. package/vendor/lodash/debounce.es.js +92 -54
  238. package/vendor/lodash/isObject.es.js +11 -9
  239. package/vendor/lodash/isObjectLike.es.js +10 -8
  240. package/vendor/lodash/isSymbol.es.js +14 -11
  241. package/vendor/lodash/now.es.js +12 -9
  242. package/vendor/lodash/throttle.es.js +25 -17
  243. package/vendor/lodash/toNumber.es.js +33 -23
  244. package/vendor/lodash-es/_DataView.es.js +4 -4
  245. package/vendor/lodash-es/_Hash.es.js +17 -16
  246. package/vendor/lodash-es/_ListCache.es.js +17 -16
  247. package/vendor/lodash-es/_Map.es.js +4 -4
  248. package/vendor/lodash-es/_MapCache.es.js +17 -16
  249. package/vendor/lodash-es/_Promise.es.js +4 -4
  250. package/vendor/lodash-es/_Set.es.js +4 -4
  251. package/vendor/lodash-es/_SetCache.es.js +12 -10
  252. package/vendor/lodash-es/_Stack.es.js +15 -15
  253. package/vendor/lodash-es/_Symbol.es.js +3 -3
  254. package/vendor/lodash-es/_Uint8Array.es.js +3 -3
  255. package/vendor/lodash-es/_WeakMap.es.js +4 -4
  256. package/vendor/lodash-es/_arrayEach.es.js +9 -5
  257. package/vendor/lodash-es/_arrayFilter.es.js +9 -6
  258. package/vendor/lodash-es/_arrayLikeKeys.es.js +21 -17
  259. package/vendor/lodash-es/_arrayPush.es.js +7 -5
  260. package/vendor/lodash-es/_arraySome.es.js +9 -6
  261. package/vendor/lodash-es/_assignValue.es.js +10 -7
  262. package/vendor/lodash-es/_assocIndexOf.es.js +9 -6
  263. package/vendor/lodash-es/_baseAssignValue.es.js +13 -9
  264. package/vendor/lodash-es/_baseClone.es.js +67 -49
  265. package/vendor/lodash-es/_baseCreate.es.js +15 -11
  266. package/vendor/lodash-es/_baseGetAllKeys.es.js +6 -6
  267. package/vendor/lodash-es/_baseGetTag.es.js +11 -7
  268. package/vendor/lodash-es/_baseIsArguments.es.js +6 -6
  269. package/vendor/lodash-es/_baseIsEqual.es.js +11 -5
  270. package/vendor/lodash-es/_baseIsEqualDeep.es.js +39 -26
  271. package/vendor/lodash-es/_baseIsMap.es.js +6 -6
  272. package/vendor/lodash-es/_baseIsNative.es.js +18 -12
  273. package/vendor/lodash-es/_baseIsSet.es.js +6 -6
  274. package/vendor/lodash-es/_baseIsTypedArray.es.js +11 -9
  275. package/vendor/lodash-es/_baseKeys.es.js +16 -11
  276. package/vendor/lodash-es/_baseTimes.es.js +7 -5
  277. package/vendor/lodash-es/_baseTrim.es.js +5 -5
  278. package/vendor/lodash-es/_baseUnary.es.js +4 -4
  279. package/vendor/lodash-es/_cacheHas.es.js +3 -3
  280. package/vendor/lodash-es/_cloneArrayBuffer.es.js +6 -5
  281. package/vendor/lodash-es/_cloneBuffer.es.js +11 -6
  282. package/vendor/lodash-es/_cloneDataView.es.js +5 -5
  283. package/vendor/lodash-es/_cloneRegExp.es.js +6 -5
  284. package/vendor/lodash-es/_cloneSymbol.es.js +5 -5
  285. package/vendor/lodash-es/_cloneTypedArray.es.js +5 -5
  286. package/vendor/lodash-es/_coreJsData.es.js +3 -3
  287. package/vendor/lodash-es/_defineProperty.es.js +7 -6
  288. package/vendor/lodash-es/_equalArrays.es.js +38 -28
  289. package/vendor/lodash-es/_equalByTag.es.js +55 -41
  290. package/vendor/lodash-es/_equalObjects.es.js +42 -28
  291. package/vendor/lodash-es/_freeGlobal.es.js +2 -2
  292. package/vendor/lodash-es/_getAllKeys.es.js +6 -6
  293. package/vendor/lodash-es/_getMapData.es.js +5 -5
  294. package/vendor/lodash-es/_getNative.es.js +6 -6
  295. package/vendor/lodash-es/_getPrototype.es.js +3 -3
  296. package/vendor/lodash-es/_getRawTag.es.js +20 -10
  297. package/vendor/lodash-es/_getSymbols.es.js +15 -8
  298. package/vendor/lodash-es/_getTag.es.js +31 -25
  299. package/vendor/lodash-es/_getValue.es.js +3 -3
  300. package/vendor/lodash-es/_hashClear.es.js +5 -4
  301. package/vendor/lodash-es/_hashDelete.es.js +5 -4
  302. package/vendor/lodash-es/_hashGet.es.js +11 -9
  303. package/vendor/lodash-es/_hashHas.es.js +7 -6
  304. package/vendor/lodash-es/_hashSet.es.js +8 -6
  305. package/vendor/lodash-es/_initCloneArray.es.js +10 -5
  306. package/vendor/lodash-es/_initCloneByTag.es.js +39 -38
  307. package/vendor/lodash-es/_initCloneObject.es.js +6 -6
  308. package/vendor/lodash-es/_isIndex.es.js +7 -5
  309. package/vendor/lodash-es/_isKeyable.es.js +4 -4
  310. package/vendor/lodash-es/_isMasked.es.js +7 -7
  311. package/vendor/lodash-es/_isPrototype.es.js +5 -5
  312. package/vendor/lodash-es/_listCacheClear.es.js +4 -3
  313. package/vendor/lodash-es/_listCacheDelete.es.js +17 -9
  314. package/vendor/lodash-es/_listCacheGet.es.js +5 -5
  315. package/vendor/lodash-es/_listCacheHas.es.js +4 -4
  316. package/vendor/lodash-es/_listCacheSet.es.js +11 -5
  317. package/vendor/lodash-es/_mapCacheClear.es.js +10 -9
  318. package/vendor/lodash-es/_mapCacheDelete.es.js +6 -5
  319. package/vendor/lodash-es/_mapCacheGet.es.js +4 -4
  320. package/vendor/lodash-es/_mapCacheHas.es.js +4 -4
  321. package/vendor/lodash-es/_mapCacheSet.es.js +7 -5
  322. package/vendor/lodash-es/_mapToArray.es.js +7 -6
  323. package/vendor/lodash-es/_nativeCreate.es.js +3 -3
  324. package/vendor/lodash-es/_nativeKeys.es.js +3 -3
  325. package/vendor/lodash-es/_nodeUtil.es.js +13 -6
  326. package/vendor/lodash-es/_objectToString.es.js +5 -4
  327. package/vendor/lodash-es/_overArg.es.js +4 -4
  328. package/vendor/lodash-es/_root.es.js +4 -3
  329. package/vendor/lodash-es/_setCacheAdd.es.js +5 -4
  330. package/vendor/lodash-es/_setCacheHas.es.js +3 -3
  331. package/vendor/lodash-es/_setToArray.es.js +7 -6
  332. package/vendor/lodash-es/_stackClear.es.js +5 -4
  333. package/vendor/lodash-es/_stackDelete.es.js +5 -4
  334. package/vendor/lodash-es/_stackGet.es.js +3 -3
  335. package/vendor/lodash-es/_stackHas.es.js +3 -3
  336. package/vendor/lodash-es/_stackSet.es.js +18 -13
  337. package/vendor/lodash-es/_toSource.es.js +9 -8
  338. package/vendor/lodash-es/_trimmedEndIndex.es.js +7 -6
  339. package/vendor/lodash-es/cloneDeep.es.js +5 -5
  340. package/vendor/lodash-es/debounce.es.js +84 -49
  341. package/vendor/lodash-es/eq.es.js +3 -3
  342. package/vendor/lodash-es/isArguments.es.js +9 -6
  343. package/vendor/lodash-es/isArray.es.js +2 -2
  344. package/vendor/lodash-es/isArrayLike.es.js +5 -5
  345. package/vendor/lodash-es/isBuffer.es.js +9 -4
  346. package/vendor/lodash-es/isEqual.es.js +4 -4
  347. package/vendor/lodash-es/isFunction.es.js +10 -9
  348. package/vendor/lodash-es/isLength.es.js +4 -4
  349. package/vendor/lodash-es/isMap.es.js +6 -5
  350. package/vendor/lodash-es/isObject.es.js +4 -4
  351. package/vendor/lodash-es/isObjectLike.es.js +3 -3
  352. package/vendor/lodash-es/isSet.es.js +6 -5
  353. package/vendor/lodash-es/isSymbol.es.js +6 -6
  354. package/vendor/lodash-es/isTypedArray.es.js +6 -5
  355. package/vendor/lodash-es/keys.es.js +6 -6
  356. package/vendor/lodash-es/now.es.js +4 -4
  357. package/vendor/lodash-es/stubArray.es.js +2 -2
  358. package/vendor/lodash-es/stubFalse.es.js +3 -3
  359. package/vendor/lodash-es/toNumber.es.js +25 -18
  360. package/vendor/lodash-es/toString.es.js +2 -2
  361. package/vendor/lodash-es/uniqueId.es.js +6 -6
  362. package/vendor/orderedmap/dist/index.es.js +65 -49
  363. package/vendor/primevue/api/api.esm.es.js +214 -121
  364. package/vendor/primevue/avatar/avatar.esm.es.js +44 -41
  365. package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +12 -11
  366. package/vendor/primevue/avatargroup/avatargroup.esm.es.js +17 -16
  367. package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +6 -5
  368. package/vendor/primevue/badge/badge.esm.es.js +21 -20
  369. package/vendor/primevue/badge/style/badgestyle.esm.es.js +19 -18
  370. package/vendor/primevue/base/style/basestyle.esm.es.js +88 -99
  371. package/vendor/primevue/basecomponent/basecomponent.esm.es.js +327 -261
  372. package/vendor/primevue/basedirective/basedirective.esm.es.js +257 -186
  373. package/vendor/primevue/baseicon/baseicon.esm.es.js +55 -49
  374. package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +5 -35
  375. package/vendor/primevue/button/button.esm.es.js +76 -72
  376. package/vendor/primevue/button/style/buttonstyle.esm.es.js +46 -39
  377. package/vendor/primevue/card/card.esm.es.js +30 -29
  378. package/vendor/primevue/card/style/cardstyle.esm.es.js +6 -5
  379. package/vendor/primevue/checkbox/checkbox.esm.es.js +109 -101
  380. package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +12 -11
  381. package/vendor/primevue/config/config.esm.es.js +76 -58
  382. package/vendor/primevue/dialog/dialog.esm.es.js +421 -281
  383. package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +26 -22
  384. package/vendor/primevue/dropdown/dropdown.esm.es.js +956 -742
  385. package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +33 -31
  386. package/vendor/primevue/fileupload/fileupload.esm.es.js +559 -450
  387. package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +14 -13
  388. package/vendor/primevue/focustrap/focustrap.esm.es.js +128 -90
  389. package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +2 -2
  390. package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +13 -11
  391. package/vendor/primevue/icons/angledoubleright/index.esm.es.js +13 -11
  392. package/vendor/primevue/icons/angledown/index.esm.es.js +13 -11
  393. package/vendor/primevue/icons/angleleft/index.esm.es.js +13 -11
  394. package/vendor/primevue/icons/angleright/index.esm.es.js +13 -11
  395. package/vendor/primevue/icons/angleup/index.esm.es.js +13 -11
  396. package/vendor/primevue/icons/blank/index.esm.es.js +13 -11
  397. package/vendor/primevue/icons/check/index.esm.es.js +13 -11
  398. package/vendor/primevue/icons/chevrondown/index.esm.es.js +13 -11
  399. package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +17 -13
  400. package/vendor/primevue/icons/eye/index.esm.es.js +13 -11
  401. package/vendor/primevue/icons/eyeslash/index.esm.es.js +13 -11
  402. package/vendor/primevue/icons/infocircle/index.esm.es.js +13 -11
  403. package/vendor/primevue/icons/plus/index.esm.es.js +13 -11
  404. package/vendor/primevue/icons/refresh/index.esm.es.js +13 -11
  405. package/vendor/primevue/icons/search/index.esm.es.js +13 -11
  406. package/vendor/primevue/icons/searchminus/index.esm.es.js +13 -11
  407. package/vendor/primevue/icons/searchplus/index.esm.es.js +13 -11
  408. package/vendor/primevue/icons/spinner/index.esm.es.js +13 -11
  409. package/vendor/primevue/icons/times/index.esm.es.js +13 -11
  410. package/vendor/primevue/icons/timescircle/index.esm.es.js +13 -11
  411. package/vendor/primevue/icons/undo/index.esm.es.js +13 -11
  412. package/vendor/primevue/icons/upload/index.esm.es.js +13 -11
  413. package/vendor/primevue/icons/windowmaximize/index.esm.es.js +13 -11
  414. package/vendor/primevue/icons/windowminimize/index.esm.es.js +13 -11
  415. package/vendor/primevue/image/image.esm.es.js +280 -235
  416. package/vendor/primevue/image/style/imagestyle.esm.es.js +18 -17
  417. package/vendor/primevue/inputgroup/inputgroup.esm.es.js +17 -16
  418. package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +6 -5
  419. package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +17 -16
  420. package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +6 -5
  421. package/vendor/primevue/inputnumber/inputnumber.esm.es.js +834 -566
  422. package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +23 -22
  423. package/vendor/primevue/inputtext/inputtext.esm.es.js +32 -30
  424. package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +13 -12
  425. package/vendor/primevue/menu/menu.esm.es.js +402 -304
  426. package/vendor/primevue/menu/style/menustyle.esm.es.js +14 -13
  427. package/vendor/primevue/message/message.esm.es.js +126 -112
  428. package/vendor/primevue/message/style/messagestyle.esm.es.js +9 -8
  429. package/vendor/primevue/multiselect/multiselect.esm.es.js +1083 -835
  430. package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +38 -36
  431. package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +3 -3
  432. package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +275 -169
  433. package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +9 -8
  434. package/vendor/primevue/paginator/paginator.esm.es.js +513 -469
  435. package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +50 -43
  436. package/vendor/primevue/password/password.esm.es.js +306 -233
  437. package/vendor/primevue/password/style/passwordstyle.esm.es.js +26 -24
  438. package/vendor/primevue/portal/portal.esm.es.js +17 -17
  439. package/vendor/primevue/progressbar/progressbar.esm.es.js +37 -35
  440. package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +10 -9
  441. package/vendor/primevue/ripple/ripple.esm.es.js +90 -62
  442. package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +6 -5
  443. package/vendor/primevue/selectbutton/selectbutton.esm.es.js +213 -167
  444. package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +14 -13
  445. package/vendor/primevue/skeleton/skeleton.esm.es.js +28 -26
  446. package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +13 -11
  447. package/vendor/primevue/textarea/style/textareastyle.esm.es.js +12 -11
  448. package/vendor/primevue/textarea/textarea.esm.es.js +49 -33
  449. package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +9 -8
  450. package/vendor/primevue/timeline/timeline.esm.es.js +53 -52
  451. package/vendor/primevue/toast/style/toaststyle.esm.es.js +54 -46
  452. package/vendor/primevue/toast/toast.esm.es.js +309 -260
  453. package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +3 -3
  454. package/vendor/primevue/toastservice/toastservice.esm.es.js +16 -15
  455. package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +6 -5
  456. package/vendor/primevue/tooltip/tooltip.esm.es.js +383 -186
  457. package/vendor/primevue/usestyle/usestyle.esm.es.js +94 -64
  458. package/vendor/primevue/usetoast/usetoast.esm.es.js +9 -8
  459. package/vendor/primevue/utils/utils.esm.es.js +1078 -772
  460. package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +5 -67
  461. package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +655 -428
  462. package/vendor/prosemirror-commands/dist/index.es.js +454 -316
  463. package/vendor/prosemirror-history/dist/index.es.js +286 -178
  464. package/vendor/prosemirror-keymap/dist/index.es.js +68 -48
  465. package/vendor/prosemirror-model/dist/index.es.js +1905 -1436
  466. package/vendor/prosemirror-schema-list/dist/index.es.js +115 -73
  467. package/vendor/prosemirror-state/dist/index.es.js +467 -353
  468. package/vendor/prosemirror-transform/dist/index.es.js +1146 -829
  469. package/vendor/prosemirror-view/dist/index.es.js +4127 -2719
  470. package/vendor/rope-sequence/dist/index.es.js +165 -82
  471. package/vendor/simplebar-core/dist/index.es.js +670 -242
  472. package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +73 -60
  473. package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +511 -510
  474. package/vendor/tippy.js/dist/tippy.esm.es.js +971 -525
  475. package/vendor/vee-validate/dist/vee-validate.esm.es.js +1830 -1097
  476. package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +740 -738
  477. package/vendor/w3c-keyname/index.es.js +25 -13
  478. package/wangsvue.es.js +167 -208
  479. package/wangsvue.esm.browser.js +49417 -48026
  480. package/wangsvue.system.js +67600 -234
  481. package/api/index.es.js +0 -149
  482. package/apiitem/index.es.js +0 -611
  483. package/assignmember/index.es.js +0 -434
  484. package/attachment/index.es.js +0 -118
  485. package/attachmentchangelog/index.es.js +0 -79
  486. package/attachmentitem/index.es.js +0 -231
  487. package/attachmentthumbnail/index.es.js +0 -83
  488. package/changelog/index.d.ts +0 -164
  489. package/changelog/index.es.js +0 -85
  490. package/changelogfilter/index.es.js +0 -113
  491. package/changelogpage/index.d.ts +0 -184
  492. package/changelogpage/index.es.js +0 -176
  493. package/checklist/index.es.js +0 -571
  494. package/checklistchangelog/index.es.js +0 -85
  495. package/comment/index.d.ts +0 -187
  496. package/comment/index.es.js +0 -267
  497. package/commentblock/index.es.js +0 -337
  498. package/confirmdeploy/index.es.js +0 -64
  499. package/dependencycol/index.es.js +0 -32
  500. package/description/index.es.js +0 -135
  501. package/descriptiontab/index.es.js +0 -30
  502. package/detailmember/index.d.ts +0 -77
  503. package/detailmember/index.es.js +0 -32
  504. package/detailmemberadmin/index.es.js +0 -210
  505. package/detailmemberleader/index.es.js +0 -164
  506. package/detailmemberlog/index.es.js +0 -117
  507. package/detailsprint/index.d.ts +0 -86
  508. package/detailsprint/index.es.js +0 -414
  509. package/dialogaddattachment/index.es.js +0 -273
  510. package/dialogaddchecklist/index.es.js +0 -120
  511. package/dialogaddeditapi/index.es.js +0 -87
  512. package/dialogaddpbi/index.es.js +0 -197
  513. package/dialogadjustmenttask/index.es.js +0 -484
  514. package/dialogadjustmenttaskheader/index.es.js +0 -193
  515. package/dialogapichangelog/index.es.js +0 -83
  516. package/dialogassignmember/index.es.js +0 -171
  517. package/dialogconfirmapproval/index.es.js +0 -54
  518. package/dialogconfirmchecklist/index.es.js +0 -189
  519. package/dialogconfirmdeletetask/index.es.js +0 -70
  520. package/dialogconfirmdeletetaskpermanently/index.es.js +0 -50
  521. package/dialogconfirmedit/index.es.js +0 -50
  522. package/dialogconfirmfinishtask/index.es.js +0 -50
  523. package/dialogconfirmrestoretask/index.es.js +0 -46
  524. package/dialogconfirmsprint/index.es.js +0 -42
  525. package/dialogcopyapi/index.es.js +0 -130
  526. package/dialogcustomdependency/index.es.js +0 -55
  527. package/dialogdetailchecklisttemplate/index.es.js +0 -214
  528. package/dialogdetailcomponent/index.es.js +0 -121
  529. package/dialogdetailpbi/index.es.js +0 -192
  530. package/dialogfinishreview/index.es.js +0 -126
  531. package/dialogimprovementtask/index.es.js +0 -191
  532. package/dialogmemberadmin/index.es.js +0 -93
  533. package/dialogpreparepbi/index.es.js +0 -93
  534. package/dialogpriorityvalue/index.es.js +0 -85
  535. package/dialogreportbug/index.es.js +0 -207
  536. package/dialogreviewleader/index.es.js +0 -280
  537. package/dialogsavechecklisttemplate/index.es.js +0 -127
  538. package/dialogselectproject/index.es.js +0 -69
  539. package/dialogsetduration/index.es.js +0 -109
  540. package/dialogsettasklink/index.es.js +0 -153
  541. package/dialogtestapi/index.es.js +0 -389
  542. package/eventlogtab/index.es.js +0 -50
  543. package/infotasktab/index.es.js +0 -186
  544. package/inputadditional/index.es.js +0 -62
  545. package/inputinitialname/index.d.ts +0 -118
  546. package/inputinitialname/index.es.js +0 -95
  547. package/inputrepositoryname/index.d.ts +0 -86
  548. package/inputrepositoryname/index.es.js +0 -41
  549. package/isrequiredtext/index.es.js +0 -16
  550. package/legend/index.es.js +0 -727
  551. package/legendlist/index.es.js +0 -33
  552. package/loading-page-BrQattYE.js +0 -1
  553. package/loading-page-CgfbWppy.js +0 -1
  554. package/loading-page-CoC9UhfC.js +0 -4
  555. package/loading-page-CoXtqoc9.js +0 -4
  556. package/loading-page-DbLuqCHa.js +0 -1
  557. package/loading-page-f8D03l3G.js +0 -4
  558. package/loading-plane-CgfbWppy.js +0 -1
  559. package/loading-plane-CoXtqoc9.js +0 -4
  560. package/loading-table-Bdr9ZhtP.js +0 -1
  561. package/loading-table-ByUoWqUo.js +0 -4
  562. package/loading-table-BygEMzFM.js +0 -4
  563. package/loading-table-BzrSQlA0.js +0 -1
  564. package/loading-table-D9bw9OcI.js +0 -4
  565. package/loading-table-chOgXi94.js +0 -1
  566. package/no-data-CTKux8RI.js +0 -4
  567. package/no-data-Cgze_Rvp.js +0 -1
  568. package/no-data-DLHO1L_u.js +0 -4
  569. package/no-data-Dep79CBh.js +0 -1
  570. package/no-data-g0dJCy2p.js +0 -4
  571. package/no-data-y1X5WtcQ.js +0 -1
  572. package/notificationitem/index.d.ts +0 -107
  573. package/notificationitem/index.es.js +0 -333
  574. package/reviewitem/index.es.js +0 -65
  575. package/reviewtab/index.es.js +0 -44
  576. package/services/calendar.service.es.js +0 -32
  577. package/sonarqubesummary/index.es.js +0 -234
  578. package/sprintsummary/index.es.js +0 -73
  579. package/summaryaccordion/index.d.ts +0 -121
  580. package/summaryaccordion/index.es.js +0 -365
  581. package/taskdependency/index.es.js +0 -686
  582. package/taskdetail/index.d.ts +0 -82
  583. package/taskdetail/index.es.js +0 -491
  584. package/taskdetailpbi/index.d.ts +0 -35
  585. package/taskdetailpbi/index.es.js +0 -172
  586. package/taskdetailunassignedpbi/index.es.js +0 -261
  587. package/tasklink/index.es.js +0 -257
  588. package/tasklinkchangelog/index.es.js +0 -93
  589. package/tasklist/index.es.js +0 -92
  590. package/taskmore/index.es.js +0 -52
  591. package/taskstatusbadge/index.es.js +0 -18
  592. package/tasktable/index.d.ts +0 -87
  593. package/tasktable/index.es.js +0 -832
  594. package/ticket/index.es.js +0 -151
  595. package/tooltipspan/index.es.js +0 -30
  596. package/utils/updateSprintStatus.util.es.js +0 -17
  597. package/valueformdatainput/index.es.js +0 -70
  598. package/workcalendar/index.es.js +0 -351
@@ -1,131 +1,130 @@
1
- import { createBlock as w, openBlock as y, renderSlot as X, resolveComponent as $, createVNode as S, withCtx as B, Fragment as Rt, renderList as Mt, resolveDynamicComponent as nt, withDirectives as It, vShow as $t, mergeProps as jt, createCommentVNode as St, withModifiers as ee } from "vue";
2
- function xt(t, e) {
1
+ import { createBlock, openBlock, renderSlot, resolveComponent, createVNode, withCtx, Fragment, renderList, resolveDynamicComponent, withDirectives, vShow, mergeProps, createCommentVNode, withModifiers } from "vue";
2
+ function p(t, e) {
3
3
  var i = Object.keys(t);
4
4
  if (Object.getOwnPropertySymbols) {
5
- var o = Object.getOwnPropertySymbols(t);
6
- e && (o = o.filter(function(s) {
7
- return Object.getOwnPropertyDescriptor(t, s).enumerable;
8
- })), i.push.apply(i, o);
5
+ var n = Object.getOwnPropertySymbols(t);
6
+ e && (n = n.filter(function(e2) {
7
+ return Object.getOwnPropertyDescriptor(t, e2).enumerable;
8
+ })), i.push.apply(i, n);
9
9
  }
10
10
  return i;
11
11
  }
12
- function v(t) {
12
+ function g(t) {
13
13
  for (var e = 1; e < arguments.length; e++) {
14
- var i = arguments[e] != null ? arguments[e] : {};
15
- e % 2 ? xt(Object(i), !0).forEach(function(o) {
16
- C(t, o, i[o]);
17
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : xt(Object(i)).forEach(function(o) {
18
- Object.defineProperty(t, o, Object.getOwnPropertyDescriptor(i, o));
14
+ var i = null != arguments[e] ? arguments[e] : {};
15
+ e % 2 ? p(Object(i), true).forEach(function(e2) {
16
+ f(t, e2, i[e2]);
17
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i)) : p(Object(i)).forEach(function(e2) {
18
+ Object.defineProperty(t, e2, Object.getOwnPropertyDescriptor(i, e2));
19
19
  });
20
20
  }
21
21
  return t;
22
22
  }
23
- function C(t, e, i) {
24
- return e in t ? Object.defineProperty(t, e, { value: i, enumerable: !0, configurable: !0, writable: !0 }) : t[e] = i, t;
23
+ function f(t, e, i) {
24
+ return e in t ? Object.defineProperty(t, e, { value: i, enumerable: true, configurable: true, writable: true }) : t[e] = i, t;
25
25
  }
26
- function ie(t, e) {
27
- if (t == null) return {};
28
- var i, o, s = function(a, h) {
29
- if (a == null) return {};
30
- var r, c, l = {}, u = Object.keys(a);
31
- for (c = 0; c < u.length; c++) r = u[c], h.indexOf(r) >= 0 || (l[r] = a[r]);
32
- return l;
26
+ function v(t, e) {
27
+ if (null == t) return {};
28
+ var i, n, s = function(t2, e2) {
29
+ if (null == t2) return {};
30
+ var i2, n2, s2 = {}, o2 = Object.keys(t2);
31
+ for (n2 = 0; n2 < o2.length; n2++) i2 = o2[n2], e2.indexOf(i2) >= 0 || (s2[i2] = t2[i2]);
32
+ return s2;
33
33
  }(t, e);
34
34
  if (Object.getOwnPropertySymbols) {
35
- var n = Object.getOwnPropertySymbols(t);
36
- for (o = 0; o < n.length; o++) i = n[o], e.indexOf(i) >= 0 || Object.prototype.propertyIsEnumerable.call(t, i) && (s[i] = t[i]);
35
+ var o = Object.getOwnPropertySymbols(t);
36
+ for (n = 0; n < o.length; n++) i = o[n], e.indexOf(i) >= 0 || Object.prototype.propertyIsEnumerable.call(t, i) && (s[i] = t[i]);
37
37
  }
38
38
  return s;
39
39
  }
40
- function k(t) {
41
- return function(e) {
42
- if (Array.isArray(e)) return at(e);
43
- }(t) || function(e) {
44
- if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
45
- }(t) || function(e, i) {
46
- if (e) {
47
- if (typeof e == "string") return at(e, i);
48
- var o = Object.prototype.toString.call(e).slice(8, -1);
49
- if (o === "Object" && e.constructor && (o = e.constructor.name), o === "Map" || o === "Set") return Array.from(e);
50
- if (o === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)) return at(e, i);
51
- }
40
+ function b(t) {
41
+ return function(t2) {
42
+ if (Array.isArray(t2)) return w(t2);
43
+ }(t) || function(t2) {
44
+ if ("undefined" != typeof Symbol && null != t2[Symbol.iterator] || null != t2["@@iterator"]) return Array.from(t2);
45
+ }(t) || function(t2, e) {
46
+ if (!t2) return;
47
+ if ("string" == typeof t2) return w(t2, e);
48
+ var i = Object.prototype.toString.call(t2).slice(8, -1);
49
+ "Object" === i && t2.constructor && (i = t2.constructor.name);
50
+ if ("Map" === i || "Set" === i) return Array.from(t2);
51
+ if ("Arguments" === i || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)) return w(t2, e);
52
52
  }(t) || function() {
53
- throw new TypeError(`Invalid attempt to spread non-iterable instance.
54
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
53
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
55
54
  }();
56
55
  }
57
- function at(t, e) {
58
- (e == null || e > t.length) && (e = t.length);
59
- for (var i = 0, o = new Array(e); i < e; i++) o[i] = t[i];
60
- return o;
56
+ function w(t, e) {
57
+ (null == e || e > t.length) && (e = t.length);
58
+ for (var i = 0, n = new Array(e); i < e; i++) n[i] = t[i];
59
+ return n;
61
60
  }
62
- var Et, ne, Q, z = (Et = function(t) {
61
+ var y, z, R, A = (y = function(t) {
63
62
  /*!
64
63
  Copyright (c) 2018 Jed Watson.
65
64
  Licensed under the MIT License (MIT), see
66
65
  http://jedwatson.github.io/classnames
67
66
  */
68
- (function() {
67
+ !function() {
69
68
  var e = {}.hasOwnProperty;
70
69
  function i() {
71
- for (var o = [], s = 0; s < arguments.length; s++) {
72
- var n = arguments[s];
73
- if (n) {
74
- var a = typeof n;
75
- if (a === "string" || a === "number") o.push(n);
76
- else if (Array.isArray(n)) {
77
- if (n.length) {
78
- var h = i.apply(null, n);
79
- h && o.push(h);
70
+ for (var t2 = [], n = 0; n < arguments.length; n++) {
71
+ var s = arguments[n];
72
+ if (s) {
73
+ var o = typeof s;
74
+ if ("string" === o || "number" === o) t2.push(s);
75
+ else if (Array.isArray(s)) {
76
+ if (s.length) {
77
+ var r = i.apply(null, s);
78
+ r && t2.push(r);
80
79
  }
81
- } else if (a === "object") if (n.toString === Object.prototype.toString) for (var r in n) e.call(n, r) && n[r] && o.push(r);
82
- else o.push(n.toString());
80
+ } else if ("object" === o) if (s.toString === Object.prototype.toString) for (var a in s) e.call(s, a) && s[a] && t2.push(a);
81
+ else t2.push(s.toString());
83
82
  }
84
83
  }
85
- return o.join(" ");
84
+ return t2.join(" ");
86
85
  }
87
86
  t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
88
- })();
89
- }, Et(Q = { path: ne, exports: {}, require: function(t, e) {
87
+ }();
88
+ }, y(R = { path: z, exports: {}, require: function(t, e) {
90
89
  return function() {
91
90
  throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs");
92
- }(e == null && Q.path);
93
- } }, Q.exports), Q.exports), W = function(t) {
91
+ }(null == e && R.path);
92
+ } }, R.exports), R.exports), M = function(t) {
94
93
  return function(e, i) {
95
94
  if (!e) return t;
96
- var o;
97
- typeof e == "string" ? o = e : i = e;
95
+ var n;
96
+ "string" == typeof e ? n = e : i = e;
98
97
  var s = t;
99
- return o && (s += "__" + o), s + (i ? Object.keys(i).reduce(function(n, a) {
100
- var h = i[a];
101
- return h && (n += " " + (typeof h == "boolean" ? s + "--" + a : s + "--" + a + "_" + h)), n;
98
+ return n && (s += "__" + n), s + (i ? Object.keys(i).reduce(function(t2, e2) {
99
+ var n2 = i[e2];
100
+ return n2 && (t2 += " " + ("boolean" == typeof n2 ? s + "--" + e2 : s + "--" + e2 + "_" + n2)), t2;
102
101
  }, "") : "");
103
102
  };
104
103
  };
105
- function mt(t, e, i) {
106
- var o, s, n, a, h;
107
- function r() {
108
- var l = Date.now() - a;
109
- l < e && l >= 0 ? o = setTimeout(r, e - l) : (o = null, i || (h = t.apply(n, s), n = s = null));
104
+ function S(t, e, i) {
105
+ var n, s, o, r, a;
106
+ function h() {
107
+ var c2 = Date.now() - r;
108
+ c2 < e && c2 >= 0 ? n = setTimeout(h, e - c2) : (n = null, i || (a = t.apply(o, s), o = s = null));
110
109
  }
111
- e == null && (e = 100);
110
+ null == e && (e = 100);
112
111
  var c = function() {
113
- n = this, s = arguments, a = Date.now();
114
- var l = i && !o;
115
- return o || (o = setTimeout(r, e)), l && (h = t.apply(n, s), n = s = null), h;
112
+ o = this, s = arguments, r = Date.now();
113
+ var c2 = i && !n;
114
+ return n || (n = setTimeout(h, e)), c2 && (a = t.apply(o, s), o = s = null), a;
116
115
  };
117
116
  return c.clear = function() {
118
- o && (clearTimeout(o), o = null);
117
+ n && (clearTimeout(n), n = null);
119
118
  }, c.flush = function() {
120
- o && (h = t.apply(n, s), n = s = null, clearTimeout(o), o = null);
119
+ n && (a = t.apply(o, s), o = s = null, clearTimeout(n), n = null);
121
120
  }, c;
122
121
  }
123
- mt.debounce = mt;
124
- var ft = mt, f = function() {
125
- return f = Object.assign || function(t) {
126
- for (var e, i = 1, o = arguments.length; i < o; i++) for (var s in e = arguments[i]) Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]);
122
+ S.debounce = S;
123
+ var x = S, C = function() {
124
+ return C = Object.assign || function(t) {
125
+ for (var e, i = 1, n = arguments.length; i < n; i++) for (var s in e = arguments[i]) Object.prototype.hasOwnProperty.call(e, s) && (t[s] = e[s]);
127
126
  return t;
128
- }, f.apply(this, arguments);
127
+ }, C.apply(this, arguments);
129
128
  };
130
129
  /*! *****************************************************************************
131
130
  Copyright (c) Microsoft Corporation.
@@ -141,79 +140,79 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
141
140
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
142
141
  PERFORMANCE OF THIS SOFTWARE.
143
142
  ***************************************************************************** */
144
- function Bt(t, e) {
145
- var i, o;
146
- return t && e ? (i = "" + t + e[0].toUpperCase() + e.slice(1), o = t + "-" + e) : (i = t || e, o = t || e), { name: i, classname: o };
143
+ function E(t, e) {
144
+ var i, n;
145
+ return t && e ? (i = "" + t + e[0].toUpperCase() + e.slice(1), n = t + "-" + e) : (i = t || e, n = t || e), { name: i, classname: n };
147
146
  }
148
- function kt(t) {
147
+ function W(t) {
149
148
  return /^blob:/.test(t);
150
149
  }
151
- function Ct(t) {
152
- return kt(t) || function(e) {
153
- return /^data:/.test(e);
150
+ function T(t) {
151
+ return W(t) || function(t2) {
152
+ return /^data:/.test(t2);
154
153
  }(t);
155
154
  }
156
- function Y(t) {
155
+ function O(t) {
157
156
  return !!(t && t.constructor && t.call && t.apply);
158
157
  }
159
- function A(t) {
160
- return t === void 0;
158
+ function D(t) {
159
+ return void 0 === t;
161
160
  }
162
- function it(t) {
163
- return typeof t == "object" && t !== null;
161
+ function H(t) {
162
+ return "object" == typeof t && null !== t;
164
163
  }
165
- function gt(t, e, i) {
166
- var o = {};
167
- return it(t) ? (Object.keys(e).forEach(function(s) {
168
- A(t[s]) ? o[s] = e[s] : it(e[s]) ? it(t[s]) ? o[s] = gt(t[s], e[s], i[s]) : o[s] = t[s] ? e[s] : i[s] : e[s] === !0 || e[s] === !1 ? o[s] = !!t[s] : o[s] = t[s];
169
- }), o) : t ? e : i;
164
+ function j(t, e, i) {
165
+ var n = {};
166
+ return H(t) ? (Object.keys(e).forEach(function(s) {
167
+ D(t[s]) ? n[s] = e[s] : H(e[s]) ? H(t[s]) ? n[s] = j(t[s], e[s], i[s]) : n[s] = t[s] ? e[s] : i[s] : true === e[s] || false === e[s] ? n[s] = Boolean(t[s]) : n[s] = t[s];
168
+ }), n) : t ? e : i;
170
169
  }
171
- function K(t) {
170
+ function L(t) {
172
171
  var e = Number(t);
173
172
  return Number.isNaN(e) ? t : e;
174
173
  }
175
- function Tt(t) {
176
- return typeof (t == "number" || /* @__PURE__ */ function(e) {
177
- return typeof e == "object" && e !== null;
178
- }(t) && toString.call(t) == "[object Number]") && !Xt(t);
174
+ function P(t) {
175
+ return typeof ("number" == t || /* @__PURE__ */ function(t2) {
176
+ return "object" == typeof t2 && null !== t2;
177
+ }(t) && "[object Number]" == toString.call(t)) && !$(t);
179
178
  }
180
- function Xt(t) {
179
+ function $(t) {
181
180
  return t != t;
182
181
  }
183
- function Yt(t, e) {
182
+ function I(t, e) {
184
183
  return Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2));
185
184
  }
186
- var V = function(t, e) {
187
- t === void 0 && (t = {}), e === void 0 && (e = {}), this.type = "manipulateImage", this.move = t, this.scale = e;
188
- }, oe = function(t, e) {
189
- e === void 0 && (e = {}), this.type = "resize", this.directions = t, this.params = e;
190
- }, wt = function(t) {
185
+ var B = function(t, e) {
186
+ void 0 === t && (t = {}), void 0 === e && (e = {}), this.type = "manipulateImage", this.move = t, this.scale = e;
187
+ }, X = function(t, e) {
188
+ void 0 === e && (e = {}), this.type = "resize", this.directions = t, this.params = e;
189
+ }, Y = function(t) {
191
190
  this.type = "move", this.directions = t;
192
- }, se = function() {
193
- function t(e, i, o, s, n) {
194
- this.type = "drag", this.nativeEvent = e, this.position = o, this.previousPosition = s, this.element = i, this.anchor = n;
191
+ }, k = function() {
192
+ function t(t2, e, i, n, s) {
193
+ this.type = "drag", this.nativeEvent = t2, this.position = i, this.previousPosition = n, this.element = e, this.anchor = s;
195
194
  }
196
195
  return t.prototype.shift = function() {
197
- var e = this, i = e.element, o = e.anchor, s = e.position;
198
- if (i) {
199
- var n = i.getBoundingClientRect(), a = n.left, h = n.top;
200
- return { left: s.left - a - o.left, top: s.top - h - o.top };
196
+ var t2 = this, e = t2.element, i = t2.anchor, n = t2.position;
197
+ if (e) {
198
+ var s = e.getBoundingClientRect(), o = s.left, r = s.top;
199
+ return { left: n.left - o - i.left, top: n.top - r - i.top };
201
200
  }
202
201
  return { left: 0, top: 0 };
203
202
  }, t;
204
- }(), yt = { name: "DraggableElement", props: { classname: { type: String } }, beforeMount: function() {
205
- window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
203
+ }(), F = { name: "DraggableElement", props: { classname: { type: String } }, beforeMount: function() {
204
+ window.addEventListener("mouseup", this.onMouseUp, { passive: false }), window.addEventListener("mousemove", this.onMouseMove, { passive: false }), window.addEventListener("touchmove", this.onTouchMove, { passive: false }), window.addEventListener("touchend", this.onTouchEnd, { passive: false });
206
205
  }, beforeUnmount: function() {
207
206
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
208
207
  }, mounted: function() {
209
208
  if (!this.$refs.draggable) throw new Error('You should add ref "draggable" to your root element to use draggable mixin');
210
- this.touches = [], this.hovered = !1;
209
+ this.touches = [], this.hovered = false;
211
210
  }, methods: { onMouseOver: function() {
212
- this.hovered || (this.hovered = !0, this.$emit("enter"));
211
+ this.hovered || (this.hovered = true, this.$emit("enter"));
213
212
  }, onMouseLeave: function() {
214
- this.hovered && !this.touches.length && (this.hovered = !1, this.$emit("leave"));
213
+ this.hovered && !this.touches.length && (this.hovered = false, this.$emit("leave"));
215
214
  }, onTouchStart: function(t) {
216
- t.cancelable && !this.disabled && t.touches.length === 1 && (this.touches = k(t.touches), this.hovered || (this.$emit("enter"), this.hovered = !0), t.touches.length && this.initAnchor(this.touches.reduce(function(e, i) {
215
+ t.cancelable && !this.disabled && 1 === t.touches.length && (this.touches = b(t.touches), this.hovered || (this.$emit("enter"), this.hovered = true), t.touches.length && this.initAnchor(this.touches.reduce(function(e, i) {
217
216
  return { clientX: e.clientX + i.clientX / t.touches.length, clientY: e.clientY + i.clientY / t.touches.length };
218
217
  }, { clientX: 0, clientY: 0 })), t.preventDefault && t.preventDefault(), t.stopPropagation());
219
218
  }, onTouchEnd: function() {
@@ -222,382 +221,384 @@ var V = function(t, e) {
222
221
  this.touches.length && (this.processMove(t, t.touches), t.preventDefault && t.preventDefault(), t.stopPropagation && t.stopPropagation());
223
222
  }, onMouseDown: function(t) {
224
223
  if (!this.disabled) {
225
- var e = { fake: !0, clientX: t.clientX, clientY: t.clientY };
224
+ var e = { fake: true, clientX: t.clientX, clientY: t.clientY };
226
225
  this.touches = [e], this.initAnchor(e), t.stopPropagation();
227
226
  }
228
227
  }, onMouseMove: function(t) {
229
- this.touches.length && (this.processMove(t, [{ fake: !0, clientX: t.clientX, clientY: t.clientY }]), t.preventDefault && t.preventDefault());
228
+ this.touches.length && (this.processMove(t, [{ fake: true, clientX: t.clientX, clientY: t.clientY }]), t.preventDefault && t.preventDefault());
230
229
  }, onMouseUp: function() {
231
230
  this.processEnd();
232
231
  }, initAnchor: function(t) {
233
- var e = this.$refs.draggable.getBoundingClientRect(), i = e.left, o = e.right, s = e.bottom, n = e.top;
234
- this.anchor = { left: t.clientX - i, top: t.clientY - n, bottom: s - t.clientY, right: o - t.clientX };
232
+ var e = this.$refs.draggable.getBoundingClientRect(), i = e.left, n = e.right, s = e.bottom, o = e.top;
233
+ this.anchor = { left: t.clientX - i, top: t.clientY - o, bottom: s - t.clientY, right: n - t.clientX };
235
234
  }, processMove: function(t, e) {
236
- var i = k(e);
235
+ var i = b(e);
237
236
  if (this.touches.length) {
238
- if (this.touches.length === 1 && i.length === 1) {
239
- var o = this.$refs.draggable;
240
- this.$emit("drag", new se(t, o, { left: i[0].clientX, top: i[0].clientY }, { left: this.touches[0].clientX, top: this.touches[0].clientY }, this.anchor));
237
+ if (1 === this.touches.length && 1 === i.length) {
238
+ var n = this.$refs.draggable;
239
+ this.$emit("drag", new k(t, n, { left: i[0].clientX, top: i[0].clientY }, { left: this.touches[0].clientX, top: this.touches[0].clientY }, this.anchor));
241
240
  }
242
241
  this.touches = i;
243
242
  }
244
243
  }, processEnd: function() {
245
- this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = !1), this.touches = [];
244
+ this.touches.length && this.$emit("drag-end"), this.hovered && (this.$emit("leave"), this.hovered = false), this.touches = [];
246
245
  } }, emits: ["drag", "drag-end", "leave", "enter"] };
247
- yt.render = function(t, e, i, o, s, n) {
248
- return y(), w("div", { ref: "draggable", class: i.classname, onTouchstart: e[1] || (e[1] = function() {
249
- return n.onTouchStart && n.onTouchStart.apply(n, arguments);
250
- }), onMousedown: e[2] || (e[2] = function() {
251
- return n.onMouseDown && n.onMouseDown.apply(n, arguments);
252
- }), onMouseover: e[3] || (e[3] = function() {
253
- return n.onMouseOver && n.onMouseOver.apply(n, arguments);
254
- }), onMouseleave: e[4] || (e[4] = function() {
255
- return n.onMouseLeave && n.onMouseLeave.apply(n, arguments);
256
- }) }, [X(t.$slots, "default")], 34);
246
+ F.render = function(n, s, o, r, a, h) {
247
+ return openBlock(), createBlock("div", { ref: "draggable", class: o.classname, onTouchstart: s[1] || (s[1] = function() {
248
+ return h.onTouchStart && h.onTouchStart.apply(h, arguments);
249
+ }), onMousedown: s[2] || (s[2] = function() {
250
+ return h.onMouseDown && h.onMouseDown.apply(h, arguments);
251
+ }), onMouseover: s[3] || (s[3] = function() {
252
+ return h.onMouseOver && h.onMouseOver.apply(h, arguments);
253
+ }), onMouseleave: s[4] || (s[4] = function() {
254
+ return h.onMouseLeave && h.onMouseLeave.apply(h, arguments);
255
+ }) }, [renderSlot(n.$slots, "default")], 34);
257
256
  };
258
- var ht = W("vue-handler-wrapper"), Ft = { name: "HandlerWrapper", components: { DraggableElement: yt }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, computed: { classes: function() {
257
+ var U = M("vue-handler-wrapper"), N = { name: "HandlerWrapper", components: { DraggableElement: F }, props: { horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: false } }, computed: { classes: function() {
259
258
  var t;
260
259
  if (this.horizontalPosition || this.verticalPosition) {
261
- var e, i = Bt(this.horizontalPosition, this.verticalPosition);
262
- t = ht((C(e = {}, i.classname, !0), C(e, "disabled", this.disabled), e));
263
- } else t = ht({ disabled: this.disabled });
264
- return { root: t, draggable: ht("draggable") };
260
+ var e, i = E(this.horizontalPosition, this.verticalPosition);
261
+ t = U((f(e = {}, i.classname, true), f(e, "disabled", this.disabled), e));
262
+ } else t = U({ disabled: this.disabled });
263
+ return { root: t, draggable: U("draggable") };
265
264
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
266
- Ft.render = function(t, e, i, o, s, n) {
267
- var a = $("DraggableElement");
268
- return y(), w("div", { class: n.classes.root }, [S(a, { class: n.classes.draggable, onDrag: e[1] || (e[1] = function(h) {
269
- return t.$emit("drag", h);
270
- }), onDragEnd: e[2] || (e[2] = function(h) {
271
- return t.$emit("drag-end");
272
- }), onLeave: e[3] || (e[3] = function(h) {
273
- return t.$emit("leave");
274
- }), onEnter: e[4] || (e[4] = function(h) {
275
- return t.$emit("enter");
276
- }) }, { default: B(function() {
277
- return [X(t.$slots, "default")];
265
+ N.render = function(r, a, h, c, l, u) {
266
+ var d = resolveComponent("DraggableElement");
267
+ return openBlock(), createBlock("div", { class: u.classes.root }, [createVNode(d, { class: u.classes.draggable, onDrag: a[1] || (a[1] = function(t) {
268
+ return r.$emit("drag", t);
269
+ }), onDragEnd: a[2] || (a[2] = function(t) {
270
+ return r.$emit("drag-end");
271
+ }), onLeave: a[3] || (a[3] = function(t) {
272
+ return r.$emit("leave");
273
+ }), onEnter: a[4] || (a[4] = function(t) {
274
+ return r.$emit("enter");
275
+ }) }, { default: withCtx(function() {
276
+ return [renderSlot(r.$slots, "default")];
278
277
  }), _: 3 }, 8, ["class"])], 2);
279
278
  };
280
- var re = W("vue-line-wrapper"), Ut = { name: "LineWrapper", components: { DraggableElement: yt }, props: { position: { type: String, required: !0 }, disabled: { type: Boolean, default: !1 } }, computed: { classname: function() {
279
+ var Z = M("vue-line-wrapper"), q = { name: "LineWrapper", components: { DraggableElement: F }, props: { position: { type: String, required: true }, disabled: { type: Boolean, default: false } }, computed: { classname: function() {
281
280
  var t;
282
- return re((C(t = {}, this.position, !0), C(t, "disabled", this.disabled), t));
281
+ return Z((f(t = {}, this.position, true), f(t, "disabled", this.disabled), t));
283
282
  } }, emits: ["leave", "enter", "drag", "drag-end"] };
284
- Ut.render = function(t, e, i, o, s, n) {
285
- var a = $("DraggableElement");
286
- return y(), w(a, { class: n.classname, onDrag: e[1] || (e[1] = function(h) {
287
- return t.$emit("drag", h);
288
- }), onDragEnd: e[2] || (e[2] = function(h) {
289
- return t.$emit("drag-end");
290
- }), onLeave: e[3] || (e[3] = function(h) {
291
- return t.$emit("leave");
292
- }), onEnter: e[4] || (e[4] = function(h) {
293
- return t.$emit("enter");
294
- }) }, { default: B(function() {
295
- return [X(t.$slots, "default")];
283
+ q.render = function(s, r, a, h, c, l) {
284
+ var u = resolveComponent("DraggableElement");
285
+ return openBlock(), createBlock(u, { class: l.classname, onDrag: r[1] || (r[1] = function(t) {
286
+ return s.$emit("drag", t);
287
+ }), onDragEnd: r[2] || (r[2] = function(t) {
288
+ return s.$emit("drag-end");
289
+ }), onLeave: r[3] || (r[3] = function(t) {
290
+ return s.$emit("leave");
291
+ }), onEnter: r[4] || (r[4] = function(t) {
292
+ return s.$emit("enter");
293
+ }) }, { default: withCtx(function() {
294
+ return [renderSlot(s.$slots, "default")];
296
295
  }), _: 3 }, 8, ["class"]);
297
296
  };
298
- var O = ["left", "right", "top", "bottom"], ae = ["left", "right"], he = ["top", "bottom"], ce = ["left", "top"], le = ["fill-area", "fit-area", "stencil", "none"], Wt = { left: 0, top: 0, width: 0, height: 0 };
299
- function Dt(t, e, i) {
300
- return !(i = i || ["width", "height", "left", "top"]).some(function(o) {
301
- return t[o] !== e[o];
297
+ var V = ["left", "right", "top", "bottom"], _ = ["left", "right"], G = ["top", "bottom"], Q = ["left", "top"], K = ["fill-area", "fit-area", "stencil", "none"], J = { left: 0, top: 0, width: 0, height: 0 };
298
+ function tt(t, e, i) {
299
+ return !(i = i || ["width", "height", "left", "top"]).some(function(i2) {
300
+ return t[i2] !== e[i2];
302
301
  });
303
302
  }
304
- function H(t) {
303
+ function et(t) {
305
304
  return { left: t.left, top: t.top, right: t.left + t.width, bottom: t.top + t.height };
306
305
  }
307
- function F(t, e) {
306
+ function it(t, e) {
308
307
  return { left: t.left - e.left, top: t.top - e.top };
309
308
  }
310
- function R(t) {
309
+ function nt(t) {
311
310
  return { left: t.left + t.width / 2, top: t.top + t.height / 2 };
312
311
  }
313
- function _(t, e) {
312
+ function st(t, e) {
314
313
  var i = { left: 0, top: 0, right: 0, bottom: 0 };
315
- return O.forEach(function(o) {
316
- var s = e[o], n = H(t)[o];
317
- i[o] = s !== void 0 && n !== void 0 ? o === "left" || o === "top" ? Math.max(0, s - n) : Math.max(0, n - s) : 0;
314
+ return V.forEach(function(n) {
315
+ var s = e[n], o = et(t)[n];
316
+ i[n] = void 0 !== s && void 0 !== o ? "left" === n || "top" === n ? Math.max(0, s - o) : Math.max(0, o - s) : 0;
318
317
  }), i;
319
318
  }
320
- function D(t, e) {
319
+ function ot(t, e) {
321
320
  return { left: t.left - e.left, top: t.top - e.top, width: t.width + e.left + e.right, height: t.height + e.top + e.bottom };
322
321
  }
323
- function ot(t) {
322
+ function rt(t) {
324
323
  return { left: -t.left, top: -t.top };
325
324
  }
326
- function x(t, e) {
327
- return f(f({}, t), { left: t.left + e.left, top: t.top + e.top });
325
+ function at(t, e) {
326
+ return C(C({}, t), { left: t.left + e.left, top: t.top + e.top });
328
327
  }
329
- function T(t, e, i, o) {
330
- if (e !== 1) {
328
+ function ht(t, e, i, n) {
329
+ if (1 !== e) {
331
330
  if (i) {
332
- var s = R(t);
331
+ var s = nt(t);
333
332
  return { width: t.width * e, height: t.height * e, left: t.left + t.width * (1 - e) / 2 + (i.left - s.left) * (1 - e), top: t.top + t.height * (1 - e) / 2 + (i.top - s.top) * (1 - e) };
334
333
  }
335
334
  return { width: t.width * e, height: t.height * e, left: t.left + t.width * (1 - e) / 2, top: t.top + t.height * (1 - e) / 2 };
336
335
  }
337
336
  return t;
338
337
  }
339
- function b(t) {
338
+ function ct(t) {
340
339
  return t.width / t.height;
341
340
  }
342
- function U(t, e) {
343
- return Math.min(e.right !== void 0 && e.left !== void 0 ? (e.right - e.left) / t.width : 1 / 0, e.bottom !== void 0 && e.top !== void 0 ? (e.bottom - e.top) / t.height : 1 / 0);
341
+ function lt(t, e) {
342
+ return Math.min(void 0 !== e.right && void 0 !== e.left ? (e.right - e.left) / t.width : 1 / 0, void 0 !== e.bottom && void 0 !== e.top ? (e.bottom - e.top) / t.height : 1 / 0);
344
343
  }
345
- function N(t, e) {
346
- var i = { left: 0, top: 0 }, o = _(t, e);
347
- return o.left && o.left > 0 ? i.left = o.left : o.right && o.right > 0 && (i.left = -o.right), o.top && o.top > 0 ? i.top = o.top : o.bottom && o.bottom > 0 && (i.top = -o.bottom), i;
344
+ function ut(t, e) {
345
+ var i = { left: 0, top: 0 }, n = st(t, e);
346
+ return n.left && n.left > 0 ? i.left = n.left : n.right && n.right > 0 && (i.left = -n.right), n.top && n.top > 0 ? i.top = n.top : n.bottom && n.bottom > 0 && (i.top = -n.bottom), i;
348
347
  }
349
- function ct(t, e) {
348
+ function dt(t, e) {
350
349
  var i;
351
350
  return e.minimum && t < e.minimum ? i = e.minimum : e.maximum && t > e.maximum && (i = e.maximum), i;
352
351
  }
353
- function Nt(t, e) {
354
- var i = b(t), o = b(e);
355
- return e.width < 1 / 0 && e.height < 1 / 0 ? i > o ? { width: e.width, height: e.width / i } : { width: e.height * i, height: e.height } : e.width < 1 / 0 ? { width: e.width, height: e.width / i } : e.height < 1 / 0 ? { width: e.height * i, height: e.height } : t;
352
+ function mt(t, e) {
353
+ var i = ct(t), n = ct(e);
354
+ return e.width < 1 / 0 && e.height < 1 / 0 ? i > n ? { width: e.width, height: e.width / i } : { width: e.height * i, height: e.height } : e.width < 1 / 0 ? { width: e.width, height: e.width / i } : e.height < 1 / 0 ? { width: e.height * i, height: e.height } : t;
356
355
  }
357
- function Zt(t, e) {
356
+ function pt(t, e) {
358
357
  var i = e * Math.PI / 180;
359
358
  return { width: Math.abs(t.width * Math.cos(i)) + Math.abs(t.height * Math.sin(i)), height: Math.abs(t.width * Math.sin(i)) + Math.abs(t.height * Math.cos(i)) };
360
359
  }
361
- function j(t, e) {
360
+ function gt(t, e) {
362
361
  var i = e * Math.PI / 180;
363
362
  return { left: t.left * Math.cos(i) - t.top * Math.sin(i), top: t.left * Math.sin(i) + t.top * Math.cos(i) };
364
363
  }
365
- function st(t, e) {
366
- var i = _(M(t, e), e);
367
- return i.left + i.right + i.top + i.bottom ? i.left + i.right > i.top + i.bottom ? Math.min((t.width + i.left + i.right) / t.width, U(t, e)) : Math.min((t.height + i.top + i.bottom) / t.height, U(t, e)) : 1;
364
+ function ft(t, e) {
365
+ var i = st(vt(t, e), e);
366
+ return i.left + i.right + i.top + i.bottom ? i.left + i.right > i.top + i.bottom ? Math.min((t.width + i.left + i.right) / t.width, lt(t, e)) : Math.min((t.height + i.top + i.bottom) / t.height, lt(t, e)) : 1;
368
367
  }
369
- function M(t, e, i) {
370
- i === void 0 && (i = !1);
371
- var o = N(t, e);
372
- return x(t, i ? ot(o) : o);
368
+ function vt(t, e, i) {
369
+ void 0 === i && (i = false);
370
+ var n = ut(t, e);
371
+ return at(t, i ? rt(n) : n);
373
372
  }
374
- function pt(t) {
375
- return { width: t.right !== void 0 && t.left !== void 0 ? t.right - t.left : 1 / 0, height: t.bottom !== void 0 && t.top !== void 0 ? t.bottom - t.top : 1 / 0 };
373
+ function bt(t) {
374
+ return { width: void 0 !== t.right && void 0 !== t.left ? t.right - t.left : 1 / 0, height: void 0 !== t.bottom && void 0 !== t.top ? t.bottom - t.top : 1 / 0 };
376
375
  }
377
- function ue(t, e) {
378
- return f(f({}, t), { minWidth: Math.min(e.width, t.minWidth), minHeight: Math.min(e.height, t.minHeight), maxWidth: Math.min(e.width, t.maxWidth), maxHeight: Math.min(e.height, t.maxHeight) });
376
+ function wt(t, e) {
377
+ return C(C({}, t), { minWidth: Math.min(e.width, t.minWidth), minHeight: Math.min(e.height, t.minHeight), maxWidth: Math.min(e.width, t.maxWidth), maxHeight: Math.min(e.height, t.maxHeight) });
379
378
  }
380
- function qt(t, e, i) {
381
- i === void 0 && (i = !0);
382
- var o = {};
383
- return O.forEach(function(s) {
384
- var n = t[s], a = e[s];
385
- n !== void 0 && a !== void 0 ? o[s] = s === "left" || s === "top" ? i ? Math.max(n, a) : Math.min(n, a) : i ? Math.min(n, a) : Math.max(n, a) : a !== void 0 ? o[s] = a : n !== void 0 && (o[s] = n);
386
- }), o;
379
+ function yt(t, e, i) {
380
+ void 0 === i && (i = true);
381
+ var n = {};
382
+ return V.forEach(function(s) {
383
+ var o = t[s], r = e[s];
384
+ void 0 !== o && void 0 !== r ? n[s] = "left" === s || "top" === s ? i ? Math.max(o, r) : Math.min(o, r) : i ? Math.min(o, r) : Math.max(o, r) : void 0 !== r ? n[s] = r : void 0 !== o && (n[s] = o);
385
+ }), n;
387
386
  }
388
- function rt(t, e) {
389
- return qt(t, e, !0);
387
+ function zt(t, e) {
388
+ return yt(t, e, true);
390
389
  }
391
- function Ot(t) {
392
- var e = t.size, i = t.aspectRatio, o = t.ignoreMinimum, s = t.sizeRestrictions;
393
- return !!((e.correctRatio || b(e) >= i.minimum && b(e) <= i.maximum) && e.height <= s.maxHeight && e.width <= s.maxWidth && e.width && e.height && (o || e.height >= s.minHeight && e.width >= s.minWidth));
390
+ function Rt(t) {
391
+ var e = t.size, i = t.aspectRatio, n = t.ignoreMinimum, s = t.sizeRestrictions;
392
+ return Boolean((e.correctRatio || ct(e) >= i.minimum && ct(e) <= i.maximum) && e.height <= s.maxHeight && e.width <= s.maxWidth && e.width && e.height && (n || e.height >= s.minHeight && e.width >= s.minWidth));
394
393
  }
395
- function Ht(t, e) {
394
+ function At(t, e) {
396
395
  return Math.pow(t.width - e.width, 2) + Math.pow(t.height - e.height, 2);
397
396
  }
398
- function I(t) {
399
- var e = t.width, i = t.height, o = t.sizeRestrictions, s = { minimum: t.aspectRatio && t.aspectRatio.minimum || 0, maximum: t.aspectRatio && t.aspectRatio.maximum || 1 / 0 }, n = { width: Math.max(o.minWidth, Math.min(o.maxWidth, e)), height: Math.max(o.minHeight, Math.min(o.maxHeight, i)) };
400
- function a(c, l) {
401
- return l === void 0 && (l = !1), c.reduce(function(u, d) {
402
- return Ot({ size: d, aspectRatio: s, sizeRestrictions: o, ignoreMinimum: l }) && (!u || Ht(d, { width: e, height: i }) < Ht(u, { width: e, height: i })) ? d : u;
397
+ function Mt(t) {
398
+ var e = t.width, i = t.height, n = t.sizeRestrictions, s = { minimum: t.aspectRatio && t.aspectRatio.minimum || 0, maximum: t.aspectRatio && t.aspectRatio.maximum || 1 / 0 }, o = { width: Math.max(n.minWidth, Math.min(n.maxWidth, e)), height: Math.max(n.minHeight, Math.min(n.maxHeight, i)) };
399
+ function r(t2, o2) {
400
+ return void 0 === o2 && (o2 = false), t2.reduce(function(t3, r2) {
401
+ return Rt({ size: r2, aspectRatio: s, sizeRestrictions: n, ignoreMinimum: o2 }) && (!t3 || At(r2, { width: e, height: i }) < At(t3, { width: e, height: i })) ? r2 : t3;
403
402
  }, null);
404
403
  }
405
- var h = [];
406
- s && [s.minimum, s.maximum].forEach(function(c) {
407
- c && h.push({ width: n.width, height: n.width / c, correctRatio: !0 }, { width: n.height * c, height: n.height, correctRatio: !0 });
408
- }), Ot({ size: n, aspectRatio: s, sizeRestrictions: o }) && h.push(n);
409
- var r = a(h) || a(h, !0);
410
- return r && { width: r.width, height: r.height };
404
+ var a = [];
405
+ s && [s.minimum, s.maximum].forEach(function(t2) {
406
+ t2 && a.push({ width: o.width, height: o.width / t2, correctRatio: true }, { width: o.height * t2, height: o.height, correctRatio: true });
407
+ }), Rt({ size: o, aspectRatio: s, sizeRestrictions: n }) && a.push(o);
408
+ var h = r(a) || r(a, true);
409
+ return h && { width: h.width, height: h.height };
411
410
  }
412
- function vt(t) {
413
- var e = t.event, i = t.coordinates, o = t.positionRestrictions, s = o === void 0 ? {} : o, n = x(i, e.directions);
414
- return x(n, N(n, s));
411
+ function St(t) {
412
+ var e = t.event, i = t.coordinates, n = t.positionRestrictions, s = void 0 === n ? {} : n, o = at(i, e.directions);
413
+ return at(o, ut(o, s));
415
414
  }
416
- function de(t) {
417
- var e = t.coordinates, i = t.transform, o = t.imageSize, s = t.sizeRestrictions, n = t.positionRestrictions, a = t.aspectRatio, h = t.visibleArea, r = function(l, u) {
418
- return vt({ coordinates: l, positionRestrictions: n, event: new wt({ left: u.left - l.left, top: u.top - l.top }) });
419
- }, c = f({}, e);
420
- return (Array.isArray(i) ? i : [i]).forEach(function(l) {
421
- var u = {};
422
- A((u = typeof l == "function" ? l({ coordinates: c, imageSize: o, visibleArea: h }) : l).width) && A(u.height) || (c = function(d, m) {
423
- var g = f(f(f({}, d), I({ width: m.width, height: m.height, sizeRestrictions: s, aspectRatio: a })), { left: 0, top: 0 });
424
- return r(g, { left: d.left, top: d.top });
425
- }(c, f(f({}, c), u))), A(u.left) && A(u.top) || (c = r(c, f(f({}, c), u)));
415
+ function xt(t) {
416
+ var e = t.coordinates, i = t.transform, n = t.imageSize, s = t.sizeRestrictions, o = t.positionRestrictions, r = t.aspectRatio, a = t.visibleArea, h = function(t2, e2) {
417
+ return St({ coordinates: t2, positionRestrictions: o, event: new Y({ left: e2.left - t2.left, top: e2.top - t2.top }) });
418
+ }, c = C({}, e);
419
+ return (Array.isArray(i) ? i : [i]).forEach(function(t2) {
420
+ var e2 = {};
421
+ D((e2 = "function" == typeof t2 ? t2({ coordinates: c, imageSize: n, visibleArea: a }) : t2).width) && D(e2.height) || (c = function(t3, e3) {
422
+ var i2 = C(C(C({}, t3), Mt({ width: e3.width, height: e3.height, sizeRestrictions: s, aspectRatio: r })), { left: 0, top: 0 });
423
+ return h(i2, { left: t3.left, top: t3.top });
424
+ }(c, C(C({}, c), e2))), D(e2.left) && D(e2.top) || (c = h(c, C(C({}, c), e2)));
426
425
  }), c;
427
426
  }
428
- function me(t) {
427
+ function Ct(t) {
429
428
  t.event;
430
- var e = t.getAreaRestrictions, i = t.boundaries, o = t.coordinates, s = t.visibleArea;
429
+ var e = t.getAreaRestrictions, i = t.boundaries, n = t.coordinates, s = t.visibleArea;
431
430
  t.aspectRatio;
432
- var n = t.stencilSize, a = t.sizeRestrictions, h = t.positionRestrictions;
431
+ var o = t.stencilSize, r = t.sizeRestrictions, a = t.positionRestrictions;
433
432
  t.stencilReference;
434
- var r, c, l, u = f({}, o), d = f({}, s), m = f({}, n);
435
- r = b(m), c = b(u), l === void 0 && (l = 1e-3), (r === 0 || c === 0 ? Math.abs(c - r) < l : Math.abs(c / r) < 1 + l && Math.abs(c / r) > 1 - l) || (u = f(f({}, u), I({ sizeRestrictions: a, width: u.width, height: u.height, aspectRatio: { minimum: b(m), maximum: b(m) } })));
436
- var g = st(d = T(d, u.width * i.width / (d.width * m.width)), e({ visibleArea: d, type: "resize" }));
437
- return g !== 1 && (d = T(d, g), u = T(u, g)), d = M(d = x(d, F(R(u), R(d))), e({ visibleArea: d, type: "move" })), { coordinates: u = M(u, rt(H(d), h)), visibleArea: d };
433
+ var h, c, l, u = C({}, n), d = C({}, s), m = C({}, o);
434
+ h = ct(m), c = ct(u), void 0 === l && (l = 1e-3), (0 === h || 0 === c ? Math.abs(c - h) < l : Math.abs(c / h) < 1 + l && Math.abs(c / h) > 1 - l) || (u = C(C({}, u), Mt({ sizeRestrictions: r, width: u.width, height: u.height, aspectRatio: { minimum: ct(m), maximum: ct(m) } })));
435
+ var p2 = ft(d = ht(d, u.width * i.width / (d.width * m.width)), e({ visibleArea: d, type: "resize" }));
436
+ return 1 !== p2 && (d = ht(d, p2), u = ht(u, p2)), d = vt(d = at(d, it(nt(u), nt(d))), e({ visibleArea: d, type: "move" })), { coordinates: u = vt(u, zt(et(d), a)), visibleArea: d };
438
437
  }
439
- function fe(t) {
440
- var e = t.event, i = t.getAreaRestrictions, o = t.boundaries, s = t.coordinates, n = t.visibleArea;
438
+ function Et(t) {
439
+ var e = t.event, i = t.getAreaRestrictions, n = t.boundaries, s = t.coordinates, o = t.visibleArea;
441
440
  t.aspectRatio, t.stencilSize, t.sizeRestrictions;
442
- var a = t.positionRestrictions;
441
+ var r = t.positionRestrictions;
443
442
  t.stencilReference;
444
- var h = f({}, s), r = f({}, n);
445
- if (s && n && e.type !== "manipulateImage") {
443
+ var a = C({}, s), h = C({}, o);
444
+ if (s && o && "manipulateImage" !== e.type) {
446
445
  var c = { width: 0, height: 0 };
447
- r.width, o.width, b(o) > b(h) ? (c.height = 0.8 * o.height, c.width = c.height * b(h)) : (c.width = 0.8 * o.width, c.height = c.width * b(h));
448
- var l = st(r = T(r, h.width * o.width / (r.width * c.width)), i({ visibleArea: r, type: "resize" }));
449
- r = T(r, l), l !== 1 && (c.height /= l, c.width /= l), r = M(r = x(r, F(R(h), R(r))), i({ visibleArea: r, type: "move" })), h = M(h, rt(H(r), a));
446
+ h.width, n.width, ct(n) > ct(a) ? (c.height = 0.8 * n.height, c.width = c.height * ct(a)) : (c.width = 0.8 * n.width, c.height = c.width * ct(a));
447
+ var l = ft(h = ht(h, a.width * n.width / (h.width * c.width)), i({ visibleArea: h, type: "resize" }));
448
+ h = ht(h, l), 1 !== l && (c.height /= l, c.width /= l), h = vt(h = at(h, it(nt(a), nt(h))), i({ visibleArea: h, type: "move" })), a = vt(a, zt(et(h), r));
450
449
  }
451
- return { coordinates: h, visibleArea: r };
450
+ return { coordinates: a, visibleArea: h };
452
451
  }
453
- function ge(t) {
454
- var e = t.event, i = t.coordinates, o = t.visibleArea, s = t.getAreaRestrictions, n = f({}, o), a = f({}, i);
455
- if (e.type === "setCoordinates") {
456
- var h = Math.max(0, a.width - n.width), r = Math.max(0, a.height - n.height);
457
- h > r ? n = T(n, Math.min(a.width / n.width, U(n, s({ visibleArea: n, type: "resize" })))) : r > h && (n = T(n, Math.min(a.height / n.height, U(n, s({ visibleArea: n, type: "resize" }))))), n = M(n = x(n, ot(N(a, H(n)))), s({ visibleArea: n, type: "move" }));
452
+ function Wt(t) {
453
+ var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.getAreaRestrictions, o = C({}, n), r = C({}, i);
454
+ if ("setCoordinates" === e.type) {
455
+ var a = Math.max(0, r.width - o.width), h = Math.max(0, r.height - o.height);
456
+ a > h ? o = ht(o, Math.min(r.width / o.width, lt(o, s({ visibleArea: o, type: "resize" })))) : h > a && (o = ht(o, Math.min(r.height / o.height, lt(o, s({ visibleArea: o, type: "resize" }))))), o = vt(o = at(o, rt(ut(r, et(o)))), s({ visibleArea: o, type: "move" }));
458
457
  }
459
- return { visibleArea: n, coordinates: a };
458
+ return { visibleArea: o, coordinates: r };
460
459
  }
461
- function pe(t) {
462
- var e = t.imageSize, i = t.visibleArea, o = t.coordinates, s = i || e;
463
- return { left: (i ? i.left : 0) + s.width / 2 - o.width / 2, top: (i ? i.top : 0) + s.height / 2 - o.height / 2 };
460
+ function Tt(t) {
461
+ var e = t.imageSize, i = t.visibleArea, n = t.coordinates, s = i || e;
462
+ return { left: (i ? i.left : 0) + s.width / 2 - n.width / 2, top: (i ? i.top : 0) + s.height / 2 - n.height / 2 };
464
463
  }
465
- function ve(t) {
466
- var e = t.imageSize, i = t.visibleArea, o = t.aspectRatio, s = t.sizeRestrictions, n = i || e, a = Math.min(o.maximum || 1 / 0, Math.max(o.minimum || 0, b(n))), h = n.width < n.height ? { width: 0.8 * n.width, height: 0.8 * n.width / a } : { height: 0.8 * n.height, width: 0.8 * n.height * a };
467
- return I(f(f({}, h), { aspectRatio: o, sizeRestrictions: s }));
464
+ function Ot(t) {
465
+ var e = t.imageSize, i = t.visibleArea, n = t.aspectRatio, s = t.sizeRestrictions, o = i || e, r = Math.min(n.maximum || 1 / 0, Math.max(n.minimum || 0, ct(o))), a = o.width < o.height ? { width: 0.8 * o.width, height: 0.8 * o.width / r } : { height: 0.8 * o.height, width: 0.8 * o.height * r };
466
+ return Mt(C(C({}, a), { aspectRatio: n, sizeRestrictions: s }));
468
467
  }
469
- function be(t) {
470
- var e, i, o = t.imageSize, s = t.visibleArea, n = t.boundaries, a = t.aspectRatio, h = t.sizeRestrictions, r = t.stencilSize, c = s || o;
471
- return b(c) > b(n) ? i = (e = r.height * c.height / n.height) * b(r) : e = (i = r.width * c.width / n.width) / b(r), I({ width: i, height: e, aspectRatio: a, sizeRestrictions: h });
468
+ function Dt(t) {
469
+ var e, i, n = t.imageSize, s = t.visibleArea, o = t.boundaries, r = t.aspectRatio, a = t.sizeRestrictions, h = t.stencilSize, c = s || n;
470
+ return ct(c) > ct(o) ? i = (e = h.height * c.height / o.height) * ct(h) : e = (i = h.width * c.width / o.width) / ct(h), Mt({ width: i, height: e, aspectRatio: r, sizeRestrictions: a });
472
471
  }
473
- function we(t) {
474
- var e = t.getAreaRestrictions, i = t.coordinates, o = t.imageSize, s = b(t.boundaries);
472
+ function Ht(t) {
473
+ var e = t.getAreaRestrictions, i = t.coordinates, n = t.imageSize, s = ct(t.boundaries);
475
474
  if (i) {
476
- var n = { height: Math.max(i.height, o.height), width: Math.max(i.width, o.width) }, a = Nt({ width: b(n) > s ? n.width : n.height * s, height: b(n) > s ? n.width / s : n.height }, pt(e())), h = { left: i.left + i.width / 2 - a.width / 2, top: i.top + i.height / 2 - a.height / 2, width: a.width, height: a.height }, r = _(i, H(f({ left: 0, top: 0 }, o))), c = {};
477
- return !r.left && !r.right && h.width <= o.width && (c.left = 0, c.right = o.width), !r.top && !r.bottom && h.height <= o.height && (c.top = 0, c.bottom = o.height), M(h, c);
475
+ var o = { height: Math.max(i.height, n.height), width: Math.max(i.width, n.width) }, r = mt({ width: ct(o) > s ? o.width : o.height * s, height: ct(o) > s ? o.width / s : o.height }, bt(e())), a = { left: i.left + i.width / 2 - r.width / 2, top: i.top + i.height / 2 - r.height / 2, width: r.width, height: r.height }, h = st(i, et(C({ left: 0, top: 0 }, n))), c = {};
476
+ return !h.left && !h.right && a.width <= n.width && (c.left = 0, c.right = n.width), !h.top && !h.bottom && a.height <= n.height && (c.top = 0, c.bottom = n.height), vt(a, c);
478
477
  }
479
- var l = b(o);
480
- return a = { height: l > s ? o.height : o.width / s, width: l > s ? o.height * s : o.width }, { left: o.width / 2 - a.width / 2, top: o.height / 2 - a.height / 2, width: a.width, height: a.height };
478
+ var l = ct(n);
479
+ r = { height: l > s ? n.height : n.width / s, width: l > s ? n.height * s : n.width };
480
+ return { left: n.width / 2 - r.width / 2, top: n.height / 2 - r.height / 2, width: r.width, height: r.height };
481
481
  }
482
- function J(t, e) {
483
- return qt(t, H(e));
482
+ function jt(t, e) {
483
+ return yt(t, et(e));
484
484
  }
485
- function ye(t) {
486
- var e = t.event, i = t.coordinates, o = t.visibleArea, s = t.sizeRestrictions, n = t.getAreaRestrictions, a = t.positionRestrictions, h = t.adjustStencil, r = e.scale, c = e.move, l = f({}, o), u = f({}, i), d = 1, m = 1, g = r.factor && Math.abs(r.factor - 1) > 1e-3;
487
- l = x(l, { left: c.left || 0, top: c.top || 0 });
488
- var p = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / u.width : 0, s.minHeight ? s.minHeight / u.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / u.width : 1 / 0, s.maxHeight ? s.maxHeight / u.height : 1 / 0, U(u, a)) }, area: { maximum: U(l, n({ visibleArea: l, type: "resize" })) } };
489
- r.factor && g && (r.factor < 1 ? (m = Math.max(r.factor, p.stencil.minimum)) > 1 && (m = 1) : r.factor > 1 && (m = Math.min(r.factor, Math.min(p.area.maximum, p.stencil.maximum))) < 1 && (m = 1)), m && (l = T(l, m, r.center));
490
- var E = i.left - o.left, L = o.width + o.left - (i.width + i.left), Z = i.top - o.top, G = o.height + o.top - (i.height + i.top);
491
- return l = M(l = x(l, N(l, { left: a.left !== void 0 ? a.left - E * m : void 0, top: a.top !== void 0 ? a.top - Z * m : void 0, bottom: a.bottom !== void 0 ? a.bottom + G * m : void 0, right: a.right !== void 0 ? a.right + L * m : void 0 })), n({ visibleArea: l, type: "move" })), u.width = u.width * m, u.height = u.height * m, u.left = l.left + E * m, u.top = l.top + Z * m, u = M(u, rt(H(l), a)), r.factor && g && h && (r.factor > 1 ? d = Math.min(p.area.maximum, r.factor) / m : r.factor < 1 && (d = Math.max(u.height / l.height, u.width / l.width, r.factor / m)), d !== 1 && (l = x(l = M(l = T(l, d, r.factor > 1 ? r.center : R(u)), n({ visibleArea: l, type: "move" })), ot(N(u, H(l)))))), { coordinates: u, visibleArea: l };
485
+ function Lt(t) {
486
+ var e = t.event, i = t.coordinates, n = t.visibleArea, s = t.sizeRestrictions, o = t.getAreaRestrictions, r = t.positionRestrictions, a = t.adjustStencil, h = e.scale, c = e.move, l = C({}, n), u = C({}, i), d = 1, m = 1, p2 = h.factor && Math.abs(h.factor - 1) > 1e-3;
487
+ l = at(l, { left: c.left || 0, top: c.top || 0 });
488
+ var g2 = { stencil: { minimum: Math.max(s.minWidth ? s.minWidth / u.width : 0, s.minHeight ? s.minHeight / u.height : 0), maximum: Math.min(s.maxWidth ? s.maxWidth / u.width : 1 / 0, s.maxHeight ? s.maxHeight / u.height : 1 / 0, lt(u, r)) }, area: { maximum: lt(l, o({ visibleArea: l, type: "resize" })) } };
489
+ h.factor && p2 && (h.factor < 1 ? (m = Math.max(h.factor, g2.stencil.minimum)) > 1 && (m = 1) : h.factor > 1 && (m = Math.min(h.factor, Math.min(g2.area.maximum, g2.stencil.maximum))) < 1 && (m = 1)), m && (l = ht(l, m, h.center));
490
+ var f2 = i.left - n.left, v2 = n.width + n.left - (i.width + i.left), b2 = i.top - n.top, w2 = n.height + n.top - (i.height + i.top);
491
+ return l = vt(l = at(l, ut(l, { left: void 0 !== r.left ? r.left - f2 * m : void 0, top: void 0 !== r.top ? r.top - b2 * m : void 0, bottom: void 0 !== r.bottom ? r.bottom + w2 * m : void 0, right: void 0 !== r.right ? r.right + v2 * m : void 0 })), o({ visibleArea: l, type: "move" })), u.width = u.width * m, u.height = u.height * m, u.left = l.left + f2 * m, u.top = l.top + b2 * m, u = vt(u, zt(et(l), r)), h.factor && p2 && a && (h.factor > 1 ? d = Math.min(g2.area.maximum, h.factor) / m : h.factor < 1 && (d = Math.max(u.height / l.height, u.width / l.width, h.factor / m)), 1 !== d && (l = at(l = vt(l = ht(l, d, h.factor > 1 ? h.center : nt(u)), o({ visibleArea: l, type: "move" })), rt(ut(u, et(l)))))), { coordinates: u, visibleArea: l };
492
492
  }
493
- function ze(t) {
494
- var e = t.aspectRatio, i = t.getAreaRestrictions, o = t.coordinates, s = t.visibleArea, n = t.sizeRestrictions, a = t.positionRestrictions, h = t.imageSize, r = t.previousImageSize, c = t.angle, l = f({}, o), u = f({}, s), d = j(R(f({ left: 0, top: 0 }, r)), c);
495
- return (l = f(f({}, I({ sizeRestrictions: n, aspectRatio: e, width: l.width, height: l.height })), j(R(l), c))).left -= d.left - h.width / 2 + l.width / 2, l.top -= d.top - h.height / 2 + l.height / 2, u = T(u, st(u, i({ visibleArea: u, type: "resize" }))), { coordinates: l = M(l, a), visibleArea: u = M(u = x(u, F(R(l), R(o))), i({ visibleArea: u, type: "move" })) };
493
+ function Pt(t) {
494
+ var e = t.aspectRatio, i = t.getAreaRestrictions, n = t.coordinates, s = t.visibleArea, o = t.sizeRestrictions, r = t.positionRestrictions, a = t.imageSize, h = t.previousImageSize, c = t.angle, l = C({}, n), u = C({}, s), d = gt(nt(C({ left: 0, top: 0 }, h)), c);
495
+ return (l = C(C({}, Mt({ sizeRestrictions: o, aspectRatio: e, width: l.width, height: l.height })), gt(nt(l), c))).left -= d.left - a.width / 2 + l.width / 2, l.top -= d.top - a.height / 2 + l.height / 2, u = ht(u, ft(u, i({ visibleArea: u, type: "resize" }))), { coordinates: l = vt(l, r), visibleArea: u = vt(u = at(u, it(nt(l), nt(n))), i({ visibleArea: u, type: "move" })) };
496
496
  }
497
- function Ae(t) {
498
- var e = t.flip, i = t.previousFlip, o = t.rotate, s = t.getAreaRestrictions, n = t.coordinates, a = t.visibleArea, h = t.imageSize, r = f({}, n), c = f({}, a), l = i.horizontal !== e.horizontal, u = i.vertical !== e.vertical;
497
+ function $t(t) {
498
+ var e = t.flip, i = t.previousFlip, n = t.rotate;
499
+ var s = t.getAreaRestrictions, o = t.coordinates, r = t.visibleArea, a = t.imageSize, h = C({}, o), c = C({}, r), l = i.horizontal !== e.horizontal, u = i.vertical !== e.vertical;
499
500
  if (l || u) {
500
- var d = j({ left: h.width / 2, top: h.height / 2 }, -o), m = j(R(r), -o), g = j({ left: l ? d.left - (m.left - d.left) : m.left, top: u ? d.top - (m.top - d.top) : m.top }, o);
501
- r = x(r, F(g, R(r))), m = j(R(c), -o), c = M(c = x(c, F(g = j({ left: l ? d.left - (m.left - d.left) : m.left, top: u ? d.top - (m.top - d.top) : m.top }, o), R(c))), s({ visibleArea: c, type: "move" }));
501
+ var d = gt({ left: a.width / 2, top: a.height / 2 }, -n), m = gt(nt(h), -n), p2 = gt({ left: l ? d.left - (m.left - d.left) : m.left, top: u ? d.top - (m.top - d.top) : m.top }, n);
502
+ h = at(h, it(p2, nt(h))), m = gt(nt(c), -n), c = vt(c = at(c, it(p2 = gt({ left: l ? d.left - (m.left - d.left) : m.left, top: u ? d.top - (m.top - d.top) : m.top }, n), nt(c))), s({ visibleArea: c, type: "move" }));
502
503
  }
503
- return { coordinates: r, visibleArea: c };
504
+ return { coordinates: h, visibleArea: c };
504
505
  }
505
- function Lt(t) {
506
- var e = t.directions, i = t.coordinates, o = t.positionRestrictions, s = o === void 0 ? {} : o, n = t.sizeRestrictions, a = t.preserveRatio, h = t.compensate, r = f({}, e), c = D(i, r).width, l = D(i, r).height;
507
- c < 0 && (r.left < 0 && r.right < 0 ? (r.left = -(i.width - n.minWidth) / (r.left / r.right), r.right = -(i.width - n.minWidth) / (r.right / r.left)) : r.left < 0 ? r.left = -(i.width - n.minWidth) : r.right < 0 && (r.right = -(i.width - n.minWidth))), l < 0 && (r.top < 0 && r.bottom < 0 ? (r.top = -(i.height - n.minHeight) / (r.top / r.bottom), r.bottom = -(i.height - n.minHeight) / (r.bottom / r.top)) : r.top < 0 ? r.top = -(i.height - n.minHeight) : r.bottom < 0 && (r.bottom = -(i.height - n.minHeight)));
508
- var u = _(D(i, r), s);
509
- h && (u.left && u.left > 0 && u.right === 0 ? (r.right += u.left, r.left -= u.left) : u.right && u.right > 0 && u.left === 0 && (r.left += u.right, r.right -= u.right), u.top && u.top > 0 && u.bottom === 0 ? (r.bottom += u.top, r.top -= u.top) : u.bottom && u.bottom > 0 && u.top === 0 && (r.top += u.bottom, r.bottom -= u.bottom), u = _(D(i, r), s));
506
+ function It(t) {
507
+ var e = t.directions, i = t.coordinates, n = t.positionRestrictions, s = void 0 === n ? {} : n, o = t.sizeRestrictions, r = t.preserveRatio, a = t.compensate, h = C({}, e), c = ot(i, h).width, l = ot(i, h).height;
508
+ c < 0 && (h.left < 0 && h.right < 0 ? (h.left = -(i.width - o.minWidth) / (h.left / h.right), h.right = -(i.width - o.minWidth) / (h.right / h.left)) : h.left < 0 ? h.left = -(i.width - o.minWidth) : h.right < 0 && (h.right = -(i.width - o.minWidth))), l < 0 && (h.top < 0 && h.bottom < 0 ? (h.top = -(i.height - o.minHeight) / (h.top / h.bottom), h.bottom = -(i.height - o.minHeight) / (h.bottom / h.top)) : h.top < 0 ? h.top = -(i.height - o.minHeight) : h.bottom < 0 && (h.bottom = -(i.height - o.minHeight)));
509
+ var u = st(ot(i, h), s);
510
+ a && (u.left && u.left > 0 && 0 === u.right ? (h.right += u.left, h.left -= u.left) : u.right && u.right > 0 && 0 === u.left && (h.left += u.right, h.right -= u.right), u.top && u.top > 0 && 0 === u.bottom ? (h.bottom += u.top, h.top -= u.top) : u.bottom && u.bottom > 0 && 0 === u.top && (h.top += u.bottom, h.bottom -= u.bottom), u = st(ot(i, h), s));
510
511
  var d = { width: 1 / 0, height: 1 / 0, left: 1 / 0, right: 1 / 0, top: 1 / 0, bottom: 1 / 0 };
511
- if (O.forEach(function(p) {
512
- var E = u[p];
513
- E && r[p] && (d[p] = Math.max(0, 1 - E / r[p]));
514
- }), a) {
515
- var m = Math.min.apply(null, O.map(function(p) {
516
- return d[p];
512
+ if (V.forEach(function(t2) {
513
+ var e2 = u[t2];
514
+ e2 && h[t2] && (d[t2] = Math.max(0, 1 - e2 / h[t2]));
515
+ }), r) {
516
+ var m = Math.min.apply(null, V.map(function(t2) {
517
+ return d[t2];
517
518
  }));
518
- m !== 1 / 0 && O.forEach(function(p) {
519
- r[p] *= m;
519
+ m !== 1 / 0 && V.forEach(function(t2) {
520
+ h[t2] *= m;
520
521
  });
521
- } else O.forEach(function(p) {
522
- d[p] !== 1 / 0 && (r[p] *= d[p]);
522
+ } else V.forEach(function(t2) {
523
+ d[t2] !== 1 / 0 && (h[t2] *= d[t2]);
523
524
  });
524
- if (c = D(i, r).width, l = D(i, r).height, r.right + r.left && (c > n.maxWidth ? d.width = (n.maxWidth - i.width) / (r.right + r.left) : c < n.minWidth && (d.width = (n.minWidth - i.width) / (r.right + r.left))), r.bottom + r.top && (l > n.maxHeight ? d.height = (n.maxHeight - i.height) / (r.bottom + r.top) : l < n.minHeight && (d.height = (n.minHeight - i.height) / (r.bottom + r.top))), a) {
525
- var g = Math.min(d.width, d.height);
526
- g !== 1 / 0 && O.forEach(function(p) {
527
- r[p] *= g;
525
+ if (c = ot(i, h).width, l = ot(i, h).height, h.right + h.left && (c > o.maxWidth ? d.width = (o.maxWidth - i.width) / (h.right + h.left) : c < o.minWidth && (d.width = (o.minWidth - i.width) / (h.right + h.left))), h.bottom + h.top && (l > o.maxHeight ? d.height = (o.maxHeight - i.height) / (h.bottom + h.top) : l < o.minHeight && (d.height = (o.minHeight - i.height) / (h.bottom + h.top))), r) {
526
+ var p2 = Math.min(d.width, d.height);
527
+ p2 !== 1 / 0 && V.forEach(function(t2) {
528
+ h[t2] *= p2;
528
529
  });
529
- } else d.width !== 1 / 0 && ae.forEach(function(p) {
530
- r[p] *= d.width;
531
- }), d.height !== 1 / 0 && he.forEach(function(p) {
532
- r[p] *= d.height;
530
+ } else d.width !== 1 / 0 && _.forEach(function(t2) {
531
+ h[t2] *= d.width;
532
+ }), d.height !== 1 / 0 && G.forEach(function(t2) {
533
+ h[t2] *= d.height;
533
534
  });
534
- return r;
535
+ return h;
535
536
  }
536
- function tt(t, e, i) {
537
- return e == 0 && i == 0 ? t / 2 : e == 0 ? 0 : i == 0 ? t : t * Math.abs(e / (e + i));
537
+ function Bt(t, e, i) {
538
+ return 0 == e && 0 == i ? t / 2 : 0 == e ? 0 : 0 == i ? t : t * Math.abs(e / (e + i));
538
539
  }
539
- var Re = W("vue-simple-handler"), Me = W("vue-simple-handler-wrapper"), zt = { name: "SimpleHandler", components: { HandlerWrapper: Ft }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
540
- return { hover: !1 };
540
+ var Xt = M("vue-simple-handler"), Yt = M("vue-simple-handler-wrapper"), kt = { name: "SimpleHandler", components: { HandlerWrapper: N }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, horizontalPosition: { type: String }, verticalPosition: { type: String }, disabled: { type: Boolean, default: false } }, data: function() {
541
+ return { hover: false };
541
542
  }, computed: { classes: function() {
542
- var t, e = (C(t = {}, this.horizontalPosition, !!this.horizontalPosition), C(t, this.verticalPosition, !!this.verticalPosition), C(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), !!(this.verticalPosition && this.horizontalPosition)), C(t, "hover", this.hover), t);
543
- return { default: z(Re(e), this.defaultClass, this.hover && this.hoverClass), wrapper: z(Me(e), this.wrapperClass) };
543
+ var t, e = (f(t = {}, this.horizontalPosition, Boolean(this.horizontalPosition)), f(t, this.verticalPosition, Boolean(this.verticalPosition)), f(t, "".concat(this.horizontalPosition, "-").concat(this.verticalPosition), Boolean(this.verticalPosition && this.horizontalPosition)), f(t, "hover", this.hover), t);
544
+ return { default: A(Xt(e), this.defaultClass, this.hover && this.hoverClass), wrapper: A(Yt(e), this.wrapperClass) };
544
545
  } }, methods: { onDrag: function(t) {
545
546
  this.$emit("drag", t);
546
547
  }, onEnter: function() {
547
- this.hover = !0;
548
+ this.hover = true;
548
549
  }, onLeave: function() {
549
- this.hover = !1;
550
+ this.hover = false;
550
551
  }, onDragEnd: function() {
551
552
  this.$emit("drag-end");
552
553
  } }, emits: ["drag", "drag-end"] };
553
- zt.render = function(t, e, i, o, s, n) {
554
- var a = $("HandlerWrapper");
555
- return y(), w(a, { class: n.classes.wrapper, "vertical-position": i.verticalPosition, "horizontal-position": i.horizontalPosition, disabled: i.disabled, onDrag: n.onDrag, onDragEnd: n.onDragEnd, onEnter: n.onEnter, onLeave: n.onLeave }, { default: B(function() {
556
- return [S("div", { class: n.classes.default }, null, 2)];
554
+ kt.render = function(i, r, a, h, c, l) {
555
+ var u = resolveComponent("HandlerWrapper");
556
+ return openBlock(), createBlock(u, { class: l.classes.wrapper, "vertical-position": a.verticalPosition, "horizontal-position": a.horizontalPosition, disabled: a.disabled, onDrag: l.onDrag, onDragEnd: l.onDragEnd, onEnter: l.onEnter, onLeave: l.onLeave }, { default: withCtx(function() {
557
+ return [createVNode("div", { class: l.classes.default }, null, 2)];
557
558
  }), _: 1 }, 8, ["class", "vertical-position", "horizontal-position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
558
559
  };
559
- var Se = W("vue-simple-line"), xe = W("vue-simple-line-wrapper"), At = { name: "SimpleLine", components: { LineWrapper: Ut }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: !1 } }, data: function() {
560
- return { hover: !1 };
560
+ var Ft = M("vue-simple-line"), Ut = M("vue-simple-line-wrapper"), Nt = { name: "SimpleLine", components: { LineWrapper: q }, props: { defaultClass: { type: String }, hoverClass: { type: String }, wrapperClass: { type: String }, position: { type: String }, disabled: { type: Boolean, default: false } }, data: function() {
561
+ return { hover: false };
561
562
  }, computed: { classes: function() {
562
- return { root: z(Se(C({}, this.position, !0)), this.defaultClass, this.hover && this.hoverClass), wrapper: z(xe(C({}, this.position, !0)), this.wrapperClass) };
563
+ return { root: A(Ft(f({}, this.position, true)), this.defaultClass, this.hover && this.hoverClass), wrapper: A(Ut(f({}, this.position, true)), this.wrapperClass) };
563
564
  } }, methods: { onDrag: function(t) {
564
565
  this.$emit("drag", t);
565
566
  }, onEnter: function() {
566
- this.hover = !0;
567
+ this.hover = true;
567
568
  }, onLeave: function() {
568
- this.hover = !1;
569
+ this.hover = false;
569
570
  }, onDragEnd: function() {
570
571
  this.$emit("drag-end");
571
572
  } }, emits: ["drag", "drag-end"] };
572
- At.render = function(t, e, i, o, s, n) {
573
- var a = $("LineWrapper");
574
- return y(), w(a, { class: n.classes.wrapper, position: i.position, disabled: i.disabled, onDrag: n.onDrag, onDragEnd: n.onDragEnd, onEnter: n.onEnter, onLeave: n.onLeave }, { default: B(function() {
575
- return [S("div", { class: n.classes.root }, null, 2)];
573
+ Nt.render = function(i, r, a, h, c, l) {
574
+ var u = resolveComponent("LineWrapper");
575
+ return openBlock(), createBlock(u, { class: l.classes.wrapper, position: a.position, disabled: a.disabled, onDrag: l.onDrag, onDragEnd: l.onDragEnd, onEnter: l.onEnter, onLeave: l.onLeave }, { default: withCtx(function() {
576
+ return [createVNode("div", { class: l.classes.root }, null, 2)];
576
577
  }), _: 1 }, 8, ["class", "position", "disabled", "onDrag", "onDragEnd", "onEnter", "onLeave"]);
577
578
  };
578
- var lt = W("vue-bounding-box"), Ee = ["east", "west", null], Ce = ["south", "north", null], Vt = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
579
- return { eastNorth: !0, north: !0, westNorth: !0, west: !0, westSouth: !0, south: !0, eastSouth: !0, east: !0 };
579
+ var Zt = M("vue-bounding-box"), qt = ["east", "west", null], Vt = ["south", "north", null], _t = { name: "BoundingBox", props: { width: { type: Number }, height: { type: Number }, transitions: { type: Object }, handlers: { type: Object, default: function() {
580
+ return { eastNorth: true, north: true, westNorth: true, west: true, westSouth: true, south: true, eastSouth: true, east: true };
580
581
  } }, handlersComponent: { type: [Object, String], default: function() {
581
- return zt;
582
+ return kt;
582
583
  } }, handlersClasses: { type: Object, default: function() {
583
584
  return {};
584
585
  } }, handlersWrappersClasses: { type: Object, default: function() {
585
586
  return {};
586
587
  } }, lines: { type: Object, default: function() {
587
- return { west: !0, north: !0, east: !0, south: !0 };
588
+ return { west: true, north: true, east: true, south: true };
588
589
  } }, linesComponent: { type: [Object, String], default: function() {
589
- return At;
590
+ return Nt;
590
591
  } }, linesClasses: { type: Object, default: function() {
591
592
  return {};
592
593
  } }, linesWrappersClasses: { type: Object, default: function() {
593
594
  return {};
594
- } }, resizable: { type: Boolean, default: !0 } }, data: function() {
595
+ } }, resizable: { type: Boolean, default: true } }, data: function() {
595
596
  var t = [];
596
- return Ee.forEach(function(e) {
597
- Ce.forEach(function(i) {
597
+ return qt.forEach(function(e) {
598
+ Vt.forEach(function(i) {
598
599
  if (e !== i) {
599
- var o = Bt(e, i), s = o.name, n = o.classname;
600
- t.push({ name: s, classname: n, verticalDirection: i, horizontalDirection: e });
600
+ var n = E(e, i), s = n.name, o = n.classname;
601
+ t.push({ name: s, classname: o, verticalDirection: i, horizontalDirection: e });
601
602
  }
602
603
  });
603
604
  }), { points: t };
@@ -605,27 +606,27 @@ var lt = W("vue-bounding-box"), Ee = ["east", "west", null], Ce = ["south", "nor
605
606
  var t = {};
606
607
  return this.width && this.height && (t.width = "".concat(this.width, "px"), t.height = "".concat(this.height, "px"), this.transitions && this.transitions.enabled && (t.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction))), t;
607
608
  }, classes: function() {
608
- var t = this.handlersClasses, e = this.handlersWrappersClasses, i = this.linesClasses, o = this.linesWrappersClasses;
609
- return { root: lt(), handlers: t, handlersWrappers: e, lines: i, linesWrappers: o };
609
+ var t = this.handlersClasses, e = this.handlersWrappersClasses, i = this.linesClasses, n = this.linesWrappersClasses;
610
+ return { root: Zt(), handlers: t, handlersWrappers: e, lines: i, linesWrappers: n };
610
611
  }, lineNodes: function() {
611
612
  var t = this, e = [];
612
613
  return this.points.forEach(function(i) {
613
- i.horizontalDirection && i.verticalDirection || !t.lines[i.name] || e.push({ name: i.name, component: t.linesComponent, class: z(t.classes.lines.default, t.classes.lines[i.name], !t.resizable && t.classes.lines.disabled), wrapperClass: z(t.classes.linesWrappers.default, t.classes.linesWrappers[i.name], !t.resizable && t.classes.linesWrappers.disabled), hoverClass: t.classes.lines.hover, verticalDirection: i.verticalDirection, horizontalDirection: i.horizontalDirection, disabled: !t.resizable });
614
+ i.horizontalDirection && i.verticalDirection || !t.lines[i.name] || e.push({ name: i.name, component: t.linesComponent, class: A(t.classes.lines.default, t.classes.lines[i.name], !t.resizable && t.classes.lines.disabled), wrapperClass: A(t.classes.linesWrappers.default, t.classes.linesWrappers[i.name], !t.resizable && t.classes.linesWrappers.disabled), hoverClass: t.classes.lines.hover, verticalDirection: i.verticalDirection, horizontalDirection: i.horizontalDirection, disabled: !t.resizable });
614
615
  }), e;
615
616
  }, handlerNodes: function() {
616
- var t = this, e = [], i = this.width, o = this.height;
617
+ var t = this, e = [], i = this.width, n = this.height;
617
618
  return this.points.forEach(function(s) {
618
619
  if (t.handlers[s.name]) {
619
- var n = { name: s.name, component: t.handlersComponent, class: z(t.classes.handlers.default, t.classes.handlers[s.name]), wrapperClass: z(t.classes.handlersWrappers.default, t.classes.handlersWrappers[s.name]), hoverClass: t.classes.handlers.hover, verticalDirection: s.verticalDirection, horizontalDirection: s.horizontalDirection, disabled: !t.resizable };
620
- if (i && o) {
621
- var a = s.horizontalDirection, h = s.verticalDirection, r = a === "east" ? i : a === "west" ? 0 : i / 2, c = h === "south" ? o : h === "north" ? 0 : o / 2;
622
- n.wrapperClass = lt("handler"), n.wrapperStyle = { transform: "translate(".concat(r, "px, ").concat(c, "px)") }, t.transitions && t.transitions.enabled && (n.wrapperStyle.transition = "".concat(t.transitions.time, "ms ").concat(t.transitions.timingFunction));
623
- } else n.wrapperClass = lt("handler", C({}, s.classname, !0));
624
- e.push(n);
620
+ var o = { name: s.name, component: t.handlersComponent, class: A(t.classes.handlers.default, t.classes.handlers[s.name]), wrapperClass: A(t.classes.handlersWrappers.default, t.classes.handlersWrappers[s.name]), hoverClass: t.classes.handlers.hover, verticalDirection: s.verticalDirection, horizontalDirection: s.horizontalDirection, disabled: !t.resizable };
621
+ if (i && n) {
622
+ var r = s.horizontalDirection, a = s.verticalDirection, h = "east" === r ? i : "west" === r ? 0 : i / 2, c = "south" === a ? n : "north" === a ? 0 : n / 2;
623
+ o.wrapperClass = Zt("handler"), o.wrapperStyle = { transform: "translate(".concat(h, "px, ").concat(c, "px)") }, t.transitions && t.transitions.enabled && (o.wrapperStyle.transition = "".concat(t.transitions.time, "ms ").concat(t.transitions.timingFunction));
624
+ } else o.wrapperClass = Zt("handler", f({}, s.classname, true));
625
+ e.push(o);
625
626
  }
626
627
  }), e;
627
628
  } }, beforeMount: function() {
628
- window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
629
+ window.addEventListener("mouseup", this.onMouseUp, { passive: false }), window.addEventListener("mousemove", this.onMouseMove, { passive: false }), window.addEventListener("touchmove", this.onTouchMove, { passive: false }), window.addEventListener("touchend", this.onTouchEnd, { passive: false });
629
630
  }, beforeUnmount: function() {
630
631
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
631
632
  }, mounted: function() {
@@ -633,193 +634,193 @@ var lt = W("vue-bounding-box"), Ee = ["east", "west", null], Ce = ["south", "nor
633
634
  }, methods: { onEnd: function() {
634
635
  this.$emit("resize-end");
635
636
  }, onHandlerDrag: function(t, e, i) {
636
- var o, s = t.shift(), n = s.left, a = s.top, h = { left: 0, right: 0, top: 0, bottom: 0 };
637
- e === "west" ? h.left -= n : e === "east" && (h.right += n), i === "north" ? h.top -= a : i === "south" && (h.bottom += a), !i && e ? o = "width" : i && !e && (o = "height"), this.resizable && this.$emit("resize", new oe(h, { allowedDirections: { left: e === "west" || !e, right: e === "east" || !e, bottom: i === "south" || !i, top: i === "north" || !i }, preserveAspectRatio: t.nativeEvent && t.nativeEvent.shiftKey, respectDirection: o }));
637
+ var n, s = t.shift(), o = s.left, r = s.top, a = { left: 0, right: 0, top: 0, bottom: 0 };
638
+ "west" === e ? a.left -= o : "east" === e && (a.right += o), "north" === i ? a.top -= r : "south" === i && (a.bottom += r), !i && e ? n = "width" : i && !e && (n = "height"), this.resizable && this.$emit("resize", new X(a, { allowedDirections: { left: "west" === e || !e, right: "east" === e || !e, bottom: "south" === i || !i, top: "north" === i || !i }, preserveAspectRatio: t.nativeEvent && t.nativeEvent.shiftKey, respectDirection: n }));
638
639
  } }, emits: ["resize", "resize-end"] };
639
- Vt.render = function(t, e, i, o, s, n) {
640
- return y(), w("div", { ref: "box", class: n.classes.root, style: n.style }, [X(t.$slots, "default"), S("div", null, [(y(!0), w(Rt, null, Mt(n.lineNodes, function(a) {
641
- return y(), w(nt(a.component), { key: a.name, "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, position: a.name, disabled: a.disabled, onDrag: function(h) {
642
- return n.onHandlerDrag(h, a.horizontalDirection, a.verticalDirection);
643
- }, onDragEnd: e[1] || (e[1] = function(h) {
644
- return n.onEnd();
640
+ _t.render = function(n, o, c, l, u, d) {
641
+ return openBlock(), createBlock("div", { ref: "box", class: d.classes.root, style: d.style }, [renderSlot(n.$slots, "default"), createVNode("div", null, [(openBlock(true), createBlock(Fragment, null, renderList(d.lineNodes, function(i) {
642
+ return openBlock(), createBlock(resolveDynamicComponent(i.component), { key: i.name, "default-class": i.class, "hover-class": i.hoverClass, "wrapper-class": i.wrapperClass, position: i.name, disabled: i.disabled, onDrag: function(t) {
643
+ return d.onHandlerDrag(t, i.horizontalDirection, i.verticalDirection);
644
+ }, onDragEnd: o[1] || (o[1] = function(t) {
645
+ return d.onEnd();
645
646
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "position", "disabled", "onDrag"]);
646
- }), 128))]), (y(!0), w(Rt, null, Mt(n.handlerNodes, function(a) {
647
- return y(), w("div", { key: a.name, style: a.wrapperStyle, class: a.wrapperClass }, [(y(), w(nt(a.component), { "default-class": a.class, "hover-class": a.hoverClass, "wrapper-class": a.wrapperClass, "horizontal-position": a.horizontalDirection, "vertical-position": a.verticalDirection, disabled: a.disabled, onDrag: function(h) {
648
- return n.onHandlerDrag(h, a.horizontalDirection, a.verticalDirection);
649
- }, onDragEnd: e[2] || (e[2] = function(h) {
650
- return n.onEnd();
647
+ }), 128))]), (openBlock(true), createBlock(Fragment, null, renderList(d.handlerNodes, function(i) {
648
+ return openBlock(), createBlock("div", { key: i.name, style: i.wrapperStyle, class: i.wrapperClass }, [(openBlock(), createBlock(resolveDynamicComponent(i.component), { "default-class": i.class, "hover-class": i.hoverClass, "wrapper-class": i.wrapperClass, "horizontal-position": i.horizontalDirection, "vertical-position": i.verticalDirection, disabled: i.disabled, onDrag: function(t) {
649
+ return d.onHandlerDrag(t, i.horizontalDirection, i.verticalDirection);
650
+ }, onDragEnd: o[2] || (o[2] = function(t) {
651
+ return d.onEnd();
651
652
  }) }, null, 8, ["default-class", "hover-class", "wrapper-class", "horizontal-position", "vertical-position", "disabled", "onDrag"]))], 6);
652
653
  }), 128))], 6);
653
654
  };
654
- var Te = W("vue-draggable-area"), _t = { name: "DraggableArea", props: { movable: { type: Boolean, default: !0 }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
655
- return { default: Te() };
655
+ var Gt = M("vue-draggable-area"), Qt = { name: "DraggableArea", props: { movable: { type: Boolean, default: true }, activationDistance: { type: Number, default: 20 } }, computed: { classnames: function() {
656
+ return { default: Gt() };
656
657
  } }, beforeMount: function() {
657
- window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
658
+ window.addEventListener("mouseup", this.onMouseUp, { passive: false }), window.addEventListener("mousemove", this.onMouseMove, { passive: false }), window.addEventListener("touchmove", this.onTouchMove, { passive: false }), window.addEventListener("touchend", this.onTouchEnd, { passive: false });
658
659
  }, beforeUnmount: function() {
659
660
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
660
661
  }, mounted: function() {
661
- this.touches = [], this.touchStarted = !1;
662
+ this.touches = [], this.touchStarted = false;
662
663
  }, methods: { onTouchStart: function(t) {
663
664
  if (t.cancelable) {
664
- var e = this.movable && t.touches.length === 1;
665
- e && (this.touches = k(t.touches)), (this.touchStarted || e) && (t.preventDefault(), t.stopPropagation());
665
+ var e = this.movable && 1 === t.touches.length;
666
+ e && (this.touches = b(t.touches)), (this.touchStarted || e) && (t.preventDefault(), t.stopPropagation());
666
667
  }
667
668
  }, onTouchEnd: function() {
668
- this.touchStarted = !1, this.processEnd();
669
+ this.touchStarted = false, this.processEnd();
669
670
  }, onTouchMove: function(t) {
670
- this.touches.length >= 1 && (this.touchStarted ? (this.processMove(t, t.touches), t.preventDefault(), t.stopPropagation()) : Yt({ x: this.touches[0].clientX, y: this.touches[0].clientY }, { x: t.touches[0].clientX, y: t.touches[0].clientY }) > this.activationDistance && (this.initAnchor({ clientX: t.touches[0].clientX, clientY: t.touches[0].clientY }), this.touchStarted = !0));
671
+ this.touches.length >= 1 && (this.touchStarted ? (this.processMove(t, t.touches), t.preventDefault(), t.stopPropagation()) : I({ x: this.touches[0].clientX, y: this.touches[0].clientY }, { x: t.touches[0].clientX, y: t.touches[0].clientY }) > this.activationDistance && (this.initAnchor({ clientX: t.touches[0].clientX, clientY: t.touches[0].clientY }), this.touchStarted = true));
671
672
  }, onMouseDown: function(t) {
672
- if (this.movable && t.button === 0) {
673
- var e = { fake: !0, clientX: t.clientX, clientY: t.clientY };
673
+ if (this.movable && 0 === t.button) {
674
+ var e = { fake: true, clientX: t.clientX, clientY: t.clientY };
674
675
  this.touches = [e], this.initAnchor(e), t.stopPropagation();
675
676
  }
676
677
  }, onMouseMove: function(t) {
677
- this.touches.length && (this.processMove(t, [{ fake: !0, clientX: t.clientX, clientY: t.clientY }]), t.preventDefault && t.cancelable && t.preventDefault(), t.stopPropagation());
678
+ this.touches.length && (this.processMove(t, [{ fake: true, clientX: t.clientX, clientY: t.clientY }]), t.preventDefault && t.cancelable && t.preventDefault(), t.stopPropagation());
678
679
  }, onMouseUp: function() {
679
680
  this.processEnd();
680
681
  }, initAnchor: function(t) {
681
- var e = this.$refs.container.getBoundingClientRect(), i = e.left, o = e.top;
682
- this.anchor = { x: t.clientX - i, y: t.clientY - o };
682
+ var e = this.$refs.container.getBoundingClientRect(), i = e.left, n = e.top;
683
+ this.anchor = { x: t.clientX - i, y: t.clientY - n };
683
684
  }, processMove: function(t, e) {
684
- var i = k(e);
685
+ var i = b(e);
685
686
  if (this.touches.length) {
686
- var o = this.$refs.container.getBoundingClientRect(), s = o.left, n = o.top;
687
- this.touches.length === 1 && i.length === 1 && this.$emit("move", new wt({ left: i[0].clientX - (s + this.anchor.x), top: i[0].clientY - (n + this.anchor.y) }));
687
+ var n = this.$refs.container.getBoundingClientRect(), s = n.left, o = n.top;
688
+ 1 === this.touches.length && 1 === i.length && this.$emit("move", new Y({ left: i[0].clientX - (s + this.anchor.x), top: i[0].clientY - (o + this.anchor.y) }));
688
689
  }
689
690
  }, processEnd: function() {
690
691
  this.touches.length && this.$emit("move-end"), this.touches = [];
691
692
  } }, emits: ["move", "move-end"] };
692
- _t.render = function(t, e, i, o, s, n) {
693
- return y(), w("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
694
- return n.onTouchStart && n.onTouchStart.apply(n, arguments);
695
- }), onMousedown: e[2] || (e[2] = function() {
696
- return n.onMouseDown && n.onMouseDown.apply(n, arguments);
697
- }) }, [X(t.$slots, "default")], 544);
693
+ Qt.render = function(n, s, o, r, a, h) {
694
+ return openBlock(), createBlock("div", { ref: "container", onTouchstart: s[1] || (s[1] = function() {
695
+ return h.onTouchStart && h.onTouchStart.apply(h, arguments);
696
+ }), onMousedown: s[2] || (s[2] = function() {
697
+ return h.onMouseDown && h.onMouseDown.apply(h, arguments);
698
+ }) }, [renderSlot(n.$slots, "default")], 544);
698
699
  };
699
- function ut(t) {
700
+ function Kt(t) {
700
701
  var e, i;
701
- return { rotate: t.rotate || 0, flip: { horizontal: ((e = t == null ? void 0 : t.flip) === null || e === void 0 ? void 0 : e.horizontal) || !1, vertical: ((i = t == null ? void 0 : t.flip) === null || i === void 0 ? void 0 : i.vertical) || !1 } };
702
+ return { rotate: t.rotate || 0, flip: { horizontal: (null === (e = null == t ? void 0 : t.flip) || void 0 === e ? void 0 : e.horizontal) || false, vertical: (null === (i = null == t ? void 0 : t.flip) || void 0 === i ? void 0 : i.vertical) || false } };
702
703
  }
703
- function We(t) {
704
+ function Jt(t) {
704
705
  return new Promise(function(e, i) {
705
706
  try {
706
- if (t) if (/^data:/i.test(t)) e(function(r) {
707
- r = r.replace(/^data:([^;]+);base64,/gim, "");
708
- for (var c = atob(r), l = c.length, u = new ArrayBuffer(l), d = new Uint8Array(u), m = 0; m < l; m++) d[m] = c.charCodeAt(m);
709
- return u;
707
+ if (t) if (/^data:/i.test(t)) e(function(t2) {
708
+ t2 = t2.replace(/^data:([^;]+);base64,/gim, "");
709
+ for (var e2 = atob(t2), i2 = e2.length, n2 = new ArrayBuffer(i2), s2 = new Uint8Array(n2), o2 = 0; o2 < i2; o2++) s2[o2] = e2.charCodeAt(o2);
710
+ return n2;
710
711
  }(t));
711
712
  else if (/^blob:/i.test(t)) {
712
- var o = new FileReader();
713
- o.onload = function(r) {
714
- e(r.target.result);
715
- }, n = t, a = function(r) {
716
- o.readAsArrayBuffer(r);
717
- }, (h = new XMLHttpRequest()).open("GET", n, !0), h.responseType = "blob", h.onload = function() {
718
- this.status != 200 && this.status !== 0 || a(this.response);
719
- }, h.send();
713
+ var n = new FileReader();
714
+ n.onload = function(t2) {
715
+ e(t2.target.result);
716
+ }, o = t, r = function(t2) {
717
+ n.readAsArrayBuffer(t2);
718
+ }, (a = new XMLHttpRequest()).open("GET", o, true), a.responseType = "blob", a.onload = function() {
719
+ 200 != this.status && 0 !== this.status || r(this.response);
720
+ }, a.send();
720
721
  } else {
721
722
  var s = new XMLHttpRequest();
722
723
  s.onreadystatechange = function() {
723
- s.readyState === 4 && (s.status === 200 || s.status === 0 ? e(s.response) : i("Warning: could not load an image to parse its orientation"), s = null);
724
+ 4 === s.readyState && (200 === s.status || 0 === s.status ? e(s.response) : i("Warning: could not load an image to parse its orientation"), s = null);
724
725
  }, s.onprogress = function() {
725
- s.getResponseHeader("content-type") !== "image/jpeg" && s.abort();
726
- }, s.withCredentials = !1, s.open("GET", t, !0), s.responseType = "arraybuffer", s.send(null);
726
+ "image/jpeg" !== s.getResponseHeader("content-type") && s.abort();
727
+ }, s.withCredentials = false, s.open("GET", t, true), s.responseType = "arraybuffer", s.send(null);
727
728
  }
728
729
  else i("Error: the image is empty");
729
- } catch (r) {
730
- i(r);
730
+ } catch (t2) {
731
+ i(t2);
731
732
  }
732
- var n, a, h;
733
+ var o, r, a;
733
734
  });
734
735
  }
735
- function Gt(t) {
736
- var e = t.rotate, i = t.flip, o = t.scaleX, s = t.scaleY, n = "";
737
- return n += " rotate(" + e + "deg) ", n += " scaleX(" + o * (i.horizontal ? -1 : 1) + ") ", n += " scaleY(" + s * (i.vertical ? -1 : 1) + ") ";
736
+ function te(t) {
737
+ var e = t.rotate, i = t.flip, n = t.scaleX, s = t.scaleY, o = "";
738
+ return o += " rotate(" + e + "deg) ", o += " scaleX(" + n * (i.horizontal ? -1 : 1) + ") ", o += " scaleY(" + s * (i.vertical ? -1 : 1) + ") ";
738
739
  }
739
- function De(t) {
740
+ function ee(t) {
740
741
  try {
741
- var e, i = new DataView(t), o = void 0, s = void 0, n = void 0, a = void 0;
742
- if (i.getUint8(0) === 255 && i.getUint8(1) === 216) for (var h = i.byteLength, r = 2; r + 1 < h; ) {
743
- if (i.getUint8(r) === 255 && i.getUint8(r + 1) === 225) {
744
- n = r;
742
+ var e, i = new DataView(t), n = void 0, s = void 0, o = void 0, r = void 0;
743
+ if (255 === i.getUint8(0) && 216 === i.getUint8(1)) for (var a = i.byteLength, h = 2; h + 1 < a; ) {
744
+ if (255 === i.getUint8(h) && 225 === i.getUint8(h + 1)) {
745
+ o = h;
745
746
  break;
746
747
  }
747
- r++;
748
+ h++;
748
749
  }
749
- if (n && (o = n + 10, function(m, g, p) {
750
- var E, L = "";
751
- for (E = g, p += g; E < p; E++) L += String.fromCharCode(m.getUint8(E));
752
- return L;
753
- }(i, n + 4, 4) === "Exif")) {
754
- var c = i.getUint16(o);
755
- if (((s = c === 18761) || c === 19789) && i.getUint16(o + 2, s) === 42) {
756
- var l = i.getUint32(o + 4, s);
757
- l >= 8 && (a = o + l);
750
+ if (o && (n = o + 10, "Exif" === function(t2, e2, i2) {
751
+ var n2, s2 = "";
752
+ for (n2 = e2, i2 += e2; n2 < i2; n2++) s2 += String.fromCharCode(t2.getUint8(n2));
753
+ return s2;
754
+ }(i, o + 4, 4))) {
755
+ var c = i.getUint16(n);
756
+ if (((s = 18761 === c) || 19789 === c) && 42 === i.getUint16(n + 2, s)) {
757
+ var l = i.getUint32(n + 4, s);
758
+ l >= 8 && (r = n + l);
758
759
  }
759
760
  }
760
- if (a) {
761
- for (var u = i.getUint16(a, s), d = 0; d < u; d++)
762
- if (r = a + 12 * d + 2, i.getUint16(r, s) === 274) {
763
- r += 8, e = i.getUint16(r, s), i.setUint16(r, 1, s);
764
- break;
765
- }
761
+ if (r) for (var u = i.getUint16(r, s), d = 0; d < u; d++) {
762
+ h = r + 12 * d + 2;
763
+ if (274 === i.getUint16(h, s)) {
764
+ h += 8, e = i.getUint16(h, s), i.setUint16(h, 1, s);
765
+ break;
766
+ }
766
767
  }
767
768
  return e;
768
- } catch {
769
+ } catch (t2) {
769
770
  return null;
770
771
  }
771
772
  }
772
- function Pt(t, e) {
773
- var i = e.getBoundingClientRect(), o = i.left, s = i.top, n = { left: 0, top: 0 }, a = 0;
774
- return t.forEach(function(h) {
775
- n.left += (h.clientX - o) / t.length, n.top += (h.clientY - s) / t.length;
776
- }), t.forEach(function(h) {
777
- a += Yt({ x: n.left, y: n.top }, { x: h.clientX - o, y: h.clientY - s });
778
- }), { centerMass: n, spread: a, count: t.length };
773
+ function se(t, e) {
774
+ var i = e.getBoundingClientRect(), n = i.left, s = i.top, o = { left: 0, top: 0 }, r = 0;
775
+ return t.forEach(function(e2) {
776
+ o.left += (e2.clientX - n) / t.length, o.top += (e2.clientY - s) / t.length;
777
+ }), t.forEach(function(t2) {
778
+ r += I({ x: o.left, y: o.top }, { x: t2.clientX - n, y: t2.clientY - s });
779
+ }), { centerMass: o, spread: r, count: t.length };
779
780
  }
780
- var Qt = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 }, eventsFilter: { type: Function, required: !1 } }, beforeMount: function() {
781
- window.addEventListener("mouseup", this.onMouseUp, { passive: !1 }), window.addEventListener("mousemove", this.onMouseMove, { passive: !1 }), window.addEventListener("touchmove", this.onTouchMove, { passive: !1 }), window.addEventListener("touchend", this.onTouchEnd, { passive: !1 });
781
+ var oe = { props: { touchMove: { type: Boolean, required: true }, mouseMove: { type: Boolean, required: true }, touchResize: { type: Boolean, required: true }, wheelResize: { type: [Boolean, Object], required: true }, eventsFilter: { type: Function, required: false } }, beforeMount: function() {
782
+ window.addEventListener("mouseup", this.onMouseUp, { passive: false }), window.addEventListener("mousemove", this.onMouseMove, { passive: false }), window.addEventListener("touchmove", this.onTouchMove, { passive: false }), window.addEventListener("touchend", this.onTouchEnd, { passive: false });
782
783
  }, beforeUnmount: function() {
783
784
  window.removeEventListener("mouseup", this.onMouseUp), window.removeEventListener("mousemove", this.onMouseMove), window.removeEventListener("touchmove", this.onTouchMove), window.removeEventListener("touchend", this.onTouchEnd);
784
785
  }, created: function() {
785
- this.transforming = !1, this.debouncedProcessEnd = ft(this.processEnd), this.touches = [];
786
+ this.transforming = false, this.debouncedProcessEnd = x(this.processEnd), this.touches = [];
786
787
  }, methods: { processMove: function(t, e) {
787
788
  if (this.touches.length) {
788
- if (this.touches.length === 1 && e.length === 1) this.$emit("move", new V({ left: this.touches[0].clientX - e[0].clientX, top: this.touches[0].clientY - e[0].clientY }));
789
+ if (1 === this.touches.length && 1 === e.length) this.$emit("move", new B({ left: this.touches[0].clientX - e[0].clientX, top: this.touches[0].clientY - e[0].clientY }));
789
790
  else if (this.touches.length > 1 && this.touchResize) {
790
- var i = Pt(e, this.$refs.container), o = this.oldGeometricProperties;
791
- o.count === i.count && o.count > 1 && this.$emit("resize", new V({ left: o.centerMass.left - i.centerMass.left, top: o.centerMass.top - i.centerMass.top }, { factor: o.spread / i.spread, center: i.centerMass })), this.oldGeometricProperties = i;
791
+ var i = se(e, this.$refs.container), n = this.oldGeometricProperties;
792
+ n.count === i.count && n.count > 1 && this.$emit("resize", new B({ left: n.centerMass.left - i.centerMass.left, top: n.centerMass.top - i.centerMass.top }, { factor: n.spread / i.spread, center: i.centerMass })), this.oldGeometricProperties = i;
792
793
  }
793
794
  this.touches = e;
794
795
  }
795
796
  }, processEnd: function() {
796
- this.transforming && (this.transforming = !1, this.$emit("transform-end"));
797
+ this.transforming && (this.transforming = false, this.$emit("transform-end"));
797
798
  }, processStart: function() {
798
- this.transforming = !0, this.debouncedProcessEnd.clear();
799
+ this.transforming = true, this.debouncedProcessEnd.clear();
799
800
  }, processEvent: function(t) {
800
- return this.eventsFilter ? this.eventsFilter(t, this.transforming) !== !1 : (t.preventDefault(), t.stopPropagation(), !0);
801
+ return this.eventsFilter ? false !== this.eventsFilter(t, this.transforming) : (t.preventDefault(), t.stopPropagation(), true);
801
802
  }, onTouchStart: function(t) {
802
803
  if (t.cancelable && (this.touchMove || this.touchResize && t.touches.length > 1) && this.processEvent(t)) {
803
- var e = this.$refs.container, i = e.getBoundingClientRect(), o = i.left, s = i.top, n = i.bottom, a = i.right;
804
- this.touches = k(t.touches).filter(function(h) {
805
- return h.clientX > o && h.clientX < a && h.clientY > s && h.clientY < n;
806
- }), this.oldGeometricProperties = Pt(this.touches, e);
804
+ var e = this.$refs.container, i = e.getBoundingClientRect(), n = i.left, s = i.top, o = i.bottom, r = i.right;
805
+ this.touches = b(t.touches).filter(function(t2) {
806
+ return t2.clientX > n && t2.clientX < r && t2.clientY > s && t2.clientY < o;
807
+ }), this.oldGeometricProperties = se(this.touches, e);
807
808
  }
808
809
  }, onTouchEnd: function(t) {
809
- t.touches.length === 0 && (this.touches = [], this.processEnd());
810
+ 0 === t.touches.length && (this.touches = [], this.processEnd());
810
811
  }, onTouchMove: function(t) {
811
812
  var e = this;
812
813
  if (this.touches.length) {
813
- var i = k(t.touches).filter(function(o) {
814
- return !o.identifier || e.touches.find(function(s) {
815
- return s.identifier === o.identifier;
814
+ var i = b(t.touches).filter(function(t2) {
815
+ return !t2.identifier || e.touches.find(function(e2) {
816
+ return e2.identifier === t2.identifier;
816
817
  });
817
818
  });
818
819
  this.processEvent(t) && (this.processMove(t, i), this.processStart());
819
820
  }
820
821
  }, onMouseDown: function(t) {
821
- if (this.mouseMove && "buttons" in t && t.buttons === 1 && this.processEvent(t)) {
822
- var e = { fake: !0, clientX: t.clientX, clientY: t.clientY };
822
+ if (this.mouseMove && "buttons" in t && 1 === t.buttons && this.processEvent(t)) {
823
+ var e = { fake: true, clientX: t.clientX, clientY: t.clientY };
823
824
  this.touches = [e], this.processStart();
824
825
  }
825
826
  }, onMouseMove: function(t) {
@@ -828,37 +829,37 @@ var Qt = { props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { typ
828
829
  this.touches = [], this.processEnd();
829
830
  }, onWheel: function(t) {
830
831
  if (this.wheelResize && this.processEvent(t)) {
831
- var e = this.$refs.container.getBoundingClientRect(), i = e.left, o = e.top, s = 1 + this.wheelResize.ratio * (a = t.deltaY || t.detail || t.wheelDelta, (h = +a) == 0 || Xt(h) ? h : h > 0 ? 1 : -1), n = { left: t.clientX - i, top: t.clientY - o };
832
- this.$emit("resize", new V({}, { factor: s, center: n })), this.touches.length || this.debouncedProcessEnd();
832
+ var e = this.$refs.container.getBoundingClientRect(), i = e.left, n = e.top, s = 1 + this.wheelResize.ratio * (r = t.deltaY || t.detail || t.wheelDelta, 0 === (a = +r) || $(a) ? a : a > 0 ? 1 : -1), o = { left: t.clientX - i, top: t.clientY - n };
833
+ this.$emit("resize", new B({}, { factor: s, center: o })), this.touches.length || this.debouncedProcessEnd();
833
834
  }
834
- var a, h;
835
+ var r, a;
835
836
  } }, emits: ["resize", "move", "transform-end"] };
836
- Qt.render = function(t, e, i, o, s, n) {
837
- return y(), w("div", { ref: "container", onTouchstart: e[1] || (e[1] = function() {
838
- return n.onTouchStart && n.onTouchStart.apply(n, arguments);
839
- }), onMousedown: e[2] || (e[2] = function() {
840
- return n.onMouseDown && n.onMouseDown.apply(n, arguments);
841
- }), onWheel: e[3] || (e[3] = function() {
842
- return n.onWheel && n.onWheel.apply(n, arguments);
843
- }) }, [X(t.$slots, "default")], 544);
837
+ oe.render = function(n, s, o, r, a, h) {
838
+ return openBlock(), createBlock("div", { ref: "container", onTouchstart: s[1] || (s[1] = function() {
839
+ return h.onTouchStart && h.onTouchStart.apply(h, arguments);
840
+ }), onMousedown: s[2] || (s[2] = function() {
841
+ return h.onMouseDown && h.onMouseDown.apply(h, arguments);
842
+ }), onWheel: s[3] || (s[3] = function() {
843
+ return h.onWheel && h.onWheel.apply(h, arguments);
844
+ }) }, [renderSlot(n.$slots, "default")], 544);
844
845
  };
845
- var bt = { components: { TransformableImage: Qt }, props: { touchMove: { type: Boolean, required: !0 }, mouseMove: { type: Boolean, required: !0 }, touchResize: { type: Boolean, required: !0 }, wheelResize: { type: [Boolean, Object], required: !0 } }, emits: ["resize", "move"] };
846
- bt.render = function(t, e, i, o, s, n) {
847
- var a = $("transformable-image");
848
- return y(), w(a, { "touch-move": i.touchMove, "touch-resize": i.touchResize, "mouse-move": i.mouseMove, "wheel-resize": i.wheelResize, onMove: e[1] || (e[1] = function(h) {
849
- return t.$emit("move", h);
850
- }), onResize: e[2] || (e[2] = function(h) {
851
- return t.$emit("resize", h);
852
- }) }, { default: B(function() {
853
- return [X(t.$slots, "default")];
846
+ var re = { components: { TransformableImage: oe }, props: { touchMove: { type: Boolean, required: true }, mouseMove: { type: Boolean, required: true }, touchResize: { type: Boolean, required: true }, wheelResize: { type: [Boolean, Object], required: true } }, emits: ["resize", "move"] };
847
+ re.render = function(s, r, a, h, c, l) {
848
+ var u = resolveComponent("transformable-image");
849
+ return openBlock(), createBlock(u, { "touch-move": a.touchMove, "touch-resize": a.touchResize, "mouse-move": a.mouseMove, "wheel-resize": a.wheelResize, onMove: r[1] || (r[1] = function(t) {
850
+ return s.$emit("move", t);
851
+ }), onResize: r[2] || (r[2] = function(t) {
852
+ return s.$emit("resize", t);
853
+ }) }, { default: withCtx(function() {
854
+ return [renderSlot(s.$slots, "default")];
854
855
  }), _: 3 }, 8, ["touch-move", "touch-resize", "mouse-move", "wheel-resize"]);
855
856
  };
856
- var et = W("vue-preview"), Kt = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
857
+ var ae = M("vue-preview"), he = { props: { coordinates: { type: Object }, transitions: { type: Object }, image: { type: Object, default: function() {
857
858
  return {};
858
859
  } }, imageClass: { type: String }, width: { type: Number }, height: { type: Number }, fill: { type: Boolean } }, data: function() {
859
860
  return { calculatedImageSize: { width: 0, height: 0 }, calculatedSize: { width: 0, height: 0 } };
860
861
  }, computed: { classes: function() {
861
- return { root: et({ fill: this.fill }), wrapper: et("wrapper"), imageWrapper: et("image-wrapper"), image: z(et("image"), this.imageClass) };
862
+ return { root: ae({ fill: this.fill }), wrapper: ae("wrapper"), imageWrapper: ae("image-wrapper"), image: A(ae("image"), this.imageClass) };
862
863
  }, style: function() {
863
864
  if (this.fill) return {};
864
865
  var t = {};
@@ -868,9 +869,8 @@ var et = W("vue-preview"), Kt = { props: { coordinates: { type: Object }, transi
868
869
  return this.transitions && this.transitions.enabled && (t.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), t;
869
870
  }, imageStyle: function() {
870
871
  if (this.coordinates && this.image) {
871
- var t = this.coordinates.width / this.size.width, e = v(v({ rotate: 0, flip: { horizontal: !1, vertical: !1 } }, this.image.transforms), {}, { scaleX: 1 / t, scaleY: 1 / t }), i = this.imageSize.width, o = this.imageSize.height, s = Zt({ width: i, height: o }, e.rotate), n = { width: "".concat(i, "px"), height: "".concat(o, "px"), left: "0px", top: "0px" }, a = { rotate: { left: (i - s.width) * e.scaleX / 2, top: (o - s.height) * e.scaleY / 2 }, scale: { left: (1 - e.scaleX) * i / 2, top: (1 - e.scaleY) * o / 2 } };
872
- return n.transform = `translate(
873
- `.concat(-this.coordinates.left / t - a.rotate.left - a.scale.left, "px,").concat(-this.coordinates.top / t - a.rotate.top - a.scale.top, "px) ") + Gt(e), this.transitions && this.transitions.enabled && (n.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), n;
872
+ var t = this.coordinates.width / this.size.width, e = g(g({ rotate: 0, flip: { horizontal: false, vertical: false } }, this.image.transforms), {}, { scaleX: 1 / t, scaleY: 1 / t }), i = this.imageSize.width, n = this.imageSize.height, s = pt({ width: i, height: n }, e.rotate), o = { width: "".concat(i, "px"), height: "".concat(n, "px"), left: "0px", top: "0px" }, r = { rotate: { left: (i - s.width) * e.scaleX / 2, top: (n - s.height) * e.scaleY / 2 }, scale: { left: (1 - e.scaleX) * i / 2, top: (1 - e.scaleY) * n / 2 } };
873
+ return o.transform = "translate(\n ".concat(-this.coordinates.left / t - r.rotate.left - r.scale.left, "px,").concat(-this.coordinates.top / t - r.rotate.top - r.scale.top, "px) ") + te(e), this.transitions && this.transitions.enabled && (o.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), o;
874
874
  }
875
875
  return {};
876
876
  }, size: function() {
@@ -896,19 +896,19 @@ var et = W("vue-preview"), Kt = { props: { coordinates: { type: Object }, transi
896
896
  var t = this.$refs.image;
897
897
  t && t.complete && this.refreshImage(), this.refresh();
898
898
  } } };
899
- Kt.render = function(t, e, i, o, s, n) {
900
- return y(), w("div", { ref: "root", class: n.classes.root, style: n.style }, [S("div", { ref: "wrapper", class: n.classes.wrapper, style: n.wrapperStyle }, [It(S("img", { ref: "image", src: i.image && i.image.src, class: n.classes.image, style: n.imageStyle }, null, 14, ["src"]), [[$t, i.image && i.image.src]])], 6)], 6);
899
+ he.render = function(i, n, o, r, a, h) {
900
+ return openBlock(), createBlock("div", { ref: "root", class: h.classes.root, style: h.style }, [createVNode("div", { ref: "wrapper", class: h.classes.wrapper, style: h.wrapperStyle }, [withDirectives(createVNode("img", { ref: "image", src: o.image && o.image.src, class: h.classes.image, style: h.imageStyle }, null, 14, ["src"]), [[vShow, o.image && o.image.src]])], 6)], 6);
901
901
  };
902
- var Jt = { components: { Preview: Kt }, inheritAttrs: !1 };
903
- Jt.render = function(t, e, i, o, s, n) {
904
- var a = $("preview");
905
- return y(), w(a, jt(t.$attrs, { fill: !0 }), null, 16);
902
+ var ce = { components: { Preview: he }, inheritAttrs: false };
903
+ ce.render = function(i, s, o, r, a, h) {
904
+ var c = resolveComponent("preview");
905
+ return openBlock(), createBlock(c, mergeProps(i.$attrs, { fill: true }), null, 16);
906
906
  };
907
- var dt = W("vue-rectangle-stencil"), te = { name: "RectangleStencil", components: { StencilPreview: Jt, BoundingBox: Vt, DraggableArea: _t }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
908
- return zt;
907
+ var le = M("vue-rectangle-stencil"), ue = { name: "RectangleStencil", components: { StencilPreview: ce, BoundingBox: _t, DraggableArea: Qt }, props: { image: { type: Object }, coordinates: { type: Object }, stencilCoordinates: { type: Object }, handlers: { type: Object }, handlersComponent: { type: [Object, String], default: function() {
908
+ return kt;
909
909
  } }, lines: { type: Object }, linesComponent: { type: [Object, String], default: function() {
910
- return At;
911
- } }, aspectRatio: { type: [Number, String] }, minAspectRatio: { type: [Number, String] }, maxAspectRatio: { type: [Number, String] }, movable: { type: Boolean, default: !0 }, resizable: { type: Boolean, default: !0 }, transitions: { type: Object }, movingClass: { type: String }, resizingClass: { type: String }, previewClass: { type: String }, boundingBoxClass: { type: String }, linesClasses: { type: Object, default: function() {
910
+ return Nt;
911
+ } }, aspectRatio: { type: [Number, String] }, minAspectRatio: { type: [Number, String] }, maxAspectRatio: { type: [Number, String] }, movable: { type: Boolean, default: true }, resizable: { type: Boolean, default: true }, transitions: { type: Object }, movingClass: { type: String }, resizingClass: { type: String }, previewClass: { type: String }, boundingBoxClass: { type: String }, linesClasses: { type: Object, default: function() {
912
912
  return {};
913
913
  } }, linesWrappersClasses: { type: Object, default: function() {
914
914
  return {};
@@ -917,102 +917,102 @@ var dt = W("vue-rectangle-stencil"), te = { name: "RectangleStencil", components
917
917
  } }, handlersWrappersClasses: { type: Object, default: function() {
918
918
  return {};
919
919
  } } }, data: function() {
920
- return { moving: !1, resizing: !1 };
920
+ return { moving: false, resizing: false };
921
921
  }, computed: { classes: function() {
922
- return { stencil: z(dt({ movable: this.movable, moving: this.moving, resizing: this.resizing }), this.moving && this.movingClass, this.resizing && this.resizingClass), preview: z(dt("preview"), this.previewClass), boundingBox: z(dt("bounding-box"), this.boundingBoxClass) };
922
+ return { stencil: A(le({ movable: this.movable, moving: this.moving, resizing: this.resizing }), this.moving && this.movingClass, this.resizing && this.resizingClass), preview: A(le("preview"), this.previewClass), boundingBox: A(le("bounding-box"), this.boundingBoxClass) };
923
923
  }, style: function() {
924
- var t = this.stencilCoordinates, e = t.height, i = t.width, o = t.left, s = t.top, n = { width: "".concat(i, "px"), height: "".concat(e, "px"), transform: "translate(".concat(o, "px, ").concat(s, "px)") };
925
- return this.transitions && this.transitions.enabled && (n.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), n;
924
+ var t = this.stencilCoordinates, e = t.height, i = t.width, n = t.left, s = t.top, o = { width: "".concat(i, "px"), height: "".concat(e, "px"), transform: "translate(".concat(n, "px, ").concat(s, "px)") };
925
+ return this.transitions && this.transitions.enabled && (o.transition = "".concat(this.transitions.time, "ms ").concat(this.transitions.timingFunction)), o;
926
926
  } }, methods: { onMove: function(t) {
927
- this.$emit("move", t), this.moving = !0;
927
+ this.$emit("move", t), this.moving = true;
928
928
  }, onMoveEnd: function() {
929
- this.$emit("move-end"), this.moving = !1;
929
+ this.$emit("move-end"), this.moving = false;
930
930
  }, onResize: function(t) {
931
- this.$emit("resize", t), this.resizing = !0;
931
+ this.$emit("resize", t), this.resizing = true;
932
932
  }, onResizeEnd: function() {
933
- this.$emit("resize-end"), this.resizing = !1;
933
+ this.$emit("resize-end"), this.resizing = false;
934
934
  }, aspectRatios: function() {
935
935
  return { minimum: this.aspectRatio || this.minAspectRatio, maximum: this.aspectRatio || this.maxAspectRatio };
936
936
  } }, emits: ["resize", "resize-end", "move", "move-end"] };
937
- te.render = function(t, e, i, o, s, n) {
938
- var a = $("stencil-preview"), h = $("draggable-area"), r = $("bounding-box");
939
- return y(), w("div", { class: n.classes.stencil, style: n.style }, [S(r, { width: i.stencilCoordinates.width, height: i.stencilCoordinates.height, transitions: i.transitions, class: n.classes.boundingBox, handlers: i.handlers, "handlers-component": i.handlersComponent, "handlers-classes": i.handlersClasses, "handlers-wrappers-classes": i.handlersWrappersClasses, lines: i.lines, "lines-component": i.linesComponent, "lines-classes": i.linesClasses, "lines-wrappers-classes": i.linesWrappersClasses, resizable: i.resizable, onResize: n.onResize, onResizeEnd: n.onResizeEnd }, { default: B(function() {
940
- return [S(h, { movable: i.movable, onMove: n.onMove, onMoveEnd: n.onMoveEnd }, { default: B(function() {
941
- return [S(a, { image: i.image, coordinates: i.coordinates, width: i.stencilCoordinates.width, height: i.stencilCoordinates.height, class: n.classes.preview, transitions: i.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
937
+ ue.render = function(i, r, a, h, c, l) {
938
+ var u = resolveComponent("stencil-preview"), d = resolveComponent("draggable-area"), m = resolveComponent("bounding-box");
939
+ return openBlock(), createBlock("div", { class: l.classes.stencil, style: l.style }, [createVNode(m, { width: a.stencilCoordinates.width, height: a.stencilCoordinates.height, transitions: a.transitions, class: l.classes.boundingBox, handlers: a.handlers, "handlers-component": a.handlersComponent, "handlers-classes": a.handlersClasses, "handlers-wrappers-classes": a.handlersWrappersClasses, lines: a.lines, "lines-component": a.linesComponent, "lines-classes": a.linesClasses, "lines-wrappers-classes": a.linesWrappersClasses, resizable: a.resizable, onResize: l.onResize, onResizeEnd: l.onResizeEnd }, { default: withCtx(function() {
940
+ return [createVNode(d, { movable: a.movable, onMove: l.onMove, onMoveEnd: l.onMoveEnd }, { default: withCtx(function() {
941
+ return [createVNode(u, { image: a.image, coordinates: a.coordinates, width: a.stencilCoordinates.width, height: a.stencilCoordinates.height, class: l.classes.preview, transitions: a.transitions }, null, 8, ["image", "coordinates", "width", "height", "class", "transitions"])];
942
942
  }), _: 1 }, 8, ["movable", "onMove", "onMoveEnd"])];
943
943
  }), _: 1 }, 8, ["width", "height", "transitions", "class", "handlers", "handlers-component", "handlers-classes", "handlers-wrappers-classes", "lines", "lines-component", "lines-classes", "lines-wrappers-classes", "resizable", "onResize", "onResizeEnd"])], 6);
944
944
  };
945
- var Oe = ["transitions"], P = W("vue-advanced-cropper"), He = { name: "Cropper", components: { BackgroundWrapper: bt }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
946
- return te;
945
+ var pe = ["transitions"], ge = M("vue-advanced-cropper"), fe = { name: "Cropper", components: { BackgroundWrapper: re }, props: { src: { type: String, default: null }, stencilComponent: { type: [Object, String], default: function() {
946
+ return ue;
947
947
  } }, backgroundWrapperComponent: { type: [Object, String], default: function() {
948
- return bt;
948
+ return re;
949
949
  } }, stencilProps: { type: Object, default: function() {
950
950
  return {};
951
- } }, autoZoom: { type: Boolean, default: !1 }, imageClass: { type: String }, boundariesClass: { type: String }, backgroundClass: { type: String }, foregroundClass: { type: String }, minWidth: { type: [Number, String] }, minHeight: { type: [Number, String] }, maxWidth: { type: [Number, String] }, maxHeight: { type: [Number, String] }, debounce: { type: [Boolean, Number], default: 500 }, transitions: { type: Boolean, default: !0 }, checkOrientation: { type: Boolean, default: !0 }, canvas: { type: [Object, Boolean], default: !0 }, crossOrigin: { type: [Boolean, String], default: void 0 }, transitionTime: { type: Number, default: 300 }, imageRestriction: { type: String, default: "fit-area", validator: function(t) {
952
- return le.indexOf(t) !== -1;
953
- } }, roundResult: { type: Boolean, default: !0 }, defaultSize: { type: [Function, Object] }, defaultPosition: { type: [Function, Object] }, defaultVisibleArea: { type: [Function, Object] }, defaultTransforms: { type: [Function, Object] }, defaultBoundaries: { type: [Function, String], validator: function(t) {
954
- return !(typeof t == "string" && t !== "fill" && t !== "fit");
955
- } }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: !0 }, moveImage: { type: [Boolean, Object], default: !0 }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(t) {
956
- var e = t.event, i = t.coordinates, o = t.aspectRatio, s = t.positionRestrictions, n = t.sizeRestrictions, a = f(f({}, i), { right: i.left + i.width, bottom: i.top + i.height }), h = e.params || {}, r = f({}, e.directions), c = h.allowedDirections || { left: !0, right: !0, bottom: !0, top: !0 };
957
- n.widthFrozen && (r.left = 0, r.right = 0), n.heightFrozen && (r.top = 0, r.bottom = 0), O.forEach(function(q) {
958
- c[q] || (r[q] = 0);
951
+ } }, autoZoom: { type: Boolean, default: false }, imageClass: { type: String }, boundariesClass: { type: String }, backgroundClass: { type: String }, foregroundClass: { type: String }, minWidth: { type: [Number, String] }, minHeight: { type: [Number, String] }, maxWidth: { type: [Number, String] }, maxHeight: { type: [Number, String] }, debounce: { type: [Boolean, Number], default: 500 }, transitions: { type: Boolean, default: true }, checkOrientation: { type: Boolean, default: true }, canvas: { type: [Object, Boolean], default: true }, crossOrigin: { type: [Boolean, String], default: void 0 }, transitionTime: { type: Number, default: 300 }, imageRestriction: { type: String, default: "fit-area", validator: function(t) {
952
+ return -1 !== K.indexOf(t);
953
+ } }, roundResult: { type: Boolean, default: true }, defaultSize: { type: [Function, Object] }, defaultPosition: { type: [Function, Object] }, defaultVisibleArea: { type: [Function, Object] }, defaultTransforms: { type: [Function, Object] }, defaultBoundaries: { type: [Function, String], validator: function(t) {
954
+ return !("string" == typeof t && "fill" !== t && "fit" !== t);
955
+ } }, priority: { type: String, default: "coordinates" }, stencilSize: { type: [Object, Function] }, resizeImage: { type: [Boolean, Object], default: true }, moveImage: { type: [Boolean, Object], default: true }, autoZoomAlgorithm: { type: Function }, resizeAlgorithm: { type: Function, default: function(t) {
956
+ var e = t.event, i = t.coordinates, n = t.aspectRatio, s = t.positionRestrictions, o = t.sizeRestrictions, r = C(C({}, i), { right: i.left + i.width, bottom: i.top + i.height }), a = e.params || {}, h = C({}, e.directions), c = a.allowedDirections || { left: true, right: true, bottom: true, top: true };
957
+ o.widthFrozen && (h.left = 0, h.right = 0), o.heightFrozen && (h.top = 0, h.bottom = 0), V.forEach(function(t2) {
958
+ c[t2] || (h[t2] = 0);
959
959
  });
960
- var l = D(a, r = Lt({ coordinates: a, directions: r, sizeRestrictions: n, positionRestrictions: s })).width, u = D(a, r).height, d = h.preserveRatio ? b(a) : ct(l / u, o);
960
+ var l = ot(r, h = It({ coordinates: r, directions: h, sizeRestrictions: o, positionRestrictions: s })).width, u = ot(r, h).height, d = a.preserveRatio ? ct(r) : dt(l / u, n);
961
961
  if (d) {
962
- var m = h.respectDirection;
963
- if (m || (m = a.width >= a.height || d === 1 ? "width" : "height"), m === "width") {
964
- var g = l / d - a.height;
962
+ var m = a.respectDirection;
963
+ if (m || (m = r.width >= r.height || 1 === d ? "width" : "height"), "width" === m) {
964
+ var p2 = l / d - r.height;
965
965
  if (c.top && c.bottom) {
966
- var p = r.top, E = r.bottom;
967
- r.bottom = tt(g, E, p), r.top = tt(g, p, E);
968
- } else c.bottom ? r.bottom = g : c.top ? r.top = g : c.right ? r.right = 0 : c.left && (r.left = 0);
969
- } else if (m === "height") {
970
- var L = a.width - u * d;
966
+ var g2 = h.top, f2 = h.bottom;
967
+ h.bottom = Bt(p2, f2, g2), h.top = Bt(p2, g2, f2);
968
+ } else c.bottom ? h.bottom = p2 : c.top ? h.top = p2 : c.right ? h.right = 0 : c.left && (h.left = 0);
969
+ } else if ("height" === m) {
970
+ var v2 = r.width - u * d;
971
971
  if (c.left && c.right) {
972
- var Z = r.left, G = r.right;
973
- r.left = -tt(L, Z, G), r.right = -tt(L, G, Z);
974
- } else c.left ? r.left = -L : c.right ? r.right = -L : c.top ? r.top = 0 : c.bottom && (r.bottom = 0);
972
+ var b2 = h.left, w2 = h.right;
973
+ h.left = -Bt(v2, b2, w2), h.right = -Bt(v2, w2, b2);
974
+ } else c.left ? h.left = -v2 : c.right ? h.right = -v2 : c.top ? h.top = 0 : c.bottom && (h.bottom = 0);
975
975
  }
976
- r = Lt({ directions: r, coordinates: a, sizeRestrictions: n, positionRestrictions: s, preserveRatio: !0, compensate: h.compensate });
976
+ h = It({ directions: h, coordinates: r, sizeRestrictions: o, positionRestrictions: s, preserveRatio: true, compensate: a.compensate });
977
977
  }
978
- return l = D(a, r).width, u = D(a, r).height, (d = h.preserveRatio ? b(a) : ct(l / u, o)) && Math.abs(d - l / u) > 1e-3 && O.forEach(function(q) {
979
- c[q] || (r[q] = 0);
980
- }), vt({ event: new wt({ left: -r.left, top: -r.top }), coordinates: { width: i.width + r.right + r.left, height: i.height + r.top + r.bottom, left: i.left, top: i.top }, positionRestrictions: s });
981
- } }, moveAlgorithm: { type: Function, default: vt }, initStretcher: { type: Function, default: function(t) {
982
- var e = t.stretcher, i = t.imageSize, o = b(i);
983
- e.style.width = i.width + "px", e.style.height = e.clientWidth / o + "px", e.style.width = e.clientWidth + "px";
978
+ return l = ot(r, h).width, u = ot(r, h).height, (d = a.preserveRatio ? ct(r) : dt(l / u, n)) && Math.abs(d - l / u) > 1e-3 && V.forEach(function(t2) {
979
+ c[t2] || (h[t2] = 0);
980
+ }), St({ event: new Y({ left: -h.left, top: -h.top }), coordinates: { width: i.width + h.right + h.left, height: i.height + h.top + h.bottom, left: i.left, top: i.top }, positionRestrictions: s });
981
+ } }, moveAlgorithm: { type: Function, default: St }, initStretcher: { type: Function, default: function(t) {
982
+ var e = t.stretcher, i = t.imageSize, n = ct(i);
983
+ e.style.width = i.width + "px", e.style.height = e.clientWidth / n + "px", e.style.width = e.clientWidth + "px";
984
984
  } }, fitCoordinates: { type: Function, default: function(t) {
985
- var e = t.visibleArea, i = t.coordinates, o = t.aspectRatio, s = t.sizeRestrictions, n = t.positionRestrictions, a = f(f({}, i), I({ width: i.width, height: i.height, aspectRatio: o, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
986
- return a = M(a = x(a, F(R(i), R(a))), rt(H(e), n));
985
+ var e = t.visibleArea, i = t.coordinates, n = t.aspectRatio, s = t.sizeRestrictions, o = t.positionRestrictions, r = C(C({}, i), Mt({ width: i.width, height: i.height, aspectRatio: n, sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minHeight: Math.min(e.height, s.minHeight), minWidth: Math.min(e.width, s.minWidth) } }));
986
+ return r = vt(r = at(r, it(nt(i), nt(r))), zt(et(e), o));
987
987
  } }, fitVisibleArea: { type: Function, default: function(t) {
988
- var e = t.visibleArea, i = t.boundaries, o = t.getAreaRestrictions, s = t.coordinates, n = f({}, e);
989
- n.height = n.width / b(i), n.top += (e.height - n.height) / 2, (s.height - n.height > 0 || s.width - n.width > 0) && (n = T(n, Math.max(s.height / n.height, s.width / n.width)));
990
- var a = ot(N(s, H(n = T(n, st(n, o({ visibleArea: n, type: "resize" }))))));
991
- return n.width < s.width && (a.left = 0), n.height < s.height && (a.top = 0), n = M(n = x(n, a), o({ visibleArea: n, type: "move" }));
988
+ var e = t.visibleArea, i = t.boundaries, n = t.getAreaRestrictions, s = t.coordinates, o = C({}, e);
989
+ o.height = o.width / ct(i), o.top += (e.height - o.height) / 2, (s.height - o.height > 0 || s.width - o.width > 0) && (o = ht(o, Math.max(s.height / o.height, s.width / o.width)));
990
+ var r = rt(ut(s, et(o = ht(o, ft(o, n({ visibleArea: o, type: "resize" }))))));
991
+ return o.width < s.width && (r.left = 0), o.height < s.height && (r.top = 0), o = vt(o = at(o, r), n({ visibleArea: o, type: "move" }));
992
992
  } }, areaRestrictionsAlgorithm: { type: Function, default: function(t) {
993
- var e = t.visibleArea, i = t.boundaries, o = t.imageSize, s = t.imageRestriction, n = t.type, a = {};
994
- return s === "fill-area" ? a = { left: 0, top: 0, right: o.width, bottom: o.height } : s === "fit-area" && (b(i) > b(o) ? (a = { top: 0, bottom: o.height }, e && n === "move" && (e.width > o.width ? (a.left = -(e.width - o.width) / 2, a.right = o.width - a.left) : (a.left = 0, a.right = o.width))) : (a = { left: 0, right: o.width }, e && n === "move" && (e.height > o.height ? (a.top = -(e.height - o.height) / 2, a.bottom = o.height - a.top) : (a.top = 0, a.bottom = o.height)))), a;
993
+ var e = t.visibleArea, i = t.boundaries, n = t.imageSize, s = t.imageRestriction, o = t.type, r = {};
994
+ return "fill-area" === s ? r = { left: 0, top: 0, right: n.width, bottom: n.height } : "fit-area" === s && (ct(i) > ct(n) ? (r = { top: 0, bottom: n.height }, e && "move" === o && (e.width > n.width ? (r.left = -(e.width - n.width) / 2, r.right = n.width - r.left) : (r.left = 0, r.right = n.width))) : (r = { left: 0, right: n.width }, e && "move" === o && (e.height > n.height ? (r.top = -(e.height - n.height) / 2, r.bottom = n.height - r.top) : (r.top = 0, r.bottom = n.height)))), r;
995
995
  } }, sizeRestrictionsAlgorithm: { type: Function, default: function(t) {
996
996
  return { minWidth: t.minWidth, minHeight: t.minHeight, maxWidth: t.maxWidth, maxHeight: t.maxHeight };
997
997
  } }, positionRestrictionsAlgorithm: { type: Function, default: function(t) {
998
998
  var e = t.imageSize, i = {};
999
- return t.imageRestriction !== "none" && (i = { left: 0, top: 0, right: e.width, bottom: e.height }), i;
999
+ return "none" !== t.imageRestriction && (i = { left: 0, top: 0, right: e.width, bottom: e.height }), i;
1000
1000
  } } }, data: function() {
1001
- return { transitionsActive: !1, imageLoaded: !1, imageAttributes: { width: null, height: null, crossOrigin: null, src: null }, defaultImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, appliedImageTransforms: { rotate: 0, flip: { horizontal: !1, vertical: !1 } }, boundaries: { width: 0, height: 0 }, visibleArea: null, coordinates: v({}, Wt) };
1001
+ return { transitionsActive: false, imageLoaded: false, imageAttributes: { width: null, height: null, crossOrigin: null, src: null }, defaultImageTransforms: { rotate: 0, flip: { horizontal: false, vertical: false } }, appliedImageTransforms: { rotate: 0, flip: { horizontal: false, vertical: false } }, boundaries: { width: 0, height: 0 }, visibleArea: null, coordinates: g({}, J) };
1002
1002
  }, computed: { image: function() {
1003
1003
  return { src: this.imageAttributes.src, width: this.imageAttributes.width, height: this.imageAttributes.height, transforms: this.imageTransforms };
1004
1004
  }, imageTransforms: function() {
1005
1005
  return { rotate: this.appliedImageTransforms.rotate, flip: { horizontal: this.appliedImageTransforms.flip.horizontal, vertical: this.appliedImageTransforms.flip.vertical }, translateX: this.visibleArea ? this.visibleArea.left / this.coefficient : 0, translateY: this.visibleArea ? this.visibleArea.top / this.coefficient : 0, scaleX: 1 / this.coefficient, scaleY: 1 / this.coefficient };
1006
1006
  }, imageSize: function() {
1007
- var t = function(e) {
1008
- return e * Math.PI / 180;
1007
+ var t = function(t2) {
1008
+ return t2 * Math.PI / 180;
1009
1009
  }(this.imageTransforms.rotate);
1010
1010
  return { width: Math.abs(this.imageAttributes.width * Math.cos(t)) + Math.abs(this.imageAttributes.height * Math.sin(t)), height: Math.abs(this.imageAttributes.width * Math.sin(t)) + Math.abs(this.imageAttributes.height * Math.cos(t)) };
1011
1011
  }, initialized: function() {
1012
- return !!(this.visibleArea && this.imageLoaded);
1012
+ return Boolean(this.visibleArea && this.imageLoaded);
1013
1013
  }, settings: function() {
1014
- var t = gt(this.resizeImage, { touch: !0, wheel: { ratio: 0.1 }, adjustStencil: !0 }, { touch: !1, wheel: !1, adjustStencil: !1 });
1015
- return { moveImage: gt(this.moveImage, { touch: !0, mouse: !0 }, { touch: !1, mouse: !1 }), resizeImage: t };
1014
+ var t = j(this.resizeImage, { touch: true, wheel: { ratio: 0.1 }, adjustStencil: true }, { touch: false, wheel: false, adjustStencil: false });
1015
+ return { moveImage: j(this.moveImage, { touch: true, mouse: true }, { touch: false, mouse: false }), resizeImage: t };
1016
1016
  }, coefficient: function() {
1017
1017
  return this.visibleArea ? this.visibleArea.width / this.boundaries.width : 0;
1018
1018
  }, areaRestrictions: function() {
@@ -1021,14 +1021,16 @@ var Oe = ["transitions"], P = W("vue-advanced-cropper"), He = { name: "Cropper",
1021
1021
  return { enabled: this.transitionsActive, timingFunction: "ease-in-out", time: 350 };
1022
1022
  }, sizeRestrictions: function() {
1023
1023
  if (this.boundaries.width && this.boundaries.height && this.imageSize.width && this.imageSize.height) {
1024
- var t = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth: A(this.minWidth) ? 0 : K(this.minWidth), minHeight: A(this.minHeight) ? 0 : K(this.minHeight), maxWidth: A(this.maxWidth) ? 1 / 0 : K(this.maxWidth), maxHeight: A(this.maxHeight) ? 1 / 0 : K(this.maxHeight) });
1025
- if (t = function(o) {
1026
- var s = o.areaRestrictions, n = o.sizeRestrictions, a = o.boundaries, h = o.positionRestrictions, r = f(f({}, n), { minWidth: n.minWidth !== void 0 ? n.minWidth : 0, minHeight: n.minHeight !== void 0 ? n.minHeight : 0, maxWidth: n.maxWidth !== void 0 ? n.maxWidth : 1 / 0, maxHeight: n.maxHeight !== void 0 ? n.maxHeight : 1 / 0 });
1027
- h.left !== void 0 && h.right !== void 0 && (r.maxWidth = Math.min(r.maxWidth, h.right - h.left)), h.bottom !== void 0 && h.top !== void 0 && (r.maxHeight = Math.min(r.maxHeight, h.bottom - h.top));
1028
- var c = pt(s), l = Nt(a, c);
1029
- return c.width < 1 / 0 && (!r.maxWidth || r.maxWidth > l.width) && (r.maxWidth = Math.min(r.maxWidth, l.width)), c.height < 1 / 0 && (!r.maxHeight || r.maxHeight > l.height) && (r.maxHeight = Math.min(r.maxHeight, l.height)), r.minWidth > r.maxWidth && (r.minWidth = r.maxWidth, r.widthFrozen = !0), r.minHeight > r.maxHeight && (r.minHeight = r.maxHeight, r.heightFrozen = !0), r;
1024
+ var t = this.sizeRestrictionsAlgorithm({ imageSize: this.imageSize, minWidth: D(this.minWidth) ? 0 : L(this.minWidth), minHeight: D(this.minHeight) ? 0 : L(this.minHeight), maxWidth: D(this.maxWidth) ? 1 / 0 : L(this.maxWidth), maxHeight: D(this.maxHeight) ? 1 / 0 : L(this.maxHeight) });
1025
+ if (t = function(t2) {
1026
+ var e2 = t2.areaRestrictions, i2 = t2.sizeRestrictions;
1027
+ var n = t2.boundaries, s = t2.positionRestrictions;
1028
+ var o = C(C({}, i2), { minWidth: void 0 !== i2.minWidth ? i2.minWidth : 0, minHeight: void 0 !== i2.minHeight ? i2.minHeight : 0, maxWidth: void 0 !== i2.maxWidth ? i2.maxWidth : 1 / 0, maxHeight: void 0 !== i2.maxHeight ? i2.maxHeight : 1 / 0 });
1029
+ void 0 !== s.left && void 0 !== s.right && (o.maxWidth = Math.min(o.maxWidth, s.right - s.left)), void 0 !== s.bottom && void 0 !== s.top && (o.maxHeight = Math.min(o.maxHeight, s.bottom - s.top));
1030
+ var r = bt(e2), a = mt(n, r);
1031
+ return r.width < 1 / 0 && (!o.maxWidth || o.maxWidth > a.width) && (o.maxWidth = Math.min(o.maxWidth, a.width)), r.height < 1 / 0 && (!o.maxHeight || o.maxHeight > a.height) && (o.maxHeight = Math.min(o.maxHeight, a.height)), o.minWidth > o.maxWidth && (o.minWidth = o.maxWidth, o.widthFrozen = true), o.minHeight > o.maxHeight && (o.minHeight = o.maxHeight, o.heightFrozen = true), o;
1030
1032
  }({ sizeRestrictions: t, areaRestrictions: this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }), imageSize: this.imageSize, boundaries: this.boundaries, positionRestrictions: this.positionRestrictions, imageRestriction: this.imageRestriction, visibleArea: this.visibleArea, stencilSize: this.getStencilSize() }), this.visibleArea && this.stencilSize) {
1031
- var e = this.getStencilSize(), i = pt(this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }));
1033
+ var e = this.getStencilSize(), i = bt(this.getAreaRestrictions({ visibleArea: this.visibleArea, type: "resize" }));
1032
1034
  t.maxWidth = Math.min(t.maxWidth, i.width * e.width / this.boundaries.width), t.maxHeight = Math.min(t.maxHeight, i.height * e.height / this.boundaries.height), t.maxWidth < t.minWidth && (t.minWidth = t.maxWidth), t.maxHeight < t.minHeight && (t.minHeight = t.maxHeight);
1033
1035
  }
1034
1036
  return t;
@@ -1037,18 +1039,18 @@ var Oe = ["transitions"], P = W("vue-advanced-cropper"), He = { name: "Cropper",
1037
1039
  }, positionRestrictions: function() {
1038
1040
  return this.positionRestrictionsAlgorithm({ imageSize: this.imageSize, imageRestriction: this.imageRestriction });
1039
1041
  }, classes: function() {
1040
- return { cropper: P(), image: z(P("image"), this.imageClass), stencil: P("stencil"), boundaries: z(P("boundaries"), this.boundariesClass), stretcher: z(P("stretcher")), background: z(P("background"), this.backgroundClass), foreground: z(P("foreground"), this.foregroundClass), imageWrapper: z(P("image-wrapper")), cropperWrapper: z(P("cropper-wrapper")) };
1042
+ return { cropper: ge(), image: A(ge("image"), this.imageClass), stencil: ge("stencil"), boundaries: A(ge("boundaries"), this.boundariesClass), stretcher: A(ge("stretcher")), background: A(ge("background"), this.backgroundClass), foreground: A(ge("foreground"), this.foregroundClass), imageWrapper: A(ge("image-wrapper")), cropperWrapper: A(ge("cropper-wrapper")) };
1041
1043
  }, stencilCoordinates: function() {
1042
1044
  if (this.initialized) {
1043
- var t = this.coordinates, e = t.width, i = t.height, o = t.left, s = t.top;
1044
- return { width: e / this.coefficient, height: i / this.coefficient, left: (o - this.visibleArea.left) / this.coefficient, top: (s - this.visibleArea.top) / this.coefficient };
1045
+ var t = this.coordinates, e = t.width, i = t.height, n = t.left, s = t.top;
1046
+ return { width: e / this.coefficient, height: i / this.coefficient, left: (n - this.visibleArea.left) / this.coefficient, top: (s - this.visibleArea.top) / this.coefficient };
1045
1047
  }
1046
1048
  return this.defaultCoordinates();
1047
1049
  }, boundariesStyle: function() {
1048
1050
  var t = { width: this.boundaries.width ? "".concat(Math.round(this.boundaries.width), "px") : "auto", height: this.boundaries.height ? "".concat(Math.round(this.boundaries.height), "px") : "auto", transition: "opacity ".concat(this.transitionTime, "ms"), pointerEvents: this.imageLoaded ? "all" : "none" };
1049
1051
  return this.imageLoaded || (t.opacity = "0"), t;
1050
1052
  }, imageStyle: function() {
1051
- var t = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, e = { left: (t.width - this.imageSize.width) / (2 * this.coefficient), top: (t.height - this.imageSize.height) / (2 * this.coefficient) }, i = { left: (1 - 1 / this.coefficient) * t.width / 2, top: (1 - 1 / this.coefficient) * t.height / 2 }, o = v(v({}, this.imageTransforms), {}, { scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / t.width), scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / t.height) }), s = { width: "".concat(t.width, "px"), height: "".concat(t.height, "px"), left: "0px", top: "0px", transform: "translate(".concat(-e.left - i.left - this.imageTransforms.translateX, "px, ").concat(-e.top - i.top - this.imageTransforms.translateY, "px)") + Gt(o) };
1053
+ var t = this.imageAttributes.width > this.imageAttributes.height ? { width: Math.min(1024, this.imageAttributes.width), height: Math.min(1024, this.imageAttributes.width) / (this.imageAttributes.width / this.imageAttributes.height) } : { height: Math.min(1024, this.imageAttributes.height), width: Math.min(1024, this.imageAttributes.height) * (this.imageAttributes.width / this.imageAttributes.height) }, e = { left: (t.width - this.imageSize.width) / (2 * this.coefficient), top: (t.height - this.imageSize.height) / (2 * this.coefficient) }, i = { left: (1 - 1 / this.coefficient) * t.width / 2, top: (1 - 1 / this.coefficient) * t.height / 2 }, n = g(g({}, this.imageTransforms), {}, { scaleX: this.imageTransforms.scaleX * (this.imageAttributes.width / t.width), scaleY: this.imageTransforms.scaleY * (this.imageAttributes.height / t.height) }), s = { width: "".concat(t.width, "px"), height: "".concat(t.height, "px"), left: "0px", top: "0px", transform: "translate(".concat(-e.left - i.left - this.imageTransforms.translateX, "px, ").concat(-e.top - i.top - this.imageTransforms.translateY, "px)") + te(n) };
1052
1054
  return this.transitionsOptions.enabled && (s.transition = "".concat(this.transitionsOptions.time, "ms ").concat(this.transitionsOptions.timingFunction)), s;
1053
1055
  } }, watch: { src: function() {
1054
1056
  this.onChangeImage();
@@ -1072,30 +1074,30 @@ var Oe = ["transitions"], P = W("vue-advanced-cropper"), He = { name: "Cropper",
1072
1074
  return t[i] !== e[i];
1073
1075
  }) && this.$nextTick(this.onPropsChange);
1074
1076
  } }, created: function() {
1075
- this.debouncedUpdate = ft(this.update, this.debounce), this.debouncedDisableTransitions = ft(this.disableTransitions, this.transitionsOptions.time), this.awaiting = !1;
1077
+ this.debouncedUpdate = x(this.update, this.debounce), this.debouncedDisableTransitions = x(this.disableTransitions, this.transitionsOptions.time), this.awaiting = false;
1076
1078
  }, mounted: function() {
1077
1079
  this.$refs.image.addEventListener("load", this.onSuccessLoadImage), this.$refs.image.addEventListener("error", this.onFailLoadImage), this.onChangeImage(), window.addEventListener("resize", this.refresh), window.addEventListener("orientationchange", this.refresh);
1078
1080
  }, unmounted: function() {
1079
1081
  window.removeEventListener("resize", this.refresh), window.removeEventListener("orientationchange", this.refresh), this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.debouncedUpdate.clear(), this.debouncedDisableTransitions.clear();
1080
1082
  }, methods: { getResult: function() {
1081
- var t = this.initialized ? this.prepareResult(v({}, this.coordinates)) : this.defaultCoordinates(), e = { rotate: this.imageTransforms.rotate % 360, flip: v({}, this.imageTransforms.flip) };
1083
+ var t = this.initialized ? this.prepareResult(g({}, this.coordinates)) : this.defaultCoordinates(), e = { rotate: this.imageTransforms.rotate % 360, flip: g({}, this.imageTransforms.flip) };
1082
1084
  if (this.src && this.imageLoaded) {
1083
1085
  var i = this;
1084
- return { image: this.image, coordinates: t, visibleArea: this.visibleArea ? v({}, this.visibleArea) : null, imageTransforms: e, get canvas() {
1086
+ return { image: this.image, coordinates: t, visibleArea: this.visibleArea ? g({}, this.visibleArea) : null, imageTransforms: e, get canvas() {
1085
1087
  return i.canvas ? i.getCanvas() : void 0;
1086
1088
  } };
1087
1089
  }
1088
- return { image: this.image, coordinates: t, visibleArea: this.visibleArea ? v({}, this.visibleArea) : null, canvas: void 0, imageTransforms: e };
1090
+ return { image: this.image, coordinates: t, visibleArea: this.visibleArea ? g({}, this.visibleArea) : null, canvas: void 0, imageTransforms: e };
1089
1091
  }, zoom: function(t, e) {
1090
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.transitions, s = o === void 0 || o;
1091
- this.onManipulateImage(new V({}, { factor: 1 / t, center: e }), { normalize: !1, transitions: s });
1092
+ var i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, n = i.transitions, s = void 0 === n || n;
1093
+ this.onManipulateImage(new B({}, { factor: 1 / t, center: e }), { normalize: false, transitions: s });
1092
1094
  }, move: function(t, e) {
1093
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.transitions, s = o === void 0 || o;
1094
- this.onManipulateImage(new V({ left: t || 0, top: e || 0 }), { normalize: !1, transitions: s });
1095
+ var i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, n = i.transitions, s = void 0 === n || n;
1096
+ this.onManipulateImage(new B({ left: t || 0, top: e || 0 }), { normalize: false, transitions: s });
1095
1097
  }, setCoordinates: function(t) {
1096
- var e = this, i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = i.autoZoom, s = o === void 0 || o, n = i.transitions, a = n === void 0 || n;
1098
+ var e = this, i = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, n = i.autoZoom, s = void 0 === n || n, o = i.transitions, r = void 0 === o || o;
1097
1099
  this.$nextTick(function() {
1098
- e.imageLoaded ? (e.transitionsActive || (a && e.enableTransitions(), e.coordinates = e.applyTransform(t), s && e.runAutoZoom("setCoordinates"), a && e.debouncedDisableTransitions()), e.onChange()) : e.delayedTransforms = t;
1100
+ e.imageLoaded ? (e.transitionsActive || (r && e.enableTransitions(), e.coordinates = e.applyTransform(t), s && e.runAutoZoom("setCoordinates"), r && e.debouncedDisableTransitions()), e.onChange()) : e.delayedTransforms = t;
1099
1101
  });
1100
1102
  }, refresh: function() {
1101
1103
  var t = this, e = this.$refs.image;
@@ -1107,116 +1109,116 @@ var Oe = ["transitions"], P = W("vue-advanced-cropper"), He = { name: "Cropper",
1107
1109
  }, reset: function() {
1108
1110
  var t = this;
1109
1111
  return this.resetVisibleArea().then(function() {
1110
- t.onChange(!1);
1112
+ t.onChange(false);
1111
1113
  });
1112
1114
  }, awaitRender: function(t) {
1113
1115
  var e = this;
1114
- this.awaiting || (this.awaiting = !0, this.$nextTick(function() {
1115
- t(), e.awaiting = !1;
1116
+ this.awaiting || (this.awaiting = true, this.$nextTick(function() {
1117
+ t(), e.awaiting = false;
1116
1118
  }));
1117
1119
  }, prepareResult: function(t) {
1118
- return this.roundResult ? function(e) {
1119
- var i = e.coordinates, o = e.sizeRestrictions, s = e.positionRestrictions, n = { width: Math.round(i.width), height: Math.round(i.height), left: Math.round(i.left), top: Math.round(i.top) };
1120
- return n.width > o.maxWidth ? n.width = Math.floor(i.width) : n.width < o.minWidth && (n.width = Math.ceil(i.width)), n.height > o.maxHeight ? n.height = Math.floor(i.height) : n.height < o.minHeight && (n.height = Math.ceil(i.height)), M(n, s);
1121
- }(v(v({}, this.getPublicProperties()), {}, { positionRestrictions: J(this.positionRestrictions, this.visibleArea), coordinates: t })) : t;
1122
- }, processAutoZoom: function(t, e, i, o) {
1120
+ return this.roundResult ? function(t2) {
1121
+ var e = t2.coordinates, i = t2.sizeRestrictions, n = t2.positionRestrictions, s = { width: Math.round(e.width), height: Math.round(e.height), left: Math.round(e.left), top: Math.round(e.top) };
1122
+ return s.width > i.maxWidth ? s.width = Math.floor(e.width) : s.width < i.minWidth && (s.width = Math.ceil(e.width)), s.height > i.maxHeight ? s.height = Math.floor(e.height) : s.height < i.minHeight && (s.height = Math.ceil(e.height)), vt(s, n);
1123
+ }(g(g({}, this.getPublicProperties()), {}, { positionRestrictions: jt(this.positionRestrictions, this.visibleArea), coordinates: t })) : t;
1124
+ }, processAutoZoom: function(t, e, i, n) {
1123
1125
  var s = this.autoZoomAlgorithm;
1124
- s || (s = this.stencilSize ? me : this.autoZoom ? fe : ge);
1125
- var n = s({ event: { type: t, params: o }, visibleArea: e, coordinates: i, boundaries: this.boundaries, aspectRatio: this.getAspectRatio(), positionRestrictions: this.positionRestrictions, getAreaRestrictions: this.getAreaRestrictions, sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize() });
1126
- return v(v({}, n), {}, { changed: !Dt(n.visibleArea, e) || !Dt(n.coordinates, i) });
1126
+ s || (s = this.stencilSize ? Ct : this.autoZoom ? Et : Wt);
1127
+ var o = s({ event: { type: t, params: n }, visibleArea: e, coordinates: i, boundaries: this.boundaries, aspectRatio: this.getAspectRatio(), positionRestrictions: this.positionRestrictions, getAreaRestrictions: this.getAreaRestrictions, sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize() });
1128
+ return g(g({}, o), {}, { changed: !tt(o.visibleArea, e) || !tt(o.coordinates, i) });
1127
1129
  }, runAutoZoom: function(t) {
1128
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.transitions, o = i !== void 0 && i, s = ie(e, Oe), n = this.processAutoZoom(t, this.visibleArea, this.coordinates, s), a = n.visibleArea, h = n.coordinates, r = n.changed;
1129
- o && r && this.enableTransitions(), this.visibleArea = a, this.coordinates = h, o && r && this.debouncedDisableTransitions();
1130
+ var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, i = e.transitions, n = void 0 !== i && i, s = v(e, pe), o = this.processAutoZoom(t, this.visibleArea, this.coordinates, s), r = o.visibleArea, a = o.coordinates, h = o.changed;
1131
+ n && h && this.enableTransitions(), this.visibleArea = r, this.coordinates = a, n && h && this.debouncedDisableTransitions();
1130
1132
  }, normalizeEvent: function(t) {
1131
- return function(e) {
1132
- var i = e.event, o = e.visibleArea, s = e.coefficient;
1133
- if (i.type === "manipulateImage") return f(f({}, i), { move: { left: i.move && i.move.left ? s * i.move.left : 0, top: i.move && i.move.top ? s * i.move.top : 0 }, scale: { factor: i.scale && i.scale.factor ? i.scale.factor : 1, center: i.scale && i.scale.center ? { left: i.scale.center.left * s + o.left, top: i.scale.center.top * s + o.top } : null } });
1134
- if (i.type === "resize") {
1135
- var n = f(f({}, i), { directions: f({}, i.directions) });
1136
- return O.forEach(function(h) {
1137
- n.directions[h] *= s;
1138
- }), n;
1133
+ return function(t2) {
1134
+ var e = t2.event, i = t2.visibleArea, n = t2.coefficient;
1135
+ if ("manipulateImage" === e.type) return C(C({}, e), { move: { left: e.move && e.move.left ? n * e.move.left : 0, top: e.move && e.move.top ? n * e.move.top : 0 }, scale: { factor: e.scale && e.scale.factor ? e.scale.factor : 1, center: e.scale && e.scale.center ? { left: e.scale.center.left * n + i.left, top: e.scale.center.top * n + i.top } : null } });
1136
+ if ("resize" === e.type) {
1137
+ var s = C(C({}, e), { directions: C({}, e.directions) });
1138
+ return V.forEach(function(t3) {
1139
+ s.directions[t3] *= n;
1140
+ }), s;
1139
1141
  }
1140
- if (i.type === "move") {
1141
- var a = f(f({}, i), { directions: f({}, i.directions) });
1142
- return ce.forEach(function(h) {
1143
- a.directions[h] *= s;
1144
- }), a;
1142
+ if ("move" === e.type) {
1143
+ var o = C(C({}, e), { directions: C({}, e.directions) });
1144
+ return Q.forEach(function(t3) {
1145
+ o.directions[t3] *= n;
1146
+ }), o;
1145
1147
  }
1146
- return i;
1147
- }(v(v({}, this.getPublicProperties()), {}, { event: t }));
1148
+ return e;
1149
+ }(g(g({}, this.getPublicProperties()), {}, { event: t }));
1148
1150
  }, getCanvas: function() {
1149
1151
  if (this.$refs.canvas) {
1150
- var t = this.$refs.canvas, e = this.$refs.image, i = this.imageTransforms.rotate !== 0 || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(h, r, c) {
1151
- var l = c.rotate, u = c.flip, d = { width: r.naturalWidth, height: r.naturalHeight }, m = Zt(d, l), g = h.getContext("2d");
1152
- h.height = m.height, h.width = m.width, g.save();
1153
- var p = j(R(f({ left: 0, top: 0 }, d)), l);
1154
- return g.translate(-(p.left - m.width / 2), -(p.top - m.height / 2)), g.rotate(l * Math.PI / 180), g.translate(u.horizontal ? d.width : 0, u.vertical ? d.height : 0), g.scale(u.horizontal ? -1 : 1, u.vertical ? -1 : 1), g.drawImage(r, 0, 0, d.width, d.height), g.restore(), h;
1155
- }(this.$refs.sourceCanvas, e, this.imageTransforms) : e, o = v({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: !0, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), s = function(h) {
1156
- return h.find(function(r) {
1157
- return c = r, !Number.isNaN(parseFloat(c)) && isFinite(c);
1158
- var c;
1152
+ var t = this.$refs.canvas, e = this.$refs.image, i = 0 !== this.imageTransforms.rotate || this.imageTransforms.flip.horizontal || this.imageTransforms.flip.vertical ? function(t2, e2, i2) {
1153
+ var n2 = i2.rotate, s2 = i2.flip, o2 = { width: e2.naturalWidth, height: e2.naturalHeight }, r2 = pt(o2, n2), a = t2.getContext("2d");
1154
+ t2.height = r2.height, t2.width = r2.width, a.save();
1155
+ var h = gt(nt(C({ left: 0, top: 0 }, o2)), n2);
1156
+ return a.translate(-(h.left - r2.width / 2), -(h.top - r2.height / 2)), a.rotate(n2 * Math.PI / 180), a.translate(s2.horizontal ? o2.width : 0, s2.vertical ? o2.height : 0), a.scale(s2.horizontal ? -1 : 1, s2.vertical ? -1 : 1), a.drawImage(e2, 0, 0, o2.width, o2.height), a.restore(), t2;
1157
+ }(this.$refs.sourceCanvas, e, this.imageTransforms) : e, n = g({ minWidth: 0, minHeight: 0, maxWidth: 1 / 0, maxHeight: 1 / 0, maxArea: this.maxCanvasSize, imageSmoothingEnabled: true, imageSmoothingQuality: "high", fillColor: "transparent" }, this.canvas), s = function(t2) {
1158
+ return t2.find(function(t3) {
1159
+ return e2 = t3, !Number.isNaN(parseFloat(e2)) && isFinite(e2);
1160
+ var e2;
1159
1161
  });
1160
- }, n = I({ sizeRestrictions: { minWidth: s([o.width, o.minWidth]) || 0, minHeight: s([o.height, o.minHeight]) || 0, maxWidth: s([o.width, o.maxWidth]) || 1 / 0, maxHeight: s([o.height, o.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
1161
- if (o.maxArea && n.width * n.height > o.maxArea) {
1162
- var a = Math.sqrt(o.maxArea / (n.width * n.height));
1163
- n = { width: Math.round(a * n.width), height: Math.round(a * n.height) };
1162
+ }, o = Mt({ sizeRestrictions: { minWidth: s([n.width, n.minWidth]) || 0, minHeight: s([n.height, n.minHeight]) || 0, maxWidth: s([n.width, n.maxWidth]) || 1 / 0, maxHeight: s([n.height, n.maxHeight]) || 1 / 0 }, width: this.coordinates.width, height: this.coordinates.height, aspectRatio: { minimum: this.coordinates.width / this.coordinates.height, maximum: this.coordinates.width / this.coordinates.height } });
1163
+ if (n.maxArea && o.width * o.height > n.maxArea) {
1164
+ var r = Math.sqrt(n.maxArea / (o.width * o.height));
1165
+ o = { width: Math.round(r * o.width), height: Math.round(r * o.height) };
1164
1166
  }
1165
- return function(h, r, c, l, u) {
1166
- h.width = l ? l.width : c.width, h.height = l ? l.height : c.height;
1167
- var d = h.getContext("2d");
1168
- d.clearRect(0, 0, h.width, h.height), u && (u.imageSmoothingEnabled && (d.imageSmoothingEnabled = u.imageSmoothingEnabled), u.imageSmoothingQuality && (d.imageSmoothingQuality = u.imageSmoothingQuality), u.fillColor && (d.fillStyle = u.fillColor, d.fillRect(0, 0, h.width, h.height), d.save()));
1169
- var m = c.left < 0 ? -c.left : 0, g = c.top < 0 ? -c.top : 0;
1170
- d.drawImage(r, c.left + m, c.top + g, c.width, c.height, m * (h.width / c.width), g * (h.height / c.height), h.width, h.height);
1171
- }(t, i, this.coordinates, n, o), t;
1167
+ return function(t2, e2, i2, n2, s2) {
1168
+ t2.width = n2 ? n2.width : i2.width, t2.height = n2 ? n2.height : i2.height;
1169
+ var o2 = t2.getContext("2d");
1170
+ o2.clearRect(0, 0, t2.width, t2.height), s2 && (s2.imageSmoothingEnabled && (o2.imageSmoothingEnabled = s2.imageSmoothingEnabled), s2.imageSmoothingQuality && (o2.imageSmoothingQuality = s2.imageSmoothingQuality), s2.fillColor && (o2.fillStyle = s2.fillColor, o2.fillRect(0, 0, t2.width, t2.height), o2.save()));
1171
+ var r2 = i2.left < 0 ? -i2.left : 0, a = i2.top < 0 ? -i2.top : 0;
1172
+ o2.drawImage(e2, i2.left + r2, i2.top + a, i2.width, i2.height, r2 * (t2.width / i2.width), a * (t2.height / i2.height), t2.width, t2.height);
1173
+ }(t, i, this.coordinates, o, n), t;
1172
1174
  }
1173
1175
  }, update: function() {
1174
1176
  this.$emit("change", this.getResult());
1175
1177
  }, applyTransform: function(t) {
1176
- var e = arguments.length > 1 && arguments[1] !== void 0 && arguments[1], i = this.visibleArea && e ? ue(this.sizeRestrictions, this.visibleArea) : this.sizeRestrictions, o = this.visibleArea && e ? J(this.positionRestrictions, this.visibleArea) : this.positionRestrictions;
1177
- return de({ transform: t, coordinates: this.coordinates, imageSize: this.imageSize, sizeRestrictions: i, positionRestrictions: o, aspectRatio: this.getAspectRatio(), visibleArea: this.visibleArea });
1178
+ var e = arguments.length > 1 && void 0 !== arguments[1] && arguments[1], i = this.visibleArea && e ? wt(this.sizeRestrictions, this.visibleArea) : this.sizeRestrictions, n = this.visibleArea && e ? jt(this.positionRestrictions, this.visibleArea) : this.positionRestrictions;
1179
+ return xt({ transform: t, coordinates: this.coordinates, imageSize: this.imageSize, sizeRestrictions: i, positionRestrictions: n, aspectRatio: this.getAspectRatio(), visibleArea: this.visibleArea });
1178
1180
  }, resetCoordinates: function() {
1179
1181
  var t = this;
1180
1182
  if (this.$refs.image) {
1181
1183
  this.$refs.cropper, this.$refs.image;
1182
1184
  var e = this.defaultSize;
1183
- e || (e = this.stencilSize ? be : ve);
1185
+ e || (e = this.stencilSize ? Dt : Ot);
1184
1186
  var i = this.sizeRestrictions;
1185
1187
  i.minWidth, i.minHeight, i.maxWidth, i.maxHeight;
1186
- var o = Y(e) ? e({ boundaries: this.boundaries, imageSize: this.imageSize, aspectRatio: this.getAspectRatio(), sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize(), visibleArea: this.visibleArea }) : e, s = this.defaultPosition || pe, n = [o, function(a) {
1187
- var h = a.coordinates;
1188
- return v({}, Y(s) ? s({ coordinates: h, imageSize: t.imageSize, visibleArea: t.visibleArea }) : t.defaultPosition);
1188
+ var n = O(e) ? e({ boundaries: this.boundaries, imageSize: this.imageSize, aspectRatio: this.getAspectRatio(), sizeRestrictions: this.sizeRestrictions, stencilSize: this.getStencilSize(), visibleArea: this.visibleArea }) : e, s = this.defaultPosition || Tt, o = [n, function(e2) {
1189
+ var i2 = e2.coordinates;
1190
+ return g({}, O(s) ? s({ coordinates: i2, imageSize: t.imageSize, visibleArea: t.visibleArea }) : t.defaultPosition);
1189
1191
  }];
1190
- this.delayedTransforms && n.push.apply(n, k(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(n, !0), this.delayedTransforms = null;
1192
+ this.delayedTransforms && o.push.apply(o, b(Array.isArray(this.delayedTransforms) ? this.delayedTransforms : [this.delayedTransforms])), this.coordinates = this.applyTransform(o, true), this.delayedTransforms = null;
1191
1193
  }
1192
1194
  }, clearImage: function() {
1193
1195
  var t = this;
1194
- this.imageLoaded = !1, setTimeout(function() {
1196
+ this.imageLoaded = false, setTimeout(function() {
1195
1197
  var e = t.$refs.stretcher;
1196
1198
  e && (e.style.height = "auto", e.style.width = "auto"), t.coordinates = t.defaultCoordinates(), t.boundaries = { width: 0, height: 0 };
1197
1199
  }, this.transitionTime);
1198
1200
  }, enableTransitions: function() {
1199
- this.transitions && (this.transitionsActive = !0);
1201
+ this.transitions && (this.transitionsActive = true);
1200
1202
  }, disableTransitions: function() {
1201
- this.transitionsActive = !1;
1203
+ this.transitionsActive = false;
1202
1204
  }, updateBoundaries: function() {
1203
1205
  var t = this, e = this.$refs.stretcher, i = this.$refs.cropper;
1204
1206
  return this.initStretcher({ cropper: i, stretcher: e, imageSize: this.imageSize }), this.$nextTick().then(function() {
1205
- var o = { cropper: i, imageSize: t.imageSize };
1206
- if (Y(t.defaultBoundaries) ? t.boundaries = t.defaultBoundaries(o) : t.defaultBoundaries === "fit" ? t.boundaries = function(s) {
1207
- var n = s.cropper, a = s.imageSize, h = n.clientHeight, r = n.clientWidth, c = h, l = a.width * h / a.height;
1208
- return l > r && (l = r, c = a.height * r / a.width), { width: l, height: c };
1209
- }(o) : t.boundaries = function(s) {
1210
- var n = s.cropper;
1211
- return { width: n.clientWidth, height: n.clientHeight };
1212
- }(o), !t.boundaries.width || !t.boundaries.height) throw new Error("It's impossible to fit the cropper in the current container");
1207
+ var e2 = { cropper: i, imageSize: t.imageSize };
1208
+ if (O(t.defaultBoundaries) ? t.boundaries = t.defaultBoundaries(e2) : "fit" === t.defaultBoundaries ? t.boundaries = function(t2) {
1209
+ var e3 = t2.cropper, i2 = t2.imageSize, n = e3.clientHeight, s = e3.clientWidth, o = n, r = i2.width * n / i2.height;
1210
+ return r > s && (r = s, o = i2.height * s / i2.width), { width: r, height: o };
1211
+ }(e2) : t.boundaries = function(t2) {
1212
+ var e3 = t2.cropper;
1213
+ return { width: e3.clientWidth, height: e3.clientHeight };
1214
+ }(e2), !t.boundaries.width || !t.boundaries.height) throw new Error("It's impossible to fit the cropper in the current container");
1213
1215
  });
1214
1216
  }, resetVisibleArea: function() {
1215
1217
  var t = this;
1216
- return this.appliedImageTransforms = v(v({}, this.defaultImageTransforms), {}, { flip: v({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then(function() {
1217
- t.priority !== "visible-area" && (t.visibleArea = null, t.resetCoordinates());
1218
- var e, i, o, s, n, a, h = t.defaultVisibleArea || we;
1219
- t.visibleArea = Y(h) ? h({ imageSize: t.imageSize, boundaries: t.boundaries, coordinates: t.priority !== "visible-area" ? t.coordinates : null, getAreaRestrictions: t.getAreaRestrictions, stencilSize: t.getStencilSize() }) : t.defaultVisibleArea, t.visibleArea = (e = { visibleArea: t.visibleArea, boundaries: t.boundaries, getAreaRestrictions: t.getAreaRestrictions }, i = e.visibleArea, o = e.boundaries, s = e.getAreaRestrictions, n = f({}, i), a = b(o), n.width / n.height !== a && (n.height = n.width / a), M(n, s({ visibleArea: n, type: "move" }))), t.priority === "visible-area" ? t.resetCoordinates() : t.coordinates = t.fitCoordinates({ visibleArea: t.visibleArea, coordinates: t.coordinates, aspectRatio: t.getAspectRatio(), positionRestrictions: t.positionRestrictions, sizeRestrictions: t.sizeRestrictions }), t.runAutoZoom("resetVisibleArea");
1218
+ return this.appliedImageTransforms = g(g({}, this.defaultImageTransforms), {}, { flip: g({}, this.defaultImageTransforms.flip) }), this.updateBoundaries().then(function() {
1219
+ "visible-area" !== t.priority && (t.visibleArea = null, t.resetCoordinates());
1220
+ var e, i, n, s, o, r, a = t.defaultVisibleArea || Ht;
1221
+ t.visibleArea = O(a) ? a({ imageSize: t.imageSize, boundaries: t.boundaries, coordinates: "visible-area" !== t.priority ? t.coordinates : null, getAreaRestrictions: t.getAreaRestrictions, stencilSize: t.getStencilSize() }) : t.defaultVisibleArea, t.visibleArea = (e = { visibleArea: t.visibleArea, boundaries: t.boundaries, getAreaRestrictions: t.getAreaRestrictions }, i = e.visibleArea, n = e.boundaries, s = e.getAreaRestrictions, o = C({}, i), r = ct(n), o.width / o.height !== r && (o.height = o.width / r), vt(o, s({ visibleArea: o, type: "move" }))), "visible-area" === t.priority ? t.resetCoordinates() : t.coordinates = t.fitCoordinates({ visibleArea: t.visibleArea, coordinates: t.coordinates, aspectRatio: t.getAspectRatio(), positionRestrictions: t.positionRestrictions, sizeRestrictions: t.sizeRestrictions }), t.runAutoZoom("resetVisibleArea");
1220
1222
  }).catch(function() {
1221
1223
  t.visibleArea = null;
1222
1224
  });
@@ -1228,32 +1230,32 @@ var Oe = ["transitions"], P = W("vue-advanced-cropper"), He = { name: "Cropper",
1228
1230
  t.visibleArea = null;
1229
1231
  });
1230
1232
  }, onChange: function() {
1231
- var t = !(arguments.length > 0 && arguments[0] !== void 0) || arguments[0];
1233
+ var t = !(arguments.length > 0 && void 0 !== arguments[0]) || arguments[0];
1232
1234
  t && this.debounce ? this.debouncedUpdate() : this.update();
1233
1235
  }, onChangeImage: function() {
1234
1236
  var t, e = this;
1235
- if (this.imageLoaded = !1, this.delayedTransforms = null, this.src) {
1236
- if (function(s) {
1237
- if (Ct(s)) return !1;
1238
- var n = window.location, a = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(s) || [], h = { protocol: a[1] || "", host: a[2] || "", port: a[3] || "" }, r = function(c) {
1239
- return c.port || ((c.protocol || n.protocol) === "http" ? 80 : 433);
1237
+ if (this.imageLoaded = false, this.delayedTransforms = null, this.src) {
1238
+ if (function(t2) {
1239
+ if (T(t2)) return false;
1240
+ var e2 = window.location, i2 = /(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(t2) || [], n2 = { protocol: i2[1] || "", host: i2[2] || "", port: i2[3] || "" }, s = function(t3) {
1241
+ return t3.port || ("http" === (t3.protocol || e2.protocol) ? 80 : 433);
1240
1242
  };
1241
- return !(!h.protocol && !h.host && !h.port || h.protocol && h.protocol == n.protocol && h.host && h.host == n.host && h.host && r(h) == r(n));
1243
+ return !(!n2.protocol && !n2.host && !n2.port || Boolean(n2.protocol && n2.protocol == e2.protocol && n2.host && n2.host == e2.host && n2.host && s(n2) == s(e2)));
1242
1244
  }(this.src)) {
1243
- var i = A(this.crossOrigin) ? this.canvas : this.crossOrigin;
1244
- i === !0 && (i = "anonymous"), this.imageAttributes.crossOrigin = i || null;
1245
+ var i = D(this.crossOrigin) ? this.canvas : this.crossOrigin;
1246
+ true === i && (i = "anonymous"), this.imageAttributes.crossOrigin = i || null;
1245
1247
  }
1246
1248
  if (this.checkOrientation) {
1247
- var o = (t = this.src, new Promise(function(s) {
1248
- We(t).then(function(n) {
1249
- var a = De(n);
1250
- s(n ? { source: t, arrayBuffer: n, orientation: a } : { source: t, arrayBuffer: null, orientation: null });
1251
- }).catch(function(n) {
1252
- console.warn(n), s({ source: t, arrayBuffer: null, orientation: null });
1249
+ var n = (t = this.src, new Promise(function(e2) {
1250
+ Jt(t).then(function(i2) {
1251
+ var n2 = ee(i2);
1252
+ e2(i2 ? { source: t, arrayBuffer: i2, orientation: n2 } : { source: t, arrayBuffer: null, orientation: null });
1253
+ }).catch(function(i2) {
1254
+ console.warn(i2), e2({ source: t, arrayBuffer: null, orientation: null });
1253
1255
  });
1254
1256
  }));
1255
1257
  setTimeout(function() {
1256
- o.then(e.onParseImage);
1258
+ n.then(e.onParseImage);
1257
1259
  }, this.transitionTime);
1258
1260
  } else setTimeout(function() {
1259
1261
  e.onParseImage({ source: e.src });
@@ -1263,118 +1265,118 @@ var Oe = ["transitions"], P = W("vue-advanced-cropper"), He = { name: "Cropper",
1263
1265
  this.imageAttributes.src && (this.clearImage(), this.$emit("error"));
1264
1266
  }, onSuccessLoadImage: function() {
1265
1267
  var t = this, e = this.$refs.image;
1266
- e && !this.imageLoaded && (this.imageAttributes.height = e.naturalHeight, this.imageAttributes.width = e.naturalWidth, this.imageLoaded = !0, this.resetVisibleArea().then(function() {
1267
- t.$emit("ready"), t.onChange(!1);
1268
+ e && !this.imageLoaded && (this.imageAttributes.height = e.naturalHeight, this.imageAttributes.width = e.naturalWidth, this.imageLoaded = true, this.resetVisibleArea().then(function() {
1269
+ t.$emit("ready"), t.onChange(false);
1268
1270
  }));
1269
1271
  }, onParseImage: function(t) {
1270
- var e = this, i = t.source, o = t.arrayBuffer, s = t.orientation;
1271
- this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = !1, o && s && s > 1 ? kt(i) || !Ct(i) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([o])), this.imageAttributes.revoke = !0) : this.imageAttributes.src = function(n) {
1272
- for (var a = [], h = new Uint8Array(n); h.length > 0; ) {
1273
- var r = h.subarray(0, 8192);
1274
- a.push(String.fromCharCode.apply(null, Array.from ? Array.from(r) : r.slice())), h = h.subarray(8192);
1272
+ var e = this, i = t.source, n = t.arrayBuffer, s = t.orientation;
1273
+ this.imageAttributes.revoke && this.imageAttributes.src && URL.revokeObjectURL(this.imageAttributes.src), this.imageAttributes.revoke = false, n && s && s > 1 ? W(i) || !T(i) ? (this.imageAttributes.src = URL.createObjectURL(new Blob([n])), this.imageAttributes.revoke = true) : this.imageAttributes.src = function(t2) {
1274
+ for (var e2 = [], i2 = new Uint8Array(t2); i2.length > 0; ) {
1275
+ var n2 = i2.subarray(0, 8192);
1276
+ e2.push(String.fromCharCode.apply(null, Array.from ? Array.from(n2) : n2.slice())), i2 = i2.subarray(8192);
1275
1277
  }
1276
- return "data:image/jpeg;base64," + btoa(a.join(""));
1277
- }(o) : this.imageAttributes.src = i, Y(this.defaultTransforms) ? this.appliedImageTransforms = ut(this.defaultTransforms()) : it(this.defaultTransforms) ? this.appliedImageTransforms = ut(this.defaultTransforms) : this.appliedImageTransforms = function(n) {
1278
- var a = ut({});
1279
- if (n) switch (n) {
1278
+ return "data:image/jpeg;base64," + btoa(e2.join(""));
1279
+ }(n) : this.imageAttributes.src = i, O(this.defaultTransforms) ? this.appliedImageTransforms = Kt(this.defaultTransforms()) : H(this.defaultTransforms) ? this.appliedImageTransforms = Kt(this.defaultTransforms) : this.appliedImageTransforms = function(t2) {
1280
+ var e2 = Kt({});
1281
+ if (t2) switch (t2) {
1280
1282
  case 2:
1281
- a.flip.horizontal = !0;
1283
+ e2.flip.horizontal = true;
1282
1284
  break;
1283
1285
  case 3:
1284
- a.rotate = -180;
1286
+ e2.rotate = -180;
1285
1287
  break;
1286
1288
  case 4:
1287
- a.flip.vertical = !0;
1289
+ e2.flip.vertical = true;
1288
1290
  break;
1289
1291
  case 5:
1290
- a.rotate = 90, a.flip.vertical = !0;
1292
+ e2.rotate = 90, e2.flip.vertical = true;
1291
1293
  break;
1292
1294
  case 6:
1293
- a.rotate = 90;
1295
+ e2.rotate = 90;
1294
1296
  break;
1295
1297
  case 7:
1296
- a.rotate = 90, a.flip.horizontal = !0;
1298
+ e2.rotate = 90, e2.flip.horizontal = true;
1297
1299
  break;
1298
1300
  case 8:
1299
- a.rotate = -90;
1301
+ e2.rotate = -90;
1300
1302
  }
1301
- return a;
1302
- }(s), this.defaultImageTransforms = v(v({}, this.appliedImageTransforms), {}, { flip: v({}, this.appliedImageTransforms.flip) }), this.$nextTick(function() {
1303
- var n = e.$refs.image;
1304
- n && n.complete && (function(a) {
1305
- return !!a.naturalWidth;
1306
- }(n) ? e.onSuccessLoadImage() : e.onFailLoadImage());
1303
+ return e2;
1304
+ }(s), this.defaultImageTransforms = g(g({}, this.appliedImageTransforms), {}, { flip: g({}, this.appliedImageTransforms.flip) }), this.$nextTick(function() {
1305
+ var t2 = e.$refs.image;
1306
+ t2 && t2.complete && (!function(t3) {
1307
+ return Boolean(t3.naturalWidth);
1308
+ }(t2) ? e.onFailLoadImage() : e.onSuccessLoadImage());
1307
1309
  });
1308
1310
  }, onResizeEnd: function() {
1309
- this.runAutoZoom("resize", { transitions: !0 });
1311
+ this.runAutoZoom("resize", { transitions: true });
1310
1312
  }, onMoveEnd: function() {
1311
- this.runAutoZoom("move", { transitions: !0 });
1313
+ this.runAutoZoom("move", { transitions: true });
1312
1314
  }, onMove: function(t) {
1313
1315
  var e = this;
1314
1316
  this.transitionsOptions.enabled || this.awaitRender(function() {
1315
- e.coordinates = e.moveAlgorithm(v(v({}, e.getPublicProperties()), {}, { positionRestrictions: J(e.positionRestrictions, e.visibleArea), coordinates: e.coordinates, event: e.normalizeEvent(t) })), e.onChange();
1317
+ e.coordinates = e.moveAlgorithm(g(g({}, e.getPublicProperties()), {}, { positionRestrictions: jt(e.positionRestrictions, e.visibleArea), coordinates: e.coordinates, event: e.normalizeEvent(t) })), e.onChange();
1316
1318
  });
1317
1319
  }, onResize: function(t) {
1318
1320
  var e = this;
1319
1321
  this.transitionsOptions.enabled || this.stencilSize && !this.autoZoom || this.awaitRender(function() {
1320
- var i = e.sizeRestrictions, o = Math.min(e.coordinates.width, e.coordinates.height, 20 * e.coefficient);
1321
- e.coordinates = e.resizeAlgorithm(v(v({}, e.getPublicProperties()), {}, { positionRestrictions: J(e.positionRestrictions, e.visibleArea), sizeRestrictions: { maxWidth: Math.min(i.maxWidth, e.visibleArea.width), maxHeight: Math.min(i.maxHeight, e.visibleArea.height), minWidth: Math.max(i.minWidth, o), minHeight: Math.max(i.minHeight, o) }, event: e.normalizeEvent(t) })), e.onChange(), e.ticking = !1;
1322
+ var i = e.sizeRestrictions, n = Math.min(e.coordinates.width, e.coordinates.height, 20 * e.coefficient);
1323
+ e.coordinates = e.resizeAlgorithm(g(g({}, e.getPublicProperties()), {}, { positionRestrictions: jt(e.positionRestrictions, e.visibleArea), sizeRestrictions: { maxWidth: Math.min(i.maxWidth, e.visibleArea.width), maxHeight: Math.min(i.maxHeight, e.visibleArea.height), minWidth: Math.max(i.minWidth, n), minHeight: Math.max(i.minHeight, n) }, event: e.normalizeEvent(t) })), e.onChange(), e.ticking = false;
1322
1324
  });
1323
1325
  }, onManipulateImage: function(t) {
1324
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
1326
+ var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
1325
1327
  if (!this.transitionsOptions.enabled) {
1326
- var i = e.transitions, o = i !== void 0 && i, s = e.normalize, n = s === void 0 || s;
1327
- o && this.enableTransitions();
1328
- var a = ye(v(v({}, this.getPublicProperties()), {}, { event: n ? this.normalizeEvent(t) : t, getAreaRestrictions: this.getAreaRestrictions, imageRestriction: this.imageRestriction, adjustStencil: !this.stencilSize && this.settings.resizeImage.adjustStencil })), h = a.visibleArea, r = a.coordinates;
1329
- this.visibleArea = h, this.coordinates = r, this.runAutoZoom("manipulateImage"), this.onChange(), o && this.debouncedDisableTransitions();
1328
+ var i = e.transitions, n = void 0 !== i && i, s = e.normalize, o = void 0 === s || s;
1329
+ n && this.enableTransitions();
1330
+ var r = Lt(g(g({}, this.getPublicProperties()), {}, { event: o ? this.normalizeEvent(t) : t, getAreaRestrictions: this.getAreaRestrictions, imageRestriction: this.imageRestriction, adjustStencil: !this.stencilSize && this.settings.resizeImage.adjustStencil })), a = r.visibleArea, h = r.coordinates;
1331
+ this.visibleArea = a, this.coordinates = h, this.runAutoZoom("manipulateImage"), this.onChange(), n && this.debouncedDisableTransitions();
1330
1332
  }
1331
1333
  }, onPropsChange: function() {
1332
- this.coordinates = this.applyTransform(this.coordinates, !0), this.onChange(!1);
1334
+ this.coordinates = this.applyTransform(this.coordinates, true), this.onChange(false);
1333
1335
  }, getAreaRestrictions: function() {
1334
- var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, e = t.visibleArea, i = t.type, o = i === void 0 ? "move" : i;
1335
- return this.areaRestrictionsAlgorithm({ boundaries: this.boundaries, imageSize: this.imageSize, imageRestriction: this.imageRestriction, visibleArea: e, type: o });
1336
+ var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, e = t.visibleArea, i = t.type, n = void 0 === i ? "move" : i;
1337
+ return this.areaRestrictionsAlgorithm({ boundaries: this.boundaries, imageSize: this.imageSize, imageRestriction: this.imageRestriction, visibleArea: e, type: n });
1336
1338
  }, getAspectRatio: function(t) {
1337
- var e, i, o = this.stencilProps, s = o.aspectRatio, n = o.minAspectRatio, a = o.maxAspectRatio;
1339
+ var e, i, n = this.stencilProps, s = n.aspectRatio, o = n.minAspectRatio, r = n.maxAspectRatio;
1338
1340
  if (this.$refs.stencil && this.$refs.stencil.aspectRatios) {
1339
- var h = this.$refs.stencil.aspectRatios();
1340
- e = h.minimum, i = h.maximum;
1341
+ var a = this.$refs.stencil.aspectRatios();
1342
+ e = a.minimum, i = a.maximum;
1341
1343
  }
1342
- if (A(e) && (e = A(s) ? n : s), A(i) && (i = A(s) ? a : s), !t && (A(e) || A(i))) {
1343
- var r = this.getStencilSize(), c = r ? b(r) : null;
1344
- A(e) && (e = Tt(c) ? c : void 0), A(i) && (i = Tt(c) ? c : void 0);
1344
+ if (D(e) && (e = D(s) ? o : s), D(i) && (i = D(s) ? r : s), !t && (D(e) || D(i))) {
1345
+ var h = this.getStencilSize(), c = h ? ct(h) : null;
1346
+ D(e) && (e = P(c) ? c : void 0), D(i) && (i = P(c) ? c : void 0);
1345
1347
  }
1346
1348
  return { minimum: e, maximum: i };
1347
1349
  }, getStencilSize: function() {
1348
- if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(!0) }, e = t.boundaries, i = t.stencilSize, o = t.aspectRatio, ct(b(s = Y(i) ? i({ boundaries: e, aspectRatio: o }) : i), o) && (s = I({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: o.minimum, maximum: o.maximum } })), (s.width > e.width || s.height > e.height) && (s = I({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: b(s), maximum: b(s) } })), s;
1349
- var t, e, i, o, s;
1350
+ if (this.stencilSize) return t = { currentStencilSize: { width: this.stencilCoordinates.width, height: this.stencilCoordinates.height }, stencilSize: this.stencilSize, boundaries: this.boundaries, coefficient: this.coefficient, coordinates: this.coordinates, aspectRatio: this.getAspectRatio(true) }, e = t.boundaries, i = t.stencilSize, n = t.aspectRatio, dt(ct(s = O(i) ? i({ boundaries: e, aspectRatio: n }) : i), n) && (s = Mt({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: n.minimum, maximum: n.maximum } })), (s.width > e.width || s.height > e.height) && (s = Mt({ sizeRestrictions: { maxWidth: e.width, maxHeight: e.height, minWidth: 0, minHeight: 0 }, width: s.width, height: s.height, aspectRatio: { minimum: ct(s), maximum: ct(s) } })), s;
1351
+ var t, e, i, n, s;
1350
1352
  }, getPublicProperties: function() {
1351
1353
  return { coefficient: this.coefficient, visibleArea: this.visibleArea, coordinates: this.coordinates, boundaries: this.boundaries, sizeRestrictions: this.sizeRestrictions, positionRestrictions: this.positionRestrictions, aspectRatio: this.getAspectRatio(), imageRestriction: this.imageRestriction };
1352
1354
  }, defaultCoordinates: function() {
1353
- return v({}, Wt);
1355
+ return g({}, J);
1354
1356
  }, flip: function(t, e) {
1355
- var i = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = i.transitions, s = o === void 0 || o;
1357
+ var i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {}, n = i.transitions, s = void 0 === n || n;
1356
1358
  if (!this.transitionsActive) {
1357
1359
  s && this.enableTransitions();
1358
- var n = v({}, this.imageTransforms.flip), a = Ae({ flip: { horizontal: t ? !n.horizontal : n.horizontal, vertical: e ? !n.vertical : n.vertical }, previousFlip: n, rotate: this.imageTransforms.rotate, visibleArea: this.visibleArea, coordinates: this.coordinates, imageSize: this.imageSize, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), h = a.visibleArea, r = a.coordinates;
1359
- t && (this.appliedImageTransforms.flip.horizontal = !this.appliedImageTransforms.flip.horizontal), e && (this.appliedImageTransforms.flip.vertical = !this.appliedImageTransforms.flip.vertical), this.visibleArea = h, this.coordinates = r, this.onChange(), s && this.debouncedDisableTransitions();
1360
+ var o = g({}, this.imageTransforms.flip), r = $t({ flip: { horizontal: t ? !o.horizontal : o.horizontal, vertical: e ? !o.vertical : o.vertical }, previousFlip: o, rotate: this.imageTransforms.rotate, visibleArea: this.visibleArea, coordinates: this.coordinates, imageSize: this.imageSize, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), a = r.visibleArea, h = r.coordinates;
1361
+ t && (this.appliedImageTransforms.flip.horizontal = !this.appliedImageTransforms.flip.horizontal), e && (this.appliedImageTransforms.flip.vertical = !this.appliedImageTransforms.flip.vertical), this.visibleArea = a, this.coordinates = h, this.onChange(), s && this.debouncedDisableTransitions();
1360
1362
  }
1361
1363
  }, rotate: function(t) {
1362
- var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, i = e.transitions, o = i === void 0 || i;
1364
+ var e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, i = e.transitions, n = void 0 === i || i;
1363
1365
  if (!this.transitionsActive) {
1364
- o && this.enableTransitions();
1365
- var s = v({}, this.imageSize);
1366
+ n && this.enableTransitions();
1367
+ var s = g({}, this.imageSize);
1366
1368
  this.appliedImageTransforms.rotate += t;
1367
- var n = ze({ visibleArea: this.visibleArea, coordinates: this.coordinates, previousImageSize: s, imageSize: this.imageSize, angle: t, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), a = n.visibleArea, h = n.coordinates, r = this.processAutoZoom("rotateImage", a, h);
1368
- a = r.visibleArea, h = r.coordinates, this.visibleArea = a, this.coordinates = h, this.onChange(), o && this.debouncedDisableTransitions();
1369
+ var o = Pt({ visibleArea: this.visibleArea, coordinates: this.coordinates, previousImageSize: s, imageSize: this.imageSize, angle: t, positionRestrictions: this.positionRestrictions, sizeRestrictions: this.sizeRestrictions, getAreaRestrictions: this.getAreaRestrictions, aspectRatio: this.getAspectRatio() }), r = o.visibleArea, a = o.coordinates, h = this.processAutoZoom("rotateImage", r, a);
1370
+ r = h.visibleArea, a = h.coordinates, this.visibleArea = r, this.coordinates = a, this.onChange(), n && this.debouncedDisableTransitions();
1369
1371
  }
1370
- } }, emits: ["change", "error", "ready"] }, Le = { key: 0, ref: "canvas", style: { display: "none" } }, Pe = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
1371
- He.render = function(t, e, i, o, s, n) {
1372
- return y(), w("div", { ref: "cropper", class: n.classes.cropper }, [S("div", { ref: "stretcher", class: n.classes.stretcher }, null, 2), S("div", { class: n.classes.boundaries, style: n.boundariesStyle }, [(y(), w(nt(i.backgroundWrapperComponent), { class: n.classes.cropperWrapper, "wheel-resize": n.settings.resizeImage.wheel, "touch-resize": n.settings.resizeImage.touch, "touch-move": n.settings.moveImage.touch, "mouse-move": n.settings.moveImage.mouse, onMove: n.onManipulateImage, onResize: n.onManipulateImage }, { default: B(function() {
1373
- return [S("div", { class: n.classes.background, style: n.boundariesStyle }, null, 6), S("div", { class: n.classes.imageWrapper }, [S("img", { ref: "image", crossorigin: s.imageAttributes.crossOrigin, src: s.imageAttributes.src, class: n.classes.image, style: n.imageStyle, onMousedown: e[1] || (e[1] = ee(function() {
1374
- }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), S("div", { class: n.classes.foreground, style: n.boundariesStyle }, null, 6), It((y(), w(nt(i.stencilComponent), jt({ ref: "stencil", image: n.image, coordinates: s.coordinates, "stencil-coordinates": n.stencilCoordinates, transitions: n.transitionsOptions }, i.stencilProps, { onResize: n.onResize, onResizeEnd: n.onResizeEnd, onMove: n.onMove, onMoveEnd: n.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[$t, s.imageLoaded]]), i.canvas ? (y(), w("canvas", Le, null, 512)) : St("", !0), i.canvas ? (y(), w("canvas", Pe, null, 512)) : St("", !0)];
1372
+ } }, emits: ["change", "error", "ready"] }, ve = { key: 0, ref: "canvas", style: { display: "none" } }, be = { key: 1, ref: "sourceCanvas", style: { display: "none" } };
1373
+ fe.render = function(i, n, r, a, p2, g2) {
1374
+ return openBlock(), createBlock("div", { ref: "cropper", class: g2.classes.cropper }, [createVNode("div", { ref: "stretcher", class: g2.classes.stretcher }, null, 2), createVNode("div", { class: g2.classes.boundaries, style: g2.boundariesStyle }, [(openBlock(), createBlock(resolveDynamicComponent(r.backgroundWrapperComponent), { class: g2.classes.cropperWrapper, "wheel-resize": g2.settings.resizeImage.wheel, "touch-resize": g2.settings.resizeImage.touch, "touch-move": g2.settings.moveImage.touch, "mouse-move": g2.settings.moveImage.mouse, onMove: g2.onManipulateImage, onResize: g2.onManipulateImage }, { default: withCtx(function() {
1375
+ return [createVNode("div", { class: g2.classes.background, style: g2.boundariesStyle }, null, 6), createVNode("div", { class: g2.classes.imageWrapper }, [createVNode("img", { ref: "image", crossorigin: p2.imageAttributes.crossOrigin, src: p2.imageAttributes.src, class: g2.classes.image, style: g2.imageStyle, onMousedown: n[1] || (n[1] = withModifiers(function() {
1376
+ }, ["prevent"])) }, null, 46, ["crossorigin", "src"])], 2), createVNode("div", { class: g2.classes.foreground, style: g2.boundariesStyle }, null, 6), withDirectives((openBlock(), createBlock(resolveDynamicComponent(r.stencilComponent), mergeProps({ ref: "stencil", image: g2.image, coordinates: p2.coordinates, "stencil-coordinates": g2.stencilCoordinates, transitions: g2.transitionsOptions }, r.stencilProps, { onResize: g2.onResize, onResizeEnd: g2.onResizeEnd, onMove: g2.onMove, onMoveEnd: g2.onMoveEnd }), null, 16, ["image", "coordinates", "stencil-coordinates", "transitions", "onResize", "onResizeEnd", "onMove", "onMoveEnd"])), [[vShow, p2.imageLoaded]]), r.canvas ? (openBlock(), createBlock("canvas", ve, null, 512)) : createCommentVNode("", true), r.canvas ? (openBlock(), createBlock("canvas", be, null, 512)) : createCommentVNode("", true)];
1375
1377
  }), _: 1 }, 8, ["class", "wheel-resize", "touch-resize", "touch-move", "mouse-move", "onMove", "onResize"]))], 6)], 2);
1376
1378
  };
1377
1379
  export {
1378
- He as f,
1379
- Qt as o
1380
+ fe as f,
1381
+ oe as o
1380
1382
  };