import { w2 as w } from "./chunk-6T6G6LCQ.js"; import { t } from "./chunk-YXWMMD76.js"; // node_modules/@arcgis/core/geometry/support/aaBoundingRect.js function i(n) { return n; } function u(n = L) { return i([n[0], n[1], n[2], n[3]]); } function e(n) { return i([n[0], n[1], n[2], n[3]]); } function a2(n, t2) { return n !== t2 && (n[0] = t2[0], n[1] = t2[1], n[2] = t2[2], n[3] = t2[3]), n; } function o(n, t2, r, i2, e2 = u()) { return e2[0] = n, e2[1] = t2, e2[2] = r, e2[3] = i2, e2; } function c(n, t2 = u()) { return t2[0] = n.xmin, t2[1] = n.ymin, t2[2] = n.xmax, t2[3] = n.ymax, t2; } function f(n, t2) { return new w({ xmin: n[0], ymin: n[1], xmax: n[2], ymax: n[3], spatialReference: t2 }); } function m(n, t2) { t2[0] < n[0] && (n[0] = t2[0]), t2[0] > n[2] && (n[2] = t2[0]), t2[1] < n[1] && (n[1] = t2[1]), t2[1] > n[3] && (n[3] = t2[1]); } function h(n, r, i2) { if (t(r)) a2(i2, n); else if ("length" in r) G(r) ? (i2[0] = Math.min(n[0], r[0]), i2[1] = Math.min(n[1], r[1]), i2[2] = Math.max(n[2], r[2]), i2[3] = Math.max(n[3], r[3])) : 2 !== r.length && 3 !== r.length || (i2[0] = Math.min(n[0], r[0]), i2[1] = Math.min(n[1], r[1]), i2[2] = Math.max(n[2], r[0]), i2[3] = Math.max(n[3], r[1])); else switch (r.type) { case "extent": i2[0] = Math.min(n[0], r.xmin), i2[1] = Math.min(n[1], r.ymin), i2[2] = Math.max(n[2], r.xmax), i2[3] = Math.max(n[3], r.ymax); break; case "point": i2[0] = Math.min(n[0], r.x), i2[1] = Math.min(n[1], r.y), i2[2] = Math.max(n[2], r.x), i2[3] = Math.max(n[3], r.y); } } function s(n) { return t(n) || n[0] >= n[2] ? 0 : n[2] - n[0]; } function l(n) { return n[1] >= n[3] ? 0 : n[3] - n[1]; } function y(n) { return s(n) * l(n); } function w2(n, t2, r) { return t2 >= n[0] && r >= n[1] && t2 <= n[2] && r <= n[3]; } function q(n, t2, r) { return t2[0] >= n[0] - r && t2[1] >= n[1] - r && t2[0] <= n[2] + r && t2[1] <= n[3] + r; } function E(n, t2) { return Math.max(t2[0], n[0]) <= Math.min(t2[2], n[2]) && Math.max(t2[1], n[1]) <= Math.min(t2[3], n[3]); } function R(n, t2) { return t2[0] >= n[0] && t2[2] <= n[2] && t2[1] >= n[1] && t2[3] <= n[3]; } function D(n) { return n ? a2(n, K) : u(K); } function G(n) { return null != n && 4 === n.length; } function I(n, t2) { return G(n) && G(t2) ? n[0] === t2[0] && n[1] === t2[1] && n[2] === t2[2] && n[3] === t2[3] : n === t2; } var J = i([-1 / 0, -1 / 0, 1 / 0, 1 / 0]); var K = i([1 / 0, 1 / 0, -1 / 0, -1 / 0]); var L = i([0, 0, 0, 0]); var N = i([0, 0, 1, 1]); export { u, e, o, c, f, m, h, s, l, y, w2 as w, q, E, R, D, I, K }; //# sourceMappingURL=chunk-2H5MD622.js.map