whose-turn 1.0.0-alpha.4 → 1.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,18 +0,0 @@
1
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&s(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function s(r){if(r.ep)return;r.ep=!0;const i=n(r);fetch(r.href,i)}})();/**
2
- * @vue/shared v3.5.44
3
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
4
- * @license MIT
5
- **/function Zn(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const j={},tt=[],Ae=()=>{},Xs=()=>!1,sn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),rn=e=>e.startsWith("onUpdate:"),Z=Object.assign,kn=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ci=Object.prototype.hasOwnProperty,V=(e,t)=>ci.call(e,t),E=Array.isArray,Be=e=>Pt(e)==="[object Map]",it=e=>Pt(e)==="[object Set]",bs=e=>Pt(e)==="[object Date]",R=e=>typeof e=="function",J=e=>typeof e=="string",de=e=>typeof e=="symbol",H=e=>e!==null&&typeof e=="object",Qs=e=>(H(e)||R(e))&&R(e.then)&&R(e.catch),Zs=Object.prototype.toString,Pt=e=>Zs.call(e),ui=e=>Pt(e).slice(8,-1),ks=e=>Pt(e)==="[object Object]",on=e=>J(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,yt=Zn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ln=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},ai=/-\w/g,he=ln(e=>e.replace(ai,t=>t.slice(1).toUpperCase())),di=/\B([A-Z])/g,Le=ln(e=>e.replace(di,"-$1").toLowerCase()),er=ln(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tn=ln(e=>e?`on${er(e)}`:""),ee=(e,t)=>!Object.is(e,t),Ut=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},tr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},fn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let xs;const cn=()=>xs||(xs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function es(e){if(E(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=J(s)?_i(s):es(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(J(e)||H(e))return e}const hi=/;(?![^(]*\))/g,pi=/:([^]+)/,gi=/"(?:[^"\\]|\\[^])*"|'(?:[^'\\]|\\[^])*'|\\[^]|\/\*[^]*?\*\//g;function _i(e){const t={};return e.replace(gi,n=>n.startsWith("/*")?"":n).split(hi).forEach(n=>{if(n){const s=n.split(pi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ts(e){let t="";if(J(e))t=e;else if(E(e))for(let n=0;n<e.length;n++){const s=ts(e[n]);s&&(t+=s+" ")}else if(H(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const mi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,playsinline,readonly",yi=Zn(mi);function nr(e){return!!e||e===""}function bi(e,t,n){if(e.length!==t.length)return!1;let s=!0;for(let r=0;s&&r<e.length;r++)s=Ge(e[r],t[r],n);return s}function vs(e,t,n){if(e.size!==t.size)return!1;const s=Array.from(t),r=new Uint8Array(s.length);for(const i of e){let o=-1;for(let l=0;l<s.length;l++)if(!r[l]&&Ge(i,s[l],n)){o=l;break}if(o<0)return!1;r[o]=1}return!0}function xi(e,t,n){let s=Be(e),r=Be(t);if(s||r||(s=it(e),r=it(t),s||r))return s&&r?vs(e,t,n):!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const l in e){const c=e.hasOwnProperty(l),d=t.hasOwnProperty(l);if(c&&!d||!c&&d||!Ge(e[l],t[l],n))return!1}return String(e)===String(t)}function Ss(e,t,n,s){n||(n=[new Map,new Map]);const[r,i]=n;if(r.has(e)||i.has(t))return r.get(e)===t&&i.get(t)===e;r.set(e,t),i.set(t,e);const o=s(e,t,n);return r.delete(e),i.delete(t),o}function Ge(e,t,n){if(e===t)return!0;let s=bs(e),r=bs(t);return s||r?s&&r?e.getTime()===t.getTime():!1:(s=de(e),r=de(t),s||r?e===t:(s=E(e),r=E(t),s||r?s&&r?Ss(e,t,n,bi):!1:(s=H(e),r=H(t),s||r?!s||!r?!1:Ss(e,t,n,xi):String(e)===String(t))))}function vi(e,t){return e.findIndex(n=>Ge(n,t))}const sr=e=>!!(e&&e.__v_isRef===!0),Si=e=>J(e)?e:e==null?"":E(e)||H(e)&&(e.toString===Zs||!R(e.toString))?sr(e)?Si(e.value):JSON.stringify(e,rr,2):String(e),rr=(e,t)=>sr(t)?rr(e,t.value):Be(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[On(s,i)+" =>"]=r,n),{})}:it(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>On(n))}:de(t)?On(t):H(t)&&!E(t)&&!ks(t)?String(t):t,On=(e,t="")=>{var n;return de(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
6
- * @vue/reactivity v3.5.44
7
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
- * @license MIT
9
- **/let X;class wi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&X&&(X.active?(this.parent=X,this.index=(X.scopes||(X.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const s=this.scopes.slice();for(t=0,n=s.length;t<n;t++)s[t].pause()}for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes){const r=this.scopes.slice();for(t=0,n=r.length;t<n;t++)r[t].resume()}const s=this.effects.slice();for(t=0,n=s.length;t<n;t++)s[t].resume()}}run(t){if(this._active){const n=X;try{return X=this,t()}finally{X=n}}}on(){++this._on===1&&(this.prevScope=X,X=this)}off(){if(this._on>0&&--this._on===0){if(X===this)X=this.prevScope;else{let t=X;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){const r=this.scopes.slice();for(n=0,s=r.length;n<s;n++)r[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Ci(){return X}function Gl(e,t=!1){X&&X.cleanups.push(e)}let W;const En=new WeakSet;class ir{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,X&&(X.active?X.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,En.has(this)&&(En.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||lr(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,ws(this),fr(this);const t=W,n=ye;W=this,ye=!0;try{return this.fn()}finally{cr(this),W=t,ye=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)rs(t);this.deps=this.depsTail=void 0,ws(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?En.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ln(this)&&this.run()}get dirty(){return Ln(this)}}let or=0,bt,xt;function lr(e,t=!1){if(e.flags|=8,t){e.next=xt,xt=e;return}e.next=bt,bt=e}function ns(){or++}function ss(){if(--or>0)return;if(xt){let t=xt;for(xt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;bt;){let t=bt;for(bt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function fr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function cr(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),rs(s),Ti(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Ln(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ur(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ur(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===wt)||(e.globalVersion=wt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ln(e))))return;e.flags|=2;const t=e.dep,n=W,s=ye;W=e,ye=!0;try{fr(e);const r=e.fn(e._value);(t.version===0||ee(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{W=n,ye=s,cr(e),e.flags&=-3}}function rs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)rs(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Ti(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ye=!0;const ar=[];function Me(){ar.push(ye),ye=!1}function Re(){const e=ar.pop();ye=e===void 0?!0:e}function ws(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=W;W=void 0;try{t()}finally{W=n}}}let wt=0;class Oi{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class un{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!W||!ye||W===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==W)n=this.activeLink=new Oi(W,this),W.deps?(n.prevDep=W.depsTail,W.depsTail.nextDep=n,W.depsTail=n):W.deps=W.depsTail=n,dr(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=W.depsTail,n.nextDep=void 0,W.depsTail.nextDep=n,W.depsTail=n,W.deps===n&&(W.deps=s)}return n}trigger(t){this.version++,wt++,this.notify(t)}notify(t){ns();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{ss()}}}function dr(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)dr(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const qt=new WeakMap,st=Symbol(""),$n=Symbol(""),Ct=Symbol("");function te(e,t,n){if(ye&&W){let s=qt.get(e);s||qt.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new un),r.map=s,r.key=n),r.track()}}function Ne(e,t,n,s,r,i){const o=qt.get(e);if(!o){wt++;return}const l=c=>{c&&c.trigger()};if(ns(),t==="clear")o.forEach(l);else{const c=E(e),d=c&&on(n);if(c&&n==="length"){const a=Number(s);o.forEach((p,C)=>{(C==="length"||C===Ct||!de(C)&&C>=a)&&l(p)})}else switch((n!==void 0||o.has(void 0))&&l(o.get(n)),d&&l(o.get(Ct)),t){case"add":c?d&&l(o.get("length")):(l(o.get(st)),Be(e)&&l(o.get($n)));break;case"delete":c||(l(o.get(st)),Be(e)&&l(o.get($n)));break;case"set":Be(e)&&l(o.get(st));break}}ss()}function Ei(e,t){const n=qt.get(e);return n&&n.get(t)}function ot(e){const t=N(e);return t===e||(te(t,"iterate",Ct),ae(e))?t:Ie(e)?qe(e)?t.map(n=>Je(pe(n))):t.map(Je):t.map(pe)}function an(e){return te(e=N(e),"iterate",Ct),e}function Te(e,t){return Ie(e)?Je(qe(e)?pe(t):t):pe(t)}const Ai={__proto__:null,[Symbol.iterator](){return An(this,Symbol.iterator,e=>Te(this,e))},concat(...e){return ot(this).concat(...e.map(t=>E(t)?ot(t):t))},entries(){return An(this,"entries",e=>(e[1]=Te(this,e[1]),e))},every(e,t){return Fe(this,"every",e,t,void 0,arguments)},filter(e,t){return Fe(this,"filter",e,t,n=>n.map(s=>Te(this,s)),arguments)},find(e,t){return Fe(this,"find",e,t,n=>Te(this,n),arguments)},findIndex(e,t){return Fe(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Fe(this,"findLast",e,t,n=>Te(this,n),arguments)},findLastIndex(e,t){return Fe(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Fe(this,"forEach",e,t,void 0,arguments)},includes(...e){return Pn(this,"includes",e)},indexOf(...e){return Pn(this,"indexOf",e)},join(e){return ot(this).join(e)},lastIndexOf(...e){return Pn(this,"lastIndexOf",e)},map(e,t){return Fe(this,"map",e,t,void 0,arguments)},pop(){return pt(this,"pop")},push(...e){return pt(this,"push",e)},reduce(e,...t){return Ts(this,"reduce",e,t)},reduceRight(e,...t){return Ts(this,"reduceRight",e,t)},shift(){return pt(this,"shift")},some(e,t){return Fe(this,"some",e,t,void 0,arguments)},splice(...e){return pt(this,"splice",e)},toReversed(){return ot(this).toReversed()},toSorted(e){return ot(this).toSorted(e)},toSpliced(...e){return ot(this).toSpliced(...e)},unshift(...e){return pt(this,"unshift",e)},values(){return An(this,"values",e=>Te(this,e))}};function An(e,t,n){const s=an(e),r=s[t],i=r.call(s);if(s!==e&&!ae(e)){if(i[Symbol.toStringTag]==="Array Iterator"){const o=Object.create(Object.getPrototypeOf(i));return o.next=()=>Cs(i.next(),n),r!==hr[t]&&Object.defineProperties(o,{return:{get(){const l=i.return;return typeof l=="function"?l.bind(i):l}},throw:{get(){const l=i.throw;return typeof l=="function"?l.bind(i):l}}}),o}i._next=i.next,i.next=()=>Cs(i._next(),n)}return i}function Cs(e,t){return e.done||(e.value=t(e.value)),e}const hr=Array.prototype;function Fe(e,t,n,s,r,i){const o=an(e),l=o!==e&&!ae(e),c=o[t];if(c!==hr[t]){const p=c.apply(e,i);return l?pe(p):p}let d=n;o!==e&&(l?d=function(p,C){return n.call(this,Te(e,p),C,e)}:n.length>2&&(d=function(p,C){return n.call(this,p,C,e)}));const a=c.call(o,d,s);return l&&r?r(a):a}function Ts(e,t,n,s){const r=an(e),i=r!==e&&!ae(e);let o=n,l=!1;r!==e&&(i?(l=s.length===0,o=function(d,a,p){return l&&(l=!1,d=Te(e,d)),n.call(this,d,Te(e,a),p,e)}):n.length>3&&(o=function(d,a,p){return n.call(this,d,a,p,e)}));const c=r[t](o,...s);return l?Te(e,c):c}function Pn(e,t,n){const s=N(e);te(s,"iterate",Ct);const r=s[t](...n);return(r===-1||r===!1)&&pn(n[0])?(n[0]=N(n[0]),s[t](...n)):r}function pt(e,t,n=[]){Me(),ns();const s=N(e)[t].apply(e,n);return ss(),Re(),s}const Pi=Zn("__proto__,__v_isRef,__isVue"),pr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(de));function Mi(e){de(e)||(e=String(e));const t=N(this);return te(t,"has",e),t.hasOwnProperty(e)}class gr{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?vr:xr:i?br:yr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=E(t);if(!r){let c;if(o&&(c=Ai[n]))return c;if(n==="hasOwnProperty")return Mi}const l=Reflect.get(t,n,Q(t)?t:s);if((de(n)?pr.has(n):Pi(n))||(r||te(t,"get",n),i))return l;if(Q(l)){const c=o&&on(n)?l:l.value;return r&&H(c)?Un(c):c}return H(l)?r?Un(l):is(l):l}}class _r extends gr{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];const o=E(t)&&on(n);if(!this._isShallow){const d=Ie(i);if(!ae(s)&&!Ie(s)&&(i=N(i),s=N(s)),!o&&Q(i)&&!Q(s))return d||(i.value=s),!0}const l=o?Number(n)<t.length:V(t,n),c=Reflect.set(t,n,s,Q(t)?t:r);return t===N(r)&&c&&(l?ee(s,i)&&Ne(t,"set",n,s):Ne(t,"add",n,s)),c}deleteProperty(t,n){const s=V(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ne(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!de(n)||!pr.has(n))&&te(t,"has",n),s}ownKeys(t){return te(t,"iterate",E(t)?"length":st),Reflect.ownKeys(t)}}class mr extends gr{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const Ri=new _r,Ii=new mr,Fi=new _r(!0),ji=new mr(!0),Kn=e=>e,Vt=e=>Reflect.getPrototypeOf(e);function Di(e,t,n){return function(...s){const r=this.__v_raw,i=N(r),o=Be(i),l=e==="entries"||e===Symbol.iterator&&o,c=e==="keys"&&o,d=r[e](...s),a=n?Kn:t?Je:pe;return!t&&te(i,"iterate",c?$n:st),Z(Object.create(d),{next(){const{value:p,done:C}=d.next();return C?{value:p,done:C}:{value:l?[a(p[0]),a(p[1])]:a(p),done:C}}})}}function Ht(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ni(e,t){const n={get(r){const i=this.__v_raw,o=N(i),l=N(r);e||(ee(r,l)&&te(o,"get",r),te(o,"get",l));const{has:c}=Vt(o),d=t?Kn:e?Je:pe;if(c.call(o,r))return d(i.get(r));if(c.call(o,l))return d(i.get(l));i!==o&&i.get(r)},get size(){const r=this.__v_raw;return!e&&te(N(r),"iterate",st),r.size},has(r){const i=this.__v_raw,o=N(i),l=N(r);return e||(ee(r,l)&&te(o,"has",r),te(o,"has",l)),r===l?i.has(r):i.has(r)||i.has(l)},forEach(r,i){const o=this,l=o.__v_raw,c=N(l),d=t?Kn:e?Je:pe;return!e&&te(c,"iterate",st),l.forEach((a,p)=>r.call(i,d(a),d(p),o))}};return Z(n,e?{add:Ht("add"),set:Ht("set"),delete:Ht("delete"),clear:Ht("clear")}:{add(r){const i=N(this),o=Vt(i),l=N(r),c=!t&&!ae(r)&&!Ie(r)?l:r;return o.has.call(i,c)||ee(r,c)&&o.has.call(i,r)||ee(l,c)&&o.has.call(i,l)||(i.add(c),Ne(i,"add",c,c)),this},set(r,i){!t&&!ae(i)&&!Ie(i)&&(i=N(i));const o=N(this),{has:l,get:c}=Vt(o);let d=l.call(o,r);d||(r=N(r),d=l.call(o,r));const a=c.call(o,r);return o.set(r,i),d?ee(i,a)&&Ne(o,"set",r,i):Ne(o,"add",r,i),this},delete(r){const i=N(this),{has:o,get:l}=Vt(i);let c=o.call(i,r);c||(r=N(r),c=o.call(i,r)),l&&l.call(i,r);const d=i.delete(r);return c&&Ne(i,"delete",r,void 0),d},clear(){const r=N(this),i=r.size!==0,o=r.clear();return i&&Ne(r,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=Di(r,e,t)}),n}function dn(e,t){const n=Ni(e,t);return(s,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_isShallow"?t:r==="__v_raw"?s:Reflect.get(V(n,r)&&r in s?n:s,r,i)}const Vi={get:dn(!1,!1)},Hi={get:dn(!1,!0)},Li={get:dn(!0,!1)},$i={get:dn(!0,!0)},yr=new WeakMap,br=new WeakMap,xr=new WeakMap,vr=new WeakMap;function Ki(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function is(e){return Ie(e)?e:hn(e,!1,Ri,Vi,yr)}function Ui(e){return hn(e,!1,Fi,Hi,br)}function Un(e){return hn(e,!0,Ii,Li,xr)}function Jl(e){return hn(e,!0,ji,$i,vr)}function hn(e,t,n,s,r){if(!H(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const i=r.get(e);if(i)return i;const o=Ki(ui(e));if(o===0)return e;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function qe(e){return Ie(e)?qe(e.__v_raw):!!(e&&e.__v_isReactive)}function Ie(e){return!!(e&&e.__v_isReadonly)}function ae(e){return!!(e&&e.__v_isShallow)}function pn(e){return e?!!e.__v_raw:!1}function N(e){const t=e&&e.__v_raw;return t?N(t):e}function Wi(e){return!V(e,"__v_skip")&&Object.isExtensible(e)&&tr(e,"__v_skip",!0),e}const pe=e=>H(e)?is(e):e,Je=e=>H(e)?Un(e):e;function Q(e){return e?e.__v_isRef===!0:!1}function Bi(e){return Sr(e,!1)}function qi(e){return Sr(e,!0)}function Sr(e,t){return Q(e)?e:new Gi(e,t)}class Gi{constructor(t,n){this.dep=new un,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:N(t),this._value=n?t:pe(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||ae(t)||Ie(t);t=s?t:N(t),ee(t,n)&&(this._rawValue=t,this._value=s?t:pe(t),this.dep.trigger())}}function os(e){return Q(e)?e.value:e}function zl(e){return R(e)?e():os(e)}const Ji={get:(e,t,n)=>t==="__v_raw"?e:os(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Q(r)&&!Q(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function wr(e){return qe(e)?e:new Proxy(e,Ji)}class zi{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new un,{get:s,set:r}=t(n.track.bind(n),n.trigger.bind(n));this._get=s,this._set=r}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Yi(e){return new zi(e)}class Xi{constructor(t,n,s){this._object=t,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._key=de(n)?n:String(n),this._raw=N(t);let r=!0,i=t;if(!E(t)||de(this._key)||!on(this._key))do r=!pn(i)||ae(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=os(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&Q(this._raw[this._key])){const n=this._object[this._key];if(Q(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return Ei(this._raw,this._key)}}class Qi{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Yl(e,t,n){return Q(e)?e:R(e)?new Qi(e):H(e)&&arguments.length>1?Zi(e,t,n):Bi(e)}function Zi(e,t,n){return new Xi(e,t,n)}class ki{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new un(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=wt-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&W!==this)return lr(this,!0),!0}get value(){const t=this.dep.track();return ur(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function eo(e,t,n=!1){let s,r;return R(e)?s=e:(s=e.get,r=e.set),new ki(s,r,n)}const Lt={},Gt=new WeakMap;let ke;function to(e,t=!1,n=ke){if(n){let s=Gt.get(n);s||Gt.set(n,s=[]),s.push(e)}}function no(e,t,n=j){const{immediate:s,deep:r,once:i,scheduler:o,augmentJob:l,call:c}=n,d=P=>r?P:ae(P)||r===!1||r===0?Ve(P,1):Ve(P);let a,p,C,w,I=!1,A=!1;if(Q(e)?(p=()=>e.value,I=ae(e)):qe(e)?(p=()=>d(e),I=!0):E(e)?(A=!0,I=e.some(P=>qe(P)||ae(P)),p=()=>e.map(P=>{if(Q(P))return P.value;if(qe(P))return d(P);if(R(P))return c?c(P,2):P()})):R(e)?t?p=c?()=>c(e,2):e:p=()=>{if(C){Me();try{C()}finally{Re()}}const P=ke;ke=a;try{return c?c(e,3,[w]):e(w)}finally{ke=P}}:p=Ae,t&&r){const P=p,Y=r===!0?1/0:r;p=()=>Ve(P(),Y)}const q=Ci(),B=()=>{a.stop(),q&&q.active&&kn(q.effects,a)};if(i&&t){const P=t;t=(...Y)=>{try{return P(...Y)}finally{B()}}}let D=A?new Array(e.length).fill(Lt):Lt;const L=P=>{if(!(!(a.flags&1)||!a.dirty&&!P))if(t){const Y=a.run();if(P||r||I||(A?Y.some((Ke,xe)=>ee(Ke,D[xe])):ee(Y,D))){const Ke=ke;Me();try{C&&C(),ke=a;const xe=[Y,D===Lt?void 0:A&&D[0]===Lt?[]:D,w];D=Y,c?c(t,3,xe):t(...xe)}finally{ke=Ke,Re()}}}else a.run()};return l&&l(L),a=new ir(p),a.scheduler=o?()=>o(L,!1):L,w=P=>to(P,!1,a),C=a.onStop=()=>{const P=Gt.get(a);if(P){if(c)c(P,4);else for(const Y of P)Y();Gt.delete(a)}},t?s?L(!0):D=a.run():o?o(L.bind(null,!0),!0):a.run(),B.pause=a.pause.bind(a),B.resume=a.resume.bind(a),B.stop=B,B}function Ve(e,t=1/0,n){if(t<=0||!H(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Q(e))Ve(e.value,t,n);else if(E(e))for(let s=0;s<e.length;s++)Ve(e[s],t,n);else if(it(e)||Be(e))e.forEach(s=>{Ve(s,t,n)});else if(ks(e)){for(const s in e)Ve(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Ve(e[s],t,n)}return e}/**
10
- * @vue/runtime-core v3.5.44
11
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
12
- * @license MIT
13
- **/function Mt(e,t,n,s){try{return s?e(...s):e()}catch(r){gn(r,t,n)}}function be(e,t,n,s){if(R(e)){const r=Mt(e,t,n,s);return r&&Qs(r)&&r.catch(i=>{gn(i,t,n)}),r}if(E(e)){const r=[];for(let i=0;i<e.length;i++)r.push(be(e[i],t,n,s));return r}}function gn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||j;if(t){let l=t.parent;const c=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let p=0;p<a.length;p++)if(a[p](e,c,d)===!1)return}l=l.parent}if(i){Me(),Mt(i,null,10,[e,c,d]),Re();return}}so(e,n,r,s,o)}function so(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ie=[];let me=-1;const Oe=[];let We=null,lt=0;const Cr=Promise.resolve();let Jt=null;function Tr(e){const t=Jt||Cr;return e?t.then(this?e.bind(this):e):t}function ro(e){let t=me+1,n=ie.length;for(;t<n;){const s=t+n>>>1,r=ie[s],i=Tt(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function ls(e){if(!(e.flags&1)){const t=Tt(e),n=ie[ie.length-1];!n||!(e.flags&2)&&t>=Tt(n)?ie.push(e):ie.splice(ro(t),0,e),e.flags|=1,Or()}}function Or(){Jt||(Jt=Cr.then(Pr))}function io(e){if(!E(e))We&&e.id===-1?We.splice(lt+1,0,e):e.flags&1||(Oe.push(e),e.flags|=1);else for(let t=0;t<e.length;t++)Oe.push(e[t]);Or()}function Er(e,t,n,s=me+1){for(;s<ie.length;s++){const r=ie[s];if(r&&r.flags&2){if(e&&r.id!==e.uid||t!==void 0&&!(r.id>=t))continue;ie.splice(s,1),s=e?s-1:me,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Ar(e,t,n=0){if(Oe.length){let s=Oe,r=0;if(t){s=[];for(let o=0;o<Oe.length;o++){const l=Oe[o];(l.i!==void 0?!l.i||l.i.uid<n:t.has(l))?Oe[r++]=l:s.push(l)}}const i=[...new Set(s)].sort((o,l)=>Tt(o)-Tt(l));if(Oe.length=r,We){for(let o=0;o<i.length;o++)We.push(i[o]);return}for(We=i,lt=0;lt<We.length;lt++){const o=We[lt];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}We=null,lt=0}}let Mn=!1;function oo(e,t){if(Mn){e();return}const n=t===void 0?void 0:new Set(Oe);e(),Mn=!0;try{Er(void 0,t),Ar(void 0,n,t)}finally{Mn=!1}}const Tt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pr(e){try{for(me=0;me<ie.length;me++){const t=ie[me];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Mt(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;me<ie.length;me++){const t=ie[me];t&&(t.flags&=-2)}me=-1,ie.length=0,Ar(),Jt=null,(ie.length||Oe.length)&&Pr()}}let ne=null,Mr=null;function zt(e){const t=ne;return ne=e,Mr=e&&e.type.__scopeId||null,t}function lo(e,t=ne,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ds(-1);const i=zt(t),o=He.length;let l;try{l=e(...r)}finally{for(let c=He.length;c>o;c--)as();zt(i),s._d&&Ds(1)}return l};return s._n=!0,s._c=!0,s._d=!0,s}function Xl(e,t){if(ne===null)return e;const n=wn(ne),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=j]=t[r];i&&(R(i)&&(i={mounted:i,updated:i}),i.deep&&Ve(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function Qe(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(Me(),be(c,n,8,[e.el,l,e,t]),Re())}}function fo(e,t){if(oe){let n=oe.provides;const s=oe.parent&&oe.parent.provides;s===n&&(n=oe.provides=Object.create(s)),n[e]=t}}function Wt(e,t,n=!1){const s=Sn();if(s||rt){let r=rt?rt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&R(t)?t.call(s&&s.proxy):t}}function Ql(){return!!(Sn()||rt)}const co=Symbol.for("v-scx"),uo=()=>Wt(co);function Zl(e,t){return _n(e,null,t)}function ao(e,t){return _n(e,null,{flush:"sync"})}function Rn(e,t,n){return _n(e,t,n)}function _n(e,t,n=j){const{immediate:s,deep:r,flush:i,once:o}=n,l=Z({},n),c=t&&s||!t&&i!=="post";let d;if(At){if(i==="sync"){const w=uo();d=w.__watcherHandles||(w.__watcherHandles=[])}else if(!c){const w=()=>{};return w.stop=Ae,w.resume=Ae,w.pause=Ae,w}}const a=oe;l.call=(w,I,A)=>be(w,a,I,A);let p=!1;i==="post"?l.scheduler=w=>{w.i=a,le(w,a&&a.suspense)}:i!=="sync"&&(p=!0,l.scheduler=(w,I)=>{I?w():ls(w)}),l.augmentJob=w=>{t&&(w.flags|=4),p&&(w.flags|=2,a&&(w.id=a.uid,w.i=a))};const C=no(e,t,l);return At&&(d?d.push(C):c&&C()),C}function ho(e,t,n){const s=this.proxy,r=J(e)?e.includes(".")?Rr(s,e):()=>s[e]:e.bind(s,s);let i;R(t)?i=t:(i=t.handler,n=t);const o=Rt(this),l=_n(r,i.bind(s),n);return o(),l}function Rr(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const po=Symbol("_vte"),mn=e=>e.__isTeleport,In=Symbol("_leaveCb");function go(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ge){t=n;break}}return t}function Ir(e){if(!fs(e))return mn(e.type)&&e.children?go(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&R(n.default))return n.default()}}function Yt(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Yt(mn(n.type)&&Ir(n)||n,t)}else if(e.shapeFlag&128)e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback);else if(e.transition=t,e.type===fe&&E(e.children)){const n=Ur(e.children,!1);n&&Yt(n,t)}}function Wn(e){if(e.component)return Wn(e.component.subTree);if(e.type===fe){const t=E(e.children)&&Ur(e.children,!1);return t?Wn(t):void 0}if(e.type!==ge)return e}function kl(e,t){return R(e)?Z({name:e.name},t,{setup:e}):e}function Fr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function ef(e){const t=Sn(),n=qi(null);if(t){const r=t.refs===j?t.refs={}:t.refs;Object.defineProperty(r,e,{enumerable:!0,get:()=>n.value,set:i=>n.value=i})}return n}function Os(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Xt=new WeakMap;function vt(e,t,n,s,r=!1){if(E(e)){e.forEach((A,q)=>vt(A,t&&(E(t)?t[q]:t),n,s,r));return}if(ft(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&vt(e,t,n,s.component.subTree);return}const i=s.shapeFlag&4?wn(s.component):s.el,o=r?null:i,{i:l,r:c}=e,d=t&&t.r,a=l.refs===j?l.refs={}:l.refs,p=l.setupState,C=N(p),w=p===j?Xs:A=>Os(a,A)?!1:V(C,A),I=(A,q)=>!(q&&Os(a,q));if(d!=null&&d!==c){if(Es(t),J(d))a[d]=null,w(d)&&(p[d]=null);else if(Q(d)){const A=t;I(d,A.k)&&(d.value=null),A.k&&(a[A.k]=null)}}if(R(c))Mt(c,l,12,[o,a]);else{const A=J(c),q=Q(c);if(A||q){const B=()=>{if(e.f){const D=A?w(c)?p[c]:a[c]:I()||!e.k?c.value:a[e.k];if(r)E(D)&&kn(D,i);else if(E(D))D.includes(i)||D.push(i);else if(A)a[c]=[i],w(c)&&(p[c]=a[c]);else{const L=[i];I(c,e.k)&&(c.value=L),e.k&&(a[e.k]=L)}}else A?(a[c]=o,w(c)&&(p[c]=o)):q&&(I(c,e.k)&&(c.value=o),e.k&&(a[e.k]=o))};if(o){const D=()=>{B(),Xt.delete(e)};D.id=-1,Xt.set(e,D),le(D,n)}else Es(e),B()}}}function Es(e){const t=Xt.get(e);t&&(t.flags|=8,Xt.delete(e))}cn().requestIdleCallback;cn().cancelIdleCallback;const ft=e=>!!e.type.__asyncLoader,fs=e=>e.type.__isKeepAlive;function _o(e,t){jr(e,"a",t)}function mo(e,t){jr(e,"da",t)}function jr(e,t,n=oe){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(yn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)fs(r.parent.vnode)&&yo(s,t,n,r),r=r.parent}}function yo(e,t,n,s){const r=yn(t,e,s,!0);Dr(()=>{kn(s[t],r)},n)}function yn(e,t,n=oe,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{Me();const l=Rt(n),c=be(t,n,e,o);return l(),Re(),c});return s?r.unshift(i):r.push(i),i}}const $e=e=>(t,n=oe)=>{(!At||e==="sp")&&yn(e,(...s)=>t(...s),n)},bo=$e("bm"),xo=$e("m"),vo=$e("bu"),So=$e("u"),wo=$e("bum"),Dr=$e("um"),Co=$e("sp"),To=$e("rtg"),Oo=$e("rtc");function Eo(e,t=oe){yn("ec",e,t)}const Ao=Symbol.for("v-ndc");function tf(e,t,n,s){let r;const i=n,o=E(e);if(o||J(e)){const l=o&&qe(e);let c=!1,d=!1;l&&(c=!ae(e),d=Ie(e),e=an(e)),r=new Array(e.length);for(let a=0,p=e.length;a<p;a++)r[a]=t(c?d?Je(pe(e[a])):pe(e[a]):e[a],a,void 0,i)}else if(typeof e=="number")if(!Number.isInteger(e)||e<0)r=[];else{r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(H(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,d=l.length;c<d;c++){const a=l[c];r[c]=t(e[a],a,c,i)}}else r=[];return r}function nf(e,t,n,s,r,i){if(n==null&&(n={}),ne.ce||ne.parent&&ft(ne.parent)&&ne.parent.ce){const d=n,a=Object.keys(d).length>0;return t!=="default"&&(d.name=t),Yn(),Xn(fe,null,[Pe("slot",d,s)],a?-2:64)}let o=e[t];o&&o._c&&(o._d=!1);const l=He.length;Yn();let c;try{const d=o&&Nr(o(n)),a=n.key||i||d&&d.key;c=Xn(fe,{key:(a&&!de(a)?a:`_${t}`)+(!d&&s?"_fb":"")},d||(s?s():[]),d&&e._===1?64:-2)}catch(d){for(let a=He.length;a>l;a--)as();throw d}finally{o&&o._c&&(o._d=!0)}return c}function Nr(e){return e.some(t=>vn(t)?!(t.type===ge||t.type===fe&&!Nr(t.children)):!0)?e:null}const Bn=e=>e?ii(e)?wn(e):Bn(e.parent):null,St=Z(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Bn(e.parent),$root:e=>Bn(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Hr(e),$forceUpdate:e=>e.f||(e.f=()=>{ls(e.update)}),$nextTick:e=>e.n||(e.n=Tr.bind(e.proxy)),$watch:e=>ho.bind(e)}),Fn=(e,t)=>e!==j&&!e.__isScriptSetup&&V(e,t),Po={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:i,accessCache:o,type:l,appContext:c}=e;if(t[0]!=="$"){const C=o[t];if(C!==void 0)switch(C){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Fn(s,t))return o[t]=1,s[t];if(r!==j&&V(r,t))return o[t]=2,r[t];if(V(i,t))return o[t]=3,i[t];if(n!==j&&V(n,t))return o[t]=4,n[t];qn&&(o[t]=0)}}const d=St[t];let a,p;if(d)return t==="$attrs"&&te(e.attrs,"get",""),d(e);if((a=l.__cssModules)&&(a=a[t]))return a;if(n!==j&&V(n,t))return o[t]=4,n[t];if(p=c.config.globalProperties,V(p,t))return p[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:i}=e;return Fn(r,t)?(r[t]=n,!0):s!==j&&V(s,t)?(s[t]=n,!0):V(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:i,type:o}},l){let c;return!!(n[l]||e!==j&&l[0]!=="$"&&V(e,l)||Fn(t,l)||V(i,l)||V(s,l)||V(St,l)||V(r.config.globalProperties,l)||(c=o.__cssModules)&&c[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:V(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Qt(e){return E(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function sf(e,t){return!e||!t?e||t:E(e)&&E(t)?e.concat(t):Z({},Qt(e),Qt(t))}let qn=!0;function Mo(e){const t=Hr(e),n=e.proxy,s=e.ctx;qn=!1,t.beforeCreate&&As(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:o,watch:l,provide:c,inject:d,created:a,beforeMount:p,mounted:C,beforeUpdate:w,updated:I,activated:A,deactivated:q,beforeDestroy:B,beforeUnmount:D,destroyed:L,unmounted:P,render:Y,renderTracked:Ke,renderTriggered:xe,errorCaptured:Ue,serverPrefetch:It,expose:ze,inheritAttrs:ut,components:Ft,directives:jt,filters:Cn}=t;if(d&&Ro(d,s,null),o)for(const G in o){const U=o[G];R(U)&&(s[G]=U.bind(n))}if(r){const G=r.call(n,n);H(G)&&(e.data=is(G))}if(qn=!0,i)for(const G in i){const U=i[G],Ye=R(U)?U.bind(n,n):R(U.get)?U.get.bind(n,n):Ae,Dt=!R(U)&&R(U.set)?U.set.bind(n):Ae,Xe=dl({get:Ye,set:Dt});Object.defineProperty(s,G,{enumerable:!0,configurable:!0,get:()=>Xe.value,set:_e=>Xe.value=_e})}if(l)for(const G in l)Vr(l[G],s,n,G);if(c){const G=R(c)?c.call(n):c;Reflect.ownKeys(G).forEach(U=>{fo(U,G[U])})}a&&As(a,e,"c");function se(G,U){E(U)?U.forEach(Ye=>G(Ye.bind(n))):U&&G(U.bind(n))}if(se(bo,p),se(xo,C),se(vo,w),se(So,I),se(_o,A),se(mo,q),se(Eo,Ue),se(Oo,Ke),se(To,xe),se(wo,D),se(Dr,P),se(Co,It),E(ze))if(ze.length){const G=e.exposed||(e.exposed={});ze.forEach(U=>{Object.defineProperty(G,U,{get:()=>n[U],set:Ye=>n[U]=Ye,enumerable:!0})})}else e.exposed||(e.exposed={});Y&&e.render===Ae&&(e.render=Y),ut!=null&&(e.inheritAttrs=ut),Ft&&(e.components=Ft),jt&&(e.directives=jt),It&&Fr(e)}function Ro(e,t,n=Ae){E(e)&&(e=Gn(e));for(const s in e){const r=e[s];let i;H(r)?"default"in r?i=Wt(r.from||s,r.default,!0):i=Wt(r.from||s):i=Wt(r),Q(i)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:o=>i.value=o}):t[s]=i}}function As(e,t,n){be(E(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vr(e,t,n,s){let r=s.includes(".")?Rr(n,s):()=>n[s];if(J(e)){const i=t[e];R(i)&&Rn(r,i)}else if(R(e))Rn(r,e.bind(n));else if(H(e))if(E(e))e.forEach(i=>Vr(i,t,n,s));else{const i=R(e.handler)?e.handler.bind(n):t[e.handler];R(i)&&Rn(r,i,e)}}function Hr(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,l=i.get(t);let c;return l?c=l:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(d=>Zt(c,d,o,!0)),Zt(c,t,o)),H(t)&&i.set(t,c),c}function Zt(e,t,n,s=!1){const{mixins:r,extends:i}=t;i&&Zt(e,i,n,!0),r&&r.forEach(o=>Zt(e,o,n,!0));for(const o in t)if(!(s&&o==="expose")){const l=Io[o]||n&&n[o];e[o]=l?l(e[o],t[o]):t[o]}return e}const Io={data:Ps,props:Ms,emits:Ms,methods:_t,computed:_t,beforeCreate:re,created:re,beforeMount:re,mounted:re,beforeUpdate:re,updated:re,beforeDestroy:re,beforeUnmount:re,destroyed:re,unmounted:re,activated:re,deactivated:re,errorCaptured:re,serverPrefetch:re,components:_t,directives:_t,watch:jo,provide:Ps,inject:Fo};function Ps(e,t){return t?e?function(){return Z(R(e)?e.call(this,this):e,R(t)?t.call(this,this):t)}:t:e}function Fo(e,t){return _t(Gn(e),Gn(t))}function Gn(e){if(E(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function re(e,t){return e?[...new Set([].concat(e,t))]:t}function _t(e,t){return e?Z(Object.create(null),e,t):t}function Ms(e,t){return e?E(e)&&E(t)?[...new Set([...e,...t])]:Z(Object.create(null),Qt(e),Qt(t??{})):t}function jo(e,t){if(!e)return t;if(!t)return e;const n=Z(Object.create(null),e);for(const s in t)n[s]=re(e[s],t[s]);return n}function Lr(){return{app:null,config:{isNativeTag:Xs,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Do=0;function No(e,t){return function(s,r=null){R(s)||(s=Z({},s)),r!=null&&!H(r)&&(r=null);const i=Lr(),o=new WeakSet,l=[];let c=!1;const d=i.app={_uid:Do++,_component:s,_props:r,_container:null,_context:i,_instance:null,version:hl,get config(){return i.config},set config(a){},use(a,...p){return o.has(a)||(a&&R(a.install)?(o.add(a),a.install(d,...p)):R(a)&&(o.add(a),a(d,...p))),d},mixin(a){return i.mixins.includes(a)||i.mixins.push(a),d},component(a,p){return p?(i.components[a]=p,d):i.components[a]},directive(a,p){return p?(i.directives[a]=p,d):i.directives[a]},mount(a,p,C){if(!c){const w=d._ceVNode||Pe(s,r);return w.appContext=i,C===!0?C="svg":C===!1&&(C=void 0),e(w,a,C),c=!0,d._container=a,a.__vue_app__=d,wn(w.component)}},onUnmount(a){l.push(a)},unmount(){c&&(be(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(a,p){return i.provides[a]=p,d},runWithContext(a){const p=rt;rt=d;try{return a()}finally{rt=p}}};return d}}let rt=null;function rf(e,t,n=j){const s=Sn(),r=he(t),i=Le(t),o=$r(e,r),l=Yi((c,d)=>{let a,p=j,C;return ao(()=>{const w=e[r];ee(a,w)&&(a=w,d())}),{get(){return c(),n.get?n.get(a):a},set(w){const I=n.set?n.set(w):w;if(!ee(I,a)&&!(p!==j&&ee(w,p)))return;const A=s.vnode.props,q=!!(A&&(t in A||r in A||i in A)&&(`onUpdate:${t}`in A||`onUpdate:${r}`in A||`onUpdate:${i}`in A));q||(a=w,d()),s.emit(`update:${t}`,I),ee(w,p)&&(ee(w,I)&&!ee(I,C)||q&&p!==j&&!ee(I,a))&&d(),p=w,C=I}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?o||j:l,done:!1}:{done:!0}}}},l}const $r=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${he(t)}Modifiers`]||e[`${Le(t)}Modifiers`];function Vo(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||j;let r=n;const i=t.startsWith("update:"),o=i&&$r(s,t.slice(7));o&&(o.trim&&(r=n.map(a=>J(a)?a.trim():a)),o.number&&(r=r.map(fn)));let l,c=s[l=Tn(t)]||s[l=Tn(he(t))];!c&&i&&(c=s[l=Tn(Le(t))]),c&&be(c,e,6,r);const d=s[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,be(d,e,6,r)}}const Ho=new WeakMap;function Kr(e,t,n=!1){const s=n?Ho:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!R(e)){const c=d=>{const a=Kr(d,t,!0);a&&(l=!0,Z(o,a))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(H(e)&&s.set(e,null),null):(E(i)?i.forEach(c=>o[c]=null):Z(o,i),H(e)&&s.set(e,o),o)}function bn(e,t){return!e||!sn(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),V(e,t[0].toLowerCase()+t.slice(1))||V(e,Le(t))||V(e,t))}function Rs(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[i],slots:o,attrs:l,emit:c,render:d,renderCache:a,props:p,data:C,setupState:w,ctx:I,inheritAttrs:A}=e,q=zt(e);let B,D;try{if(n.shapeFlag&4){const P=r||s,Y=P;B=Ee(d.call(Y,P,a,p,w,C,I)),D=l}else{const P=t;B=Ee(P.length>1?P(p,{attrs:l,slots:o,emit:c}):P(p,null)),D=t.props?l:Lo(l)}}catch(P){He.length=0,gn(P,e,1),B=Pe(ge)}let L=B;if(D&&A!==!1){const P=Object.keys(D),{shapeFlag:Y}=L;P.length&&Y&7&&(i&&P.some(rn)&&(D=$o(D,i)),L=ct(L,D,!1,!0))}if(n.dirs&&(L=ct(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition){const P=mn(L.type)&&Ir(L)||L;Yt(P,n.transition)}return B=L,zt(q),B}function Ur(e,t=!0){let n;for(let s=0;s<e.length;s++){const r=e[s];if(vn(r)){if(r.type!==ge||r.children==="v-if"){if(n)return;n=r}}else return}return n}const Lo=e=>{let t;for(const n in e)(n==="class"||n==="style"||sn(n))&&((t||(t={}))[n]=e[n]);return t},$o=(e,t)=>{const n={};for(const s in e)(!rn(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Ko(e,t,n){const{props:s,children:r,component:i}=e,{props:o,children:l,patchFlag:c}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?Is(s,o,d):!!o;if(c&8){const a=t.dynamicProps;for(let p=0;p<a.length;p++){const C=a[p];if(Wr(o,s,C)&&!bn(d,C))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===o?!1:s?o?Is(s,o,d):!0:!!o;return!1}function Is(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const i=s[r];if(!V(e,i)||Wr(t,e,i)&&!bn(n,i))return!0}return!1}function Wr(e,t,n){const s=e[n],r=t[n];return n==="style"&&H(s)&&H(r)?!Ge(s,r):s!==r}function Uo({vnode:e,parent:t,suspense:n},s){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.suspense.vnode.el=r.el=s,e=r),r===e)(e=t.vnode).el=s,t=t.parent;else break}n&&n.activeBranch===e&&(n.vnode.el=s)}const Br={},qr=()=>Object.create(Br),Gr=e=>Object.getPrototypeOf(e)===Br;function Wo(e,t,n,s=!1){const r={},i=qr();e.propsDefaults=Object.create(null),Jr(e,t,r,i);for(const o in e.propsOptions[0])o in r||(r[o]=void 0);n?e.props=s?r:Ui(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function Bo(e,t,n,s){const{props:r,attrs:i,vnode:{patchFlag:o}}=e,l=N(r),[c]=e.propsOptions;let d=!1;if((s||o>0)&&!(o&16)){if(o&8){const a=e.vnode.dynamicProps;for(let p=0;p<a.length;p++){let C=a[p];if(bn(e.emitsOptions,C))continue;const w=t[C];if(c)if(V(i,C))w!==i[C]&&(i[C]=w,d=!0);else{const I=he(C);r[I]=Jn(c,l,I,w,e,!1)}else w!==i[C]&&(i[C]=w,d=!0)}}}else{Jr(e,t,r,i)&&(d=!0);let a;for(const p in l)(!t||!V(t,p)&&((a=Le(p))===p||!V(t,a)))&&(c?n&&(n[p]!==void 0||n[a]!==void 0)&&(r[p]=Jn(c,l,p,void 0,e,!0)):delete r[p]);if(i!==l)for(const p in i)(!t||!V(t,p))&&(delete i[p],d=!0)}d&&Ne(e.attrs,"set","")}function Jr(e,t,n,s){const[r,i]=e.propsOptions;let o=!1,l;if(t)for(let c in t){if(yt(c))continue;const d=t[c];let a;r&&V(r,a=he(c))?!i||!i.includes(a)?n[a]=d:(l||(l={}))[a]=d:bn(e.emitsOptions,c)||(!(c in s)||d!==s[c])&&(s[c]=d,o=!0)}if(i){const c=N(n),d=l||j;for(let a=0;a<i.length;a++){const p=i[a];n[p]=Jn(r,c,p,d[p],e,!V(d,p))}}return o}function Jn(e,t,n,s,r,i){const o=e[n];if(o!=null){const l=V(o,"default");if(l&&s===void 0){const c=o.default;if(o.type!==Function&&!o.skipFactory&&R(c)){const{propsDefaults:d}=r;if(n in d)s=d[n];else{const a=Rt(r);s=d[n]=c.call(null,t),a()}}else s=c;r.ce&&r.ce._setProp(n,s)}o[0]&&(i&&!l?s=!1:o[1]&&(s===""||s===Le(n))&&(s=!0))}return s}const qo=new WeakMap;function zr(e,t,n=!1){const s=n?qo:t.propsCache,r=s.get(e);if(r)return r;const i=e.props,o={},l=[];let c=!1;if(!R(e)){const a=p=>{c=!0;const[C,w]=zr(p,t,!0);Z(o,C),w&&l.push(...w)};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!i&&!c)return H(e)&&s.set(e,tt),tt;if(E(i))for(let a=0;a<i.length;a++){const p=he(i[a]);Fs(p)&&(o[p]=j)}else if(i)for(const a in i){const p=he(a);if(Fs(p)){const C=i[a],w=o[p]=E(C)||R(C)?{type:C}:Z({},C),I=w.type;let A=!1,q=!0;if(E(I))for(let B=0;B<I.length;++B){const D=I[B],L=R(D)&&D.name;if(L==="Boolean"){A=!0;break}else L==="String"&&(q=!1)}else A=R(I)&&I.name==="Boolean";w[0]=A,w[1]=q,(A||V(w,"default"))&&l.push(p)}}const d=[o,l];return H(e)&&s.set(e,d),d}function Fs(e){return e[0]!=="$"&&!yt(e)}const cs=e=>e==="_"||e==="_ctx"||e==="$stable",us=e=>E(e)?e.map(Ee):[Ee(e)],Go=(e,t,n)=>{if(t._n)return t;const s=lo((...r)=>us(t(...r)),n);return s._c=!1,s},Yr=(e,t,n)=>{const s=e._ctx;for(const r in e){if(cs(r))continue;const i=e[r];if(R(i))t[r]=Go(r,i,s);else if(i!=null){const o=us(i);t[r]=()=>o}}},Xr=(e,t)=>{const n=us(t);e.slots.default=()=>n},Qr=(e,t,n)=>{for(const s in t)(n||!cs(s))&&(e[s]=t[s])},Jo=(e,t,n)=>{const s=e.slots=qr();if(e.vnode.shapeFlag&32){const r=t._;r?(Qr(s,t,n),n&&tr(s,"_",r,!0)):Yr(t,s)}else t&&Xr(e,t)},zo=(e,t,n)=>{const{vnode:s,slots:r}=e;let i=!0,o=j;if(s.shapeFlag&32){const l=t._;l?n&&l===1?i=!1:Qr(r,t,n):(i=!t.$stable,Yr(t,r)),o=t}else t&&(Xr(e,t),o={default:1});if(i)for(const l in r)!cs(l)&&o[l]==null&&delete r[l]},le=ko;function Yo(e){return Xo(e)}function Xo(e,t){const n=cn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:i,createElement:o,createText:l,createComment:c,setText:d,setElementText:a,parentNode:p,nextSibling:C,setScopeId:w=Ae,insertStaticContent:I}=e,A=(f,u,h,y=null,_=null,m=null,v=void 0,x=null,b=!!u.dynamicChildren)=>{if(f===u)return;f&&!gt(f,u)&&(y=Nt(f),_e(f,_,m,!0),f=null),u.patchFlag===-2&&(b=!1,u.dynamicChildren=null),u.dynamicChildren&&f&&f.dynamicChildren&&f.dynamicChildren.hasOnce&&(u.dynamicChildren===tt&&(u.dynamicChildren=[]),u.dynamicChildren.hasOnce=!0);const{type:g,ref:T,shapeFlag:S}=u;switch(g){case xn:q(f,u,h,y);break;case ge:B(f,u,h,y);break;case Dn:f==null&&D(u,h,y,v);break;case fe:Ft(f,u,h,y,_,m,v,x,b);break;default:S&1?Y(f,u,h,y,_,m,v,x,b):S&6?jt(f,u,h,y,_,m,v,x,b):(S&64||S&128)&&g.process(f,u,h,y,_,m,v,x,b,dt)}T!=null&&_?vt(T,f&&f.ref,m,u||f,!u):T==null&&f&&f.ref!=null&&vt(f.ref,null,m,f,!0)},q=(f,u,h,y)=>{if(f==null)s(u.el=l(u.children),h,y);else{const _=u.el=f.el;u.children!==f.children&&d(_,u.children)}},B=(f,u,h,y)=>{f==null?s(u.el=c(u.children||""),h,y):u.el=f.el},D=(f,u,h,y)=>{[f.el,f.anchor]=I(f.children,u,h,y,f.el,f.anchor)},L=({el:f,anchor:u},h,y)=>{let _;for(;f&&f!==u;)_=C(f),s(f,h,y),f=_;s(u,h,y)},P=({el:f,anchor:u})=>{let h;for(;f&&f!==u;)h=C(f),r(f),f=h;r(u)},Y=(f,u,h,y,_,m,v,x,b)=>{if(u.type==="svg"?v="svg":u.type==="math"&&(v="mathml"),f==null)Ke(u,h,y,_,m,v,x,b);else{const g=f.el&&f.el._isVueCE?f.el:null;try{g&&g._beginPatch(),It(f,u,_,m,v,x,b)}finally{g&&g._endPatch()}}},Ke=(f,u,h,y,_,m,v,x)=>{let b,g;const{props:T,shapeFlag:S,transition:O,dirs:M}=f;if(b=f.el=o(f.type,m,T&&T.is,T),S&8?a(b,f.children):S&16&&Ue(f.children,b,null,y,_,jn(f,m),v,x),M&&Qe(f,null,y,"created"),xe(b,f,f.scopeId,v,y),T){for(const K in T)K!=="value"&&!yt(K)&&i(b,K,null,T[K],m,y);"value"in T&&i(b,"value",null,T.value,m),(g=T.onVnodeBeforeMount)&&Ce(g,y,f)}M&&Qe(f,null,y,"beforeMount");const F=Qo(_,O);F&&O.beforeEnter(b),s(b,u,h),((g=T&&T.onVnodeMounted)||F||M)&&le(()=>{try{g&&Ce(g,y,f),F&&O.enter(b),M&&Qe(f,null,y,"mounted")}finally{}},_)},xe=(f,u,h,y,_)=>{if(h&&w(f,h),y)for(let m=0;m<y.length;m++)w(f,y[m]);if(_){let m=_.subTree;if(u===m||ei(m.type)&&(m.ssContent===u||m.ssFallback===u)){const v=_.vnode;xe(f,v,v.scopeId,v.slotScopeIds,_.parent)}}},Ue=(f,u,h,y,_,m,v,x,b=0)=>{for(let g=b;g<f.length;g++){const T=f[g]=x?De(f[g]):Ee(f[g]);A(null,T,u,h,y,_,m,v,x)}},It=(f,u,h,y,_,m,v)=>{const x=u.el=f.el;let{patchFlag:b,dynamicChildren:g,dirs:T}=u;b|=f.patchFlag&16;const S=f.props||j,O=u.props||j;let M;if(h&&Ze(h,!1),(M=O.onVnodeBeforeUpdate)&&Ce(M,h,u,f),T&&Qe(u,f,h,"beforeUpdate"),h&&Ze(h,!0),g&&(!f.dynamicChildren||f.dynamicChildren.length!==g.length)&&(b=0,v=!1,g=null),(S.innerHTML&&O.innerHTML==null||S.textContent&&O.textContent==null)&&a(x,""),g?ze(f.dynamicChildren,g,x,h,y,jn(u,_),m):v||U(f,u,x,null,h,y,jn(u,_),m,!1),b>0){if(b&16)ut(x,S,O,h,_);else if(b&2&&S.class!==O.class&&i(x,"class",null,O.class,_),b&4&&i(x,"style",S.style,O.style,_),b&8){const F=u.dynamicProps;for(let K=0;K<F.length;K++){const $=F[K],z=S[$],k=O[$];(k!==z||$==="value")&&i(x,$,z,k,_,h)}}b&1&&f.children!==u.children&&a(x,u.children)}else!v&&g==null&&ut(x,S,O,h,_);((M=O.onVnodeUpdated)||T)&&le(()=>{M&&Ce(M,h,u,f),T&&Qe(u,f,h,"updated")},y)},ze=(f,u,h,y,_,m,v)=>{for(let x=0;x<u.length;x++){const b=f[x],g=u[x],T=b.el||zn(b),S=T&&(b.type===fe||!gt(b,g)||b.shapeFlag&198)?p(T):h;A(b,g,S,null,y,_,m,v,!0)}},ut=(f,u,h,y,_)=>{if(u!==h){if(u!==j)for(const m in u)!yt(m)&&!(m in h)&&i(f,m,u[m],null,_,y);for(const m in h){if(yt(m))continue;const v=h[m],x=u[m];v!==x&&m!=="value"&&i(f,m,x,v,_,y)}"value"in h&&i(f,"value",u.value,h.value,_)}},Ft=(f,u,h,y,_,m,v,x,b)=>{const g=u.el=f?f.el:l(""),T=u.anchor=f?f.anchor:l("");let{patchFlag:S,dynamicChildren:O,slotScopeIds:M}=u;M&&(x=x?x.concat(M):M),f==null?(s(g,h,y),s(T,h,y),Ue(u.children||[],h,T,_,m,v,x,b)):S>0&&S&64&&O&&f.dynamicChildren&&f.dynamicChildren.length===O.length?(ze(f.dynamicChildren,O,h,_,m,v,x),(u.key!=null||_&&u===_.subTree)&&Zr(f,u,!0)):U(f,u,h,T,_,m,v,x,b)},jt=(f,u,h,y,_,m,v,x,b)=>{u.slotScopeIds=x,f==null?u.shapeFlag&512?_.ctx.activate(u,h,y,v,b):Cn(u,h,y,_,m,v,b):ds(f,u,b)},Cn=(f,u,h,y,_,m,v)=>{const x=f.component=ol(f,y,_);if(fs(f)&&(x.ctx.renderer=dt),ll(x,!1,v),x.asyncDep){if(_&&_.registerDep(x,se,v,m),!f.el){const b=x.subTree=Pe(ge);B(null,b,u,h),f.placeholder=b.el}}else se(x,f,u,h,_,m,v)},ds=(f,u,h)=>{const y=u.component=f.component;if(Ko(f,u,h))if(y.asyncDep&&!y.asyncResolved){u.el=f.el,u.placeholder=f.placeholder,G(y,u,h);return}else y.next=u,y.update();else u.el=f.el,u.placeholder=f.placeholder,y.vnode=u},se=(f,u,h,y,_,m,v)=>{const x=()=>{if(f.isMounted){let{next:S,bu:O,u:M,parent:F,vnode:K}=f;{const Se=kr(f);if(Se){S&&(S.el=K.el,G(f,S,v)),Se.asyncDep.then(()=>{le(()=>{f.isUnmounted||g()},_)});return}}let $=S,z;Ze(f,!1),S?(S.el=K.el,G(f,S,v)):S=K,O&&Ut(O),(z=S.props&&S.props.onVnodeBeforeUpdate)&&Ce(z,F,S,K),Ze(f,!0);const k=Rs(f),ve=f.subTree;f.subTree=k,A(ve,k,p(ve.el),Nt(ve),f,_,m),S.el=k.el,$===null&&Uo(f,k.el),M&&le(M,_),(z=S.props&&S.props.onVnodeUpdated)&&le(()=>Ce(z,F,S,K),_)}else{let S;const{el:O,props:M}=u,{bm:F,m:K,parent:$,root:z,type:k}=f,ve=ft(u);Ze(f,!1),F&&Ut(F),!ve&&(S=M&&M.onVnodeBeforeMount)&&Ce(S,$,u),Ze(f,!0);{z.ce&&z.ce._hasShadowRoot()&&z.ce._injectChildStyle(k,f.parent?f.parent.type:void 0);const Se=f.subTree=Rs(f);A(null,Se,h,y,f,_,m),u.el=Se.el}if(K&&le(K,_),!ve&&(S=M&&M.onVnodeMounted)){const Se=u;le(()=>Ce(S,$,Se),_)}(u.shapeFlag&256||$&&ft($.vnode)&&$.vnode.shapeFlag&256)&&f.a&&le(f.a,_),f.isMounted=!0,u=h=y=null}};f.scope.on();const b=f.effect=new ir(x);f.scope.off();const g=f.update=b.run.bind(b),T=f.job=b.runIfDirty.bind(b);T.i=f,T.id=f.uid,b.scheduler=()=>ls(T),Ze(f,!0),g()},G=(f,u,h)=>{u.component=f;const y=f.vnode.props;f.vnode=u,f.next=null,Bo(f,u.props,y,h),zo(f,u.children,h),Me(),Er(f),Re()},U=(f,u,h,y,_,m,v,x,b=!1)=>{const g=f&&f.children,T=f?f.shapeFlag:0,S=u.children,{patchFlag:O,shapeFlag:M}=u;if(O>0){if(O&128){Dt(g,S,h,y,_,m,v,x,b);return}else if(O&256){Ye(g,S,h,y,_,m,v,x,b);return}}M&8?(T&16&&at(g,_,m),S!==g&&a(h,S)):T&16?M&16?Dt(g,S,h,y,_,m,v,x,b):at(g,_,m,!0):(T&8&&a(h,""),M&16&&Ue(S,h,y,_,m,v,x,b))},Ye=(f,u,h,y,_,m,v,x,b)=>{f=f||tt,u=u||tt;const g=f.length,T=u.length,S=Math.min(g,T);let O;for(O=0;O<S;O++){const M=u[O]=b?De(u[O]):Ee(u[O]);A(f[O],M,h,null,_,m,v,x,b)}g>T?at(f,_,m,!0,!1,S):Ue(u,h,y,_,m,v,x,b,S)},Dt=(f,u,h,y,_,m,v,x,b)=>{let g=0;const T=u.length;let S=f.length-1,O=T-1;for(;g<=S&&g<=O;){const M=f[g],F=u[g]=b?De(u[g]):Ee(u[g]);if(gt(M,F))A(M,F,h,null,_,m,v,x,b);else break;g++}for(;g<=S&&g<=O;){const M=f[S],F=u[O]=b?De(u[O]):Ee(u[O]);if(gt(M,F))A(M,F,h,null,_,m,v,x,b);else break;S--,O--}if(g>S){if(g<=O){const M=O+1,F=M<T?u[M].el:y;for(;g<=O;)A(null,u[g]=b?De(u[g]):Ee(u[g]),h,F,_,m,v,x,b),g++}}else if(g>O)for(;g<=S;)_e(f[g],_,m,!0),g++;else{const M=g,F=g,K=new Map;for(g=F;g<=O;g++){const ce=u[g]=b?De(u[g]):Ee(u[g]);ce.key!=null&&K.set(ce.key,g)}let $,z=0;const k=O-F+1;let ve=!1,Se=0;const ht=new Array(k);for(g=0;g<k;g++)ht[g]=0;for(g=M;g<=S;g++){const ce=f[g];if(z>=k){_e(ce,_,m,!0);continue}let we;if(ce.key!=null)we=K.get(ce.key);else for($=F;$<=O;$++)if(ht[$-F]===0&&gt(ce,u[$])){we=$;break}we===void 0?_e(ce,_,m,!0):(ht[we-F]=g+1,we>=Se?Se=we:ve=!0,A(ce,u[we],h,null,_,m,v,x,b),z++)}const _s=ve?Zo(ht):tt;for($=_s.length-1,g=k-1;g>=0;g--){const ce=F+g,we=u[ce],ms=u[ce+1],ys=ce+1<T?ms.el||zn(ms):y;ht[g]===0?A(null,we,h,ys,_,m,v,x,b):ve&&($<0||g!==_s[$]?Xe(we,h,ys,2):$--)}}},Xe=(f,u,h,y,_=null)=>{const{el:m,type:v,transition:x,children:b,shapeFlag:g}=f;if(g&6){Xe(f.component.subTree,u,h,y);return}if(g&128){f.suspense.move(u,h,y);return}if(g&64){v.move(f,u,h,dt);return}if(v===fe){s(m,u,h);for(let S=0;S<b.length;S++)Xe(b[S],u,h,y);s(f.anchor,u,h);return}if(v===Dn){L(f,u,h);return}if(y!==2&&g&1&&x)if(y===0)x.persisted&&!m[In]?s(m,u,h):(x.beforeEnter(m),s(m,u,h),le(()=>x.enter(m),_));else{const{leave:S,delayLeave:O,afterLeave:M}=x,F=()=>{f.ctx.isUnmounted?r(m):s(m,u,h)},K=()=>{const $=m._isLeaving||!!m[In];m._isLeaving&&m[In](!0),x.persisted&&!$?F():S(m,()=>{F(),M&&M()})};O?O(m,F,K):K()}else s(m,u,h)},_e=(f,u,h,y=!1,_=!1)=>{const{type:m,props:v,ref:x,children:b,dynamicChildren:g,shapeFlag:T,patchFlag:S,dirs:O,cacheIndex:M,memo:F}=f;if((S===-2||g&&g.hasOnce)&&(_=!1),x!=null&&(Me(),vt(x,null,h,f,!0),Re()),M!=null&&(!f.ctx||f.ctx===u)&&(u.renderCache[M]=void 0),T&256){u.ctx.deactivate(f);return}const K=T&1&&O,$=!ft(f);let z;if($&&(z=v&&v.onVnodeBeforeUnmount)&&Ce(z,u,f),T&6)fi(f.component,h,y);else{if(T&128){f.suspense.unmount(h,y);return}K&&Qe(f,null,u,"beforeUnmount"),T&64?f.type.remove(f,u,h,dt,y):g&&!g.hasOnce&&(m!==fe||S>0&&S&64)?at(g,u,h,!1,!0):(m===fe&&S&384||!_&&T&16)&&at(b,u,h),y&&hs(f)}const k=F!=null&&M==null;($&&(z=v&&v.onVnodeUnmounted)||K||k)&&le(()=>{z&&Ce(z,u,f),K&&Qe(f,null,u,"unmounted"),k&&(f.el=null)},h)},hs=f=>{const{type:u,el:h,anchor:y,transition:_}=f,m=u===fe;if(m&&!_){ps(h,y);return}if(u===Dn){P(f),_&&!_.persisted&&_.afterLeave&&_.afterLeave();return}const v=m?Wn(f):f,x=()=>{m?p(h)&&ps(h,y):r(h),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(v&&v.shapeFlag&1&&_&&!_.persisted){const{leave:b,delayLeave:g}=_,T=v.el,S=()=>b(T,x);g?g(T,x,S):S()}else x()},ps=(f,u)=>{let h;for(;f!==u;)h=C(f),r(f),f=h;r(u)},fi=(f,u,h)=>{const{bum:y,scope:_,job:m,subTree:v,um:x,m:b,a:g}=f;js(b),js(g),y&&Ut(y),_.stop(),m?(m.flags|=8,_e(v,f,u,h)):f.vnode.el&&v&&(v.transition=f.vnode.transition,_e(v,f,u,h)),x&&le(x,u),le(()=>{f.isUnmounted=!0},u)},at=(f,u,h,y=!1,_=!1,m=0)=>{for(let v=m;v<f.length;v++)_e(f[v],u,h,y,_)},Nt=f=>{if(f.shapeFlag&6)return Nt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const u=C(f.anchor||f.el),h=u&&u[po];return h?C(h):u},gs=(f,u,h)=>{const y=f&&u._vnode?void 0:f&&f.component?f.component.uid:il();oo(()=>{f==null?u._vnode&&_e(u._vnode,null,null,!0):A(u._vnode||null,f,u,null,null,null,h),u._vnode=f},y)},dt={p:A,um:_e,m:Xe,r:hs,mt:Cn,mc:Ue,pc:U,pbc:ze,n:Nt,o:e};return{render:gs,hydrate:void 0,createApp:No(gs)}}function jn({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Ze({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Qo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Zr(e,t,n=!1){const s=e.children,r=t.children;if(E(s)&&E(r))for(let i=0;i<s.length;i++){const o=s[i];let l=r[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[i]=De(r[i]),l.el=o.el),!n&&l.patchFlag!==-2&&Zr(o,l)),l.type===xn&&(l.patchFlag===-1&&(l=r[i]=De(l)),l.el=o.el),l.type===ge&&!l.el&&(l.el=o.el)}}function Zo(e){const t=e.slice(),n=[0];let s,r,i,o,l;const c=e.length;for(s=0;s<c;s++){const d=e[s];if(d!==0){if(r=n[n.length-1],e[r]<d){t[s]=r,n.push(s);continue}for(i=0,o=n.length-1;i<o;)l=i+o>>1,e[n[l]]<d?i=l+1:o=l;d<e[n[i]]&&(i>0&&(t[s]=n[i-1]),n[i]=s)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}function kr(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:kr(t)}function js(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function zn(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?zn(t.subTree):null}const ei=e=>e.__isSuspense;function ko(e,t){t&&t.pendingBranch?E(e)?t.effects.push(...e):t.effects.push(e):io(e)}const fe=Symbol.for("v-fgt"),xn=Symbol.for("v-txt"),ge=Symbol.for("v-cmt"),Dn=Symbol.for("v-stc"),He=[];let ue=null;function Yn(e=!1){He.push(ue=e?null:[])}function as(){He.pop(),ue=He[He.length-1]||null}let Ot=1;function Ds(e,t=!1){Ot+=e,e<0&&ue&&t&&(ue.hasOnce=!0)}function ti(e){return e.dynamicChildren=Ot>0?ue||tt:null,as(),Ot>0&&ue&&ue.push(e),e}function of(e,t,n,s,r,i){return ti(si(e,t,n,s,r,i,!0))}function Xn(e,t,n,s,r){return ti(Pe(e,t,n,s,r,!0))}function vn(e){return e?e.__v_isVNode===!0:!1}function gt(e,t){return e.type===t.type&&e.key===t.key}const ni=({key:e})=>e??null,Bt=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?J(e)||Q(e)||R(e)?{i:ne,r:e,k:t,f:!!n}:e:null);function si(e,t=null,n=null,s=0,r=null,i=e===fe?0:1,o=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ni(t),ref:t&&Bt(t),scopeId:Mr,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:ne};return l?(kt(c,n),i&128&&e.normalize(c)):n&&(c.shapeFlag|=J(n)?8:16),Ot>0&&!o&&ue&&(c.patchFlag>0||i&6)&&c.patchFlag!==32&&ue.push(c),c}const Pe=el;function el(e,t=null,n=null,s=0,r=null,i=!1){if((!e||e===Ao)&&(e=ge),vn(e)){const l=ct(e,t,!0);return n&&kt(l,n),Ot>0&&!i&&ue&&(l.shapeFlag&6?ue[ue.indexOf(e)]=l:ue.push(l)),l.patchFlag=-2,l}if(al(e)&&(e=e.__vccOpts),t){t=tl(t);let{class:l,style:c}=t;l&&!J(l)&&(t.class=ts(l)),H(c)&&(pn(c)&&!E(c)&&(c=Z({},c)),t.style=es(c))}const o=J(e)?1:ei(e)?128:mn(e)?64:H(e)?4:R(e)?2:0;return si(e,t,n,s,r,o,i,!0)}function tl(e){return e?pn(e)||Gr(e)?Z({},e):e:null}function ct(e,t,n=!1,s=!1){const{props:r,ref:i,patchFlag:o,children:l,transition:c}=e,d=t?sl(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&ni(d),ref:t&&t.ref?n&&i?E(i)?i.concat(Bt(t)):[i,Bt(t)]:Bt(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==fe?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ct(e.ssContent),ssFallback:e.ssFallback&&ct(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce,cacheIndex:e.cacheIndex};return c&&s&&Yt(a,c.clone(a)),a}function nl(e=" ",t=0){return Pe(xn,null,e,t)}function lf(e="",t=!1){return t?(Yn(),Xn(ge,null,e)):Pe(ge,null,e)}function Ee(e){return e==null||typeof e=="boolean"?Pe(ge):E(e)?Pe(fe,null,e.slice()):vn(e)?De(e):Pe(xn,null,String(e))}function De(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ct(e)}function kt(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(E(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),kt(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!Gr(t)?t._ctx=ne:r===3&&ne&&(ne.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(R(t)){if(s&65){kt(e,{default:t});return}t={default:t,_ctx:ne},n=32}else t=String(t),s&64?(n=16,t=[nl(t)]):n=8;e.children=t,e.shapeFlag|=n}function sl(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=ts([t.class,s.class]));else if(r==="style")t.style=es([t.style,s.style]);else if(sn(r)){const i=t[r],o=s[r];o&&i!==o&&!(E(i)&&i.includes(o))?t[r]=i?[].concat(i,o):o:o==null&&i==null&&!rn(r)&&(t[r]=o)}else r!==""&&(t[r]=s[r])}return t}function Ce(e,t,n,s=null){be(e,t,7,[n,s])}const rl=Lr();let ri=0;function il(){return ri}function ol(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||rl,i={uid:ri++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new wi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:zr(s,r),emitsOptions:Kr(s,r),emit:null,emitted:null,propsDefaults:j,inheritAttrs:s.inheritAttrs,ctx:j,data:j,props:j,attrs:j,slots:j,refs:j,setupState:j,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Vo.bind(null,i),e.ce&&e.ce(i),i}let oe=null;const Sn=()=>oe||ne;let en,Et;{const e=cn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),i=>{r.length>1?r.forEach(o=>o(i)):r[0](i)}};en=t("__VUE_INSTANCE_SETTERS__",n=>oe=n),Et=t("__VUE_SSR_SETTERS__",n=>At=n)}const Rt=e=>{const t=oe;return en(e),e.scope.on(),()=>{e.scope.off(),en(t)}},Ns=()=>{oe&&oe.scope.off(),en(null)};function ii(e){return e.vnode.shapeFlag&4}let At=!1;function ll(e,t=!1,n=!1){t&&Et(t);const{props:s,children:r}=e.vnode,i=ii(e);Wo(e,s,i,t),Jo(e,r,n||t);const o=i?fl(e,t):void 0;return t&&Et(!1),o}function fl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Po);const{setup:s}=n;if(s){Me();const r=e.setupContext=s.length>1?ul(e):null,i=Rt(e),o=Mt(s,e,0,[e.props,r]),l=Qs(o);if(Re(),i(),(l||e.sp)&&!ft(e)&&Fr(e),l){if(o.then(Ns,Ns),t)return o.then(c=>{Et(!0);try{Vs(e,c,t)}finally{Et(!1)}}).catch(c=>{gn(c,e,0)});e.asyncDep=o}else Vs(e,o)}else oi(e)}function Vs(e,t,n){R(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:H(t)&&(e.setupState=wr(t)),oi(e)}function oi(e,t,n){const s=e.type;e.render||(e.render=s.render||Ae);{const r=Rt(e);Me();try{Mo(e)}finally{Re(),r()}}}const cl={get(e,t){return te(e,"get",""),e[t]}};function ul(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,cl),slots:e.slots,emit:e.emit,expose:t}}function wn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wr(Wi(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in St)return St[n](e)},has(t,n){return n in t||n in St}})):e.proxy}function al(e){return R(e)&&"__vccOpts"in e}const dl=(e,t)=>eo(e,t,At),hl="3.5.44";/**
14
- * @vue/runtime-dom v3.5.44
15
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
16
- * @license MIT
17
- **/let Qn;const Hs=typeof window<"u"&&window.trustedTypes;if(Hs)try{Qn=Hs.createPolicy("vue",{createHTML:e=>e})}catch{}const li=Qn?e=>Qn.createHTML(e):e=>e,pl="http://www.w3.org/2000/svg",gl="http://www.w3.org/1998/Math/MathML",je=typeof document<"u"?document:null,Ls=je&&je.createElement("template"),_l={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?je.createElementNS(pl,e):t==="mathml"?je.createElementNS(gl,e):n?je.createElement(e,{is:n}):je.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>je.createTextNode(e),createComment:e=>je.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>je.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Ls.innerHTML=li(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Ls.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},ml=Symbol("_vtc");function yl(e,t,n){const s=e[ml];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const $s=Symbol("_vod"),bl=Symbol("_vsh"),xl=Symbol(""),vl=/(?:^|;)\s*display\s*:/;function Sl(e,t,n){const s=e.style,r=J(n);let i=!1;if(n&&!r){if(t)if(J(t))for(const o of t.split(";")){const l=o.slice(0,o.indexOf(":")).trim();n[l]==null&&mt(s,l,"")}else for(const o in t)n[o]==null&&mt(s,o,"");for(const o in n){o==="display"&&(i=!0);const l=n[o];l!=null?Cl(e,o,!J(t)&&t?t[o]:void 0,l)||mt(s,o,l):mt(s,o,"")}}else if(r){if(t!==n){const o=s[xl];o&&(n+=";"+o),s.cssText=n,i=vl.test(n)}}else t&&e.removeAttribute("style");$s in e&&((!r||t!==n)&&(e[$s]=i?s.display:""),e[bl]&&(s.display="none"))}const $t=/\s*!important$/;function mt(e,t,n){if(E(n))n.forEach(s=>mt(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))$t.test(n)?e.setProperty(t,n.replace($t,""),"important"):e.setProperty(t,n);else{const s=wl(e,t);$t.test(n)?e.setProperty(Le(s),n.replace($t,""),"important"):e[s]=n}}const Ks=["Webkit","Moz","ms"],Nn={};function wl(e,t){const n=Nn[t];if(n)return n;let s=he(t);if(s!=="filter"&&s in e)return Nn[t]=s;s=er(s);for(let r=0;r<Ks.length;r++){const i=Ks[r]+s;if(i in e)return Nn[t]=i}return t}function Cl(e,t,n,s){return e.tagName==="TEXTAREA"&&(t==="width"||t==="height")&&J(s)&&n===s}const Us="http://www.w3.org/1999/xlink";function Ws(e,t,n,s,r,i=yi(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Us,t.slice(6,t.length)):e.setAttributeNS(Us,t,n):n==null||i&&!nr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":de(n)?String(n):n)}function Bs(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?li(n):n);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(l!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let o=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=nr(n):n==null&&l==="string"?(n="",o=!0):l==="number"&&(n=0,o=!0)}try{e[t]=n}catch{}o&&e.removeAttribute(r||t)}function et(e,t,n,s){e.addEventListener(t,n,s)}function Tl(e,t,n,s){e.removeEventListener(t,n,s)}const qs=Symbol("_vei");function Ol(e,t,n,s,r=null){const i=e[qs]||(e[qs]={}),o=i[t];if(s&&o)o.value=s;else{const[l,c]=Pl(t);if(s){const d=i[t]=Il(s,r);et(e,l,d,c)}else o&&(Tl(e,l,o,c),i[t]=void 0)}}const El=/(Once|Passive|Capture)$/,Al=/^on:?(?:Once|Passive|Capture)$/;function Pl(e){let t,n;for(;(n=e.match(El))&&!Al.test(e);)t||(t={}),e=e.slice(0,e.length-n[1].length),t[n[1].toLowerCase()]=!0;return[e[2]===":"?e.slice(3):Le(e.slice(2)),t]}let Vn=0;const Ml=Promise.resolve(),Rl=()=>Vn||(Ml.then(()=>Vn=0),Vn=Date.now());function Il(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;const r=n.value;if(E(r)){const i=s.stopImmediatePropagation;s.stopImmediatePropagation=()=>{i.call(s),s._stopped=!0};const o=r.slice(),l=[s];for(let c=0;c<o.length&&!s._stopped;c++){const d=o[c];d&&be(d,t,5,l)}}else be(r,t,5,[s])};return n.value=e,n.attached=Rl(),n}const Gs=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Fl=(e,t,n,s,r,i)=>{const o=r==="svg";t==="class"?yl(e,s,o):t==="style"?Sl(e,n,s):sn(t)?rn(t)||Ol(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):jl(e,t,s,o))?(Bs(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ws(e,t,s,o,i,t!=="value")):e._isVueCE&&(Dl(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!J(s)))?Bs(e,he(t),s,i,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ws(e,t,s,o))};function jl(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Gs(t)&&R(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"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Gs(t)&&J(n)?!1:t in e}function Dl(e,t){const n=e._def.props;if(!n)return!1;const s=he(t);return Array.isArray(n)?n.some(r=>he(r)===s):Object.keys(n).some(r=>he(r)===s)}const tn=e=>{const t=e.props["onUpdate:modelValue"]||!1;return E(t)?n=>Ut(t,n):t};function Nl(e){e.target.composing=!0}function Js(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const nt=Symbol("_assign"),Kt=Symbol("_initialValue");function Hn(e,t,n){return t&&(e=e.trim()),n&&(e=fn(e)),e}const ff={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e.parentNode&&(e.type==="text"?e[Kt]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[Kt]=e.defaultValue.replace(/\r\n?/g,`
18
- `))),e[nt]=tn(r);const i=s||r.props&&r.props.type==="number";et(e,t?"change":"input",o=>{o.target.composing||e[nt](Hn(e.value,n,i))}),(n||i)&&et(e,"change",()=>{e.value=Hn(e.value,n,i)}),t||(et(e,"compositionstart",Nl),et(e,"compositionend",Js),et(e,"change",Js))},mounted(e,{value:t,modifiers:{trim:n,number:s}}){const r=t??"",i=e[Kt];delete e[Kt],i!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==i?e[nt](Hn(e.value,n,s)):e.value=r},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:i}},o){if(e[nt]=tn(o),e.composing)return;const l=(i||e.type==="number")&&!/^0\d/.test(e.value)?fn(e.value):e.value,c=t??"";if(l===c)return;const d=e.getRootNode();(d instanceof Document||d instanceof ShadowRoot)&&d.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c)}},cf={deep:!0,created(e,{value:t,modifiers:{number:n}},s){e._modelValue=t,et(e,"change",()=>{const r=Array.prototype.filter.call(e.options,c=>c.selected).map(c=>n?fn(nn(c)):nn(c)),i=e.multiple,o=i?it(e._modelValue)?new Set(r):r:r[0],l=e._pendingValue=[i,i?E(o)?r.slice():r:o];try{e[nt](o)}finally{Tr(()=>{e._pendingValue===l&&(e._pendingValue=void 0)})}}),e[nt]=tn(s)},mounted(e,{value:t}){zs(e,t)},beforeUpdate(e,{value:t},n){e._modelValue=t,e[nt]=tn(n)},updated(e,{value:t}){const n=e._pendingValue;e._pendingValue=void 0,(!n||n[0]!==e.multiple||!Vl(t,n[1],n[0]))&&zs(e,t)}};function Vl(e,t,n){if(!n||E(e))return Ge(e,t);if(it(e)){if(e.size!==t.length)return!1;for(const s of t)if(!e.has(s))return!1;return!0}return!1}function zs(e,t){const n=e.multiple,s=E(t);if(!(n&&!s&&!it(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],l=nn(o);if(n)if(s){const c=typeof l;c==="string"||c==="number"?o.selected=t.some(d=>String(d)===String(l)):o.selected=vi(t,l)>-1}else o.selected=t.has(l);else if(Ge(nn(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function nn(e){return"_value"in e?e._value:e.value}const Hl=["ctrl","shift","alt","meta"],Ll={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)=>Hl.some(n=>e[`${n}Key`]&&!t.includes(n))},uf=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((r,...i)=>{for(let o=0;o<t.length;o++){const l=Ll[t[o]];if(l&&l(r,t))return}return e(r,...i)}))},$l={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},af=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(r=>{if(!("key"in r))return;const i=Le(r.key);if(t.some(o=>o===i||$l[o]===i))return e(r)}))},Kl=Z({patchProp:Fl},_l);let Ys;function Ul(){return Ys||(Ys=Yo(Kl))}const df=((...e)=>{const t=Ul().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Bl(s);if(!r)return;const i=t._component;!R(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const o=n(r,!1,Wl(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),o},t});function Wl(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Bl(e){return J(e)?document.querySelector(e):e}const hf=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};export{ff as A,Zl as B,Tr as C,ef as D,xo as E,fe as F,es as G,df as H,cf as I,Jl as J,zl as K,qi as L,Yi as M,Yl as N,Un as O,Sn as P,Ql as Q,Wt as R,Ci as S,Gl as T,hf as _,of as a,tf as b,dl as c,kl as d,uf as e,si as f,Si as g,lf as h,Bi as i,nl as j,Pe as k,Xn as l,nf as m,ts as n,Yn as o,rf as p,sf as q,is as r,Ui as s,N as t,os as u,lo as v,Rn as w,Q as x,Xl as y,af as z};
@@ -1 +0,0 @@
1
- const E=e=>fetch(e).then(t=>t.json(),()=>Promise.reject(new Error("unreachable"))),T=(e,t)=>fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t||{})}).then(n=>n.json(),()=>Promise.reject(new Error("unreachable"))),r=(e,t)=>(e.details||[]).find(n=>n["@type"]===t),S=e=>{var o,s;const t=r(e,"BadRequest");if(t&&t.field_violations)return t.field_violations.map(i=>i.description);const n=(s=(o=r(e,"ErrorInfo"))==null?void 0:o.metadata)==null?void 0:s.detail;return[n?String(n):e.message]},h=e=>{var t;return((t=r(e,"ErrorInfo"))==null?void 0:t.reason)||""},O=e=>fetch("/api/handoff?"+new URLSearchParams(e)).then(t=>t.ok?t.text():Promise.reject(new Error(String(t.status)))),_=e=>typeof e=="string"&&/^https:\/\//.test(e)?e:"",f="No workspace configured. Open Settings.",A=e=>e!=="",N=(e,t,n)=>e.some(o=>o.id===t&&o.open_moves!==n)?e.map(o=>o.id===t?{...o,open_moves:n}:o):e,y=(e,t)=>{const n=e.filter(a=>a.group==="you").map(a=>({row:a,handled:!!a.handled})).sort((a,d)=>a.row.rank-d.row.rank||String(a.row.updated).localeCompare(String(d.row.updated))),o=n.filter(a=>!a.handled).length,s=t==="handled";return{rows:n.filter(a=>a.handled===s),open:o,handled:n.length-o}},c=e=>String(e.status_since||e.updated),R=e=>e.filter(t=>t.group==="done").sort((t,n)=>c(n).localeCompare(c(t))).slice(0,15),P=e=>e.filter(t=>t.group==="others").sort((t,n)=>String(n.updated).localeCompare(String(t.updated))),D=e=>e==="failing"?"bad":e==="running"?"warn":e==="passing"?"ok":"",g={code_review:"info",qa:"info",on_hold:"warn"},b=e=>g[e||""]||"",v=e=>({open:"info",done:"ok",dropped:"warn"})[e||""]||"info",U=(e,t,n=1)=>e.filter(o=>o>t+n).length,p="unreachable",l="The local server is not answering",u=l+"; try again once it is back.",k=l+"; your text is kept.",m={NO_WORKSPACE:f,NOT_CONFIGURED:"The maintainer's tracker is not connected on this machine, so nothing can be sent from here.",UPSTREAM_FAILED:"The tracker did not answer; try again in a minute.",RATE_LIMITED:"The source is rate-limited; the monitor backs off.",OPEN_TOO_SOON:"The app window is already opening; give it a few seconds.",UPDATE_IN_PROGRESS:"An update is already installing; the monitor restarts when it is done.",UPDATE_UNAVAILABLE:"There is no update to install right now.",INTERNAL:"The local server failed; see its log."},w=(e,t="Not saved")=>m[h(e)]||t+": "+(e.message||"the server refused the change."),C=(e,{refused:t="Not saved",unreachable:n=u}={})=>{if(e instanceof Error)return e.message===p?n:t+": "+e.message;if(!e||typeof e!="object"||Array.isArray(e))return"";const o=e.error;return o?w(o,t):""},L=e=>{const t=Math.round((Date.now()-new Date(e).getTime())/6e4);return isFinite(t)?t<1?"now":t<60?t+"m ago":t<2880?Math.round(t/60)+"h ago":new Date(e).toLocaleDateString("en-US",{month:"short",day:"numeric"}):""},I=e=>{const t=(Date.now()-new Date(e??"").getTime())/36e5;return!isFinite(t)||t<0?{text:"",old:!1,hours:0}:{text:t<1?"<1h":t<48?Math.floor(t)+"h":Math.floor(t/24)+"d",old:t>=24,hours:t}},j=e=>e?new Date(e).toLocaleString("en-US",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}):"",M=(e,t)=>t?`${e}--${t}`:"";export{l as S,k as T,A as a,C as b,L as c,D as d,w as e,b as f,E as g,O as h,j as i,R as j,I as k,U as l,M as m,P as n,v as o,T as p,S as q,h as r,_ as s,N as w,y};
@@ -1 +0,0 @@
1
- .rail[data-v-be863916]{position:fixed;inset:0 auto 0 0;z-index:30;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;width:60px;padding:12px 8px;overflow:hidden;border-right:1px solid var(--glass-edge);background:rgb(var(--glass),.72);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font-family:var(--md-font);color:var(--md-on-surface);transition:width .18s ease,box-shadow .18s ease}.rail[data-v-be863916]:hover,.rail[data-v-be863916]:has(:focus-visible){width:232px;box-shadow:12px 0 32px #0000001f}.app:has(.modal) .rail[data-v-be863916]{z-index:0}.rail__item[data-v-be863916]{position:relative;display:flex;align-items:center;gap:12px;height:44px;padding:0 4px;border-radius:12px;color:inherit;text-decoration:none;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}.rail__item[data-v-be863916]:focus-visible{outline:var(--focus-ring);outline-offset:-2px}.rail__item--dragging[data-v-be863916]{opacity:.4}.rail__item[data-drop=before][data-v-be863916]{box-shadow:0 -2px 0 0 var(--md-primary)}.rail__item[data-drop=after][data-v-be863916]{box-shadow:0 2px 0 0 var(--md-primary)}.rail__item[data-v-be863916]:hover{background:var(--state-hover)}.rail__item[aria-selected=true][data-v-be863916]{background:var(--md-secondary-container);color:var(--md-on-secondary-container)}.rail__icon[data-v-be863916]{flex:none;display:block;width:36px;height:36px;border-radius:10px}.rail__gear[data-v-be863916]{flex:none;display:grid;place-items:center;width:36px;height:36px;color:var(--md-on-surface-variant)}.rail__label[data-v-be863916]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:500;opacity:0;transition:opacity .12s ease}.rail:hover .rail__label[data-v-be863916],.rail:has(:focus-visible) .rail__label[data-v-be863916]{opacity:1}.rail__badge[data-v-be863916]{position:absolute;top:2px;left:30px;box-sizing:border-box;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--md-primary);color:var(--md-on-primary);font-size:10px;font-weight:700;line-height:18px;text-align:center}.rail:hover .rail__badge[data-v-be863916],.rail:has(:focus-visible) .rail__badge[data-v-be863916]{position:static;flex:none}.rail__spacer[data-v-be863916]{flex:1}.ai-button[data-v-d32a60c7]{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;cursor:pointer;color:var(--md-primary);background:rgb(var(--md-state),.06);vertical-align:middle;transition:background .12s ease,transform .12s ease}.ai-button__icon[data-v-d32a60c7]{width:15px;height:15px}.ai-button[data-v-d32a60c7]:hover{background:var(--md-secondary-container);transform:scale(1.08)}.ai-button[data-v-d32a60c7]:focus-visible{outline:var(--focus-ring);outline-offset:1px}.ai-button.ai-button--sent[data-v-d32a60c7]{background:var(--md-tertiary-container);color:var(--md-on-tertiary-container)}.ai-button.ai-button--failed[data-v-d32a60c7]{background:var(--md-error-container);color:var(--md-on-error-container)}.ai-button--big[data-v-d32a60c7]{width:32px;height:32px;background:rgb(var(--glass),.7)}.ai-button--big .ai-button__icon[data-v-d32a60c7]{width:18px;height:18px}.update-chip[data-v-f70d2aed]{display:inline-flex;align-items:center;height:26px;padding:0 12px;font:inherit;color:var(--md-on-primary-container);cursor:pointer;background:var(--md-primary-container);border:0;border-radius:var(--md-r-chip)}.update-chip--busy[data-v-f70d2aed],.update-chip--done[data-v-f70d2aed]{cursor:default}.update-chip--busy[data-v-f70d2aed]{opacity:.7}.update-chip--failed[data-v-f70d2aed]{color:var(--md-on-error-container);background:var(--md-error-container)}.status-bar[data-v-eefe1de8]{display:flex;align-items:center;gap:10px;margin:0 4px 8px;font-family:var(--md-font);font-size:12px;color:var(--md-on-surface-variant)}.status-bar__btn[data-v-eefe1de8]{height:26px;padding:0 12px;font-size:12px;text-decoration:none}.status-bar__btn--busy[data-v-eefe1de8]{opacity:.6;pointer-events:none}.status-bar__report[data-v-eefe1de8]{gap:6px;color:var(--md-error);border-color:var(--md-error)}.status-bar__icon[data-v-eefe1de8]{width:16px;height:16px}.status-bar__live[data-v-eefe1de8]{width:8px;height:8px;border-radius:50%;background:var(--live-on);box-shadow:0 0 0 0 var(--live-pulse-rest);animation:status-bar-pulse-eefe1de8 2s infinite}.status-bar__live--off[data-v-eefe1de8]{background:var(--live-off);animation:none}.status-bar__live--warn[data-v-eefe1de8]{background:var(--live-warn);animation:none}.status-bar__notice[data-v-eefe1de8]{color:var(--live-off)}.status-bar__ai-hint[data-v-eefe1de8]{margin-left:-4px}@keyframes status-bar-pulse-eefe1de8{0%{box-shadow:0 0 0 0 var(--live-pulse-from)}70%{box-shadow:0 0 0 8px var(--live-pulse-to)}to{box-shadow:0 0 0 0 var(--live-pulse-to)}}@media(prefers-reduced-motion:reduce){.status-bar__live[data-v-eefe1de8]{animation:none}}.workspace-header[data-v-0f4b6d6e]{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,2fr) 32px;gap:8px;padding:8px;background:linear-gradient(135deg,var(--blob-1),var(--blob-2));color:var(--header-ink, var(--md-on-primary-container))}@media(prefers-reduced-transparency:reduce){.workspace-header[data-v-0f4b6d6e]{background:var(--md-s-low)}}.workspace-header__title[data-v-0f4b6d6e]{display:grid;align-content:center;gap:4px;padding:12px 16px}.workspace-header__name[data-v-0f4b6d6e]{margin:0;font-size:28px;font-weight:400;line-height:36px;color:var(--md-on-primary-container)}.workspace-header__line[data-v-0f4b6d6e]{margin:0;font-size:14px;opacity:.85}.workspace-header__count[data-v-0f4b6d6e]{font-weight:700;font-variant-numeric:tabular-nums}.workspace-header__give[data-v-0f4b6d6e]{display:flex;align-items:center;gap:8px;margin-top:8px}.workspace-header__links[data-v-0f4b6d6e]{display:inline-flex;flex-wrap:wrap;gap:6px;margin-left:10px}.workspace-header__links a[data-v-0f4b6d6e]{display:inline-flex;align-items:center;height:24px;padding:0 10px;border:1px solid var(--glass-edge);border-radius:999px;background:rgb(var(--glass),.55);color:inherit;font-size:12px;font-weight:500}.workspace-header__links a[data-v-0f4b6d6e]:hover{background:rgb(var(--glass),.85)}.workspace-header__fold[data-v-0f4b6d6e]{grid-row:1;grid-column:3;place-self:center center;margin:0;color:inherit}.workspace-header__tiles[data-v-0f4b6d6e]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.workspace-header__tile[data-v-0f4b6d6e]{display:grid;align-content:start;gap:4px;padding:12px 16px;border:1px solid var(--glass-edge);border-radius:var(--md-r-card);background:rgb(var(--glass),calc(var(--glass-a) + .1));-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:var(--md-on-surface)}@media(prefers-reduced-transparency:reduce){.workspace-header__tile[data-v-0f4b6d6e]{background:var(--md-s-low);-webkit-backdrop-filter:none;backdrop-filter:none}}.workspace-header__tile-label[data-v-0f4b6d6e]{color:var(--md-on-surface-variant);font-size:12px;font-weight:500;line-height:16px;letter-spacing:.03em}.workspace-header__tile-value[data-v-0f4b6d6e]{min-height:40px;font-size:32px;font-weight:400;line-height:40px;font-variant-numeric:tabular-nums}.workspace-header__tile--you[data-v-0f4b6d6e]{border-color:transparent;background:var(--md-primary);color:var(--md-on-primary)}.workspace-header__tile--you .workspace-header__tile-label[data-v-0f4b6d6e]{color:var(--md-on-primary);opacity:.85}.workspace-header__tile--fail .workspace-header__tile-value[data-v-0f4b6d6e]{color:var(--md-error)}.workspace-header--collapsed[data-v-0f4b6d6e]{grid-template-columns:minmax(0,1fr) 32px;padding:4px 8px}.workspace-header--collapsed .workspace-header__title[data-v-0f4b6d6e]{display:flex;flex-wrap:wrap;align-items:baseline;gap:14px;padding:4px 8px}.workspace-header--collapsed .workspace-header__name[data-v-0f4b6d6e]{font-size:18px;line-height:28px}.workspace-header--collapsed .workspace-header__tiles[data-v-0f4b6d6e],.workspace-header--collapsed .workspace-header__give[data-v-0f4b6d6e],.workspace-header--collapsed .workspace-header__sentence[data-v-0f4b6d6e]{display:none}.workspace-header--collapsed .workspace-header__fold[data-v-0f4b6d6e]{grid-column:2}.workspace-header--collapsed .workspace-header__strip[data-v-0f4b6d6e]{font-size:13px}@media(max-width:900px){.workspace-header[data-v-0f4b6d6e],.workspace-header--collapsed[data-v-0f4b6d6e]{grid-template-columns:minmax(0,1fr) 32px}.workspace-header__fold[data-v-0f4b6d6e]{grid-column:2}.workspace-header__tiles[data-v-0f4b6d6e]{grid-column:1 / -1}}@media(max-width:640px){.workspace-header__tiles[data-v-0f4b6d6e]{grid-template-columns:repeat(2,minmax(0,1fr))}}.island__head[data-v-a03b7f62]{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:16px;padding:12px 20px}.island__title[data-v-a03b7f62]{flex:none;margin:0;font-size:16px;line-height:24px;font-weight:500;letter-spacing:.01em;white-space:nowrap}.island__note[data-v-a03b7f62]{display:flex;flex:1 1 auto;align-items:center;justify-content:flex-end;gap:6px;min-width:0;margin:0;overflow:visible;color:var(--md-on-surface-variant);font-size:12px;line-height:16px;letter-spacing:.03em;text-align:right;white-space:nowrap;text-overflow:ellipsis}.island__note-text[data-v-a03b7f62]{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.island__body[data-v-a03b7f62]{padding:0 20px 12px}.island--column .island__head[data-v-a03b7f62]{gap:4px}.island--column .island__body[data-v-a03b7f62]{display:flex;flex-direction:column;min-height:0;padding-top:4px}.island.island--collapsed .island__body[data-v-a03b7f62]{display:none}@media(min-width:901px){.dashboard--fit .dashboard__main .island__body[data-v-a03b7f62]{display:flex;flex:1 1 auto;flex-direction:column;min-height:0;padding-bottom:0}.dashboard--fit .dashboard__main .island.island--collapsed .island__body[data-v-a03b7f62]{display:none}}.segmented[data-v-7901b5d6]{display:inline-flex;overflow:hidden;border:1px solid var(--md-outline);border-radius:999px;vertical-align:middle}.segmented--chips[data-v-7901b5d6]{flex:none;align-self:flex-start;background:rgb(var(--glass),.4)}.segmented__option[data-v-7901b5d6]{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 11px;border-left:1px solid var(--md-outline);font-size:12px;font-weight:500;color:var(--md-on-surface);cursor:pointer;-webkit-user-select:none;user-select:none}.segmented__option[data-v-7901b5d6]:first-child{border-left:0}.segmented__count[data-v-7901b5d6]{font-weight:700;font-variant-numeric:tabular-nums}.segmented__option[aria-pressed=true][data-v-7901b5d6]{background:var(--md-secondary-container);color:var(--md-on-secondary-container)}.segmented__option[data-v-7901b5d6]:focus-visible{outline:var(--focus-ring);outline-offset:-2px}.segmented--chips .segmented__option[data-v-7901b5d6]{gap:normal;height:32px;padding:0 14px;font-family:var(--md-font);font-size:14px;letter-spacing:.01em}.segmented--chips .segmented__option[data-v-7901b5d6]:hover{background:var(--state-hover)}.segmented--chips .segmented__option[aria-pressed=true][data-v-7901b5d6]{background:var(--md-secondary-container);color:var(--md-on-secondary-container)}.ticket-cell__summary[data-v-8436de88]{display:block;max-width:44ch;margin-top:2px;color:var(--md-on-surface-variant);font-size:12px;line-height:16px;letter-spacing:.03em}.pr-cell[data-v-75c443c3]{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.pr-cell__link[data-v-75c443c3]{max-width:100%;overflow-wrap:anywhere}.recently-done[data-v-12ee20e8]{display:flex;flex:0 1 auto;flex-direction:column;min-height:33px;margin:0 -20px;padding:0 20px;overflow:hidden;border-top:1px solid var(--md-outline-variant)}.recently-done[open][data-v-12ee20e8]{min-height:128px}.recently-done__summary[data-v-12ee20e8]{display:flex;flex:none;align-items:center;gap:4px;min-height:40px;list-style:none;color:var(--md-on-surface-variant);font-size:14px;font-weight:500;cursor:pointer}.recently-done__summary[data-v-12ee20e8]::-webkit-details-marker{display:none}.recently-done__summary[data-v-12ee20e8]:before{content:"▾";display:inline-grid;place-items:center;width:24px;font-size:18px;transform:rotate(-90deg);transition:transform .15s ease}.recently-done[open] .recently-done__summary[data-v-12ee20e8]:before{transform:none}.recently-done__count[data-v-12ee20e8]{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;margin-left:6px;padding:0 6px;border-radius:10px;background:var(--md-s-high);color:var(--md-on-surface-variant);font-size:12px;font-weight:700}.recently-done__list[data-v-12ee20e8]{flex:1 1 auto;min-height:0;max-height:min(30vh,240px);margin:0 -20px;padding-bottom:8px;overflow:auto}.row-scroll[data-v-7bd9ace7]{overflow-x:auto;margin:0 -20px}@media(min-width:901px){.dashboard--fit .dashboard__main .row-scroll[data-v-7bd9ace7]{flex:1 1 auto;min-height:0;overflow:auto}.dashboard--fit .row-scroll[data-v-7bd9ace7]::-webkit-scrollbar{width:8px;height:8px}.dashboard--fit .row-scroll[data-v-7bd9ace7]::-webkit-scrollbar-thumb{border-radius:4px;background:var(--md-outline-variant)}}.dashboard--fit .dashboard__main .row-scroll--floor[data-v-7bd9ace7]{min-height:5rem}.row-scroll__more[data-v-7bd9ace7]{flex:none;display:block;margin:0 -20px;padding:4px 20px 6px;border-top:1px solid var(--md-outline-variant);color:var(--md-primary);font-size:13px;font-weight:500;cursor:pointer}.row-scroll__more[data-v-7bd9ace7]:hover{background:rgb(var(--md-state),.06)}.row-scroll__more[data-v-7bd9ace7]:focus-visible{outline:var(--focus-ring);outline-offset:-2px}.your-move__view[data-v-e3e1502a]{margin-left:10px}.your-move__next[data-v-e3e1502a]{font-weight:500}.your-move__quote[data-v-e3e1502a]{max-width:48ch;color:var(--md-on-surface-variant);font-size:12px;line-height:16px}.your-move__quote a[data-v-e3e1502a]{color:var(--md-on-surface-variant)}.your-move__problem[data-v-e3e1502a]{margin:4px 0 0;padding:4px 10px;font-size:12px}.your-move__mark[data-v-e3e1502a]{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:1px solid var(--md-outline);border-radius:999px;color:var(--md-on-surface);font-size:12px;font-weight:600;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none}.your-move__mark[data-v-e3e1502a]:hover{background:var(--state-hover)}.your-move__mark[data-v-e3e1502a]:before{content:"";width:9px;height:5px;border-bottom:2px solid currentcolor;border-left:2px solid currentcolor;transform:translateY(-2px) rotate(-45deg)}.your-move__mark--undo[data-v-e3e1502a]:before{display:none}.your-move__mark[data-v-e3e1502a]:focus-visible{outline:var(--focus-ring);outline-offset:2px}.your-move__row--handled td[data-v-e3e1502a]{opacity:.55}.your-move__row--handled .your-move__next[data-v-e3e1502a]{text-decoration:line-through;text-decoration-color:var(--md-outline)}.your-move__row--handled .table__actions[data-v-e3e1502a]{opacity:1}.todos__view[data-v-6f034e1e]{margin-left:10px}.todos__add[data-v-6f034e1e]{display:flex;align-items:center;gap:8px;padding:8px 0}.todos__input[data-v-6f034e1e]{flex:1;min-width:0;height:32px;padding:0 12px;background:rgb(var(--md-state),.04);font-size:14px}.todos__list[data-v-6f034e1e]{margin:0 -20px;padding:0;overflow-y:auto;list-style:none}.todos__item[data-v-6f034e1e]{display:grid;grid-template-columns:20px minmax(0,1fr) auto 20px;align-items:center;gap:10px;padding:7px 20px;border-top:1px solid var(--md-outline-variant)}.todos__item[data-v-6f034e1e]:first-child{border-top:0}.todos__item[data-v-6f034e1e]:hover{background:rgb(var(--md-state),.06)}.todos__text[data-v-6f034e1e]{overflow-wrap:anywhere}.todos__item--done .todos__text[data-v-6f034e1e]{color:var(--md-on-surface-variant);text-decoration:line-through}.todos__empty[data-v-6f034e1e]{display:block;padding:6px 20px 10px}.todos__check[data-v-6f034e1e]{box-sizing:border-box;display:grid;place-items:center;width:18px;height:18px;border:2px solid var(--md-outline);border-radius:5px;cursor:pointer}.todos__check--on[data-v-6f034e1e]{border-color:var(--md-primary);background:var(--md-primary)}.todos__check--on[data-v-6f034e1e]:after{content:"";width:8px;height:4px;border-bottom:2px solid var(--md-on-primary);border-left:2px solid var(--md-on-primary);transform:translateY(-1px) rotate(-45deg)}.todos__meta[data-v-6f034e1e]{color:var(--md-on-surface-variant);font-size:11px;white-space:nowrap}.todos__delete[data-v-6f034e1e]{color:var(--md-on-surface-variant);font-size:16px;line-height:1;text-align:center;cursor:pointer;opacity:0}.todos__delete[data-v-6f034e1e]:focus-visible{opacity:1}.todos__item:hover .todos__delete[data-v-6f034e1e]{opacity:1}@media(min-width:901px){.dashboard--fit .dashboard__todo .todos__list[data-v-6f034e1e]{flex:1 1 auto;min-height:0}.dashboard--fit .dashboard__todo .todos__list[data-v-6f034e1e]:not(:has(.todos__item)){display:none}}.waiting__table[data-v-a632447c]{table-layout:fixed}.waiting__col--ticket[data-v-a632447c]{width:22%}.waiting__col--status[data-v-a632447c],.waiting__col--with[data-v-a632447c]{width:6.5rem}.waiting__col--pr[data-v-a632447c]{width:4.5rem}.waiting__col--actions[data-v-a632447c]{width:2rem}.waiting__reason[data-v-a632447c]{display:block;min-width:0;max-width:44ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.feed-item[data-v-27e556e1]{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:start;gap:12px;padding:10px 20px;cursor:default}.feed-item[data-v-27e556e1]:hover{background:var(--state-hover)}.feed-item.feed-item--open[data-v-27e556e1]{background:rgb(var(--md-state),.05)}.feed-item.feed-item--new[data-v-27e556e1]{background:var(--new-bg);box-shadow:inset 4px 0 0 var(--new),inset 0 0 0 1px var(--new-edge)}.feed-item__icon[data-v-27e556e1]{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--md-s-highest);color:var(--md-on-surface-variant);font-size:11px;font-weight:700;letter-spacing:.02em}.feed-item__icon--jira[data-v-27e556e1]{background:var(--md-primary-container);color:var(--md-on-primary-container)}.feed-item__icon--bad[data-v-27e556e1]{background:var(--md-error-container);color:var(--md-on-error-container)}.feed-item__icon--ok[data-v-27e556e1]{background:var(--md-tertiary-container);color:var(--md-on-tertiary-container)}.feed-item__body[data-v-27e556e1]{display:grid;gap:2px;min-width:0}.feed-item__top[data-v-27e556e1]{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;font-size:14px}.feed-item__right[data-v-27e556e1]{flex:none;display:inline-flex;align-items:center;gap:4px;margin-left:auto}.feed-item__kind[data-v-27e556e1]{font-weight:500}.feed-item__kind--bad[data-v-27e556e1]{color:var(--md-error)}.feed-item__who[data-v-27e556e1]{color:var(--md-on-surface-variant)}.feed-item__text[data-v-27e556e1]{display:-webkit-box;overflow:hidden;color:var(--md-on-surface-variant);font-size:12px;line-height:16px;letter-spacing:.03em;overflow-wrap:anywhere;-webkit-line-clamp:2;-webkit-box-orient:vertical}.feed-item__toggle[data-v-27e556e1]{display:inline-grid;place-items:center;width:24px;height:24px;margin-left:2px;border-radius:50%;color:var(--md-on-surface-variant);font-size:0;line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform .15s ease}.feed-item__toggle[data-v-27e556e1]:before{content:"";width:7px;height:7px;border-right:2px solid currentcolor;border-bottom:2px solid currentcolor;transform:translateY(-2px) rotate(45deg)}.feed-item__toggle[data-v-27e556e1]:hover{background:rgb(var(--md-state),.1)}.feed-item__toggle[aria-expanded=true][data-v-27e556e1]{transform:rotate(180deg)}.feed-item__toggle[data-v-27e556e1]:focus-visible{outline:var(--focus-ring)}.feed-item__full[data-v-27e556e1]{max-height:16rem;margin-top:6px;padding:10px 12px;overflow:auto;border:1px solid var(--glass-edge);border-radius:var(--md-r-chip);background:rgb(var(--glass),.55);color:var(--md-on-surface);font-size:13px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}.feed-item__actions[data-v-27e556e1]{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.feed-item--new .feed-item__kind[data-v-27e556e1],.feed-item--lit .feed-item__kind[data-v-27e556e1]{color:var(--md-on-surface);font-weight:700}.feed-item--new .feed-item__text[data-v-27e556e1],.feed-item--lit .feed-item__text[data-v-27e556e1]{color:var(--md-on-surface)}.feed-item--new .feed-item__icon[data-v-27e556e1],.feed-item--lit .feed-item__icon[data-v-27e556e1]{box-shadow:0 0 0 2px var(--new)}.feed-item--new .feed-item__when[data-v-27e556e1]:before,.feed-item--lit .feed-item__when[data-v-27e556e1]:before{content:"NEW";display:inline-block;margin-right:6px;padding:1px 6px;border-radius:4px;background:var(--new);color:var(--new-ink);font-size:10px;font-weight:800;letter-spacing:.06em;vertical-align:1px}.feed-item:not(.feed-item--new) .feed-item__body[data-v-27e556e1]{opacity:.78}.feed__bar[data-v-d92a7c74]{display:flex;flex:none;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}.feed__new-count[data-v-d92a7c74]{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:var(--new);color:var(--new-ink);box-shadow:0 0 12px var(--new-glow);font-size:12px;font-weight:800}.feed__mark-read[data-v-d92a7c74]{flex:none;padding:4px 8px;border-radius:999px;color:var(--md-primary);font-size:13px;font-weight:500;cursor:pointer;-webkit-user-select:none;user-select:none}.feed__mark-read[data-v-d92a7c74]:hover{background:var(--state-hover)}.feed__mark-read[data-v-d92a7c74]:focus-visible{outline:var(--focus-ring)}.feed__search[data-v-d92a7c74]{display:flex;flex:none;align-items:center;gap:8px;margin:0 0 8px}.feed__search-input[data-v-d92a7c74]{flex:1;min-width:0;height:30px;padding:0 10px;font-size:13px}.feed__search-count[data-v-d92a7c74]{flex:none;color:var(--md-on-surface-variant);font-size:12px}.feed__list[data-v-d92a7c74]{flex:1 1 auto;min-height:12rem;margin:0 -20px;padding:0 0 4px;overflow-y:auto;list-style:none}.feed__group[data-v-d92a7c74]{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:0;padding:0;cursor:default}.feed__group[data-v-d92a7c74]:hover{background:var(--state-hover)}.feed__group.feed__group--open[data-v-d92a7c74]{background:rgb(var(--md-state),.05)}.feed__group.feed__group--new[data-v-d92a7c74]{background:var(--new-bg);box-shadow:inset 4px 0 0 var(--new),inset 0 0 0 1px var(--new-edge)}.feed__group-head[data-v-d92a7c74]{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:12px;padding:10px 20px;cursor:pointer}.feed__group-copy[data-v-d92a7c74]{opacity:.55}.feed__group-head:hover .feed__group-copy[data-v-d92a7c74]{opacity:1}.feed__group-head[data-v-d92a7c74]:hover{background:var(--state-hover)}.feed__group--new>.feed__group-head[data-v-d92a7c74]{background:var(--new-bg);box-shadow:inset 4px 0 0 var(--new)}.feed__group--move[data-v-d92a7c74],.feed__group--move>.feed__group-head[data-v-d92a7c74]{box-shadow:inset 4px 0 0 var(--move)}.feed__group.feed__group--new.feed__group--move[data-v-d92a7c74]{box-shadow:inset 4px 0 0 var(--move),inset 0 0 0 1px var(--new-edge)}.feed__group-text[data-v-d92a7c74]{min-width:0}.feed__group-key[data-v-d92a7c74]{display:flex;align-items:baseline;gap:8px;font-size:14px}.feed__group-ticket[data-v-d92a7c74]{flex:none;font-weight:600}.feed__group-sum[data-v-d92a7c74]{overflow:hidden;color:var(--md-on-surface-variant);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.feed__group-meta[data-v-d92a7c74]{display:flex;align-items:center;gap:8px;margin-top:2px;color:var(--md-on-surface-variant);font-size:12px}.feed__group-kinds[data-v-d92a7c74]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.feed__group-when[data-v-d92a7c74]{margin-left:auto}.feed__group-count[data-v-d92a7c74]{flex:none;display:inline-flex;align-items:center;height:18px;padding:0 7px;border-radius:999px;background:var(--md-s-highest);color:var(--md-on-surface-variant);font-size:11px;font-weight:700}.feed__group-count--new[data-v-d92a7c74]{background:var(--new);color:var(--new-ink)}.feed__children[data-v-d92a7c74]{margin:0 0 0 35px;padding:0 0 4px;border-left:2px solid var(--md-outline-variant);list-style:none}.feed__children .feed-item[data-v-d92a7c74]{padding-left:14px}.feed__group-caret[data-v-d92a7c74]{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--md-s-highest);color:var(--md-on-surface-variant);font-size:14px;transition:transform .15s ease}.feed__group-caret[data-v-d92a7c74]:focus-visible{outline:var(--focus-ring)}.feed__group--open .feed__group-caret[data-v-d92a7c74]{transform:rotate(90deg)}@media(min-width:901px){.dashboard--fit .feed__list[data-v-d92a7c74]::-webkit-scrollbar{width:8px;height:8px}.dashboard--fit .feed__list[data-v-d92a7c74]::-webkit-scrollbar-thumb{border-radius:4px;background:var(--md-outline-variant)}}@media(max-width:900px){.feed__list[data-v-d92a7c74]{max-height:28rem}}.first-run[data-v-84359c2d]{display:grid;place-self:start center;gap:14px;width:min(640px,100%);padding:28px 32px}.first-run__title[data-v-84359c2d]{margin:0;font-size:22px;font-weight:400;line-height:28px}.first-run__text[data-v-84359c2d]{margin:0;color:var(--md-on-surface-variant)}.first-run__actions[data-v-84359c2d]{display:flex;flex-wrap:wrap;gap:8px;margin-top:4px}.first-run__ai[data-v-84359c2d]{font-size:13px}.markdown-view[data-v-dcf42e95]{padding:16px 20px 20px;overflow:auto;overflow-wrap:anywhere;font-size:14px;line-height:1.6}.markdown-view[data-v-dcf42e95] h4,.markdown-view[data-v-dcf42e95] h5{margin:16px 0 6px;font-weight:600}.markdown-view[data-v-dcf42e95] h4{font-size:16px}.markdown-view[data-v-dcf42e95] h5{font-size:14px}.markdown-view[data-v-dcf42e95] p{margin:0 0 10px}.markdown-view[data-v-dcf42e95] ul,.markdown-view[data-v-dcf42e95] ol{margin:0 0 10px;padding-left:22px}.markdown-view[data-v-dcf42e95] li{margin:2px 0}.markdown-view[data-v-dcf42e95] code{padding:1px 5px;border-radius:4px;background:rgb(var(--md-state),.1);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}.markdown-view[data-v-dcf42e95] pre{margin:0 0 12px;padding:12px 14px;overflow:auto;border-radius:8px;background:#00000047}.markdown-view[data-v-dcf42e95] pre code{padding:0;background:none;font-size:12.5px;line-height:1.5;white-space:pre}.markdown-view[data-v-dcf42e95] blockquote{margin:0 0 10px;padding:4px 12px;border-left:3px solid var(--md-primary);color:var(--md-on-surface-variant)}.markdown-view[data-v-dcf42e95] strong{font-weight:600}.markdown-view[data-v-dcf42e95] .markdown-view__mention{color:var(--md-primary);font-weight:500}.feedback-sheet__card[data-v-ec34adcc]{width:min(640px,100%)}.feedback-sheet__text[data-v-ec34adcc]{min-height:7rem;resize:vertical}.feedback-sheet__note[data-v-ec34adcc]{margin:0;color:var(--md-on-surface-variant);font-size:12px}.feedback-sheet__report[data-v-ec34adcc]{display:flex;align-items:baseline;gap:8px;padding:4px 0;border-top:1px solid var(--md-outline-variant);font-size:13px}.feedback-sheet__report-title[data-v-ec34adcc]{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.field-row[data-v-2ba0ba86]{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:4px 14px}.field-row__label[data-v-2ba0ba86]{color:var(--md-on-surface);font-size:13px}.field-row__hint[data-v-2ba0ba86]{grid-column:2;color:var(--md-on-surface-variant);font-size:11px}.field-row__check[data-v-2ba0ba86]{display:flex;align-items:center;gap:8px;color:var(--md-on-surface-variant);font-size:11px}.field-row__colour[data-v-2ba0ba86]{width:44px;height:30px;padding:2px}.field-row__inline[data-v-2ba0ba86]{display:flex;align-items:center;gap:8px}.settings-sheet__card[data-v-779d567d]{width:min(1040px,100%);height:min(760px,100%)}.settings-sheet__dirty[data-v-779d567d]{color:var(--md-error);font-size:12px;font-weight:600}.settings-sheet__confirm[data-v-779d567d]{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 20px 0;padding:8px 12px;border-radius:10px;background:var(--md-warn-container);color:var(--md-on-warn-container);font-size:13px}.settings-sheet__confirm-text[data-v-779d567d]{flex:1}.settings-sheet__alert[data-v-779d567d]{margin:12px 20px 0}.settings-sheet__body[data-v-779d567d]{display:grid;flex:1;grid-template-columns:220px minmax(0,1fr);gap:0;min-height:0}.settings-sheet__list[data-v-779d567d]{display:flex;flex-direction:column;gap:4px;margin:0;padding:12px;overflow:auto;border-right:1px solid var(--md-outline-variant);list-style:none}.settings-sheet__workspace[data-v-779d567d]{box-sizing:border-box;display:block;width:100%;padding:8px 12px;overflow:hidden;border-radius:10px;font-size:14px;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}.settings-sheet__workspace[data-v-779d567d]:hover{background:var(--state-hover)}.settings-sheet__workspace[aria-current=true][data-v-779d567d]{background:var(--md-secondary-container);color:var(--md-on-secondary-container)}.settings-sheet__workspace[data-v-779d567d]:focus-visible{outline:var(--focus-ring);outline-offset:-2px}.settings-sheet__workspace--add[data-v-779d567d]{color:var(--md-primary);font-weight:500}.settings-sheet__connector[data-v-779d567d]{display:flex;flex-direction:column;gap:10px;padding:12px 14px;border:1px solid var(--md-outline-variant);border-radius:12px;background:rgb(var(--glass),.35)}.settings-sheet__connector-head[data-v-779d567d]{display:flex;align-items:center;gap:10px}.settings-sheet__connector-name[data-v-779d567d]{flex:1;font-weight:600}.settings-sheet__actions[data-v-779d567d]{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.settings-sheet__rules[data-v-779d567d]{display:flex;flex-direction:column;gap:6px;margin:0;padding:0 0 0 28px;font-size:13px}.settings-sheet__rule[data-v-779d567d]{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px;padding:4px 0;border-bottom:1px solid var(--md-outline-variant)}.settings-sheet__rule-when[data-v-779d567d]{color:var(--md-on-surface-variant);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;overflow-wrap:anywhere}.settings-sheet__rule-then[data-v-779d567d]{overflow-wrap:anywhere}.settings-sheet__rules-note[data-v-779d567d]{margin:0;color:var(--md-on-surface-variant)}.app__shell[data-v-f146b085]{box-sizing:border-box;display:flex;flex-direction:column;height:100%;padding:12px 12px 12px 72px}.app__shell>.dashboard[data-v-f146b085]{flex:1 1 auto;min-height:0}@media(min-width:901px){.app__shell>.dashboard.dashboard--fit[data-v-f146b085]{height:auto}}@media(max-width:900px){.app__shell[data-v-f146b085]{height:auto}}
@@ -1,3 +0,0 @@
1
- import{w as X,t as qe,r as Ye,s as Kt,c as g,d as W,o as l,a as i,F as V,b as N,e as K,u as p,n as U,f as o,g as h,h as C,i as I,_ as j,j as F,k as O,l as q,m as Ue,p as vt,q as We,v as te,x as Gt,y as Le,z as Ne,A as He,B as Jt,C as mt,D as Zt,E as Qt,G as es,H as ts}from"./_plugin-vue_export-helper-DHr5RHTx.js";import{s as ss,m as kt,u as yt,a as gt,r as bt,p as ns,b as os,i as nt,l as wt,c as as,M as G,d as ge,e as me,f as ls,g as Xe,h as Te,j as rs,k as Me,n as is,o as cs,q as ds,t as us,v as ot,w as ps}from"./scheme-DJ3WNw60.js";import{g as Ae,r as _s,a as hs,e as fs,w as xt,p as ae,b as oe,T as je,S as we,c as ne,h as vs,s as Ke,m as he,d as ms,f as $t,i as Ge,j as ks,k as Je,l as ys,y as gs,n as bs,o as ws,q as Ct}from"./bem-COKTjsky.js";const pe=ss(bt),at=(e,t)=>{const s=G,a=new Float32Array(s*s);for(let r=0;r<a.length;r+=1)a[r]=e[r]===t?1e6:0;const n=(r,c,u)=>{a[c]+u<a[r]&&(a[r]=a[c]+u)};for(let r=0;r<s;r+=1)for(let c=0;c<s;c+=1){const u=r*s+c;c>0&&n(u,u-1,1),r>0&&n(u,u-s,1),c>0&&r>0&&n(u,u-s-1,Math.SQRT2),c<s-1&&r>0&&n(u,u-s+1,Math.SQRT2)}for(let r=s-1;r>=0;r-=1)for(let c=s-1;c>=0;c-=1){const u=r*s+c;c<s-1&&n(u,u+1,1),r<s-1&&n(u,u+s,1),c<s-1&&r<s-1&&n(u,u+s+1,Math.SQRT2),c>0&&r<s-1&&n(u,u+s-1,Math.SQRT2)}return a},De=e=>{const t=String(e||"").trim(),s=/^#([0-9a-f]{6})$/i.exec(t);if(s)return[0,2,4].map(n=>parseInt(s[1].slice(n,n+2),16));const a=t.match(/[\d.]+/g);return a&&a.length>=3?a.slice(0,3).map(Number):null},xs=e=>{const t=getComputedStyle(e),s=De(t.getPropertyValue("--md-primary"))||[44,86,151],a=De(t.getPropertyValue("--md-on-primary-container"))||s;return{core:nt()?s:s.map((n,r)=>wt(n,a[r],.35)),rim:De(t.getPropertyValue("--blob-3"))||[23,223,220],strength:nt()?.9:1}},$s=(e,t,s)=>({size:e.range(.85,1.05)*Math.min(t,s),right:e.chance(.4),bottom:e.chance(.7),overflowX:e.range(-.02,.06),overflowY:e.range(-.02,.04)}),Cs=e=>{const t={minX:G,maxX:0,minY:G,maxY:0};for(let a=0;a<e.length;a+=1)if(e[a]){const n=a%G,r=Math.floor(a/G);t.minX=Math.min(t.minX,n),t.maxX=Math.max(t.maxX,n),t.minY=Math.min(t.minY,r),t.maxY=Math.max(t.maxY,r)}const s=a=>(a-G/2)/ge;return{minX:s(t.minX),maxX:s(t.maxX),minY:s(t.minY),maxY:s(t.maxY)}},Ss=(e,t,s,a)=>{const n=t.maxX-t.minX,r=t.maxY-t.minY,c=Math.min(e.size,2*s*.95/n,2*a*.98/r),u=c/2,v=-e.overflowX*c,_=-e.overflowY*c;return{size:c,centerX:e.right?s-v-t.maxX*u:v-t.minX*u,centerY:e.bottom?a-_-t.maxY*u:_-t.minY*u}},Ts=(e,t,s)=>"rgba("+e.core.map((n,r)=>Math.round(wt(n,e.rim[r],t))).join(",")+","+s.toFixed(3)+")",Ms=(e,t,s)=>{const a=[],n=t.size/62,r=t.size/2/ge,c=t.size*ls/4,u=n*.866;for(let v=0,_=t.centerY-c;_<t.centerY+c;v+=1,_+=u)for(let y=t.centerX-c+v%2*n/2;y<t.centerX+c;y+=n){const A=y+e.range(-.3,.3)*n,E=_+e.range(-.3,.3)*n,R=Math.floor((A-t.centerX)/r+G/2),S=Math.floor((E-t.centerY)/r+G/2);if(R<0||S<0||R>=G||S>=G)continue;const d=S*G+R,k=e.next(),f=e.range(.75,1.25),B=e.range(-.15,.15);if(s.inside[d]){const z=s.depth[d]/ge,L=me(z/.035),J=me(z/.3);if(k>.5+.5*L)continue;a.push({x:A,y:E,radius:n*.5*(.45+.55*L)*(.95+.3*J)*f,alpha:.5+.25*L+.25*J,tint:me(.65-.65*J+B)})}else{const z=s.gap[d]/ge;if(k>.14*Math.exp(-z/.05)+.004)continue;a.push({x:A,y:E,radius:n*e.range(.1,.24),alpha:.35,tint:me(.8+B)})}}return a},As=()=>document.getElementById("wt"),Rs=()=>document.getElementById("backdrop"),St=()=>Math.floor(Math.random()*4294967296),ke={},D={workspace:"",seed:St(),species:"",wantedSpecies:"",wantedPose:"",built:null},Es=(e,t)=>{const s=as(D.seed),a=pe[Math.floor(s.next()*pe.length)];D.species=pe.includes(D.wantedSpecies)?D.wantedSpecies:a;const n=$s(s,e,t),r={facing:n.right?-1:1,tilt:s.range(-.07,.07),stretchX:s.range(.92,1.08),stretchY:s.range(.92,1.08)};s.chance(.25)&&(r.facing=-r.facing);const c=ns(os(bt,D.species,s,{pose:D.wantedPose}).shapes,r),u={inside:c,depth:at(c,1),gap:at(c,0)},v=Ss(n,Cs(c),e,t);return{key:D.seed+":"+D.species+":"+e+"x"+t,dots:Ms(s,v,u)}},xe=()=>{const e=Rs();if(!e)return;const t=e.clientWidth,s=e.clientHeight,a=window.devicePixelRatio||1,n=Math.round(t*a),r=Math.round(s*a);(e.width!==n||e.height!==r)&&(e.width=n,e.height=r);const c=e.getContext("2d");if(!c||(c.setTransform(a,0,0,a,0,0),c.clearRect(0,0,t,s),!t||!s))return;const u=D.seed+":"+(D.wantedSpecies||"?")+":"+t+"x"+s;(!D.built||D.built.key.split(":")[0]!==String(D.seed)||!D.built.key.endsWith(t+"x"+s)||D.wantedSpecies&&D.species!==D.wantedSpecies)&&(D.built=Es(t,s));const v=As();if(!v)return u;const _=xs(v);return D.built.dots.forEach(y=>{c.fillStyle=Ts(_,y.tint,y.alpha*_.strength),c.beginPath(),c.arc(y.x,y.y,y.radius,0,Math.PI*2),c.fill()}),u};window.whoseTurnBackdrop={species:pe.slice(),seeded:kt,get current(){return{workspace:D.workspace,species:D.species,seed:D.seed}},show:e=>{const t=e||{},s=String(t.workspace||"");ke[s]||(ke[s]=St());const a=t.seed!==void 0?Number(t.seed)>>>0:ke[s];ke[s]=a;const n=t.species&&pe.includes(t.species)?t.species:"",r=String(t.pose||"");return s===D.workspace&&a===D.seed&&n===D.wantedSpecies&&r===D.wantedPose&&D.built||(D.workspace=s,D.seed=a,D.wantedSpecies=n,D.wantedPose=r,D.built=null,xe()),window.whoseTurnBackdrop.current},repaint:xe};X(Xe,xe);yt(window,"resize",gt(xe,200));const{show:Tt,repaint:Os,seeded:Pr}=window.whoseTurnBackdrop,Is=()=>{window.tippy&&window.tippy.delegate(document.body,{target:"[data-tip]",content:e=>e.dataset.tip||"",trigger:"mouseenter focus click",delay:[0,80],duration:[120,80],interactive:!0,maxWidth:440,placement:"top",theme:"wt",appendTo:()=>document.body})},Ds=()=>{let e=0;return{next:()=>++e,accepts:t=>t===e}},lt=e=>{const t=structuredClone(qe(e)),s=t.connectors||{},a=t.rules||{};return a.statuses=a.statuses||{},{...t,connectors:Array.isArray(s)?s:Object.entries(s).map(([n,r])=>({type:n,...r})),rules:a,theme:t.theme||{}}},Bs=e=>{const t=structuredClone(qe(e));return t.theme&&!Object.keys(t.theme).length&&delete t.theme,t.rules&&!Object.keys(t.rules.statuses||{}).length&&delete t.rules.statuses,t.rules&&!Object.keys(t.rules).length&&delete t.rules,t},rt=new WeakMap;let Vs=0;const it=e=>{const t=qe(e);let s=rt.get(t);return s||(s=++Vs,rt.set(t,s)),s},ct=e=>JSON.stringify(e),Us=(e,t)=>{const s=[];return e.forEach(a=>a.connectors.forEach(n=>{const r=t.get(n)||{};Object.keys(r).forEach(c=>{r[c]&&s.push({ws:a.id,connector:n.id||n.type,key:c,value:r[c]})})})),s},le=(e,t,s)=>{typeof s=="boolean"||s&&s.length?e[t]=s:delete e[t]},Ws=(e,t)=>{const s=a=>{const n=t.indexOf(a.id);return n<0?t.length:n};return[...e].sort((a,n)=>s(a)-s(n))},Ns=(e,t,s,a)=>{const n=e.filter(r=>r!==t);return n.splice(n.indexOf(s)+(a?0:1),0,t),n},js={gt:">",gte:"≥",lt:"<",lte:"≤",prefix:"starts with"},Ps=(e,t)=>`${e} is ${t?"present":"absent"}`,Fs=(e,t)=>Array.isArray(t)?`${e} in ${t.join(", ")}`:t&&typeof t=="object"?Object.entries(t).map(([s,a])=>s==="present"?Ps(e,a):`${e} ${js[s]} ${JSON.stringify(a)}`).join(" and "):`${e} = ${t}`,zs=e=>({when:Object.entries(e.when).map(([t,s])=>Fs(t,s)).join(" and ")||"anything else",then:e.then.whose==="hidden"?"hidden":`${e.then.whose}: ${e.then.next}`}),qs=e=>e.modal?"modal":e.settings?"settings":e.feedback?"feedback":null,Ys=(e,t)=>{const s=new URLSearchParams(e).get("mode");return s==="app"||s==="tab"?s:t==="app"?"app":"tab"},Ls=e=>"/?mode=tab"+(e?"&ws="+encodeURIComponent(e):""),Hs=e=>({width:e.outerWidth,height:e.outerHeight}),Mt={writeDefaults:!1},At=Te("wt-ws","",Mt),Rt=rs("wt-mode","",Mt),m=Kt({workspaces:[],workspace:{id:"",name:"",connectors:[],links:[],key_pattern:"",theme:null},turn:[],feed:[],marks:{seen:[],base:0,handled:{}},counts:{mine:0,others:0,failing:0,done:0},todos:[],errors:{},health:{ok:!0,stale:!1,fresh_at:"",failing:[],alerts:[]},problems:[],polled_at:"",update:{current:"",latest:"",available:!1,state:"idle"}}),b=Ye({ws:new URLSearchParams(location.search).get("ws")||At.value,open:new Set,mode:Ys(location.search,Rt.value),live:!1,reconnects:0,status:"Connecting…",modal:null,feedback:!1,settings:!1,settingsDirty:!1,settingsAsk:!1,settingsAt:""});Rt.value=b.mode;const $e=Me("",6e3),ie=(e,t)=>{const s=oe(e,t);return s&&($e.value=s),!s},Xs=()=>{b.mode==="app"&&yt(window,"resize",gt(()=>ae("/api/window",Hs(window)).catch(ie),600))},Et={resume:()=>{}},ce=cs({scheduler:e=>{const t=ds(e,3e4,{immediate:!1});return Et.resume=t.resume,t}}),dt=g(()=>{const e=m.workspace.theme;return e&&e.light&&e.dark?e[Xe.value?"dark":"light"]:{}}),H=g(()=>m.counts),ut=g(()=>[...m.problems||[],...m.health.alerts.map(e=>e.text),...Object.entries(m.errors||{}).map(([e,t])=>e+": "+t)]),Ks=(e="")=>{b.settingsAt=e,b.settings=!0},Ot=g(()=>qs(b)),Gs=()=>{const e=Ot.value;if(e==="modal"&&(b.modal=null),e==="feedback"&&(b.feedback=!1),e==="settings"){if(b.settingsDirty){b.settingsAsk=!0;return}b.settings=!1}},Pe=new Map,Js=(e,t)=>{t&&Pe.set(e,document.activeElement)},Zs=(e,t)=>{if(t)return;const s=Pe.get(e);Pe.delete(e),s instanceof HTMLElement&&s.focus()},Qs={modal:()=>!!b.modal,settings:()=>b.settings,feedback:()=>b.feedback};Object.entries(Qs).forEach(([e,t])=>{X(t,s=>Js(e,s),{flush:"sync"}),X(t,s=>Zs(e,s),{flush:"post"})});let Ce=-1,Fe=0;const pt=Ds(),fe=(e=b.ws)=>{const t=pt.next();return Ae("/api/state"+(e?"?ws="+encodeURIComponent(e):"")).then(s=>pt.accepts(t)?s.error?_s(s.error)!=="NO_SUCH_WORKSPACE"||!hs(e)?(b.status=fs(s.error,"Could not load"),m):fe(""):(Object.assign(m,s),b.ws=m.workspace.id,b.status="",Tt({workspace:m.workspace.id}),document.title="Whose Turn · "+m.workspace.name,m):m)},It=()=>(Ce=-1,fe()),_e=is("/api/stream",[],{immediate:!1,autoConnect:!1,autoReconnect:!0,serializer:{read:e=>JSON.parse(e||"null")}});X(_e.status,e=>{b.live=e==="OPEN",b.live&&(b.status="",b.reconnects++)},{flush:"sync"});X(_e.error,e=>{e&&(b.status="Disconnected from the local server, retrying…")},{flush:"sync"});X(_e.data,e=>{if(e){if("update"in e){m.update=e.update;return}typeof e.open_moves=="number"&&(m.workspaces=xt(m.workspaces,e.ws,e.open_moves)),!(m.workspace.id&&e.ws!==m.workspace.id)&&(b.status="",e.version!==Ce?(Ce=e.version,Fe===0&&fe()):m.polled_at=e.polled_at)}},{flush:"sync"});const en=()=>{_e.eventSource.value||_e.open()},tn=()=>(Et.resume(),fe().then(en)),sn=e=>e===m.workspace.id?Promise.resolve():(Ce=-1,Fe++,fe(e).then(()=>{b.ws===e&&(At.value=b.ws,b.open.clear())},()=>{$e.value=we+"; staying on "+m.workspace.name+"."}).finally(()=>{Fe--})),Dt=(e,t)=>ae(e,{ws:m.workspace.id,...t}),ze=e=>Dt("/api/marks",e).then(t=>{const s=oe(t);return s||(Object.assign(m,{marks:t.marks,turn:t.turn,counts:t.counts}),m.workspaces=xt(m.workspaces,m.workspace.id,t.counts.mine)),s},t=>oe(t)),nn=e=>Dt("/api/todos",e).then(t=>{const s=oe(t,{unreachable:je});return!s&&Array.isArray(t)&&(m.todos=t),s},t=>oe(t,{unreachable:je})),on=e=>Ae("/api/config").then(t=>ae("/api/config",{workspaces:Ws(t.workspaces,e),secrets:[]})).then(t=>{ie(t,{refused:"The order was not saved"})&&It()},t=>ie(t,{refused:"The order was not saved"})),_t=()=>{b.status="Checking now…",ae("/api/refresh").catch(e=>{b.status="",ie(e)}),Tt({workspace:m.workspace.id,seed:Math.floor(Math.random()*4294967296)})},an="M12 2.5l1.9 5.6 5.6 1.9-5.6 1.9L12 17.5l-1.9-5.6L4.5 10l5.6-1.9L12 2.5zM5 15l.9 2.6 2.6.9-2.6.9L5 22l-.9-2.6-2.6-.9 2.6-.9L5 15zm14-2l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7.7-2z",ln="M19.4 13a7.6 7.6 0 0 0 0-2l2-1.5-2-3.4-2.4 1a7.5 7.5 0 0 0-1.7-1L15 3.5H9l-.3 2.6a7.5 7.5 0 0 0-1.7 1l-2.4-1-2 3.4 2 1.5a7.6 7.6 0 0 0 0 2l-2 1.5 2 3.4 2.4-1a7.5 7.5 0 0 0 1.7 1l.3 2.6h6l.3-2.6a7.5 7.5 0 0 0 1.7-1l2.4 1 2-3.4-2-1.5zM12 15.5a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7z",rn="M19 8h-1.8a5.9 5.9 0 0 0-1.3-1.9l1.6-1.6-1.4-1.4-1.9 1.9A5.7 5.7 0 0 0 12 4.5a5.7 5.7 0 0 0-2.2.5L7.9 3.1 6.5 4.5l1.6 1.6A5.9 5.9 0 0 0 6.8 8H5v2h1.2a7 7 0 0 0 0 1v1H5v2h1.3a6 6 0 0 0 11.4 0H19v-2h-1.2v-1a7 7 0 0 0 0-1H19V8zm-7 10a4 4 0 0 1-4-4v-3a4 4 0 0 1 8 0v3a4 4 0 0 1-4 4zm-1-7h2v5h-2z",cn=e=>{let t=2166136261;for(let s=0;s<e.length;s+=1)t^=e.charCodeAt(s),t=Math.imul(t,16777619);return t>>>0},Bt=e=>{const t=String(e||"").trim().split(/[\s_-]+/).filter(Boolean);return(t.length>=2?t.slice(0,3).map(a=>a.charAt(0)):(t[0]||"?").slice(0,2).split("")).join("").toUpperCase()},dn=e=>({1:17,2:14,3:11})[e.length]||11,un=(e,t)=>{const s=t(cn(e.id)),a=[],n=3+Math.floor(s()*3);for(let c=0;c<n;c+=1){const u=s()*Math.PI*2,v=9+s()*7;a.push({cx:(18+Math.cos(u)*v).toFixed(1),cy:(18+Math.sin(u)*v).toFixed(1),r:(1.6+s()*2.2).toFixed(1),opacity:(.35+s()*.4).toFixed(2)})}const r=Bt(e.name||e.id);return{dots:a,glyph:r,fontSize:dn(r)}},pn={class:"rail","aria-label":"Workspaces"},_n=["data-drop","href","aria-label","aria-selected","onClick","onDragstart","onDragover","onDrop"],hn={viewBox:"0 0 36 36",class:"rail__icon","aria-hidden":"true"},fn=["fill"],vn=["cx","cy","r","fill","opacity"],mn=["y","font-size","fill"],kn={class:"rail__label"},yn={key:0,class:"rail__badge"},gn={viewBox:"0 0 24 24",class:"rail__gear","aria-hidden":"true"},bn=["d"],wn=W({__name:"Rail",emits:["settings"],setup(e,{emit:t}){const s=t,a=g(()=>Object.fromEntries(m.workspaces.map(d=>[d.id,un(d,kt)]))),n=g(()=>Object.fromEntries(m.workspaces.map(d=>{const k=d.theme?d.theme[Xe.value?"dark":"light"]:null;return[d.id,{fill:k?k["--md-primary-container"]:"var(--md-primary-container)",ink:k?k["--md-on-primary-container"]:"var(--md-on-primary-container)",dot:k?k["--md-primary"]:"var(--md-primary)"}]}))),r=d=>{d.detail>0&&d.currentTarget.blur()},c=(d,k)=>{r(d),sn(k)},u=d=>{s("settings"),r(d)},v=I(""),_=I({}),y=d=>{const k=d.currentTarget;return d.clientY-k.getBoundingClientRect().top<k.offsetHeight/2},A=(d,k)=>{v.value=k.id,d.dataTransfer&&(d.dataTransfer.effectAllowed="move",d.dataTransfer.setData("text/plain",k.id))},E=()=>{v.value="",_.value={}},R=(d,k)=>{if(!v.value||v.value===k.id)return;d.preventDefault(),d.dataTransfer&&(d.dataTransfer.dropEffect="move");const f=y(d)?"before":"after";(_.value.id!==k.id||_.value.side!==f)&&(_.value={id:k.id,side:f})},S=(d,k)=>{if(!v.value||v.value===k.id)return;d.preventDefault();const f=Ns(m.workspaces.map(B=>B.id),v.value,k.id,y(d));_.value={},on(f)};return(d,k)=>(l(),i("nav",pn,[(l(!0),i(V,null,N(p(m).workspaces,f=>(l(),i("a",{key:f.id,class:U(["rail__item",{"rail__item--dragging":v.value===f.id}]),"data-drop":_.value.id===f.id?_.value.side:null,href:"?ws="+encodeURIComponent(f.id),"aria-label":f.name,"aria-selected":f.id===p(m).workspace.id,draggable:"true",onClick:K(B=>c(B,f.id),["prevent"]),onDragstart:B=>A(B,f),onDragend:E,onDragover:B=>R(B,f),onDragleave:k[0]||(k[0]=B=>_.value={}),onDrop:B=>S(B,f)},[(l(),i("svg",hn,[o("rect",{x:"0",y:"0",width:"36",height:"36",rx:"10",fill:n.value[f.id].fill},null,8,fn),(l(!0),i(V,null,N(a.value[f.id].dots,(B,z)=>(l(),i("circle",{key:z,cx:B.cx,cy:B.cy,r:B.r,fill:n.value[f.id].dot,opacity:B.opacity},null,8,vn))),128)),o("text",{x:"18",y:a.value[f.id].fontSize>=17?24:23,"text-anchor":"middle","font-size":a.value[f.id].fontSize,"font-weight":"700","letter-spacing":"-0.5","font-family":"Roboto, Inter, system-ui, sans-serif",fill:n.value[f.id].ink},h(a.value[f.id].glyph),9,mn)])),o("span",kn,h(f.name),1),f.open_moves?(l(),i("span",yn,h(f.open_moves),1)):C("",!0)],42,_n))),128)),k[2]||(k[2]=o("span",{class:"rail__spacer"},null,-1)),o("a",{class:"rail__item",href:"#settings","aria-label":"Settings",onClick:K(u,["prevent"])},[(l(),i("svg",gn,[o("path",{d:p(ln),fill:"currentColor"},null,8,bn)])),k[1]||(k[1]=o("span",{class:"rail__label"},"Settings",-1))])]))}}),xn=j(wn,[["__scopeId","data-v-be863916"]]),Be=" · checks every minute",Vt=(e,t,s,a)=>{const n=e.failing.map(c=>c.source),r=t?ne(t):"—";return n.length&&n.length>=s?{dot:"off",text:"No data: "+n.join(", ")+" failing · last data "+ne(e.fresh_at),failing:n,noData:!0}:e.stale?{dot:"off",text:"Stale · last data "+ne(e.fresh_at)+Be,failing:n,noData:!1}:n.length?{dot:a?"warn":"off",text:n.join(", ")+" failing · last check "+r+Be,failing:n,noData:!1}:{dot:a?"ok":"off",text:"Live · last check "+r+Be,failing:n,noData:!1}},$n=["data-tip"],Cn={class:"ai-button__icon",viewBox:"0 0 24 24","aria-hidden":"true"},Sn=["d"],Tn=W({__name:"AiButton",props:{query:{},big:{type:Boolean}},setup(e){const t=e,s={"":"Copy for AI: this with its context as text, ready to paste into Claude or any other assistant",sent:"Copied",failed:"Could not copy"},a=Me("",1600),n=g(()=>s[a.value]),r=()=>vs(t.query).then(c=>navigator.clipboard.writeText(c)).then(()=>{a.value="sent"},()=>{a.value="failed"});return(c,u)=>(l(),i("button",{type:"button",class:U(["ai-button",{"ai-button--big":e.big,"ai-button--sent":p(a)==="sent","ai-button--failed":p(a)==="failed"}]),"aria-label":"Copy for AI","data-tip":n.value,onClick:K(r,["stop"])},[(l(),i("svg",Cn,[o("path",{d:p(an),fill:"currentColor"},null,8,Sn)]))],10,$n))}}),de=j(Tn,[["__scopeId","data-v-d32a60c7"]]),Mn={key:0,class:"update-chip update-chip--done",role:"status"},An={key:1,class:"update-chip update-chip--busy",role:"status"},Rn=["title"],En=15e3,On=W({__name:"UpdateChip",setup(e){const t=I(!1),s=I(""),a=Me("",En),n=g(()=>m.update),r=g(()=>t.value||n.value.state==="installing"||n.value.state==="restarting");X(()=>n.value.current,u=>{s.value&&u&&u!==s.value&&(a.value=u,s.value="")});const c=()=>{if(r.value)return;t.value=!0,s.value=n.value.current;const u=v=>{if(t.value=!1,!ie(v,{refused:"The update did not start"})){s.value="";return}m.update=v.update};ae("/api/update").then(u,u)};return(u,v)=>p(a)?(l(),i("span",Mn,"Updated to "+h(p(a)),1)):r.value?(l(),i("span",An,"Updating…")):n.value.available&&n.value.state==="failed"?(l(),i("button",{key:2,type:"button",class:"update-chip update-chip--failed",title:n.value.reason,onClick:c}," Update failed · Retry ",8,Rn)):n.value.available?(l(),i("button",{key:3,type:"button",class:"update-chip",onClick:c},h(n.value.latest)+" is out · Update ",1)):C("",!0)}}),In=j(On,[["__scopeId","data-v-f70d2aed"]]),Dn={class:"status-bar"},Bn={class:"status-bar__icon",viewBox:"0 0 24 24","aria-hidden":"true"},Vn=["d"],Un={key:0,class:"status-bar__notice",role:"alert"},Wn=["href"],Nn=["aria-disabled"],jn=5e3,Pn=W({__name:"StatusBar",emits:["report"],setup(e,{emit:t}){const s=t,a=g(()=>(ce.value,Vt(m.health,m.polled_at,m.workspace.connectors.length,b.live))),n=I(!1),r=I(!1),c=g(()=>r.value?"Opened in the app window. You can close this tab.":b.status||a.value.text),u=_=>ie(_,{refused:"The app window did not open"}),v=()=>{if(n.value)return;n.value=!0,setTimeout(()=>n.value=!1,jn);const _=y=>{u(y),r.value=!oe(y)};ae("/api/open",{mode:"app"}).then(_,_)};return(_,y)=>(l(),i("div",Dn,[o("button",{type:"button",class:"btn status-bar__btn status-bar__report",title:"A bug or a wish about this monitor, straight to its backlog",onClick:y[0]||(y[0]=A=>s("report"))},[(l(),i("svg",Bn,[o("path",{d:p(rn),fill:"currentColor"},null,8,Vn)])),y[2]||(y[2]=F("Report ",-1))]),o("span",{class:U(["status-bar__live",{"status-bar__live--off":a.value.dot==="off","status-bar__live--warn":a.value.dot==="warn"}])},null,2),o("span",null,h(c.value),1),p($e)?(l(),i("span",Un,h(p($e)),1)):C("",!0),O(In),o("button",{type:"button",class:"btn status-bar__btn",onClick:y[1]||(y[1]=(...A)=>p(_t)&&p(_t)(...A))},"Refresh now"),p(b).mode==="app"?(l(),i("a",{key:1,class:"btn status-bar__btn",href:p(Ls)(p(b).ws),target:"_blank",rel:"noopener"},"Open in browser",8,Wn)):(l(),i("button",{key:2,type:"button",class:U(["btn status-bar__btn",{"status-bar__btn--busy":n.value}]),"aria-disabled":n.value,onClick:v},h(n.value?"Opening…":"Open as app"),11,Nn)),O(de,{query:{all:"1"}}),y[3]||(y[3]=o("span",{class:"ai-hint status-bar__ai-hint"},"AI: copy everything",-1))]))}}),Fn=j(Pn,[["__scopeId","data-v-eefe1de8"]]),Ut=e=>{const t=Te("wt-collapsed",[],{writeDefaults:!1}),s=g(()=>t.value.includes(e));return{collapsed:s,toggle:()=>{t.value=s.value?t.value.filter(n=>n!==e):[...t.value,e]}}},zn=["href"],qn={key:1},se=W({__name:"ExtLink",props:{text:{default:""},url:{default:""}},setup(e){const t=e,s=g(()=>Ke(t.url));return(a,n)=>s.value?(l(),i("a",{key:0,href:s.value,target:"_blank",rel:"noopener"},h(e.text),9,zn)):(l(),i("span",qn,h(e.text),1))}}),Yn={class:"workspace-header__title"},Ln={class:"workspace-header__name"},Hn={class:"workspace-header__line workspace-header__sentence"},Xn={class:"workspace-header__count"},Kn={class:"workspace-header__count"},Gn={key:0},Jn={class:"workspace-header__count"},Zn={key:0,class:"workspace-header__line workspace-header__strip"},Qn={class:"workspace-header__count"},eo={class:"workspace-header__count"},to={class:"workspace-header__count"},so={class:"workspace-header__count"},no={class:"workspace-header__line workspace-header__give"},oo={class:"workspace-header__links"},ao={class:"workspace-header__tiles"},lo={class:"workspace-header__tile workspace-header__tile--you"},ro={class:"workspace-header__tile-value"},io={class:"workspace-header__tile"},co={class:"workspace-header__tile-value"},uo={class:"workspace-header__tile-value"},po={class:"workspace-header__tile"},_o={class:"workspace-header__tile-value"},ho=W({__name:"WorkspaceHeader",setup(e){const{collapsed:t,toggle:s}=Ut("header");return(a,n)=>(l(),i("header",{id:"summary",class:U(["island workspace-header",{"workspace-header--collapsed":p(t)}])},[o("div",Yn,[o("h1",Ln,h(p(m).workspace.name||"Whose Turn"),1),o("p",Hn,[o("b",Xn,h(p(H).mine),1),n[3]||(n[3]=F(" waiting on you, ",-1)),o("b",Kn,h(p(H).others),1),n[4]||(n[4]=F(" waiting on someone else",-1)),p(H).failing?(l(),i("span",Gn,[n[1]||(n[1]=F(", ",-1)),o("b",Jn,h(p(H).failing),1),n[2]||(n[2]=F(" failing",-1))])):C("",!0),n[5]||(n[5]=F(". ",-1))]),p(t)?(l(),i("p",Zn,[n[6]||(n[6]=F(" Your move ",-1)),o("b",Qn,h(p(H).mine),1),n[7]||(n[7]=F(" · Waiting on others ",-1)),o("b",eo,h(p(H).others),1),n[8]||(n[8]=F(" · Failing ",-1)),o("b",to,h(p(H).failing),1),n[9]||(n[9]=F(" · Done ",-1)),o("b",so,h(p(H).done),1)])):C("",!0),o("p",no,[O(de,{query:{ws:p(m).workspace.id,kind:"workspace"},big:""},null,8,["query"]),n[10]||(n[10]=o("span",{class:"ai-hint"},"AI: copy this workspace",-1)),o("span",oo,[(l(!0),i(V,null,N(p(m).workspace.links||[],r=>(l(),q(se,{key:r.url,text:r.label,url:r.url,title:r.url},null,8,["text","url","title"]))),128))])])]),o("button",{type:"button",class:U(["fold-toggle workspace-header__fold",{"fold-toggle--folded":p(t)}]),"aria-label":"Collapse or expand header","data-tip":"Fold the header; it stays folded until you open it again",onClick:n[0]||(n[0]=K((...r)=>p(s)&&p(s)(...r),["stop"]))}," ▾ ",2),o("div",ao,[o("div",lo,[n[11]||(n[11]=o("span",{class:"workspace-header__tile-label"},"Your move",-1)),o("strong",ro,h(p(H).mine),1)]),o("div",io,[n[12]||(n[12]=o("span",{class:"workspace-header__tile-label"},"Waiting on others",-1)),o("strong",co,h(p(H).others),1)]),o("div",{class:U(["workspace-header__tile",{"workspace-header__tile--fail":p(H).failing}])},[n[13]||(n[13]=o("span",{class:"workspace-header__tile-label"},"Open PRs with failing checks",-1)),o("strong",uo,h(p(H).failing),1)],2),o("div",po,[n[14]||(n[14]=o("span",{class:"workspace-header__tile-label"},"Done in the last 30 days",-1)),o("strong",_o,h(p(H).done),1)])])],2))}}),fo=j(ho,[["__scopeId","data-v-0f4b6d6e"]]),Ze=e=>{X(()=>b.reconnects,e)},vo=["id"],mo={class:"island__head"},ko={class:"island__title"},yo={class:"island__note"},go={class:"island__note-text"},bo=["data-tip"],wo=["aria-label"],xo={class:"island__body"},$o=W({__name:"Island",props:{id:{},title:{},note:{default:""},tip:{default:""},column:{type:Boolean}},setup(e){const t=e,{collapsed:s,toggle:a}=Ut(t.id);return(n,r)=>(l(),i("section",{id:e.id,class:U(["island",{"island--collapsed":p(s),"island--column":e.column}])},[o("div",mo,[o("h2",ko,[F(h(e.title)+" ",1),Ue(n.$slots,"head",{},void 0)]),o("p",yo,[o("span",go,h(e.note),1),e.tip?(l(),i("button",{key:0,type:"button",class:"hint-icon","aria-label":"More info","data-tip":e.tip}," ? ",8,bo)):C("",!0),o("button",{type:"button",class:U(["fold-toggle",{"fold-toggle--folded":p(s)}]),"aria-label":"Collapse or expand "+e.id,"data-tip":"Fold this panel; it stays folded until you open it again",onClick:r[0]||(r[0]=K((...c)=>p(a)&&p(a)(...c),["stop"]))}," ▾ ",10,wo)])]),o("div",xo,[Ue(n.$slots,"default",{},void 0)])],10,vo))}}),Re=j($o,[["__scopeId","data-v-a03b7f62"]]),Co=["aria-label"],So=["aria-pressed","onClick"],To={key:0,class:"segmented__count"},Mo=W({__name:"Segmented",props:We({options:{},label:{default:""},chips:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=vt(e,"modelValue");return(s,a)=>(l(),i("span",{class:U(["segmented",{"segmented--chips":e.chips}]),role:"group","aria-label":e.label},[(l(!0),i(V,null,N(e.options,n=>(l(),i("button",{key:n.id,type:"button",class:"segmented__option","aria-pressed":t.value===n.id,onClick:r=>t.value=n.id},[F(h(n.label),1),n.count!==void 0?(l(),i("b",To,h(n.count),1)):C("",!0)],8,So))),128))],10,Co))}}),Se=j(Mo,[["__scopeId","data-v-7901b5d6"]]),Ao={class:"ticket-cell"},Ro={class:"ticket-cell__summary"},Eo=W({__name:"TicketCell",props:{row:{}},setup(e){return(t,s)=>(l(),i("td",Ao,[O(se,{text:e.row.key,url:e.row.ticket_url,class:"ticket-key"},null,8,["text","url"]),o("span",Ro,h(e.row.summary),1)]))}}),Qe=j(Eo,[["__scopeId","data-v-8436de88"]]),Oo={key:0,class:"pr-cell"},Io={key:1,class:"pill"},Do=W({__name:"PrCell",props:{row:{}},setup(e){return(t,s)=>(l(),i("td",null,[e.row.pr?(l(),i("span",Oo,[O(se,{text:e.row.pr,url:e.row.pr_url,class:"pr-cell__link"},null,8,["text","url"]),e.row.pr_state==="OPEN"&&e.row.checks?(l(),i("span",{key:0,class:U(["pill",p(he)("pill",p(ms)(e.row.checks))])},h(e.row.checks),3)):e.row.pr_state?(l(),i("span",Io,h(e.row.pr_state.toLowerCase()),1)):C("",!0)])):C("",!0)]))}}),Wt=j(Do,[["__scopeId","data-v-75c443c3"]]),Bo=["open"],Vo={class:"recently-done__summary"},Uo={class:"recently-done__count"},Wo={class:"recently-done__list"},No={class:"table"},jo=["data-tip"],Po={class:"table__actions"},Fo=W({__name:"RecentlyDone",setup(e){const t=Te("wt-recent-open",!1,{writeDefaults:!1,serializer:{read:n=>n==="1",write:n=>n?"1":"0"}}),s=n=>{t.value=n.target.open},a=g(()=>(ce.value,ks(m.turn).map(n=>({row:n,since:Je(n.status_since||n.updated)}))));return(n,r)=>a.value.length?(l(),i("details",{key:0,class:"recently-done",open:p(t),onToggle:s},[o("summary",Vo,[r[0]||(r[0]=F(" Recently done ",-1)),o("span",Uo,h(a.value.length),1)]),o("div",Wo,[o("table",No,[r[1]||(r[1]=o("thead",null,[o("tr",null,[o("th",null,"Ticket"),o("th",null,"Status"),o("th",null,"Done"),o("th",{class:"table__actions-col"},[o("span",{class:"visually-hidden"},"Copy for AI")])])],-1)),o("tbody",null,[(l(!0),i(V,null,N(a.value,({row:c,since:u})=>(l(),i("tr",{key:c.row_id},[O(Qe,{row:c},null,8,["row"]),o("td",null,[o("span",{class:U(["pill",p(he)("pill",p($t)(c.status_group))])},h(c.status),3)]),o("td",null,[o("span",{class:"age","data-tip":"Done "+p(Ge)(c.status_since||c.updated)},h(u.text),9,jo)]),o("td",Po,[O(de,{class:"table__ai",query:{ws:p(m).workspace.id,kind:"row",ref:c.row_id}},null,8,["query"])])]))),128))])])])],40,Bo)):C("",!0)}}),zo=j(Fo,[["__scopeId","data-v-12ee20e8"]]),qo=13,Yo=W({__name:"RowScroll",props:{floor:{type:Boolean}},setup(e){const t=I(null),s=I(null),{y:a}=us(t),{height:n}=ot(t),{height:r}=ot(s),c=()=>{var y,A,E;return[...((E=(A=(y=s.value)==null?void 0:y.querySelector("table"))==null?void 0:A.tBodies[0])==null?void 0:E.rows)||[]]},u=()=>{const y=t.value;return y?y.getBoundingClientRect().top+y.clientTop+y.clientHeight:0},v=g(()=>(a.value,n.value,r.value,ys(c().map(y=>y.getBoundingClientRect().bottom),u(),qo))),_=()=>{var d,k;const y=t.value,A=c(),E=A[A.length-v.value];if(!y||!E)return;const S=((k=(d=s.value)==null?void 0:d.querySelector("thead"))==null?void 0:k.getBoundingClientRect().bottom)??y.getBoundingClientRect().top;y.scrollBy({top:E.getBoundingClientRect().top-S,behavior:"smooth"})};return(y,A)=>(l(),i(V,null,[o("div",{ref_key:"scroller",ref:t,class:U(["row-scroll",{"row-scroll--floor":e.floor}])},[o("div",{ref_key:"content",ref:s},[Ue(y.$slots,"default",{},void 0)],512)],2),v.value?(l(),i("button",{key:0,type:"button",class:"row-scroll__more",onClick:_}," +"+h(v.value)+" more ",1)):C("",!0)],64))}}),Nt=j(Yo,[["__scopeId","data-v-7bd9ace7"]]),Lo=I("open"),Ho=()=>Lo,Xo={class:"table"},Ko={class:"hint-row"},Go={class:"your-move__next"},Jo=["data-tip"],Zo=["data-tip"],Qo=["data-tip"],ea={key:0,class:"alert alert--inline your-move__problem",role:"alert"},ta={class:"table__actions"},sa=["aria-label","onClick"],na={key:0,class:"empty"},oa=W({__name:"YourMove",setup(e){const t=Ho(),s=g(()=>{ce.value;const u=gs(m.turn,t.value);return{...u,rows:u.rows.map(v=>({...v,age:Je(v.row.activity_at)}))}}),a=g(()=>[{id:"open",label:"Open",count:s.value.open},{id:"handled",label:"Handled",count:s.value.handled}]),n=g(()=>{if(t.value==="handled")return"Nothing marked as handled.";const{noData:u,failing:v}=Vt(m.health,m.polled_at,m.workspace.connectors.length,b.live);return u?"No data: "+v.join(", ")+(v.length===1?" is":" are")+" failing. Check Settings.":"Nothing is waiting on you."}),r=Ye(new Map);Ze(()=>r.clear());const c=async u=>{const v=u.row.row_id,_=await ze({handled:{[v]:u.handled?null:new Date().toISOString()}});_?r.set(v,_):r.delete(v)};return(u,v)=>(l(),q(Re,{id:"your-move",title:"Your move",note:"Next step is yours",tip:"Each row is something where the next step is yours. Ticket, PR and comment open in a new tab."},{head:te(()=>[O(Se,{modelValue:p(t),"onUpdate:modelValue":v[0]||(v[0]=_=>Gt(t)?t.value=_:null),options:a.value,label:"Show",class:"your-move__view"},null,8,["modelValue","options"])]),default:te(()=>[O(Nt,{floor:""},{default:te(()=>[o("table",Xo,[v[1]||(v[1]=o("thead",null,[o("tr",null,[o("th",null,"Ticket"),o("th",null,"Next step"),o("th",null,"PR"),o("th",{class:"hide-narrow"},"Last comment"),o("th",{class:"table__actions-col"},[o("span",{class:"visually-hidden"},"Mark")])])],-1)),o("tbody",null,[(l(!0),i(V,null,N(s.value.rows,_=>(l(),i("tr",{key:_.row.row_id,class:U(["your-move__row",{"your-move__row--handled":_.handled}])},[O(Qe,{row:_.row},null,8,["row"]),o("td",null,[o("span",Ko,[o("span",Go,h(_.row.next),1),_.age.text?(l(),i("span",{key:0,class:U(["age",{"age--old":_.age.old}]),"data-tip":"Waiting since "+p(Ge)(_.row.activity_at)},h(_.age.text),11,Jo)):C("",!0),_.row.why?(l(),i("button",{key:1,type:"button",class:"hint-icon","aria-label":"Why this is your move","data-tip":_.row.why}," ? ",8,Zo)):C("",!0),_.handled?(l(),i("span",{key:2,class:"handled-chip","data-tip":"Marked "+p(ne)(p(m).marks.handled[_.row.row_id]||"")+". Comes back in 7 days if it is still open, or sooner when something new happens."},"handled",8,Qo)):C("",!0)]),r.get(_.row.row_id)?(l(),i("p",ea,h(r.get(_.row.row_id)),1)):C("",!0)]),O(Wt,{row:_.row},null,8,["row"]),o("td",{class:U(["hide-narrow",{"your-move__quote":_.row.comment}])},[_.row.comment?(l(),q(se,{key:0,text:_.row.comment,url:_.row.comment_url},null,8,["text","url"])):C("",!0)],2),o("td",ta,[O(de,{class:"table__ai",query:{ws:p(m).workspace.id,kind:"row",ref:_.row.row_id}},null,8,["query"]),o("button",{type:"button",class:U(["your-move__mark",{"your-move__mark--undo":_.handled}]),"aria-label":(_.handled?"Move back to open: ":"Mark as handled: ")+_.row.key,onClick:K(y=>c(_),["stop"])},h(_.handled?"Undo":"Handled"),11,sa)])],2))),128))])])]),_:1}),s.value.rows.length?C("",!0):(l(),i("p",na,h(n.value),1)),p(t)==="open"?(l(),q(zo,{key:1})):C("",!0)]),_:1}))}}),aa=j(oa,[["__scopeId","data-v-e3e1502a"]]),la=I(!1),ra=()=>la,ia={class:"todos__add"},ca={key:0,class:"alert alert--inline",role:"alert"},da={class:"todos__list"},ua=["aria-checked","aria-label","onClick"],pa={class:"todos__text"},_a={class:"todos__meta"},ha=["onClick"],fa={key:0,class:"empty todos__empty"},va=W({__name:"Todos",setup(e){const t=ra(),s=I(""),a=g(()=>(m.todos||[]).filter(d=>!d.done)),n=g(()=>(m.todos||[]).filter(d=>d.done)),r=g(()=>new RegExp(m.workspace.key_pattern||"(?!)","g")),c=d=>{const k=[];let f=0;const B=d.text;for(const z of B.matchAll(r.value))z.index>f&&k.push({text:B.slice(f,z.index)}),k.push({text:z[0],url:z[0]===d.key?d.ticket_url:""}),f=z.index+z[0].length;return f<B.length&&k.push({text:B.slice(f)}),k},u=g(()=>(ce.value,(t.value?a.value.concat(n.value):a.value).map(d=>({todo:d,parts:c(d),meta:(d.by&&d.by!=="you"?d.by+" · ":"")+ne(d.created)})))),v=I("");Ze(()=>{v.value=""});const _=async d=>(v.value=await nn(d),!v.value),y=async()=>{const d=s.value.trim();d&&await _({action:"add",text:d})&&s.value.trim()===d&&(s.value="")},A=d=>_({action:d.done?"undo":"done",id:d.id}),E=d=>_({action:"delete",id:d.id}),R=g({get:()=>t.value?"done":"open",set:d=>{t.value=d==="done"}}),S=g(()=>[{id:"open",label:"Open",count:a.value.length},{id:"done",label:"Done",count:n.value.length}]);return(d,k)=>(l(),q(Re,{id:"todo",title:"To do",note:"Your own notes",tip:'Your personal to-dos, kept on this machine. Add here, or ask Claude: "add to my to-do: …". A ticket key like PROJ-123 in the text becomes a link.'},{head:te(()=>[O(Se,{modelValue:R.value,"onUpdate:modelValue":k[0]||(k[0]=f=>R.value=f),options:S.value,label:"Show",class:"todos__view"},null,8,["modelValue","options"])]),default:te(()=>[o("div",ia,[Le(o("input",{"onUpdate:modelValue":k[1]||(k[1]=f=>s.value=f),class:"input todos__input",type:"text",placeholder:"Add a to-do and press Enter","aria-label":"New to-do",autocomplete:"off",onKeydown:Ne(y,["enter"])},null,544),[[He,s.value]]),o("button",{type:"button",class:"btn btn--tonal",onClick:y},"Add")]),v.value?(l(),i("p",ca,h(v.value),1)):C("",!0),o("ul",da,[(l(!0),i(V,null,N(u.value,({todo:f,parts:B,meta:z})=>(l(),i("li",{key:f.id,class:U(["todos__item",{"todos__item--done":f.done}])},[o("button",{type:"button",class:U(["todos__check",{"todos__check--on":f.done}]),role:"checkbox","aria-checked":!!f.done,"aria-label":f.done?"Mark not done":"Mark done",onClick:L=>A(f)},null,10,ua),o("span",pa,[(l(!0),i(V,null,N(B,(L,J)=>(l(),i(V,{key:J},[L.url!==void 0?(l(),q(se,{key:0,text:L.text,url:L.url},null,8,["text","url"])):(l(),i(V,{key:1},[F(h(L.text),1)],64))],64))),128))]),o("span",_a,h(z),1),o("button",{type:"button",class:"todos__delete","aria-label":"Delete to-do",onClick:L=>E(f)}," × ",8,ha)],2))),128)),u.value.length?C("",!0):(l(),i("span",fa,h(p(t)?"Nothing here yet.":"Nothing to do. Add one above, or ask Claude."),1))])]),_:1}))}}),ma=j(va,[["__scopeId","data-v-6f034e1e"]]),ka={key:0,class:"empty"},ya={class:"table waiting__table"},ga=["data-tip"],ba={class:"hide-narrow"},wa={key:0,class:"hint-row"},xa=["data-tip"],$a={class:"table__actions"},Ca=W({__name:"Waiting",setup(e){const t=g(()=>(ce.value,bs(m.turn).map(s=>({row:s,since:s.status_since?Je(s.status_since):null}))));return(s,a)=>(l(),q(Re,{id:"waiting",title:"Waiting on others",note:"Someone else holds the next step",tip:"Tickets you touched in the last 30 days where someone else holds the next step: a reviewer, QA, or a new owner."},{default:te(()=>[t.value.length?(l(),q(Nt,{key:1},{default:te(()=>[o("table",ya,[a[0]||(a[0]=o("thead",null,[o("tr",null,[o("th",{class:"waiting__col waiting__col--ticket"},"Ticket"),o("th",{class:"waiting__col waiting__col--status"},"Status"),o("th",{class:"waiting__col waiting__col--with"},"With"),o("th",{class:"hide-narrow"},"Waiting for"),o("th",{class:"waiting__col waiting__col--pr"},"PR"),o("th",{class:"table__actions-col waiting__col waiting__col--actions"},[o("span",{class:"visually-hidden"},"Copy for AI")])])],-1)),o("tbody",null,[(l(!0),i(V,null,N(t.value,({row:n,since:r})=>(l(),i("tr",{key:n.row_id},[O(Qe,{row:n},null,8,["row"]),o("td",null,[o("span",{class:U(["pill",p(he)("pill",p($t)(n.status_group))])},h(n.status),3)]),o("td",null,[F(h(n.whose)+" ",1),r?(l(),i("span",{key:0,class:U(["age",{"age--old":r.hours>=72}]),"data-tip":n.status+" since "+p(Ge)(n.status_since)},h(r.text),11,ga)):C("",!0)]),o("td",ba,[n.hold_url?(l(),i("span",wa,[O(se,{text:n.next,url:n.hold_url,class:"waiting__reason"},null,8,["text","url"]),o("button",{type:"button",class:"hint-icon","aria-label":"Full reason","data-tip":n.hold_full||n.next}," ? ",8,xa)])):(l(),i(V,{key:1},[F(h(n.next),1)],64))]),O(Wt,{row:n},null,8,["row"]),o("td",$a,[O(de,{class:"table__ai",query:{ws:p(m).workspace.id,kind:"row",ref:n.row_id}},null,8,["query"])])]))),128))])])]),_:1})):(l(),i("p",ka,"Nothing is waiting on someone else."))]),_:1}))}}),Sa=j(Ca,[["__scopeId","data-v-a632447c"]]),Ta=(e,t)=>e.seen instanceof Set?e.seen.has(t):e.seen.includes(t),jt=(e,t)=>new Date(e.at).getTime()>(t.base||0)&&!Ta(t,e.id),Ma=(e,t)=>{const s=String(t||"").toLowerCase().split(/\s+/).filter(Boolean);if(!s.length)return!0;const a=[e.ref,e.key,e.title,e.kind,e.who,e.text,e.body].join(" ").toLowerCase();return s.every(n=>a.includes(n))},Aa=e=>e.key||e.ref||e.id,Ra=(e,t)=>{const s=new Map;for(const a of e){const n=Aa(a),r=s.get(n)||{id:n,items:[],newest:a.at,unread:0,title:""};s.set(n,r),r.items.push(a),r.title||(r.title=a.title||""),a.at>r.newest&&(r.newest=a.at),jt(a,t)&&(r.unread+=1)}return[...s.values()].sort((a,n)=>String(n.newest).localeCompare(String(a.newest)))},Ea=e=>new Set(e.filter(t=>t.group==="you"&&!t.handled).map(t=>t.key)),Oa=(e,t=2)=>{const s=[...new Set(e.map(n=>n.kind))],a=s.length-t;return s.slice(0,t).join(" · ")+(a>0?` +${a}`:"")},Ia=e=>/fail|changes/.test(e)?"bad":/approved|merged|passed/.test(e)?"ok":"",Da=e=>/comment|approved|changes|mentioned|review requested/.test(e.kind)&&String(e.body||"").trim()!=="",Pt=e=>e.ref!==e.key&&(e.key||e.title)||"",Ba=e=>[Pt(e),e.text===e.title?"":e.text].filter(Boolean).join(" · "),Va=e=>e.type==="github"&&e.label==="GitHub"?"GH":Bt(e.label),Ua={class:"feed-item__body"},Wa={class:"feed-item__top"},Na={key:0,class:"feed-item__who"},ja={key:1,class:"at-you"},Pa={class:"feed-item__right"},Fa={class:"timestamp feed-item__when"},za=["aria-label","aria-expanded"],qa={key:0,class:"feed-item__text"},Ya={class:"feed-item__full"},La={class:"feed-item__actions"},Ha={key:1,class:"feed-item__text"},Xa=W({__name:"FeedItem",props:{item:{},source:{},fresh:{type:Boolean},lit:{type:Boolean},expanded:{type:Boolean}},emits:["open","toggle","seen"],setup(e,{emit:t}){const s=e,a=t,n=g(()=>Va(s.source)),r=g(()=>Pt(s.item)),c=g(()=>Ba(s.item)),u=g(()=>Ia(s.item.kind)),v=g(()=>u.value||(s.source.type==="github"?"":"jira")),_=g(()=>Da(s.item)),y=g(()=>_.value&&s.expanded),A=g(()=>(ce.value,ne(s.item.at))),E=()=>{s.fresh&&a("seen",s.item.id)},R=()=>{a("toggle",s.item.id),E()};return(S,d)=>(l(),i("li",{class:U(["feed-item",{"feed-item--new":e.fresh,"feed-item--lit":e.lit,"feed-item--open":y.value}]),onClick:E},[o("span",{class:U(["feed-item__icon",p(he)("feed-item__icon",v.value)])},h(n.value),3),o("div",Ua,[o("div",Wa,[O(se,{text:e.item.ref,url:e.item.url},null,8,["text","url"]),o("span",{class:U(["feed-item__kind",{"feed-item__kind--bad":u.value==="bad"}])},h(e.item.kind),3),e.item.who?(l(),i("span",Na,h(e.item.who),1)):C("",!0),e.item.mention?(l(),i("span",ja,"@you")):C("",!0),o("span",Pa,[o("span",Fa,h(A.value),1),_.value?(l(),i("button",{key:0,type:"button",class:"feed-item__toggle","aria-label":y.value?"Collapse":"Expand","aria-expanded":y.value,onClick:K(R,["stop"])},null,8,za)):C("",!0)])]),y.value?(l(),i(V,{key:0},[r.value?(l(),i("span",qa,h(r.value),1)):C("",!0),o("div",Ya,h(e.item.body),1),o("div",La,[o("button",{type:"button",class:"btn btn--tonal",onClick:d[0]||(d[0]=K(k=>a("open",e.item),["stop"]))}," Open formatted "),O(de,{query:{ws:p(m).workspace.id,kind:"feed",ref:e.item.id}},null,8,["query"]),O(se,{text:"Open in "+e.source.label,url:e.item.url,class:"btn"},null,8,["text","url"])])],64)):c.value?(l(),i("span",Ha,h(c.value),1)):C("",!0)])],2))}}),ht=j(Xa,[["__scopeId","data-v-27e556e1"]]),Ka=Ye({source:"all",view:Te("wt-feed-view","ticket",{writeDefaults:!1}),query:"",openGroups:new Set}),Ga=()=>Ka,Ja={key:0,class:"feed__new-count"},Za={class:"feed__bar"},Qa={key:0,class:"alert alert--inline",role:"alert"},el={class:"feed__search"},tl={class:"feed__search-count"},sl={key:1,class:"empty"},nl={key:2,class:"feed__list"},ol=["title","onClick"],al=["aria-expanded","aria-label"],ll={class:"feed__group-text"},rl={class:"feed__group-key"},il={key:0,class:"feed__group-sum"},cl={class:"feed__group-meta"},dl={class:"feed__group-kinds"},ul={class:"timestamp feed__group-when"},pl={key:0,class:"feed__children"},_l=W({__name:"Feed",emits:["open"],setup(e,{emit:t}){const s=t,a=Ga(),n=[{id:"ticket",label:"By ticket"},{id:"flat",label:"Flat"}],r=g(()=>m.workspace.connectors||[]),c=g(()=>Object.fromEntries(r.value.map(x=>[x.id,x]))),u=x=>c.value[x]||{id:x,type:x,label:x},v=g(()=>r.value.length>1?[{id:"all",label:"All"}].concat(r.value.map(x=>({id:x.id,label:x.label}))):[]),_=g({get:()=>v.value.some(x=>x.id===a.source)?a.source:"all",set:x=>{a.source=x}}),y=g(()=>({base:m.marks.base,seen:new Set(m.marks.seen)})),A=x=>jt(x,y.value),E=g(()=>m.feed.filter(A).length),R=g(()=>m.feed.filter(x=>_.value==="all"||x.source===_.value)),S=g(()=>R.value.filter(x=>Ma(x,a.query)).slice(0,200)),d=g(()=>new Map(m.turn.map(x=>[x.key,x]))),k=g(()=>Ea(m.turn)),f=g(()=>(ce.value,Ra(S.value,y.value).map(x=>({...x,row:d.value.get(x.id),move:k.value.has(x.id),when:ne(x.newest),kinds:Oa(x.items),open:a.openGroups.has(x.id)||!!a.query})))),B=(x,Y)=>{x.has(Y)?x.delete(Y):x.add(Y)},z=x=>B(a.openGroups,x.id),L=x=>B(b.open,x),J=x=>ze({seen:[x]}).then(ie),ue=I("");Ze(()=>{ue.value=""});const Q=async()=>{ue.value=await ze({seen:m.feed.map(x=>x.id),base:Date.now()})};return(x,Y)=>(l(),q(Re,{id:"feed",title:"What changed",note:"Newest first, every source",tip:"Newest first: comments, reviews, merges and failed checks on your PRs, and ticket changes. Each item opens where it happened.",class:"feed",column:""},{head:te(()=>[E.value?(l(),i("span",Ja,h(E.value)+" new",1)):C("",!0)]),default:te(()=>[o("div",Za,[v.value.length?(l(),q(Se,{key:0,modelValue:_.value,"onUpdate:modelValue":Y[0]||(Y[0]=M=>_.value=M),options:v.value,label:"Feed source"},null,8,["modelValue","options"])):C("",!0),O(Se,{modelValue:p(a).view,"onUpdate:modelValue":Y[1]||(Y[1]=M=>p(a).view=M),options:n,label:"Feed view"},null,8,["modelValue"])]),ue.value?(l(),i("p",Qa,h(ue.value),1)):C("",!0),o("div",el,[Le(o("input",{"onUpdate:modelValue":Y[2]||(Y[2]=M=>p(a).query=M),class:"input feed__search-input",type:"search",placeholder:"Search the feed: key, author, words…","aria-label":"Search the feed",autocomplete:"off"},null,512),[[He,p(a).query,void 0,{trim:!0}]]),o("span",tl,h(p(a).query?S.value.length+" of "+R.value.length:""),1),o("button",{type:"button",class:"feed__mark-read",onClick:Q},"Mark all read")]),p(m).feed.length?(l(),i("ol",nl,[p(a).view==="ticket"?(l(!0),i(V,{key:0},N(f.value,M=>(l(),i("li",{key:M.id,class:U(["feed__group",{"feed__group--new":M.unread,"feed__group--open":M.open,"feed__group--move":M.move}])},[o("div",{class:"feed__group-head",title:M.move?"Your move on this ticket":void 0,onClick:Z=>z(M)},[o("button",{type:"button",class:"feed__group-caret","aria-expanded":M.open,"aria-label":"Collapse or expand "+M.id}," › ",8,al),o("div",ll,[o("div",rl,[O(se,{text:M.id,url:M.row?M.row.ticket_url:M.items[0].url,class:"ticket-key feed__group-ticket"},null,8,["text","url"]),M.row||M.title?(l(),i("span",il,h(M.row?M.row.summary:M.title),1)):C("",!0)]),o("div",cl,[o("span",{class:U(["feed__group-count",{"feed__group-count--new":M.unread}])},h(M.unread?M.unread+" new":M.items.length),3),o("span",dl,h(M.kinds),1),o("span",ul,h(M.when),1)])]),O(de,{class:"feed__group-copy",query:{ws:p(m).workspace.id,kind:"thread",ref:M.id}},null,8,["query"])],8,ol),M.open?(l(),i("ul",pl,[(l(!0),i(V,null,N(M.items,Z=>(l(),q(ht,{key:Z.id,item:Z,source:u(Z.source),fresh:A(Z),lit:!!M.unread,expanded:p(b).open.has(Z.id),onOpen:Y[3]||(Y[3]=Ee=>s("open",Ee)),onToggle:L,onSeen:J},null,8,["item","source","fresh","lit","expanded"]))),128))])):C("",!0)],2))),128)):(l(!0),i(V,{key:1},N(S.value,M=>(l(),q(ht,{key:M.id,item:M,source:u(M.source),fresh:A(M),expanded:p(b).open.has(M.id),onOpen:Y[4]||(Y[4]=Z=>s("open",Z)),onToggle:L,onSeen:J},null,8,["item","source","fresh","expanded"]))),128))])):(l(),i("p",sl," No changes yet. New comments, reviews and status changes show up here. "))]),_:1}))}}),hl=j(_l,[["__scopeId","data-v-d92a7c74"]]),fl={id:"first-run",class:"island first-run","aria-labelledby":"first-run-title"},vl={class:"first-run__text"},ml=W({__name:"FirstRun",setup(e){const t=()=>Ks("connectors");return(s,a)=>(l(),i("section",fl,[a[1]||(a[1]=o("h2",{id:"first-run-title",class:"first-run__title"}," Whose Turn watches your tickets and pull requests and shows what is waiting on you. ",-1)),o("p",vl,[o("b",null,h(p(m).workspace.name),1),a[0]||(a[0]=F(" has no sources yet, so there is nothing to watch. Connect a repository or a tracker. ",-1))]),o("div",{class:"first-run__actions"},[o("button",{type:"button",class:"btn btn--tonal",onClick:t},"Add a source")]),a[2]||(a[2]=o("p",{class:"first-run__text first-run__ai"},' Or ask Claude: "add my GitHub repository to Whose Turn." ',-1))]))}}),kl=j(ml,[["__scopeId","data-v-84359c2d"]]),yl=new RegExp("(`[^`]{1,500}`)|(\\*\\*[^*]{1,500}\\*\\*)|(\\[[^\\]]{1,300}\\]\\(https?:\\/\\/[^)\\s]{1,2000}\\))|(https?:\\/\\/[^\\s<>()]{1,2000})|(@[A-Za-z0-9-]+(?: [A-Z][a-z]+)?)|((?<![A-Za-z0-9])\\*[^*\\s][^*]{0,500}\\*(?![A-Za-z0-9])|(?<![A-Za-z0-9])_[^_\\s][^_]{0,500}_(?![A-Za-z0-9]))","g"),ft=(e,t)=>{const s=Ke(t);return s?{type:"link",text:e,href:s}:{type:"text",text:e}},gl=e=>{const t=e[0];if(e[1])return{type:"code",text:t.slice(1,-1)};if(e[2])return{type:"strong",text:t.slice(2,-2)};if(e[3]){const s=t.indexOf("](");return ft(t.slice(1,s),t.slice(s+2,-1))}return e[4]?ft(t,t):e[5]?{type:"mention",text:t}:{type:"em",text:t.slice(1,-1)}},ye=e=>{const t=new RegExp(yl),s=[];let a=0,n;for(;n=t.exec(e);)n.index>a&&s.push({type:"text",text:e.slice(a,n.index)}),s.push(gl(n)),a=n.index+n[0].length;return a<e.length&&s.push({type:"text",text:e.slice(a)}),s},bl=e=>{const t=String(e||"").replace(/<!--[\s\S]*?-->/g,"").split(`
2
- `),s=[];let a=[],n=null;const r=()=>{a.length&&(s.push({type:"paragraph",lines:a.map(ye)}),a=[]),n=null};for(let c=0;c<t.length;c++){const u=t[c];if(/^\s*```/.test(u)){r();const A=[];for(c++;c<t.length&&!/^\s*```/.test(t[c]);c++)A.push(t[c]);s.push({type:"fence",text:A.join(`
3
- `)});continue}const v=u.match(/^(#{1,6})\s+(.*)$/);if(v){r(),s.push({type:"heading",level:v[1].length<=2?4:5,inline:ye(v[2])});continue}const _=u.match(/^>\s?(.*)$/);if(_){r(),s.push({type:"quote",inline:ye(_[1])});continue}const y=u.match(/^\s*([-*+]|\d+[.)])\s+(.*)$/);if(y){const A=n;a.length&&(r(),n=A);const E=/\d/.test(y[1]),R=n,S=R&&R.ordered===E?R:{type:"list",ordered:E,items:[]};S!==R&&s.push(S),n=S,S.items.push(ye(y[2]));continue}if(!u.trim()){r();continue}n=null,a.push(u)}return r(),s},be=(e,t,s="")=>{const a=document.createElement(e);return a.textContent=t,s&&(a.className=s),a},wl=e=>{if(e.type==="text")return document.createTextNode(e.text);if(e.type==="link"){const t=be("a",e.text);return t.setAttribute("href",e.href),t.setAttribute("target","_blank"),t.setAttribute("rel","noopener"),t}return e.type==="mention"?be("span",e.text,"markdown-view__mention"):be(e.type,e.text)},Ft=(e,t)=>{e.forEach(s=>t.append(wl(s)))},Ve=(e,t)=>{const s=document.createElement(e);return Ft(t,s),s},xl=e=>{if(e.type==="fence"){const s=document.createElement("pre");return s.append(be("code",e.text)),s}if(e.type==="heading")return Ve(`h${e.level}`,e.inline);if(e.type==="quote")return Ve("blockquote",e.inline);if(e.type==="list"){const s=document.createElement(e.ordered?"ol":"ul");return e.items.forEach(a=>s.append(Ve("li",a))),s}const t=document.createElement("p");return e.lines.forEach((s,a)=>{a&&t.append(document.createElement("br")),Ft(s,t)}),t},$l=e=>{const t=document.createDocumentFragment();return bl(e).forEach(s=>t.append(xl(s))),t},Cl=W({__name:"MarkdownView",props:{source:{default:""}},setup(e){const t=e,s=I(null);return Jt(()=>{s.value&&s.value.replaceChildren($l(t.source))}),(a,n)=>(l(),i("div",{ref_key:"host",ref:s,class:"markdown-view"},null,512))}}),Sl=j(Cl,[["__scopeId","data-v-dcf42e95"]]),Tl={class:"modal__card"},Ml={class:"modal__head"},Al={id:"modal-title",class:"modal__title"},Rl=["href"],El=W({__name:"CommentModal",setup(e){const t=g(()=>b.modal),s=g(()=>t.value?[t.value.ref,t.value.kind,t.value.who].filter(Boolean).join(" · "):""),a=g(()=>t.value?Ke(t.value.url):""),n=g(()=>{var u;const c=(m.workspace.connectors||[]).find(v=>{var _;return v.id===((_=t.value)==null?void 0:_.source)});return"Open in "+(c?c.label:(u=t.value)==null?void 0:u.source)}),r=()=>{b.modal=null};return(c,u)=>t.value?(l(),i("div",{key:0,class:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",onClick:K(r,["self"])},[o("div",Tl,[o("div",Ml,[o("h3",Al,h(s.value),1),a.value?(l(),i("a",{key:0,class:"btn",href:a.value,target:"_blank",rel:"noopener"},h(n.value),9,Rl)):C("",!0),o("button",{type:"button",class:"btn btn--tonal",onClick:r},"Close")]),O(Sl,{source:t.value.body||t.value.text||""},null,8,["source"])])])):C("",!0)}}),Ol={class:"modal__card feedback-sheet__card"},Il={class:"modal__head"},Dl={class:"modal__meta"},Bl=["aria-disabled"],Vl={key:0,class:"alert"},Ul={class:"sheet-form"},Wl=["placeholder","onKeydown"],Nl={key:0,class:"feedback-sheet__note"},jl={key:1,class:"feedback-sheet__note"},Pl={key:2,class:"empty"},Fl=["href"],zl={key:3,class:"feedback-sheet__reports"},ql=["href"],Yl={class:"feedback-sheet__report-title"},Ll={class:"timestamp"},Hl=W({__name:"FeedbackSheet",setup(e){const t=I(""),s=I(null),a=I(!1),n=I([]),r=I(null),c=I(""),u=I(!0),v=Me("",1600),_=I([]),y=d=>"/report?id="+encodeURIComponent(d),A=()=>Ae("/api/feedback").then(d=>{u.value=d.configured,c.value=d.configured?"Linear · "+d.project:"not connected",_.value=d.reports||[]},()=>{n.value=[we+"; past reports cannot be loaded."]}),E=()=>{b.feedback=!1},R=()=>{const d=t.value.trim();if(!d){n.value=["Write at least one line."];return}n.value=[],navigator.clipboard.writeText(d).then(()=>{v.value="sent"},()=>{v.value="failed"})},S=()=>{if(!u.value||a.value)return;const d=t.value.trim();if(!d){n.value=["Write at least one line."];return}a.value=!0,ae("/api/feedback",{text:d,from:"the window",ws:m.workspace.id,kind_ref:{kind:"workspace",ref:m.workspace.id}}).then(k=>{if(a.value=!1,k.error){n.value=Ct(k.error);return}r.value=k.issue||null,t.value="",_.value=k.reports||_.value}).catch(k=>{a.value=!1,n.value=[oe(k,{refused:"Not sent",unreachable:je})]})};return X(()=>b.feedback,d=>{d&&(n.value=[],r.value=null,A().then(()=>mt(()=>{var k;return(k=s.value)==null?void 0:k.focus()})))}),(d,k)=>p(b).feedback?(l(),i("div",{key:0,class:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"feedback-title",onClick:K(E,["self"])},[o("div",Ol,[o("div",Il,[k[1]||(k[1]=o("h3",{id:"feedback-title",class:"modal__title"},"To the Whose Turn backlog",-1)),o("span",Dl,h(c.value),1),o("button",{type:"button",class:"btn btn--tonal","aria-disabled":!u.value||a.value,onClick:S},h(a.value?"Composing…":"Send"),9,Bl),o("button",{type:"button",class:"btn",onClick:E},"Close")]),n.value.length?(l(),i("div",Vl,h(n.value.join(" · ")),1)):C("",!0),o("div",Ul,[Le(o("textarea",{ref_key:"field",ref:s,"onUpdate:modelValue":k[0]||(k[0]=f=>t.value=f),class:"input feedback-sheet__text",rows:"5",placeholder:"Describe the problem or the wish in your own words."+(u.value?" Cmd+Enter sends.":""),autocomplete:"off",onKeydown:[Ne(K(S,["meta","prevent"]),["enter"]),Ne(K(S,["ctrl","prevent"]),["enter"])]},null,40,Wl),[[He,t.value]]),u.value?(l(),i("p",jl," An assistant turns it into a proper issue (title, kind, description) and files it in the Whose Turn backlog with this workspace's summary attached. ")):(l(),i("p",Nl,[k[2]||(k[2]=F(" The maintainer's tracker is not connected on this machine, so nothing can be sent from here. Copy your remark and pass it on yourself. ",-1)),o("button",{type:"button",class:"btn",onClick:R},h(p(v)==="sent"?"Copied":p(v)==="failed"?"Could not copy":"Copy remark"),1)])),r.value?(l(),i("p",Pl,[k[3]||(k[3]=F(" Filed as ",-1)),o("a",{href:y(r.value.identifier),target:"_blank",rel:"noopener"},h(r.value.identifier),9,Fl),F(" · "+h(r.value.title),1)])):C("",!0),_.value.length?(l(),i("div",zl,[k[4]||(k[4]=o("h4",{class:"sheet-form__heading"},"Your reports",-1)),(l(!0),i(V,null,N(_.value,f=>(l(),i("div",{key:f.id,class:"feedback-sheet__report"},[o("a",{href:y(f.id),target:"_blank",rel:"noopener"},h(f.id),9,ql),o("span",Yl,h(f.title),1),o("span",{class:U(["pill",p(he)("pill",p(ws)(f.outcome))])},h(f.state||"filed"),3),o("span",Ll,h(p(ne)(f.changed_at||f.filed_at)),1)]))),128))])):C("",!0)])])])):C("",!0)}}),Xl=j(Hl,[["__scopeId","data-v-ec34adcc"]]),Kl={class:"field-row"},Gl={class:"field-row__label"},Jl={key:0,class:"field-row__check"},Zl=["checked"],Ql={key:2,class:"field-row__inline"},er=["value"],tr=["value"],sr=["value"],nr=["placeholder","value"],or={key:5,class:"field-row__hint"},ar=W({__name:"FieldRow",props:We({spec:{},placeholder:{default:""},hint:{default:""}},{modelValue:{type:[String,Array,Boolean]},modelModifiers:{}}),emits:We(["secret"],["update:modelValue"]),setup(e,{emit:t}){const s=e,a=t,n=vt(e,"modelValue"),r=/^#[0-9a-f]{6}$/i,c=()=>String(n.value??""),u=()=>n.value||[],v=R=>{n.value=R},_=()=>n.value??s.spec.default??!1,y=R=>{n.value=R===(s.spec.default??!1)?void 0:R},A=R=>R.target.value,E=R=>v(R.split(",").map(S=>S.trim()).filter(Boolean));return(R,S)=>(l(),i("div",Kl,[o("label",Gl,h(e.spec.label)+h(e.spec.required?" *":""),1),e.spec.boolean?(l(),i("label",Jl,[o("input",{type:"checkbox",checked:_(),onChange:S[0]||(S[0]=d=>y(d.target.checked))},null,40,Zl),F(" "+h(e.hint||e.spec.hint),1)])):e.spec.secret?(l(),i("input",{key:1,class:"input",type:"password",placeholder:"paste to replace",autocomplete:"off",onInput:S[1]||(S[1]=d=>a("secret",e.spec.key,A(d)))},null,32)):e.spec.colour?(l(),i("div",Ql,[o("input",{class:"input field-row__colour",type:"color",value:r.test(c())?c():"#888888",onInput:S[2]||(S[2]=d=>v(A(d)))},null,40,er),o("input",{class:"input",type:"text",placeholder:"#rrggbb",value:c(),onInput:S[3]||(S[3]=d=>v(A(d)))},null,40,tr),o("button",{type:"button",class:"btn",onClick:S[4]||(S[4]=d=>v(""))},"None")])):e.spec.list?(l(),i("input",{key:3,class:"input",type:"text",value:u().join(", "),onInput:S[5]||(S[5]=d=>E(A(d)))},null,40,sr)):(l(),i("input",{key:4,class:"input",type:"text",placeholder:e.placeholder,value:c(),onInput:S[6]||(S[6]=d=>v(A(d)))},null,40,nr)),!e.spec.boolean&&(e.hint||e.spec.hint)?(l(),i("small",or,h(e.hint||e.spec.hint),1)):C("",!0)]))}}),re=j(ar,[["__scopeId","data-v-2ba0ba86"]]),lr={class:"modal__card settings-sheet__card"},rr={class:"modal__head"},ir={class:"modal__meta"},cr={key:0,class:"settings-sheet__dirty"},dr={key:0,class:"settings-sheet__confirm",role:"alertdialog"},ur={class:"settings-sheet__confirm-text"},pr={key:1,class:"alert settings-sheet__alert",role:"alert"},_r={key:2,class:"alert settings-sheet__alert"},hr={key:3,class:"settings-sheet__body"},fr={class:"settings-sheet__list"},vr=["aria-current","onClick"],mr={class:"sheet-form"},kr={key:0,class:"empty"},yr={ref:"connectors-head",class:"sheet-form__heading"},gr={class:"settings-sheet__connector-head"},br={class:"settings-sheet__connector-name"},wr=["onClick"],xr={class:"settings-sheet__actions"},$r=["onClick"],Cr={key:0,class:"settings-sheet__rules"},Sr={class:"settings-sheet__rule-when"},Tr={class:"settings-sheet__rule-then"},Mr={key:1,class:"empty"},Ar=W({__name:"SettingsSheet",setup(e){const t=I([]),s=I(0),a=I([]),n=I({workspace:[],theme:[],rules:[],statuses:[]}),r=I(""),c=I([]),u=I({}),v=Zt("connectors-head"),_=new Map,y=I(0),A=I(""),E=I(null),R=I(""),S=g(()=>b.settings&&!R.value&&(y.value>0||ct(t.value)!==A.value)),d={key:"id",label:"Entry id"},k={key:"label",label:"Label"},f=g(()=>t.value[s.value]),B=g(()=>(f.value&&u.value[f.value.id]||[]).map(zs)),z=w=>a.value.find(T=>T.type===w.type)||{type:w.type,label:w.type,fields:[]},L=g(()=>t.value.map((w,T)=>({uid:it(w),label:w.name||w.id||"Workspace "+(T+1)}))),J=g(()=>{var w;return(((w=f.value)==null?void 0:w.connectors)||[]).map(T=>({entry:T,uid:it(T),spec:z(T)}))}),ue=w=>{var $;const T=($=m.workspaces.find(P=>P.id===w))==null?void 0:$.theme_seed;return T?`empty: ${T}, derived from the workspace id`:"empty derives one from the workspace id"},Q=(w,T)=>w[T],x=(w,T,$)=>{_.set(w,Object.assign(_.get(w)||{},{[T]:$})),y.value+=1},Y=()=>{t.value.push(lt({id:"new-"+(t.value.length+1),name:"New workspace"})),s.value=t.value.length-1},M=()=>{t.value.splice(s.value,1),s.value=Math.max(0,s.value-1)},Z=()=>{f.value&&(E.value={text:`Delete ${f.value.name||f.value.id}? Its to-dos and marks stay on disk.`,yes:"Delete",no:"Keep",run:M})},Ee=w=>{var T;return(T=f.value)==null?void 0:T.connectors.push({type:w.type})},zt=w=>{f.value&&(_.delete(f.value.connectors[w]),f.value.connectors.splice(w,1))},qt=w=>{if(!f.value)return;const T=z(f.value.connectors[w]).label;E.value={text:`Remove the ${T} connector from ${f.value.name||f.value.id}?`,yes:"Remove",no:"Keep",run:()=>zt(w)}},Yt=()=>Ae("/api/config").then(w=>{R.value="",t.value=(w.workspaces||[]).map(lt),a.value=w.connectors||[],n.value=w.fields,_.clear(),y.value=0,E.value=null,s.value=Math.max(0,t.value.findIndex(T=>T.id===m.workspace.id)),r.value=w.config_file||"",c.value=w.problems||[],u.value=w.tables||{},A.value=ct(t.value)}).catch(()=>{R.value=we+"; settings cannot be loaded."}).then(mt).then(()=>{var w;b.settingsAt==="connectors"&&((w=v.value)==null||w.scrollIntoView({block:"start"})),b.settingsAt=""}),Oe=()=>{b.settings=!1},et=()=>{E.value={text:"Discard changes?",yes:"Discard",no:"Keep editing",run:Oe}},tt=()=>S.value?et():Oe(),st=w=>{const T=E.value;E.value=null,w&&(T==null||T.run())},Lt=async()=>{try{const w=await ae("/api/config",{workspaces:t.value.map(T=>Bs(T)),secrets:Us(t.value,_)});if(w.error){c.value=Ct(w.error);return}Oe(),It()}catch(w){c.value=[oe(w,{unreachable:we+"; your changes are kept, save again."})]}};return X(S,w=>{b.settingsDirty=w},{immediate:!0}),X(()=>b.settingsAsk,w=>{w&&(b.settingsAsk=!1,et())}),X(()=>b.settings,w=>{w&&Yt()}),(w,T)=>p(b).settings?(l(),i("div",{key:0,class:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"settings-title",onClick:K(tt,["self"])},[o("div",lr,[o("div",rr,[T[2]||(T[2]=o("h3",{id:"settings-title",class:"modal__title"},"Workspaces",-1)),o("span",ir,h(r.value),1),S.value?(l(),i("span",cr,"Unsaved changes")):C("",!0),R.value?C("",!0):(l(),i("button",{key:1,type:"button",class:"btn btn--tonal",onClick:Lt},"Save")),o("button",{type:"button",class:"btn",onClick:tt},"Close")]),E.value?(l(),i("div",dr,[o("span",ur,h(E.value.text),1),o("button",{type:"button",class:"btn btn--danger",onClick:T[0]||(T[0]=$=>st(!0))},h(E.value.yes),1),o("button",{type:"button",class:"btn",onClick:T[1]||(T[1]=$=>st(!1))},h(E.value.no),1)])):C("",!0),R.value?(l(),i("div",pr,h(R.value),1)):c.value.length?(l(),i("div",_r,h(c.value.join(" · ")),1)):C("",!0),R.value?C("",!0):(l(),i("div",hr,[o("ul",fr,[(l(!0),i(V,null,N(L.value,($,P)=>(l(),i("li",{key:$.uid},[o("button",{type:"button",class:"settings-sheet__workspace","aria-current":P===s.value,onClick:ve=>s.value=P},h($.label),9,vr)]))),128)),o("li",null,[o("button",{type:"button",class:"settings-sheet__workspace settings-sheet__workspace--add",onClick:Y}," + Add workspace ")])]),o("div",mr,[f.value?(l(),i(V,{key:1},[T[3]||(T[3]=o("h4",{class:"sheet-form__heading"},"Workspace",-1)),(l(!0),i(V,null,N(n.value.workspace,$=>(l(),q(re,{key:$.key,spec:$,"model-value":Q(f.value,$.key),"onUpdate:modelValue":P=>p(le)(f.value,$.key,P)},null,8,["spec","model-value","onUpdate:modelValue"]))),128)),T[4]||(T[4]=o("h4",{class:"sheet-form__heading"},"Theme",-1)),(l(!0),i(V,null,N(n.value.theme,$=>{var P;return l(),q(re,{key:$.key,spec:$,hint:$.key==="seed"&&!((P=f.value.theme)!=null&&P.seed)?ue(f.value.id):"","model-value":Q(f.value.theme,$.key),"onUpdate:modelValue":ve=>p(le)(f.value.theme,$.key,ve)},null,8,["spec","hint","model-value","onUpdate:modelValue"])}),128)),o("h4",yr,"Connectors",512),(l(!0),i(V,null,N(J.value,({entry:$,spec:P,uid:ve},Ht)=>(l(),i("div",{key:ve,class:"settings-sheet__connector"},[o("div",gr,[o("strong",br,h(P.label),1),o("button",{type:"button",class:"btn btn--danger",onClick:ee=>qt(Ht)}," Remove ",8,wr)]),O(re,{spec:d,placeholder:P.type,hint:"only needed when one type appears twice","model-value":Q($,"id"),"onUpdate:modelValue":ee=>p(le)($,"id",ee)},null,8,["placeholder","model-value","onUpdate:modelValue"]),O(re,{spec:k,placeholder:P.label,hint:"shown in the feed filter","model-value":Q($,"label"),"onUpdate:modelValue":ee=>p(le)($,"label",ee)},null,8,["placeholder","model-value","onUpdate:modelValue"]),(l(!0),i(V,null,N(P.fields,ee=>(l(),q(re,{key:ee.key,spec:ee,"model-value":Q($,ee.key),"onUpdate:modelValue":Ie=>p(le)($,ee.key,Ie),onSecret:(Ie,Xt)=>x($,Ie,Xt)},null,8,["spec","model-value","onUpdate:modelValue","onSecret"]))),128))]))),128)),o("div",xr,[(l(!0),i(V,null,N(a.value,$=>(l(),i("button",{key:$.type,type:"button",class:"btn",onClick:P=>Ee($)}," + "+h($.label),9,$r))),128))]),T[5]||(T[5]=o("h4",{class:"sheet-form__heading"},"Rules",-1)),(l(!0),i(V,null,N(n.value.rules,$=>(l(),q(re,{key:$.key,spec:$,"model-value":Q(f.value.rules,$.key),"onUpdate:modelValue":P=>p(le)(f.value.rules,$.key,P)},null,8,["spec","model-value","onUpdate:modelValue"]))),128)),(l(!0),i(V,null,N(n.value.statuses,$=>(l(),q(re,{key:$.key,spec:$,"model-value":Q(f.value.rules.statuses,$.key),"onUpdate:modelValue":P=>p(le)(f.value.rules.statuses,$.key,P)},null,8,["spec","model-value","onUpdate:modelValue"]))),128)),T[6]||(T[6]=o("h4",{class:"sheet-form__heading"},"Whose turn table",-1)),T[7]||(T[7]=o("p",{class:"settings-sheet__rules-note"}," The rows in force, first match wins. Read-only here: ask Claude to change rules.table through /api/config. ",-1)),B.value.length?(l(),i("ol",Cr,[(l(!0),i(V,null,N(B.value,($,P)=>(l(),i("li",{key:P,class:"settings-sheet__rule"},[o("span",Sr,h($.when),1),o("span",Tr,h($.then),1)]))),128))])):(l(),i("p",Mr,"Save the workspace to see its rows.")),o("div",{class:"settings-sheet__actions"},[o("button",{type:"button",class:"btn btn--danger",onClick:Z}," Delete workspace ")])],64)):(l(),i("p",kr,"No workspaces yet. Add one on the left."))])]))])])):C("",!0)}}),Rr=j(Ar,[["__scopeId","data-v-779d567d"]]),Er={class:"app__shell"},Or=["inert"],Ir={id:"wt",class:"dashboard dashboard--fit"},Dr=["inert"],Br={class:"dashboard__main"},Vr=W({__name:"App",setup(e){const t=g(()=>!!m.workspace.id&&!m.workspace.connectors.length),s=g(()=>Ot.value!==null);return X(dt,Os,{flush:"post"}),ps("Escape",Gs,{target:document}),Qt(()=>{Xs()}),(a,n)=>(l(),i("div",{class:"app",style:es(p(dt))},[O(xn,{inert:s.value,onSettings:n[0]||(n[0]=r=>p(b).settings=!0)},null,8,["inert"]),o("div",Er,[O(Fn,{inert:s.value,onReport:n[1]||(n[1]=r=>p(b).feedback=!0)},null,8,["inert"]),p(ut).length?(l(),i("div",{key:0,class:"alert",inert:s.value},h(p(ut).join(" · ")),9,Or)):C("",!0),o("div",Ir,[n[3]||(n[3]=o("canvas",{id:"backdrop",class:"dashboard__backdrop","aria-hidden":"true"},null,-1)),O(fo,{inert:s.value},null,8,["inert"]),t.value?(l(),q(kl,{key:0,inert:s.value},null,8,["inert"])):(l(),i("div",{key:1,class:"dashboard__layout",inert:s.value},[o("div",Br,[O(aa,{class:"dashboard__move"}),O(ma,{class:"dashboard__todo"}),O(Sa,{class:"dashboard__waiting"})]),O(hl,{class:"dashboard__feed",onOpen:n[2]||(n[2]=r=>p(b).modal=r)})],8,Dr)),O(Xl),O(Rr),O(El)])])],4))}}),Ur=j(Vr,[["__scopeId","data-v-f146b085"]]);ts(Ur).mount("#app");tn();Is();
@@ -1 +0,0 @@
1
- import{d as v,E as f,o as s,a as o,g as a,F as c,f as t,n as w,u as n,j as u,h,b as y,i as g,_ as k,H as x}from"./_plugin-vue_export-helper-DHr5RHTx.js";import{g as N,S as R,m as b,o as C,i as d}from"./bem-COKTjsky.js";const E={class:"app report-page"},S={key:0,class:"empty"},T={class:"report-page__head"},V={class:"report-page__id"},B={class:"report-page__title"},L={class:"report-page__meta"},P={class:"report-page__section"},W={class:"report-page__text"},A={class:"report-page__section"},D={key:0,class:"report-page__unanswered"},F={key:1,class:"empty"},I={class:"report-page__answer-meta"},U={class:"report-page__text"},j=v({__name:"ReportPage",setup(H){const r=new URLSearchParams(location.search).get("id")||"",e=g(null),p=g(r?"Loading…":"No report id in the link.");return f(()=>{r&&(document.title=r+" · Your report · Whose Turn",N("/api/feedback?id="+encodeURIComponent(r)).then(l=>{e.value=l.report||null,p.value=l.report?"":"No report "+r+" was filed from this machine."}).catch(()=>{p.value=R+"; reload this page once it is back."}))}),(l,i)=>(s(),o("main",E,[e.value?(s(),o(c,{key:1},[t("header",T,[t("span",V,a(e.value.id),1),t("h1",B,a(e.value.title),1),t("span",{class:w(["pill",n(b)("pill",n(C)(e.value.outcome))])},a(e.value.state||"filed, not yet seen"),3)]),t("p",L,[u(a(e.value.kind||"report")+" · filed "+a(n(d)(e.value.filed_at)),1),e.value.changed_at?(s(),o(c,{key:0},[u(" · last change "+a(n(d)(e.value.changed_at)),1)],64)):h("",!0)]),t("section",P,[i[0]||(i[0]=t("h2",{class:"report-page__heading"},"What you reported",-1)),t("p",W,a(e.value.body||"(no text kept)"),1)]),t("section",A,[i[1]||(i[1]=t("h2",{class:"report-page__heading"},"Answers",-1)),e.value.unanswered?(s(),o("p",D," Closed without an answer. The maintainer owes you a reason; this page will show it once it is written. ")):e.value.answers.length?h("",!0):(s(),o("p",F,"No answer yet.")),(s(!0),o(c,null,y(e.value.answers,(_,m)=>(s(),o("article",{key:m,class:"report-page__answer"},[t("p",I,a(_.by||"maintainer")+" · "+a(n(d)(_.at)),1),t("p",U,a(_.text),1)]))),128))])],64)):(s(),o("p",S,a(p.value),1))]))}}),z=k(j,[["__scopeId","data-v-167de311"]]);x(z).mount("#app");
@@ -1 +0,0 @@
1
- .report-page[data-v-167de311]{box-sizing:border-box;max-width:720px;margin:40px auto;padding:28px 32px;border:1px solid var(--md-outline-variant);border-radius:16px;background:var(--md-surface);color:var(--md-on-surface);font-family:var(--md-font);font-size:14px;line-height:1.5}.report-page__head[data-v-167de311]{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.report-page__title[data-v-167de311]{flex:1;min-width:0;margin:0;font-size:20px;font-weight:600}.report-page__id[data-v-167de311]{color:var(--md-primary);font-weight:700}.report-page__meta[data-v-167de311]{margin:6px 0 20px;color:var(--md-on-surface-variant);font-size:13px}.report-page__heading[data-v-167de311]{margin:18px 0 8px;color:var(--md-on-surface-variant);font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.report-page__text[data-v-167de311]{margin:0;white-space:pre-wrap}.report-page__answer[data-v-167de311]{padding:10px 0;border-top:1px solid var(--md-outline-variant)}.report-page__answer-meta[data-v-167de311]{margin:0 0 4px;color:var(--md-on-surface-variant);font-size:12px}.report-page__unanswered[data-v-167de311]{margin:0;padding:10px 12px;border-radius:8px;background:var(--md-error-container);color:var(--md-on-error-container);font-weight:600}