import{d9 as y,f as l,da as u,aT as m,h as g,aB as d,c8 as f,bu as b,U as c}from"./index-C1DmWO_C.js";const o=y({String:"string",Integer:"integer",Float:"number",Boolean:"boolean","Array of Float":"arraynumber","Array of Integer":"arrayinteger","Array of String":"arraystring","Array of Boolean":"arrayboolean"}),A=a=>a.reduce((e,{name:r,description:t,required:s,type:i})=>{if(r==="")return e;const p=i[0];if(p.includes("Array")){const n=p.slice(p.lastIndexOf(" ")+1);e.properties[r]={description:t,type:"array",items:{type:o.getByKey(n)}}}else e.properties[r]={type:o.getByKey(p),...t?{description:t}:{description:""}};return s&&e.required.push(r),e},{properties:{},required:[]}),q=a=>Object.entries(a.properties).map(([e,{description:r,type:t,items:s}])=>({name:e,type:[o.getByValue(t+(s?s.type:""))],required:a.required.includes(e),description:r??""})),T=l(c("properties"),b,d(f(["type","description","items"])),u(m(g)));export{A as a,T as j,q as m,o as p};
