/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{unitIds as t,datums as n,wkids as o,units as r,unitInMeters as e,datumIds as c,directions as s,types as f}from"./vcsData.js";function u(t){const n=[];let o=0;for(const r of t){for(let t=0;t<r;t++)n.push(o);o=1-o}return n}function i(t){const n=[];let o=0;for(const r of t)o+=r,n.push(o);return n}function a(){const a=i(o),p=u(f),l=u(s),m=r.map((t,n)=>({name:t,conversionFactor:e[n]})),h=new Map;for(let o=0;o<a.length;o++){const r=0===p[o]?0:1,e=0===l[o]?0:1,s=m[t[o]],f=n[c[o]];h.set(a[o],{type:r,direction:e,unit:s,datum:f})}return h}const p=a();export{p as vcsLookup};
