/*
All material copyright ESRI, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.24/esri/copyright.txt for details.
*/
define(["exports","../../core/has","../../core/screenUtils"],(function(e,t,n){"use strict";function r(e){return n.createScreenPoint(e.x,e.y)}function c(e){return n.createScreenPointArray(e.x,e.y)}function o(e,t){const r=(e instanceof HTMLElement?e:e.surface).getBoundingClientRect();return n.createScreenPoint(t.clientX-r.left,t.clientY-r.top)}function i(e,t){return t instanceof Event?o(e,t):r(t)}function a(e){if(e instanceof Event)return!0;if("object"==typeof e&&"type"in e){switch(e.type){case"click":case"double-click":case"pointer-down":case"pointer-drag":case"pointer-enter":case"pointer-leave":case"pointer-up":case"pointer-move":case"immediate-click":case"immediate-double-click":case"hold":case"drag":case"mouse-wheel":return!0;default:return!1}}return!1}e.createScreenPointArrayFromEvent=c,e.createScreenPointFromEvent=r,e.createScreenPointFromNativeEvent=o,e.createScreenPointFromSupportedEvent=i,e.isSupportedScreenPointEvent=a,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
