/* COPYRIGHT Esri - https://js.arcgis.com/5.1.0/LICENSE.txt */
import{assert as i}from"./Util.js";const n=0,e=15,o=4,s=7,d=o+3,r=7,t=d+3,u=1;function c({sourceIndex:c,subdivision:p,type:v,capSide:a}){return i(c>=0&&c<=e,"invalid sourceIndex"),i(p>=0&&p<=s,"invalid subdivision"),(c&e)<<n|(p&s)<<o|(v&r)<<d|(a&u)<<t}function p(i){return{sourceIndex:i>>n&e,subdivision:i>>o&s,type:i>>d&r,capSide:i>>t&u}}export{p as decodePathVertexInfo,c as encodePathVertexInfo,u as pathVertexInfoCapSideMask,t as pathVertexInfoCapSideShift,e as pathVertexInfoSourceIndexMask,n as pathVertexInfoSourceIndexShift,s as pathVertexInfoSubdivisionMask,o as pathVertexInfoSubdivisionShift,r as pathVertexInfoTypeMask,d as pathVertexInfoTypeShift};
