@fewangsit/wangsvue-fats 1.0.0-alpha.43 → 1.0.0-alpha.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/buttoncopy/ButtonCopy.vue.d.ts +4 -6
- package/components/buttonsearchbyscan/ButtonSearchByScan.vue.d.ts +44 -0
- package/components/index.d.ts +61 -162
- package/components/inlinemessage/InlineMessage.vue.d.ts +167 -0
- package/event-bus/index.d.ts +3 -0
- package/loading-page-BrQattYE.js +1 -0
- package/loading-page-CoC9UhfC.js +4 -0
- package/loading-page-DbLuqCHa.js +1 -0
- package/loading-page-f8D03l3G.js +4 -0
- package/loading-plane-CgfbWppy.js +1 -0
- package/loading-plane-CoXtqoc9.js +4 -0
- package/loading-table-Bdr9ZhtP.js +1 -0
- package/loading-table-ByUoWqUo.js +4 -0
- package/loading-table-BygEMzFM.js +4 -0
- package/loading-table-BzrSQlA0.js +1 -0
- package/loading-table-D9bw9OcI.js +4 -0
- package/loading-table-chOgXi94.js +1 -0
- package/no-data-CTKux8RI.js +4 -0
- package/no-data-Cgze_Rvp.js +1 -0
- package/{assets/lottie/no-data-DOy8kIGF.es.js → no-data-DLHO1L_u.js} +2 -13
- package/no-data-Dep79CBh.js +1 -0
- package/no-data-g0dJCy2p.js +4 -0
- package/no-data-y1X5WtcQ.js +1 -0
- package/package.json +3 -3
- package/stats.html +1 -1
- package/style.css +1 -1
- package/utils/index.d.ts +1 -1
- package/wangsvue-fats.js +52090 -144
- package/wangsvue-fats.system.js +312 -1
- package/ButtonCopy-C6DSmsOR.es.js +0 -4
- package/ButtonCopy-CeBlNyVx.system.js +0 -1
- package/ButtonSync-BLyCwwnU.system.js +0 -1
- package/ButtonSync-DtUhn-Q-.es.js +0 -4
- package/ButtonToggle-B9Fa75pf.es.js +0 -4
- package/ButtonToggle-CSxzlLR2.system.js +0 -1
- package/ButtonViewLog-B1oa4oFN.es.js +0 -4
- package/ButtonViewLog-_J6r7Oz8.system.js +0 -1
- package/Card-B19WgA6Y.es.js +0 -4
- package/Card-umUgd-nP.system.js +0 -1
- package/InputEmail-BZ5Y0wSk.system.js +0 -1
- package/InputEmail-DR_E1DsL.es.js +0 -4
- package/InputURL-DL6a94kM.system.js +0 -1
- package/InputURL-PVF5EUUY.es.js +0 -4
- package/Loading-Cq7rP88c.system.js +0 -1
- package/Loading-DUHTVct4.es.js +0 -4
- package/UserWithIcon-Ddn_GlNu.system.js +0 -1
- package/UserWithIcon-hWXf-A2U.es.js +0 -4
- package/assets/lottie/loading-page-B9ooQcfF.system.js +0 -1
- package/assets/lottie/loading-page-CQ0mKER2.es.js +0 -15
- package/assets/lottie/loading-table-B4T3FYiI.system.js +0 -1
- package/assets/lottie/loading-table-BnpbX8Ew.es.js +0 -15
- package/assets/lottie/no-data-CMWnya_k.system.js +0 -1
- package/async-components/index-C8nb7p3T.es.js +0 -70
- package/async-components/index-DvjqHrYE.system.js +0 -1
- package/components/animation/Animation-CCEnvZ_Z.es.js +0 -48
- package/components/animation/Animation-CJb4YIwm.system.js +0 -1
- package/components/approverinfo/ApproverInfo-Bruotw1h.es.js +0 -127
- package/components/approverinfo/ApproverInfo-CoWywuLZ.system.js +0 -1
- package/components/assetinfo/AssetInfo-B8KAsqvC.system.js +0 -1
- package/components/assetinfo/AssetInfo-DNsWx4Xv.es.js +0 -201
- package/components/badge/Badge-DXAyz4Z8.es.js +0 -99
- package/components/badge/Badge-wSExdsOP.system.js +0 -1
- package/components/badgegroup/BadgeGroup-CAYL_5-g.system.js +0 -1
- package/components/badgegroup/BadgeGroup-Dl2cL80L.es.js +0 -68
- package/components/basetree/BaseTree-CmBp0uwr.system.js +0 -1
- package/components/basetree/BaseTree-RsvvntBp.es.js +0 -167
- package/components/basetree/TreeNode-CUL5_2Rj.es.js +0 -499
- package/components/basetree/TreeNode-D-YgXird.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-BmuuCYJx.system.js +0 -1
- package/components/breadcrumb/Breadcrumb-oqdG9WGT.es.js +0 -46
- package/components/button/Button-CgkhMnxo.es.js +0 -124
- package/components/button/Button-D892iaxz.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-CAamlaLP.system.js +0 -1
- package/components/buttonbulkaction/ButtonBulkAction-Tdf3aVtp.es.js +0 -189
- package/components/buttoncopy/ButtonCopy-CUFHlIO-.es.js +0 -31
- package/components/buttoncopy/ButtonCopy-CZPTLNHh.system.js +0 -1
- package/components/buttondownload/ButtonDownload-BWGTiJnP.es.js +0 -61
- package/components/buttondownload/ButtonDownload-CUR6u0AT.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-B1F4poKd.system.js +0 -1
- package/components/buttonfilter/ButtonFilter-B49leY-q.es.js +0 -28
- package/components/buttonradio/ButtonRadio-D6xKhPLg.es.js +0 -83
- package/components/buttonradio/ButtonRadio-NBcy0Epa.system.js +0 -1
- package/components/buttonscan/ButtonScan-BZzpqBe8.system.js +0 -1
- package/components/buttonscan/ButtonScan-mVHAdACL.es.js +0 -387
- package/components/buttonscan/workers/scanner.worker-8_0GG6W3.system.js +0 -1
- package/components/buttonscan/workers/scanner.worker-D3a72Zyk.es.js +0 -25
- package/components/buttonsearch/ButtonSearch-3hnarf3D.system.js +0 -1
- package/components/buttonsearch/ButtonSearch-BjcXUDQZ.es.js +0 -70
- package/components/buttonselecttree/ButtonSelectTree-D0lT3Exu.es.js +0 -218
- package/components/buttonselecttree/ButtonSelectTree-DKmPV8FD.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-B7GbLfS-.system.js +0 -1
- package/components/buttonselectuser/ButtonSelectUser-OAZRY9OR.es.js +0 -101
- package/components/buttonsync/ButtonSync-Brk16H8C.es.js +0 -29
- package/components/buttonsync/ButtonSync-D5lXmtHs.system.js +0 -1
- package/components/buttontoggle/ButtonToggle-1R5y5DCx.es.js +0 -11
- package/components/buttontoggle/ButtonToggle-DLsiXxjK.system.js +0 -1
- package/components/buttonviewlog/ButtonViewLog-CGsSkrzf.es.js +0 -21
- package/components/buttonviewlog/ButtonViewLog-leLO6F_N.system.js +0 -1
- package/components/calendar/BaseCalendar-5EI1UTbl.es.js +0 -867
- package/components/calendar/BaseCalendar-C02-gmOQ.system.js +0 -1
- package/components/calendar/Calendar-B2z-lfi9.es.js +0 -112
- package/components/calendar/Calendar-CWw4R5mN.system.js +0 -1
- package/components/card/Card-BccG14LV.es.js +0 -47
- package/components/card/Card-BjI-Xi0S.system.js +0 -1
- package/components/checkbox/Checkbox-DBU7Ji2C.es.js +0 -135
- package/components/checkbox/Checkbox-FZg_wq3C.system.js +0 -1
- package/components/codesnippet/CodeSnippet--pMQi4aO.es.js +0 -127
- package/components/codesnippet/CodeSnippet-BVwAQPSv.system.js +0 -2
- package/components/customcolumn/ColumnList-fdR5JfHj.es.js +0 -159
- package/components/customcolumn/ColumnList-yaNVEQFA.system.js +0 -1
- package/components/customcolumn/CustomColumn-CfvCLH4v.es.js +0 -139
- package/components/customcolumn/CustomColumn-D3u59-Rd.system.js +0 -1
- package/components/customcolumn/helpers/setVisibilityColumn.helper-B1vEZDtD.system.js +0 -1
- package/components/customcolumn/helpers/setVisibilityColumn.helper-CQ4P_C_9.es.js +0 -16
- package/components/datatable/DataTable-BH7Fk88O.es.js +0 -992
- package/components/datatable/DataTable-Cko2S6sM.system.js +0 -1
- package/components/datatable/MultiRow-B2vMSb7W.es.js +0 -52
- package/components/datatable/MultiRow-Sef5icam.system.js +0 -1
- package/components/datatable/store/dataTable.store-B4p-hj3w.es.js +0 -37
- package/components/datatable/store/dataTable.store-C9376aEJ.system.js +0 -1
- package/components/dialog/Dialog-BCcbXSya.es.js +0 -121
- package/components/dialog/Dialog-Dv7Jzg4E.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-BU-LRZCo.system.js +0 -1
- package/components/dialogconfirm/DialogConfirm-ByIWXisz.es.js +0 -139
- package/components/dialogform/DialogForm-DGl_NOEr.system.js +0 -1
- package/components/dialogform/DialogForm-tAbix3iC.es.js +0 -222
- package/components/dialogselecttree/DialogSelectTree-BrVtt3iG.es.js +0 -268
- package/components/dialogselecttree/DialogSelectTree-CT7dKC5N.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUser-Bu7z7lUq.es.js +0 -121
- package/components/dialogselectuser/DialogSelectUser-DXL_NMJj.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUserFilter-BNbIynoa.system.js +0 -1
- package/components/dialogselectuser/DialogSelectUserFilter-BgBrQCz1.es.js +0 -44
- package/components/dialogselectuser/options/columns-BKDHtwAp.es.js +0 -71
- package/components/dialogselectuser/options/columns-DLmJdDTR.system.js +0 -1
- package/components/dropdown/Dropdown-BNzT2uLU.system.js +0 -1
- package/components/dropdown/Dropdown-Dk4urj-W.es.js +0 -258
- package/components/editor/CodeSnippetAdapter-C0f7wytw.es.js +0 -26
- package/components/editor/CodeSnippetAdapter-f-VHwbwS.system.js +0 -1
- package/components/editor/Editor-RB5MqBs1.es.js +0 -887
- package/components/editor/Editor-upU4Z9FH.system.js +0 -1
- package/components/editor/EditorButton-CC6U1a_u.system.js +0 -1
- package/components/editor/EditorButton-Cfew79JD.es.js +0 -28
- package/components/editor/MentionList-BjWKefLh.system.js +0 -1
- package/components/editor/MentionList-CdX0_-TK.es.js +0 -58
- package/components/editor/MentionSection-5I-FSwew.es.js +0 -52
- package/components/editor/MentionSection-CiuaeX4J.system.js +0 -3
- package/components/editor/codeSnippetExtension-C-ADHg2S.es.js +0 -40
- package/components/editor/codeSnippetExtension-C3uj0fCk.system.js +0 -1
- package/components/editor/mentionSectionExtension-DJ6wkX1L.system.js +0 -1
- package/components/editor/mentionSectionExtension-rbWufuMT.es.js +0 -46
- package/components/editor/suggestion-BcYK0KeI.system.js +0 -1
- package/components/editor/suggestion-mkkpQFP-.es.js +0 -41
- package/components/fieldwrapper/FieldWrapper-Dc-stQRH.system.js +0 -1
- package/components/fieldwrapper/FieldWrapper-DmOogUM5.es.js +0 -35
- package/components/fileupload/FileUpload-0EHKlInu.es.js +0 -175
- package/components/fileupload/FileUpload-dXrsIAeC.system.js +0 -1
- package/components/filtercontainer/FilterContainer-Cd8TpncM.es.js +0 -234
- package/components/filtercontainer/FilterContainer-kkw3n3tu.system.js +0 -1
- package/components/filtercontainer/helpers/applyFilter.helper-Ci22FrPF.system.js +0 -1
- package/components/filtercontainer/helpers/applyFilter.helper-DpVdjYBr.es.js +0 -56
- package/components/form/Form-By85t_oI.system.js +0 -1
- package/components/form/Form-DhWBpdkq.es.js +0 -181
- package/components/hardwaresync/HardwareSync-BckCfIeF.es.js +0 -238
- package/components/hardwaresync/HardwareSync-DcgVc0cL.system.js +0 -1
- package/components/hardwaresync/store/device.store-DEKXH36R.system.js +0 -1
- package/components/hardwaresync/store/device.store-DpVE6Nhl.es.js +0 -20
- package/components/icon/Icon-C4kXVcEX.es.js +0 -82
- package/components/icon/Icon-D1a666FC.system.js +0 -1
- package/components/image/Image-Bf5EaBWP.es.js +0 -170
- package/components/image/Image-Cxi0E9gK.system.js +0 -1
- package/components/imagecompressor/BackgroundImageCropper-DhrTpgNX.system.js +0 -1
- package/components/imagecompressor/BackgroundImageCropper-hiHqCcIy.es.js +0 -52
- package/components/imagecompressor/ImageCompressor-C_vnTwmo.system.js +0 -1
- package/components/imagecompressor/ImageCompressor-DPo-1Yo8.es.js +0 -509
- package/components/imagecompressor/ImageInputInfo-4Ac8cBDM.es.js +0 -46
- package/components/imagecompressor/ImageInputInfo-U3hLlbwo.system.js +0 -1
- package/components/index-BMti6lK3.es.js +0 -64
- package/components/index-DBzSxIov.system.js +0 -1
- package/components/inlinemessage/InlineMessage-BPJD82sq.es.js +0 -94
- package/components/inlinemessage/InlineMessage-DTyTe5_W.system.js +0 -1
- package/components/inputbadge/InputBadge-BUm6Kn-F.system.js +0 -1
- package/components/inputbadge/InputBadge-BngtjqHQ.es.js +0 -186
- package/components/inputcurrency/InputCurrency-CE4WrJ9k.es.js +0 -1211
- package/components/inputcurrency/InputCurrency-DaJuUujH.system.js +0 -1
- package/components/inputemail/InputEmail-8E04RVeq.system.js +0 -1
- package/components/inputemail/InputEmail-BFeY1l9Z.es.js +0 -49
- package/components/inputgroup/InputGroup-CTHxHL8n.system.js +0 -1
- package/components/inputgroup/InputGroup-CUxNAtDZ.es.js +0 -56
- package/components/inputnumber/InputNumber-BJ8Qm27k.system.js +0 -1
- package/components/inputnumber/InputNumber-CQd01PQ5.es.js +0 -232
- package/components/inputpassword/InputPassword-D3jaUFfR.system.js +0 -1
- package/components/inputpassword/InputPassword-DGWsHAB4.es.js +0 -121
- package/components/inputphonenumber/InputPhoneNumber-3To4Ktp9.system.js +0 -1
- package/components/inputphonenumber/InputPhoneNumber-DVAOWAj6.es.js +0 -162
- package/components/inputphonenumber/helpers/getUserLocation.helper-B0lZav7S.es.js +0 -15
- package/components/inputphonenumber/helpers/getUserLocation.helper-CSC5I9tB.system.js +0 -1
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-CUP9NUYE.es.js +0 -423
- package/components/inputphonenumber/helpers/timeZoneCityToCountry.json-DgzOgH_M.system.js +0 -1
- package/components/inputrangenumber/InputRangeNumber-Cfea6oM_.es.js +0 -134
- package/components/inputrangenumber/InputRangeNumber-iLScQOa6.system.js +0 -1
- package/components/inputsearch/InputSearch-CHJP-N57.es.js +0 -53
- package/components/inputsearch/InputSearch-DkB4O0Dc.system.js +0 -1
- package/components/inputtext/InputText-BEDxrRqK.es.js +0 -242
- package/components/inputtext/InputText-BOgH8xpA.system.js +0 -1
- package/components/inputurl/InputURL-CNrOkrAC.es.js +0 -61
- package/components/inputurl/InputURL-D4QWV9G7.system.js +0 -1
- package/components/invisiblefield/InvisibleField-4XbiOrqw.es.js +0 -27
- package/components/invisiblefield/InvisibleField-BHudtX2g.system.js +0 -1
- package/components/litedropdown/LiteDropdown-BbDUnfnd.es.js +0 -102
- package/components/litedropdown/LiteDropdown-DTXwb5JR.system.js +0 -1
- package/components/loading/Loading-DIfTUHr7.es.js +0 -24
- package/components/loading/Loading-Vb4HctBJ.system.js +0 -1
- package/components/menu/Menu-BtzGGhbp.es.js +0 -73
- package/components/menu/Menu-CPm5vua_.system.js +0 -1
- package/components/menuitem/MenuItem-8yxkFTug.system.js +0 -1
- package/components/menuitem/MenuItem-uLVAqgBS.es.js +0 -65
- package/components/multiselect/MultiSelect-BoPpQ31j.es.js +0 -189
- package/components/multiselect/MultiSelect-D5NEDtGe.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-BKCivqTs.system.js +0 -1
- package/components/overlaypanel/OverlayPanel-bQbjuUgG.es.js +0 -49
- package/components/tabmenu/TabMenu-BBk8EW-C.system.js +0 -1
- package/components/tabmenu/TabMenu-ByKBaVsd.es.js +0 -108
- package/components/tagtype/TagType-CAXomDiD.es.js +0 -49
- package/components/tagtype/TagType-i4RK2JbL.system.js +0 -1
- package/components/textarea/Textarea-CnAlgPq5.es.js +0 -108
- package/components/textarea/Textarea-qirKOw5z.system.js +0 -1
- package/components/timeline/Timeline-CF2qJo4E.es.js +0 -120
- package/components/timeline/Timeline-DKfKWZFI.system.js +0 -1
- package/components/timeline/TimelineContentByType-_cKGDWAW.es.js +0 -108
- package/components/timeline/TimelineContentByType-uxM3NSqd.system.js +0 -1
- package/components/toast/Toast-C3D50rGo.system.js +0 -1
- package/components/toast/Toast-DRUJCz4I.es.js +0 -74
- package/components/toggleswitch/ToggleSwitch-De-_8nQl.es.js +0 -90
- package/components/toggleswitch/ToggleSwitch-DuyahX09.system.js +0 -1
- package/components/transactionroles/TransactionRoles-WrcXMwBu.es.js +0 -223
- package/components/transactionroles/TransactionRoles-iVQyWseb.system.js +0 -1
- package/components/tree/Tree-93NvdElH.es.js +0 -267
- package/components/tree/Tree-BTTVTAEH.system.js +0 -1
- package/components/tree/helpers/filterNodeKeys.helper-CmamKUTa.system.js +0 -1
- package/components/tree/helpers/filterNodeKeys.helper-z7SxLuvZ.es.js +0 -10
- package/components/treesearchinput/TreeSearchInput-BG2TfunA.system.js +0 -1
- package/components/treesearchinput/TreeSearchInput-CNfoc3f6.es.js +0 -56
- package/components/username/UserName-A1N6Q7bS.system.js +0 -1
- package/components/username/UserName-D5C0qdbu.es.js +0 -132
- package/components/userwithicon/UserWithIcon-CHHDfQG0.es.js +0 -18
- package/components/userwithicon/UserWithIcon-DnY6loZc.system.js +0 -1
- package/components/validatormessage/ValidatorMessage-BtKfBXzO.es.js +0 -19
- package/components/validatormessage/ValidatorMessage-VVfyqlRF.system.js +0 -1
- package/config/config.esm-BZepf1kR.system.js +0 -1
- package/config/config.esm-Drl0fECZ.es.js +0 -212
- package/config/defaultProps-B3syHUKt.system.js +0 -1
- package/config/defaultProps-BC_lvAG9.es.js +0 -136
- package/config/locale-DK6d2rJ3.system.js +0 -1
- package/config/locale-pQnRpNZ6.es.js +0 -85
- package/event-bus/index-CykcrsqY.system.js +0 -1
- package/event-bus/index-PQwO5T6B.es.js +0 -6
- package/event-bus/mitt-BjeF6e5j.es.js +0 -53
- package/event-bus/mitt-X_X8W9w9.system.js +0 -1
- package/plugins/WangsVue-Dl5OiLXF.es.js +0 -332
- package/plugins/WangsVue-Dugc3GRS.system.js +0 -1
- package/plugins/i18n-BVujDShu.system.js +0 -1
- package/plugins/i18n-CIoi8go0.es.js +0 -89
- package/utils/addAttachment.util-CPzZEHNG.system.js +0 -1
- package/utils/addAttachment.util-D9sYCBjS.es.js +0 -10
- package/utils/computeAutoPlacement-Ac2MkS5B.es.js +0 -33
- package/utils/computeAutoPlacement-DCaci6j-.system.js +0 -1
- package/utils/computeOffsets-Cx9i84Mn.system.js +0 -1
- package/utils/computeOffsets-DXWJPq7f.es.js +0 -56
- package/utils/date.util-DbjB32co.es.js +0 -198
- package/utils/date.util-rX9kq_yC.system.js +0 -1
- package/utils/detectOverflow-BrAC_sJF.system.js +0 -1
- package/utils/detectOverflow-CETbaen7.es.js +0 -88
- package/utils/exportToExcel.util-Bf-PpzHW.system.js +0 -1
- package/utils/exportToExcel.util-jz7aU08m.es.js +0 -32
- package/utils/genPlaceholder.util-0UuDQpbx.es.js +0 -37
- package/utils/genPlaceholder.util-CxMG7LbT.system.js +0 -1
- package/utils/mergePropsWithDefaults.util-BKcJzgvs.es.js +0 -9
- package/utils/mergePropsWithDefaults.util-CXowvEKY.system.js +0 -1
- package/utils/object.util-6veM2gu5.es.js +0 -51
- package/utils/object.util-uApor4uP.system.js +0 -1
- package/utils/orderModifiers-qXBm1wkD.system.js +0 -1
- package/utils/orderModifiers-rOag5Cyh.es.js +0 -31
- package/utils/role.util-BdUNoOqf.es.js +0 -67
- package/utils/role.util-Co8OMWnc.system.js +0 -1
- package/utils/textFormatter.util-BjenkyWf.system.js +0 -1
- package/utils/textFormatter.util-CYul3RpH.es.js +0 -21
- package/utils/toast.util-C7p3h9XQ.es.js +0 -52
- package/utils/toast.util-DPtauJUV.system.js +0 -1
- package/utils/utils.esm-iwnsFuDg.system.js +0 -23
- package/utils/utils.esm-s_-kLKXf.es.js +0 -1080
- package/utils/xlsx.util-FKEpiU2t.system.js +0 -1
- package/utils/xlsx.util-LU1upHR3.es.js +0 -8
- package/vendor/@popperjs/core-DFLwc7xU.system.js +0 -1
- package/vendor/@popperjs/core-DJHUrK4e.es.js +0 -748
- package/vendor/@tiptap/core-D4rHEGhs.system.js +0 -80
- package/vendor/@tiptap/core-DSbPv8xh.es.js +0 -2868
- package/vendor/@tiptap/extension-bold-CvAjR8FR.es.js +0 -71
- package/vendor/@tiptap/extension-bold-DI_Zfdzb.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-0_0wc2P7.system.js +0 -1
- package/vendor/@tiptap/extension-bubble-menu-DY29ulfu.es.js +0 -128
- package/vendor/@tiptap/extension-bullet-list-BrkIcd-z.es.js +0 -53
- package/vendor/@tiptap/extension-bullet-list-CgIgW9RG.system.js +0 -1
- package/vendor/@tiptap/extension-code-BtAtPCQQ.es.js +0 -51
- package/vendor/@tiptap/extension-code-SOANT0O3.system.js +0 -1
- package/vendor/@tiptap/extension-floating-menu-BTwcx1u8.es.js +0 -99
- package/vendor/@tiptap/extension-floating-menu-Dtu9tcTW.system.js +0 -1
- package/vendor/@tiptap/extension-heading-B6PMnqvS.es.js +0 -54
- package/vendor/@tiptap/extension-heading-BpK6SnFO.system.js +0 -1
- package/vendor/@tiptap/extension-history-CTFK6g3n.system.js +0 -1
- package/vendor/@tiptap/extension-history-DdPDTH0G.es.js +0 -35
- package/vendor/@tiptap/extension-image-BNa6azmK.system.js +0 -1
- package/vendor/@tiptap/extension-image-DCo2JDZp.es.js +0 -64
- package/vendor/@tiptap/extension-italic-D09oL4ps.es.js +0 -70
- package/vendor/@tiptap/extension-italic-w93Lmtg_.system.js +0 -1
- package/vendor/@tiptap/extension-link-CV6Fodq9.es.js +0 -262
- package/vendor/@tiptap/extension-link-FrdAKaJ2.system.js +0 -1
- package/vendor/@tiptap/extension-list-item-BRio_hHs.system.js +0 -1
- package/vendor/@tiptap/extension-list-item-D8wSpPxS.es.js +0 -33
- package/vendor/@tiptap/extension-mention-cFXQdAs7.es.js +0 -130
- package/vendor/@tiptap/extension-mention-y62_tYRn.system.js +0 -1
- package/vendor/@tiptap/extension-ordered-list-BZU-Ty3o.es.js +0 -71
- package/vendor/@tiptap/extension-ordered-list-CH9LyYR1.system.js +0 -1
- package/vendor/@tiptap/extension-placeholder-CsBxoitZ.es.js +0 -52
- package/vendor/@tiptap/extension-placeholder-Dqw7HNAJ.system.js +0 -1
- package/vendor/@tiptap/extension-underline-DklFOEoR.es.js +0 -40
- package/vendor/@tiptap/extension-underline-SGsaBlAL.system.js +0 -1
- package/vendor/@tiptap/suggestion-B3Grok9m.system.js +0 -1
- package/vendor/@tiptap/suggestion-Dg-vhPtN.es.js +0 -131
- package/vendor/@tiptap/vue-3-BOfcUn5G.es.js +0 -436
- package/vendor/@tiptap/vue-3-ZMNXXvBd.system.js +0 -1
- package/vendor/highlight.js-ClnJXT0q.system.js +0 -2
- package/vendor/highlight.js-Czlvg6fB.es.js +0 -2493
- package/vendor/linkifyjs-BxsOjwQz.es.js +0 -705
- package/vendor/linkifyjs-CMLfIa6I.system.js +0 -5
- package/vendor/lodash-B6nNLFd3.es.js +0 -127
- package/vendor/lodash-BuO1dYnQ.system.js +0 -1
- package/vendor/lodash-es-C3G1Cc1m.system.js +0 -1
- package/vendor/lodash-es-CJerBxJQ.es.js +0 -766
- package/vendor/orderedmap-B3SOk52B.es.js +0 -103
- package/vendor/orderedmap-Dwr31MF0.system.js +0 -1
- package/vendor/primevue-C5Z_k4WB.system.js +0 -171
- package/vendor/primevue-DkBtKf1Y.es.js +0 -12649
- package/vendor/prosemirror-commands-CUjo-x4s.es.js +0 -383
- package/vendor/prosemirror-commands-Dn6KNBP0.system.js +0 -2
- package/vendor/prosemirror-history-BPOe4I2H.es.js +0 -248
- package/vendor/prosemirror-history-BTrzvpc-.system.js +0 -1
- package/vendor/prosemirror-keymap-BvIUhswp.es.js +0 -60
- package/vendor/prosemirror-keymap-WRY9zVpK.system.js +0 -1
- package/vendor/prosemirror-model-D2n-Dx_L.es.js +0 -2736
- package/vendor/prosemirror-model-DTWK5xnv.system.js +0 -4
- package/vendor/prosemirror-schema-list-BvrICwYb.es.js +0 -87
- package/vendor/prosemirror-schema-list-Dv9KV10j.system.js +0 -1
- package/vendor/prosemirror-state-BW6XGB3U.es.js +0 -820
- package/vendor/prosemirror-state-COJ-aZZ4.system.js +0 -1
- package/vendor/prosemirror-transform-BXNgAhmF.system.js +0 -2
- package/vendor/prosemirror-transform-DvAmofec.es.js +0 -1507
- package/vendor/prosemirror-view-C9ZQp8VZ.es.js +0 -3742
- package/vendor/prosemirror-view-DOxSTbB-.system.js +0 -5
- package/vendor/rope-sequence-4t46C6az.system.js +0 -1
- package/vendor/rope-sequence-sEGCUMi8.es.js +0 -100
- package/vendor/simplebar-core-CtWK1-xd.system.js +0 -1
- package/vendor/simplebar-core-ofTx4QqK.es.js +0 -333
- package/vendor/simplebar-vue-BHVrvuf1.system.js +0 -1
- package/vendor/simplebar-vue-dpCx-K7E.es.js +0 -176
- package/vendor/tippy.js-6wuFov1j.system.js +0 -1
- package/vendor/tippy.js-i1ic-msv.es.js +0 -721
- package/vendor/uuid-93tp0umt.es.js +0 -9
- package/vendor/uuid-Cymn6orr.system.js +0 -1
- package/vendor/vee-validate-Cc_B-qII.system.js +0 -5
- package/vendor/vee-validate-RE5RuswC.es.js +0 -1309
- package/vendor/vue-advanced-cropper-CshlvNaD.es.js +0 -1380
- package/vendor/vue-advanced-cropper-NG93jHnU.system.js +0 -20
- package/vendor/w3c-keyname-BSD-PgAi.system.js +0 -1
- package/vendor/w3c-keyname-CLxH8j-f.es.js +0 -92
- /package/{assets/lottie/loading-plane-CgfbWppy.system.js → loading-page-CgfbWppy.js} +0 -0
- /package/{assets/lottie/loading-plane-CoXtqoc9.es.js → loading-page-CoXtqoc9.js} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
System.register(["vue"],function(Wt,$e){"use strict";var w,y,k,O,x,I,ht,ct,Z,lt,ut,dt,mt,Dt;return{setters:[R=>{w=R.createBlock,y=R.openBlock,k=R.renderSlot,O=R.resolveComponent,x=R.createVNode,I=R.withCtx,ht=R.Fragment,ct=R.renderList,Z=R.resolveDynamicComponent,lt=R.withDirectives,ut=R.vShow,dt=R.mergeProps,mt=R.createCommentVNode,Dt=R.withModifiers}],execute:function(){function R(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),i.push.apply(i,s)}return i}function p(t){for(var e=1;e<arguments.length;e++){var i=arguments[e]!=null?arguments[e]:{};e%2?R(Object(i),!0).forEach(function(s){T(t,s,i[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):R(Object(i)).forEach(function(s){Object.defineProperty(t,s,Object.getOwnPropertyDescriptor(i,s))})}return t}function T(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function ne(t,e){if(t==null)return{};var i,s,o=function(a,h){if(a==null)return{};var r,c,l={},u=Object.keys(a);for(c=0;c<u.length;c++)r=u[c],h.indexOf(r)>=0||(l[r]=a[r]);return l}(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(s=0;s<n.length;s++)i=n[s],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(o[i]=t[i])}return o}function Y(t){return function(e){if(Array.isArray(e))return ft(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||function(e,i){if(e){if(typeof e=="string")return ft(e,i);var s=Object.prototype.toString.call(e).slice(8,-1);if(s==="Object"&&e.constructor&&(s=e.constructor.name),s==="Map"||s==="Set")return Array.from(e);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return ft(e,i)}}(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ft(t,e){(e==null||e>t.length)&&(e=t.length);for(var i=0,s=new Array(e);i<e;i++)s[i]=t[i];return s}var Ot,se,K,z=(Ot=function(t){/*!
|
|
3
|
-
Copyright (c) 2018 Jed Watson.
|
|
4
|
-
Licensed under the MIT License (MIT), see
|
|
5
|
-
http://jedwatson.github.io/classnames
|
|
6
|
-
*/(function(){var e={}.hasOwnProperty;function i(){for(var s=[],o=0;o<arguments.length;o++){var n=arguments[o];if(n){var a=typeof n;if(a==="string"||a==="number")s.push(n);else if(Array.isArray(n)){if(n.length){var h=i.apply(null,n);h&&s.push(h)}}else if(a==="object")if(n.toString===Object.prototype.toString)for(var r in n)e.call(n,r)&&n[r]&&s.push(r);else s.push(n.toString())}}return s.join(" ")}t.exports?(i.default=i,t.exports=i):window.classNames=i})()},Ot(K={path:se,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(e==null&&K.path)}},K.exports),K.exports),D=function(t){return function(e,i){if(!e)return t;var s;typeof e=="string"?s=e:i=e;var o=t;return s&&(o+="__"+s),o+(i?Object.keys(i).reduce(function(n,a){var h=i[a];return h&&(n+=" "+(typeof h=="boolean"?o+"--"+a:o+"--"+a+"_"+h)),n},""):"")}};function gt(t,e,i){var s,o,n,a,h;function r(){var l=Date.now()-a;l<e&&l>=0?s=setTimeout(r,e-l):(s=null,i||(h=t.apply(n,o),n=o=null))}e==null&&(e=100);var c=function(){n=this,o=arguments,a=Date.now();var l=i&&!s;return s||(s=setTimeout(r,e)),l&&(h=t.apply(n,o),n=o=null),h};return c.clear=function(){s&&(clearTimeout(s),s=null)},c.flush=function(){s&&(h=t.apply(n,o),n=o=null,clearTimeout(s),s=null)},c}gt.debounce=gt;var pt=gt,f=function(){return f=Object.assign||function(t){for(var e,i=1,s=arguments.length;i<s;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},f.apply(this,arguments)};/*! *****************************************************************************
|
|
7
|
-
Copyright (c) Microsoft Corporation.
|
|
8
|
-
|
|
9
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
-
purpose with or without fee is hereby granted.
|
|
11
|
-
|
|
12
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
13
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
14
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
15
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
16
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
17
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
19
|
-
***************************************************************************** */function Ht(t,e){var i,s;return t&&e?(i=""+t+e[0].toUpperCase()+e.slice(1),s=t+"-"+e):(i=t||e,s=t||e),{name:i,classname:s}}function Lt(t){return/^blob:/.test(t)}function Pt(t){return Lt(t)||function(e){return/^data:/.test(e)}(t)}function F(t){return!!(t&&t.constructor&&t.call&&t.apply)}function A(t){return t===void 0}function J(t){return typeof t=="object"&&t!==null}function vt(t,e,i){var s={};return J(t)?(Object.keys(e).forEach(function(o){A(t[o])?s[o]=e[o]:J(e[o])?J(t[o])?s[o]=vt(t[o],e[o],i[o]):s[o]=t[o]?e[o]:i[o]:e[o]===!0||e[o]===!1?s[o]=!!t[o]:s[o]=t[o]}),s):t?e:i}function tt(t){var e=Number(t);return Number.isNaN(e)?t:e}function It(t){return typeof(t=="number"||function(e){return typeof e=="object"&&e!==null}(t)&&toString.call(t)=="[object Number]")&&!$t(t)}function $t(t){return t!=t}function jt(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}var q=function(t,e){t===void 0&&(t={}),e===void 0&&(e={}),this.type="manipulateImage",this.move=t,this.scale=e},oe=function(t,e){e===void 0&&(e={}),this.type="resize",this.directions=t,this.params=e},bt=function(t){this.type="move",this.directions=t},re=function(){function t(e,i,s,o,n){this.type="drag",this.nativeEvent=e,this.position=s,this.previousPosition=o,this.element=i,this.anchor=n}return t.prototype.shift=function(){var e=this,i=e.element,s=e.anchor,o=e.position;if(i){var n=i.getBoundingClientRect(),a=n.left,h=n.top;return{left:o.left-a-s.left,top:o.top-h-s.top}}return{left:0,top:0}},t}(),wt={name:"DraggableElement",props:{classname:{type:String}},beforeMount:function(){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})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){if(!this.$refs.draggable)throw new Error('You should add ref "draggable" to your root element to use draggable mixin');this.touches=[],this.hovered=!1},methods:{onMouseOver:function(){this.hovered||(this.hovered=!0,this.$emit("enter"))},onMouseLeave:function(){this.hovered&&!this.touches.length&&(this.hovered=!1,this.$emit("leave"))},onTouchStart:function(t){t.cancelable&&!this.disabled&&t.touches.length===1&&(this.touches=Y(t.touches),this.hovered||(this.$emit("enter"),this.hovered=!0),t.touches.length&&this.initAnchor(this.touches.reduce(function(e,i){return{clientX:e.clientX+i.clientX/t.touches.length,clientY:e.clientY+i.clientY/t.touches.length}},{clientX:0,clientY:0})),t.preventDefault&&t.preventDefault(),t.stopPropagation())},onTouchEnd:function(){this.processEnd()},onTouchMove:function(t){this.touches.length&&(this.processMove(t,t.touches),t.preventDefault&&t.preventDefault(),t.stopPropagation&&t.stopPropagation())},onMouseDown:function(t){if(!this.disabled){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.preventDefault())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.draggable.getBoundingClientRect(),i=e.left,s=e.right,o=e.bottom,n=e.top;this.anchor={left:t.clientX-i,top:t.clientY-n,bottom:o-t.clientY,right:s-t.clientX}},processMove:function(t,e){var i=Y(e);if(this.touches.length){if(this.touches.length===1&&i.length===1){var s=this.$refs.draggable;this.$emit("drag",new re(t,s,{left:i[0].clientX,top:i[0].clientY},{left:this.touches[0].clientX,top:this.touches[0].clientY},this.anchor))}this.touches=i}},processEnd:function(){this.touches.length&&this.$emit("drag-end"),this.hovered&&(this.$emit("leave"),this.hovered=!1),this.touches=[]}},emits:["drag","drag-end","leave","enter"]};wt.render=function(t,e,i,s,o,n){return y(),w("div",{ref:"draggable",class:i.classname,onTouchstart:e[1]||(e[1]=function(){return n.onTouchStart&&n.onTouchStart.apply(n,arguments)}),onMousedown:e[2]||(e[2]=function(){return n.onMouseDown&&n.onMouseDown.apply(n,arguments)}),onMouseover:e[3]||(e[3]=function(){return n.onMouseOver&&n.onMouseOver.apply(n,arguments)}),onMouseleave:e[4]||(e[4]=function(){return n.onMouseLeave&&n.onMouseLeave.apply(n,arguments)})},[k(t.$slots,"default")],34)};var yt=D("vue-handler-wrapper"),Bt={name:"HandlerWrapper",components:{DraggableElement:wt},props:{horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},computed:{classes:function(){var t;if(this.horizontalPosition||this.verticalPosition){var e,i=Ht(this.horizontalPosition,this.verticalPosition);t=yt((T(e={},i.classname,!0),T(e,"disabled",this.disabled),e))}else t=yt({disabled:this.disabled});return{root:t,draggable:yt("draggable")}}},emits:["leave","enter","drag","drag-end"]};Bt.render=function(t,e,i,s,o,n){var a=O("DraggableElement");return y(),w("div",{class:n.classes.root},[x(a,{class:n.classes.draggable,onDrag:e[1]||(e[1]=function(h){return t.$emit("drag",h)}),onDragEnd:e[2]||(e[2]=function(h){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(h){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(h){return t.$emit("enter")})},{default:I(function(){return[k(t.$slots,"default")]}),_:3},8,["class"])],2)};var ae=D("vue-line-wrapper"),kt={name:"LineWrapper",components:{DraggableElement:wt},props:{position:{type:String,required:!0},disabled:{type:Boolean,default:!1}},computed:{classname:function(){var t;return ae((T(t={},this.position,!0),T(t,"disabled",this.disabled),t))}},emits:["leave","enter","drag","drag-end"]};kt.render=function(t,e,i,s,o,n){var a=O("DraggableElement");return y(),w(a,{class:n.classname,onDrag:e[1]||(e[1]=function(h){return t.$emit("drag",h)}),onDragEnd:e[2]||(e[2]=function(h){return t.$emit("drag-end")}),onLeave:e[3]||(e[3]=function(h){return t.$emit("leave")}),onEnter:e[4]||(e[4]=function(h){return t.$emit("enter")})},{default:I(function(){return[k(t.$slots,"default")]}),_:3},8,["class"])};var H=["left","right","top","bottom"],he=["left","right"],ce=["top","bottom"],le=["left","top"],ue=["fill-area","fit-area","stencil","none"],Xt={left:0,top:0,width:0,height:0};function Yt(t,e,i){return!(i=i||["width","height","left","top"]).some(function(s){return t[s]!==e[s]})}function L(t){return{left:t.left,top:t.top,right:t.left+t.width,bottom:t.top+t.height}}function U(t,e){return{left:t.left-e.left,top:t.top-e.top}}function M(t){return{left:t.left+t.width/2,top:t.top+t.height/2}}function _(t,e){var i={left:0,top:0,right:0,bottom:0};return H.forEach(function(s){var o=e[s],n=L(t)[s];i[s]=o!==void 0&&n!==void 0?s==="left"||s==="top"?Math.max(0,o-n):Math.max(0,n-o):0}),i}function P(t,e){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}}function et(t){return{left:-t.left,top:-t.top}}function E(t,e){return f(f({},t),{left:t.left+e.left,top:t.top+e.top})}function W(t,e,i,s){if(e!==1){if(i){var o=M(t);return{width:t.width*e,height:t.height*e,left:t.left+t.width*(1-e)/2+(i.left-o.left)*(1-e),top:t.top+t.height*(1-e)/2+(i.top-o.top)*(1-e)}}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}}return t}function v(t){return t.width/t.height}function N(t,e){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)}function V(t,e){var i={left:0,top:0},s=_(t,e);return s.left&&s.left>0?i.left=s.left:s.right&&s.right>0&&(i.left=-s.right),s.top&&s.top>0?i.top=s.top:s.bottom&&s.bottom>0&&(i.top=-s.bottom),i}function zt(t,e){var i;return e.minimum&&t<e.minimum?i=e.minimum:e.maximum&&t>e.maximum&&(i=e.maximum),i}function Ft(t,e){var i=v(t),s=v(e);return e.width<1/0&&e.height<1/0?i>s?{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}function Ut(t,e){var i=e*Math.PI/180;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))}}function X(t,e){var i=e*Math.PI/180;return{left:t.left*Math.cos(i)-t.top*Math.sin(i),top:t.left*Math.sin(i)+t.top*Math.cos(i)}}function it(t,e){var i=_(S(t,e),e);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,N(t,e)):Math.min((t.height+i.top+i.bottom)/t.height,N(t,e)):1}function S(t,e,i){i===void 0&&(i=!1);var s=V(t,e);return E(t,i?et(s):s)}function At(t){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}}function de(t,e){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)})}function Nt(t,e,i){i===void 0&&(i=!0);var s={};return H.forEach(function(o){var n=t[o],a=e[o];n!==void 0&&a!==void 0?s[o]=o==="left"||o==="top"?i?Math.max(n,a):Math.min(n,a):i?Math.min(n,a):Math.max(n,a):a!==void 0?s[o]=a:n!==void 0&&(s[o]=n)}),s}function nt(t,e){return Nt(t,e,!0)}function Vt(t){var e=t.size,i=t.aspectRatio,s=t.ignoreMinimum,o=t.sizeRestrictions;return!!((e.correctRatio||v(e)>=i.minimum&&v(e)<=i.maximum)&&e.height<=o.maxHeight&&e.width<=o.maxWidth&&e.width&&e.height&&(s||e.height>=o.minHeight&&e.width>=o.minWidth))}function Zt(t,e){return Math.pow(t.width-e.width,2)+Math.pow(t.height-e.height,2)}function $(t){var e=t.width,i=t.height,s=t.sizeRestrictions,o={minimum:t.aspectRatio&&t.aspectRatio.minimum||0,maximum:t.aspectRatio&&t.aspectRatio.maximum||1/0},n={width:Math.max(s.minWidth,Math.min(s.maxWidth,e)),height:Math.max(s.minHeight,Math.min(s.maxHeight,i))};function a(c,l){return l===void 0&&(l=!1),c.reduce(function(u,d){return Vt({size:d,aspectRatio:o,sizeRestrictions:s,ignoreMinimum:l})&&(!u||Zt(d,{width:e,height:i})<Zt(u,{width:e,height:i}))?d:u},null)}var h=[];o&&[o.minimum,o.maximum].forEach(function(c){c&&h.push({width:n.width,height:n.width/c,correctRatio:!0},{width:n.height*c,height:n.height,correctRatio:!0})}),Vt({size:n,aspectRatio:o,sizeRestrictions:s})&&h.push(n);var r=a(h)||a(h,!0);return r&&{width:r.width,height:r.height}}function Rt(t){var e=t.event,i=t.coordinates,s=t.positionRestrictions,o=s===void 0?{}:s,n=E(i,e.directions);return E(n,V(n,o))}function me(t){var e=t.coordinates,i=t.transform,s=t.imageSize,o=t.sizeRestrictions,n=t.positionRestrictions,a=t.aspectRatio,h=t.visibleArea,r=function(l,u){return Rt({coordinates:l,positionRestrictions:n,event:new bt({left:u.left-l.left,top:u.top-l.top})})},c=f({},e);return(Array.isArray(i)?i:[i]).forEach(function(l){var u={};A((u=typeof l=="function"?l({coordinates:c,imageSize:s,visibleArea:h}):l).width)&&A(u.height)||(c=function(d,m){var g=f(f(f({},d),$({width:m.width,height:m.height,sizeRestrictions:o,aspectRatio:a})),{left:0,top:0});return r(g,{left:d.left,top:d.top})}(c,f(f({},c),u))),A(u.left)&&A(u.top)||(c=r(c,f(f({},c),u)))}),c}function fe(t){t.event;var e=t.getAreaRestrictions,i=t.boundaries,s=t.coordinates,o=t.visibleArea;t.aspectRatio;var n=t.stencilSize,a=t.sizeRestrictions,h=t.positionRestrictions;t.stencilReference;var r,c,l,u=f({},s),d=f({},o),m=f({},n);r=v(m),c=v(u),l===void 0&&(l=.001),(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),$({sizeRestrictions:a,width:u.width,height:u.height,aspectRatio:{minimum:v(m),maximum:v(m)}})));var g=it(d=W(d,u.width*i.width/(d.width*m.width)),e({visibleArea:d,type:"resize"}));return g!==1&&(d=W(d,g),u=W(u,g)),d=S(d=E(d,U(M(u),M(d))),e({visibleArea:d,type:"move"})),{coordinates:u=S(u,nt(L(d),h)),visibleArea:d}}function ge(t){var e=t.event,i=t.getAreaRestrictions,s=t.boundaries,o=t.coordinates,n=t.visibleArea;t.aspectRatio,t.stencilSize,t.sizeRestrictions;var a=t.positionRestrictions;t.stencilReference;var h=f({},o),r=f({},n);if(o&&n&&e.type!=="manipulateImage"){var c={width:0,height:0};r.width,s.width,v(s)>v(h)?(c.height=.8*s.height,c.width=c.height*v(h)):(c.width=.8*s.width,c.height=c.width*v(h));var l=it(r=W(r,h.width*s.width/(r.width*c.width)),i({visibleArea:r,type:"resize"}));r=W(r,l),l!==1&&(c.height/=l,c.width/=l),r=S(r=E(r,U(M(h),M(r))),i({visibleArea:r,type:"move"})),h=S(h,nt(L(r),a))}return{coordinates:h,visibleArea:r}}function pe(t){var e=t.event,i=t.coordinates,s=t.visibleArea,o=t.getAreaRestrictions,n=f({},s),a=f({},i);if(e.type==="setCoordinates"){var h=Math.max(0,a.width-n.width),r=Math.max(0,a.height-n.height);h>r?n=W(n,Math.min(a.width/n.width,N(n,o({visibleArea:n,type:"resize"})))):r>h&&(n=W(n,Math.min(a.height/n.height,N(n,o({visibleArea:n,type:"resize"}))))),n=S(n=E(n,et(V(a,L(n)))),o({visibleArea:n,type:"move"}))}return{visibleArea:n,coordinates:a}}function ve(t){var e=t.imageSize,i=t.visibleArea,s=t.coordinates,o=i||e;return{left:(i?i.left:0)+o.width/2-s.width/2,top:(i?i.top:0)+o.height/2-s.height/2}}function be(t){var e=t.imageSize,i=t.visibleArea,s=t.aspectRatio,o=t.sizeRestrictions,n=i||e,a=Math.min(s.maximum||1/0,Math.max(s.minimum||0,v(n))),h=n.width<n.height?{width:.8*n.width,height:.8*n.width/a}:{height:.8*n.height,width:.8*n.height*a};return $(f(f({},h),{aspectRatio:s,sizeRestrictions:o}))}function we(t){var e,i,s=t.imageSize,o=t.visibleArea,n=t.boundaries,a=t.aspectRatio,h=t.sizeRestrictions,r=t.stencilSize,c=o||s;return v(c)>v(n)?i=(e=r.height*c.height/n.height)*v(r):e=(i=r.width*c.width/n.width)/v(r),$({width:i,height:e,aspectRatio:a,sizeRestrictions:h})}function ye(t){var e=t.getAreaRestrictions,i=t.coordinates,s=t.imageSize,o=v(t.boundaries);if(i){var n={height:Math.max(i.height,s.height),width:Math.max(i.width,s.width)},a=Ft({width:v(n)>o?n.width:n.height*o,height:v(n)>o?n.width/o:n.height},At(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,L(f({left:0,top:0},s))),c={};return!r.left&&!r.right&&h.width<=s.width&&(c.left=0,c.right=s.width),!r.top&&!r.bottom&&h.height<=s.height&&(c.top=0,c.bottom=s.height),S(h,c)}var l=v(s);return a={height:l>o?s.height:s.width/o,width:l>o?s.height*o:s.width},{left:s.width/2-a.width/2,top:s.height/2-a.height/2,width:a.width,height:a.height}}function st(t,e){return Nt(t,L(e))}function ze(t){var e=t.event,i=t.coordinates,s=t.visibleArea,o=t.sizeRestrictions,n=t.getAreaRestrictions,a=t.positionRestrictions,h=t.adjustStencil,r=e.scale,c=e.move,l=f({},s),u=f({},i),d=1,m=1,g=r.factor&&Math.abs(r.factor-1)>.001;l=E(l,{left:c.left||0,top:c.top||0});var b={stencil:{minimum:Math.max(o.minWidth?o.minWidth/u.width:0,o.minHeight?o.minHeight/u.height:0),maximum:Math.min(o.maxWidth?o.maxWidth/u.width:1/0,o.maxHeight?o.maxHeight/u.height:1/0,N(u,a))},area:{maximum:N(l,n({visibleArea:l,type:"resize"}))}};r.factor&&g&&(r.factor<1?(m=Math.max(r.factor,b.stencil.minimum))>1&&(m=1):r.factor>1&&(m=Math.min(r.factor,Math.min(b.area.maximum,b.stencil.maximum)))<1&&(m=1)),m&&(l=W(l,m,r.center));var C=i.left-s.left,B=s.width+s.left-(i.width+i.left),G=i.top-s.top,at=s.height+s.top-(i.height+i.top);return l=S(l=E(l,V(l,{left:a.left!==void 0?a.left-C*m:void 0,top:a.top!==void 0?a.top-G*m:void 0,bottom:a.bottom!==void 0?a.bottom+at*m:void 0,right:a.right!==void 0?a.right+B*m:void 0})),n({visibleArea:l,type:"move"})),u.width=u.width*m,u.height=u.height*m,u.left=l.left+C*m,u.top=l.top+G*m,u=S(u,nt(L(l),a)),r.factor&&g&&h&&(r.factor>1?d=Math.min(b.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=E(l=S(l=W(l,d,r.factor>1?r.center:M(u)),n({visibleArea:l,type:"move"})),et(V(u,L(l)))))),{coordinates:u,visibleArea:l}}function Ae(t){var e=t.aspectRatio,i=t.getAreaRestrictions,s=t.coordinates,o=t.visibleArea,n=t.sizeRestrictions,a=t.positionRestrictions,h=t.imageSize,r=t.previousImageSize,c=t.angle,l=f({},s),u=f({},o),d=X(M(f({left:0,top:0},r)),c);return(l=f(f({},$({sizeRestrictions:n,aspectRatio:e,width:l.width,height:l.height})),X(M(l),c))).left-=d.left-h.width/2+l.width/2,l.top-=d.top-h.height/2+l.height/2,u=W(u,it(u,i({visibleArea:u,type:"resize"}))),{coordinates:l=S(l,a),visibleArea:u=S(u=E(u,U(M(l),M(s))),i({visibleArea:u,type:"move"}))}}function Re(t){var e=t.flip,i=t.previousFlip,s=t.rotate,o=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;if(l||u){var d=X({left:h.width/2,top:h.height/2},-s),m=X(M(r),-s),g=X({left:l?d.left-(m.left-d.left):m.left,top:u?d.top-(m.top-d.top):m.top},s);r=E(r,U(g,M(r))),m=X(M(c),-s),c=S(c=E(c,U(g=X({left:l?d.left-(m.left-d.left):m.left,top:u?d.top-(m.top-d.top):m.top},s),M(c))),o({visibleArea:c,type:"move"}))}return{coordinates:r,visibleArea:c}}function qt(t){var e=t.directions,i=t.coordinates,s=t.positionRestrictions,o=s===void 0?{}:s,n=t.sizeRestrictions,a=t.preserveRatio,h=t.compensate,r=f({},e),c=P(i,r).width,l=P(i,r).height;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)));var u=_(P(i,r),o);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=_(P(i,r),o));var d={width:1/0,height:1/0,left:1/0,right:1/0,top:1/0,bottom:1/0};if(H.forEach(function(b){var C=u[b];C&&r[b]&&(d[b]=Math.max(0,1-C/r[b]))}),a){var m=Math.min.apply(null,H.map(function(b){return d[b]}));m!==1/0&&H.forEach(function(b){r[b]*=m})}else H.forEach(function(b){d[b]!==1/0&&(r[b]*=d[b])});if(c=P(i,r).width,l=P(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){var g=Math.min(d.width,d.height);g!==1/0&&H.forEach(function(b){r[b]*=g})}else d.width!==1/0&&he.forEach(function(b){r[b]*=d.width}),d.height!==1/0&&ce.forEach(function(b){r[b]*=d.height});return r}function ot(t,e,i){return e==0&&i==0?t/2:e==0?0:i==0?t:t*Math.abs(e/(e+i))}var Me=D("vue-simple-handler"),Se=D("vue-simple-handler-wrapper"),Mt={name:"SimpleHandler",components:{HandlerWrapper:Bt},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},horizontalPosition:{type:String},verticalPosition:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){var t,e=(T(t={},this.horizontalPosition,!!this.horizontalPosition),T(t,this.verticalPosition,!!this.verticalPosition),T(t,"".concat(this.horizontalPosition,"-").concat(this.verticalPosition),!!(this.verticalPosition&&this.horizontalPosition)),T(t,"hover",this.hover),t);return{default:z(Me(e),this.defaultClass,this.hover&&this.hoverClass),wrapper:z(Se(e),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};Mt.render=function(t,e,i,s,o,n){var a=O("HandlerWrapper");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:I(function(){return[x("div",{class:n.classes.default},null,2)]}),_:1},8,["class","vertical-position","horizontal-position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var xe=D("vue-simple-line"),Ee=D("vue-simple-line-wrapper"),St={name:"SimpleLine",components:{LineWrapper:kt},props:{defaultClass:{type:String},hoverClass:{type:String},wrapperClass:{type:String},position:{type:String},disabled:{type:Boolean,default:!1}},data:function(){return{hover:!1}},computed:{classes:function(){return{root:z(xe(T({},this.position,!0)),this.defaultClass,this.hover&&this.hoverClass),wrapper:z(Ee(T({},this.position,!0)),this.wrapperClass)}}},methods:{onDrag:function(t){this.$emit("drag",t)},onEnter:function(){this.hover=!0},onLeave:function(){this.hover=!1},onDragEnd:function(){this.$emit("drag-end")}},emits:["drag","drag-end"]};St.render=function(t,e,i,s,o,n){var a=O("LineWrapper");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:I(function(){return[x("div",{class:n.classes.root},null,2)]}),_:1},8,["class","position","disabled","onDrag","onDragEnd","onEnter","onLeave"])};var xt=D("vue-bounding-box"),Ce=["east","west",null],Te=["south","north",null],_t={name:"BoundingBox",props:{width:{type:Number},height:{type:Number},transitions:{type:Object},handlers:{type:Object,default:function(){return{eastNorth:!0,north:!0,westNorth:!0,west:!0,westSouth:!0,south:!0,eastSouth:!0,east:!0}}},handlersComponent:{type:[Object,String],default:function(){return Mt}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}},lines:{type:Object,default:function(){return{west:!0,north:!0,east:!0,south:!0}}},linesComponent:{type:[Object,String],default:function(){return St}},linesClasses:{type:Object,default:function(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},resizable:{type:Boolean,default:!0}},data:function(){var t=[];return Ce.forEach(function(e){Te.forEach(function(i){if(e!==i){var s=Ht(e,i),o=s.name,n=s.classname;t.push({name:o,classname:n,verticalDirection:i,horizontalDirection:e})}})}),{points:t}},computed:{style:function(){var t={};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},classes:function(){var t=this.handlersClasses,e=this.handlersWrappersClasses,i=this.linesClasses,s=this.linesWrappersClasses;return{root:xt(),handlers:t,handlersWrappers:e,lines:i,linesWrappers:s}},lineNodes:function(){var t=this,e=[];return this.points.forEach(function(i){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})}),e},handlerNodes:function(){var t=this,e=[],i=this.width,s=this.height;return this.points.forEach(function(o){if(t.handlers[o.name]){var n={name:o.name,component:t.handlersComponent,class:z(t.classes.handlers.default,t.classes.handlers[o.name]),wrapperClass:z(t.classes.handlersWrappers.default,t.classes.handlersWrappers[o.name]),hoverClass:t.classes.handlers.hover,verticalDirection:o.verticalDirection,horizontalDirection:o.horizontalDirection,disabled:!t.resizable};if(i&&s){var a=o.horizontalDirection,h=o.verticalDirection,r=a==="east"?i:a==="west"?0:i/2,c=h==="south"?s:h==="north"?0:s/2;n.wrapperClass=xt("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))}else n.wrapperClass=xt("handler",T({},o.classname,!0));e.push(n)}}),e}},beforeMount:function(){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})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[]},methods:{onEnd:function(){this.$emit("resize-end")},onHandlerDrag:function(t,e,i){var s,o=t.shift(),n=o.left,a=o.top,h={left:0,right:0,top:0,bottom:0};e==="west"?h.left-=n:e==="east"&&(h.right+=n),i==="north"?h.top-=a:i==="south"&&(h.bottom+=a),!i&&e?s="width":i&&!e&&(s="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:s}))}},emits:["resize","resize-end"]};_t.render=function(t,e,i,s,o,n){return y(),w("div",{ref:"box",class:n.classes.root,style:n.style},[k(t.$slots,"default"),x("div",null,[(y(!0),w(ht,null,ct(n.lineNodes,function(a){return y(),w(Z(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){return n.onHandlerDrag(h,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[1]||(e[1]=function(h){return n.onEnd()})},null,8,["default-class","hover-class","wrapper-class","position","disabled","onDrag"])}),128))]),(y(!0),w(ht,null,ct(n.handlerNodes,function(a){return y(),w("div",{key:a.name,style:a.wrapperStyle,class:a.wrapperClass},[(y(),w(Z(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){return n.onHandlerDrag(h,a.horizontalDirection,a.verticalDirection)},onDragEnd:e[2]||(e[2]=function(h){return n.onEnd()})},null,8,["default-class","hover-class","wrapper-class","horizontal-position","vertical-position","disabled","onDrag"]))],6)}),128))],6)};var We=D("vue-draggable-area"),Gt={name:"DraggableArea",props:{movable:{type:Boolean,default:!0},activationDistance:{type:Number,default:20}},computed:{classnames:function(){return{default:We()}}},beforeMount:function(){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})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},mounted:function(){this.touches=[],this.touchStarted=!1},methods:{onTouchStart:function(t){if(t.cancelable){var e=this.movable&&t.touches.length===1;e&&(this.touches=Y(t.touches)),(this.touchStarted||e)&&(t.preventDefault(),t.stopPropagation())}},onTouchEnd:function(){this.touchStarted=!1,this.processEnd()},onTouchMove:function(t){this.touches.length>=1&&(this.touchStarted?(this.processMove(t,t.touches),t.preventDefault(),t.stopPropagation()):jt({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))},onMouseDown:function(t){if(this.movable&&t.button===0){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.initAnchor(e),t.stopPropagation()}},onMouseMove:function(t){this.touches.length&&(this.processMove(t,[{fake:!0,clientX:t.clientX,clientY:t.clientY}]),t.preventDefault&&t.cancelable&&t.preventDefault(),t.stopPropagation())},onMouseUp:function(){this.processEnd()},initAnchor:function(t){var e=this.$refs.container.getBoundingClientRect(),i=e.left,s=e.top;this.anchor={x:t.clientX-i,y:t.clientY-s}},processMove:function(t,e){var i=Y(e);if(this.touches.length){var s=this.$refs.container.getBoundingClientRect(),o=s.left,n=s.top;this.touches.length===1&&i.length===1&&this.$emit("move",new bt({left:i[0].clientX-(o+this.anchor.x),top:i[0].clientY-(n+this.anchor.y)}))}},processEnd:function(){this.touches.length&&this.$emit("move-end"),this.touches=[]}},emits:["move","move-end"]};Gt.render=function(t,e,i,s,o,n){return y(),w("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return n.onTouchStart&&n.onTouchStart.apply(n,arguments)}),onMousedown:e[2]||(e[2]=function(){return n.onMouseDown&&n.onMouseDown.apply(n,arguments)})},[k(t.$slots,"default")],544)};function Et(t){var e,i;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}}}function De(t){return new Promise(function(e,i){try{if(t)if(/^data:/i.test(t))e(function(r){r=r.replace(/^data:([^;]+);base64,/gim,"");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);return u}(t));else if(/^blob:/i.test(t)){var s=new FileReader;s.onload=function(r){e(r.target.result)},n=t,a=function(r){s.readAsArrayBuffer(r)},(h=new XMLHttpRequest).open("GET",n,!0),h.responseType="blob",h.onload=function(){this.status!=200&&this.status!==0||a(this.response)},h.send()}else{var o=new XMLHttpRequest;o.onreadystatechange=function(){o.readyState===4&&(o.status===200||o.status===0?e(o.response):i("Warning: could not load an image to parse its orientation"),o=null)},o.onprogress=function(){o.getResponseHeader("content-type")!=="image/jpeg"&&o.abort()},o.withCredentials=!1,o.open("GET",t,!0),o.responseType="arraybuffer",o.send(null)}else i("Error: the image is empty")}catch(r){i(r)}var n,a,h})}function Qt(t){var e=t.rotate,i=t.flip,s=t.scaleX,o=t.scaleY,n="";return n+=" rotate("+e+"deg) ",n+=" scaleX("+s*(i.horizontal?-1:1)+") ",n+=" scaleY("+o*(i.vertical?-1:1)+") "}function Oe(t){try{var e,i=new DataView(t),s=void 0,o=void 0,n=void 0,a=void 0;if(i.getUint8(0)===255&&i.getUint8(1)===216)for(var h=i.byteLength,r=2;r+1<h;){if(i.getUint8(r)===255&&i.getUint8(r+1)===225){n=r;break}r++}if(n&&(s=n+10,function(m,g,b){var C,B="";for(C=g,b+=g;C<b;C++)B+=String.fromCharCode(m.getUint8(C));return B}(i,n+4,4)==="Exif")){var c=i.getUint16(s);if(((o=c===18761)||c===19789)&&i.getUint16(s+2,o)===42){var l=i.getUint32(s+4,o);l>=8&&(a=s+l)}}if(a){for(var u=i.getUint16(a,o),d=0;d<u;d++)if(r=a+12*d+2,i.getUint16(r,o)===274){r+=8,e=i.getUint16(r,o),i.setUint16(r,1,o);break}}return e}catch{return null}}function Kt(t,e){var i=e.getBoundingClientRect(),s=i.left,o=i.top,n={left:0,top:0},a=0;return t.forEach(function(h){n.left+=(h.clientX-s)/t.length,n.top+=(h.clientY-o)/t.length}),t.forEach(function(h){a+=jt({x:n.left,y:n.top},{x:h.clientX-s,y:h.clientY-o})}),{centerMass:n,spread:a,count:t.length}}var Jt=Wt("o",{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(){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})},beforeUnmount:function(){window.removeEventListener("mouseup",this.onMouseUp),window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("touchmove",this.onTouchMove),window.removeEventListener("touchend",this.onTouchEnd)},created:function(){this.transforming=!1,this.debouncedProcessEnd=pt(this.processEnd),this.touches=[]},methods:{processMove:function(t,e){if(this.touches.length){if(this.touches.length===1&&e.length===1)this.$emit("move",new q({left:this.touches[0].clientX-e[0].clientX,top:this.touches[0].clientY-e[0].clientY}));else if(this.touches.length>1&&this.touchResize){var i=Kt(e,this.$refs.container),s=this.oldGeometricProperties;s.count===i.count&&s.count>1&&this.$emit("resize",new q({left:s.centerMass.left-i.centerMass.left,top:s.centerMass.top-i.centerMass.top},{factor:s.spread/i.spread,center:i.centerMass})),this.oldGeometricProperties=i}this.touches=e}},processEnd:function(){this.transforming&&(this.transforming=!1,this.$emit("transform-end"))},processStart:function(){this.transforming=!0,this.debouncedProcessEnd.clear()},processEvent:function(t){return this.eventsFilter?this.eventsFilter(t,this.transforming)!==!1:(t.preventDefault(),t.stopPropagation(),!0)},onTouchStart:function(t){if(t.cancelable&&(this.touchMove||this.touchResize&&t.touches.length>1)&&this.processEvent(t)){var e=this.$refs.container,i=e.getBoundingClientRect(),s=i.left,o=i.top,n=i.bottom,a=i.right;this.touches=Y(t.touches).filter(function(h){return h.clientX>s&&h.clientX<a&&h.clientY>o&&h.clientY<n}),this.oldGeometricProperties=Kt(this.touches,e)}},onTouchEnd:function(t){t.touches.length===0&&(this.touches=[],this.processEnd())},onTouchMove:function(t){var e=this;if(this.touches.length){var i=Y(t.touches).filter(function(s){return!s.identifier||e.touches.find(function(o){return o.identifier===s.identifier})});this.processEvent(t)&&(this.processMove(t,i),this.processStart())}},onMouseDown:function(t){if(this.mouseMove&&"buttons"in t&&t.buttons===1&&this.processEvent(t)){var e={fake:!0,clientX:t.clientX,clientY:t.clientY};this.touches=[e],this.processStart()}},onMouseMove:function(t){this.touches.length&&this.processEvent(t)&&this.processMove(t,[{clientX:t.clientX,clientY:t.clientY}])},onMouseUp:function(){this.touches=[],this.processEnd()},onWheel:function(t){if(this.wheelResize&&this.processEvent(t)){var e=this.$refs.container.getBoundingClientRect(),i=e.left,s=e.top,o=1+this.wheelResize.ratio*(a=t.deltaY||t.detail||t.wheelDelta,(h=+a)==0||$t(h)?h:h>0?1:-1),n={left:t.clientX-i,top:t.clientY-s};this.$emit("resize",new q({},{factor:o,center:n})),this.touches.length||this.debouncedProcessEnd()}var a,h}},emits:["resize","move","transform-end"]});Jt.render=function(t,e,i,s,o,n){return y(),w("div",{ref:"container",onTouchstart:e[1]||(e[1]=function(){return n.onTouchStart&&n.onTouchStart.apply(n,arguments)}),onMousedown:e[2]||(e[2]=function(){return n.onMouseDown&&n.onMouseDown.apply(n,arguments)}),onWheel:e[3]||(e[3]=function(){return n.onWheel&&n.onWheel.apply(n,arguments)})},[k(t.$slots,"default")],544)};var Ct={components:{TransformableImage:Jt},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"]};Ct.render=function(t,e,i,s,o,n){var a=O("transformable-image");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){return t.$emit("move",h)}),onResize:e[2]||(e[2]=function(h){return t.$emit("resize",h)})},{default:I(function(){return[k(t.$slots,"default")]}),_:3},8,["touch-move","touch-resize","mouse-move","wheel-resize"])};var rt=D("vue-preview"),te={props:{coordinates:{type:Object},transitions:{type:Object},image:{type:Object,default:function(){return{}}},imageClass:{type:String},width:{type:Number},height:{type:Number},fill:{type:Boolean}},data:function(){return{calculatedImageSize:{width:0,height:0},calculatedSize:{width:0,height:0}}},computed:{classes:function(){return{root:rt({fill:this.fill}),wrapper:rt("wrapper"),imageWrapper:rt("image-wrapper"),image:z(rt("image"),this.imageClass)}},style:function(){if(this.fill)return{};var t={};return this.width&&(t.width="".concat(this.size.width,"px")),this.height&&(t.height="".concat(this.size.height,"px")),this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},wrapperStyle:function(){var t={width:"".concat(this.size.width,"px"),height:"".concat(this.size.height,"px"),left:"calc(50% - ".concat(this.size.width/2,"px)"),top:"calc(50% - ".concat(this.size.height/2,"px)")};return this.transitions&&this.transitions.enabled&&(t.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),t},imageStyle:function(){if(this.coordinates&&this.image){var t=this.coordinates.width/this.size.width,e=p(p({rotate:0,flip:{horizontal:!1,vertical:!1}},this.image.transforms),{},{scaleX:1/t,scaleY:1/t}),i=this.imageSize.width,s=this.imageSize.height,o=Ut({width:i,height:s},e.rotate),n={width:"".concat(i,"px"),height:"".concat(s,"px"),left:"0px",top:"0px"},a={rotate:{left:(i-o.width)*e.scaleX/2,top:(s-o.height)*e.scaleY/2},scale:{left:(1-e.scaleX)*i/2,top:(1-e.scaleY)*s/2}};return n.transform=`translate(
|
|
20
|
-
`.concat(-this.coordinates.left/t-a.rotate.left-a.scale.left,"px,").concat(-this.coordinates.top/t-a.rotate.top-a.scale.top,"px) ")+Qt(e),this.transitions&&this.transitions.enabled&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),n}return{}},size:function(){return{width:this.width||this.calculatedSize.width,height:this.height||this.calculatedSize.height}},imageSize:function(){return{width:this.image.width||this.calculatedImageSize.width,height:this.image.height||this.calculatedImageSize.height}}},watch:{image:function(t){(t.width||t.height)&&this.onChangeImage()}},mounted:function(){var t=this;this.onChangeImage(),this.$refs.image.addEventListener("load",function(){t.refreshImage()}),window.addEventListener("resize",this.refresh),window.addEventListener("orientationchange",this.refresh)},unmounted:function(){window.removeEventListener("resize",this.refresh),window.removeEventListener("orientationchange",this.refresh)},methods:{refreshImage:function(){var t=this.$refs.image;this.calculatedImageSize.height=t.naturalHeight,this.calculatedImageSize.width=t.naturalWidth},refresh:function(){var t=this.$refs.root;this.width||(this.calculatedSize.width=t.clientWidth),this.height||(this.calculatedSize.height=t.clientHeight)},onChangeImage:function(){var t=this.$refs.image;t&&t.complete&&this.refreshImage(),this.refresh()}}};te.render=function(t,e,i,s,o,n){return y(),w("div",{ref:"root",class:n.classes.root,style:n.style},[x("div",{ref:"wrapper",class:n.classes.wrapper,style:n.wrapperStyle},[lt(x("img",{ref:"image",src:i.image&&i.image.src,class:n.classes.image,style:n.imageStyle},null,14,["src"]),[[ut,i.image&&i.image.src]])],6)],6)};var ee={components:{Preview:te},inheritAttrs:!1};ee.render=function(t,e,i,s,o,n){var a=O("preview");return y(),w(a,dt(t.$attrs,{fill:!0}),null,16)};var Tt=D("vue-rectangle-stencil"),ie={name:"RectangleStencil",components:{StencilPreview:ee,BoundingBox:_t,DraggableArea:Gt},props:{image:{type:Object},coordinates:{type:Object},stencilCoordinates:{type:Object},handlers:{type:Object},handlersComponent:{type:[Object,String],default:function(){return Mt}},lines:{type:Object},linesComponent:{type:[Object,String],default:function(){return St}},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(){return{}}},linesWrappersClasses:{type:Object,default:function(){return{}}},handlersClasses:{type:Object,default:function(){return{}}},handlersWrappersClasses:{type:Object,default:function(){return{}}}},data:function(){return{moving:!1,resizing:!1}},computed:{classes:function(){return{stencil:z(Tt({movable:this.movable,moving:this.moving,resizing:this.resizing}),this.moving&&this.movingClass,this.resizing&&this.resizingClass),preview:z(Tt("preview"),this.previewClass),boundingBox:z(Tt("bounding-box"),this.boundingBoxClass)}},style:function(){var t=this.stencilCoordinates,e=t.height,i=t.width,s=t.left,o=t.top,n={width:"".concat(i,"px"),height:"".concat(e,"px"),transform:"translate(".concat(s,"px, ").concat(o,"px)")};return this.transitions&&this.transitions.enabled&&(n.transition="".concat(this.transitions.time,"ms ").concat(this.transitions.timingFunction)),n}},methods:{onMove:function(t){this.$emit("move",t),this.moving=!0},onMoveEnd:function(){this.$emit("move-end"),this.moving=!1},onResize:function(t){this.$emit("resize",t),this.resizing=!0},onResizeEnd:function(){this.$emit("resize-end"),this.resizing=!1},aspectRatios:function(){return{minimum:this.aspectRatio||this.minAspectRatio,maximum:this.aspectRatio||this.maxAspectRatio}}},emits:["resize","resize-end","move","move-end"]};ie.render=function(t,e,i,s,o,n){var a=O("stencil-preview"),h=O("draggable-area"),r=O("bounding-box");return y(),w("div",{class:n.classes.stencil,style:n.style},[x(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:I(function(){return[x(h,{movable:i.movable,onMove:n.onMove,onMoveEnd:n.onMoveEnd},{default:I(function(){return[x(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"])]}),_:1},8,["movable","onMove","onMoveEnd"])]}),_: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)};var He=["transitions"],j=D("vue-advanced-cropper"),Le=Wt("f",{name:"Cropper",components:{BackgroundWrapper:Ct},props:{src:{type:String,default:null},stencilComponent:{type:[Object,String],default:function(){return ie}},backgroundWrapperComponent:{type:[Object,String],default:function(){return Ct}},stencilProps:{type:Object,default:function(){return{}}},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){return ue.indexOf(t)!==-1}},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){return!(typeof t=="string"&&t!=="fill"&&t!=="fit")}},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){var e=t.event,i=t.coordinates,s=t.aspectRatio,o=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};n.widthFrozen&&(r.left=0,r.right=0),n.heightFrozen&&(r.top=0,r.bottom=0),H.forEach(function(Q){c[Q]||(r[Q]=0)});var l=P(a,r=qt({coordinates:a,directions:r,sizeRestrictions:n,positionRestrictions:o})).width,u=P(a,r).height,d=h.preserveRatio?v(a):zt(l/u,s);if(d){var m=h.respectDirection;if(m||(m=a.width>=a.height||d===1?"width":"height"),m==="width"){var g=l/d-a.height;if(c.top&&c.bottom){var b=r.top,C=r.bottom;r.bottom=ot(g,C,b),r.top=ot(g,b,C)}else c.bottom?r.bottom=g:c.top?r.top=g:c.right?r.right=0:c.left&&(r.left=0)}else if(m==="height"){var B=a.width-u*d;if(c.left&&c.right){var G=r.left,at=r.right;r.left=-ot(B,G,at),r.right=-ot(B,at,G)}else c.left?r.left=-B:c.right?r.right=-B:c.top?r.top=0:c.bottom&&(r.bottom=0)}r=qt({directions:r,coordinates:a,sizeRestrictions:n,positionRestrictions:o,preserveRatio:!0,compensate:h.compensate})}return l=P(a,r).width,u=P(a,r).height,(d=h.preserveRatio?v(a):zt(l/u,s))&&Math.abs(d-l/u)>.001&&H.forEach(function(Q){c[Q]||(r[Q]=0)}),Rt({event:new bt({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:o})}},moveAlgorithm:{type:Function,default:Rt},initStretcher:{type:Function,default:function(t){var e=t.stretcher,i=t.imageSize,s=v(i);e.style.width=i.width+"px",e.style.height=e.clientWidth/s+"px",e.style.width=e.clientWidth+"px"}},fitCoordinates:{type:Function,default:function(t){var e=t.visibleArea,i=t.coordinates,s=t.aspectRatio,o=t.sizeRestrictions,n=t.positionRestrictions,a=f(f({},i),$({width:i.width,height:i.height,aspectRatio:s,sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minHeight:Math.min(e.height,o.minHeight),minWidth:Math.min(e.width,o.minWidth)}}));return a=S(a=E(a,U(M(i),M(a))),nt(L(e),n))}},fitVisibleArea:{type:Function,default:function(t){var e=t.visibleArea,i=t.boundaries,s=t.getAreaRestrictions,o=t.coordinates,n=f({},e);n.height=n.width/v(i),n.top+=(e.height-n.height)/2,(o.height-n.height>0||o.width-n.width>0)&&(n=W(n,Math.max(o.height/n.height,o.width/n.width)));var a=et(V(o,L(n=W(n,it(n,s({visibleArea:n,type:"resize"}))))));return n.width<o.width&&(a.left=0),n.height<o.height&&(a.top=0),n=S(n=E(n,a),s({visibleArea:n,type:"move"}))}},areaRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.visibleArea,i=t.boundaries,s=t.imageSize,o=t.imageRestriction,n=t.type,a={};return o==="fill-area"?a={left:0,top:0,right:s.width,bottom:s.height}:o==="fit-area"&&(v(i)>v(s)?(a={top:0,bottom:s.height},e&&n==="move"&&(e.width>s.width?(a.left=-(e.width-s.width)/2,a.right=s.width-a.left):(a.left=0,a.right=s.width))):(a={left:0,right:s.width},e&&n==="move"&&(e.height>s.height?(a.top=-(e.height-s.height)/2,a.bottom=s.height-a.top):(a.top=0,a.bottom=s.height)))),a}},sizeRestrictionsAlgorithm:{type:Function,default:function(t){return{minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight}}},positionRestrictionsAlgorithm:{type:Function,default:function(t){var e=t.imageSize,i={};return t.imageRestriction!=="none"&&(i={left:0,top:0,right:e.width,bottom:e.height}),i}}},data:function(){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:p({},Xt)}},computed:{image:function(){return{src:this.imageAttributes.src,width:this.imageAttributes.width,height:this.imageAttributes.height,transforms:this.imageTransforms}},imageTransforms:function(){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}},imageSize:function(){var t=function(e){return e*Math.PI/180}(this.imageTransforms.rotate);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))}},initialized:function(){return!!(this.visibleArea&&this.imageLoaded)},settings:function(){var t=vt(this.resizeImage,{touch:!0,wheel:{ratio:.1},adjustStencil:!0},{touch:!1,wheel:!1,adjustStencil:!1});return{moveImage:vt(this.moveImage,{touch:!0,mouse:!0},{touch:!1,mouse:!1}),resizeImage:t}},coefficient:function(){return this.visibleArea?this.visibleArea.width/this.boundaries.width:0},areaRestrictions:function(){return this.imageLoaded?this.areaRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction,boundaries:this.boundaries}):{}},transitionsOptions:function(){return{enabled:this.transitionsActive,timingFunction:"ease-in-out",time:350}},sizeRestrictions:function(){if(this.boundaries.width&&this.boundaries.height&&this.imageSize.width&&this.imageSize.height){var t=this.sizeRestrictionsAlgorithm({imageSize:this.imageSize,minWidth:A(this.minWidth)?0:tt(this.minWidth),minHeight:A(this.minHeight)?0:tt(this.minHeight),maxWidth:A(this.maxWidth)?1/0:tt(this.maxWidth),maxHeight:A(this.maxHeight)?1/0:tt(this.maxHeight)});if(t=function(s){var o=s.areaRestrictions,n=s.sizeRestrictions,a=s.boundaries,h=s.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});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));var c=At(o),l=Ft(a,c);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}({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){var e=this.getStencilSize(),i=At(this.getAreaRestrictions({visibleArea:this.visibleArea,type:"resize"}));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)}return t}return{minWidth:0,minHeight:0,maxWidth:0,maxHeight:0}},positionRestrictions:function(){return this.positionRestrictionsAlgorithm({imageSize:this.imageSize,imageRestriction:this.imageRestriction})},classes:function(){return{cropper:j(),image:z(j("image"),this.imageClass),stencil:j("stencil"),boundaries:z(j("boundaries"),this.boundariesClass),stretcher:z(j("stretcher")),background:z(j("background"),this.backgroundClass),foreground:z(j("foreground"),this.foregroundClass),imageWrapper:z(j("image-wrapper")),cropperWrapper:z(j("cropper-wrapper"))}},stencilCoordinates:function(){if(this.initialized){var t=this.coordinates,e=t.width,i=t.height,s=t.left,o=t.top;return{width:e/this.coefficient,height:i/this.coefficient,left:(s-this.visibleArea.left)/this.coefficient,top:(o-this.visibleArea.top)/this.coefficient}}return this.defaultCoordinates()},boundariesStyle:function(){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"};return this.imageLoaded||(t.opacity="0"),t},imageStyle:function(){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},s=p(p({},this.imageTransforms),{},{scaleX:this.imageTransforms.scaleX*(this.imageAttributes.width/t.width),scaleY:this.imageTransforms.scaleY*(this.imageAttributes.height/t.height)}),o={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)")+Qt(s)};return this.transitionsOptions.enabled&&(o.transition="".concat(this.transitionsOptions.time,"ms ").concat(this.transitionsOptions.timingFunction)),o}},watch:{src:function(){this.onChangeImage()},stencilComponent:function(){var t=this;this.$nextTick(function(){t.resetCoordinates(),t.runAutoZoom("setCoordinates"),t.onChange()})},minWidth:function(){this.onPropsChange()},maxWidth:function(){this.onPropsChange()},minHeight:function(){this.onPropsChange()},maxHeight:function(){this.onPropsChange()},imageRestriction:function(){this.reset()},stencilProps:function(t,e){["aspectRatio","minAspectRatio","maxAspectRatio"].find(function(i){return t[i]!==e[i]})&&this.$nextTick(this.onPropsChange)}},created:function(){this.debouncedUpdate=pt(this.update,this.debounce),this.debouncedDisableTransitions=pt(this.disableTransitions,this.transitionsOptions.time),this.awaiting=!1},mounted:function(){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)},unmounted:function(){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()},methods:{getResult:function(){var t=this.initialized?this.prepareResult(p({},this.coordinates)):this.defaultCoordinates(),e={rotate:this.imageTransforms.rotate%360,flip:p({},this.imageTransforms.flip)};if(this.src&&this.imageLoaded){var i=this;return{image:this.image,coordinates:t,visibleArea:this.visibleArea?p({},this.visibleArea):null,imageTransforms:e,get canvas(){return i.canvas?i.getCanvas():void 0}}}return{image:this.image,coordinates:t,visibleArea:this.visibleArea?p({},this.visibleArea):null,canvas:void 0,imageTransforms:e}},zoom:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=i.transitions,o=s===void 0||s;this.onManipulateImage(new q({},{factor:1/t,center:e}),{normalize:!1,transitions:o})},move:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=i.transitions,o=s===void 0||s;this.onManipulateImage(new q({left:t||0,top:e||0}),{normalize:!1,transitions:o})},setCoordinates:function(t){var e=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.autoZoom,o=s===void 0||s,n=i.transitions,a=n===void 0||n;this.$nextTick(function(){e.imageLoaded?(e.transitionsActive||(a&&e.enableTransitions(),e.coordinates=e.applyTransform(t),o&&e.runAutoZoom("setCoordinates"),a&&e.debouncedDisableTransitions()),e.onChange()):e.delayedTransforms=t})},refresh:function(){var t=this,e=this.$refs.image;if(this.src&&e)return this.initialized?this.updateVisibleArea().then(function(){t.onChange()}):this.resetVisibleArea().then(function(){t.onChange()})},reset:function(){var t=this;return this.resetVisibleArea().then(function(){t.onChange(!1)})},awaitRender:function(t){var e=this;this.awaiting||(this.awaiting=!0,this.$nextTick(function(){t(),e.awaiting=!1}))},prepareResult:function(t){return this.roundResult?function(e){var i=e.coordinates,s=e.sizeRestrictions,o=e.positionRestrictions,n={width:Math.round(i.width),height:Math.round(i.height),left:Math.round(i.left),top:Math.round(i.top)};return n.width>s.maxWidth?n.width=Math.floor(i.width):n.width<s.minWidth&&(n.width=Math.ceil(i.width)),n.height>s.maxHeight?n.height=Math.floor(i.height):n.height<s.minHeight&&(n.height=Math.ceil(i.height)),S(n,o)}(p(p({},this.getPublicProperties()),{},{positionRestrictions:st(this.positionRestrictions,this.visibleArea),coordinates:t})):t},processAutoZoom:function(t,e,i,s){var o=this.autoZoomAlgorithm;o||(o=this.stencilSize?fe:this.autoZoom?ge:pe);var n=o({event:{type:t,params:s},visibleArea:e,coordinates:i,boundaries:this.boundaries,aspectRatio:this.getAspectRatio(),positionRestrictions:this.positionRestrictions,getAreaRestrictions:this.getAreaRestrictions,sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize()});return p(p({},n),{},{changed:!Yt(n.visibleArea,e)||!Yt(n.coordinates,i)})},runAutoZoom:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.transitions,s=i!==void 0&&i,o=ne(e,He),n=this.processAutoZoom(t,this.visibleArea,this.coordinates,o),a=n.visibleArea,h=n.coordinates,r=n.changed;s&&r&&this.enableTransitions(),this.visibleArea=a,this.coordinates=h,s&&r&&this.debouncedDisableTransitions()},normalizeEvent:function(t){return function(e){var i=e.event,s=e.visibleArea,o=e.coefficient;if(i.type==="manipulateImage")return f(f({},i),{move:{left:i.move&&i.move.left?o*i.move.left:0,top:i.move&&i.move.top?o*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*o+s.left,top:i.scale.center.top*o+s.top}:null}});if(i.type==="resize"){var n=f(f({},i),{directions:f({},i.directions)});return H.forEach(function(h){n.directions[h]*=o}),n}if(i.type==="move"){var a=f(f({},i),{directions:f({},i.directions)});return le.forEach(function(h){a.directions[h]*=o}),a}return i}(p(p({},this.getPublicProperties()),{},{event:t}))},getCanvas:function(){if(this.$refs.canvas){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){var l=c.rotate,u=c.flip,d={width:r.naturalWidth,height:r.naturalHeight},m=Ut(d,l),g=h.getContext("2d");h.height=m.height,h.width=m.width,g.save();var b=X(M(f({left:0,top:0},d)),l);return g.translate(-(b.left-m.width/2),-(b.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}(this.$refs.sourceCanvas,e,this.imageTransforms):e,s=p({minWidth:0,minHeight:0,maxWidth:1/0,maxHeight:1/0,maxArea:this.maxCanvasSize,imageSmoothingEnabled:!0,imageSmoothingQuality:"high",fillColor:"transparent"},this.canvas),o=function(h){return h.find(function(r){return c=r,!Number.isNaN(parseFloat(c))&&isFinite(c);var c})},n=$({sizeRestrictions:{minWidth:o([s.width,s.minWidth])||0,minHeight:o([s.height,s.minHeight])||0,maxWidth:o([s.width,s.maxWidth])||1/0,maxHeight:o([s.height,s.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}});if(s.maxArea&&n.width*n.height>s.maxArea){var a=Math.sqrt(s.maxArea/(n.width*n.height));n={width:Math.round(a*n.width),height:Math.round(a*n.height)}}return function(h,r,c,l,u){h.width=l?l.width:c.width,h.height=l?l.height:c.height;var d=h.getContext("2d");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()));var m=c.left<0?-c.left:0,g=c.top<0?-c.top:0;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)}(t,i,this.coordinates,n,s),t}},update:function(){this.$emit("change",this.getResult())},applyTransform:function(t){var e=arguments.length>1&&arguments[1]!==void 0&&arguments[1],i=this.visibleArea&&e?de(this.sizeRestrictions,this.visibleArea):this.sizeRestrictions,s=this.visibleArea&&e?st(this.positionRestrictions,this.visibleArea):this.positionRestrictions;return me({transform:t,coordinates:this.coordinates,imageSize:this.imageSize,sizeRestrictions:i,positionRestrictions:s,aspectRatio:this.getAspectRatio(),visibleArea:this.visibleArea})},resetCoordinates:function(){var t=this;if(this.$refs.image){this.$refs.cropper,this.$refs.image;var e=this.defaultSize;e||(e=this.stencilSize?we:be);var i=this.sizeRestrictions;i.minWidth,i.minHeight,i.maxWidth,i.maxHeight;var s=F(e)?e({boundaries:this.boundaries,imageSize:this.imageSize,aspectRatio:this.getAspectRatio(),sizeRestrictions:this.sizeRestrictions,stencilSize:this.getStencilSize(),visibleArea:this.visibleArea}):e,o=this.defaultPosition||ve,n=[s,function(a){var h=a.coordinates;return p({},F(o)?o({coordinates:h,imageSize:t.imageSize,visibleArea:t.visibleArea}):t.defaultPosition)}];this.delayedTransforms&&n.push.apply(n,Y(Array.isArray(this.delayedTransforms)?this.delayedTransforms:[this.delayedTransforms])),this.coordinates=this.applyTransform(n,!0),this.delayedTransforms=null}},clearImage:function(){var t=this;this.imageLoaded=!1,setTimeout(function(){var e=t.$refs.stretcher;e&&(e.style.height="auto",e.style.width="auto"),t.coordinates=t.defaultCoordinates(),t.boundaries={width:0,height:0}},this.transitionTime)},enableTransitions:function(){this.transitions&&(this.transitionsActive=!0)},disableTransitions:function(){this.transitionsActive=!1},updateBoundaries:function(){var t=this,e=this.$refs.stretcher,i=this.$refs.cropper;return this.initStretcher({cropper:i,stretcher:e,imageSize:this.imageSize}),this.$nextTick().then(function(){var s={cropper:i,imageSize:t.imageSize};if(F(t.defaultBoundaries)?t.boundaries=t.defaultBoundaries(s):t.defaultBoundaries==="fit"?t.boundaries=function(o){var n=o.cropper,a=o.imageSize,h=n.clientHeight,r=n.clientWidth,c=h,l=a.width*h/a.height;return l>r&&(l=r,c=a.height*r/a.width),{width:l,height:c}}(s):t.boundaries=function(o){var n=o.cropper;return{width:n.clientWidth,height:n.clientHeight}}(s),!t.boundaries.width||!t.boundaries.height)throw new Error("It's impossible to fit the cropper in the current container")})},resetVisibleArea:function(){var t=this;return this.appliedImageTransforms=p(p({},this.defaultImageTransforms),{},{flip:p({},this.defaultImageTransforms.flip)}),this.updateBoundaries().then(function(){t.priority!=="visible-area"&&(t.visibleArea=null,t.resetCoordinates());var e,i,s,o,n,a,h=t.defaultVisibleArea||ye;t.visibleArea=F(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,s=e.boundaries,o=e.getAreaRestrictions,n=f({},i),a=v(s),n.width/n.height!==a&&(n.height=n.width/a),S(n,o({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")}).catch(function(){t.visibleArea=null})},updateVisibleArea:function(){var t=this;return this.updateBoundaries().then(function(){t.visibleArea=t.fitVisibleArea({imageSize:t.imageSize,boundaries:t.boundaries,visibleArea:t.visibleArea,coordinates:t.coordinates,getAreaRestrictions:t.getAreaRestrictions}),t.coordinates=t.fitCoordinates({visibleArea:t.visibleArea,coordinates:t.coordinates,aspectRatio:t.getAspectRatio(),positionRestrictions:t.positionRestrictions,sizeRestrictions:t.sizeRestrictions}),t.runAutoZoom("updateVisibleArea")}).catch(function(){t.visibleArea=null})},onChange:function(){var t=!(arguments.length>0&&arguments[0]!==void 0)||arguments[0];t&&this.debounce?this.debouncedUpdate():this.update()},onChangeImage:function(){var t,e=this;if(this.imageLoaded=!1,this.delayedTransforms=null,this.src){if(function(o){if(Pt(o))return!1;var n=window.location,a=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(o)||[],h={protocol:a[1]||"",host:a[2]||"",port:a[3]||""},r=function(c){return c.port||((c.protocol||n.protocol)==="http"?80:433)};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))}(this.src)){var i=A(this.crossOrigin)?this.canvas:this.crossOrigin;i===!0&&(i="anonymous"),this.imageAttributes.crossOrigin=i||null}if(this.checkOrientation){var s=(t=this.src,new Promise(function(o){De(t).then(function(n){var a=Oe(n);o(n?{source:t,arrayBuffer:n,orientation:a}:{source:t,arrayBuffer:null,orientation:null})}).catch(function(n){console.warn(n),o({source:t,arrayBuffer:null,orientation:null})})}));setTimeout(function(){s.then(e.onParseImage)},this.transitionTime)}else setTimeout(function(){e.onParseImage({source:e.src})},this.transitionTime)}else this.clearImage()},onFailLoadImage:function(){this.imageAttributes.src&&(this.clearImage(),this.$emit("error"))},onSuccessLoadImage:function(){var t=this,e=this.$refs.image;e&&!this.imageLoaded&&(this.imageAttributes.height=e.naturalHeight,this.imageAttributes.width=e.naturalWidth,this.imageLoaded=!0,this.resetVisibleArea().then(function(){t.$emit("ready"),t.onChange(!1)}))},onParseImage:function(t){var e=this,i=t.source,s=t.arrayBuffer,o=t.orientation;this.imageAttributes.revoke&&this.imageAttributes.src&&URL.revokeObjectURL(this.imageAttributes.src),this.imageAttributes.revoke=!1,s&&o&&o>1?Lt(i)||!Pt(i)?(this.imageAttributes.src=URL.createObjectURL(new Blob([s])),this.imageAttributes.revoke=!0):this.imageAttributes.src=function(n){for(var a=[],h=new Uint8Array(n);h.length>0;){var r=h.subarray(0,8192);a.push(String.fromCharCode.apply(null,Array.from?Array.from(r):r.slice())),h=h.subarray(8192)}return"data:image/jpeg;base64,"+btoa(a.join(""))}(s):this.imageAttributes.src=i,F(this.defaultTransforms)?this.appliedImageTransforms=Et(this.defaultTransforms()):J(this.defaultTransforms)?this.appliedImageTransforms=Et(this.defaultTransforms):this.appliedImageTransforms=function(n){var a=Et({});if(n)switch(n){case 2:a.flip.horizontal=!0;break;case 3:a.rotate=-180;break;case 4:a.flip.vertical=!0;break;case 5:a.rotate=90,a.flip.vertical=!0;break;case 6:a.rotate=90;break;case 7:a.rotate=90,a.flip.horizontal=!0;break;case 8:a.rotate=-90}return a}(o),this.defaultImageTransforms=p(p({},this.appliedImageTransforms),{},{flip:p({},this.appliedImageTransforms.flip)}),this.$nextTick(function(){var n=e.$refs.image;n&&n.complete&&(function(a){return!!a.naturalWidth}(n)?e.onSuccessLoadImage():e.onFailLoadImage())})},onResizeEnd:function(){this.runAutoZoom("resize",{transitions:!0})},onMoveEnd:function(){this.runAutoZoom("move",{transitions:!0})},onMove:function(t){var e=this;this.transitionsOptions.enabled||this.awaitRender(function(){e.coordinates=e.moveAlgorithm(p(p({},e.getPublicProperties()),{},{positionRestrictions:st(e.positionRestrictions,e.visibleArea),coordinates:e.coordinates,event:e.normalizeEvent(t)})),e.onChange()})},onResize:function(t){var e=this;this.transitionsOptions.enabled||this.stencilSize&&!this.autoZoom||this.awaitRender(function(){var i=e.sizeRestrictions,s=Math.min(e.coordinates.width,e.coordinates.height,20*e.coefficient);e.coordinates=e.resizeAlgorithm(p(p({},e.getPublicProperties()),{},{positionRestrictions:st(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,s),minHeight:Math.max(i.minHeight,s)},event:e.normalizeEvent(t)})),e.onChange(),e.ticking=!1})},onManipulateImage:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.transitionsOptions.enabled){var i=e.transitions,s=i!==void 0&&i,o=e.normalize,n=o===void 0||o;s&&this.enableTransitions();var a=ze(p(p({},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;this.visibleArea=h,this.coordinates=r,this.runAutoZoom("manipulateImage"),this.onChange(),s&&this.debouncedDisableTransitions()}},onPropsChange:function(){this.coordinates=this.applyTransform(this.coordinates,!0),this.onChange(!1)},getAreaRestrictions:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.visibleArea,i=t.type,s=i===void 0?"move":i;return this.areaRestrictionsAlgorithm({boundaries:this.boundaries,imageSize:this.imageSize,imageRestriction:this.imageRestriction,visibleArea:e,type:s})},getAspectRatio:function(t){var e,i,s=this.stencilProps,o=s.aspectRatio,n=s.minAspectRatio,a=s.maxAspectRatio;if(this.$refs.stencil&&this.$refs.stencil.aspectRatios){var h=this.$refs.stencil.aspectRatios();e=h.minimum,i=h.maximum}if(A(e)&&(e=A(o)?n:o),A(i)&&(i=A(o)?a:o),!t&&(A(e)||A(i))){var r=this.getStencilSize(),c=r?v(r):null;A(e)&&(e=It(c)?c:void 0),A(i)&&(i=It(c)?c:void 0)}return{minimum:e,maximum:i}},getStencilSize:function(){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,s=t.aspectRatio,zt(v(o=F(i)?i({boundaries:e,aspectRatio:s}):i),s)&&(o=$({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:s.minimum,maximum:s.maximum}})),(o.width>e.width||o.height>e.height)&&(o=$({sizeRestrictions:{maxWidth:e.width,maxHeight:e.height,minWidth:0,minHeight:0},width:o.width,height:o.height,aspectRatio:{minimum:v(o),maximum:v(o)}})),o;var t,e,i,s,o},getPublicProperties:function(){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}},defaultCoordinates:function(){return p({},Xt)},flip:function(t,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=i.transitions,o=s===void 0||s;if(!this.transitionsActive){o&&this.enableTransitions();var n=p({},this.imageTransforms.flip),a=Re({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;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(),o&&this.debouncedDisableTransitions()}},rotate:function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=e.transitions,s=i===void 0||i;if(!this.transitionsActive){s&&this.enableTransitions();var o=p({},this.imageSize);this.appliedImageTransforms.rotate+=t;var n=Ae({visibleArea:this.visibleArea,coordinates:this.coordinates,previousImageSize:o,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);a=r.visibleArea,h=r.coordinates,this.visibleArea=a,this.coordinates=h,this.onChange(),s&&this.debouncedDisableTransitions()}}},emits:["change","error","ready"]}),Pe={key:0,ref:"canvas",style:{display:"none"}},Ie={key:1,ref:"sourceCanvas",style:{display:"none"}};Le.render=function(t,e,i,s,o,n){return y(),w("div",{ref:"cropper",class:n.classes.cropper},[x("div",{ref:"stretcher",class:n.classes.stretcher},null,2),x("div",{class:n.classes.boundaries,style:n.boundariesStyle},[(y(),w(Z(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:I(function(){return[x("div",{class:n.classes.background,style:n.boundariesStyle},null,6),x("div",{class:n.classes.imageWrapper},[x("img",{ref:"image",crossorigin:o.imageAttributes.crossOrigin,src:o.imageAttributes.src,class:n.classes.image,style:n.imageStyle,onMousedown:e[1]||(e[1]=Dt(function(){},["prevent"]))},null,46,["crossorigin","src"])],2),x("div",{class:n.classes.foreground,style:n.boundariesStyle},null,6),lt((y(),w(Z(i.stencilComponent),dt({ref:"stencil",image:n.image,coordinates:o.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"])),[[ut,o.imageLoaded]]),i.canvas?(y(),w("canvas",Pe,null,512)):mt("",!0),i.canvas?(y(),w("canvas",Ie,null,512)):mt("",!0)]}),_:1},8,["class","wheel-resize","touch-resize","touch-move","mouse-move","onMove","onResize"]))],6)],2)}}}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register([],function(f,g){"use strict";return{execute:function(){f("k",y);for(var o=f("b",{8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}),i={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},n=typeof navigator<"u"&&/Mac/.test(navigator.platform),c=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),r=0;r<10;r++)o[48+r]=o[96+r]=String(r);for(var r=1;r<=24;r++)o[r+111]="F"+r;for(var r=65;r<=90;r++)o[r]=String.fromCharCode(r+32),i[r]=String.fromCharCode(r);for(var a in o)i.hasOwnProperty(a)||(i[a]=o[a]);function y(t){var s=n&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||c&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",e=!s&&t.key||(t.shiftKey?i:o)[t.keyCode]||t.key||"Unidentified";return e=="Esc"&&(e="Escape"),e=="Del"&&(e="Delete"),e=="Left"&&(e="ArrowLeft"),e=="Up"&&(e="ArrowUp"),e=="Right"&&(e="ArrowRight"),e=="Down"&&(e="ArrowDown"),e}}}});
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
var a = {
|
|
2
|
-
8: "Backspace",
|
|
3
|
-
9: "Tab",
|
|
4
|
-
10: "Enter",
|
|
5
|
-
12: "NumLock",
|
|
6
|
-
13: "Enter",
|
|
7
|
-
16: "Shift",
|
|
8
|
-
17: "Control",
|
|
9
|
-
18: "Alt",
|
|
10
|
-
20: "CapsLock",
|
|
11
|
-
27: "Escape",
|
|
12
|
-
32: " ",
|
|
13
|
-
33: "PageUp",
|
|
14
|
-
34: "PageDown",
|
|
15
|
-
35: "End",
|
|
16
|
-
36: "Home",
|
|
17
|
-
37: "ArrowLeft",
|
|
18
|
-
38: "ArrowUp",
|
|
19
|
-
39: "ArrowRight",
|
|
20
|
-
40: "ArrowDown",
|
|
21
|
-
44: "PrintScreen",
|
|
22
|
-
45: "Insert",
|
|
23
|
-
46: "Delete",
|
|
24
|
-
59: ";",
|
|
25
|
-
61: "=",
|
|
26
|
-
91: "Meta",
|
|
27
|
-
92: "Meta",
|
|
28
|
-
106: "*",
|
|
29
|
-
107: "+",
|
|
30
|
-
108: ",",
|
|
31
|
-
109: "-",
|
|
32
|
-
110: ".",
|
|
33
|
-
111: "/",
|
|
34
|
-
144: "NumLock",
|
|
35
|
-
145: "ScrollLock",
|
|
36
|
-
160: "Shift",
|
|
37
|
-
161: "Shift",
|
|
38
|
-
162: "Control",
|
|
39
|
-
163: "Control",
|
|
40
|
-
164: "Alt",
|
|
41
|
-
165: "Alt",
|
|
42
|
-
173: "-",
|
|
43
|
-
186: ";",
|
|
44
|
-
187: "=",
|
|
45
|
-
188: ",",
|
|
46
|
-
189: "-",
|
|
47
|
-
190: ".",
|
|
48
|
-
191: "/",
|
|
49
|
-
192: "`",
|
|
50
|
-
219: "[",
|
|
51
|
-
220: "\\",
|
|
52
|
-
221: "]",
|
|
53
|
-
222: "'"
|
|
54
|
-
}, t = {
|
|
55
|
-
48: ")",
|
|
56
|
-
49: "!",
|
|
57
|
-
50: "@",
|
|
58
|
-
51: "#",
|
|
59
|
-
52: "$",
|
|
60
|
-
53: "%",
|
|
61
|
-
54: "^",
|
|
62
|
-
55: "&",
|
|
63
|
-
56: "*",
|
|
64
|
-
57: "(",
|
|
65
|
-
59: ":",
|
|
66
|
-
61: "+",
|
|
67
|
-
173: "_",
|
|
68
|
-
186: ":",
|
|
69
|
-
187: "+",
|
|
70
|
-
188: "<",
|
|
71
|
-
189: "_",
|
|
72
|
-
190: ">",
|
|
73
|
-
191: "?",
|
|
74
|
-
192: "~",
|
|
75
|
-
219: "{",
|
|
76
|
-
220: "|",
|
|
77
|
-
221: "}",
|
|
78
|
-
222: '"'
|
|
79
|
-
}, n = typeof navigator < "u" && /Mac/.test(navigator.platform), y = typeof navigator < "u" && /MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
|
|
80
|
-
for (var r = 0; r < 10; r++) a[48 + r] = a[96 + r] = String(r);
|
|
81
|
-
for (var r = 1; r <= 24; r++) a[r + 111] = "F" + r;
|
|
82
|
-
for (var r = 65; r <= 90; r++)
|
|
83
|
-
a[r] = String.fromCharCode(r + 32), t[r] = String.fromCharCode(r);
|
|
84
|
-
for (var i in a) t.hasOwnProperty(i) || (t[i] = a[i]);
|
|
85
|
-
function s(o) {
|
|
86
|
-
var f = n && o.metaKey && o.shiftKey && !o.ctrlKey && !o.altKey || y && o.shiftKey && o.key && o.key.length == 1 || o.key == "Unidentified", e = !f && o.key || (o.shiftKey ? t : a)[o.keyCode] || o.key || "Unidentified";
|
|
87
|
-
return e == "Esc" && (e = "Escape"), e == "Del" && (e = "Delete"), e == "Left" && (e = "ArrowLeft"), e == "Up" && (e = "ArrowUp"), e == "Right" && (e = "ArrowRight"), e == "Down" && (e = "ArrowDown"), e;
|
|
88
|
-
}
|
|
89
|
-
export {
|
|
90
|
-
a as b,
|
|
91
|
-
s as k
|
|
92
|
-
};
|
|
File without changes
|
|
File without changes
|