/*! All material copyright GeoScene, All Rights Reserved, unless otherwise specified.
See https://js.geoscene.cn/4.33/geoscene/copyright.txt for details.
v4.33.18 */
const t = ["metric", "imperial"], r = [
  "inches",
  "feet",
  "yards",
  "miles",
  "nautical-miles",
  "us-feet",
  "millimeters",
  "centimeters",
  "decimeters",
  "meters",
  "kilometers"
], a = [
  "square-inches",
  "square-feet",
  "square-yards",
  "square-miles",
  "square-nautical-miles",
  "square-us-feet",
  "square-millimeters",
  "square-centimeters",
  "square-decimeters",
  "square-meters",
  "square-kilometers",
  "acres",
  "ares",
  "hectares"
], n = [...t, ...a], i = [...t, ...r];
function u(e, s = !0) {
  return s ? e == null ? { state: "unavailable" } : { state: "available", value: e } : { state: "invalid" };
}
function m(e, s) {
  switch (s.type) {
    case "length":
      return e.formatLength(s);
    case "area":
      return e.formatArea(s);
    default:
      return "";
  }
}
export {
  n as a,
  m as f,
  u as g,
  i as m
};