{"version":3,"sources":["node_modules/@arcgis/core/geometry/support/scaleUtils.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 { floatEqualAbsolute as t } from \"../../core/mathUtils.js\";\nimport { getMetersPerUnitForSR as n, inchesPerMeter as e } from \"../../core/unitUtils.js\";\nconst r = 96;\nfunction i(t, i) {\n const o = i || t.extent,\n u = t.width,\n c = n(o?.spatialReference);\n return o && u ? o.width / u * c * e * r : 0;\n}\nfunction o(t, i) {\n return t / (n(i) * e * r);\n}\nfunction u(t) {\n return t / (e * r);\n}\nfunction c(t, i) {\n return t * (n(i) * e * r);\n}\nfunction f(t, n) {\n const e = t.extent,\n r = t.width - (t.padding ? t.padding.left + t.padding.right : 0),\n i = o(n, e.spatialReference);\n return e.clone().expand(i * r / e.width);\n}\nfunction d(t, n, e) {\n return a(t, n) && p(t, e);\n}\nfunction a(n, e) {\n return 0 === e || t(n, e) || n < e;\n}\nfunction p(n, e) {\n return 0 === e || t(n, e) || n > e;\n}\nexport { f as getExtentForScale, o as getResolutionForScale, u as getResolutionInMetersForScale, i as getScale, c as getScaleForResolution, d as isInScaleRange };"],"mappings":"wFAMA,IAAMA,EAAI,GACV,SAASC,EAAEC,EAAGD,EAAG,CACf,IAAME,EAAIF,GAAKC,EAAE,OACfE,EAAIF,EAAE,MACNG,EAAIC,EAAEH,GAAG,gBAAgB,EAC3B,OAAOA,GAAKC,EAAID,EAAE,MAAQC,EAAIC,EAAIF,EAAIH,EAAI,CAC5C,CACA,SAASG,EAAED,EAAGD,EAAG,CACf,OAAOC,GAAKI,EAAEL,CAAC,EAAIE,EAAIH,EACzB,CAaA,SAASO,EAAEC,EAAGC,EAAGC,EAAG,CAClB,OAAOC,EAAEH,EAAGC,CAAC,GAAKG,EAAEJ,EAAGE,CAAC,CAC1B,CACA,SAASC,EAAEF,EAAGC,EAAG,CACf,OAAaA,IAAN,GAAWG,EAAEJ,EAAGC,CAAC,GAAKD,EAAIC,CACnC,CACA,SAASE,EAAEH,EAAGC,EAAG,CACf,OAAaA,IAAN,GAAWG,EAAEJ,EAAGC,CAAC,GAAKD,EAAIC,CACnC","names":["r","i","t","o","u","c","z","d","t","n","e","a","p","m"],"x_google_ignoreList":[0]}