{"version":3,"sources":["node_modules/@arcgis/core/views/support/screenUtils.js","node_modules/@arcgis/core/views/interactive/interfaces.js","node_modules/@arcgis/core/support/getDefaultUnitForView.js"],"sourcesContent":["/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport \"../../core/has.js\";\nimport { createScreenPoint as e, createScreenPointArray as t } from \"../../core/screenUtils.js\";\nfunction n(t) {\n return e(t.x, t.y);\n}\nfunction c(e) {\n return t(e.x, e.y);\n}\nfunction i(t, n) {\n const c = (t instanceof HTMLElement ? t : t.surface)?.getBoundingClientRect();\n return c ? e(n.clientX - c.left, n.clientY - c.top) : e(0, 0);\n}\nfunction r(e, t) {\n return t instanceof Event ? i(e, t) : n(t);\n}\nfunction o(e) {\n if (e instanceof Event) return !0;\n if (\"object\" == typeof e && \"type\" in e) {\n switch (e.type) {\n case \"click\":\n case \"double-click\":\n case \"pointer-down\":\n case \"pointer-drag\":\n case \"pointer-enter\":\n case \"pointer-leave\":\n case \"pointer-up\":\n case \"pointer-move\":\n case \"immediate-click\":\n case \"immediate-double-click\":\n case \"hold\":\n case \"drag\":\n case \"mouse-wheel\":\n return !0;\n default:\n return !1;\n }\n }\n return !1;\n}\nexport { c as createScreenPointArrayFromEvent, n as createScreenPointFromEvent, i as createScreenPointFromNativeEvent, r as createScreenPointFromSupportedEvent, o as isSupportedScreenPointEvent };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nvar o, t, u;\n!function (o) {\n o[o.USER = 0] = \"USER\", o[o.MANAGER = 1] = \"MANAGER\";\n}(o || (o = {})), function (o) {\n o[o.None = 0] = \"None\", o[o.Unfocused = 1] = \"Unfocused\", o[o.Focused = 2] = \"Focused\", o[o.Unselected = 4] = \"Unselected\", o[o.Selected = 8] = \"Selected\", o[o.All = 15] = \"All\";\n}(t || (t = {})), function (o) {\n o[o.None = 0] = \"None\", o[o.Custom1 = 16] = \"Custom1\", o[o.Custom2 = 32] = \"Custom2\", o[o.Custom3 = 64] = \"Custom3\", o[o.Custom4 = 128] = \"Custom4\", o[o.Custom5 = 256] = \"Custom5\", o[o.Custom6 = 512] = \"Custom6\", o[o.Custom7 = 1024] = \"Custom7\", o[o.Custom8 = 2048] = \"Custom8\", o[o.Custom9 = 4096] = \"Custom9\", o[o.Custom10 = 8192] = \"Custom10\", o[o.Custom11 = 16384] = \"Custom11\", o[o.Custom12 = 32768] = \"Custom12\", o[o.All = 65520] = \"All\";\n}(u || (u = {}));\nexport { o as EditableFlag, u as ManipulatorStateCustomFlags, t as ManipulatorStateFlags };","/*\nAll material copyright ESRI, All Rights Reserved, unless otherwise specified.\nSee https://js.arcgis.com/4.31/esri/copyright.txt for details.\n*/\nimport { getDefaultUnitSystem as t } from \"../core/unitUtils.js\";\nimport r from \"../portal/Portal.js\";\nfunction e(e) {\n const n = \"metric\";\n if (null == e) return n;\n const i = e.map,\n l = (i && \"portalItem\" in i ? i.portalItem?.portal : null) ?? r.getDefault();\n switch (l.user?.units ?? l.units) {\n case n:\n return n;\n case \"english\":\n return \"imperial\";\n }\n return t(e.spatialReference) ?? n;\n}\nexport { e as getDefaultUnitForView };"],"mappings":"yHAMA,SAASA,EAAEC,EAAG,CACZ,OAAOC,EAAED,EAAE,EAAGA,EAAE,CAAC,CACnB,CAIA,SAASE,EAAEC,EAAGC,EAAG,CACf,IAAMC,GAAKF,aAAa,YAAcA,EAAIA,EAAE,UAAU,sBAAsB,EAC5E,OAAOE,EAAIA,EAAED,EAAE,QAAUC,EAAE,KAAMD,EAAE,QAAUC,EAAE,GAAG,EAAIA,EAAE,EAAG,CAAC,CAC9D,CACA,SAASC,EAAE,EAAG,EAAG,CACf,OAAO,aAAa,MAAQJ,EAAE,EAAG,CAAC,EAAIE,EAAE,CAAC,CAC3C,CACA,SAASG,EAAE,EAAG,CACZ,GAAI,aAAa,MAAO,MAAO,GAC/B,GAAgB,OAAO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