{"version":3,"sources":["node_modules/@arcgis/core/core/libs/gl-matrix-2/math/mat2d.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 { getEpsilon as t } from \"./common.js\";\nfunction n(t, n) {\n return t[0] = n[0], t[1] = n[1], t[2] = n[2], t[3] = n[3], t[4] = n[4], t[5] = n[5], t;\n}\nfunction a(t) {\n return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 1, t[4] = 0, t[5] = 0, t;\n}\nfunction r(t, n, a, r, u, o, e) {\n return t[0] = n, t[1] = a, t[2] = r, t[3] = u, t[4] = o, t[5] = e, t;\n}\nfunction u(t, n) {\n const a = n[0],\n r = n[1],\n u = n[2],\n o = n[3],\n e = n[4],\n s = n[5];\n let c = a * o - r * u;\n return c ? (c = 1 / c, t[0] = o * c, t[1] = -r * c, t[2] = -u * c, t[3] = a * c, t[4] = (u * s - o * e) * c, t[5] = (r * e - a * s) * c, t) : null;\n}\nfunction o(t) {\n return t[0] * t[3] - t[1] * t[2];\n}\nfunction e(t, n, a) {\n const r = n[0],\n u = n[1],\n o = n[2],\n e = n[3],\n s = n[4],\n c = n[5],\n i = a[0],\n M = a[1],\n h = a[2],\n f = a[3],\n b = a[4],\n l = a[5];\n return t[0] = r * i + o * M, t[1] = u * i + e * M, t[2] = r * h + o * f, t[3] = u * h + e * f, t[4] = r * b + o * l + s, t[5] = u * b + e * l + c, t;\n}\nfunction s(t, n, a) {\n const r = n[0],\n u = n[1],\n o = n[2],\n e = n[3],\n s = n[4],\n c = n[5],\n i = Math.sin(a),\n M = Math.cos(a);\n return t[0] = r * M + o * i, t[1] = u * M + e * i, t[2] = r * -i + o * M, t[3] = u * -i + e * M, t[4] = s, t[5] = c, t;\n}\nfunction c(t, n, a) {\n const r = n[0],\n u = n[1],\n o = n[2],\n e = n[3],\n s = n[4],\n c = n[5],\n i = a[0],\n M = a[1];\n return t[0] = r * i, t[1] = u * i, t[2] = o * M, t[3] = e * M, t[4] = s, t[5] = c, t;\n}\nfunction i(t, n, a) {\n const r = n[0],\n u = n[1],\n o = n[2],\n e = n[3],\n s = n[4],\n c = n[5],\n i = a[0],\n M = a[1];\n return t[0] = r, t[1] = u, t[2] = o, t[3] = e, t[4] = r * i + o * M + s, t[5] = u * i + e * M + c, t;\n}\nfunction M(t, n) {\n const a = Math.sin(n),\n r = Math.cos(n);\n return t[0] = r, t[1] = a, t[2] = -a, t[3] = r, t[4] = 0, t[5] = 0, t;\n}\nfunction h(t, n) {\n return t[0] = n[0], t[1] = 0, t[2] = 0, t[3] = n[1], t[4] = 0, t[5] = 0, t;\n}\nfunction f(t, n) {\n return t[0] = 1, t[1] = 0, t[2] = 0, t[3] = 1, t[4] = n[0], t[5] = n[1], t;\n}\nfunction b(t) {\n return \"mat2d(\" + t[0] + \", \" + t[1] + \", \" + t[2] + \", \" + t[3] + \", \" + t[4] + \", \" + t[5] + \")\";\n}\nfunction l(t) {\n return Math.sqrt(t[0] ** 2 + t[1] ** 2 + t[2] ** 2 + t[3] ** 2 + t[4] ** 2 + t[5] ** 2 + 1);\n}\nfunction m(t, n, a) {\n return t[0] = n[0] + a[0], t[1] = n[1] + a[1], t[2] = n[2] + a[2], t[3] = n[3] + a[3], t[4] = n[4] + a[4], t[5] = n[5] + a[5], t;\n}\nfunction d(t, n, a) {\n return t[0] = n[0] - a[0], t[1] = n[1] - a[1], t[2] = n[2] - a[2], t[3] = n[3] - a[3], t[4] = n[4] - a[4], t[5] = n[5] - a[5], t;\n}\nfunction p(t, n, a) {\n return t[0] = n[0] * a, t[1] = n[1] * a, t[2] = n[2] * a, t[3] = n[3] * a, t[4] = n[4] * a, t[5] = n[5] * a, t;\n}\nfunction x(t, n, a, r) {\n return t[0] = n[0] + a[0] * r, t[1] = n[1] + a[1] * r, t[2] = n[2] + a[2] * r, t[3] = n[3] + a[3] * r, t[4] = n[4] + a[4] * r, t[5] = n[5] + a[5] * r, t;\n}\nfunction y(t, n) {\n return t[0] === n[0] && t[1] === n[1] && t[2] === n[2] && t[3] === n[3] && t[4] === n[4] && t[5] === n[5];\n}\nfunction S(n, a) {\n const r = n[0],\n u = n[1],\n o = n[2],\n e = n[3],\n s = n[4],\n c = n[5],\n i = a[0],\n M = a[1],\n h = a[2],\n f = a[3],\n b = a[4],\n l = a[5],\n m = t();\n return Math.abs(r - i) <= m * Math.max(1, Math.abs(r), Math.abs(i)) && Math.abs(u - M) <= m * Math.max(1, Math.abs(u), Math.abs(M)) && Math.abs(o - h) <= m * Math.max(1, Math.abs(o), Math.abs(h)) && Math.abs(e - f) <= m * Math.max(1, Math.abs(e), Math.abs(f)) && Math.abs(s - b) <= m * Math.max(1, Math.abs(s), Math.abs(b)) && Math.abs(c - l) <= m * Math.max(1, Math.abs(c), Math.abs(l));\n}\nconst _ = e,\n g = d,\n j = Object.freeze(Object.defineProperty({\n __proto__: null,\n add: m,\n copy: n,\n determinant: o,\n equals: S,\n exactEquals: y,\n frob: l,\n fromRotation: M,\n fromScaling: h,\n fromTranslation: f,\n identity: a,\n invert: u,\n mul: _,\n multiply: e,\n multiplyScalar: p,\n multiplyScalarAndAdd: x,\n rotate: s,\n scale: c,\n set: r,\n str: b,\n sub: g,\n subtract: d,\n translate: i\n }, Symbol.toStringTag, {\n value: \"Module\"\n }));\nexport { m as add, n as copy, o as determinant, S as equals, y as exactEquals, l as frob, M as fromRotation, h as fromScaling, f as fromTranslation, a as identity, u as invert, j as m, _ as mul, e as multiply, p as multiplyScalar, x as multiplyScalarAndAdd, s as rotate, c as scale, r as set, b as str, g as sub, d as subtract, i as translate };"],"mappings":"wCAKA,SAASA,EAAEC,EAAGD,EAAG,CACf,OAAOC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAGC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAGC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAGC,EAAE,CAAC,EAAID,EAAE,CAAC,EAAGC,EAAE,CAAC,EAAID,EAAE,CAA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