1import{A as e,D as t,I as n,O as r,Ot as i,R as a,S as o,X as s,Zt as c,at as l,en as u,k as d,nt as f,vt as p,y as m}from"./C96IHz6Y.js";import{At as h}from"./Bs1PoT-q.js";import{n as g}from"./D7XweSOn.js";var _=new class{all=new Map;on(e,t){this.all.has(e)||this.all.set(e,new Set),this.all.get(e).add(t)}off(e,t){this.all.get(e)?.delete(t)}emit(e,t){this.all.get(e)?.forEach(e=>e(t))}clear(){this.all.clear()}},v=0;function y(e){_.emit(`add`,{life:3e3,severity:`info`,...e,id:++v})}function b(e){_.emit(`remove-group`,e)}function x(){_.emit(`remove-all`,void 0)}var S={add:y,removeGroup:b,removeAll:x,_bus:_},C=[`onMouseenter`,`onMouseleave`],w={class:`toast--inner`},T={class:`toast--title`},E=[`onClick`],D={key:0,class:`toast--text`},O=g(a({__name:`ToastContainer`,setup(a){let g=i([]),_=S._bus;function v(e){return{info:`info`,success:`success`,warn:`warn`,error:`error`}[e??`info`]??`info`}function y(e){let t={...e,remaining:e.life};g.value.push(t),O(t)}function b(e){g.value=g.value.filter(t=>t.group!==e)}function x(){g.value=[]}_.on(`add`,y),_.on(`remove-group`,b),_.on(`remove-all`,x),s(()=>{_.off(`add`,y),_.off(`remove-group`,b),_.off(`remove-all`,x)});function O(e){e.start=Date.now(),e.timer=setTimeout(()=>k(e.id),e.remaining??e.life)}function k(e){g.value=g.value.filter(t=>t.id!==e)}function A(e){e.timer&&(clearTimeout(e.timer),e.timer=void 0,e.remaining=(e.remaining??e.life??0)-(Date.now()-(e.start??0)))}function j(e){e.timer||O(e)}return(i,a)=>(f(),r(o,{to:`body`},[t(`div`,{class:c([`apr-ui toast--group`,{show:g.value.length}]),role:`region`,"aria-label":`Notifications`,"aria-live":`polite`},[n(h,{name:`toast`,tag:`div`},{default:p(()=>[(f(!0),e(m,null,l(g.value,n=>(f(),e(`div`,{key:n.id,class:c([`toast`,v(n.severity)]),role:`alert`,onMouseenter:e=>A(n),onMouseleave:e=>j(n)},[t(`div`,w,[t(`h6`,T,u(n.summary),1),t(`button`,{class:`toast--close`,type:`button`,"aria-label":`Close notification`,onClick:e=>k(n.id)},[...a[0]||=[t(`i`,{class:`apr apr-cancel_small_thin`,"aria-hidden":`true`},null,-1)]],8,E),n.detail?(f(),e(`p`,D,u(n.detail),1)):d(``,!0)])],42,C))),128))]),_:1})],2)]))}}),[[`__scopeId`,`data-v-6470ab6a`]]),k=[`/api`,`/dashboard`,`/docs`,`/pos`,`/_nuxt`],A=/^[a-z][a-z\d+.-]*:/i,j=/\/[^/?#]+\.[^/?#]+$/,M=e=>!e||e===`/`||e.endsWith(`/`)||j.test(e)?!1:!k.some(t=>e===t||e.startsWith(`${t}/`)),N=e=>{if(!e||e.startsWith(`#`)||A.test(e))return e;let t=new URL(e,`https://apirone.local`);return M(t.pathname)&&(t.pathname=`${t.pathname}/`),`${t.pathname}${t.search}${t.hash}`},P=(e,t)=>`${(e||``).replace(/\/+$/,``)}${N(t.startsWith(`/`)?t:`/${t}`)}`;export{O as n,S as r,P as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.