import{B as e}from"./i18n-CsN8OUP9.js";import{t}from"./utils-BRwGVQJx.js";var n=e(`outline`,`cloud`,`Cloud`,[[`path`,{d:`M6.657 18c-2.572 0 -4.657 -2.007 -4.657 -4.483c0 -2.475 2.085 -4.482 4.657 -4.482c.393 -1.762 1.794 -3.2 3.675 -3.773c1.88 -.572 3.956 -.193 5.444 1c1.488 1.19 2.162 3.007 1.77 4.769h.99c1.913 0 3.464 1.56 3.464 3.486c0 1.927 -1.551 3.487 -3.465 3.487h-11.878`,key:`svg-0`}]]),r=e(`outline`,`help-circle`,`HelpCircle`,[[`path`,{d:`M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0`,key:`svg-0`}],[`path`,{d:`M12 16v.01`,key:`svg-1`}],[`path`,{d:`M12 13a2 2 0 0 0 .914 -3.782a1.98 1.98 0 0 0 -2.414 .483`,key:`svg-2`}]]),i=e(`outline`,`login`,`Login`,[[`path`,{d:`M15 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2`,key:`svg-0`}],[`path`,{d:`M21 12h-13l3 -3`,key:`svg-1`}],[`path`,{d:`M11 15l-3 -3`,key:`svg-2`}]]),a=e(`outline`,`pencil`,`Pencil`,[[`path`,{d:`M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4`,key:`svg-0`}],[`path`,{d:`M13.5 6.5l4 4`,key:`svg-1`}]]);function o(e){let t=String(e||``).trim();return!t||/^[a-z][a-z0-9+.-]*:\/\//i.test(t)?t:`http://${t}`}function s({active:e,prominent:n}){return t(`rounded-lg border transition-colors`,e?`border-primary bg-primary/[0.06] ring-2 ring-primary/20`:n?`border-(--ui-stroke-tertiary) bg-(--ui-bg-quinary) hover:bg-(--chrome-action-hover)`:`border-transparent bg-transparent text-(--ui-text-tertiary) hover:border-(--ui-stroke-tertiary) hover:bg-(--ui-bg-quinary)`)}var c=new Intl.Collator(void 0,{numeric:!0,sensitivity:`base`});function l(e){return[...e].sort((e,t)=>Number(t.kind===`local`)-Number(e.kind===`local`)||c.compare(e.label,t.label)||c.compare(e.id,t.id))}function u(e){return e.normalize(`NFKD`).replace(/\p{M}/gu,``).toLocaleLowerCase()}function d(e,t,n=[]){let r=u(t).trim().split(/\s+/).filter(Boolean);if(r.length===0)return!0;let i=u([e.label,e.kind,e.url,e.host,e.user,e.port==null?null:String(e.port),e.org,e.remoteProfile,...n].filter(e=>!!e).join(` `));return r.every(e=>i.includes(e))}function f(e){if(e.kind===`ssh`){let t=e.host?.trim();if(!t)return null;let n=`${e.user?.trim()?`${e.user.trim()}@`:``}${t}`;return e.port==null?n:`${n}:${e.port}`}return e.url?.trim()||null}function p(e){let t=f(e);return t?`${e.label}\n${t}`:e.label}export{o as a,r as c,s as i,n as l,p as n,a as o,l as r,i as s,d as t};