UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

1 lines • 639 B
import{n as e}from"./rolldown-runtime-CNOWq4Kh.js";import{Da as t,Ea as n,Pa as r}from"./control-ui-connection-Bfj9beF_.js";import{gc as i}from"./control-ui-boot-chat-DewxEbIm.js";function a(e,n){let a=new Map,s=t=>{let o=n[t];if(o)return r(a,t,async()=>{i(e,(await o()).default),delete n[t]},{evictOnSettled:!0})};return t(e,{load:s,async prepare(t){await Promise.all(Object.keys(n).filter(n=>o(t[n],e[n])).map(s).filter(e=>e!==void 0))}}),e}function o(e,t){return typeof e==`string`?typeof t!=`string`:Object.entries(e??{}).some(([e,n])=>o(n,typeof t==`object`?t[e]:void 0))}function s(){return(s=e((()=>{n()})))()}export{s as n,a as t};