openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 905 B
JavaScript
import{n as e}from"./rolldown-runtime-8BhlS34s.js";import{Lu as t,Pu as n,zu as r}from"./control-ui-core-CBJ5efDh.js";import{Aa as i,Ba as a,Qr as o,Zr as s,ka as c}from"./control-ui-core-DtLivg_r.js";import{jo as l}from"./ui-CmSP4d14.js";function u(e){return m[e]??e}function d(e,t){return e===`device`&&t?r(c(t)):e===`custodian`?s():a(e)}function f(e,n){let r=t.getLocale();if(h!==r&&(h=r,g=typeof Intl<`u`&&`Segmenter`in Intl?new Intl.Segmenter(r,{granularity:`word`}):null),!g)return e.split(/[^\p{L}\p{N}]+/u).some(e=>e.startsWith(n));for(let t of g.segment(e))if(t.isWordLike!==!1&&t.segment.startsWith(n))return!0;return!1}function p(e,t){let n=l(e).normalize(`NFC`),r=l(t).normalize(`NFC`);return r?r.length>2?n.includes(r):f(n,r):!1}var m,h,g;function _(){return(_=e((()=>{i(),o(),n(),m={"ai-agents":`agents`,"model-setup":`model-providers`},h=``,g=null})))()}export{p as i,d as n,u as r,_ as t};