
/* eslint-disable */
// sd-skip-auto-import
const customFormulas=t=>Promise.all(t?.map((({getModule:t,productKey:e,isCustom:r})=>t().then((t=>t.default)).then((t=>{if(r){const e=t.map((t=>t.data)).filter((t=>!t.startsWith("XM")));if(e.length){console.error("扩展目录formulas下的扩展公式必须以XM开头"+e.join(","));return[]}}else{const r=t.map((t=>t.data)).filter((t=>!t.startsWith(e.toLocaleUpperCase())));if(r.length){console.error(e+"目录下的扩展公式必须以"+e.toLocaleUpperCase()+"开头"+r.join(","));return[]}}return t}))))||[]).then((t=>{const e=[].concat(...t).filter((t=>void 0!==t));const r=e.map((t=>t.data));const o=r.filter(((t,e)=>r.slice(e+1).includes(t)));if(o.length){console.error("存在重名的公式",o.join(","));return[]}e.forEach((t=>t.params.forEach((t=>t.data="formalParameter"))));return e}));export default customFormulas;