jmapcloud-ng 2.0.5-qa.2 → 2.0.5-qa.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (108) hide show
  1. package/package.json +6 -1
  2. package/{index.html.example → public/ng/build/index.html} +5 -10
  3. package/{app/jmapcloud-ng/ng/public/ng/data-grid.DHLtdTlp.js → public/ng/data-grid.Dnwo5PC_.js} +1 -1
  4. package/{app/jmapcloud-ng/ng/public/ng/index.BjbLBYaP.js → public/ng/index.Cbxg_BVX.js} +2 -2
  5. package/{app/jmapcloud-ng/ng/public/ng/start.core.C14_JChb.js → public/ng/start.core.B_jaR5Mw.js} +1 -1
  6. package/{app/jmapcloud-ng/ng/public/ng/start.core.DUi3eM4J.js → public/ng/start.core.CCnPgFVN.js} +1 -1
  7. package/public/ng/{ui-full.BUbgBx9Q.js → ui-full.B0sEpQTp.js} +2 -2
  8. package/public/ng-core/build/index.html +52 -0
  9. package/public/ng-core/{index.57e955f5-473f-4f49-9da9-0b5cbacd1cad.js → index.b9695d9d-9b3b-4026-bc64-87bc9d87236e.js} +2 -2
  10. package/app/jmapcloud-ng/ng/public/ARROW.9V9mH5sV.png +0 -0
  11. package/app/jmapcloud-ng/ng/public/MaterialIcons-Regular.BjVsc-s9.woff2 +0 -0
  12. package/app/jmapcloud-ng/ng/public/MaterialIcons-Regular.Bnsxcfr1.woff +0 -0
  13. package/app/jmapcloud-ng/ng/public/MaterialIcons-Regular.N21pKt8_.ttf +0 -0
  14. package/app/jmapcloud-ng/ng/public/MaterialIcons-Regular.rDPjWPoz.eot +0 -0
  15. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-300.BOtJevCE.woff +0 -0
  16. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-300.CU1HK-bZ.ttf +0 -0
  17. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-300.DLZg2Aqw.woff2 +0 -0
  18. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-300.f3X_qAHv.eot +0 -0
  19. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-300italic.Cq3R63xm.eot +0 -0
  20. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-300italic.D7H-NYlV.woff +0 -0
  21. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-300italic.IFGWg-1n.ttf +0 -0
  22. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-300italic.egA3zdlg.woff2 +0 -0
  23. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-500.C4YXkooW.ttf +0 -0
  24. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-500.CD6t94O0.woff2 +0 -0
  25. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-500.CxOfqZC2.eot +0 -0
  26. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-500.CzPrU5vz.woff +0 -0
  27. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-500italic.57LLgqjl.woff +0 -0
  28. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-500italic.B6ytA4Ll.ttf +0 -0
  29. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-500italic.BlgFPUrR.woff2 +0 -0
  30. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-500italic.Ckyh_717.eot +0 -0
  31. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-700.BRgY-mcC.eot +0 -0
  32. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-700.Bit82amp.ttf +0 -0
  33. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-700.BpBhuUVz.woff +0 -0
  34. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-700.DC603mJ6.woff2 +0 -0
  35. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-700italic.Ca79JvF0.woff +0 -0
  36. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-700italic.ClCyBg9U.woff2 +0 -0
  37. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-700italic.D8ZJZUNK.eot +0 -0
  38. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-700italic.DqT2IX-q.ttf +0 -0
  39. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-italic.1jYUkYRv.woff2 +0 -0
  40. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-italic.BEAJKPKF.ttf +0 -0
  41. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-italic.BWD2mhUL.woff +0 -0
  42. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-italic.DjOUzQd-.eot +0 -0
  43. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-regular.B3onXd7t.ttf +0 -0
  44. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-regular.Ca4dJCbb.woff2 +0 -0
  45. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-regular.D-IiuhnY.eot +0 -0
  46. package/app/jmapcloud-ng/ng/public/barlow-v5-latin-ext_latin-regular.DLT4q60S.woff +0 -0
  47. package/app/jmapcloud-ng/ng/public/default.Ce_Z_JPs.jpeg +0 -0
  48. package/app/jmapcloud-ng/ng/public/favicon_dark.BF6q4K7_.ico +0 -0
  49. package/app/jmapcloud-ng/ng/public/favicon_light.P7XKPcl8.ico +0 -0
  50. package/app/jmapcloud-ng/ng/public/index.js +0 -190
  51. package/app/jmapcloud-ng/ng/public/loading.BSbPtkHb.gif +0 -0
  52. package/app/jmapcloud-ng/ng/public/logo.hwi8NCH2.png +0 -0
  53. package/app/jmapcloud-ng/ng/public/ng/ARROW.9V9mH5sV.png +0 -0
  54. package/app/jmapcloud-ng/ng/public/ng/MaterialIcons-Regular.BjVsc-s9.woff2 +0 -0
  55. package/app/jmapcloud-ng/ng/public/ng/MaterialIcons-Regular.Bnsxcfr1.woff +0 -0
  56. package/app/jmapcloud-ng/ng/public/ng/MaterialIcons-Regular.N21pKt8_.ttf +0 -0
  57. package/app/jmapcloud-ng/ng/public/ng/MaterialIcons-Regular.rDPjWPoz.eot +0 -0
  58. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-300.BOtJevCE.woff +0 -0
  59. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-300.CU1HK-bZ.ttf +0 -0
  60. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-300.DLZg2Aqw.woff2 +0 -0
  61. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-300.f3X_qAHv.eot +0 -0
  62. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-300italic.Cq3R63xm.eot +0 -0
  63. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-300italic.D7H-NYlV.woff +0 -0
  64. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-300italic.IFGWg-1n.ttf +0 -0
  65. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-300italic.egA3zdlg.woff2 +0 -0
  66. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-500.C4YXkooW.ttf +0 -0
  67. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-500.CD6t94O0.woff2 +0 -0
  68. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-500.CxOfqZC2.eot +0 -0
  69. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-500.CzPrU5vz.woff +0 -0
  70. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-500italic.57LLgqjl.woff +0 -0
  71. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-500italic.B6ytA4Ll.ttf +0 -0
  72. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-500italic.BlgFPUrR.woff2 +0 -0
  73. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-500italic.Ckyh_717.eot +0 -0
  74. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-700.BRgY-mcC.eot +0 -0
  75. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-700.Bit82amp.ttf +0 -0
  76. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-700.BpBhuUVz.woff +0 -0
  77. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-700.DC603mJ6.woff2 +0 -0
  78. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-700italic.Ca79JvF0.woff +0 -0
  79. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-700italic.ClCyBg9U.woff2 +0 -0
  80. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-700italic.D8ZJZUNK.eot +0 -0
  81. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-700italic.DqT2IX-q.ttf +0 -0
  82. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-italic.1jYUkYRv.woff2 +0 -0
  83. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-italic.BEAJKPKF.ttf +0 -0
  84. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-italic.BWD2mhUL.woff +0 -0
  85. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-italic.DjOUzQd-.eot +0 -0
  86. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-regular.B3onXd7t.ttf +0 -0
  87. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-regular.Ca4dJCbb.woff2 +0 -0
  88. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-regular.D-IiuhnY.eot +0 -0
  89. package/app/jmapcloud-ng/ng/public/ng/barlow-v5-latin-ext_latin-regular.DLT4q60S.woff +0 -0
  90. package/app/jmapcloud-ng/ng/public/ng/default.Ce_Z_JPs.jpeg +0 -0
  91. package/app/jmapcloud-ng/ng/public/ng/favicon_dark.BF6q4K7_.ico +0 -0
  92. package/app/jmapcloud-ng/ng/public/ng/favicon_light.P7XKPcl8.ico +0 -0
  93. package/app/jmapcloud-ng/ng/public/ng/html2canvas.esm.BcSe2Xmo.js +0 -1
  94. package/app/jmapcloud-ng/ng/public/ng/index.es.DITumWjq.js +0 -1
  95. package/app/jmapcloud-ng/ng/public/ng/jspdf.es.min.DHuu4hbj.js +0 -2
  96. package/app/jmapcloud-ng/ng/public/ng/loading.BSbPtkHb.gif +0 -0
  97. package/app/jmapcloud-ng/ng/public/ng/logo.hwi8NCH2.png +0 -0
  98. package/app/jmapcloud-ng/ng/public/ng/purify.es.IvdpZz4l.js +0 -1
  99. package/app/jmapcloud-ng/ng/public/ng/shared-helpers.D1OtmvKm.js +0 -1
  100. package/app/jmapcloud-ng/ng/public/ng/start.ewrrhV85.css +0 -1
  101. package/app/jmapcloud-ng/ng/public/ng/ui-full.BUbgBx9Q.js +0 -190
  102. package/app/jmapcloud-ng/ng/public/ng/ui-full.CP0fGfFR.css +0 -1
  103. package/app/jmapcloud-ng/ng/public/ng/vite-preload-helper.CmrNfjeq.js +0 -1
  104. package/app/jmapcloud-ng/ng/public/ng/xlsx.Bf_Vk0xj.js +0 -1
  105. package/public/ng/data-grid.DHLtdTlp.js +0 -1
  106. package/public/ng/index.BjbLBYaP.js +0 -2
  107. package/public/ng/start.core.C14_JChb.js +0 -1
  108. package/public/ng/start.core.DUi3eM4J.js +0 -1
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["shared-helpers.D1OtmvKm.js","vite-preload-helper.CmrNfjeq.js","ui-full.CP0fGfFR.css","start.core.DUi3eM4J.js","start.core.C14_JChb.js","start.ewrrhV85.css"])))=>i.map(i=>d[i]);
2
- import{_}from"./vite-preload-helper.CmrNfjeq.js";import{P as E,r as S}from"./shared-helpers.D1OtmvKm.js";!function polyfill(){const _=document.createElement("link").relList;if(!(_&&_.supports&&_.supports("modulepreload"))){for(const _ of document.querySelectorAll('link[rel="modulepreload"]'))processPreload(_);new MutationObserver(_=>{for(const E of _)if("childList"===E.type)for(const _ of E.addedNodes)"LINK"===_.tagName&&"modulepreload"===_.rel&&processPreload(_)}).observe(document,{childList:!0,subtree:!0})}function processPreload(_){if(_.ep)return;_.ep=!0;const E=function getFetchOpts(_){const E={};return _.integrity&&(E.integrity=_.integrity),_.referrerPolicy&&(E.referrerPolicy=_.referrerPolicy),"use-credentials"===_.crossOrigin?E.credentials="include":"anonymous"===_.crossOrigin?E.credentials="omit":E.credentials="same-origin",E}(_);fetch(_.href,E)}}();let T=null,A=!1;function triggerUiFullPrefetch(){A||(A=!0,null!==T&&T())}const R="ngUi",O="full",I="minimal",L=[O,I];function asValidMode(_){return"string"==typeof _&&L.includes(_)?_:void 0}var N=(_=>(_.EXTERNAL_REDUCER_REGISTERED="EXTERNAL_REDUCER_REGISTERED",_.EXTERNAL_REDUCER_UNREGISTERED="EXTERNAL_REDUCER_UNREGISTERED",_.GEOLOCATION_SET_IS_SUPPORTED="GEOLOCATION_SET_IS_SUPPORTED",_.GEOLOCATION_SET_IS_ENABLED="GEOLOCATION_SET_IS_ENABLED",_.GEOLOCATION_SET_IS_DISPLAYED="GEOLOCATION_SET_IS_DISPLAYED",_.GEOLOCATION_SET_POSITION="GEOLOCATION_SET_POSITION",_.PROJECT_SET_IS_LOADING="PROJECT_SET_IS_LOADING",_.PROJECT_SET="PROJECT_SET",_.PROJECT_SET_CHANGE_DISABLED="PROJECT_SET_CHANGE_DISABLED",_.PROJECT_SET_ALL="PROJECT_SET_ALL",_.PROJECT_SET_LOADING_ERROR="PROJECT_SET_LOADING_ERROR",_.PROJECT_SET_IMAGE="PROJECT_SET_IMAGE",_.PROJECT_SET_HAS_REQUESTED_TARGET="PROJECT_SET_HAS_REQUESTED_TARGET",_.FORM_RESET="FORM_RESET",_.FORM_SET_IS_LOADING_LAYER="FORM_SET_IS_LOADING_LAYER",_.FORM_SET_HAS_LOADING_LAYER_ERROR="FORM_SET_HAS_LOADING_LAYER_ERROR",_.FORM_SET_FORMS_METADATA="FORM_SET_FORMS_METADATA",_.FORM_SET_FORM_VALUES="FORM_SET_FORM_VALUES",_.FORM_SET_ATTRIBUTE_AND_EXTERNAL_FORM="FORM_SET_ATTRIBUTE_AND_EXTERNAL_FORM",_.FORM_PUSH_OR_POP_SUB_FORM="FORM_PUSH_OR_POP_SUB_FORM",_.FORM_ADD_ATTRIBUTE_FORM_ELEMENT="FORM_ADD_ATTRIBUTE_FORM_ELEMENT",_.FORM_ADD_DATABASE_FORM_ENTRIES="FORM_ADD_DATABASE_FORM_ENTRIES",_.FORM_UPDATE_ATTRIBUTE_FORM_ELEMENTS="FORM_UPDATE_ATTRIBUTE_FORM_ELEMENTS",_.FORM_SET_IS_SUBMITTING="FORM_SET_IS_SUBMITTING",_.FORM_ADD_SUBMIT_ERRORS="FORM_ADD_SUBMIT_ERRORS",_.FORM_CLEAN_SUBMIT_ERRORS="FORM_CLEAN_SUBMIT_ERRORS",_.FORM_SET_ATTRIBUTE_FORM_STATE="FORM_SET_ATTRIBUTE_FORM_STATE",_.FORM_SET_EXTERNAL_FORM_STATE="FORM_SET_EXTERNAL_FORM_STATE",_.FORM_SET_SUB_FORM_STATE="FORM_SET_SUB_FORM_STATE",_.FORM_SET_ACTIVE_TAB_INDEX="FORM_SET_ACTIVE_TAB_INDEX",_.FORM_SET_PHOTOS="FORM_SET_PHOTOS",_.FORM_SET_PHOTOS_HAS_LOADING_ERROR="FORM_SET_PHOTOS_HAS_LOADING_ERROR",_.FORM_ADD_PHOTO="FORM_ADD_PHOTO",_.FORM_REMOVE_PHOTO="FORM_REMOVE_PHOTO",_.FORM_UPDATE_PHOTO="FORM_UPDATE_PHOTO",_.FORM_SET_SUBFORMS_DATA="FORM_SET_SUBFORMS_DATA",_.LAYER_SET_VISIBLE_ZOOMS="LAYER_SET_VISIBLE_ZOOMS",_.LAYER_SET_IS_LOADING="LAYER_SET_IS_LOADING",_.LAYER_SET_LOADING_ERROR="LAYER_SET_LOADING_ERROR",_.LAYER_SET_TREE_AND_METADATA_SCHEMA="LAYER_SET_TREE_AND_METADATA_SCHEMA",_.LAYER_REORDER="LAYER_REORDER",_.LAYER_SET_EXTENT="LAYER_SET_EXTENT",_.LAYER_SET_DATA_SOURCE_ATTRIBUTES="LAYER_SET_DATA_SOURCE_ATTRIBUTES",_.LAYER_SET_VECTOR_LAYER_IDS="LAYER_SET_VECTOR_LAYER_IDS",_.LAYER_SET_LAYER_SELECTABILITY="LAYER_SET_LAYER_SELECTABILITY",_.LAYER_SET_LAYERS_SELECTABILITY="LAYER_SET_LAYERS_SELECTABILITY",_.LAYER_SET_LAYER_VISIBILITY="LAYER_SET_LAYER_VISIBILITY",_.LAYER_SET_LAYERS_VISIBILITY="LAYER_SET_LAYERS_VISIBILITY",_.LAYER_SET_THEMATIC_VISIBILITY="LAYER_SET_THEMATIC_VISIBILITY",_.LAYER_SET_HIDDEN_THEMATIC_CATEGORY_INDEXES="LAYER_SET_HIDDEN_THEMATIC_CATEGORY_INDEXES",_.LAYER_SET_HIDDEN_THEMATIC_CONDITION_IDS="LAYER_SET_HIDDEN_THEMATIC_CONDITION_IDS",_.LAYER_SET_THEMATICS_VISIBILITY="LAYER_SET_THEMATICS_VISIBILITY",_.LAYER_SET_LAYER_GROUP_EXPANSION="LAYER_SET_LAYER_GROUP_EXPANSION",_.LAYER_SET_LAYER_GROUPS_EXPANSION="LAYER_SET_LAYER_GROUPS_EXPANSION",_.LAYER_DELETE="LAYER_DELETE",_.LAYER_ADD_USER_STYLE_RULE="LAYER_ADD_USER_STYLE_RULE",_.LAYER_DELETE_STYLE_RULE="LAYER_DELETE_STYLE_RULE",_.LAYER_ADD_STYLE_PREVIEWS="LAYER_ADD_STYLE_PREVIEWS",_.LAYER_DELETE_STYLE_PREVIEWS="LAYER_DELETE_STYLE_PREVIEWS",_.USER_LOGIN="USER_LOGIN",_.USER_LOGOUT="USER_LOGOUT",_.USER_SET_FULL_NAME="USER_SET_FULL_NAME",_.USER_SET_ANONYMOUS_SESSION="USER_SET_ANONYMOUS_SESSION",_.USER_SET_LOGIN_STATUS="USER_SET_LOGIN_STATUS",_.USER_STOP_LOGIN="USER_STOP_LOGIN",_.USER_START_LOGIN="USER_START_LOGIN",_.USER_START_SESSION_RELOAD="USER_SESSION_START_RELOAD",_.USER_STOP_SESSION_RELOAD="USER_SESSION_STOP_RELOAD",_.USER_START_LOGGING_INTO_ORGANIZATION="USER_START_LOGGING_INTO_ORGANIZATION",_.USER_STOP_LOGGING_INTO_ORGANIZATION="USER_STOP_LOGGING_INTO_ORGANIZATION",_.USER_ADD_INFO="USER_ADD_INFO",_.USER_REMOVE_INFO="USER_REMOVE_INFO",_.USER_REFRESH_TOKEN="USER_REFRESH_TOKEN",_.USER_REFRESH_ACCESS_TOKEN="USER_REFRESH_ACCESS_TOKEN",_.USER_SET_SESSION_DATA="USER_SET_SESSION_DATA",_.USER_SET_IDENTITY_PROVIDER_TYPE="USER_SET_IDENTITY_PROVIDER_TYPE",_.APP_USER_SET_ACTIONS="APP_USER_SET_ACTIONS",_.LANGUAGE_SET_LOCALE="LANGUAGE_SET_LOCALE",_.MAP_RESET_STATE="MAP_RESET_STATE",_.MAP_SET_IS_LOADED="MAP_SET_IS_LOADED",_.MAP_SET_IS_STYLE_LOADED="MAP_SET_IS_STYLE_LOADED",_.MAP_SET_HAS_LOADING_ERROR="MAP_SET_HAS_LOADING_ERROR",_.MAP_SET_CENTER="MAP_SET_CENTER",_.MAP_CLEAR_NAVIGATION_HISTORY="MAP_CLEAR_NAVIGATION_HISTORY",_.MAP_PUSH_NAVIGATION_HISTORY="MAP_PUSH_NAVIGATION_HISTORY",_.MAP_POP_NAVIGATION_HISTORY="MAP_POP_NAVIGATION_HISTORY",_.MAP_SET_ZOOM="MAP_SET_ZOOM",_.MAP_ACTIVATE_BASEMAP="MAP_ACTIVATE_BASEMAP",_.MAP_SET_BASEMAPS="MAP_SET_BASEMAPS",_.MAP_ADD_BASEMAP="MAP_ADD_BASEMAP",_.MAP_REMOVE_BASEMAP="MAP_REMOVE_BASEMAP",_.MAP_REMOVE_BASEMAPS="MAP_REMOVE_BASEMAPS",_.MAP_SET_CHANGES="MAP_SET_CHANGES",_.MAP_SET_SELECTION="MAP_SET_SELECTION",_.MAP_CLEAR_SELECTION="MAP_CLEAR_SELECTION",_.MAP_SET_MAPLIBRE_SUPPORTED_LAYERS="MAP_SET_MAPLIBRE_SUPPORTED_LAYERS",_.MAP_SET_PITCH="MAP_SET_PITCH",_.MAP_SET_BEARING="MAP_SET_BEARING",_.MAP_SET_MAP_ROTATION_CONTROL_VISIBILITY="MAP_SET_MAP_ROTATION_CONTROL_VISIBILITY",_.MAP_SET_NAVIGATION_HISTORY_CONTROL_VISIBILITY="MAP_SET_NAVIGATION_HISTORY_CONTROL_VISIBILITY",_.MAP_SET_INITIAL_EXTENT_CONTROL_VISIBILITY="MAP_SET_INITIAL_EXTENT_CONTROL_VISIBILITY",_.MAP_SET_SCALE_CONTROL_VISIBILITY="MAP_SET_SCALE_CONTROL_VISIBILITY",_.MAP_SET_TERRAIN_AVAILABILITY="MAP_SET_TERRAIN_AVAILABILITY",_.MAP_SET_TERRAIN_ACTIVE="MAP_SET_TERRAIN_ACTIVE",_.MAP_SET_SCALE_CONTROL_POSITION="MAP_SET_SCALE_CONTROL_POSITION",_.MAP_SET_ATTRIBUTION_CONTROL_POSITION="MAP_SET_ATTRIBUTION_CONTROL_POSITION",_.MAP_ATTRIBUTION_ADD_SINGLE="MAP_ATTRIBUTION_ADD_SINGLE",_.MAP_ATTRIBUTION_ADD_MULTIPLE="MAP_ATTRIBUTION_ADD_MULTIPLE",_.MAP_ATTRIBUTION_REMOVE_BY_IDS="MAP_ATTRIBUTION_REMOVE_BY_IDS",_.MAP_SET_DISTANCE_UNIT="MAP_SET_DISTANCE_UNIT",_.MAP_SET_DEFAULT_ZOOM_OPTIONS="MAP_SET_DEFAULT_ZOOM_OPTIONS",_.MAP_SET_CONTAINER_SIZE="MAP_SET_CONTAINER_SIZE",_.MAP_SET_TERRAIN_CONTROL_VISIBLE="MAP_SET_TERRAIN_CONTROL_VISIBLE",_.MAP_SET_MAP_INFO_VISIBLE="MAP_SET_MAP_INFO_VISIBLE",_.MAP_SET_MAP_INFO_EXPANDED="MAP_SET_MAP_INFO_EXPANDED",_.MAP_SET_MODIFICATION_TYPE="MAP_SET_MODIFICATION_TYPE",_.MAP_SET_LAYER_TRANSPARENCY="MAP_SET_LAYER_TRANSPARENCY",_.MAP_CLEAR_LAYER_TRANSPARENCY="MAP_CLEAR_LAYER_TRANSPARENCY",_.MAP_SET_PROJECTION="MAP_SET_PROJECTION",_.MAPCONTEXT_SET_STATE="MAPCONTEXT_SET_STATE",_.PHOTO_SET="PHOTO_SET",_.PHOTO_SET_IS_LOADING="PHOTO_SET_IS_LOADING",_.PHOTO_SET_IS_DOWNLOADING="PHOTO_SET_IS_DOWNLOADING",_.PHOTO_SET_HAS_LOADING_ERROR="PHOTO_SET_HAS_LOADING_ERROR",_.SERVER_SET_SERVER_INFO_IS_LOADING="SERVER_SET_SERVER_INFO_IS_LOADING",_.SERVER_SET_SERVER_INFO_LOADING_ERROR="SERVER_SET_SERVER_INFO_LOADING_ERROR",_.SERVER_SET_MISSING_REST_BASE_URL="SERVER_SET_MISSING_REST_BASE_URL",_.SERVER_SET_SERVER_INFO="SERVER_SET_SERVER_INFO",_.DYNAMIC_FILTER_SET_IS_ACTIVE="DYNAMIC_FILTER_SET_IS_ACTIVE",_.GEOCODING_SET_IS_AVAILABLE="GEOCODING_SET_IS_AVAILABLE",_.GEOCODING_SET_IS_LOADING="GEOCODING_SET_IS_LOADING",_.GEOCODING_SET_IS_LOAD_PENDING="GEOCODING_SET_IS_LOAD_PENDING",_.GEOCODING_SET_HAS_LOADING_ERROR="GEOCODING_SET_HAS_LOADING_ERROR",_.GEOCODING_SET_SEARCH_STRING="GEOCODING_SET_SEARCH_STRING",_.GEOCODING_SET_RESULTS="GEOCODING_SET_RESULTS",_.GEOCODING_RESET_STATE="GEOCODING_RESET_STATE",_.SIMPLE_SEARCH_RESET_STATE="SIMPLE_SEARCH_RESET_STATE",_.SIMPLE_SEARCH_SET_IS_LOADING="SIMPLE_SEARCH_SET_IS_LOADING",_.SIMPLE_SEARCH_SET_IS_LOAD_PENDING="SIMPLE_SEARCH_SET_IS_LOAD_PENDING",_.SIMPLE_SEARCH_SET_HAS_LOADING_ERROR="SIMPLE_SEARCH_SET_HAS_LOADING_ERROR",_.SIMPLE_SEARCH_SET_QUERY_STRING="SIMPLE_SEARCH_SET_QUERY_STRING",_.SIMPLE_SEARCH_SET_RESULT="SIMPLE_SEARCH_SET_RESULT",_.UI_SET_IFRAME_POPUP_OPTIONS="UI_SET_IFRAME_POPUP_OPTIONS",_.UI_SET_CHUNK_LOAD_ERROR="UI_SET_CHUNK_LOAD_ERROR",_.TABLE_SET_IS_LOADING="TABLE_SET_IS_LOADING",_.TABLE_SET_LOADING_ERROR="TABLE_SET_LOADING_ERROR",_.TABLE_SET_TABLES="TABLE_SET_TABLES",_.TABLE_SET_DATA_SOURCE_ATTRIBUTES="TABLE_SET_DATA_SOURCE_ATTRIBUTES",_.TABLE_SET_DYNAMIC_FILTER_ACTIVE="TABLE_SET_DYNAMIC_FILTER_ACTIVE",_.APP_MESSAGE_ADD_MESSAGE="APP_MESSAGE_ADD_MESSAGE",_.APP_MESSAGE_SET_MESSAGE_EXPIRED="APP_MESSAGE_SET_MESSAGE_EXPIRED",_.APP_MESSAGE_SET_CONFIRM_MESSAGE="APP_MESSAGE_SET_CONFIRM_MESSAGE",_.APP_MESSAGE_ADD_OVERLAY_MESSAGE="APP_MESSAGE_ADD_OVERLAY_MESSAGE",_.APP_MESSAGE_DELETE_OVERLAY_MESSAGES="APP_MESSAGE_DELETE_OVERLAY_MESSAGES",_))(N||{});const P={setIframePopupOptions:_=>({type:N.UI_SET_IFRAME_POPUP_OPTIONS,iframePopup:_}),setChunkLoadError:_=>({type:N.UI_SET_CHUNK_LOAD_ERROR,chunkLoadError:_})};S.mark("html-parsed");const M=function resolveUiMode(){const _=asValidMode(window.JMAP_OPTIONS?.ui);if(_)return _;const E=asValidMode(function readHashParam(_){try{const E=window.location.hash;return!E||E.length<2?null:new URLSearchParams(E.slice(1)).get(_)}catch{return null}}(R));if(E)return E;const S=asValidMode(function readQueryParam(_){try{return new URLSearchParams(window.location.search).get(_)}catch{return null}}(R));return S||O}(),D=function isSelectionPage(){let _="";window.location.search&&window.location.search.length>1&&(_=window.location.search.substring(1));const S=function getParametersFromString(_){const E={};if(!_||_.length<1)return E;const S=_.split("&");for(const T of S){const _=T.split("=");_.length<2||(E[decodeURI(_[0])]=decodeURI(_[1]))}return E}(_);return!!S.hasOwnProperty(E)&&"true"===S[E]}();if(M===O&&!D){const _="./ui-full.BUbgBx9Q.js",E=!_.startsWith("__JMAP_");if(E){const E=document.createElement("link");E.rel="modulepreload",E.href=new URL(_,import.meta.url).href,document.head.appendChild(E)}!function setUiFullPrefetcher(_){null===T&&(T=_,A&&_())}(()=>{if(!E)return;const S=document.createElement("link");S.rel="modulepreload",S.href=new URL(_,import.meta.url).href,"fetchPriority"in S&&(S.fetchPriority="low"),document.head.appendChild(S)})}D?_(()=>import("./ui-full.BUbgBx9Q.js").then(_=>_.bZ),__vite__mapDeps([0,1,2])).then(_=>{const E=window.opener;E&&E.JMap?(window.JMap=E.JMap,_.startSelectionPage()):alert("This page must be opened only from JMap App")}).catch(_=>console.error("Cannot load startSelectionPage method !",_)):async function bootFull(){const E=_(()=>import("./start.core.DUi3eM4J.js"),__vite__mapDeps([3,0,1,4,2,5])),T=M===I?null:_(()=>import("./ui-full.BUbgBx9Q.js").then(_=>_.b_),__vite__mapDeps([0,1,2]));T?.catch(()=>{});try{await E}catch(A){return void console.error(A)}if(!T)return;try{const _=await T;S.mark("ui-full-chunk-fetched"),S.mark("ui-full-evaluated"),_.start()}catch(A){console.error("Failed to load full UI chunk",A),JMap.getDataStore().dispatch(P.setChunkLoadError(!0))}}(),S.mark("app.ts-evaluated");export{N as A,triggerUiFullPrefetch as t,P as u};
@@ -1 +0,0 @@
1
- import{r as t,a as i,b as o,c as n,j as s,d as a}from"./ui-full.BUbgBx9Q.js";import{g as l}from"./shared-helpers.D1OtmvKm.js";var h,p={exports:{}},d={},u={exports:{}};var f,c={},g={};function requireShims(){if(f)return g;return f=1,Object.defineProperty(g,"__esModule",{value:!0}),g.dontSetMe=function dontSetMe(t,i,o){if(t[i])return new Error(`Invalid prop ${i} passed to ${o} - do not set this, set it on the child.`)},g.findInArray=function findInArray(t,i){for(let o=0,n=t.length;o<n;o++)if(i.apply(i,[t[o],o,t]))return t[o]},g.int=function int(t){return parseInt(t,10)},g.isFunction=function isFunction(t){return"function"==typeof t||"[object Function]"===Object.prototype.toString.call(t)},g.isNum=function isNum(t){return"number"==typeof t&&!isNaN(t)},g}var m,b,y={};function requireDomFns(){if(b)return c;b=1,Object.defineProperty(c,"__esModule",{value:!0}),c.addClassName=addClassName,c.addEvent=function addEvent(t,i,o,n){if(!t)return;const s={capture:!0,...n};t.addEventListener?t.addEventListener(i,o,s):t.attachEvent?t.attachEvent("on"+i,o):t["on"+i]=o},c.addUserSelectStyles=function addUserSelectStyles(t){if(!t)return;let i=t.getElementById("react-draggable-style-el");i||(i=t.createElement("style"),i.type="text/css",i.id="react-draggable-style-el",i.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",i.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",t.getElementsByTagName("head")[0].appendChild(i));t.body&&addClassName(t.body,"react-draggable-transparent-selection")},c.createCSSTransform=function createCSSTransform(t,o){const n=getTranslation(t,o,"px");return{[(0,i.browserPrefixToKey)("transform",i.default)]:n}},c.createSVGTransform=function createSVGTransform(t,i){return getTranslation(t,i,"")},c.getTouch=function getTouch(i,o){return i.targetTouches&&(0,t.findInArray)(i.targetTouches,t=>o===t.identifier)||i.changedTouches&&(0,t.findInArray)(i.changedTouches,t=>o===t.identifier)},c.getTouchIdentifier=function getTouchIdentifier(t){if(t.targetTouches&&t.targetTouches[0])return t.targetTouches[0].identifier;if(t.changedTouches&&t.changedTouches[0])return t.changedTouches[0].identifier},c.getTranslation=getTranslation,c.innerHeight=function innerHeight(i){let o=i.clientHeight;const n=i.ownerDocument.defaultView.getComputedStyle(i);return o-=(0,t.int)(n.paddingTop),o-=(0,t.int)(n.paddingBottom),o},c.innerWidth=function innerWidth(i){let o=i.clientWidth;const n=i.ownerDocument.defaultView.getComputedStyle(i);return o-=(0,t.int)(n.paddingLeft),o-=(0,t.int)(n.paddingRight),o},c.matchesSelector=matchesSelector,c.matchesSelectorAndParentsTo=function matchesSelectorAndParentsTo(t,i,o){let n=t;do{if(matchesSelector(n,i))return!0;if(n===o)return!1;n=n.parentNode}while(n);return!1},c.offsetXYFromParent=function offsetXYFromParent(t,i,o){const n=i===i.ownerDocument.body?{left:0,top:0}:i.getBoundingClientRect(),s=(t.clientX+i.scrollLeft-n.left)/o,a=(t.clientY+i.scrollTop-n.top)/o;return{x:s,y:a}},c.outerHeight=function outerHeight(i){let o=i.clientHeight;const n=i.ownerDocument.defaultView.getComputedStyle(i);return o+=(0,t.int)(n.borderTopWidth),o+=(0,t.int)(n.borderBottomWidth),o},c.outerWidth=function outerWidth(i){let o=i.clientWidth;const n=i.ownerDocument.defaultView.getComputedStyle(i);return o+=(0,t.int)(n.borderLeftWidth),o+=(0,t.int)(n.borderRightWidth),o},c.removeClassName=removeClassName,c.removeEvent=function removeEvent(t,i,o,n){if(!t)return;const s={capture:!0,...n};t.removeEventListener?t.removeEventListener(i,o,s):t.detachEvent?t.detachEvent("on"+i,o):t["on"+i]=null},c.scheduleRemoveUserSelectStyles=function scheduleRemoveUserSelectStyles(t){window.requestAnimationFrame?window.requestAnimationFrame(()=>{removeUserSelectStyles(t)}):removeUserSelectStyles(t)};var t=requireShims(),i=function _interopRequireWildcard(t,i){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(t,i){if(!i&&t&&t.__esModule)return t;var s,a,l={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return l;if(s=i?n:o){if(s.has(t))return s.get(t);s.set(t,l)}for(const o in t)"default"!==o&&{}.hasOwnProperty.call(t,o)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,o))&&(a.get||a.set)?s(l,o,a):l[o]=t[o]);return l}(t,i)}(function requireGetPrefix(){if(m)return y;m=1,Object.defineProperty(y,"__esModule",{value:!0}),y.browserPrefixToKey=browserPrefixToKey,y.browserPrefixToStyle=function browserPrefixToStyle(t,i){return i?`-${i.toLowerCase()}-${t}`:t},y.default=void 0,y.getPrefix=getPrefix$1;const t=["Moz","Webkit","O","ms"];function getPrefix$1(){let i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const o=window.document?.documentElement?.style;if(!o)return"";if(i in o)return"";for(let n=0;n<t.length;n++)if(browserPrefixToKey(i,t[n])in o)return t[n];return""}function browserPrefixToKey(t,i){return i?`${i}${function kebabToTitleCase(t){let i="",o=!0;for(let n=0;n<t.length;n++)o?(i+=t[n].toUpperCase(),o=!1):"-"===t[n]?o=!0:i+=t[n];return i}(t)}`:t}return y.default=getPrefix$1(),y}());let o="";function matchesSelector(i,n){return o||(o=(0,t.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(o){return(0,t.isFunction)(i[o])})),!!(0,t.isFunction)(i[o])&&i[o](n)}function getTranslation(t,i,o){let{x:n,y:s}=t,a=`translate(${n}${o},${s}${o})`;if(i){a=`translate(${`${"string"==typeof i.x?i.x:i.x+o}`}, ${`${"string"==typeof i.y?i.y:i.y+o}`})`+a}return a}function removeUserSelectStyles(t){if(t)try{if(t.body&&removeClassName(t.body,"react-draggable-transparent-selection"),t.selection)t.selection.empty();else{const i=(t.defaultView||window).getSelection();i&&"Caret"!==i.type&&i.removeAllRanges()}}catch(i){}}function addClassName(t,i){t.classList?t.classList.add(i):t.className.match(new RegExp(`(?:^|\\s)${i}(?!\\S)`))||(t.className+=` ${i}`)}function removeClassName(t,i){t.classList?t.classList.remove(i):t.className=t.className.replace(new RegExp(`(?:^|\\s)${i}(?!\\S)`,"g"),"")}return c}var v,w={};function requirePositionFns(){if(v)return w;v=1,Object.defineProperty(w,"__esModule",{value:!0}),w.canDragX=function canDragX(t){return"both"===t.props.axis||"x"===t.props.axis},w.canDragY=function canDragY(t){return"both"===t.props.axis||"y"===t.props.axis},w.createCoreData=function createCoreData(i,o,n){const s=!(0,t.isNum)(i.lastX),a=findDOMNode(i);return s?{node:a,deltaX:0,deltaY:0,lastX:o,lastY:n,x:o,y:n}:{node:a,deltaX:o-i.lastX,deltaY:n-i.lastY,lastX:i.lastX,lastY:i.lastY,x:o,y:n}},w.createDraggableData=function createDraggableData(t,i){const o=t.props.scale;return{node:i.node,x:t.state.x+i.deltaX/o,y:t.state.y+i.deltaY/o,deltaX:i.deltaX/o,deltaY:i.deltaY/o,lastX:t.state.x,lastY:t.state.y}},w.getBoundPosition=function getBoundPosition(o,n,s){if(!o.props.bounds)return[n,s];let{bounds:a}=o.props;a="string"==typeof a?a:function cloneBounds(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}(a);const l=findDOMNode(o);if("string"==typeof a){const{ownerDocument:o}=l,n=o.defaultView;let s;if("parent"===a)s=l.parentNode;else{s=l.getRootNode().querySelector(a)}if(!(s instanceof n.HTMLElement))throw new Error('Bounds selector "'+a+'" could not find an element.');const h=s,p=n.getComputedStyle(l),d=n.getComputedStyle(h);a={left:-l.offsetLeft+(0,t.int)(d.paddingLeft)+(0,t.int)(p.marginLeft),top:-l.offsetTop+(0,t.int)(d.paddingTop)+(0,t.int)(p.marginTop),right:(0,i.innerWidth)(h)-(0,i.outerWidth)(l)-l.offsetLeft+(0,t.int)(d.paddingRight)-(0,t.int)(p.marginRight),bottom:(0,i.innerHeight)(h)-(0,i.outerHeight)(l)-l.offsetTop+(0,t.int)(d.paddingBottom)-(0,t.int)(p.marginBottom)}}(0,t.isNum)(a.right)&&(n=Math.min(n,a.right));(0,t.isNum)(a.bottom)&&(s=Math.min(s,a.bottom));(0,t.isNum)(a.left)&&(n=Math.max(n,a.left));(0,t.isNum)(a.top)&&(s=Math.max(s,a.top));return[n,s]},w.getControlPosition=function getControlPosition(t,o,n){const s="number"==typeof o?(0,i.getTouch)(t,o):null;if("number"==typeof o&&!s)return null;const a=findDOMNode(n),l=n.props.offsetParent||a.offsetParent||a.ownerDocument.body;return(0,i.offsetXYFromParent)(s||t,l,n.props.scale)},w.snapToGrid=function snapToGrid(t,i,o){const n=Math.round(i/t[0])*t[0],s=Math.round(o/t[1])*t[1];return[n,s]};var t=requireShims(),i=requireDomFns();function findDOMNode(t){const i=t.findDOMNode();if(!i)throw new Error("<DraggableCore>: Unmounted during event!");return i}return w}var S,x,z,D,R={},P={};function requireLog(){if(S)return P;return S=1,Object.defineProperty(P,"__esModule",{value:!0}),P.default=function log$1(){},P}function requireDraggableCore(){if(x)return R;x=1,Object.defineProperty(R,"__esModule",{value:!0}),R.default=void 0;var n=function _interopRequireWildcard(t,i){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(t,i){if(!i&&t&&t.__esModule)return t;var s,a,l={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return l;if(s=i?n:o){if(s.has(t))return s.get(t);s.set(t,l)}for(const o in t)"default"!==o&&{}.hasOwnProperty.call(t,o)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,o))&&(a.get||a.set)?s(l,o,a):l[o]=t[o]);return l}(t,i)}(t()),s=_interopRequireDefault(o()),a=_interopRequireDefault(i()),l=requireDomFns(),h=requirePositionFns(),p=requireShims(),d=_interopRequireDefault(requireLog());function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _defineProperty(t,i,o){return(i=function _toPropertyKey(t){var i=function _toPrimitive(t,i){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,i);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}(i))in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o,t}const u={start:"touchstart",move:"touchmove",stop:"touchend"},f={start:"mousedown",move:"mousemove",stop:"mouseup"};let c=f,g=class DraggableCore extends n.Component{constructor(){super(...arguments),_defineProperty(this,"dragging",!1),_defineProperty(this,"lastX",NaN),_defineProperty(this,"lastY",NaN),_defineProperty(this,"touchIdentifier",null),_defineProperty(this,"mounted",!1),_defineProperty(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&"number"==typeof t.button&&0!==t.button)return!1;const i=this.findDOMNode();if(!i||!i.ownerDocument||!i.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:o}=i;if(this.props.disabled||!(t.target instanceof o.defaultView.Node)||this.props.handle&&!(0,l.matchesSelectorAndParentsTo)(t.target,this.props.handle,i)||this.props.cancel&&(0,l.matchesSelectorAndParentsTo)(t.target,this.props.cancel,i))return;"touchstart"!==t.type||this.props.allowMobileScroll||t.preventDefault();const n=(0,l.getTouchIdentifier)(t);this.touchIdentifier=n;const s=(0,h.getControlPosition)(t,n,this);if(null==s)return;const{x:a,y:p}=s,u=(0,h.createCoreData)(this,a,p);(0,d.default)("DraggableCore: handleDragStart: %j",u),(0,d.default)("calling",this.props.onStart);!1!==this.props.onStart(t,u)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,l.addUserSelectStyles)(o),this.dragging=!0,this.lastX=a,this.lastY=p,(0,l.addEvent)(o,c.move,this.handleDrag),(0,l.addEvent)(o,c.stop,this.handleDragStop))}),_defineProperty(this,"handleDrag",t=>{const i=(0,h.getControlPosition)(t,this.touchIdentifier,this);if(null==i)return;let{x:o,y:n}=i;if(Array.isArray(this.props.grid)){let t=o-this.lastX,i=n-this.lastY;if([t,i]=(0,h.snapToGrid)(this.props.grid,t,i),!t&&!i)return;o=this.lastX+t,n=this.lastY+i}const s=(0,h.createCoreData)(this,o,n);(0,d.default)("DraggableCore: handleDrag: %j",s);if(!1!==this.props.onDrag(t,s)&&!1!==this.mounted)this.lastX=o,this.lastY=n;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(a){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),_defineProperty(this,"handleDragStop",t=>{if(!this.dragging)return;const i=(0,h.getControlPosition)(t,this.touchIdentifier,this);if(null==i)return;let{x:o,y:n}=i;if(Array.isArray(this.props.grid)){let t=o-this.lastX||0,i=n-this.lastY||0;[t,i]=(0,h.snapToGrid)(this.props.grid,t,i),o=this.lastX+t,n=this.lastY+i}const s=(0,h.createCoreData)(this,o,n);if(!1===this.props.onStop(t,s)||!1===this.mounted)return!1;const a=this.findDOMNode();a&&this.props.enableUserSelectHack&&(0,l.scheduleRemoveUserSelectStyles)(a.ownerDocument),(0,d.default)("DraggableCore: handleDragStop: %j",s),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,a&&((0,d.default)("DraggableCore: Removing handlers"),(0,l.removeEvent)(a.ownerDocument,c.move,this.handleDrag),(0,l.removeEvent)(a.ownerDocument,c.stop,this.handleDragStop))}),_defineProperty(this,"onMouseDown",t=>(c=f,this.handleDragStart(t))),_defineProperty(this,"onMouseUp",t=>(c=f,this.handleDragStop(t))),_defineProperty(this,"onTouchStart",t=>(c=u,this.handleDragStart(t))),_defineProperty(this,"onTouchEnd",t=>(c=u,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,l.addEvent)(t,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:i}=t;(0,l.removeEvent)(i,f.move,this.handleDrag),(0,l.removeEvent)(i,u.move,this.handleDrag),(0,l.removeEvent)(i,f.stop,this.handleDragStop),(0,l.removeEvent)(i,u.stop,this.handleDragStop),(0,l.removeEvent)(t,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,l.scheduleRemoveUserSelectStyles)(i)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:a.default.findDOMNode(this)}render(){return n.cloneElement(n.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return R.default=g,_defineProperty(g,"displayName","DraggableCore"),_defineProperty(g,"propTypes",{allowAnyClick:s.default.bool,allowMobileScroll:s.default.bool,children:s.default.node.isRequired,disabled:s.default.bool,enableUserSelectHack:s.default.bool,offsetParent:function(t,i){if(t[i]&&1!==t[i].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:s.default.arrayOf(s.default.number),handle:s.default.string,cancel:s.default.string,nodeRef:s.default.object,onStart:s.default.func,onDrag:s.default.func,onStop:s.default.func,onMouseDown:s.default.func,scale:s.default.number,className:p.dontSetMe,style:p.dontSetMe,transform:p.dontSetMe}),_defineProperty(g,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),R}function requireDraggable(){return z||(z=1,function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"DraggableCore",{enumerable:!0,get:function(){return g.default}}),n.default=void 0;var s=function _interopRequireWildcard(t,i){if("function"==typeof WeakMap)var o=new WeakMap,n=new WeakMap;return function(t,i){if(!i&&t&&t.__esModule)return t;var s,a,l={__proto__:null,default:t};if(null===t||"object"!=typeof t&&"function"!=typeof t)return l;if(s=i?n:o){if(s.has(t))return s.get(t);s.set(t,l)}for(const o in t)"default"!==o&&{}.hasOwnProperty.call(t,o)&&((a=(s=Object.defineProperty)&&Object.getOwnPropertyDescriptor(t,o))&&(a.get||a.set)?s(l,o,a):l[o]=t[o]);return l}(t,i)}(t()),a=_interopRequireDefault(o()),l=_interopRequireDefault(i()),p=function requireClsx(){if(h)return u.exports;function r(t){var i,o,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(i=0;i<s;i++)t[i]&&(o=r(t[i]))&&(n&&(n+=" "),n+=o)}else for(o in t)t[o]&&(n&&(n+=" "),n+=o);return n}function e(){for(var t,i,o=0,n="",s=arguments.length;o<s;o++)(t=arguments[o])&&(i=r(t))&&(n&&(n+=" "),n+=i);return n}return h=1,u.exports=e,u.exports.clsx=e,u.exports}(),d=requireDomFns(),f=requirePositionFns(),c=requireShims(),g=_interopRequireDefault(requireDraggableCore()),m=_interopRequireDefault(requireLog());function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _extends(){return _extends=Object.assign?Object.assign.bind():function(t){for(var i=1;i<arguments.length;i++){var o=arguments[i];for(var n in o)({}).hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},_extends.apply(null,arguments)}function _defineProperty(t,i,o){return(i=function _toPropertyKey(t){var i=function _toPrimitive(t,i){if("object"!=typeof t||!t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,i);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==typeof i?i:i+""}(i))in t?Object.defineProperty(t,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[i]=o,t}class Draggable2 extends s.Component{static getDerivedStateFromProps(t,i){let{position:o}=t,{prevPropsPosition:n}=i;return!o||n&&o.x===n.x&&o.y===n.y?null:((0,m.default)("Draggable: getDerivedStateFromProps %j",{position:o,prevPropsPosition:n}),{x:o.x,y:o.y,prevPropsPosition:{...o}})}constructor(t){super(t),_defineProperty(this,"onDragStart",(t,i)=>{(0,m.default)("Draggable: onDragStart: %j",i);if(!1===this.props.onStart(t,(0,f.createDraggableData)(this,i)))return!1;this.setState({dragging:!0,dragged:!0})}),_defineProperty(this,"onDrag",(t,i)=>{if(!this.state.dragging)return!1;(0,m.default)("Draggable: onDrag: %j",i);const o=(0,f.createDraggableData)(this,i),n={x:o.x,y:o.y,slackX:0,slackY:0};if(this.props.bounds){const{x:t,y:i}=n;n.x+=this.state.slackX,n.y+=this.state.slackY;const[s,a]=(0,f.getBoundPosition)(this,n.x,n.y);n.x=s,n.y=a,n.slackX=this.state.slackX+(t-n.x),n.slackY=this.state.slackY+(i-n.y),o.x=n.x,o.y=n.y,o.deltaX=n.x-this.state.x,o.deltaY=n.y-this.state.y}if(!1===this.props.onDrag(t,o))return!1;this.setState(n)}),_defineProperty(this,"onDragStop",(t,i)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(t,(0,f.createDraggableData)(this,i)))return!1;(0,m.default)("Draggable: onDragStop: %j",i);const o={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:t,y:i}=this.props.position;o.x=t,o.y=i}this.setState(o)}),this.state={dragging:!1,dragged:!1,x:t.position?t.position.x:t.defaultPosition.x,y:t.position?t.position.y:t.defaultPosition.y,prevPropsPosition:{...t.position},slackX:0,slackY:0,isElementSVG:!1},!t.position||t.onDrag||t.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??l.default.findDOMNode(this)}render(){const{axis:t,bounds:i,children:o,defaultPosition:n,defaultClassName:a,defaultClassNameDragging:l,defaultClassNameDragged:h,position:u,positionOffset:c,scale:m,...b}=this.props;let y={},v=null;const w=!Boolean(u)||this.state.dragging,S=u||n,x={x:(0,f.canDragX)(this)&&w?this.state.x:S.x,y:(0,f.canDragY)(this)&&w?this.state.y:S.y};this.state.isElementSVG?v=(0,d.createSVGTransform)(x,c):y=(0,d.createCSSTransform)(x,c);const z=(0,p.clsx)(o.props.className||"",a,{[l]:this.state.dragging,[h]:this.state.dragged});return s.createElement(g.default,_extends({},b,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),s.cloneElement(s.Children.only(o),{className:z,style:{...o.props.style,...y},transform:v}))}}n.default=Draggable2,_defineProperty(Draggable2,"displayName","Draggable"),_defineProperty(Draggable2,"propTypes",{...g.default.propTypes,axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),_defineProperty(Draggable2,"defaultProps",{...g.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(d)),d}const M=l(function requireCjs(){if(D)return p.exports;D=1;const{default:t,DraggableCore:i}=requireDraggable();return p.exports=t,p.exports.default=t,p.exports.DraggableCore=i,p.exports}());var __assign$2=function(){return __assign$2=Object.assign||function(t){for(var i,o=1,n=arguments.length;o<n;o++)for(var s in i=arguments[o])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t},__assign$2.apply(this,arguments)},W={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},_={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},N={width:"20px",height:"20px",position:"absolute",zIndex:1},E={top:__assign$2(__assign$2({},W),{top:"-5px"}),right:__assign$2(__assign$2({},_),{left:void 0,right:"-5px"}),bottom:__assign$2(__assign$2({},W),{top:void 0,bottom:"-5px"}),left:__assign$2(__assign$2({},_),{left:"-5px"}),topRight:__assign$2(__assign$2({},N),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:__assign$2(__assign$2({},N),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:__assign$2(__assign$2({},N),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:__assign$2(__assign$2({},N),{left:"-10px",top:"-10px",cursor:"nw-resize"})},C=n.memo(function(t){var i=t.onResizeStart,o=t.direction,a=t.children,l=t.replaceStyles,h=t.className,p=n.useCallback(function(t){i(t,o)},[i,o]),d=n.useCallback(function(t){i(t,o)},[i,o]),u=n.useMemo(function(){return __assign$2(__assign$2({position:"absolute",userSelect:"none"},E[o]),null!=l?l:{})},[l,o]);return s.jsx("div",{className:h||void 0,style:u,onMouseDown:p,onTouchStart:d,children:a})}),T=function(){var extendStatics2=function(t,i){return(extendStatics2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])})(t,i)};return function(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");function __(){this.constructor=t}extendStatics2(t,i),t.prototype=null===i?Object.create(i):(__.prototype=i.prototype,new __)}}(),__assign$1=function(){return __assign$1=Object.assign||function(t){for(var i,o=1,n=arguments.length;o<n;o++)for(var s in i=arguments[o])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t},__assign$1.apply(this,arguments)},H={width:"auto",height:"auto"},clamp=function(t,i,o){return Math.max(Math.min(t,o),i)},snap=function(t,i,o){var n=Math.round(t/i);return n*i+o*(n-1)},hasDirection=function(t,i){return new RegExp(t,"i").test(i)},isTouchEvent=function(t){return Boolean(t.touches&&t.touches.length)},findClosestSnap=function(t,i,o){void 0===o&&(o=0);var n=i.reduce(function(o,n,s){return Math.abs(n-t)<Math.abs(i[o]-t)?s:o},0),s=Math.abs(i[n]-t);return 0===o||s<o?i[n]:t},getStringSize=function(t){return"auto"===(t=t.toString())||t.endsWith("px")||t.endsWith("%")||t.endsWith("vh")||t.endsWith("vw")||t.endsWith("vmax")||t.endsWith("vmin")?t:"".concat(t,"px")},getPixelSize=function(t,i,o,n){if(t&&"string"==typeof t){if(t.endsWith("px"))return Number(t.replace("px",""));if(t.endsWith("%"))return i*(Number(t.replace("%",""))/100);if(t.endsWith("vw"))return o*(Number(t.replace("vw",""))/100);if(t.endsWith("vh"))return n*(Number(t.replace("vh",""))/100)}return t},O=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],k="__resizable_base__",A=function(t){function Resizable2(i){var o,n,s,a,l=t.call(this,i)||this;return l.ratio=1,l.resizable=null,l.parentLeft=0,l.parentTop=0,l.resizableLeft=0,l.resizableRight=0,l.resizableTop=0,l.resizableBottom=0,l.targetLeft=0,l.targetTop=0,l.delta={width:0,height:0},l.appendBase=function(){if(!l.resizable||!l.window)return null;var t=l.parentNode;if(!t)return null;var i=l.window.document.createElement("div");return i.style.width="100%",i.style.height="100%",i.style.position="absolute",i.style.transform="scale(0, 0)",i.style.left="0",i.style.flex="0 0 100%",i.classList?i.classList.add(k):i.className+=k,t.appendChild(i),i},l.removeBase=function(t){var i=l.parentNode;i&&i.removeChild(t)},l.state={isResizing:!1,width:null!==(n=null===(o=l.propsSize)||void 0===o?void 0:o.width)&&void 0!==n?n:"auto",height:null!==(a=null===(s=l.propsSize)||void 0===s?void 0:s.height)&&void 0!==a?a:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},l.onResizeStart=l.onResizeStart.bind(l),l.onMouseMove=l.onMouseMove.bind(l),l.onMouseUp=l.onMouseUp.bind(l),l}return T(Resizable2,t),Object.defineProperty(Resizable2.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(Resizable2.prototype,"window",{get:function(){return this.resizable&&this.resizable.ownerDocument?this.resizable.ownerDocument.defaultView:null},enumerable:!1,configurable:!0}),Object.defineProperty(Resizable2.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||H},enumerable:!1,configurable:!0}),Object.defineProperty(Resizable2.prototype,"size",{get:function(){var t=0,i=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,n=this.resizable.offsetHeight,s=this.resizable.style.position;"relative"!==s&&(this.resizable.style.position="relative"),t="auto"!==this.resizable.style.width?this.resizable.offsetWidth:o,i="auto"!==this.resizable.style.height?this.resizable.offsetHeight:n,this.resizable.style.position=s}return{width:t,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(Resizable2.prototype,"sizeStyle",{get:function(){var t=this,i=this.props.size,getSize=function(i){var o;if(void 0===t.state[i]||"auto"===t.state[i])return"auto";if(t.propsSize&&t.propsSize[i]&&(null===(o=t.propsSize[i])||void 0===o?void 0:o.toString().endsWith("%"))){if(t.state[i].toString().endsWith("%"))return t.state[i].toString();var n=t.getParentSize(),s=Number(t.state[i].toString().replace("px",""))/n[i]*100;return"".concat(s,"%")}return getStringSize(t.state[i])};return{width:i&&void 0!==i.width&&!this.state.isResizing?getStringSize(i.width):getSize("width"),height:i&&void 0!==i.height&&!this.state.isResizing?getStringSize(i.height):getSize("height")}},enumerable:!1,configurable:!0}),Resizable2.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var t=this.appendBase();if(!t)return{width:0,height:0};var i=!1,o=this.parentNode.style.flexWrap;"wrap"!==o&&(i=!0,this.parentNode.style.flexWrap="wrap"),t.style.position="relative",t.style.minWidth="100%",t.style.minHeight="100%";var n={width:t.offsetWidth,height:t.offsetHeight};return i&&(this.parentNode.style.flexWrap=o),this.removeBase(t),n},Resizable2.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},Resizable2.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},Resizable2.prototype.componentDidMount=function(){if(this.resizable&&this.window){var t=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:"auto"!==t.flexBasis?t.flexBasis:void 0})}},Resizable2.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},Resizable2.prototype.createSizeForCssProperty=function(t,i){var o=this.propsSize&&this.propsSize[i];return"auto"!==this.state[i]||this.state.original[i]!==t||void 0!==o&&"auto"!==o?t:"auto"},Resizable2.prototype.calculateNewMaxFromBoundary=function(t,i){var o,n,s=this.props.boundsByDirection,a=this.state.direction,l=s&&hasDirection("left",a),h=s&&hasDirection("top",a);if("parent"===this.props.bounds){var p=this.parentNode;p&&(o=l?this.resizableRight-this.parentLeft:p.offsetWidth+(this.parentLeft-this.resizableLeft),n=h?this.resizableBottom-this.parentTop:p.offsetHeight+(this.parentTop-this.resizableTop))}else"window"===this.props.bounds?this.window&&(o=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,n=h?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(o=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),n=h?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return o&&Number.isFinite(o)&&(t=t&&t<o?t:o),n&&Number.isFinite(n)&&(i=i&&i<n?i:n),{maxWidth:t,maxHeight:i}},Resizable2.prototype.calculateNewSizeFromDirection=function(t,i){var o,n=this.props.scale||1,s=(o=this.props.resizeRatio||1,Array.isArray(o)?o:[o,o]),a=s[0],l=s[1],h=this.state,p=h.direction,d=h.original,u=this.props,f=u.lockAspectRatio,c=u.lockAspectRatioExtraHeight,g=u.lockAspectRatioExtraWidth,m=d.width,b=d.height,y=c||0,v=g||0;return hasDirection("right",p)&&(m=d.width+(t-d.x)*a/n,f&&(b=(m-v)/this.ratio+y)),hasDirection("left",p)&&(m=d.width-(t-d.x)*a/n,f&&(b=(m-v)/this.ratio+y)),hasDirection("bottom",p)&&(b=d.height+(i-d.y)*l/n,f&&(m=(b-y)*this.ratio+v)),hasDirection("top",p)&&(b=d.height-(i-d.y)*l/n,f&&(m=(b-y)*this.ratio+v)),{newWidth:m,newHeight:b}},Resizable2.prototype.calculateNewSizeFromAspectRatio=function(t,i,o,n){var s=this.props,a=s.lockAspectRatio,l=s.lockAspectRatioExtraHeight,h=s.lockAspectRatioExtraWidth,p=void 0===n.width?10:n.width,d=void 0===o.width||o.width<0?t:o.width,u=void 0===n.height?10:n.height,f=void 0===o.height||o.height<0?i:o.height,c=l||0,g=h||0;if(a){var m=(u-c)*this.ratio+g,b=(f-c)*this.ratio+g,y=(p-g)/this.ratio+c,v=(d-g)/this.ratio+c,w=Math.max(p,m),S=Math.min(d,b),x=Math.max(u,y),z=Math.min(f,v);t=clamp(t,w,S),i=clamp(i,x,z)}else t=clamp(t,p,d),i=clamp(i,u,f);return{newWidth:t,newHeight:i}},Resizable2.prototype.setBoundingClientRect=function(){var t=1/(this.props.scale||1);if("parent"===this.props.bounds){var i=this.parentNode;if(i){var o=i.getBoundingClientRect();this.parentLeft=o.left*t,this.parentTop=o.top*t}}if(this.props.bounds&&"string"!=typeof this.props.bounds){var n=this.props.bounds.getBoundingClientRect();this.targetLeft=n.left*t,this.targetTop=n.top*t}if(this.resizable){var s=this.resizable.getBoundingClientRect(),a=s.left,l=s.top,h=s.right,p=s.bottom;this.resizableLeft=a*t,this.resizableRight=h*t,this.resizableTop=l*t,this.resizableBottom=p*t}},Resizable2.prototype.onResizeStart=function(t,i){if(this.resizable&&this.window){var o,n=0,s=0;if(t.nativeEvent&&function(t){return Boolean((t.clientX||0===t.clientX)&&(t.clientY||0===t.clientY))}(t.nativeEvent)?(n=t.nativeEvent.clientX,s=t.nativeEvent.clientY):t.nativeEvent&&isTouchEvent(t.nativeEvent)&&(n=t.nativeEvent.touches[0].clientX,s=t.nativeEvent.touches[0].clientY),this.props.onResizeStart)if(this.resizable)if(!1===this.props.onResizeStart(t,i,this.resizable))return;this.props.size&&(void 0!==this.props.size.height&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),void 0!==this.props.size.width&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio="number"==typeof this.props.lockAspectRatio?this.props.lockAspectRatio:this.size.width/this.size.height;var a=this.window.getComputedStyle(this.resizable);if("auto"!==a.flexBasis){var l=this.parentNode;if(l){var h=this.window.getComputedStyle(l).flexDirection;this.flexDir=h.startsWith("row")?"row":"column",o=a.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:n,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:__assign$1(__assign$1({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(t.target).cursor||"auto"}),direction:i,flexBasis:o};this.setState(p)}},Resizable2.prototype.onMouseMove=function(t){var i=this;if(this.state.isResizing&&this.resizable&&this.window){if(this.window.TouchEvent&&isTouchEvent(t))try{t.preventDefault(),t.stopPropagation()}catch(k){}var o=this.props,n=o.maxWidth,s=o.maxHeight,l=o.minWidth,h=o.minHeight,p=isTouchEvent(t)?t.touches[0].clientX:t.clientX,d=isTouchEvent(t)?t.touches[0].clientY:t.clientY,u=this.state,f=u.direction,c=u.original,g=u.width,m=u.height,b=this.getParentSize(),y=function(t,i,o,n,s,a,l){return n=getPixelSize(n,t.width,i,o),s=getPixelSize(s,t.height,i,o),a=getPixelSize(a,t.width,i,o),l=getPixelSize(l,t.height,i,o),{maxWidth:void 0===n?void 0:Number(n),maxHeight:void 0===s?void 0:Number(s),minWidth:void 0===a?void 0:Number(a),minHeight:void 0===l?void 0:Number(l)}}(b,this.window.innerWidth,this.window.innerHeight,n,s,l,h);n=y.maxWidth,s=y.maxHeight,l=y.minWidth,h=y.minHeight;var v=this.calculateNewSizeFromDirection(p,d),w=v.newHeight,S=v.newWidth,x=this.calculateNewMaxFromBoundary(n,s);this.props.snap&&this.props.snap.x&&(S=findClosestSnap(S,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(w=findClosestSnap(w,this.props.snap.y,this.props.snapGap));var z=this.calculateNewSizeFromAspectRatio(S,w,{width:x.maxWidth,height:x.maxHeight},{width:l,height:h});if(S=z.newWidth,w=z.newHeight,this.props.grid){var D=snap(S,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),R=snap(w,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),P=this.props.snapGap||0;S=0===P||Math.abs(D-S)<=P?D:S,w=0===P||Math.abs(R-w)<=P?R:w}var M={width:S-c.width,height:w-c.height};if(this.delta=M,g&&"string"==typeof g)if(g.endsWith("%")){var W=S/b.width*100;S="".concat(W,"%")}else if(g.endsWith("vw")){var _=S/this.window.innerWidth*100;S="".concat(_,"vw")}else if(g.endsWith("vh")){var N=S/this.window.innerHeight*100;S="".concat(N,"vh")}if(m&&"string"==typeof m)if(m.endsWith("%")){W=w/b.height*100;w="".concat(W,"%")}else if(m.endsWith("vw")){_=w/this.window.innerWidth*100;w="".concat(_,"vw")}else if(m.endsWith("vh")){N=w/this.window.innerHeight*100;w="".concat(N,"vh")}var E={width:this.createSizeForCssProperty(S,"width"),height:this.createSizeForCssProperty(w,"height")};"row"===this.flexDir?E.flexBasis=E.width:"column"===this.flexDir&&(E.flexBasis=E.height);var C=this.state.width!==E.width,T=this.state.height!==E.height,H=this.state.flexBasis!==E.flexBasis,O=C||T||H;O&&a.flushSync(function(){i.setState(E)}),this.props.onResize&&O&&this.props.onResize(t,f,this.resizable,M)}},Resizable2.prototype.onMouseUp=function(t){var i,o,n=this.state,s=n.isResizing,a=n.direction;n.original,s&&this.resizable&&(this.props.onResizeStop&&this.props.onResizeStop(t,a,this.resizable,this.delta),this.props.size&&this.setState({width:null!==(i=this.props.size.width)&&void 0!==i?i:"auto",height:null!==(o=this.props.size.height)&&void 0!==o?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:__assign$1(__assign$1({},this.state.backgroundStyle),{cursor:"auto"})}))},Resizable2.prototype.updateSize=function(t){var i,o;this.setState({width:null!==(i=t.width)&&void 0!==i?i:"auto",height:null!==(o=t.height)&&void 0!==o?o:"auto"})},Resizable2.prototype.renderResizer=function(){var t=this,i=this.props,o=i.enable,n=i.handleStyles,a=i.handleClasses,l=i.handleWrapperStyle,h=i.handleWrapperClass,p=i.handleComponent;if(!o)return null;var d=Object.keys(o).map(function(i){return!1!==o[i]?s.jsx(C,{direction:i,onResizeStart:t.onResizeStart,replaceStyles:n&&n[i],className:a&&a[i],children:p&&p[i]?p[i]:null},i):null});return s.jsx("div",{className:h,style:l,children:d})},Resizable2.prototype.render=function(){var t=this,i=Object.keys(this.props).reduce(function(i,o){return-1!==O.indexOf(o)||(i[o]=t.props[o]),i},{}),o=__assign$1(__assign$1(__assign$1({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(o.flexBasis=this.state.flexBasis);var n=this.props.as||"div";return s.jsxs(n,__assign$1({style:o,className:this.props.className},i,{ref:function(i){i&&(t.resizable=i)},children:[this.state.isResizing&&s.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},Resizable2.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},Resizable2}(n.PureComponent),extendStatics=function(t,i){return(extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var o in i)i.hasOwnProperty(o)&&(t[o]=i[o])})(t,i)};var __assign=function(){return __assign=Object.assign||function __assign2(t){for(var i,o=1,n=arguments.length;o<n;o++)for(var s in i=arguments[o])Object.prototype.hasOwnProperty.call(i,s)&&(t[s]=i[s]);return t},__assign.apply(this,arguments)};var j={width:"auto",height:"auto",display:"inline-block",position:"absolute",top:0,left:0},L=function(t){function Rnd2(i){var o=t.call(this,i)||this;return o.resizingPosition={x:0,y:0},o.offsetFromParent={left:0,top:0},o.resizableElement={current:null},o.originalPosition={x:0,y:0},o.state={resizing:!1,bounds:{top:0,right:0,bottom:0,left:0},maxWidth:i.maxWidth,maxHeight:i.maxHeight},o.onResizeStart=o.onResizeStart.bind(o),o.onResize=o.onResize.bind(o),o.onResizeStop=o.onResizeStop.bind(o),o.onDragStart=o.onDragStart.bind(o),o.onDrag=o.onDrag.bind(o),o.onDragStop=o.onDragStop.bind(o),o.getMaxSizesFromProps=o.getMaxSizesFromProps.bind(o),o}return function __extends(t,i){function __(){this.constructor=t}extendStatics(t,i),t.prototype=null===i?Object.create(i):(__.prototype=i.prototype,new __)}(Rnd2,t),Rnd2.prototype.componentDidMount=function(){this.updateOffsetFromParent();var t=this.offsetFromParent,i=t.left,o=t.top,n=this.getDraggablePosition(),s=n.x,a=n.y;this.draggable.setState({x:s-i,y:a-o}),this.forceUpdate()},Rnd2.prototype.getDraggablePosition=function(){var t=this.draggable.state;return{x:t.x,y:t.y}},Rnd2.prototype.getParent=function(){return this.resizable&&this.resizable.parentNode},Rnd2.prototype.getParentSize=function(){return this.resizable.getParentSize()},Rnd2.prototype.getMaxSizesFromProps=function(){return{maxWidth:void 0===this.props.maxWidth?Number.MAX_SAFE_INTEGER:this.props.maxWidth,maxHeight:void 0===this.props.maxHeight?Number.MAX_SAFE_INTEGER:this.props.maxHeight}},Rnd2.prototype.getSelfElement=function(){return this.resizable&&this.resizable.resizable},Rnd2.prototype.getOffsetHeight=function(t){var i=this.props.scale;switch(this.props.bounds){case"window":return window.innerHeight/i;case"body":return document.body.offsetHeight/i;default:return t.offsetHeight}},Rnd2.prototype.getOffsetWidth=function(t){var i=this.props.scale;switch(this.props.bounds){case"window":return window.innerWidth/i;case"body":return document.body.offsetWidth/i;default:return t.offsetWidth}},Rnd2.prototype.onDragStart=function(t,i){if(this.props.onDragStart&&!1===this.props.onDragStart(t,i))return!1;var o=this.getDraggablePosition();if(this.originalPosition=o,this.props.bounds){var n,s=this.getParent(),a=this.props.scale;if("parent"===this.props.bounds)n=s;else{if("body"===this.props.bounds){var l=s.getBoundingClientRect(),h=l.left,p=l.top,d=document.body.getBoundingClientRect(),u=-(h-s.offsetLeft*a-d.left)/a,f=-(p-s.offsetTop*a-d.top)/a,c=(document.body.offsetWidth-this.resizable.size.width*a)/a+u,g=(document.body.offsetHeight-this.resizable.size.height*a)/a+f;return this.setState({bounds:{top:f,right:c,bottom:g,left:u}})}if("window"===this.props.bounds){if(!this.resizable)return;var m=s.getBoundingClientRect(),b=m.left,y=m.top,v=-(b-s.offsetLeft*a)/a,w=-(y-s.offsetTop*a)/a;c=(window.innerWidth-this.resizable.size.width*a)/a+v,g=(window.innerHeight-this.resizable.size.height*a)/a+w;return this.setState({bounds:{top:w,right:c,bottom:g,left:v}})}"string"==typeof this.props.bounds?n=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(n=this.props.bounds)}if(n instanceof HTMLElement&&s instanceof HTMLElement){var S=n.getBoundingClientRect(),x=S.left,z=S.top,D=s.getBoundingClientRect(),R=(x-D.left)/a,P=z-D.top;if(this.resizable){this.updateOffsetFromParent();var M=this.offsetFromParent;this.setState({bounds:{top:P-M.top,right:R+(n.offsetWidth-this.resizable.size.width)-M.left/a,bottom:P+(n.offsetHeight-this.resizable.size.height)-M.top,left:R-M.left/a}})}}}},Rnd2.prototype.onDrag=function(t,i){if(this.props.onDrag){var o=this.offsetFromParent,n=o.left,s=o.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDrag(t,__assign(__assign({},i),{x:i.x+n,y:this.originalPosition.y+s,deltaY:0})):"y"===this.props.dragAxis?this.props.onDrag(t,__assign(__assign({},i),{x:this.originalPosition.x+n,y:i.y+s,deltaX:0})):void 0:this.props.onDrag(t,__assign(__assign({},i),{x:i.x+n,y:i.y+s}))}},Rnd2.prototype.onDragStop=function(t,i){if(this.props.onDragStop){var o=this.offsetFromParent,n=o.left,s=o.top;return this.props.dragAxis&&"both"!==this.props.dragAxis?"x"===this.props.dragAxis?this.props.onDragStop(t,__assign(__assign({},i),{x:i.x+n,y:this.originalPosition.y+s,deltaY:0})):"y"===this.props.dragAxis?this.props.onDragStop(t,__assign(__assign({},i),{x:this.originalPosition.x+n,y:i.y+s,deltaX:0})):void 0:this.props.onDragStop(t,__assign(__assign({},i),{x:i.x+n,y:i.y+s}))}},Rnd2.prototype.onResizeStart=function(t,i,o){if(this.props.onResizeStart&&!1===this.props.onResizeStart(t,i,o))return!1;t.stopPropagation(),this.setState({resizing:!0});var n=this.props.scale,s=this.offsetFromParent,a=this.getDraggablePosition();if(this.resizingPosition={x:a.x+s.left,y:a.y+s.top},this.originalPosition=a,this.props.bounds){var l=this.getParent(),h=void 0;"parent"===this.props.bounds?h=l:"body"===this.props.bounds?h=document.body:"window"===this.props.bounds?h=window:"string"==typeof this.props.bounds?h=document.querySelector(this.props.bounds):this.props.bounds instanceof HTMLElement&&(h=this.props.bounds);var p=this.getSelfElement();if(p instanceof Element&&(h instanceof HTMLElement||h===window)&&l instanceof HTMLElement){var d=this.getMaxSizesFromProps(),u=d.maxWidth,f=d.maxHeight,c=this.getParentSize();if(u&&"string"==typeof u)if(u.endsWith("%")){var g=Number(u.replace("%",""))/100;u=c.width*g}else u.endsWith("px")&&(u=Number(u.replace("px","")));if(f&&"string"==typeof f)if(f.endsWith("%")){g=Number(f.replace("%",""))/100;f=c.height*g}else f.endsWith("px")&&(f=Number(f.replace("px","")));var m=p.getBoundingClientRect(),b=m.left,y=m.top,v="window"===this.props.bounds?{left:0,top:0}:h.getBoundingClientRect(),w=v.left,S=v.top,x=this.getOffsetWidth(h),z=this.getOffsetHeight(h),D=i.toLowerCase().endsWith("left"),R=i.toLowerCase().endsWith("right"),P=i.startsWith("top"),M=i.startsWith("bottom");if((D||P)&&this.resizable){var W=(b-w)/n+this.resizable.size.width;this.setState({maxWidth:W>Number(u)?u:W})}if(R||this.props.lockAspectRatio&&!D&&!P){W=x+(w-b)/n;this.setState({maxWidth:W>Number(u)?u:W})}if((P||D)&&this.resizable){W=(y-S)/n+this.resizable.size.height;this.setState({maxHeight:W>Number(f)?f:W})}if(M||this.props.lockAspectRatio&&!P&&!D){W=z+(S-y)/n;this.setState({maxHeight:W>Number(f)?f:W})}}}else this.setState({maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight})},Rnd2.prototype.onResize=function(t,i,o,n){var s=this,l={x:this.originalPosition.x,y:this.originalPosition.y},h=-n.width,p=-n.height;["top","left","topLeft","bottomLeft","topRight"].includes(i)&&("bottomLeft"===i?l.x+=h:("topRight"===i||(l.x+=h),l.y+=p));var d=this.draggable.state;l.x===d.x&&l.y===d.y||a.flushSync(function(){s.draggable.setState(l)}),this.updateOffsetFromParent();var u=this.offsetFromParent,f=this.getDraggablePosition().x+u.left,c=this.getDraggablePosition().y+u.top;this.resizingPosition={x:f,y:c},this.props.onResize&&this.props.onResize(t,i,o,n,{x:f,y:c})},Rnd2.prototype.onResizeStop=function(t,i,o,n){this.setState({resizing:!1});var s=this.getMaxSizesFromProps(),a=s.maxWidth,l=s.maxHeight;this.setState({maxWidth:a,maxHeight:l}),this.props.onResizeStop&&this.props.onResizeStop(t,i,o,n,this.resizingPosition)},Rnd2.prototype.updateSize=function(t){this.resizable&&this.resizable.updateSize({width:t.width,height:t.height})},Rnd2.prototype.updatePosition=function(t){this.draggable.setState(t)},Rnd2.prototype.updateOffsetFromParent=function(){var t=this.props.scale,i=this.getParent(),o=this.getSelfElement();if(!i||null===o)return{top:0,left:0};var n=i.getBoundingClientRect(),s=n.left,a=n.top,l=o.getBoundingClientRect(),h=this.getDraggablePosition(),p=i.scrollLeft,d=i.scrollTop;this.offsetFromParent={left:l.left-s+p-h.x*t,top:l.top-a+d-h.y*t}},Rnd2.prototype.render=function(){var t=this,i=this.props,o=i.disableDragging,s=i.style,a=i.dragHandleClassName,l=i.position,h=i.onMouseDown,p=i.onMouseUp,d=i.dragAxis,u=i.dragGrid,f=i.bounds,c=i.enableUserSelectHack,g=i.cancel,m=i.children;i.onResizeStart,i.onResize,i.onResizeStop,i.onDragStart,i.onDrag,i.onDragStop;var b=i.resizeHandleStyles,y=i.resizeHandleClasses,v=i.resizeHandleComponent,w=i.enableResizing,S=i.resizeGrid,x=i.resizeHandleWrapperClass,z=i.resizeHandleWrapperStyle,D=i.scale,R=i.allowAnyClick,P=i.dragPositionOffset,W=function __rest(t,i){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&i.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(t);s<n.length;s++)i.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(o[n[s]]=t[n[s]])}return o}(i,["disableDragging","style","dragHandleClassName","position","onMouseDown","onMouseUp","dragAxis","dragGrid","bounds","enableUserSelectHack","cancel","children","onResizeStart","onResize","onResizeStop","onDragStart","onDrag","onDragStop","resizeHandleStyles","resizeHandleClasses","resizeHandleComponent","enableResizing","resizeGrid","resizeHandleWrapperClass","resizeHandleWrapperStyle","scale","allowAnyClick","dragPositionOffset"]),_=this.props.default?__assign({},this.props.default):void 0;delete W.default;var N,E=o||a?{cursor:"auto"}:{cursor:"move"},C=__assign(__assign(__assign({},j),E),s),T=this.offsetFromParent,H=T.left,O=T.top;l&&(N={x:l.x-H,y:l.y-O});var k,L=this.state.resizing?void 0:N,B=this.state.resizing?"both":d;return n.createElement(M,{ref:function(i){i&&(t.draggable=i)},handle:a?".".concat(a):void 0,defaultPosition:_,onMouseDown:h,onMouseUp:p,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,axis:B,disabled:o,grid:u,bounds:f?this.state.bounds:void 0,position:L,enableUserSelectHack:c,cancel:g,scale:D,allowAnyClick:R,nodeRef:this.resizableElement,positionOffset:P},n.createElement(A,__assign({},W,{ref:function(i){i&&(t.resizable=i,t.resizableElement.current=i.resizable)},defaultSize:_,size:this.props.size,enable:"boolean"==typeof w?(k=w,{bottom:k,bottomLeft:k,bottomRight:k,left:k,right:k,top:k,topLeft:k,topRight:k}):w,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,style:C,minWidth:this.props.minWidth,minHeight:this.props.minHeight,maxWidth:this.state.resizing?this.state.maxWidth:this.props.maxWidth,maxHeight:this.state.resizing?this.state.maxHeight:this.props.maxHeight,grid:S,handleWrapperClass:x,handleWrapperStyle:z,lockAspectRatio:this.props.lockAspectRatio,lockAspectRatioExtraWidth:this.props.lockAspectRatioExtraWidth,lockAspectRatioExtraHeight:this.props.lockAspectRatioExtraHeight,handleStyles:b,handleClasses:y,handleComponent:v,scale:this.props.scale}),m))},Rnd2.defaultProps={maxWidth:Number.MAX_SAFE_INTEGER,maxHeight:Number.MAX_SAFE_INTEGER,scale:1,onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},onDragStart:function(){},onDrag:function(){},onDragStop:function(){}},Rnd2}(n.PureComponent);export{L as R};