{"version":3,"sources":["node_modules/@arcgis/core/views/2d/support/clippingUtils.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 { polygonContainsPoint as t, extentContainsPoint as e, ringsContainsCoords as o } from \"../../../geometry/support/contains.js\";\nconst r = t => parseFloat(t) / 100;\nfunction n(t, e, o) {\n const n = \"string\" == typeof t.left ? r(t.left) * e : t.left,\n m = \"string\" == typeof t.right ? r(t.right) * e : t.right,\n y = \"string\" == typeof t.top ? r(t.top) * o : t.top,\n a = \"string\" == typeof t.bottom ? r(t.bottom) * o : t.bottom,\n i = y;\n return {\n xmin: n,\n xmax: Math.max(e - m, n),\n ymin: i,\n ymax: Math.max(o - a, y)\n };\n}\nfunction m(r, m, y, a) {\n switch (m.type) {\n case \"rect\":\n {\n const {\n width: t,\n height: e\n } = r,\n {\n xmin: o,\n xmax: a,\n ymin: i,\n ymax: p\n } = n(m, t, e),\n {\n x: g,\n y: s\n } = y;\n return g > o && g < a && s > i && s < p;\n }\n case \"path\":\n return 0 === m.path.length || !Array.isArray(m.path[0][0]) || o(m.path, [y.x, y.y]);\n case \"geometry\":\n return null == m.geometry || (\"polygon\" === m.geometry.type ? t(m.geometry, a) : e(m.geometry, a));\n }\n}\nexport { m as clipContainsPoint, n as createScreenExtent };"],"mappings":"sDAKA,IAAMA,EAAI,GAAK,WAAW,CAAC,EAAI,IAC/B,SAASC,EAAE,EAAGC,EAAG,EAAG,CAClB,IAAMD,EAAgB,OAAO,EAAE,MAArB,SAA4BD,EAAE,EAAE,IAAI,EAAIE,EAAI,EAAE,KACtDC,EAAgB,OAAO,EAAE,OAArB,SAA6BH,EAAE,EAAE,KAAK,EAAIE,EAAI,EAAE,MACpDE,EAAgB,OAAO,EAAE,KAArB,SAA2BJ,EAAE,EAAE,GAAG,EAAI,EAAI,EAAE,IAChDK,EAAgB,OAAO,EAAE,QAArB,SAA8BL,EAAE,EAAE,MA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