{"version":3,"sources":["node_modules/@arcgis/core/core/libs/gl-matrix-2/math/vec2.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 { RANDOM as t, getEpsilon as n } from \"./common.js\";\nfunction r(t, n) {\n return t[0] = n[0], t[1] = n[1], t;\n}\nfunction o(t, n, r) {\n return t[0] = n, t[1] = r, t;\n}\nfunction u(t, n, r) {\n return t[0] = n[0] + r[0], t[1] = n[1] + r[1], t;\n}\nfunction e(t, n, r) {\n return t[0] = n[0] - r[0], t[1] = n[1] - r[1], t;\n}\nfunction c(t, n, r) {\n return t[0] = n[0] * r[0], t[1] = n[1] * r[1], t;\n}\nfunction a(t, n, r) {\n return t[0] = n[0] / r[0], t[1] = n[1] / r[1], t;\n}\nfunction s(t, n) {\n return t[0] = Math.ceil(n[0]), t[1] = Math.ceil(n[1]), t;\n}\nfunction i(t, n) {\n return t[0] = Math.floor(n[0]), t[1] = Math.floor(n[1]), t;\n}\nfunction f(t, n, r) {\n return t[0] = Math.min(n[0], r[0]), t[1] = Math.min(n[1], r[1]), t;\n}\nfunction M(t, n, r) {\n return t[0] = Math.max(n[0], r[0]), t[1] = Math.max(n[1], r[1]), t;\n}\nfunction h(t, n) {\n return t[0] = Math.round(n[0]), t[1] = Math.round(n[1]), t;\n}\nfunction l(t, n, r) {\n return t[0] = n[0] * r, t[1] = n[1] * r, t;\n}\nfunction d(t, n, r, o) {\n return t[0] = n[0] + r[0] * o, t[1] = n[1] + r[1] * o, t;\n}\nfunction m(t, n) {\n const r = n[0] - t[0],\n o = n[1] - t[1];\n return Math.sqrt(r * r + o * o);\n}\nfunction b(t, n) {\n const r = n[0] - t[0],\n o = n[1] - t[1];\n return r * r + o * o;\n}\nfunction q(t) {\n const n = t[0],\n r = t[1];\n return Math.sqrt(n * n + r * r);\n}\nfunction p(t) {\n const n = t[0],\n r = t[1];\n return n * n + r * r;\n}\nfunction x(t, n) {\n return t[0] = -n[0], t[1] = -n[1], t;\n}\nfunction g(t, n) {\n return t[0] = 1 / n[0], t[1] = 1 / n[1], t;\n}\nfunction v(t, n) {\n const r = n[0],\n o = n[1];\n let u = r * r + o * o;\n return u > 0 && (u = 1 / Math.sqrt(u), t[0] = n[0] * u, t[1] = n[1] * u), t;\n}\nfunction j(t, n) {\n return t[0] * n[0] + t[1] * n[1];\n}\nfunction y(t, n, r) {\n const o = n[0] * r[1] - n[1] * r[0];\n return t[0] = t[1] = 0, t[2] = o, t;\n}\nfunction _(t, n, r, o) {\n const u = n[0],\n e = n[1];\n return t[0] = u + o * (r[0] - u), t[1] = e + o * (r[1] - e), t;\n}\nfunction A(n, r = 1) {\n const o = 2 * t() * Math.PI;\n return n[0] = Math.cos(o) * r, n[1] = Math.sin(o) * r, n;\n}\nfunction P(t, n, r) {\n const o = n[0],\n u = n[1];\n return t[0] = r[0] * o + r[2] * u, t[1] = r[1] * o + r[3] * u, t;\n}\nfunction S(t, n, r) {\n const o = n[0],\n u = n[1];\n return t[0] = r[0] * o + r[2] * u + r[4], t[1] = r[1] * o + r[3] * u + r[5], t;\n}\nfunction z(t, n, r) {\n const o = n[0],\n u = n[1];\n return t[0] = r[0] * o + r[3] * u + r[6], t[1] = r[1] * o + r[4] * u + r[7], t;\n}\nfunction D(t, n, r) {\n const o = n[0],\n u = n[1];\n return t[0] = r[0] * o + r[4] * u + r[12], t[1] = r[1] * o + r[5] * u + r[13], t;\n}\nfunction I(t, n, r, o) {\n const u = n[0] - r[0],\n e = n[1] - r[1],\n c = Math.sin(o),\n a = Math.cos(o);\n return t[0] = u * a - e * c + r[0], t[1] = u * c + e * a + r[1], t;\n}\nfunction L(t, n) {\n const r = t[0],\n o = t[1],\n u = n[0],\n e = n[1];\n let c = r * r + o * o;\n c > 0 && (c = 1 / Math.sqrt(c));\n let a = u * u + e * e;\n a > 0 && (a = 1 / Math.sqrt(a));\n const s = (r * u + o * e) * c * a;\n return s > 1 ? 0 : s < -1 ? Math.PI : Math.acos(s);\n}\nfunction O(t) {\n return \"vec2(\" + t[0] + \", \" + t[1] + \")\";\n}\nfunction E(t, n) {\n return t[0] === n[0] && t[1] === n[1];\n}\nfunction T(t, r) {\n const o = t[0],\n u = t[1],\n e = r[0],\n c = r[1],\n a = n();\n return Math.abs(o - e) <= a * Math.max(1, Math.abs(o), Math.abs(e)) && Math.abs(u - c) <= a * Math.max(1, Math.abs(u), Math.abs(c));\n}\nfunction k(t, n, r, o, u) {\n let e = n[0] - r[0],\n c = n[1] - r[1];\n const a = (o[0] * e + o[1] * c) * (u - 1);\n return e = o[0] * a, c = o[1] * a, t[0] = n[0] + e, t[1] = n[1] + c, t;\n}\nconst w = q,\n B = e,\n C = c,\n F = a,\n G = m,\n H = b,\n J = p,\n K = Object.freeze(Object.defineProperty({\n __proto__: null,\n add: u,\n angle: L,\n ceil: s,\n copy: r,\n cross: y,\n dist: G,\n distance: m,\n div: F,\n divide: a,\n dot: j,\n equals: T,\n exactEquals: E,\n floor: i,\n inverse: g,\n len: w,\n length: q,\n lerp: _,\n max: M,\n min: f,\n mul: C,\n multiply: c,\n negate: x,\n normalize: v,\n projectAndScale: k,\n random: A,\n rotate: I,\n round: h,\n scale: l,\n scaleAndAdd: d,\n set: o,\n sqrDist: H,\n sqrLen: J,\n squaredDistance: b,\n squaredLength: p,\n str: O,\n sub: B,\n subtract: e,\n transformMat2: P,\n transformMat2d: S,\n transformMat3: z,\n transformMat4: D\n }, Symbol.toStringTag, {\n value: \"Module\"\n }));\nexport { u as add, L as angle, s as ceil, r as copy, y as cross, G as dist, m as distance, F as div, a as divide, j as dot, T as equals, E as exactEquals, i as floor, g as inverse, w as len, q as length, _ as lerp, M as max, f as min, C as mul, c as multiply, x as negate, v as normalize, k as projectAndScale, A as random, I as rotate, h as round, l as scale, d as scaleAndAdd, o as set, H as sqrDist, J as sqrLen, b as squaredDistance, p as squaredLength, O as str, B as sub, e as subtract, P as transformMat2, S as transformMat2d, z as transformMat3, D as transformMat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EACL,OAAQ,EACR,KAAMb,EACN,IAAKZ,EACL,IAAKD,EACL,IAAK4B,EACL,SAAUhC,EACV,OAAQY,EACR,UAAWE,EACX,gBAAiBe,EACjB,OAAQX,EACR,OAAQM,EACR,MAAOlB,EACP,MAAOC,EACP,YAAaC,EACb,IAAKX,EACL,QAASsC,EACT,OAAQC,EACR,gBAAiB1B,EACjB,cAAeC,EACf,IAAKe,EACL,IAAKK,EACL,SAAUhC,EACV,cAAeqB,EACf,eAAgBC,EAChB,cAAeC,EACf,cAAeC,CACjB,EAAG,OAAO,YAAa,CACrB,MAAO,QACT,CAAC,CAAC","names":["r","t","o","u","e","c","a","s","i","f","M","h","l","d","m","b","p","x","g","v","j","y","_","A","n","P","S","z","D","I","L","O","E","T","k","w","B","C","F","G","H","J","K"],"x_google_ignoreList":[0]}