const e=`ai.openclaw.gateway`,t=`openclaw`,n=`gateway`,r=`openclaw`,i=`node`,a=`node.cmd`,o=[`clawdbot-gateway`,`moltbot-gateway`];function s(e){let t=e?.trim();return!t||t.toLowerCase()===`default`?null:t}function c(e){let t=s(e);return t?`-${t}`:``}function l(t){let n=s(t);return n?`ai.openclaw.${n}`:e}function u(e){return[]}function d(e){let t=c(e);return t?`openclaw-gateway${t}`:`openclaw-gateway`}function f(e){let t=s(e);return t?`OpenClaw Gateway (${t})`:`OpenClaw Gateway`}function p(e){let t=s(e?.profile),n=e?.version?.trim(),r=[];return t&&r.push(`profile: ${t}`),n&&r.push(`v${n}`),r.length===0?`OpenClaw Gateway`:`OpenClaw Gateway (${r.join(`, `)})`}function m(e){return e.description??p({profile:e.env.OPENCLAW_PROFILE,version:e.environment?.OPENCLAW_SERVICE_VERSION??e.env.OPENCLAW_SERVICE_VERSION})}function h(){return`ai.openclaw.node`}function g(){return`openclaw-node`}function _(){return`OpenClaw Node`}function v(e){let t=e?.version?.trim();return t?`OpenClaw Node Host (v${t})`:`OpenClaw Node Host`}function y(e,t){let n=[],r=``,i=!1,a=t?.escapeMode??`none`;for(let t=0;t<e.length;t++){let o=e[t];if(a===`backslash`&&o===`\\`){t+1<e.length&&(r+=e[t+1],t++);continue}if(a===`backslash-quote-only`&&o===`\\`&&t+1<e.length&&e[t+1]===`"`){r+=`"`,t++;continue}if(o===`"`){i=!i;continue}if(!i&&/\s/.test(o)){r&&=(n.push(r),``);continue}r+=o}return r&&n.push(r),n}export{g as _,o as a,a as c,c as d,m as f,h as g,u as h,t as i,v as l,f as m,e as n,i as o,d as p,n as r,r as s,y as t,l as u,_ as v};
