openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
1 lines • 2.27 kB
JavaScript
import{n as e,r as t}from"./rolldown-runtime-CNOWq4Kh.js";import{EA as n,TA as r}from"./control-ui-boot-shared-DFTSUQQ0.js";import{J as i,j as a,u as o}from"./solid-runtime-C416s-HC.js";import{d as s,g as c,h as l,i as u,r as d,t as f,u as p}from"./lobster-pet-identity-Cg5EqPlD.js";function m(e,t={}){return n(()=>a(l,i({look:e},t)))}function h(){return(h=e((()=>{o(),r(),c()})))()}var g=t({loadLobsterImage:()=>_});async function _(e){let t=p.find(t=>t.id===e);if(!t)return null;let n=document.createElement(`div`);try{let e=f(t);n.className=`lobster-pet lobster-pet--palette-`+t.id,n.setAttribute(`aria-hidden`,`true`),n.style.cssText=u(e)+`;position:fixed;left:-10000px;top:0;bottom:auto;width:120px;height:105px;opacity:0;pointer-events:none;transform:none`,document.body.append(n);let r=m(e,{standalone:!0}),i=r.firstElementChild;if(!(i instanceof SVGSVGElement))return null;n.append(r);let a=[i,...i.querySelectorAll(`*`)];for(let e of a)e.style.setProperty(`animation`,`none`,`important`),e.style.setProperty(`transition`,`none`,`important`);let o=i.cloneNode(!0),s=[o,...o.querySelectorAll(`*`)];for(let[e,t]of a.entries()){let n=s[e];if(!n)continue;let r=getComputedStyle(t);n.removeAttribute(`class`),n.removeAttribute(`style`);for(let e of v){let t=r.getPropertyValue(e).replace(/url\(["']?[^)"']*#([^)"']+)["']?\)/g,`url("#$1")`);n.style.setProperty(e,t)}}let c=i.getBBox(),l=i.viewBox.baseVal,d=Math.min(l.x,c.x)-4,p=Math.min(l.y,c.y)-4,h=Math.max(l.x+l.width,c.x+c.width)-d+4,g=Math.max(l.y+l.height,c.y+c.height)-p+4;o.setAttribute(`viewBox`,[d,p,h,g].join(` `)),o.setAttribute(`width`,String(h)),o.setAttribute(`height`,String(g));let _=new Image;return _.src=`data:image/svg+xml;charset=utf-8,`+encodeURIComponent(new XMLSerializer().serializeToString(o)),await _.decode(),_}catch{return null}finally{n.remove()}}var v;function y(){return(y=e((()=>{d(),h(),s(),v=`color.fill.fill-opacity.fill-rule.stroke.stroke-width.stroke-opacity.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-dasharray.stroke-dashoffset.opacity.filter.clip-path.mask.display.visibility.transform.transform-origin.transform-box.shape-rendering.paint-order.font-family.font-size.font-weight.font-style.text-anchor.white-space`.split(`.`)})))()}export{_ as n,g as r,y as t};