{"version":3,"sources":["node_modules/@arcgis/core/core/screenUtils.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*/\nconst n = /^-?(\\d+(\\.\\d+)?)\\s*((px)|(pt))?$/i,\n t = \"screenUtils.toPt: input not recognized!\",\n r = 96;\nfunction u(n) {\n return n ? n / 72 * r : 0;\n}\nfunction e(n) {\n return n ? 72 * n / r : 0;\n}\nfunction o(r) {\n if (\"string\" == typeof r) {\n const u = r.match(n);\n if (u) {\n const n = Number(u[1]),\n t = u[3] && u[3].toLowerCase(),\n o = \"-\" === r.charAt(0),\n c = \"px\" === t ? e(n) : n;\n return o ? -c : c;\n }\n return console.warn(t), null;\n }\n return r;\n}\nfunction c(n = 0, t = 0) {\n return {\n x: n,\n y: t\n };\n}\nfunction i(n) {\n return n ? c(n.x, n.y) : null;\n}\nfunction f(n = 0, t = 0) {\n return [n, t];\n}\nfunction x(n = 0, t = 0) {\n return {\n x: n,\n y: t\n };\n}\nfunction s(n = 0, t = 0) {\n return l([n, t]);\n}\nfunction y(n = 0, t = 0, r = 0) {\n return p([n, t, r]);\n}\nfunction l(n) {\n return n;\n}\nfunction p(n) {\n return n;\n}\nfunction a(n) {\n return n;\n}\nfunction d(n, t) {\n return t ? (t.x = n[0], t.y = n[1], t) : {\n x: n[0],\n y: n[1]\n };\n}\nfunction g(n, t) {\n return t ? (t[0] = n.x, t[1] = n.y, t.length > 2 && (t[2] = 0), t) : [n.x, n.y];\n}\nexport { l as castRenderScreenPointArray, p as castRenderScreenPointArray3, a as castScreenPointArray, i as cloneScreenPoint, x as createRenderScreenPoint, s as createRenderScreenPointArray, y as createRenderScreenPointArray3, c as createScreenPoint, f as createScreenPointArray, u as pt2px, e as px2pt, d as screenPointArrayToObject, g as screenPointObjectToArray, o as toPt };"],"mappings":"AAIA,IAAMA,EAAI,oCACRC,EAAI,0CAEN,SAASC,EAAE,EAAG,CACZ,OAAO,EAAI,EAAI,GAAK,GAAI,CAC1B,CACA,SAASC,EAAE,EAAG,CACZ,OAAO,EAAI,GAAK,EAAI,GAAI,CAC1B,CACA,SAASC,EAAEC,EAAG,CACZ,GAAgB,OAAOA,GAAnB,SAAsB,CACxB,IAAMH,EAAIG,EAAE,MAAMC,CAAC,EACnB,GAAIJ,EAAG,CACL,IAAMI,EAAI,OAAOJ,EAAE,CAAC,CAAC,EACnBK,EAAIL,EAAE,CAAC,GAAKA,EAAE,CAAC,EAAE,YAAY,EAC7B,EAAYG,EAAE,OAAO,CAAC,IAAlB,IACJG,EAAaD,IAAT,KAAaJ,EAAEG,CAAC,EAAIA,EAC1B,OAAO,EAAI,CAACE,EAAIA,CAClB,CACA,OAAO,QAAQ,KAAKD,CAAC,EAAG,IAC1B,CACA,OAAOF,CACT,CACA,SAASG,EAAE,EAAI,EAAGD,EAAI,EAAG,CACvB,MAAO,CACL,EAAG,EACH,EAAGA,CACL,CACF,CACA,SAASE,EAAE,EAAG,CACZ,OAAO,EAAID,EAAE,EAAE,EAAG,EAAE,CAAC,EAAI,IAC3B,CACA,SAASE,EAAE,EAAI,EAAGH,EAAI,EAAG,CACvB,MAAO,CAAC,EAAGA,CAAC,CACd,CAUA,SAASI,EAAE,EAAI,EAAGC,EAAI,EAAGC,EAAI,EAAG,CAC9B,MAAS,CAAC,EAAGD,EAAGC,CAAC,CACnB,CAgBA,SAASC,EAAE,EAAGC,EAAG,CACf,OAAOA,GAAKA,EAAE,CAAC,EAAI,EAAE,EAAGA,EAAE,CAAC,EAAI,EAAE,EAAGA,EAAE,OAAS,IAAMA,EAAE,CAAC,EAAI,GAAIA,GAAK,CAAC,EAAE,EAAG,EAAE,CAAC,CAChF","names":["n","t","u","e","o","r","n","t","c","i","f","y","t","r","g","t"],"x_google_ignoreList":[0]}