import{$n as e,A as t,B as n,Bn as r,C as i,Cn as a,Dn as o,E as s,En as c,Fn as l,G as u,Gn as d,Gt as f,Hn as p,Ht as m,In as h,Jn as g,Kn as ee,Ln as _,M as v,Mn as y,Nn as te,On as ne,Ot as b,Pn as x,Qn as S,Rn as C,U as w,Un as re,V as ie,Vn as T,Wn as ae,Xn as oe,Xt as se,Yn as E,Z as ce,Zn as D,_t as O,a as le,an as ue,bn as de,cn as fe,ct as pe,d as me,dt as he,er as k,g as ge,gn as _e,gt as ve,ht as ye,i as be,it as xe,jn as A,jt as Se,kn as Ce,l as we,n as Te,o as Ee,or as De,pn as Oe,qn as j,r as ke,rt as Ae,tr as je,v as Me,w as Ne,wn as Pe,wt as Fe,x as Ie,xn as Le,xt as Re,y as ze,yn as Be,zn as Ve}from"./PageHeader.js";var He=void 0,Ue=typeof window<`u`&&window.trustedTypes;if(Ue)try{He=Ue.createPolicy(`vue`,{createHTML:e=>e})}catch{}var We=He?e=>He.createHTML(e):e=>e,Ge=`http://www.w3.org/2000/svg`,Ke=`http://www.w3.org/1998/Math/MathML`,M=typeof document<`u`?document:null,qe=M&&M.createElement(`template`),Je={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?M.createElementNS(Ge,e):t===`mathml`?M.createElementNS(Ke,e):n?M.createElement(e,{is:n}):M.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>M.createTextNode(e),createComment:e=>M.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>M.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),i!==a&&(i=i.nextSibling););else{qe.innerHTML=We(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=qe.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},N=`transition`,P=`animation`,F=Symbol(`_vtc`),Ye={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Xe=h({},le,Ye),Ze=(e=>(e.displayName=`Transition`,e.props=Xe,e))((e,{slots:t})=>w(be,$e(e),t)),I=(e,t=[])=>{T(e)?e.forEach(e=>e(...t)):e&&e(...t)},Qe=e=>e?T(e)?e.some(e=>e.length>1):e.length>1:!1;function $e(e){let t={};for(let n in e)n in Ye||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=et(i),g=m&&m[0],ee=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:te,onLeaveCancelled:ne,onBeforeAppear:b=_,onAppear:x=v,onAppearCancelled:S=y}=t,C=(e,t,n,r)=>{e._enterCancelled=r,R(e,t?u:s),R(e,t?l:o),n&&n()},w=(e,t)=>{e._isLeaving=!1,R(e,d),R(e,p),R(e,f),t&&t()},re=e=>(t,n)=>{let i=e?x:v,o=()=>C(t,e,n);I(i,[t,o]),nt(()=>{R(t,e?c:a),L(t,e?u:s),Qe(i)||it(t,r,g,o)})};return h(t,{onBeforeEnter(e){I(_,[e]),L(e,a),L(e,o)},onBeforeAppear(e){I(b,[e]),L(e,c),L(e,l)},onEnter:re(!1),onAppear:re(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>w(e,t);L(e,d),e._enterCancelled?(L(e,f),ct(e)):(ct(e),L(e,f)),nt(()=>{e._isLeaving&&(R(e,d),L(e,p),Qe(te)||it(e,r,ee,n))}),I(te,[e,n])},onEnterCancelled(e){C(e,!1,void 0,!0),I(y,[e])},onAppearCancelled(e){C(e,!0,void 0,!0),I(S,[e])},onLeaveCancelled(e){w(e),I(ne,[e])}})}function et(e){if(e==null)return null;if(ae(e))return[tt(e.enter),tt(e.leave)];{let t=tt(e);return[t,t]}}function tt(e){return De(e)}function L(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[F]||(e[F]=new Set)).add(t)}function R(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[F];n&&(n.delete(t),n.size||(e[F]=void 0))}function nt(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var rt=0;function it(e,t,n,r){let i=e._endId=++rt,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=at(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${N}Delay`),a=r(`${N}Duration`),o=ot(i,a),s=r(`${P}Delay`),c=r(`${P}Duration`),l=ot(s,c),u=null,d=0,f=0;t===N?o>0&&(u=N,d=o,f=a.length):t===P?l>0&&(u=P,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?N:P:null,f=u?u===N?a.length:c.length:0);let p=u===N&&/\b(?:transform|all)(?:,|$)/.test(r(`${N}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function ot(e,t){for(;e.lengthst(t)+st(e[n])))}function st(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function ct(e){return(e?e.ownerDocument:document).body.offsetHeight}function lt(e,t,n){let r=e[F];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var z=Symbol(`_vod`),ut=Symbol(`_vsh`),dt={name:`show`,beforeMount(e,{value:t},{transition:n}){e[z]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):B(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),B(e,!0),r.enter(e)):r.leave(e,()=>{B(e,!1)}):B(e,t))},beforeUnmount(e,{value:t}){B(e,t)}};function B(e,t){e.style.display=t?e[z]:`none`,e[ut]=!t}function ft(){dt.getSSRProps=({value:e})=>{if(!e)return{style:{display:`none`}}}}var pt=Symbol(``);function mt(e){let t=n();if(!t)return;let r=t.ut=(n=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(e=>V(e,n))},i=()=>{let n=e(t.proxy);t.ce?V(t.ce,n):ht(t.subTree,n),r(n)};pe(()=>{Re(i)}),he(()=>{f(i,te,{flush:`post`});let e=new MutationObserver(i);e.observe(t.subTree.el.parentNode,{childList:!0}),ye(()=>e.disconnect())})}function ht(e,t){if(e.shapeFlag&128){let n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ht(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)V(e.el,t);else if(e.type===we)e.children.forEach(e=>ht(e,t));else if(e.type===me){let{el:n,anchor:r}=e;for(;n&&(V(n,t),n!==r);)n=n.nextSibling}}function V(e,t){if(e.nodeType===1){let n=e.style,r=``;for(let e in t){let i=je(t[e]);n.setProperty(`--${e}`,i),r+=`--${e}: ${i};`}n[pt]=r}}var gt=/(?:^|;)\s*display\s*:/;function _t(e,t,n){let r=e.style,i=E(n),a=!1;if(n&&!i){if(t){if(E(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??U(r,t,``)}else for(let e in t)n[e]??U(r,e,``)}for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?U(r,i,``):xt(e,i,!E(t)&&t?t[i]:void 0,o)||U(r,i,o)}}else if(i){if(t!==n){let e=r[pt];e&&(n+=`;`+e),r.cssText=n,a=gt.test(n)}}else t&&e.removeAttribute(`style`);z in e&&(i&&t===n||(e[z]=a?r.display:``),e[ut]&&(r.display=`none`))}var H=/\s*!important$/;function U(e,t,n){if(T(n))n.forEach(n=>U(e,t,n));else if(n??=``,t.startsWith(`--`))H.test(n)?e.setProperty(t,n.replace(H,``),`important`):e.setProperty(t,n);else{let r=bt(e,t);H.test(n)?e.setProperty(C(r),n.replace(H,``),`important`):e[r]=n}}var vt=[`Webkit`,`Moz`,`ms`],yt={};function bt(e,t){let n=yt[t];if(n)return n;let r=x(t);if(r!==`filter`&&r in e)return yt[t]=r;r=l(r);for(let n=0;njt||=(Mt.then(()=>jt=0),Date.now());function Pt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(T(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,It=(e,t,n,r,i,a)=>{let o=i===`svg`;t===`class`?lt(e,r,o):t===`style`?_t(e,n,r):d(t)?re(t)||Dt(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),1):t[0]===`^`?(t=t.slice(1),0):Lt(e,t,r,o))?(wt(e,t,r),e.tagName.includes(`-`)||t!==`value`&&t!==`checked`&&t!==`selected`||Ct(e,t,r,o,a,t!==`value`)):e._isVueCE&&(Rt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!E(r)))?wt(e,x(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ct(e,t,r,o))};function Lt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Ft(t)&&p(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Ft(t)&&E(n)?!1:t in e}function Rt(e,t){let n=e._def.props;if(!n)return!1;let r=x(t);return Array.isArray(n)?n.some(e=>x(e)===r):Object.keys(n).some(e=>x(e)===r)}var zt={};function Bt(e,t,n){let r=v(e,t);ee(r)&&(r=h({},r,t));class i extends Ut{constructor(e){super(r,e,n)}}return i.def=r,i}var Vt=((e,t)=>Bt(e,t,In)),Ht=typeof HTMLElement<`u`?HTMLElement:class{},Ut=class e extends Ht{constructor(e,t={},n=Fn){super(),this._def=e,this._props=t,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._patching=!1,this._dirty=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._styleAnchors=new WeakMap,this._ob=null,this.shadowRoot&&n!==Fn?this._root=this.shadowRoot:e.shadowRoot===!1?this._root=this:(this.attachShadow(h({},e.shadowRootOptions,{mode:`open`})),this._root=this.shadowRoot)}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t&&=t.assignedSlot||t.parentNode||t.host;)if(t instanceof e){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{if(this._pendingResolve=void 0,this.isConnected)return this._resolveDef()}):this._resolveDef())}_setParent(e=this._parent){e&&(this._instance.parent=e._instance,this._inheritParentContext(e))}_inheritParentContext(e=this._parent){e&&this._app&&Object.setPrototypeOf(this._app._context.provides,e._instance.provides)}disconnectedCallback(){this._connected=!1,xe(()=>{this._connected||(this._ob&&=(this._ob.disconnect(),null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null,this._teleportTargets&&=(this._teleportTargets.clear(),void 0))})}_processMutations(e){for(let t of e)this._setAttr(t.attributeName)}_resolveDef(){if(this._pendingResolve)return this._pendingResolve;for(let e=0;e{this._resolved=!0,this._pendingResolve=void 0;let{props:n,styles:r}=e,i;if(n&&!T(n))for(let e in n){let t=n[e];(t===Number||t&&t.type===Number)&&(e in this._props&&(this._props[e]=De(this._props[e])),(i||=Object.create(null))[x(e)]=!0)}this._numberProps=i,this._resolveProps(e),this.shadowRoot&&this._applyStyles(r),this._connected&&this._mount(e)},t=this._def.__asyncLoader;if(t)return this._pendingResolve=t().then(t=>{t.configureApp=this._def.configureApp,e(this._def=t,!0)}),this._pendingResolve;e(this._def)}_mount(e){this._app=this._createApp(e),this._inheritParentContext(),e.configureApp&&e.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);let t=this._instance&&this._instance.exposed;if(t)for(let e in t)_(this,e)||Object.defineProperty(this,e,{get:()=>A(t[e])})}_resolveProps(e){let{props:t}=e,n=T(t)?t:Object.keys(t||{});for(let e of Object.keys(this))e[0]!==`_`&&n.includes(e)&&this._setProp(e,this[e]);for(let e of n.map(x))Object.defineProperty(this,e,{get(){return this._getProp(e)},set(t){this._setProp(e,t,!0,!this._patching)}})}_setAttr(e){if(e.startsWith(`data-v-`))return;let t=this.hasAttribute(e),n=t?this.getAttribute(e):zt,r=x(e);t&&this._numberProps&&this._numberProps[r]&&(n=De(n)),this._setProp(r,n,!1,!0)}_getProp(e){return this._props[e]}_setProp(e,t,n=!0,r=!1){if(t!==this._props[e]&&(this._dirty=!0,t===zt?delete this._props[e]:(this._props[e]=t,e===`key`&&this._app&&(this._app._ceVNode.key=t)),r&&this._instance&&this._update(),n)){let n=this._ob;n&&(this._processMutations(n.takeRecords()),n.disconnect()),t===!0?this.setAttribute(C(e),``):typeof t==`string`||typeof t==`number`?this.setAttribute(C(e),t+``):t||this.removeAttribute(C(e)),n&&n.observe(this,{attributes:!0})}}_update(){let e=this._createVNode();this._app&&(e.appContext=this._app._context),Nn(e,this._root)}_createVNode(){let e={};this.shadowRoot||(e.onVnodeMounted=e.onVnodeUpdated=this._renderSlots.bind(this));let n=t(this._def,h(e,this._props));return this._instance||(n.ce=e=>{this._instance=e,e.ce=this,e.isCE=!0;let t=(e,t)=>{this.dispatchEvent(new CustomEvent(e,ee(t[0])?h({detail:t},t[0]):{detail:t}))};e.emit=(e,...n)=>{t(e,n),C(e)!==e&&t(C(e),n)},this._setParent()}),n}_applyStyles(e,t,n){if(!e)return;if(t){if(t===this._def||this._styleChildren.has(t))return;this._styleChildren.add(t)}let r=this._nonce,i=this.shadowRoot,a=n?this._getStyleAnchor(n)||this._getStyleAnchor(this._def):this._getRootStyleInsertionAnchor(i),o=null;for(let s=e.length-1;s>=0;s--){let c=document.createElement(`style`);r&&c.setAttribute(`nonce`,r),c.textContent=e[s],i.insertBefore(c,o||a),o=c,s===0&&(n||this._styleAnchors.set(this._def,c),t&&this._styleAnchors.set(t,c))}}_getStyleAnchor(e){if(!e)return null;let t=this._styleAnchors.get(e);return t&&t.parentNode===this.shadowRoot?t:(t&&this._styleAnchors.delete(e),null)}_getRootStyleInsertionAnchor(e){for(let t=0;t(delete e.props.mode,e))({name:`TransitionGroup`,props:h({},Xe,{tag:String,moveClass:String}),setup(e,{slots:r}){let i=n(),a=m(),o,s,l,u,d=()=>(u===void 0&&(u=o.length>0&&on(o[0].el,i.vnode.el,$t(e))),u);return ve(()=>{if(Xt.delete(i),!d()){o=[],l=void 0;return}let t=$t(e);o.forEach(Qt);let n=l&&an(l,i.vnode.el);l=void 0,o.forEach(e=>en(e,n));let r=o.filter(tn);ct(i.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;L(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[G]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[G]=null,R(n,t))};n.addEventListener(`transitionend`,i)}),o=[]}),()=>{let n=c(e),f=$e(n),p=n.tag||we;if(o=[],u=void 0,s)for(let e=0;ee.willMove()&&e.item.contains(t));return n&&K(n.item,n)}function on(e,t,n){let r=e.cloneNode(),i=e[F];i&&i.forEach(e=>{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=at(r);return a.removeChild(r),o}var q=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return T(t)?e=>r(t,e):t};function sn(e){e.target.composing=!0}function cn(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var J=Symbol(`_assign`),ln=Symbol(`_initialValue`);function un(t,n,r){return n&&(t=t.trim()),r&&(t=e(t)),t}var dn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e.parentNode&&(e.type===`text`?e[ln]=e.defaultValue.replace(/[\r\n]/g,``):e.type===`textarea`&&(e[ln]=e.defaultValue.replace(/\r\n?/g,` `))),e[J]=q(i);let a=r||i.props&&i.props.type===`number`;W(e,t?`change`:`input`,t=>{t.target.composing||e[J](un(e.value,n,a))}),(n||a)&&W(e,`change`,()=>{e.value=un(e.value,n,a)}),t||(W(e,`compositionstart`,sn),W(e,`compositionend`,cn),W(e,`change`,cn))},mounted(e,{value:t,modifiers:{trim:n,number:r}}){let i=t??``,a=e[ln];delete e[ln],a!==void 0&&(e.type===`text`||e.type===`textarea`)&&e.value!==a?e[J](un(e.value,n,r)):e.value=i},beforeUpdate(t,{value:n,oldValue:r,modifiers:{lazy:i,trim:a,number:o}},s){if(t[J]=q(s),t.composing)return;let c=(o||t.type===`number`)&&!/^0\d/.test(t.value)?e(t.value):t.value,l=n??``;if(c===l)return;let u=t.getRootNode();(u instanceof Document||u instanceof ShadowRoot)&&u.activeElement===t&&t.type!==`range`&&(i&&n===r||a&&t.value.trim()===l)||(t.value=l)}},fn={deep:!0,created(e,t,n){e[J]=q(n),W(e,`change`,()=>{let t=e._modelValue,n=Y(e),r=e.checked,i=e[J];if(T(t)){let e=S(t,n),a=e!==-1;if(r&&!a)i(t.concat(n));else if(!r&&a){let n=[...t];n.splice(e,1),i(n)}}else if(j(t)){let e=new Set(t);r?e.add(n):e.delete(n),i(e)}else i(vn(e,r))})},mounted:pn,beforeUpdate(e,t,n){e[J]=q(n),pn(e,t,n)}};function pn(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(T(t))i=S(t,r.props.value)>-1;else if(j(t))i=t.has(r.props.value);else{if(t===n)return;i=D(t,vn(e,!0))}e.checked!==i&&(e.checked=i)}var mn={created(e,{value:t},n){e.checked=D(t,n.props.value),e[J]=q(n),W(e,`change`,()=>{e[J](Y(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[J]=q(r),t!==n&&(e.checked=D(t,r.props.value))}},hn={deep:!0,created(t,{value:n,modifiers:{number:r}},i){t._modelValue=n,W(t,`change`,()=>{let n=Array.prototype.filter.call(t.options,e=>e.selected).map(t=>r?e(Y(t)):Y(t)),i=t.multiple,a=i?j(t._modelValue)?new Set(n):n:n[0],o=t._pendingValue=[i,i?T(a)?n.slice():n:a];try{t[J](a)}finally{xe(()=>{t._pendingValue===o&&(t._pendingValue=void 0)})}}),t[J]=q(i)},mounted(e,{value:t}){_n(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[J]=q(n)},updated(e,{value:t}){let n=e._pendingValue;e._pendingValue=void 0,n&&n[0]===e.multiple&&gn(t,n[1],n[0])||_n(e,t)}};function gn(e,t,n){if(!n||T(e))return D(e,t);if(j(e)){if(e.size!==t.length)return!1;for(let n of t)if(!e.has(n))return!1;return!0}return!1}function _n(e,t){let n=e.multiple,r=T(t);if(!n||r||j(t)){for(let i=0,a=e.options.length;iString(e)===String(o)):S(t,o)>-1}else a.selected=t.has(o)}else if(D(Y(a),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Y(e){return`_value`in e?e._value:e.value}function vn(e,t){let n=t?`_trueValue`:`_falseValue`;return n in e?e[n]:t}var yn={created(e,t,n){xn(e,t,n,null,`created`)},mounted(e,t,n){xn(e,t,n,null,`mounted`)},beforeUpdate(e,t,n,r){xn(e,t,n,r,`beforeUpdate`)},updated(e,t,n,r){xn(e,t,n,r,`updated`)}};function bn(e,t){switch(e){case`SELECT`:return hn;case`TEXTAREA`:return dn;default:switch(t){case`checkbox`:return fn;case`radio`:return mn;default:return dn}}}function xn(e,t,n,r,i){let a=bn(e.tagName,n.props&&n.props.type)[i];a&&a(e,t,n,r)}function Sn(){dn.getSSRProps=({value:e})=>({value:e}),mn.getSSRProps=({value:e},t)=>{if(t.props&&D(t.props.value,e))return{checked:!0}},fn.getSSRProps=({value:e},t)=>{if(T(e)){if(t.props&&S(e,t.props.value)>-1)return{checked:!0}}else if(j(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},yn.getSSRProps=(e,t)=>{if(typeof t.type!=`string`)return;let n=bn(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}var Cn=[`ctrl`,`shift`,`alt`,`meta`],wn={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>Cn.some(n=>e[`${n}Key`]&&!t.includes(n))},Tn=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=C(n.key);if(t.some(e=>e===r||En[e]===r))return e(n)}))},On=h({patchProp:It},Je),kn,An=!1;function jn(){return kn||=s(On)}function Mn(){return kn=An?kn:Ne(On),An=!0,kn}var Nn=((...e)=>{jn().render(...e)}),Pn=((...e)=>{Mn().hydrate(...e)}),Fn=((...e)=>{let t=jn().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Rn(e);if(!r)return;let i=t._component;p(i)||i.render||i.template||(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,Ln(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t}),In=((...e)=>{let t=Mn().createApp(...e),{mount:n}=t;return t.mount=e=>{let t=Rn(e);if(t)return n(t,!0,Ln(t))},t});function Ln(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Rn(e){return E(e)?document.querySelector(e):e}var zn=!1,Bn=()=>{zn||(zn=!0,Sn(),ft())};function Vn(e){return e?e.flatMap(e=>e.type===we?Vn(e.children):[e]):[]}var Hn=v({name:`PrimitiveSlot`,inheritAttrs:!1,setup(e,{attrs:t,slots:n}){return()=>{if(!n.default)return null;let e=Vn(n.default()),r=e.findIndex(e=>e.type!==Ee);if(r===-1)return e;let i=e[r];delete i.props?.ref;let a=i.props?Ae(t,i.props):t,o=Me({...i,props:{}},a);return e.length===1?o:(e[r]=o,e)}}}),Un=[`area`,`img`,`input`],Wn=v({name:`Primitive`,inheritAttrs:!1,props:{asChild:{type:Boolean,default:!1},as:{type:[String,Object],default:`div`}},setup(e,{attrs:t,slots:n}){let r=e.asChild?`template`:e.as;return typeof r==`string`&&Un.includes(r)?()=>w(r,t):r===`template`?()=>w(Hn,t,{default:n.default}):()=>w(e.as,t,{default:n.default})}}),Gn=v({__name:`Button`,props:{variant:{},size:{},class:{type:[Boolean,null,String,Object,Array]},asChild:{type:Boolean},as:{default:`button`}},setup(e){let t=e;return(n,r)=>(O(),Ie(A(Wn),{"data-slot":`button`,"data-variant":e.variant,"data-size":e.size,as:e.as,"as-child":e.asChild,class:k(A(Te)(A(Kn)({variant:e.variant,size:e.size}),t.class))},{default:se(()=>[Fe(n.$slots,`default`)]),_:3},8,[`data-variant`,`data-size`,`as`,`as-child`,`class`]))}}),Kn=ke(`focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 aria-invalid:ring-3 active:not-aria-[haspopup]:translate-y-px [&_svg:not([class*=size-])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground [a]:hover:bg-primary/80`,outline:`border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground`,secondary:`bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground`,ghost:`hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground`,destructive:`bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30`,link:`text-primary underline-offset-4 hover:underline`,attention:`border-warn bg-warn-soft font-medium text-warn hover:bg-warn-soft/80`},size:{default:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,xs:`h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3`,sm:`h-8 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*=size-])]:size-3.5`,lg:`h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2`,icon:`size-9`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*=size-])]:size-3`,"icon-sm":`size-8 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-10`}},defaultVariants:{variant:`default`,size:`default`}});function qn(e,t,n={}){let r,i,a,o=!0,s=()=>{o=!0,a()};f(e,s,{flush:`sync`,...n});let c=typeof t==`function`?t:t.get,l=typeof t==`function`?void 0:t.set,u=ue((e,t)=>(i=e,a=t,{get(){return o&&=(r=c(r),!1),i(),r},set(e){l?.(e)}}));return u.trigger=s,u}function Jn(e,t){return fe()?(_e(e,t),!0):!1}var Yn=new WeakMap,Xn=(...e)=>{let t=e[0],r=n()?.proxy??fe();if(r==null&&!u())throw Error(`injectLocal must be called in setup`);return r&&Yn.has(r)&&t in Yn.get(r)?Yn.get(r)[t]:ce(...e)},X=typeof window<`u`&&typeof document<`u`;typeof WorkerGlobalScope<`u`&&globalThis instanceof WorkerGlobalScope;var Zn=e=>e!==void 0,Qn=Object.prototype.toString,$n=e=>Qn.call(e)===`[object Object]`,er=()=>{};function tr(...e){if(e.length!==1)return o(...e);let t=e[0];return typeof t==`function`?de(ue(()=>({get:t,set:er}))):Le(t)}function nr(e,t){function n(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return`cancel`in e&&Object.assign(n,{cancel:e.cancel,flush:e.flush,isPending:e.isPending}),n}var rr=e=>e();function ir(e=rr,t={}){let{initialState:n=`active`}=t,r=tr(n===`active`);function i(){r.value=!1}function o(){r.value=!0}return{isActive:a(r),pause:i,resume:o,eventFilter:(...t)=>{r.value&&e(...t)}}}function ar(e,t=!1,n=`Timeout`){return new Promise((r,i)=>{t?setTimeout(i,e,n):setTimeout(r,e)})}function or(e){return e}function sr(e){let t;function n(){return t||=e(),t}return n.reset=async()=>{let e=t;t=void 0,e&&await e},n}function cr(e,t){if(typeof e==`number`)return e+t;let n=e.match(/^-?\d+\.?\d*/)?.[0]||``,r=e.slice(n.length),i=Number.parseFloat(n)+t;return Number.isNaN(i)?e:i+r}function lr(e){return e.endsWith(`rem`)?Number.parseFloat(e)*16:Number.parseFloat(e)}function ur(e){return Array.isArray(e)?e:[e]}function dr(e){let t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))}var fr=/-(\w)/g,pr=dr(e=>e.replace(fr,(e,t)=>t?t.toUpperCase():``));function mr(e){return e||n()}function hr(e,t){if(typeof Symbol<`u`){let n={...e};return Object.defineProperty(n,Symbol.iterator,{enumerable:!1,value(){let e=0;return{next:()=>({value:t[e++],done:e>t.length})}}}),n}return Object.assign([...t],e)}function gr(e){if(!Oe(e))return Be(e);let t=new Proxy({},{get(t,n,r){return A(Reflect.get(e.value,n,r))},set(t,n,r){return Oe(e.value[n])&&!Oe(r)?e.value[n].value=r:e.value[n]=r,!0},deleteProperty(t,n){return Reflect.deleteProperty(e.value,n)},has(t,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return Be(t)}function _r(e){return gr(ze(e))}function vr(e,...t){let n=t.flat(),r=n[0];return _r(()=>Object.fromEntries(typeof r==`function`?Object.entries(ne(e)).filter(([e,t])=>!r(Ce(t),e)):Object.entries(ne(e)).filter(e=>!n.includes(e[0]))))}function yr(e,t,n={}){let{eventFilter:r=rr,...i}=n;return f(e,nr(r,t),i)}function br(e,t,n={}){let{eventFilter:r,initialState:i=`active`,...a}=n,{eventFilter:o,pause:s,resume:c,isActive:l}=ir(r,{initialState:i});return{stop:yr(e,t,{...a,eventFilter:o}),pause:s,resume:c,isActive:l}}function xr(e,t=!0,n){mr(n)?he(e,n):t?e():xe(e)}function Sr(e,t=1e3,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,o=null,s=Pe(!1);function c(){o&&=(clearInterval(o),null)}function l(){s.value=!1,c()}function u(){let n=Ce(t);n<=0||(s.value=!0,i&&e(),c(),s.value&&(o=setInterval(e,n)))}return r&&X&&u(),(Oe(t)||typeof t==`function`)&&Jn(f(t,()=>{s.value&&X&&u()})),Jn(l),{isActive:a(s),pause:l,resume:u}}function Cr(e,t,n={}){let{immediate:r=!0,immediateCallback:i=!1}=n,o=Pe(!1),s;function c(){s&&=(clearTimeout(s),void 0)}function l(){o.value=!1,c()}function u(...n){i&&e(),c(),o.value=!0,s=setTimeout(()=>{o.value=!1,s=void 0,e(...n)},Ce(t))}return r&&(o.value=!0,X&&u()),Jn(l),{isPending:a(o),start:u,stop:l}}function wr(e,t,n){return f(e,t,{...n,immediate:!0})}var Tr=v({__name:`Alert`,props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(e){let t=e;return(n,r)=>(O(),i(`div`,{"data-slot":`alert`,class:k(A(Te)(A(Or)({variant:e.variant}),t.class)),role:`alert`},[Fe(n.$slots,`default`)],2))}}),Er=v({__name:`AlertDescription`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(O(),i(`div`,{"data-slot":`alert-description`,class:k(A(Te)(`text-fg-muted text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class))},[Fe(e.$slots,`default`)],2))}}),Dr=v({__name:`AlertTitle`,props:{class:{type:[Boolean,null,String,Object,Array]}},setup(e){let t=e;return(e,n)=>(O(),i(`div`,{"data-slot":`alert-title`,class:k(A(Te)(`font-medium group-has-[>svg]/alert:col-start-2 cn-font-heading [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t.class))},[Fe(e.$slots,`default`)],2))}}),Or=ke(`grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*=size-])]:size-4 group/alert relative w-full`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`,warn:`border-warn/40 bg-warn-soft *:[svg]:text-warn`}},defaultVariants:{variant:`default`}});function kr(e){return e===0?`reconnecting`:e===1?`live`:`unavailable`}function Ar(e){return Math.min(1e3*2**e,3e4)}function jr(e,t){let n=new URLSearchParams;return e&&n.set(`since`,e),t&&n.set(`topics`,`logs`),`/api/stream${n.size?`?${n}`:``}`}function Mr(e=globalThis.crypto){if(typeof e?.randomUUID==`function`)return e.randomUUID();let t=new Uint8Array(16);if(typeof e?.getRandomValues==`function`)e.getRandomValues(t);else for(let e=0;ee.toString(16).padStart(2,`0`));return`${n.slice(0,4).join(``)}-${n.slice(4,6).join(``)}-${n.slice(6,8).join(``)}-${n.slice(8,10).join(``)}-${n.slice(10).join(``)}`}var Nr=15e3;function Z(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e||{}))if(r!==``&&r!=null){if(Array.isArray(r))for(let e of r)e!==``&&e!=null&&t.append(n,String(e));else t.set(n,String(r))}let n=t.toString();return n?`?${n}`:``}async function Pr(e){try{let t=(await e.text()).trim();if(t)return t.split(` `)[0].slice(0,200)}catch{}return`${e.status} ${e.statusText}`}var Fr;function Ir(e){Fr=e}var Lr=class extends Error{status;constructor(e,t){super(e),this.name=`ApiError`,this.status=t}};function Rr(e){let t=e instanceof Lr?e.status:void 0,n=e instanceof Error&&e.message?e.message:`Action failed`;return t===401?{kind:`session-expired`,message:n}:t!==void 0&&t>=400&&t<500?{kind:`refused`,message:n}:{kind:`broken`,message:n}}async function zr(e,t){let n=await fetch(e,t);if(Fr?.(n.status===401),!n.ok)throw new Lr(await Pr(n),n.status);return n}async function Q(e,t={}){let{method:n=`GET`,body:r,timeoutMs:i=Nr,parse:a=!0}=t,o={Accept:`application/json`},s={method:n,headers:o,signal:AbortSignal.timeout(i)};n!==`GET`&&(o[`Content-Type`]=`application/json`,o[`X-Archie-CSRF`]=`1`),r!==void 0&&(s.body=JSON.stringify(r));let c=await zr(e,s);return a?await c.json():void 0}var Br={recoveryCode:()=>Q(`/api/account/recovery`,{method:`POST`,body:{}}),recoverAccount:(e,t,n)=>Q(`/api/auth/recover`,{method:`POST`,body:{email:e,code:t,password:n},parse:!1}),authStatus:()=>Q(`/api/auth/status`),setupAccount:e=>Q(`/api/auth/setup`,{method:`POST`,body:e}),signIn:(e,t)=>Q(`/api/auth/login`,{method:`POST`,body:{email:e,password:t}}),signOut:()=>Q(`/api/auth/logout`,{method:`POST`,body:{},parse:!1}),createAccount:e=>Q(`/api/accounts`,{method:`POST`,body:e}),changePassword:(e,t)=>Q(`/api/account/password`,{method:`POST`,body:{current_password:e,new_password:t},parse:!1}),authentication:()=>Q(`/api/authentication`),saveAuthentication:e=>Q(`/api/authentication`,{method:`PUT`,body:e,parse:!1}),tokens:()=>Q(`/api/tokens`),createToken:()=>Q(`/api/tokens`,{method:`POST`,body:{}}),revokeToken:e=>Q(`/api/tokens/${encodeURIComponent(e)}`,{method:`DELETE`,body:{},parse:!1}),passkeys:()=>Q(`/api/account/passkeys`),deletePasskey:e=>Q(`/api/account/passkeys/${encodeURIComponent(e)}`,{method:`DELETE`,body:{},parse:!1}),beginPasskey:e=>Q(e?`/api/account/passkeys/begin`:`/api/auth/passkey/begin`,{method:`POST`,body:{}}),finishPasskey:(e,t,n)=>Q(e?`/api/account/passkeys/finish`:`/api/auth/passkey/finish`,{method:`POST`,body:{credential:t,name:n}}),secretEngines:()=>Q(`/api/secret-engines`),checkSecret:e=>Q(`/api/secret-references/check`,{method:`POST`,body:e}),health:()=>Q(`/health/detailed`),services:()=>Q(`/api/services`),policies:()=>Q(`/api/access/policies`),putPolicy:e=>Q(`/api/access/policies`,{method:`PUT`,body:e}),deletePolicy:e=>Q(`/api/access/policies`,{method:`DELETE`,body:e,parse:!1}),schedules:()=>Q(`/api/schedules`),scheduleSave:(e,t)=>Q(`/api/schedules/${encodeURIComponent(e)}`,{method:`PUT`,body:t}),scheduleDelete:e=>Q(`/api/schedules/${encodeURIComponent(e)}`,{method:`DELETE`,parse:!1}),scheduleRunNow:e=>Q(`/api/schedules/${encodeURIComponent(e)}/runs`,{method:`POST`,body:{}}),scheduleRuns:e=>Q(`/api/schedules/${encodeURIComponent(e)}/runs`),orgs:()=>Q(`/api/orgs`),orgCreate:e=>Q(`/api/orgs`,{method:`POST`,body:e}),org:e=>Q(`/api/orgs/${encodeURIComponent(e)}`),orgWorkspaces:e=>Q(`/api/orgs/${encodeURIComponent(e)}/workspaces`),createOrgWorkspace:(e,t)=>Q(`/api/orgs/${encodeURIComponent(e)}/workspaces`,{method:`POST`,body:t}),orgAgents:e=>Q(`/api/orgs/${encodeURIComponent(e)}/agents`),orgMembers:e=>Q(`/api/orgs/${encodeURIComponent(e)}/members`),addOrgMember:(e,t)=>Q(`/api/orgs/${encodeURIComponent(e)}/members`,{method:`POST`,body:t}),setOrgMember:(e,t,n)=>Q(`/api/orgs/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}`,{method:`PUT`,body:n}),removeOrgMember:(e,t,n)=>Q(`/api/orgs/${encodeURIComponent(e)}/members/${encodeURIComponent(t)}`+Z({workspace:n}),{method:`DELETE`,parse:!1}),assignOrgAgent:(e,t)=>Q(`/api/orgs/${encodeURIComponent(e)}/agents/${encodeURIComponent(t)}`,{method:`PUT`}),alerts:()=>Q(`/api/alerts`),dismissAlert:e=>Q(`/api/alerts/${e}/dismiss`,{method:`POST`,parse:!1}),identities:()=>Q(`/api/identities`),identityCreate:e=>Q(`/api/identities`,{method:`POST`,body:e}),identityCommand:(e,t,n)=>Q(`/api/identities/${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{method:`POST`,body:n}),summary:()=>Q(`/api/summary`),tasks:()=>Q(`/api/tasks`),taskPage:async e=>{let t=await zr(`/api/tasks`+Z(e),{headers:{Accept:`application/json`},signal:AbortSignal.timeout(Nr)});return{tasks:await t.json(),next:t.headers.get(`X-Next-Cursor`)}},taskMeta:()=>Q(`/api/task-meta`),task:e=>Q(`/api/tasks/${encodeURIComponent(e)}`),taskAttempts:e=>Q(`/api/tasks/${encodeURIComponent(e)}/attempts`),taskChanges:(e,t)=>Q(`/api/tasks/${encodeURIComponent(e)}/changes`+Z(t)),taskDebug:(e,t)=>Q(`/api/tasks/${encodeURIComponent(e)}/debug`+Z(t)),taskAction:(e,t,n)=>Q(`/api/tasks/${encodeURIComponent(e)}/action`,{method:`POST`,body:{action:t,...n}}),setup:()=>Q(`/api/setup`),capabilities:()=>Q(`/api/capabilities`),workflows:()=>Q(`/api/workflows`),workflowEnabled:(e,t)=>Q(`/api/workflows/${encodeURIComponent(e)}/enabled`,{method:`PUT`,body:{enabled:t},parse:!1}),checkRepository:e=>Q(`/api/control-plane/resources/repository-policies/check`,{method:`POST`,body:e,timeoutMs:35e3}),repositories:()=>Q(`/api/repositories`),workRequest:e=>Q(`/api/work-requests`,{method:`POST`,body:e}),skills:()=>Q(`/api/skills`),channels:()=>Q(`/api/channels`),curators:()=>Q(`/api/curators`),channelReload:e=>Q(`/api/channels/${encodeURIComponent(e)}/reload`,{method:`POST`,body:{}}),config:()=>Q(`/api/config`),audit:(e={})=>Q(`/api/audit`+Z(e)),auditExportURL:(e,t={})=>`/api/audit/export`+Z({...t,format:e}),logs:e=>Q(`/api/logs`+Z(e)),taskLogs:(e,t)=>Q(`/api/tasks/${encodeURIComponent(e)}/logs`+Z(t)),taskLogDownloadURL:(e,t)=>`/api/tasks/${encodeURIComponent(e)}/logs/download`+(t==null?``:`?attempt=${t}`),version:()=>Q(`/api/version`),updateSnapshot:()=>Q(`/api/chat/update`),updateDefer:e=>Q(`/api/chat/update/defer`,{method:`POST`,body:{snapshot:e}}),updateInstall:e=>Q(`/api/chat/update/install`,{method:`POST`,body:{snapshot:e},timeoutMs:9e5}),captures:e=>Q(`/api/captures`+Z({limit:e})),eventTypes:e=>Q(`/api/event-types`+Z({workspace:e})),eventTypeCreate:e=>Q(`/api/event-types`,{method:`POST`,body:e}),eventTypeUpdate:(e,t)=>Q(`/api/event-types/${encodeURIComponent(e)}`,{method:`PUT`,body:t}),eventTypeDelete:e=>Q(`/api/event-types/${encodeURIComponent(e)}`,{method:`DELETE`,parse:!1}),mappings:e=>Q(`/api/mappings`+Z({workspace:e})),mappingCreate:e=>Q(`/api/mappings`,{method:`POST`,body:e}),mappingUpdate:(e,t)=>Q(`/api/mappings/${encodeURIComponent(e)}`,{method:`PATCH`,body:t}),mappingDelete:e=>Q(`/api/mappings/${encodeURIComponent(e)}`,{method:`DELETE`,parse:!1}),mappingPreview:(e,t)=>Q(`/api/mappings/preview`,{method:`POST`,body:{capture_id:e,fields:t}}),bindings:e=>Q(`/api/bindings`+Z({workspace:e})),dispatches:(e,t)=>Q(`/api/${e}/${encodeURIComponent(t)}/dispatches`),bindingCreate:e=>Q(`/api/bindings`,{method:`POST`,body:e}),bindingUpdate:(e,t)=>Q(`/api/bindings/${encodeURIComponent(e)}`,{method:`PATCH`,body:t}),bindingDelete:e=>Q(`/api/bindings/${encodeURIComponent(e)}`,{method:`DELETE`,parse:!1}),bindingApprove:e=>Q(`/api/bindings/${encodeURIComponent(e)}/approve`,{method:`POST`}),bindingPause:e=>Q(`/api/bindings/${encodeURIComponent(e)}/pause`,{method:`POST`}),bindingResume:e=>Q(`/api/bindings/${encodeURIComponent(e)}/resume`,{method:`POST`}),harnessBindings:()=>Q(`/api/harness/bindings`),sources:e=>Q(`/api/sources`+Z({workspace:e})),sourceCreate:(e,t=``)=>Q(`/api/sources`,{method:`POST`,body:{path:e,workspace:t}}),sourceSigning:(e,t)=>Q(`/api/sources/${encodeURIComponent(e)}/signing`,{method:`POST`,body:{signed:t}}),sourceApproveUnsigned:e=>Q(`/api/sources/${encodeURIComponent(e)}/approve-unsigned`,{method:`POST`}),sourceName:(e,t)=>Q(`/api/sources/${encodeURIComponent(e)}/name`,{method:`PUT`,body:{name:t}}),sourceDeliveryHeader:(e,t)=>Q(`/api/sources/${encodeURIComponent(e)}/delivery-header`,{method:`PUT`,body:{header:t}}),sourceDelete:e=>Q(`/api/sources/${encodeURIComponent(e)}`,{method:`DELETE`,parse:!1}),sourceSecret:e=>Q(`/api/sources/${encodeURIComponent(e)}/secret`,{method:`POST`}),chatSessions:()=>Q(`/api/chat/sessions`),chatAnswer:(e,t)=>Q(`/api/chat/answer`,{method:`POST`,body:{id:e,answer:t}}),chatMessages:e=>Q(`/api/chat/sessions/${encodeURIComponent(e)}/messages`),chatTurns:e=>Q(`/api/chat/sessions/${encodeURIComponent(e)}/turns`),chatCancel:e=>Q(`/api/chat/cancel`,{method:`POST`,body:{session_id:e}}),chatMessage:(e,t)=>Q(`/api/chat/message`,{method:`POST`,body:{channel_id:e,source_id:Mr(),text:t,page:location.pathname+location.search||`/`}}),chatStream:(e,t={})=>zr(`/api/chat/stream`,{method:`POST`,headers:{Accept:`text/event-stream`,"Content-Type":`application/json`,"X-Archie-CSRF":`1`},body:JSON.stringify(e),signal:t.signal})};function Vr(e,t,n=``,r=!1){let i=new EventSource(jr(n,r));return i.onopen=()=>t(`live`),i.onerror=()=>t(kr(i.readyState)),i.onmessage=t=>{try{e(JSON.parse(t.data),t.lastEventId)}catch{}},()=>i.close()}var $={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`},Hr=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim();function Ur(e){return e!=null}function Wr(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??$.width,a=e.size??e.height??$.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?Hr(...c):Hr(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??$[`stroke-width`])*Number(e.size??e.width??$.width)/Number(t.size??t.width??$.width):t.strokeWidth??$[`stroke-width`];return[`svg`,{...Object.entries($).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&Ur(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&Ur(t.width)&&{[r(`width`)]:t.width},...`height`in t&&Ur(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}var Gr=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},Kr=e=>e===``,qr=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),Jr=Symbol(`lucide-icons`);function Yr(){return ce(Jr,{})}var Xr=({name:e,iconNode:t,"icon-node":n,icon:r={name:e&&qr(e),node:t??n??[],size:24,aliases:[]},absoluteStrokeWidth:i,"absolute-stroke-width":a,nonScalingStroke:o,"non-scaling-stroke":s,strokeWidth:c,"stroke-width":l,size:u,width:d=u,height:f=u,color:p,...m},{slots:h})=>{let{size:g,color:ee,strokeWidth:_=2,absoluteStrokeWidth:v=!1,nonScalingStroke:y=!1,class:te=``}=Yr(),ne=Kr(i)||Kr(a)||i===!0||a===!0||v===!0,b=Kr(o)||Kr(s)||o===!0||s===!0||y===!0;delete m.class;let x=h.default?.(),[,S,C=[]]=Wr(r,{color:p??ee,width:d??u??g,height:f??u??g,strokeWidth:c??l??_,absoluteStrokeWidth:ne,nonScalingStroke:b,className:te,hasA11yProp:x!=null&&x.length>0||Gr(m),attributes:m});return w(`svg`,S,[...C.map(([e,t])=>w(e,t)),...x??[]])};function Zr(e,t=[]){let n=typeof e==`string`?{name:e,node:t}:e;return(e,{slots:t})=>w(Xr,{...e,icon:n},t.default?{default:t.default}:void 0)}export{fn as $,wr as A,Fn as B,lr as C,Jn as D,xr as E,Hn as F,Bn as G,Bt as H,Vn as I,Nn as J,Je as K,Ze as L,Kn as M,Gn as N,Sr as O,Wn as P,Gt as Q,Zt as R,ar as S,ur as T,Vt as U,In as V,Pn as W,mt as X,Kt as Y,Wt as Z,Xn as _,Ir as a,Dn as at,$n as b,Ar as c,Tr as d,yn as et,pr as f,cr as g,or as h,Rr as i,dt as it,br as j,Cr as k,Dr as l,sr as m,Lr as n,hn as nt,Vr as o,Tn as ot,qn as p,It as q,Br as r,dn as rt,Mr as s,Zr as t,mn as tt,Er as u,X as v,vr as w,hr as x,Zn as y,Ut as z};