context-lens 0.7.2 → 0.8.0

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.
Files changed (60) hide show
  1. package/dist/cli-utils.d.ts +6 -5
  2. package/dist/cli-utils.d.ts.map +1 -1
  3. package/dist/cli-utils.js +25 -22
  4. package/dist/cli-utils.js.map +1 -1
  5. package/dist/cli.js +133 -50
  6. package/dist/cli.js.map +1 -1
  7. package/dist/config.d.ts +6 -0
  8. package/dist/config.d.ts.map +1 -1
  9. package/dist/config.js +28 -0
  10. package/dist/config.js.map +1 -1
  11. package/dist/core/conversation.d.ts +3 -2
  12. package/dist/core/conversation.d.ts.map +1 -1
  13. package/dist/core/conversation.js +9 -3
  14. package/dist/core/conversation.js.map +1 -1
  15. package/dist/core/parse.d.ts.map +1 -1
  16. package/dist/core/parse.js +57 -5
  17. package/dist/core/parse.js.map +1 -1
  18. package/dist/core/security.d.ts.map +1 -1
  19. package/dist/core/security.js +15 -1
  20. package/dist/core/security.js.map +1 -1
  21. package/dist/importers/claude-code.d.ts +19 -0
  22. package/dist/importers/claude-code.d.ts.map +1 -0
  23. package/dist/importers/claude-code.js +166 -0
  24. package/dist/importers/claude-code.js.map +1 -0
  25. package/dist/importers/codex.d.ts +22 -0
  26. package/dist/importers/codex.d.ts.map +1 -0
  27. package/dist/importers/codex.js +172 -0
  28. package/dist/importers/codex.js.map +1 -0
  29. package/dist/importers/index.d.ts +12 -0
  30. package/dist/importers/index.d.ts.map +1 -0
  31. package/dist/importers/index.js +153 -0
  32. package/dist/importers/index.js.map +1 -0
  33. package/dist/importers/types.d.ts +51 -0
  34. package/dist/importers/types.d.ts.map +1 -0
  35. package/dist/importers/types.js +8 -0
  36. package/dist/importers/types.js.map +1 -0
  37. package/dist/lhar/composition.d.ts.map +1 -1
  38. package/dist/lhar/composition.js +13 -0
  39. package/dist/lhar/composition.js.map +1 -1
  40. package/dist/lhar/response.d.ts.map +1 -1
  41. package/dist/lhar/response.js +17 -1
  42. package/dist/lhar/response.js.map +1 -1
  43. package/dist/server/api.d.ts.map +1 -1
  44. package/dist/server/api.js +72 -0
  45. package/dist/server/api.js.map +1 -1
  46. package/dist/server/store.d.ts +3 -0
  47. package/dist/server/store.d.ts.map +1 -1
  48. package/dist/server/store.js +12 -2
  49. package/dist/server/store.js.map +1 -1
  50. package/dist/types.d.ts +16 -0
  51. package/dist/types.d.ts.map +1 -1
  52. package/dist/version.generated.d.ts +1 -1
  53. package/dist/version.generated.js +1 -1
  54. package/mitm_addon.py +107 -4
  55. package/package.json +4 -4
  56. package/ui/dist/assets/index-BlAdJWw0.css +1 -0
  57. package/ui/dist/assets/index-DO3TMDY3.js +58 -0
  58. package/ui/dist/index.html +2 -2
  59. package/ui/dist/assets/index-CZq91bC_.js +0 -52
  60. package/ui/dist/assets/index-DSyD9xgM.css +0 -1
@@ -1,52 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/cpp-BRuaLJcg.js","assets/c-BIGW1oBm.js","assets/sql-BLtJtn59.js","assets/ruby-CkRbH_-r.js","assets/graphql-ChdNCCLP.js","assets/typescript-BPQ3VLAy.js","assets/jsx-g9-lgVsj.js","assets/tsx-COt5Ahok.js","assets/shellscript-Yzrsuije.js","assets/yaml-Buea-lGh.js","assets/php-Dhbhpdrm.js","assets/json-Cp-IABpG.js"])))=>i.map(i=>d[i]);
2
- (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))u(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&u(r)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function u(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();/**
3
- * @vue/shared v3.5.28
4
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
5
- * @license MIT
6
- **/function kr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const We={},ou=[],nn=()=>{},Yl=()=>!1,Ws=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),wr=e=>e.startsWith("onUpdate:"),ot=Object.assign,Cr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},w0=Object.prototype.hasOwnProperty,Ve=(e,t)=>w0.call(e,t),De=Array.isArray,ru=e=>ss(e)==="[object Map]",Xl=e=>ss(e)==="[object Set]",ri=e=>ss(e)==="[object Date]",Pe=e=>typeof e=="function",Ye=e=>typeof e=="string",qt=e=>typeof e=="symbol",Ue=e=>e!==null&&typeof e=="object",Ql=e=>(Ue(e)||Pe(e))&&Pe(e.then)&&Pe(e.catch),ea=Object.prototype.toString,ss=e=>ea.call(e),C0=e=>ss(e).slice(8,-1),ta=e=>ss(e)==="[object Object]",Ks=e=>Ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Eu=kr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Gs=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},$0=/-\w/g,Lt=Gs(e=>e.replace($0,t=>t.slice(1).toUpperCase())),E0=/\B([A-Z])/g,Bn=Gs(e=>e.replace(E0,"-$1").toLowerCase()),Zs=Gs(e=>e.charAt(0).toUpperCase()+e.slice(1)),_o=Gs(e=>e?`on${Zs(e)}`:""),Pn=(e,t)=>!Object.is(e,t),ks=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},na=(e,t,n,u=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:u,value:n})},$r=e=>{const t=parseFloat(e);return isNaN(t)?e:t},T0=e=>{const t=Ye(e)?Number(e):NaN;return isNaN(t)?e:t};let ii;const Js=()=>ii||(ii=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Se(e){if(De(e)){const t={};for(let n=0;n<e.length;n++){const u=e[n],s=Ye(u)?F0(u):Se(u);if(s)for(const o in s)t[o]=s[o]}return t}else if(Ye(e)||Ue(e))return e}const S0=/;(?![^(]*\))/g,D0=/:([^]+)/,A0=/\/\*[^]*?\*\//g;function F0(e){const t={};return e.replace(A0,"").split(S0).forEach(n=>{if(n){const u=n.split(D0);u.length>1&&(t[u[0].trim()]=u[1].trim())}}),t}function le(e){let t="";if(Ye(e))t=e;else if(De(e))for(let n=0;n<e.length;n++){const u=le(e[n]);u&&(t+=u+" ")}else if(Ue(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function M0(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ye(t)&&(e.class=le(t)),n&&(e.style=Se(n)),e}const I0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",P0=kr(I0);function ua(e){return!!e||e===""}function L0(e,t){if(e.length!==t.length)return!1;let n=!0;for(let u=0;n&&u<e.length;u++)n=Er(e[u],t[u]);return n}function Er(e,t){if(e===t)return!0;let n=ri(e),u=ri(t);if(n||u)return n&&u?e.getTime()===t.getTime():!1;if(n=qt(e),u=qt(t),n||u)return e===t;if(n=De(e),u=De(t),n||u)return n&&u?L0(e,t):!1;if(n=Ue(e),u=Ue(t),n||u){if(!n||!u)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const r in e){const i=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(i&&!l||!i&&l||!Er(e[r],t[r]))return!1}}return String(e)===String(t)}const sa=e=>!!(e&&e.__v_isRef===!0),A=e=>Ye(e)?e:e==null?"":De(e)||Ue(e)&&(e.toString===ea||!Pe(e.toString))?sa(e)?A(e.value):JSON.stringify(e,oa,2):String(e),oa=(e,t)=>sa(t)?oa(e,t.value):ru(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[u,s],o)=>(n[yo(u,o)+" =>"]=s,n),{})}:Xl(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>yo(n))}:qt(t)?yo(t):Ue(t)&&!De(t)&&!ta(t)?String(t):t,yo=(e,t="")=>{var n;return qt(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
7
- * @vue/reactivity v3.5.28
8
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
9
- * @license MIT
10
- **/let pt;class ra{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=pt,!t&&pt&&(this.index=(pt.scopes||(pt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[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)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=pt;try{return pt=this,t()}finally{pt=n}}}on(){++this._on===1&&(this.prevScope=pt,pt=this)}off(){this._on>0&&--this._on===0&&(pt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,u;for(n=0,u=this.effects.length;n<u;n++)this.effects[n].stop();for(this.effects.length=0,n=0,u=this.cleanups.length;n<u;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,u=this.scopes.length;n<u;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0}}}function ia(e){return new ra(e)}function la(){return pt}function R0(e,t=!1){pt&&pt.cleanups.push(e)}let Ke;const xo=new WeakSet;class aa{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,pt&&pt.active&&pt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,xo.has(this)&&(xo.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||fa(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,li(this),da(this);const t=Ke,n=Bt;Ke=this,Bt=!0;try{return this.fn()}finally{pa(this),Ke=t,Bt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Dr(t);this.deps=this.depsTail=void 0,li(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?xo.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Ko(this)&&this.run()}get dirty(){return Ko(this)}}let ca=0,Tu,Su;function fa(e,t=!1){if(e.flags|=8,t){e.next=Su,Su=e;return}e.next=Tu,Tu=e}function Tr(){ca++}function Sr(){if(--ca>0)return;if(Su){let t=Su;for(Su=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Tu;){let t=Tu;for(Tu=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(u){e||(e=u)}t=n}}if(e)throw e}function da(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function pa(e){let t,n=e.depsTail,u=n;for(;u;){const s=u.prevDep;u.version===-1?(u===n&&(n=s),Dr(u),O0(u)):t=u,u.dep.activeLink=u.prevActiveLink,u.prevActiveLink=void 0,u=s}e.deps=t,e.depsTail=n}function Ko(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ha(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ha(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zu)||(e.globalVersion=zu,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Ko(e))))return;e.flags|=2;const t=e.dep,n=Ke,u=Bt;Ke=e,Bt=!0;try{da(e);const s=e.fn(e._value);(t.version===0||Pn(s,e._value))&&(e.flags|=128,e._value=s,t.version++)}catch(s){throw t.version++,s}finally{Ke=n,Bt=u,pa(e),e.flags&=-3}}function Dr(e,t=!1){const{dep:n,prevSub:u,nextSub:s}=e;if(u&&(u.nextSub=s,e.prevSub=void 0),s&&(s.prevSub=u,e.nextSub=void 0),n.subs===e&&(n.subs=u,!u&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Dr(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function O0(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Bt=!0;const ma=[];function bn(){ma.push(Bt),Bt=!1}function _n(){const e=ma.pop();Bt=e===void 0?!0:e}function li(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ke;Ke=void 0;try{t()}finally{Ke=n}}}let zu=0;class z0{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 Ar{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(!Ke||!Bt||Ke===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ke)n=this.activeLink=new z0(Ke,this),Ke.deps?(n.prevDep=Ke.depsTail,Ke.depsTail.nextDep=n,Ke.depsTail=n):Ke.deps=Ke.depsTail=n,ga(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const u=n.nextDep;u.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=u),n.prevDep=Ke.depsTail,n.nextDep=void 0,Ke.depsTail.nextDep=n,Ke.depsTail=n,Ke.deps===n&&(Ke.deps=u)}return n}trigger(t){this.version++,zu++,this.notify(t)}notify(t){Tr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Sr()}}}function ga(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let u=t.deps;u;u=u.nextDep)ga(u)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Ss=new WeakMap,Yn=Symbol(""),Go=Symbol(""),Nu=Symbol("");function ht(e,t,n){if(Bt&&Ke){let u=Ss.get(e);u||Ss.set(e,u=new Map);let s=u.get(n);s||(u.set(n,s=new Ar),s.map=u,s.key=n),s.track()}}function pn(e,t,n,u,s,o){const r=Ss.get(e);if(!r){zu++;return}const i=l=>{l&&l.trigger()};if(Tr(),t==="clear")r.forEach(i);else{const l=De(e),a=l&&Ks(n);if(l&&n==="length"){const f=Number(u);r.forEach((d,h)=>{(h==="length"||h===Nu||!qt(h)&&h>=f)&&i(d)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),a&&i(r.get(Nu)),t){case"add":l?a&&i(r.get("length")):(i(r.get(Yn)),ru(e)&&i(r.get(Go)));break;case"delete":l||(i(r.get(Yn)),ru(e)&&i(r.get(Go)));break;case"set":ru(e)&&i(r.get(Yn));break}}Sr()}function N0(e,t){const n=Ss.get(e);return n&&n.get(t)}function eu(e){const t=He(e);return t===e?t:(ht(t,"iterate",Nu),Dt(e)?t:t.map(Vt))}function Ys(e){return ht(e=He(e),"iterate",Nu),e}function Dn(e,t){return yn(e)?fu(gn(e)?Vt(t):t):Vt(t)}const B0={__proto__:null,[Symbol.iterator](){return ko(this,Symbol.iterator,e=>Dn(this,e))},concat(...e){return eu(this).concat(...e.map(t=>De(t)?eu(t):t))},entries(){return ko(this,"entries",e=>(e[1]=Dn(this,e[1]),e))},every(e,t){return an(this,"every",e,t,void 0,arguments)},filter(e,t){return an(this,"filter",e,t,n=>n.map(u=>Dn(this,u)),arguments)},find(e,t){return an(this,"find",e,t,n=>Dn(this,n),arguments)},findIndex(e,t){return an(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return an(this,"findLast",e,t,n=>Dn(this,n),arguments)},findLastIndex(e,t){return an(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return an(this,"forEach",e,t,void 0,arguments)},includes(...e){return wo(this,"includes",e)},indexOf(...e){return wo(this,"indexOf",e)},join(e){return eu(this).join(e)},lastIndexOf(...e){return wo(this,"lastIndexOf",e)},map(e,t){return an(this,"map",e,t,void 0,arguments)},pop(){return vu(this,"pop")},push(...e){return vu(this,"push",e)},reduce(e,...t){return ai(this,"reduce",e,t)},reduceRight(e,...t){return ai(this,"reduceRight",e,t)},shift(){return vu(this,"shift")},some(e,t){return an(this,"some",e,t,void 0,arguments)},splice(...e){return vu(this,"splice",e)},toReversed(){return eu(this).toReversed()},toSorted(e){return eu(this).toSorted(e)},toSpliced(...e){return eu(this).toSpliced(...e)},unshift(...e){return vu(this,"unshift",e)},values(){return ko(this,"values",e=>Dn(this,e))}};function ko(e,t,n){const u=Ys(e),s=u[t]();return u!==e&&!Dt(e)&&(s._next=s.next,s.next=()=>{const o=s._next();return o.done||(o.value=n(o.value)),o}),s}const H0=Array.prototype;function an(e,t,n,u,s,o){const r=Ys(e),i=r!==e&&!Dt(e),l=r[t];if(l!==H0[t]){const d=l.apply(e,o);return i?Vt(d):d}let a=n;r!==e&&(i?a=function(d,h){return n.call(this,Dn(e,d),h,e)}:n.length>2&&(a=function(d,h){return n.call(this,d,h,e)}));const f=l.call(r,a,u);return i&&s?s(f):f}function ai(e,t,n,u){const s=Ys(e);let o=n;return s!==e&&(Dt(e)?n.length>3&&(o=function(r,i,l){return n.call(this,r,i,l,e)}):o=function(r,i,l){return n.call(this,r,Dn(e,i),l,e)}),s[t](o,...u)}function wo(e,t,n){const u=He(e);ht(u,"iterate",Nu);const s=u[t](...n);return(s===-1||s===!1)&&Xs(n[0])?(n[0]=He(n[0]),u[t](...n)):s}function vu(e,t,n=[]){bn(),Tr();const u=He(e)[t].apply(e,n);return Sr(),_n(),u}const j0=kr("__proto__,__v_isRef,__isVue"),va=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(qt));function q0(e){qt(e)||(e=String(e));const t=He(this);return ht(t,"has",e),t.hasOwnProperty(e)}class ba{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,u){if(n==="__v_skip")return t.__v_skip;const s=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!s;if(n==="__v_isReadonly")return s;if(n==="__v_isShallow")return o;if(n==="__v_raw")return u===(s?o?Q0:ka:o?xa:ya).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(u)?t:void 0;const r=De(t);if(!s){let l;if(r&&(l=B0[n]))return l;if(n==="hasOwnProperty")return q0}const i=Reflect.get(t,n,et(t)?t:u);if((qt(n)?va.has(n):j0(n))||(s||ht(t,"get",n),o))return i;if(et(i)){const l=r&&Ks(n)?i:i.value;return s&&Ue(l)?Jo(l):l}return Ue(i)?s?Jo(i):os(i):i}}class _a extends ba{constructor(t=!1){super(!1,t)}set(t,n,u,s){let o=t[n];const r=De(t)&&Ks(n);if(!this._isShallow){const a=yn(o);if(!Dt(u)&&!yn(u)&&(o=He(o),u=He(u)),!r&&et(o)&&!et(u))return a||(o.value=u),!0}const i=r?Number(n)<t.length:Ve(t,n),l=Reflect.set(t,n,u,et(t)?t:s);return t===He(s)&&(i?Pn(u,o)&&pn(t,"set",n,u):pn(t,"add",n,u)),l}deleteProperty(t,n){const u=Ve(t,n);t[n];const s=Reflect.deleteProperty(t,n);return s&&u&&pn(t,"delete",n,void 0),s}has(t,n){const u=Reflect.has(t,n);return(!qt(n)||!va.has(n))&&ht(t,"has",n),u}ownKeys(t){return ht(t,"iterate",De(t)?"length":Yn),Reflect.ownKeys(t)}}class V0 extends ba{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const U0=new _a,W0=new V0,K0=new _a(!0);const Zo=e=>e,ps=e=>Reflect.getPrototypeOf(e);function G0(e,t,n){return function(...u){const s=this.__v_raw,o=He(s),r=ru(o),i=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,a=s[e](...u),f=n?Zo:t?fu:Vt;return!t&&ht(o,"iterate",l?Go:Yn),ot(Object.create(a),{next(){const{value:d,done:h}=a.next();return h?{value:d,done:h}:{value:i?[f(d[0]),f(d[1])]:f(d),done:h}}})}}function hs(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Z0(e,t){const n={get(s){const o=this.__v_raw,r=He(o),i=He(s);e||(Pn(s,i)&&ht(r,"get",s),ht(r,"get",i));const{has:l}=ps(r),a=t?Zo:e?fu:Vt;if(l.call(r,s))return a(o.get(s));if(l.call(r,i))return a(o.get(i));o!==r&&o.get(s)},get size(){const s=this.__v_raw;return!e&&ht(He(s),"iterate",Yn),s.size},has(s){const o=this.__v_raw,r=He(o),i=He(s);return e||(Pn(s,i)&&ht(r,"has",s),ht(r,"has",i)),s===i?o.has(s):o.has(s)||o.has(i)},forEach(s,o){const r=this,i=r.__v_raw,l=He(i),a=t?Zo:e?fu:Vt;return!e&&ht(l,"iterate",Yn),i.forEach((f,d)=>s.call(o,a(f),a(d),r))}};return ot(n,e?{add:hs("add"),set:hs("set"),delete:hs("delete"),clear:hs("clear")}:{add(s){!t&&!Dt(s)&&!yn(s)&&(s=He(s));const o=He(this);return ps(o).has.call(o,s)||(o.add(s),pn(o,"add",s,s)),this},set(s,o){!t&&!Dt(o)&&!yn(o)&&(o=He(o));const r=He(this),{has:i,get:l}=ps(r);let a=i.call(r,s);a||(s=He(s),a=i.call(r,s));const f=l.call(r,s);return r.set(s,o),a?Pn(o,f)&&pn(r,"set",s,o):pn(r,"add",s,o),this},delete(s){const o=He(this),{has:r,get:i}=ps(o);let l=r.call(o,s);l||(s=He(s),l=r.call(o,s)),i&&i.call(o,s);const a=o.delete(s);return l&&pn(o,"delete",s,void 0),a},clear(){const s=He(this),o=s.size!==0,r=s.clear();return o&&pn(s,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(s=>{n[s]=G0(s,e,t)}),n}function Fr(e,t){const n=Z0(e,t);return(u,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?u:Reflect.get(Ve(n,s)&&s in u?n:u,s,o)}const J0={get:Fr(!1,!1)},Y0={get:Fr(!1,!0)},X0={get:Fr(!0,!1)};const ya=new WeakMap,xa=new WeakMap,ka=new WeakMap,Q0=new WeakMap;function ef(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function tf(e){return e.__v_skip||!Object.isExtensible(e)?0:ef(C0(e))}function os(e){return yn(e)?e:Mr(e,!1,U0,J0,ya)}function nf(e){return Mr(e,!1,K0,Y0,xa)}function Jo(e){return Mr(e,!0,W0,X0,ka)}function Mr(e,t,n,u,s){if(!Ue(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=tf(e);if(o===0)return e;const r=s.get(e);if(r)return r;const i=new Proxy(e,o===2?u:n);return s.set(e,i),i}function gn(e){return yn(e)?gn(e.__v_raw):!!(e&&e.__v_isReactive)}function yn(e){return!!(e&&e.__v_isReadonly)}function Dt(e){return!!(e&&e.__v_isShallow)}function Xs(e){return e?!!e.__v_raw:!1}function He(e){const t=e&&e.__v_raw;return t?He(t):e}function Ir(e){return!Ve(e,"__v_skip")&&Object.isExtensible(e)&&na(e,"__v_skip",!0),e}const Vt=e=>Ue(e)?os(e):e,fu=e=>Ue(e)?Jo(e):e;function et(e){return e?e.__v_isRef===!0:!1}function he(e){return uf(e,!1)}function uf(e,t){return et(e)?e:new sf(e,t)}class sf{constructor(t,n){this.dep=new Ar,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:He(t),this._value=n?t:Vt(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,u=this.__v_isShallow||Dt(t)||yn(t);t=u?t:He(t),Pn(t,n)&&(this._rawValue=t,this._value=u?t:Vt(t),this.dep.trigger())}}function X(e){return et(e)?e.value:e}const of={get:(e,t,n)=>t==="__v_raw"?e:X(Reflect.get(e,t,n)),set:(e,t,n,u)=>{const s=e[t];return et(s)&&!et(n)?(s.value=n,!0):Reflect.set(e,t,n,u)}};function wa(e){return gn(e)?e:new Proxy(e,of)}function rf(e){const t=De(e)?new Array(e.length):{};for(const n in e)t[n]=af(e,n);return t}class lf{constructor(t,n,u){this._object=t,this._key=n,this._defaultValue=u,this.__v_isRef=!0,this._value=void 0,this._raw=He(t);let s=!0,o=t;if(!De(t)||!Ks(String(n)))do s=!Xs(o)||Dt(o);while(s&&(o=o.__v_raw));this._shallow=s}get value(){let t=this._object[this._key];return this._shallow&&(t=X(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&et(this._raw[this._key])){const n=this._object[this._key];if(et(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return N0(this._raw,this._key)}}function af(e,t,n){return new lf(e,t,n)}class cf{constructor(t,n,u){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Ar(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=u}notify(){if(this.flags|=16,!(this.flags&8)&&Ke!==this)return fa(this,!0),!0}get value(){const t=this.dep.track();return ha(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ff(e,t,n=!1){let u,s;return Pe(e)?u=e:(u=e.get,s=e.set),new cf(u,s,n)}const ms={},Ds=new WeakMap;let Gn;function df(e,t=!1,n=Gn){if(n){let u=Ds.get(n);u||Ds.set(n,u=[]),u.push(e)}}function pf(e,t,n=We){const{immediate:u,deep:s,once:o,scheduler:r,augmentJob:i,call:l}=n,a=D=>s?D:Dt(D)||s===!1||s===0?hn(D,1):hn(D);let f,d,h,g,v=!1,E=!1;if(et(e)?(d=()=>e.value,v=Dt(e)):gn(e)?(d=()=>a(e),v=!0):De(e)?(E=!0,v=e.some(D=>gn(D)||Dt(D)),d=()=>e.map(D=>{if(et(D))return D.value;if(gn(D))return a(D);if(Pe(D))return l?l(D,2):D()})):Pe(e)?t?d=l?()=>l(e,2):e:d=()=>{if(h){bn();try{h()}finally{_n()}}const D=Gn;Gn=f;try{return l?l(e,3,[g]):e(g)}finally{Gn=D}}:d=nn,t&&s){const D=d,P=s===!0?1/0:s;d=()=>hn(D(),P)}const k=la(),T=()=>{f.stop(),k&&k.active&&Cr(k.effects,f)};if(o&&t){const D=t;t=(...P)=>{D(...P),T()}}let $=E?new Array(e.length).fill(ms):ms;const R=D=>{if(!(!(f.flags&1)||!f.dirty&&!D))if(t){const P=f.run();if(s||v||(E?P.some((S,G)=>Pn(S,$[G])):Pn(P,$))){h&&h();const S=Gn;Gn=f;try{const G=[P,$===ms?void 0:E&&$[0]===ms?[]:$,g];$=P,l?l(t,3,G):t(...G)}finally{Gn=S}}}else f.run()};return i&&i(R),f=new aa(d),f.scheduler=r?()=>r(R,!1):R,g=D=>df(D,!1,f),h=f.onStop=()=>{const D=Ds.get(f);if(D){if(l)l(D,4);else for(const P of D)P();Ds.delete(f)}},t?u?R(!0):$=f.run():r?r(R.bind(null,!0),!0):f.run(),T.pause=f.pause.bind(f),T.resume=f.resume.bind(f),T.stop=T,T}function hn(e,t=1/0,n){if(t<=0||!Ue(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,et(e))hn(e.value,t,n);else if(De(e))for(let u=0;u<e.length;u++)hn(e[u],t,n);else if(Xl(e)||ru(e))e.forEach(u=>{hn(u,t,n)});else if(ta(e)){for(const u in e)hn(e[u],t,n);for(const u of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,u)&&hn(e[u],t,n)}return e}/**
11
- * @vue/runtime-core v3.5.28
12
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
13
- * @license MIT
14
- **/function rs(e,t,n,u){try{return u?e(...u):e()}catch(s){Qs(s,t,n)}}function Ut(e,t,n,u){if(Pe(e)){const s=rs(e,t,n,u);return s&&Ql(s)&&s.catch(o=>{Qs(o,t,n)}),s}if(De(e)){const s=[];for(let o=0;o<e.length;o++)s.push(Ut(e[o],t,n,u));return s}}function Qs(e,t,n,u=!0){const s=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||We;if(t){let i=t.parent;const l=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const f=i.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,l,a)===!1)return}i=i.parent}if(o){bn(),rs(o,null,10,[e,l,a]),_n();return}}hf(e,n,s,u,r)}function hf(e,t,n,u=!0,s=!1){if(s)throw e;console.error(e)}const bt=[];let Jt=-1;const iu=[];let An=null,uu=0;const Ca=Promise.resolve();let As=null;function Je(e){const t=As||Ca;return e?t.then(this?e.bind(this):e):t}function mf(e){let t=Jt+1,n=bt.length;for(;t<n;){const u=t+n>>>1,s=bt[u],o=Bu(s);o<e||o===e&&s.flags&2?t=u+1:n=u}return t}function Pr(e){if(!(e.flags&1)){const t=Bu(e),n=bt[bt.length-1];!n||!(e.flags&2)&&t>=Bu(n)?bt.push(e):bt.splice(mf(t),0,e),e.flags|=1,$a()}}function $a(){As||(As=Ca.then(Ta))}function gf(e){De(e)?iu.push(...e):An&&e.id===-1?An.splice(uu+1,0,e):e.flags&1||(iu.push(e),e.flags|=1),$a()}function ci(e,t,n=Jt+1){for(;n<bt.length;n++){const u=bt[n];if(u&&u.flags&2){if(e&&u.id!==e.uid)continue;bt.splice(n,1),n--,u.flags&4&&(u.flags&=-2),u(),u.flags&4||(u.flags&=-2)}}}function Ea(e){if(iu.length){const t=[...new Set(iu)].sort((n,u)=>Bu(n)-Bu(u));if(iu.length=0,An){An.push(...t);return}for(An=t,uu=0;uu<An.length;uu++){const n=An[uu];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}An=null,uu=0}}const Bu=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Ta(e){try{for(Jt=0;Jt<bt.length;Jt++){const t=bt[Jt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),rs(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Jt<bt.length;Jt++){const t=bt[Jt];t&&(t.flags&=-2)}Jt=-1,bt.length=0,Ea(),As=null,(bt.length||iu.length)&&Ta()}}let ft=null,eo=null;function Fs(e){const t=ft;return ft=e,eo=e&&e.type.__scopeId||null,t}function vf(e){eo=e}function bf(){eo=null}const _f=e=>st;function st(e,t=ft,n){if(!t||e._n)return e;const u=(...s)=>{u._d&&Ps(-1);const o=Fs(t);let r;try{r=e(...s)}finally{Fs(o),u._d&&Ps(1)}return r};return u._n=!0,u._c=!0,u._d=!0,u}function je(e,t){if(ft===null)return e;const n=ro(ft),u=e.dirs||(e.dirs=[]);for(let s=0;s<t.length;s++){let[o,r,i,l=We]=t[s];o&&(Pe(o)&&(o={mounted:o,updated:o}),o.deep&&hn(r),u.push({dir:o,instance:n,value:r,oldValue:void 0,arg:i,modifiers:l}))}return e}function qn(e,t,n,u){const s=e.dirs,o=t&&t.dirs;for(let r=0;r<s.length;r++){const i=s[r];o&&(i.oldValue=o[r].value);let l=i.dir[u];l&&(bn(),Ut(l,n,8,[e.el,i,e,t]),_n())}}function $n(e,t){if(gt){let n=gt.provides;const u=gt.parent&&gt.parent.provides;u===n&&(n=gt.provides=Object.create(u)),n[e]=t}}function zt(e,t,n=!1){const u=ls();if(u||Xn){let s=Xn?Xn._context.provides:u?u.parent==null||u.ce?u.vnode.appContext&&u.vnode.appContext.provides:u.parent.provides:void 0;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Pe(t)?t.call(u&&u.proxy):t}}function yf(){return!!(ls()||Xn)}const xf=Symbol.for("v-scx"),kf=()=>zt(xf);function wf(e,t){return Lr(e,null,t)}function Ge(e,t,n){return Lr(e,t,n)}function Lr(e,t,n=We){const{immediate:u,deep:s,flush:o,once:r}=n,i=ot({},n),l=t&&u||!t&&o!=="post";let a;if(Wu){if(o==="sync"){const g=kf();a=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=nn,g.resume=nn,g.pause=nn,g}}const f=gt;i.call=(g,v,E)=>Ut(g,f,v,E);let d=!1;o==="post"?i.scheduler=g=>{dt(g,f&&f.suspense)}:o!=="sync"&&(d=!0,i.scheduler=(g,v)=>{v?g():Pr(g)}),i.augmentJob=g=>{t&&(g.flags|=4),d&&(g.flags|=2,f&&(g.id=f.uid,g.i=f))};const h=pf(e,t,i);return Wu&&(a?a.push(h):l&&h()),h}function Cf(e,t,n){const u=this.proxy,s=Ye(e)?e.includes(".")?Sa(u,e):()=>u[e]:e.bind(u,u);let o;Pe(t)?o=t:(o=t.handler,n=t);const r=as(this),i=Lr(s,o.bind(u),n);return r(),i}function Sa(e,t){const n=t.split(".");return()=>{let u=e;for(let s=0;s<n.length&&u;s++)u=u[n[s]];return u}}const Da=Symbol("_vte"),Aa=e=>e.__isTeleport,Du=e=>e&&(e.disabled||e.disabled===""),fi=e=>e&&(e.defer||e.defer===""),di=e=>typeof SVGElement<"u"&&e instanceof SVGElement,pi=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Yo=(e,t)=>{const n=e&&e.to;return Ye(n)?t?t(n):null:n},Fa={name:"Teleport",__isTeleport:!0,process(e,t,n,u,s,o,r,i,l,a){const{mc:f,pc:d,pbc:h,o:{insert:g,querySelector:v,createText:E,createComment:k}}=a,T=Du(t.props);let{shapeFlag:$,children:R,dynamicChildren:D}=t;if(e==null){const P=t.el=E(""),S=t.anchor=E("");g(P,n,u),g(S,n,u);const G=(K,J)=>{$&16&&f(R,K,J,s,o,r,i,l)},Z=()=>{const K=t.target=Yo(t.props,v),J=Xo(K,t,E,g);K&&(r!=="svg"&&di(K)?r="svg":r!=="mathml"&&pi(K)&&(r="mathml"),s&&s.isCE&&(s.ce._teleportTargets||(s.ce._teleportTargets=new Set)).add(K),T||(G(K,J),ws(t,!1)))};T&&(G(n,S),ws(t,!0)),fi(t.props)?(t.el.__isMounted=!1,dt(()=>{Z(),delete t.el.__isMounted},o)):Z()}else{if(fi(t.props)&&e.el.__isMounted===!1){dt(()=>{Fa.process(e,t,n,u,s,o,r,i,l,a)},o);return}t.el=e.el,t.targetStart=e.targetStart;const P=t.anchor=e.anchor,S=t.target=e.target,G=t.targetAnchor=e.targetAnchor,Z=Du(e.props),K=Z?n:S,J=Z?P:G;if(r==="svg"||di(S)?r="svg":(r==="mathml"||pi(S))&&(r="mathml"),D?(h(e.dynamicChildren,D,K,s,o,r,i),Br(e,t,!0)):l||d(e,t,K,J,s,o,r,i,!1),T)Z?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gs(t,n,P,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const me=t.target=Yo(t.props,v);me&&gs(t,me,null,a,0)}else Z&&gs(t,S,G,a,1);ws(t,T)}},remove(e,t,n,{um:u,o:{remove:s}},o){const{shapeFlag:r,children:i,anchor:l,targetStart:a,targetAnchor:f,target:d,props:h}=e;if(d&&(s(a),s(f)),o&&s(l),r&16){const g=o||!Du(h);for(let v=0;v<i.length;v++){const E=i[v];u(E,t,n,g,!!E.dynamicChildren)}}},move:gs,hydrate:$f};function gs(e,t,n,{o:{insert:u},m:s},o=2){o===0&&u(e.targetAnchor,t,n);const{el:r,anchor:i,shapeFlag:l,children:a,props:f}=e,d=o===2;if(d&&u(r,t,n),(!d||Du(f))&&l&16)for(let h=0;h<a.length;h++)s(a[h],t,n,2);d&&u(i,t,n)}function $f(e,t,n,u,s,o,{o:{nextSibling:r,parentNode:i,querySelector:l,insert:a,createText:f}},d){function h(k,T){let $=T;for(;$;){if($&&$.nodeType===8){if($.data==="teleport start anchor")t.targetStart=$;else if($.data==="teleport anchor"){t.targetAnchor=$,k._lpa=t.targetAnchor&&r(t.targetAnchor);break}}$=r($)}}function g(k,T){T.anchor=d(r(k),T,i(k),n,u,s,o)}const v=t.target=Yo(t.props,l),E=Du(t.props);if(v){const k=v._lpa||v.firstChild;t.shapeFlag&16&&(E?(g(e,t),h(v,k),t.targetAnchor||Xo(v,t,f,a,i(e)===v?e:null)):(t.anchor=r(e),h(v,k),t.targetAnchor||Xo(v,t,f,a),d(k&&r(k),t,v,n,u,s,o))),ws(t,E)}else E&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const Ef=Fa;function ws(e,t){const n=e.ctx;if(n&&n.ut){let u,s;for(t?(u=e.el,s=e.anchor):(u=e.targetStart,s=e.targetAnchor);u&&u!==s;)u.nodeType===1&&u.setAttribute("data-v-owner",n.uid),u=u.nextSibling;n.ut()}}function Xo(e,t,n,u,s=null){const o=t.targetStart=n(""),r=t.targetAnchor=n("");return o[Da]=r,e&&(u(o,e,s),u(r,e,s)),r}const Yt=Symbol("_leaveCb"),bu=Symbol("_enterCb");function Tf(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Hn(()=>{e.isMounted=!0}),uo(()=>{e.isUnmounting=!0}),e}const Mt=[Function,Array],Ma={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Mt,onEnter:Mt,onAfterEnter:Mt,onEnterCancelled:Mt,onBeforeLeave:Mt,onLeave:Mt,onAfterLeave:Mt,onLeaveCancelled:Mt,onBeforeAppear:Mt,onAppear:Mt,onAfterAppear:Mt,onAppearCancelled:Mt},Ia=e=>{const t=e.subTree;return t.component?Ia(t.component):t},Sf={name:"BaseTransition",props:Ma,setup(e,{slots:t}){const n=ls(),u=Tf();return()=>{const s=t.default&&Ra(t.default(),!0);if(!s||!s.length)return;const o=Pa(s),r=He(e),{mode:i}=r;if(u.isLeaving)return Co(o);const l=hi(o);if(!l)return Co(o);let a=Qo(l,r,u,n,d=>a=d);l.type!==mt&&Hu(l,a);let f=n.subTree&&hi(n.subTree);if(f&&f.type!==mt&&!Jn(f,l)&&Ia(n).type!==mt){let d=Qo(f,r,u,n);if(Hu(f,d),i==="out-in"&&l.type!==mt)return u.isLeaving=!0,d.afterLeave=()=>{u.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,f=void 0},Co(o);i==="in-out"&&l.type!==mt?d.delayLeave=(h,g,v)=>{const E=La(u,f);E[String(f.key)]=f,h[Yt]=()=>{g(),h[Yt]=void 0,delete a.delayedLeave,f=void 0},a.delayedLeave=()=>{v(),delete a.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return o}}};function Pa(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==mt){t=n;break}}return t}const Df=Sf;function La(e,t){const{leavingVNodes:n}=e;let u=n.get(t.type);return u||(u=Object.create(null),n.set(t.type,u)),u}function Qo(e,t,n,u,s){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:f,onEnterCancelled:d,onBeforeLeave:h,onLeave:g,onAfterLeave:v,onLeaveCancelled:E,onBeforeAppear:k,onAppear:T,onAfterAppear:$,onAppearCancelled:R}=t,D=String(e.key),P=La(n,e),S=(K,J)=>{K&&Ut(K,u,9,J)},G=(K,J)=>{const me=J[1];S(K,J),De(K)?K.every(H=>H.length<=1)&&me():K.length<=1&&me()},Z={mode:r,persisted:i,beforeEnter(K){let J=l;if(!n.isMounted)if(o)J=k||l;else return;K[Yt]&&K[Yt](!0);const me=P[D];me&&Jn(e,me)&&me.el[Yt]&&me.el[Yt](),S(J,[K])},enter(K){let J=a,me=f,H=d;if(!n.isMounted)if(o)J=T||a,me=$||f,H=R||d;else return;let ae=!1;K[bu]=M=>{ae||(ae=!0,M?S(H,[K]):S(me,[K]),Z.delayedLeave&&Z.delayedLeave(),K[bu]=void 0)};const oe=K[bu].bind(null,!1);J?G(J,[K,oe]):oe()},leave(K,J){const me=String(e.key);if(K[bu]&&K[bu](!0),n.isUnmounting)return J();S(h,[K]);let H=!1;K[Yt]=oe=>{H||(H=!0,J(),oe?S(E,[K]):S(v,[K]),K[Yt]=void 0,P[me]===e&&delete P[me])};const ae=K[Yt].bind(null,!1);P[me]=e,g?G(g,[K,ae]):ae()},clone(K){const J=Qo(K,t,n,u,s);return s&&s(J),J}};return Z}function Co(e){if(to(e))return e=On(e),e.children=null,e}function hi(e){if(!to(e))return Aa(e.type)&&e.children?Pa(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&&Pe(n.default))return n.default()}}function Hu(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Hu(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Ra(e,t=!1,n){let u=[],s=0;for(let o=0;o<e.length;o++){let r=e[o];const i=n==null?r.key:String(n)+String(r.key!=null?r.key:o);r.type===de?(r.patchFlag&128&&s++,u=u.concat(Ra(r.children,t,i))):(t||r.type!==mt)&&u.push(i!=null?On(r,{key:i}):r)}if(s>1)for(let o=0;o<u.length;o++)u[o].patchFlag=-2;return u}function tt(e,t){return Pe(e)?ot({name:e.name},t,{setup:e}):e}function Oa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function mi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const Ms=new WeakMap;function Au(e,t,n,u,s=!1){if(De(e)){e.forEach((E,k)=>Au(E,t&&(De(t)?t[k]:t),n,u,s));return}if(lu(u)&&!s){u.shapeFlag&512&&u.type.__asyncResolved&&u.component.subTree.component&&Au(e,t,n,u.component.subTree);return}const o=u.shapeFlag&4?ro(u.component):u.el,r=s?null:o,{i,r:l}=e,a=t&&t.r,f=i.refs===We?i.refs={}:i.refs,d=i.setupState,h=He(d),g=d===We?Yl:E=>mi(f,E)?!1:Ve(h,E),v=(E,k)=>!(k&&mi(f,k));if(a!=null&&a!==l){if(gi(t),Ye(a))f[a]=null,g(a)&&(d[a]=null);else if(et(a)){const E=t;v(a,E.k)&&(a.value=null),E.k&&(f[E.k]=null)}}if(Pe(l))rs(l,i,12,[r,f]);else{const E=Ye(l),k=et(l);if(E||k){const T=()=>{if(e.f){const $=E?g(l)?d[l]:f[l]:v()||!e.k?l.value:f[e.k];if(s)De($)&&Cr($,o);else if(De($))$.includes(o)||$.push(o);else if(E)f[l]=[o],g(l)&&(d[l]=f[l]);else{const R=[o];v(l,e.k)&&(l.value=R),e.k&&(f[e.k]=R)}}else E?(f[l]=r,g(l)&&(d[l]=r)):k&&(v(l,e.k)&&(l.value=r),e.k&&(f[e.k]=r))};if(r){const $=()=>{T(),Ms.delete(e)};$.id=-1,Ms.set(e,$),dt($,n)}else gi(e),T()}}}function gi(e){const t=Ms.get(e);t&&(t.flags|=8,Ms.delete(e))}Js().requestIdleCallback;Js().cancelIdleCallback;const lu=e=>!!e.type.__asyncLoader,to=e=>e.type.__isKeepAlive;function Af(e,t){za(e,"a",t)}function Ff(e,t){za(e,"da",t)}function za(e,t,n=gt){const u=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(no(t,u,n),n){let s=n.parent;for(;s&&s.parent;)to(s.parent.vnode)&&Mf(u,t,n,s),s=s.parent}}function Mf(e,t,n,u){const s=no(t,e,u,!0);is(()=>{Cr(u[t],s)},n)}function no(e,t,n=gt,u=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...r)=>{bn();const i=as(n),l=Ut(t,n,e,r);return i(),_n(),l});return u?s.unshift(o):s.push(o),o}}const kn=e=>(t,n=gt)=>{(!Wu||e==="sp")&&no(e,(...u)=>t(...u),n)},If=kn("bm"),Hn=kn("m"),Pf=kn("bu"),Lf=kn("u"),uo=kn("bum"),is=kn("um"),Rf=kn("sp"),Of=kn("rtg"),zf=kn("rtc");function Nf(e,t=gt){no("ec",e,t)}const Rr="components",Bf="directives";function ju(e,t){return Or(Rr,e,!0,t)||e}const Na=Symbol.for("v-ndc");function Ba(e){return Ye(e)?Or(Rr,e,!1)||e:e||Na}function jn(e){return Or(Bf,e)}function Or(e,t,n=!0,u=!1){const s=ft||gt;if(s){const o=s.type;if(e===Rr){const i=wd(o,!1);if(i&&(i===t||i===Lt(t)||i===Zs(Lt(t))))return o}const r=vi(s[e]||o[e],t)||vi(s.appContext[e],t);return!r&&u?o:r}}function vi(e,t){return e&&(e[t]||e[Lt(t)]||e[Zs(Lt(t))])}function Te(e,t,n,u){let s;const o=n,r=De(e);if(r||Ye(e)){const i=r&&gn(e);let l=!1,a=!1;i&&(l=!Dt(e),a=yn(e),e=Ys(e)),s=new Array(e.length);for(let f=0,d=e.length;f<d;f++)s[f]=t(l?a?fu(Vt(e[f])):Vt(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o)}else if(Ue(e))if(e[Symbol.iterator])s=Array.from(e,(i,l)=>t(i,l,void 0,o));else{const i=Object.keys(e);s=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const f=i[l];s[l]=t(e[f],f,l,o)}}else s=[];return s}function qu(e,t,n={},u,s){if(ft.ce||ft.parent&&lu(ft.parent)&&ft.parent.ce){const a=Object.keys(n).length>0;return t!=="default"&&(n.name=t),y(),_t(de,null,[Le("slot",n,u)],a?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),y();const r=o&&Ha(o(n)),i=n.key||r&&r.key,l=_t(de,{key:(i&&!qt(i)?i:`_${t}`)+(!r&&u?"_fb":"")},r||[],r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),o&&o._c&&(o._d=!0),l}function Ha(e){return e.some(t=>Uu(t)?!(t.type===mt||t.type===de&&!Ha(t.children)):!0)?e:null}const er=e=>e?lc(e)?ro(e):er(e.parent):null,Fu=ot(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=>er(e.parent),$root:e=>er(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>qa(e),$forceUpdate:e=>e.f||(e.f=()=>{Pr(e.update)}),$nextTick:e=>e.n||(e.n=Je.bind(e.proxy)),$watch:e=>Cf.bind(e)}),$o=(e,t)=>e!==We&&!e.__isScriptSetup&&Ve(e,t),Hf={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:u,data:s,props:o,accessCache:r,type:i,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return u[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if($o(u,t))return r[t]=1,u[t];if(s!==We&&Ve(s,t))return r[t]=2,s[t];if(Ve(o,t))return r[t]=3,o[t];if(n!==We&&Ve(n,t))return r[t]=4,n[t];tr&&(r[t]=0)}}const a=Fu[t];let f,d;if(a)return t==="$attrs"&&ht(e.attrs,"get",""),a(e);if((f=i.__cssModules)&&(f=f[t]))return f;if(n!==We&&Ve(n,t))return r[t]=4,n[t];if(d=l.config.globalProperties,Ve(d,t))return d[t]},set({_:e},t,n){const{data:u,setupState:s,ctx:o}=e;return $o(s,t)?(s[t]=n,!0):u!==We&&Ve(u,t)?(u[t]=n,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:u,appContext:s,props:o,type:r}},i){let l;return!!(n[i]||e!==We&&i[0]!=="$"&&Ve(e,i)||$o(t,i)||Ve(o,i)||Ve(u,i)||Ve(Fu,i)||Ve(s.config.globalProperties,i)||(l=r.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ve(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function jf(){return qf().slots}function qf(e){const t=ls();return t.setupContext||(t.setupContext=cc(t))}function bi(e){return De(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let tr=!0;function Vf(e){const t=qa(e),n=e.proxy,u=e.ctx;tr=!1,t.beforeCreate&&_i(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:r,watch:i,provide:l,inject:a,created:f,beforeMount:d,mounted:h,beforeUpdate:g,updated:v,activated:E,deactivated:k,beforeDestroy:T,beforeUnmount:$,destroyed:R,unmounted:D,render:P,renderTracked:S,renderTriggered:G,errorCaptured:Z,serverPrefetch:K,expose:J,inheritAttrs:me,components:H,directives:ae,filters:oe}=t;if(a&&Uf(a,u,null),r)for(const ce in r){const q=r[ce];Pe(q)&&(u[ce]=q.bind(n))}if(s){const ce=s.call(n,n);Ue(ce)&&(e.data=os(ce))}if(tr=!0,o)for(const ce in o){const q=o[ce],re=Pe(q)?q.bind(n,n):Pe(q.get)?q.get.bind(n,n):nn,_e=!Pe(q)&&Pe(q.set)?q.set.bind(n):nn,N=O({get:re,set:_e});Object.defineProperty(u,ce,{enumerable:!0,configurable:!0,get:()=>N.value,set:ne=>N.value=ne})}if(i)for(const ce in i)ja(i[ce],u,n,ce);if(l){const ce=Pe(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(q=>{$n(q,ce[q])})}f&&_i(f,e,"c");function ue(ce,q){De(q)?q.forEach(re=>ce(re.bind(n))):q&&ce(q.bind(n))}if(ue(If,d),ue(Hn,h),ue(Pf,g),ue(Lf,v),ue(Af,E),ue(Ff,k),ue(Nf,Z),ue(zf,S),ue(Of,G),ue(uo,$),ue(is,D),ue(Rf,K),De(J))if(J.length){const ce=e.exposed||(e.exposed={});J.forEach(q=>{Object.defineProperty(ce,q,{get:()=>n[q],set:re=>n[q]=re,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===nn&&(e.render=P),me!=null&&(e.inheritAttrs=me),H&&(e.components=H),ae&&(e.directives=ae),K&&Oa(e)}function Uf(e,t,n=nn){De(e)&&(e=nr(e));for(const u in e){const s=e[u];let o;Ue(s)?"default"in s?o=zt(s.from||u,s.default,!0):o=zt(s.from||u):o=zt(s),et(o)?Object.defineProperty(t,u,{enumerable:!0,configurable:!0,get:()=>o.value,set:r=>o.value=r}):t[u]=o}}function _i(e,t,n){Ut(De(e)?e.map(u=>u.bind(t.proxy)):e.bind(t.proxy),t,n)}function ja(e,t,n,u){let s=u.includes(".")?Sa(n,u):()=>n[u];if(Ye(e)){const o=t[e];Pe(o)&&Ge(s,o)}else if(Pe(e))Ge(s,e.bind(n));else if(Ue(e))if(De(e))e.forEach(o=>ja(o,t,n,u));else{const o=Pe(e.handler)?e.handler.bind(n):t[e.handler];Pe(o)&&Ge(s,o,e)}}function qa(e){const t=e.type,{mixins:n,extends:u}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:r}}=e.appContext,i=o.get(t);let l;return i?l=i:!s.length&&!n&&!u?l=t:(l={},s.length&&s.forEach(a=>Is(l,a,r,!0)),Is(l,t,r)),Ue(t)&&o.set(t,l),l}function Is(e,t,n,u=!1){const{mixins:s,extends:o}=t;o&&Is(e,o,n,!0),s&&s.forEach(r=>Is(e,r,n,!0));for(const r in t)if(!(u&&r==="expose")){const i=Wf[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const Wf={data:yi,props:xi,emits:xi,methods:$u,computed:$u,beforeCreate:vt,created:vt,beforeMount:vt,mounted:vt,beforeUpdate:vt,updated:vt,beforeDestroy:vt,beforeUnmount:vt,destroyed:vt,unmounted:vt,activated:vt,deactivated:vt,errorCaptured:vt,serverPrefetch:vt,components:$u,directives:$u,watch:Gf,provide:yi,inject:Kf};function yi(e,t){return t?e?function(){return ot(Pe(e)?e.call(this,this):e,Pe(t)?t.call(this,this):t)}:t:e}function Kf(e,t){return $u(nr(e),nr(t))}function nr(e){if(De(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function vt(e,t){return e?[...new Set([].concat(e,t))]:t}function $u(e,t){return e?ot(Object.create(null),e,t):t}function xi(e,t){return e?De(e)&&De(t)?[...new Set([...e,...t])]:ot(Object.create(null),bi(e),bi(t??{})):t}function Gf(e,t){if(!e)return t;if(!t)return e;const n=ot(Object.create(null),e);for(const u in t)n[u]=vt(e[u],t[u]);return n}function Va(){return{app:null,config:{isNativeTag:Yl,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 Zf=0;function Jf(e,t){return function(u,s=null){Pe(u)||(u=ot({},u)),s!=null&&!Ue(s)&&(s=null);const o=Va(),r=new WeakSet,i=[];let l=!1;const a=o.app={_uid:Zf++,_component:u,_props:s,_container:null,_context:o,_instance:null,version:$d,get config(){return o.config},set config(f){},use(f,...d){return r.has(f)||(f&&Pe(f.install)?(r.add(f),f.install(a,...d)):Pe(f)&&(r.add(f),f(a,...d))),a},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),a},component(f,d){return d?(o.components[f]=d,a):o.components[f]},directive(f,d){return d?(o.directives[f]=d,a):o.directives[f]},mount(f,d,h){if(!l){const g=a._ceVNode||Le(u,s);return g.appContext=o,h===!0?h="svg":h===!1&&(h=void 0),e(g,f,h),l=!0,a._container=f,f.__vue_app__=a,ro(g.component)}},onUnmount(f){i.push(f)},unmount(){l&&(Ut(i,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(f,d){return o.provides[f]=d,a},runWithContext(f){const d=Xn;Xn=a;try{return f()}finally{Xn=d}}};return a}}let Xn=null;const Yf=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Lt(t)}Modifiers`]||e[`${Bn(t)}Modifiers`];function Xf(e,t,...n){if(e.isUnmounted)return;const u=e.vnode.props||We;let s=n;const o=t.startsWith("update:"),r=o&&Yf(u,t.slice(7));r&&(r.trim&&(s=n.map(f=>Ye(f)?f.trim():f)),r.number&&(s=n.map($r)));let i,l=u[i=_o(t)]||u[i=_o(Lt(t))];!l&&o&&(l=u[i=_o(Bn(t))]),l&&Ut(l,e,6,s);const a=u[i+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Ut(a,e,6,s)}}const Qf=new WeakMap;function Ua(e,t,n=!1){const u=n?Qf:t.emitsCache,s=u.get(e);if(s!==void 0)return s;const o=e.emits;let r={},i=!1;if(!Pe(e)){const l=a=>{const f=Ua(a,t,!0);f&&(i=!0,ot(r,f))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!i?(Ue(e)&&u.set(e,null),null):(De(o)?o.forEach(l=>r[l]=null):ot(r,o),Ue(e)&&u.set(e,r),r)}function so(e,t){return!e||!Ws(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,Bn(t))||Ve(e,t))}function ki(e){const{type:t,vnode:n,proxy:u,withProxy:s,propsOptions:[o],slots:r,attrs:i,emit:l,render:a,renderCache:f,props:d,data:h,setupState:g,ctx:v,inheritAttrs:E}=e,k=Fs(e);let T,$;try{if(n.shapeFlag&4){const D=s||u,P=D;T=Xt(a.call(P,D,f,d,g,h,v)),$=i}else{const D=t;T=Xt(D.length>1?D(d,{attrs:i,slots:r,emit:l}):D(d,null)),$=t.props?i:ed(i)}}catch(D){Mu.length=0,Qs(D,e,1),T=Le(mt)}let R=T;if($&&E!==!1){const D=Object.keys($),{shapeFlag:P}=R;D.length&&P&7&&(o&&D.some(wr)&&($=td($,o)),R=On(R,$,!1,!0))}return n.dirs&&(R=On(R,null,!1,!0),R.dirs=R.dirs?R.dirs.concat(n.dirs):n.dirs),n.transition&&Hu(R,n.transition),T=R,Fs(k),T}const ed=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ws(n))&&((t||(t={}))[n]=e[n]);return t},td=(e,t)=>{const n={};for(const u in e)(!wr(u)||!(u.slice(9)in t))&&(n[u]=e[u]);return n};function nd(e,t,n){const{props:u,children:s,component:o}=e,{props:r,children:i,patchFlag:l}=t,a=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return u?wi(u,r,a):!!r;if(l&8){const f=t.dynamicProps;for(let d=0;d<f.length;d++){const h=f[d];if(Wa(r,u,h)&&!so(a,h))return!0}}}else return(s||i)&&(!i||!i.$stable)?!0:u===r?!1:u?r?wi(u,r,a):!0:!!r;return!1}function wi(e,t,n){const u=Object.keys(t);if(u.length!==Object.keys(e).length)return!0;for(let s=0;s<u.length;s++){const o=u[s];if(Wa(t,e,o)&&!so(n,o))return!0}return!1}function Wa(e,t,n){const u=e[n],s=t[n];return n==="style"&&Ue(u)&&Ue(s)?!Er(u,s):u!==s}function ud({vnode:e,parent:t},n){for(;t;){const u=t.subTree;if(u.suspense&&u.suspense.activeBranch===e&&(u.el=e.el),u===e)(e=t.vnode).el=n,t=t.parent;else break}}const Ka={},Ga=()=>Object.create(Ka),Za=e=>Object.getPrototypeOf(e)===Ka;function sd(e,t,n,u=!1){const s={},o=Ga();e.propsDefaults=Object.create(null),Ja(e,t,s,o);for(const r in e.propsOptions[0])r in s||(s[r]=void 0);n?e.props=u?s:nf(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function od(e,t,n,u){const{props:s,attrs:o,vnode:{patchFlag:r}}=e,i=He(s),[l]=e.propsOptions;let a=!1;if((u||r>0)&&!(r&16)){if(r&8){const f=e.vnode.dynamicProps;for(let d=0;d<f.length;d++){let h=f[d];if(so(e.emitsOptions,h))continue;const g=t[h];if(l)if(Ve(o,h))g!==o[h]&&(o[h]=g,a=!0);else{const v=Lt(h);s[v]=ur(l,i,v,g,e,!1)}else g!==o[h]&&(o[h]=g,a=!0)}}}else{Ja(e,t,s,o)&&(a=!0);let f;for(const d in i)(!t||!Ve(t,d)&&((f=Bn(d))===d||!Ve(t,f)))&&(l?n&&(n[d]!==void 0||n[f]!==void 0)&&(s[d]=ur(l,i,d,void 0,e,!0)):delete s[d]);if(o!==i)for(const d in o)(!t||!Ve(t,d))&&(delete o[d],a=!0)}a&&pn(e.attrs,"set","")}function Ja(e,t,n,u){const[s,o]=e.propsOptions;let r=!1,i;if(t)for(let l in t){if(Eu(l))continue;const a=t[l];let f;s&&Ve(s,f=Lt(l))?!o||!o.includes(f)?n[f]=a:(i||(i={}))[f]=a:so(e.emitsOptions,l)||(!(l in u)||a!==u[l])&&(u[l]=a,r=!0)}if(o){const l=He(n),a=i||We;for(let f=0;f<o.length;f++){const d=o[f];n[d]=ur(s,l,d,a[d],e,!Ve(a,d))}}return r}function ur(e,t,n,u,s,o){const r=e[n];if(r!=null){const i=Ve(r,"default");if(i&&u===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Pe(l)){const{propsDefaults:a}=s;if(n in a)u=a[n];else{const f=as(s);u=a[n]=l.call(null,t),f()}}else u=l;s.ce&&s.ce._setProp(n,u)}r[0]&&(o&&!i?u=!1:r[1]&&(u===""||u===Bn(n))&&(u=!0))}return u}const rd=new WeakMap;function Ya(e,t,n=!1){const u=n?rd:t.propsCache,s=u.get(e);if(s)return s;const o=e.props,r={},i=[];let l=!1;if(!Pe(e)){const f=d=>{l=!0;const[h,g]=Ya(d,t,!0);ot(r,h),g&&i.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!l)return Ue(e)&&u.set(e,ou),ou;if(De(o))for(let f=0;f<o.length;f++){const d=Lt(o[f]);Ci(d)&&(r[d]=We)}else if(o)for(const f in o){const d=Lt(f);if(Ci(d)){const h=o[f],g=r[d]=De(h)||Pe(h)?{type:h}:ot({},h),v=g.type;let E=!1,k=!0;if(De(v))for(let T=0;T<v.length;++T){const $=v[T],R=Pe($)&&$.name;if(R==="Boolean"){E=!0;break}else R==="String"&&(k=!1)}else E=Pe(v)&&v.name==="Boolean";g[0]=E,g[1]=k,(E||Ve(g,"default"))&&i.push(d)}}const a=[r,i];return Ue(e)&&u.set(e,a),a}function Ci(e){return e[0]!=="$"&&!Eu(e)}const zr=e=>e==="_"||e==="_ctx"||e==="$stable",Nr=e=>De(e)?e.map(Xt):[Xt(e)],id=(e,t,n)=>{if(t._n)return t;const u=st((...s)=>Nr(t(...s)),n);return u._c=!1,u},Xa=(e,t,n)=>{const u=e._ctx;for(const s in e){if(zr(s))continue;const o=e[s];if(Pe(o))t[s]=id(s,o,u);else if(o!=null){const r=Nr(o);t[s]=()=>r}}},Qa=(e,t)=>{const n=Nr(t);e.slots.default=()=>n},ec=(e,t,n)=>{for(const u in t)(n||!zr(u))&&(e[u]=t[u])},ld=(e,t,n)=>{const u=e.slots=Ga();if(e.vnode.shapeFlag&32){const s=t._;s?(ec(u,t,n),n&&na(u,"_",s,!0)):Xa(t,u)}else t&&Qa(e,t)},ad=(e,t,n)=>{const{vnode:u,slots:s}=e;let o=!0,r=We;if(u.shapeFlag&32){const i=t._;i?n&&i===1?o=!1:ec(s,t,n):(o=!t.$stable,Xa(t,s)),r=t}else t&&(Qa(e,t),r={default:1});if(o)for(const i in s)!zr(i)&&r[i]==null&&delete s[i]},dt=hd;function cd(e){return fd(e)}function fd(e,t){const n=Js();n.__VUE__=!0;const{insert:u,remove:s,patchProp:o,createElement:r,createText:i,createComment:l,setText:a,setElementText:f,parentNode:d,nextSibling:h,setScopeId:g=nn,insertStaticContent:v}=e,E=(b,p,m,_=null,F=null,z=null,ie=void 0,Y=null,fe=!!p.dynamicChildren)=>{if(b===p)return;b&&!Jn(b,p)&&(_=L(b),ne(b,F,z,!0),b=null),p.patchFlag===-2&&(fe=!1,p.dynamicChildren=null);const{type:te,ref:Ee,shapeFlag:be}=p;switch(te){case oo:k(b,p,m,_);break;case mt:T(b,p,m,_);break;case Cs:b==null&&$(p,m,_,ie);break;case de:H(b,p,m,_,F,z,ie,Y,fe);break;default:be&1?P(b,p,m,_,F,z,ie,Y,fe):be&6?ae(b,p,m,_,F,z,ie,Y,fe):(be&64||be&128)&&te.process(b,p,m,_,F,z,ie,Y,fe,C)}Ee!=null&&F?Au(Ee,b&&b.ref,z,p||b,!p):Ee==null&&b&&b.ref!=null&&Au(b.ref,null,z,b,!0)},k=(b,p,m,_)=>{if(b==null)u(p.el=i(p.children),m,_);else{const F=p.el=b.el;p.children!==b.children&&a(F,p.children)}},T=(b,p,m,_)=>{b==null?u(p.el=l(p.children||""),m,_):p.el=b.el},$=(b,p,m,_)=>{[b.el,b.anchor]=v(b.children,p,m,_,b.el,b.anchor)},R=({el:b,anchor:p},m,_)=>{let F;for(;b&&b!==p;)F=h(b),u(b,m,_),b=F;u(p,m,_)},D=({el:b,anchor:p})=>{let m;for(;b&&b!==p;)m=h(b),s(b),b=m;s(p)},P=(b,p,m,_,F,z,ie,Y,fe)=>{if(p.type==="svg"?ie="svg":p.type==="math"&&(ie="mathml"),b==null)S(p,m,_,F,z,ie,Y,fe);else{const te=b.el&&b.el._isVueCE?b.el:null;try{te&&te._beginPatch(),K(b,p,F,z,ie,Y,fe)}finally{te&&te._endPatch()}}},S=(b,p,m,_,F,z,ie,Y)=>{let fe,te;const{props:Ee,shapeFlag:be,transition:xe,dirs:Ae}=b;if(fe=b.el=r(b.type,z,Ee&&Ee.is,Ee),be&8?f(fe,b.children):be&16&&Z(b.children,fe,null,_,F,Eo(b,z),ie,Y),Ae&&qn(b,null,_,"created"),G(fe,b,b.scopeId,ie,_),Ee){for(const Be in Ee)Be!=="value"&&!Eu(Be)&&o(fe,Be,null,Ee[Be],z,_);"value"in Ee&&o(fe,"value",null,Ee.value,z),(te=Ee.onVnodeBeforeMount)&&Zt(te,_,b)}Ae&&qn(b,null,_,"beforeMount");const Oe=dd(F,xe);Oe&&xe.beforeEnter(fe),u(fe,p,m),((te=Ee&&Ee.onVnodeMounted)||Oe||Ae)&&dt(()=>{te&&Zt(te,_,b),Oe&&xe.enter(fe),Ae&&qn(b,null,_,"mounted")},F)},G=(b,p,m,_,F)=>{if(m&&g(b,m),_)for(let z=0;z<_.length;z++)g(b,_[z]);if(F){let z=F.subTree;if(p===z||uc(z.type)&&(z.ssContent===p||z.ssFallback===p)){const ie=F.vnode;G(b,ie,ie.scopeId,ie.slotScopeIds,F.parent)}}},Z=(b,p,m,_,F,z,ie,Y,fe=0)=>{for(let te=fe;te<b.length;te++){const Ee=b[te]=Y?dn(b[te]):Xt(b[te]);E(null,Ee,p,m,_,F,z,ie,Y)}},K=(b,p,m,_,F,z,ie)=>{const Y=p.el=b.el;let{patchFlag:fe,dynamicChildren:te,dirs:Ee}=p;fe|=b.patchFlag&16;const be=b.props||We,xe=p.props||We;let Ae;if(m&&Vn(m,!1),(Ae=xe.onVnodeBeforeUpdate)&&Zt(Ae,m,p,b),Ee&&qn(p,b,m,"beforeUpdate"),m&&Vn(m,!0),(be.innerHTML&&xe.innerHTML==null||be.textContent&&xe.textContent==null)&&f(Y,""),te?J(b.dynamicChildren,te,Y,m,_,Eo(p,F),z):ie||q(b,p,Y,null,m,_,Eo(p,F),z,!1),fe>0){if(fe&16)me(Y,be,xe,m,F);else if(fe&2&&be.class!==xe.class&&o(Y,"class",null,xe.class,F),fe&4&&o(Y,"style",be.style,xe.style,F),fe&8){const Oe=p.dynamicProps;for(let Be=0;Be<Oe.length;Be++){const ze=Oe[Be],it=be[ze],nt=xe[ze];(nt!==it||ze==="value")&&o(Y,ze,it,nt,F,m)}}fe&1&&b.children!==p.children&&f(Y,p.children)}else!ie&&te==null&&me(Y,be,xe,m,F);((Ae=xe.onVnodeUpdated)||Ee)&&dt(()=>{Ae&&Zt(Ae,m,p,b),Ee&&qn(p,b,m,"updated")},_)},J=(b,p,m,_,F,z,ie)=>{for(let Y=0;Y<p.length;Y++){const fe=b[Y],te=p[Y],Ee=fe.el&&(fe.type===de||!Jn(fe,te)||fe.shapeFlag&198)?d(fe.el):m;E(fe,te,Ee,null,_,F,z,ie,!0)}},me=(b,p,m,_,F)=>{if(p!==m){if(p!==We)for(const z in p)!Eu(z)&&!(z in m)&&o(b,z,p[z],null,F,_);for(const z in m){if(Eu(z))continue;const ie=m[z],Y=p[z];ie!==Y&&z!=="value"&&o(b,z,Y,ie,F,_)}"value"in m&&o(b,"value",p.value,m.value,F)}},H=(b,p,m,_,F,z,ie,Y,fe)=>{const te=p.el=b?b.el:i(""),Ee=p.anchor=b?b.anchor:i("");let{patchFlag:be,dynamicChildren:xe,slotScopeIds:Ae}=p;Ae&&(Y=Y?Y.concat(Ae):Ae),b==null?(u(te,m,_),u(Ee,m,_),Z(p.children||[],m,Ee,F,z,ie,Y,fe)):be>0&&be&64&&xe&&b.dynamicChildren&&b.dynamicChildren.length===xe.length?(J(b.dynamicChildren,xe,m,F,z,ie,Y),(p.key!=null||F&&p===F.subTree)&&Br(b,p,!0)):q(b,p,m,Ee,F,z,ie,Y,fe)},ae=(b,p,m,_,F,z,ie,Y,fe)=>{p.slotScopeIds=Y,b==null?p.shapeFlag&512?F.ctx.activate(p,m,_,ie,fe):oe(p,m,_,F,z,ie,fe):M(b,p,fe)},oe=(b,p,m,_,F,z,ie)=>{const Y=b.component=_d(b,_,F);if(to(b)&&(Y.ctx.renderer=C),yd(Y,!1,ie),Y.asyncDep){if(F&&F.registerDep(Y,ue,ie),!b.el){const fe=Y.subTree=Le(mt);T(null,fe,p,m),b.placeholder=fe.el}}else ue(Y,b,p,m,F,z,ie)},M=(b,p,m)=>{const _=p.component=b.component;if(nd(b,p,m))if(_.asyncDep&&!_.asyncResolved){ce(_,p,m);return}else _.next=p,_.update();else p.el=b.el,_.vnode=p},ue=(b,p,m,_,F,z,ie)=>{const Y=()=>{if(b.isMounted){let{next:be,bu:xe,u:Ae,parent:Oe,vnode:Be}=b;{const xt=tc(b);if(xt){be&&(be.el=Be.el,ce(b,be,ie)),xt.asyncDep.then(()=>{dt(()=>{b.isUnmounted||te()},F)});return}}let ze=be,it;Vn(b,!1),be?(be.el=Be.el,ce(b,be,ie)):be=Be,xe&&ks(xe),(it=be.props&&be.props.onVnodeBeforeUpdate)&&Zt(it,Oe,be,Be),Vn(b,!0);const nt=ki(b),yt=b.subTree;b.subTree=nt,E(yt,nt,d(yt.el),L(yt),b,F,z),be.el=nt.el,ze===null&&ud(b,nt.el),Ae&&dt(Ae,F),(it=be.props&&be.props.onVnodeUpdated)&&dt(()=>Zt(it,Oe,be,Be),F)}else{let be;const{el:xe,props:Ae}=p,{bm:Oe,m:Be,parent:ze,root:it,type:nt}=b,yt=lu(p);Vn(b,!1),Oe&&ks(Oe),!yt&&(be=Ae&&Ae.onVnodeBeforeMount)&&Zt(be,ze,p),Vn(b,!0);{it.ce&&it.ce._hasShadowRoot()&&it.ce._injectChildStyle(nt);const xt=b.subTree=ki(b);E(null,xt,m,_,b,F,z),p.el=xt.el}if(Be&&dt(Be,F),!yt&&(be=Ae&&Ae.onVnodeMounted)){const xt=p;dt(()=>Zt(be,ze,xt),F)}(p.shapeFlag&256||ze&&lu(ze.vnode)&&ze.vnode.shapeFlag&256)&&b.a&&dt(b.a,F),b.isMounted=!0,p=m=_=null}};b.scope.on();const fe=b.effect=new aa(Y);b.scope.off();const te=b.update=fe.run.bind(fe),Ee=b.job=fe.runIfDirty.bind(fe);Ee.i=b,Ee.id=b.uid,fe.scheduler=()=>Pr(Ee),Vn(b,!0),te()},ce=(b,p,m)=>{p.component=b;const _=b.vnode.props;b.vnode=p,b.next=null,od(b,p.props,_,m),ad(b,p.children,m),bn(),ci(b),_n()},q=(b,p,m,_,F,z,ie,Y,fe=!1)=>{const te=b&&b.children,Ee=b?b.shapeFlag:0,be=p.children,{patchFlag:xe,shapeFlag:Ae}=p;if(xe>0){if(xe&128){_e(te,be,m,_,F,z,ie,Y,fe);return}else if(xe&256){re(te,be,m,_,F,z,ie,Y,fe);return}}Ae&8?(Ee&16&&w(te,F,z),be!==te&&f(m,be)):Ee&16?Ae&16?_e(te,be,m,_,F,z,ie,Y,fe):w(te,F,z,!0):(Ee&8&&f(m,""),Ae&16&&Z(be,m,_,F,z,ie,Y,fe))},re=(b,p,m,_,F,z,ie,Y,fe)=>{b=b||ou,p=p||ou;const te=b.length,Ee=p.length,be=Math.min(te,Ee);let xe;for(xe=0;xe<be;xe++){const Ae=p[xe]=fe?dn(p[xe]):Xt(p[xe]);E(b[xe],Ae,m,null,F,z,ie,Y,fe)}te>Ee?w(b,F,z,!0,!1,be):Z(p,m,_,F,z,ie,Y,fe,be)},_e=(b,p,m,_,F,z,ie,Y,fe)=>{let te=0;const Ee=p.length;let be=b.length-1,xe=Ee-1;for(;te<=be&&te<=xe;){const Ae=b[te],Oe=p[te]=fe?dn(p[te]):Xt(p[te]);if(Jn(Ae,Oe))E(Ae,Oe,m,null,F,z,ie,Y,fe);else break;te++}for(;te<=be&&te<=xe;){const Ae=b[be],Oe=p[xe]=fe?dn(p[xe]):Xt(p[xe]);if(Jn(Ae,Oe))E(Ae,Oe,m,null,F,z,ie,Y,fe);else break;be--,xe--}if(te>be){if(te<=xe){const Ae=xe+1,Oe=Ae<Ee?p[Ae].el:_;for(;te<=xe;)E(null,p[te]=fe?dn(p[te]):Xt(p[te]),m,Oe,F,z,ie,Y,fe),te++}}else if(te>xe)for(;te<=be;)ne(b[te],F,z,!0),te++;else{const Ae=te,Oe=te,Be=new Map;for(te=Oe;te<=xe;te++){const lt=p[te]=fe?dn(p[te]):Xt(p[te]);lt.key!=null&&Be.set(lt.key,te)}let ze,it=0;const nt=xe-Oe+1;let yt=!1,xt=0;const Gt=new Array(nt);for(te=0;te<nt;te++)Gt[te]=0;for(te=Ae;te<=be;te++){const lt=b[te];if(it>=nt){ne(lt,F,z,!0);continue}let kt;if(lt.key!=null)kt=Be.get(lt.key);else for(ze=Oe;ze<=xe;ze++)if(Gt[ze-Oe]===0&&Jn(lt,p[ze])){kt=ze;break}kt===void 0?ne(lt,F,z,!0):(Gt[kt-Oe]=te+1,kt>=xt?xt=kt:yt=!0,E(lt,p[kt],m,null,F,z,ie,Y,fe),it++)}const wn=yt?pd(Gt):ou;for(ze=wn.length-1,te=nt-1;te>=0;te--){const lt=Oe+te,kt=p[lt],V=p[lt+1],B=lt+1<Ee?V.el||nc(V):_;Gt[te]===0?E(null,kt,m,B,F,z,ie,Y,fe):yt&&(ze<0||te!==wn[ze]?N(kt,m,B,2):ze--)}}},N=(b,p,m,_,F=null)=>{const{el:z,type:ie,transition:Y,children:fe,shapeFlag:te}=b;if(te&6){N(b.component.subTree,p,m,_);return}if(te&128){b.suspense.move(p,m,_);return}if(te&64){ie.move(b,p,m,C);return}if(ie===de){u(z,p,m);for(let be=0;be<fe.length;be++)N(fe[be],p,m,_);u(b.anchor,p,m);return}if(ie===Cs){R(b,p,m);return}if(_!==2&&te&1&&Y)if(_===0)Y.beforeEnter(z),u(z,p,m),dt(()=>Y.enter(z),F);else{const{leave:be,delayLeave:xe,afterLeave:Ae}=Y,Oe=()=>{b.ctx.isUnmounted?s(z):u(z,p,m)},Be=()=>{z._isLeaving&&z[Yt](!0),be(z,()=>{Oe(),Ae&&Ae()})};xe?xe(z,Oe,Be):Be()}else u(z,p,m)},ne=(b,p,m,_=!1,F=!1)=>{const{type:z,props:ie,ref:Y,children:fe,dynamicChildren:te,shapeFlag:Ee,patchFlag:be,dirs:xe,cacheIndex:Ae}=b;if(be===-2&&(F=!1),Y!=null&&(bn(),Au(Y,null,m,b,!0),_n()),Ae!=null&&(p.renderCache[Ae]=void 0),Ee&256){p.ctx.deactivate(b);return}const Oe=Ee&1&&xe,Be=!lu(b);let ze;if(Be&&(ze=ie&&ie.onVnodeBeforeUnmount)&&Zt(ze,p,b),Ee&6)ye(b.component,m,_);else{if(Ee&128){b.suspense.unmount(m,_);return}Oe&&qn(b,null,p,"beforeUnmount"),Ee&64?b.type.remove(b,p,m,C,_):te&&!te.hasOnce&&(z!==de||be>0&&be&64)?w(te,p,m,!1,!0):(z===de&&be&384||!F&&Ee&16)&&w(fe,p,m),_&&Q(b)}(Be&&(ze=ie&&ie.onVnodeUnmounted)||Oe)&&dt(()=>{ze&&Zt(ze,p,b),Oe&&qn(b,null,p,"unmounted")},m)},Q=b=>{const{type:p,el:m,anchor:_,transition:F}=b;if(p===de){ge(m,_);return}if(p===Cs){D(b);return}const z=()=>{s(m),F&&!F.persisted&&F.afterLeave&&F.afterLeave()};if(b.shapeFlag&1&&F&&!F.persisted){const{leave:ie,delayLeave:Y}=F,fe=()=>ie(m,z);Y?Y(b.el,z,fe):fe()}else z()},ge=(b,p)=>{let m;for(;b!==p;)m=h(b),s(b),b=m;s(p)},ye=(b,p,m)=>{const{bum:_,scope:F,job:z,subTree:ie,um:Y,m:fe,a:te}=b;$i(fe),$i(te),_&&ks(_),F.stop(),z&&(z.flags|=8,ne(ie,b,p,m)),Y&&dt(Y,p),dt(()=>{b.isUnmounted=!0},p)},w=(b,p,m,_=!1,F=!1,z=0)=>{for(let ie=z;ie<b.length;ie++)ne(b[ie],p,m,_,F)},L=b=>{if(b.shapeFlag&6)return L(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const p=h(b.anchor||b.el),m=p&&p[Da];return m?h(m):p};let W=!1;const j=(b,p,m)=>{let _;b==null?p._vnode&&(ne(p._vnode,null,null,!0),_=p._vnode.component):E(p._vnode||null,b,p,null,null,null,m),p._vnode=b,W||(W=!0,ci(_),Ea(),W=!1)},C={p:E,um:ne,m:N,r:Q,mt:oe,mc:Z,pc:q,pbc:J,n:L,o:e};return{render:j,hydrate:void 0,createApp:Jf(j)}}function Eo({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 Vn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function dd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Br(e,t,n=!1){const u=e.children,s=t.children;if(De(u)&&De(s))for(let o=0;o<u.length;o++){const r=u[o];let i=s[o];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=s[o]=dn(s[o]),i.el=r.el),!n&&i.patchFlag!==-2&&Br(r,i)),i.type===oo&&(i.patchFlag===-1&&(i=s[o]=dn(i)),i.el=r.el),i.type===mt&&!i.el&&(i.el=r.el)}}function pd(e){const t=e.slice(),n=[0];let u,s,o,r,i;const l=e.length;for(u=0;u<l;u++){const a=e[u];if(a!==0){if(s=n[n.length-1],e[s]<a){t[u]=s,n.push(u);continue}for(o=0,r=n.length-1;o<r;)i=o+r>>1,e[n[i]]<a?o=i+1:r=i;a<e[n[o]]&&(o>0&&(t[u]=n[o-1]),n[o]=u)}}for(o=n.length,r=n[o-1];o-- >0;)n[o]=r,r=t[r];return n}function tc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:tc(t)}function $i(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function nc(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?nc(t.subTree):null}const uc=e=>e.__isSuspense;function hd(e,t){t&&t.pendingBranch?De(e)?t.effects.push(...e):t.effects.push(e):gf(e)}const de=Symbol.for("v-fgt"),oo=Symbol.for("v-txt"),mt=Symbol.for("v-cmt"),Cs=Symbol.for("v-stc"),Mu=[];let St=null;function y(e=!1){Mu.push(St=e?null:[])}function md(){Mu.pop(),St=Mu[Mu.length-1]||null}let Vu=1;function Ps(e,t=!1){Vu+=e,e<0&&St&&t&&(St.hasOnce=!0)}function sc(e){return e.dynamicChildren=Vu>0?St||ou:null,md(),Vu>0&&St&&St.push(e),e}function x(e,t,n,u,s,o){return sc(c(e,t,n,u,s,o,!0))}function _t(e,t,n,u,s){return sc(Le(e,t,n,u,s,!0))}function Uu(e){return e?e.__v_isVNode===!0:!1}function Jn(e,t){return e.type===t.type&&e.key===t.key}const oc=({key:e})=>e??null,$s=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Ye(e)||et(e)||Pe(e)?{i:ft,r:e,k:t,f:!!n}:e:null);function c(e,t=null,n=null,u=0,s=null,o=e===de?0:1,r=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oc(t),ref:t&&$s(t),scopeId:eo,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:o,patchFlag:u,dynamicProps:s,dynamicChildren:null,appContext:null,ctx:ft};return i?(Hr(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Ye(n)?8:16),Vu>0&&!r&&St&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&St.push(l),l}const Le=gd;function gd(e,t=null,n=null,u=0,s=null,o=!1){if((!e||e===Na)&&(e=mt),Uu(e)){const i=On(e,t,!0);return n&&Hr(i,n),Vu>0&&!o&&St&&(i.shapeFlag&6?St[St.indexOf(e)]=i:St.push(i)),i.patchFlag=-2,i}if(Cd(e)&&(e=e.__vccOpts),t){t=rc(t);let{class:i,style:l}=t;i&&!Ye(i)&&(t.class=le(i)),Ue(l)&&(Xs(l)&&!De(l)&&(l=ot({},l)),t.style=Se(l))}const r=Ye(e)?1:uc(e)?128:Aa(e)?64:Ue(e)?4:Pe(e)?2:0;return c(e,t,n,u,s,r,o,!0)}function rc(e){return e?Xs(e)||Za(e)?ot({},e):e:null}function On(e,t,n=!1,u=!1){const{props:s,ref:o,patchFlag:r,children:i,transition:l}=e,a=t?jr(s||{},t):s,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&oc(a),ref:t&&t.ref?n&&o?De(o)?o.concat($s(t)):[o,$s(t)]:$s(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==de?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&On(e.ssContent),ssFallback:e.ssFallback&&On(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&u&&Hu(f,l.clone(f)),f}function we(e=" ",t=0){return Le(oo,null,e,t)}function ic(e,t){const n=Le(Cs,null,e);return n.staticCount=t,n}function se(e="",t=!1){return t?(y(),_t(mt,null,e)):Le(mt,null,e)}function Xt(e){return e==null||typeof e=="boolean"?Le(mt):De(e)?Le(de,null,e.slice()):Uu(e)?dn(e):Le(oo,null,String(e))}function dn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:On(e)}function Hr(e,t){let n=0;const{shapeFlag:u}=e;if(t==null)t=null;else if(De(t))n=16;else if(typeof t=="object")if(u&65){const s=t.default;s&&(s._c&&(s._d=!1),Hr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!Za(t)?t._ctx=ft:s===3&&ft&&(ft.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Pe(t)?(t={default:t,_ctx:ft},n=32):(t=String(t),u&64?(n=16,t=[we(t)]):n=8);e.children=t,e.shapeFlag|=n}function jr(...e){const t={};for(let n=0;n<e.length;n++){const u=e[n];for(const s in u)if(s==="class")t.class!==u.class&&(t.class=le([t.class,u.class]));else if(s==="style")t.style=Se([t.style,u.style]);else if(Ws(s)){const o=t[s],r=u[s];r&&o!==r&&!(De(o)&&o.includes(r))&&(t[s]=o?[].concat(o,r):r)}else s!==""&&(t[s]=u[s])}return t}function Zt(e,t,n,u=null){Ut(e,t,7,[n,u])}const vd=Va();let bd=0;function _d(e,t,n){const u=e.type,s=(t?t.appContext:e.appContext)||vd,o={uid:bd++,vnode:e,type:u,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ra(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ya(u,s),emitsOptions:Ua(u,s),emit:null,emitted:null,propsDefaults:We,inheritAttrs:u.inheritAttrs,ctx:We,data:We,props:We,attrs:We,slots:We,refs:We,setupState:We,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 o.ctx={_:o},o.root=t?t.root:o,o.emit=Xf.bind(null,o),e.ce&&e.ce(o),o}let gt=null;const ls=()=>gt||ft;let Ls,sr;{const e=Js(),t=(n,u)=>{let s;return(s=e[n])||(s=e[n]=[]),s.push(u),o=>{s.length>1?s.forEach(r=>r(o)):s[0](o)}};Ls=t("__VUE_INSTANCE_SETTERS__",n=>gt=n),sr=t("__VUE_SSR_SETTERS__",n=>Wu=n)}const as=e=>{const t=gt;return Ls(e),e.scope.on(),()=>{e.scope.off(),Ls(t)}},Ei=()=>{gt&&gt.scope.off(),Ls(null)};function lc(e){return e.vnode.shapeFlag&4}let Wu=!1;function yd(e,t=!1,n=!1){t&&sr(t);const{props:u,children:s}=e.vnode,o=lc(e);sd(e,u,o,t),ld(e,s,n||t);const r=o?xd(e,t):void 0;return t&&sr(!1),r}function xd(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Hf);const{setup:u}=n;if(u){bn();const s=e.setupContext=u.length>1?cc(e):null,o=as(e),r=rs(u,e,0,[e.props,s]),i=Ql(r);if(_n(),o(),(i||e.sp)&&!lu(e)&&Oa(e),i){if(r.then(Ei,Ei),t)return r.then(l=>{Ti(e,l)}).catch(l=>{Qs(l,e,0)});e.asyncDep=r}else Ti(e,r)}else ac(e)}function Ti(e,t,n){Pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ue(t)&&(e.setupState=wa(t)),ac(e)}function ac(e,t,n){const u=e.type;e.render||(e.render=u.render||nn);{const s=as(e);bn();try{Vf(e)}finally{_n(),s()}}}const kd={get(e,t){return ht(e,"get",""),e[t]}};function cc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,kd),slots:e.slots,emit:e.emit,expose:t}}function ro(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wa(Ir(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Fu)return Fu[n](e)},has(t,n){return n in t||n in Fu}})):e.proxy}function wd(e,t=!0){return Pe(e)?e.displayName||e.name:e.name||t&&e.__name}function Cd(e){return Pe(e)&&"__vccOpts"in e}const O=(e,t)=>ff(e,t,Wu);function qr(e,t,n){try{Ps(-1);const u=arguments.length;return u===2?Ue(t)&&!De(t)?Uu(t)?Le(e,null,[t]):Le(e,t):Le(e,null,t):(u>3?n=Array.prototype.slice.call(arguments,2):u===3&&Uu(n)&&(n=[n]),Le(e,t,n))}finally{Ps(1)}}const $d="3.5.28";/**
15
- * @vue/runtime-dom v3.5.28
16
- * (c) 2018-present Yuxi (Evan) You and Vue contributors
17
- * @license MIT
18
- **/let or;const Si=typeof window<"u"&&window.trustedTypes;if(Si)try{or=Si.createPolicy("vue",{createHTML:e=>e})}catch{}const fc=or?e=>or.createHTML(e):e=>e,Ed="http://www.w3.org/2000/svg",Td="http://www.w3.org/1998/Math/MathML",fn=typeof document<"u"?document:null,Di=fn&&fn.createElement("template"),Sd={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,u)=>{const s=t==="svg"?fn.createElementNS(Ed,e):t==="mathml"?fn.createElementNS(Td,e):n?fn.createElement(e,{is:n}):fn.createElement(e);return e==="select"&&u&&u.multiple!=null&&s.setAttribute("multiple",u.multiple),s},createText:e=>fn.createTextNode(e),createComment:e=>fn.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>fn.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,u,s,o){const r=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Di.innerHTML=fc(u==="svg"?`<svg>${e}</svg>`:u==="mathml"?`<math>${e}</math>`:e);const i=Di.content;if(u==="svg"||u==="mathml"){const l=i.firstChild;for(;l.firstChild;)i.appendChild(l.firstChild);i.removeChild(l)}t.insertBefore(i,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Cn="transition",_u="animation",Ku=Symbol("_vtc"),dc={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Dd=ot({},Ma,dc),Ad=e=>(e.displayName="Transition",e.props=Dd,e),Qt=Ad((e,{slots:t})=>qr(Df,Fd(e),t)),Un=(e,t=[])=>{De(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ai=e=>e?De(e)?e.some(t=>t.length>1):e.length>1:!1;function Fd(e){const t={};for(const H in e)H in dc||(t[H]=e[H]);if(e.css===!1)return t;const{name:n="v",type:u,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:a=r,appearToClass:f=i,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=Md(s),E=v&&v[0],k=v&&v[1],{onBeforeEnter:T,onEnter:$,onEnterCancelled:R,onLeave:D,onLeaveCancelled:P,onBeforeAppear:S=T,onAppear:G=$,onAppearCancelled:Z=R}=t,K=(H,ae,oe,M)=>{H._enterCancelled=M,Wn(H,ae?f:i),Wn(H,ae?a:r),oe&&oe()},J=(H,ae)=>{H._isLeaving=!1,Wn(H,d),Wn(H,g),Wn(H,h),ae&&ae()},me=H=>(ae,oe)=>{const M=H?G:$,ue=()=>K(ae,H,oe);Un(M,[ae,ue]),Fi(()=>{Wn(ae,H?l:o),cn(ae,H?f:i),Ai(M)||Mi(ae,u,E,ue)})};return ot(t,{onBeforeEnter(H){Un(T,[H]),cn(H,o),cn(H,r)},onBeforeAppear(H){Un(S,[H]),cn(H,l),cn(H,a)},onEnter:me(!1),onAppear:me(!0),onLeave(H,ae){H._isLeaving=!0;const oe=()=>J(H,ae);cn(H,d),H._enterCancelled?(cn(H,h),Li(H)):(Li(H),cn(H,h)),Fi(()=>{H._isLeaving&&(Wn(H,d),cn(H,g),Ai(D)||Mi(H,u,k,oe))}),Un(D,[H,oe])},onEnterCancelled(H){K(H,!1,void 0,!0),Un(R,[H])},onAppearCancelled(H){K(H,!0,void 0,!0),Un(Z,[H])},onLeaveCancelled(H){J(H),Un(P,[H])}})}function Md(e){if(e==null)return null;if(Ue(e))return[To(e.enter),To(e.leave)];{const t=To(e);return[t,t]}}function To(e){return T0(e)}function cn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ku]||(e[Ku]=new Set)).add(t)}function Wn(e,t){t.split(/\s+/).forEach(u=>u&&e.classList.remove(u));const n=e[Ku];n&&(n.delete(t),n.size||(e[Ku]=void 0))}function Fi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Id=0;function Mi(e,t,n,u){const s=e._endId=++Id,o=()=>{s===e._endId&&u()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:i,propCount:l}=Pd(e,t);if(!r)return u();const a=r+"end";let f=0;const d=()=>{e.removeEventListener(a,h),o()},h=g=>{g.target===e&&++f>=l&&d()};setTimeout(()=>{f<l&&d()},i+1),e.addEventListener(a,h)}function Pd(e,t){const n=window.getComputedStyle(e),u=v=>(n[v]||"").split(", "),s=u(`${Cn}Delay`),o=u(`${Cn}Duration`),r=Ii(s,o),i=u(`${_u}Delay`),l=u(`${_u}Duration`),a=Ii(i,l);let f=null,d=0,h=0;t===Cn?r>0&&(f=Cn,d=r,h=o.length):t===_u?a>0&&(f=_u,d=a,h=l.length):(d=Math.max(r,a),f=d>0?r>a?Cn:_u:null,h=f?f===Cn?o.length:l.length:0);const g=f===Cn&&/\b(?:transform|all)(?:,|$)/.test(u(`${Cn}Property`).toString());return{type:f,timeout:d,propCount:h,hasTransform:g}}function Ii(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,u)=>Pi(n)+Pi(e[u])))}function Pi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Li(e){return(e?e.ownerDocument:document).body.offsetHeight}function Ld(e,t,n){const u=e[Ku];u&&(t=(t?[t,...u]:[...u]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Rs=Symbol("_vod"),pc=Symbol("_vsh"),Rd={name:"show",beforeMount(e,{value:t},{transition:n}){e[Rs]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):yu(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:u}){!t!=!n&&(u?t?(u.beforeEnter(e),yu(e,!0),u.enter(e)):u.leave(e,()=>{yu(e,!1)}):yu(e,t))},beforeUnmount(e,{value:t}){yu(e,t)}};function yu(e,t){e.style.display=t?e[Rs]:"none",e[pc]=!t}const Od=Symbol(""),zd=/(?:^|;)\s*display\s*:/;function Nd(e,t,n){const u=e.style,s=Ye(n);let o=!1;if(n&&!s){if(t)if(Ye(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&Es(u,i,"")}else for(const r in t)n[r]==null&&Es(u,r,"");for(const r in n)r==="display"&&(o=!0),Es(u,r,n[r])}else if(s){if(t!==n){const r=u[Od];r&&(n+=";"+r),u.cssText=n,o=zd.test(n)}}else t&&e.removeAttribute("style");Rs in e&&(e[Rs]=o?u.display:"",e[pc]&&(u.display="none"))}const Ri=/\s*!important$/;function Es(e,t,n){if(De(n))n.forEach(u=>Es(e,t,u));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const u=Bd(e,t);Ri.test(n)?e.setProperty(Bn(u),n.replace(Ri,""),"important"):e[u]=n}}const Oi=["Webkit","Moz","ms"],So={};function Bd(e,t){const n=So[t];if(n)return n;let u=Lt(t);if(u!=="filter"&&u in e)return So[t]=u;u=Zs(u);for(let s=0;s<Oi.length;s++){const o=Oi[s]+u;if(o in e)return So[t]=o}return t}const zi="http://www.w3.org/1999/xlink";function Ni(e,t,n,u,s,o=P0(t)){u&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(zi,t.slice(6,t.length)):e.setAttributeNS(zi,t,n):n==null||o&&!ua(n)?e.removeAttribute(t):e.setAttribute(t,o?"":qt(n)?String(n):n)}function Bi(e,t,n,u,s){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?fc(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const i=o==="OPTION"?e.getAttribute("value")||"":e.value,l=n==null?e.type==="checkbox"?"on":"":String(n);(i!==l||!("_value"in e))&&(e.value=l),n==null&&e.removeAttribute(t),e._value=n;return}let r=!1;if(n===""||n==null){const i=typeof e[t];i==="boolean"?n=ua(n):n==null&&i==="string"?(n="",r=!0):i==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(s||t)}function su(e,t,n,u){e.addEventListener(t,n,u)}function Hd(e,t,n,u){e.removeEventListener(t,n,u)}const Hi=Symbol("_vei");function jd(e,t,n,u,s=null){const o=e[Hi]||(e[Hi]={}),r=o[t];if(u&&r)r.value=u;else{const[i,l]=qd(t);if(u){const a=o[t]=Wd(u,s);su(e,i,a,l)}else r&&(Hd(e,i,r,l),o[t]=void 0)}}const ji=/(?:Once|Passive|Capture)$/;function qd(e){let t;if(ji.test(e)){t={};let u;for(;u=e.match(ji);)e=e.slice(0,e.length-u[0].length),t[u[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Bn(e.slice(2)),t]}let Do=0;const Vd=Promise.resolve(),Ud=()=>Do||(Vd.then(()=>Do=0),Do=Date.now());function Wd(e,t){const n=u=>{if(!u._vts)u._vts=Date.now();else if(u._vts<=n.attached)return;Ut(Kd(u,n.value),t,5,[u])};return n.value=e,n.attached=Ud(),n}function Kd(e,t){if(De(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(u=>s=>!s._stopped&&u&&u(s))}else return t}const qi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Gd=(e,t,n,u,s,o)=>{const r=s==="svg";t==="class"?Ld(e,u,r):t==="style"?Nd(e,n,u):Ws(t)?wr(t)||jd(e,t,n,u,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zd(e,t,u,r))?(Bi(e,t,u),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ni(e,t,u,r,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ye(u))?Bi(e,Lt(t),u,o,t):(t==="true-value"?e._trueValue=u:t==="false-value"&&(e._falseValue=u),Ni(e,t,u,r))};function Zd(e,t,n,u){if(u)return!!(t==="innerHTML"||t==="textContent"||t in e&&qi(t)&&Pe(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 s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return qi(t)&&Ye(n)?!1:t in e}const Vi=e=>{const t=e.props["onUpdate:modelValue"]||!1;return De(t)?n=>ks(t,n):t};function Jd(e){e.target.composing=!0}function Ui(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ao=Symbol("_assign");function Wi(e,t,n){return t&&(e=e.trim()),n&&(e=$r(e)),e}const Yd={created(e,{modifiers:{lazy:t,trim:n,number:u}},s){e[Ao]=Vi(s);const o=u||s.props&&s.props.type==="number";su(e,t?"change":"input",r=>{r.target.composing||e[Ao](Wi(e.value,n,o))}),(n||o)&&su(e,"change",()=>{e.value=Wi(e.value,n,o)}),t||(su(e,"compositionstart",Jd),su(e,"compositionend",Ui),su(e,"change",Ui))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:u,trim:s,number:o}},r){if(e[Ao]=Vi(r),e.composing)return;const i=(o||e.type==="number")&&!/^0\d/.test(e.value)?$r(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(u&&t===n||s&&e.value.trim()===l)||(e.value=l))}},Xd=["ctrl","shift","alt","meta"],Qd={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)=>Xd.some(n=>e[`${n}Key`]&&!t.includes(n))},wt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),u=t.join(".");return n[u]||(n[u]=((s,...o)=>{for(let r=0;r<t.length;r++){const i=Qd[t[r]];if(i&&i(s,t))return}return e(s,...o)}))},ep={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},hc=(e,t)=>{const n=e._withKeys||(e._withKeys={}),u=t.join(".");return n[u]||(n[u]=(s=>{if(!("key"in s))return;const o=Bn(s.key);if(t.some(r=>r===o||ep[r]===o))return e(s)}))},tp=ot({patchProp:Gd},Sd);let Ki;function np(){return Ki||(Ki=cd(tp))}const mc=((...e)=>{const t=np().createApp(...e),{mount:n}=t;return t.mount=u=>{const s=sp(u);if(!s)return;const o=t._component;!Pe(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const r=n(s,!1,up(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),r},t});function up(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function sp(e){return Ye(e)?document.querySelector(e):e}/*!
19
- * pinia v2.3.1
20
- * (c) 2025 Eduardo San Martin Morote
21
- * @license MIT
22
- */let gc;const io=e=>gc=e,vc=Symbol();function rr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Iu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Iu||(Iu={}));function op(){const e=ia(!0),t=e.run(()=>he({}));let n=[],u=[];const s=Ir({install(o){io(s),s._a=o,o.provide(vc,s),o.config.globalProperties.$pinia=s,u.forEach(r=>n.push(r)),u=[]},use(o){return this._a?n.push(o):u.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return s}const bc=()=>{};function Gi(e,t,n,u=bc){e.push(t);const s=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),u())};return!n&&la()&&R0(s),s}function tu(e,...t){e.slice().forEach(n=>{n(...t)})}const rp=e=>e(),Zi=Symbol(),Fo=Symbol();function ir(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,u)=>e.set(u,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const u=t[n],s=e[n];rr(s)&&rr(u)&&e.hasOwnProperty(n)&&!et(u)&&!gn(u)?e[n]=ir(s,u):e[n]=u}return e}const ip=Symbol();function lp(e){return!rr(e)||!e.hasOwnProperty(ip)}const{assign:En}=Object;function ap(e){return!!(et(e)&&e.effect)}function cp(e,t,n,u){const{state:s,actions:o,getters:r}=t,i=n.state.value[e];let l;function a(){i||(n.state.value[e]=s?s():{});const f=rf(n.state.value[e]);return En(f,o,Object.keys(r||{}).reduce((d,h)=>(d[h]=Ir(O(()=>{io(n);const g=n._s.get(e);return r[h].call(g,g)})),d),{}))}return l=_c(e,a,t,n,u,!0),l}function _c(e,t,n={},u,s,o){let r;const i=En({actions:{}},n),l={deep:!0};let a,f,d=[],h=[],g;const v=u.state.value[e];!o&&!v&&(u.state.value[e]={});let E;function k(Z){let K;a=f=!1,typeof Z=="function"?(Z(u.state.value[e]),K={type:Iu.patchFunction,storeId:e,events:g}):(ir(u.state.value[e],Z),K={type:Iu.patchObject,payload:Z,storeId:e,events:g});const J=E=Symbol();Je().then(()=>{E===J&&(a=!0)}),f=!0,tu(d,K,u.state.value[e])}const T=o?function(){const{state:K}=n,J=K?K():{};this.$patch(me=>{En(me,J)})}:bc;function $(){r.stop(),d=[],h=[],u._s.delete(e)}const R=(Z,K="")=>{if(Zi in Z)return Z[Fo]=K,Z;const J=function(){io(u);const me=Array.from(arguments),H=[],ae=[];function oe(ce){H.push(ce)}function M(ce){ae.push(ce)}tu(h,{args:me,name:J[Fo],store:P,after:oe,onError:M});let ue;try{ue=Z.apply(this&&this.$id===e?this:P,me)}catch(ce){throw tu(ae,ce),ce}return ue instanceof Promise?ue.then(ce=>(tu(H,ce),ce)).catch(ce=>(tu(ae,ce),Promise.reject(ce))):(tu(H,ue),ue)};return J[Zi]=!0,J[Fo]=K,J},D={_p:u,$id:e,$onAction:Gi.bind(null,h),$patch:k,$reset:T,$subscribe(Z,K={}){const J=Gi(d,Z,K.detached,()=>me()),me=r.run(()=>Ge(()=>u.state.value[e],H=>{(K.flush==="sync"?f:a)&&Z({storeId:e,type:Iu.direct,events:g},H)},En({},l,K)));return J},$dispose:$},P=os(D);u._s.set(e,P);const G=(u._a&&u._a.runWithContext||rp)(()=>u._e.run(()=>(r=ia()).run(()=>t({action:R}))));for(const Z in G){const K=G[Z];if(et(K)&&!ap(K)||gn(K))o||(v&&lp(K)&&(et(K)?K.value=v[Z]:ir(K,v[Z])),u.state.value[e][Z]=K);else if(typeof K=="function"){const J=R(K,Z);G[Z]=J,i.actions[Z]=K}}return En(P,G),En(He(P),G),Object.defineProperty(P,"$state",{get:()=>u.state.value[e],set:Z=>{k(K=>{En(K,Z)})}}),u._p.forEach(Z=>{En(P,r.run(()=>Z({store:P,app:u._a,pinia:u,options:i})))}),v&&o&&n.hydrate&&n.hydrate(P.$state,v),a=!0,f=!0,P}/*! #__NO_SIDE_EFFECTS__ */function fp(e,t,n){let u,s;const o=typeof t=="function";u=e,s=o?n:t;function r(i,l){const a=yf();return i=i||(a?zt(vc,null):null),i&&io(i),i=gc,i._s.has(u)||(o?_c(u,t,s,i):cp(u,s,i)),i._s.get(u)}return r.$id=u,r}const dp=["top","right","bottom","left"],Ji=["start","end"],Yi=dp.reduce((e,t)=>e.concat(t,t+"-"+Ji[0],t+"-"+Ji[1]),[]),Gu=Math.min,Zn=Math.max,pp={left:"right",right:"left",bottom:"top",top:"bottom"},hp={start:"end",end:"start"};function lr(e,t,n){return Zn(e,Gu(t,n))}function Qn(e,t){return typeof e=="function"?e(t):e}function on(e){return e.split("-")[0]}function Ht(e){return e.split("-")[1]}function yc(e){return e==="x"?"y":"x"}function Vr(e){return e==="y"?"height":"width"}const mp=new Set(["top","bottom"]);function mn(e){return mp.has(on(e))?"y":"x"}function Ur(e){return yc(mn(e))}function xc(e,t,n){n===void 0&&(n=!1);const u=Ht(e),s=Ur(e),o=Vr(s);let r=s==="x"?u===(n?"end":"start")?"right":"left":u==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=zs(r)),[r,zs(r)]}function gp(e){const t=zs(e);return[Os(e),t,Os(t)]}function Os(e){return e.replace(/start|end/g,t=>hp[t])}const Xi=["left","right"],Qi=["right","left"],vp=["top","bottom"],bp=["bottom","top"];function _p(e,t,n){switch(e){case"top":case"bottom":return n?t?Qi:Xi:t?Xi:Qi;case"left":case"right":return t?vp:bp;default:return[]}}function yp(e,t,n,u){const s=Ht(e);let o=_p(on(e),n==="start",u);return s&&(o=o.map(r=>r+"-"+s),t&&(o=o.concat(o.map(Os)))),o}function zs(e){return e.replace(/left|right|bottom|top/g,t=>pp[t])}function xp(e){return{top:0,right:0,bottom:0,left:0,...e}}function kc(e){return typeof e!="number"?xp(e):{top:e,right:e,bottom:e,left:e}}function Pu(e){const{x:t,y:n,width:u,height:s}=e;return{width:u,height:s,top:n,left:t,right:t+u,bottom:n+s,x:t,y:n}}function el(e,t,n){let{reference:u,floating:s}=e;const o=mn(t),r=Ur(t),i=Vr(r),l=on(t),a=o==="y",f=u.x+u.width/2-s.width/2,d=u.y+u.height/2-s.height/2,h=u[i]/2-s[i]/2;let g;switch(l){case"top":g={x:f,y:u.y-s.height};break;case"bottom":g={x:f,y:u.y+u.height};break;case"right":g={x:u.x+u.width,y:d};break;case"left":g={x:u.x-s.width,y:d};break;default:g={x:u.x,y:u.y}}switch(Ht(t)){case"start":g[r]-=h*(n&&a?-1:1);break;case"end":g[r]+=h*(n&&a?-1:1);break}return g}async function kp(e,t){var n;t===void 0&&(t={});const{x:u,y:s,platform:o,rects:r,elements:i,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:h=!1,padding:g=0}=Qn(t,e),v=kc(g),k=i[h?d==="floating"?"reference":"floating":d],T=Pu(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(k)))==null||n?k:k.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(i.floating)),boundary:a,rootBoundary:f,strategy:l})),$=d==="floating"?{x:u,y:s,width:r.floating.width,height:r.floating.height}:r.reference,R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(i.floating)),D=await(o.isElement==null?void 0:o.isElement(R))?await(o.getScale==null?void 0:o.getScale(R))||{x:1,y:1}:{x:1,y:1},P=Pu(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:$,offsetParent:R,strategy:l}):$);return{top:(T.top-P.top+v.top)/D.y,bottom:(P.bottom-T.bottom+v.bottom)/D.y,left:(T.left-P.left+v.left)/D.x,right:(P.right-T.right+v.right)/D.x}}const wp=async(e,t,n)=>{const{placement:u="bottom",strategy:s="absolute",middleware:o=[],platform:r}=n,i=o.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let a=await r.getElementRects({reference:e,floating:t,strategy:s}),{x:f,y:d}=el(a,u,l),h=u,g={},v=0;for(let k=0;k<i.length;k++){var E;const{name:T,fn:$}=i[k],{x:R,y:D,data:P,reset:S}=await $({x:f,y:d,initialPlacement:u,placement:h,strategy:s,middlewareData:g,rects:a,platform:{...r,detectOverflow:(E=r.detectOverflow)!=null?E:kp},elements:{reference:e,floating:t}});f=R??f,d=D??d,g={...g,[T]:{...g[T],...P}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(a=S.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:s}):S.rects),{x:f,y:d}=el(a,h,l)),k=-1)}return{x:f,y:d,placement:h,strategy:s,middlewareData:g}},Cp=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:u,placement:s,rects:o,platform:r,elements:i,middlewareData:l}=t,{element:a,padding:f=0}=Qn(e,t)||{};if(a==null)return{};const d=kc(f),h={x:n,y:u},g=Ur(s),v=Vr(g),E=await r.getDimensions(a),k=g==="y",T=k?"top":"left",$=k?"bottom":"right",R=k?"clientHeight":"clientWidth",D=o.reference[v]+o.reference[g]-h[g]-o.floating[v],P=h[g]-o.reference[g],S=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let G=S?S[R]:0;(!G||!await(r.isElement==null?void 0:r.isElement(S)))&&(G=i.floating[R]||o.floating[v]);const Z=D/2-P/2,K=G/2-E[v]/2-1,J=Gu(d[T],K),me=Gu(d[$],K),H=J,ae=G-E[v]-me,oe=G/2-E[v]/2+Z,M=lr(H,oe,ae),ue=!l.arrow&&Ht(s)!=null&&oe!==M&&o.reference[v]/2-(oe<H?J:me)-E[v]/2<0,ce=ue?oe<H?oe-H:oe-ae:0;return{[g]:h[g]+ce,data:{[g]:M,centerOffset:oe-M-ce,...ue&&{alignmentOffset:ce}},reset:ue}}});function $p(e,t,n){return(e?[...n.filter(s=>Ht(s)===e),...n.filter(s=>Ht(s)!==e)]:n.filter(s=>on(s)===s)).filter(s=>e?Ht(s)===e||(t?Os(s)!==s:!1):!0)}const Ep=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,u,s;const{rects:o,middlewareData:r,placement:i,platform:l,elements:a}=t,{crossAxis:f=!1,alignment:d,allowedPlacements:h=Yi,autoAlignment:g=!0,...v}=Qn(e,t),E=d!==void 0||h===Yi?$p(d||null,g,h):h,k=await l.detectOverflow(t,v),T=((n=r.autoPlacement)==null?void 0:n.index)||0,$=E[T];if($==null)return{};const R=xc($,o,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(i!==$)return{reset:{placement:E[0]}};const D=[k[on($)],k[R[0]],k[R[1]]],P=[...((u=r.autoPlacement)==null?void 0:u.overflows)||[],{placement:$,overflows:D}],S=E[T+1];if(S)return{data:{index:T+1,overflows:P},reset:{placement:S}};const G=P.map(J=>{const me=Ht(J.placement);return[J.placement,me&&f?J.overflows.slice(0,2).reduce((H,ae)=>H+ae,0):J.overflows[0],J.overflows]}).sort((J,me)=>J[1]-me[1]),K=((s=G.filter(J=>J[2].slice(0,Ht(J[0])?2:3).every(me=>me<=0))[0])==null?void 0:s[0])||G[0][0];return K!==i?{data:{index:T+1,overflows:P},reset:{placement:K}}:{}}}},Tp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,u;const{placement:s,middlewareData:o,rects:r,initialPlacement:i,platform:l,elements:a}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:E=!0,...k}=Qn(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const T=on(s),$=mn(i),R=on(i)===i,D=await(l.isRTL==null?void 0:l.isRTL(a.floating)),P=h||(R||!E?[zs(i)]:gp(i)),S=v!=="none";!h&&S&&P.push(...yp(i,E,v,D));const G=[i,...P],Z=await l.detectOverflow(t,k),K=[];let J=((u=o.flip)==null?void 0:u.overflows)||[];if(f&&K.push(Z[T]),d){const oe=xc(s,r,D);K.push(Z[oe[0]],Z[oe[1]])}if(J=[...J,{placement:s,overflows:K}],!K.every(oe=>oe<=0)){var me,H;const oe=(((me=o.flip)==null?void 0:me.index)||0)+1,M=G[oe];if(M&&(!(d==="alignment"?$!==mn(M):!1)||J.every(q=>mn(q.placement)===$?q.overflows[0]>0:!0)))return{data:{index:oe,overflows:J},reset:{placement:M}};let ue=(H=J.filter(ce=>ce.overflows[0]<=0).sort((ce,q)=>ce.overflows[1]-q.overflows[1])[0])==null?void 0:H.placement;if(!ue)switch(g){case"bestFit":{var ae;const ce=(ae=J.filter(q=>{if(S){const re=mn(q.placement);return re===$||re==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(re=>re>0).reduce((re,_e)=>re+_e,0)]).sort((q,re)=>q[1]-re[1])[0])==null?void 0:ae[0];ce&&(ue=ce);break}case"initialPlacement":ue=i;break}if(s!==ue)return{reset:{placement:ue}}}return{}}}},Sp=new Set(["left","top"]);async function Dp(e,t){const{placement:n,platform:u,elements:s}=e,o=await(u.isRTL==null?void 0:u.isRTL(s.floating)),r=on(n),i=Ht(n),l=mn(n)==="y",a=Sp.has(r)?-1:1,f=o&&l?-1:1,d=Qn(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*f,y:h*a}:{x:h*a,y:g*f}}const Ap=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,u;const{x:s,y:o,placement:r,middlewareData:i}=t,l=await Dp(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(u=i.arrow)!=null&&u.alignmentOffset?{}:{x:s+l.x,y:o+l.y,data:{...l,placement:r}}}}},Fp=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:u,placement:s,platform:o}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:T=>{let{x:$,y:R}=T;return{x:$,y:R}}},...a}=Qn(e,t),f={x:n,y:u},d=await o.detectOverflow(t,a),h=mn(on(s)),g=yc(h);let v=f[g],E=f[h];if(r){const T=g==="y"?"top":"left",$=g==="y"?"bottom":"right",R=v+d[T],D=v-d[$];v=lr(R,v,D)}if(i){const T=h==="y"?"top":"left",$=h==="y"?"bottom":"right",R=E+d[T],D=E-d[$];E=lr(R,E,D)}const k=l.fn({...t,[g]:v,[h]:E});return{...k,data:{x:k.x-n,y:k.y-u,enabled:{[g]:r,[h]:i}}}}}},Mp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,u;const{placement:s,rects:o,platform:r,elements:i}=t,{apply:l=()=>{},...a}=Qn(e,t),f=await r.detectOverflow(t,a),d=on(s),h=Ht(s),g=mn(s)==="y",{width:v,height:E}=o.floating;let k,T;d==="top"||d==="bottom"?(k=d,T=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(T=d,k=h==="end"?"top":"bottom");const $=E-f.top-f.bottom,R=v-f.left-f.right,D=Gu(E-f[k],$),P=Gu(v-f[T],R),S=!t.middlewareData.shift;let G=D,Z=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(Z=R),(u=t.middlewareData.shift)!=null&&u.enabled.y&&(G=$),S&&!h){const J=Zn(f.left,0),me=Zn(f.right,0),H=Zn(f.top,0),ae=Zn(f.bottom,0);g?Z=v-2*(J!==0||me!==0?J+me:Zn(f.left,f.right)):G=E-2*(H!==0||ae!==0?H+ae:Zn(f.top,f.bottom))}await l({...t,availableWidth:Z,availableHeight:G});const K=await r.getDimensions(i.floating);return v!==K.width||E!==K.height?{reset:{rects:!0}}:{}}}};function Pt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function un(e){return Pt(e).getComputedStyle(e)}const tl=Math.min,Lu=Math.max,Ns=Math.round;function wc(e){const t=un(e);let n=parseFloat(t.width),u=parseFloat(t.height);const s=e.offsetWidth,o=e.offsetHeight,r=Ns(n)!==s||Ns(u)!==o;return r&&(n=s,u=o),{width:n,height:u,fallback:r}}function zn(e){return $c(e)?(e.nodeName||"").toLowerCase():""}let vs;function Cc(){if(vs)return vs;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(vs=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),vs):navigator.userAgent}function sn(e){return e instanceof Pt(e).HTMLElement}function Ln(e){return e instanceof Pt(e).Element}function $c(e){return e instanceof Pt(e).Node}function nl(e){return typeof ShadowRoot>"u"?!1:e instanceof Pt(e).ShadowRoot||e instanceof ShadowRoot}function lo(e){const{overflow:t,overflowX:n,overflowY:u,display:s}=un(e);return/auto|scroll|overlay|hidden|clip/.test(t+u+n)&&!["inline","contents"].includes(s)}function Ip(e){return["table","td","th"].includes(zn(e))}function ar(e){const t=/firefox/i.test(Cc()),n=un(e),u=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!u&&u!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((s=>n.willChange.includes(s)))||["paint","layout","strict","content"].some((s=>{const o=n.contain;return o!=null&&o.includes(s)}))}function Ec(){return!/^((?!chrome|android).)*safari/i.test(Cc())}function Wr(e){return["html","body","#document"].includes(zn(e))}function Tc(e){return Ln(e)?e:e.contextElement}const Sc={x:1,y:1};function au(e){const t=Tc(e);if(!sn(t))return Sc;const n=t.getBoundingClientRect(),{width:u,height:s,fallback:o}=wc(t);let r=(o?Ns(n.width):n.width)/u,i=(o?Ns(n.height):n.height)/s;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}function Zu(e,t,n,u){var s,o;t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Tc(e);let l=Sc;t&&(u?Ln(u)&&(l=au(u)):l=au(e));const a=i?Pt(i):window,f=!Ec()&&n;let d=(r.left+(f&&((s=a.visualViewport)==null?void 0:s.offsetLeft)||0))/l.x,h=(r.top+(f&&((o=a.visualViewport)==null?void 0:o.offsetTop)||0))/l.y,g=r.width/l.x,v=r.height/l.y;if(i){const E=Pt(i),k=u&&Ln(u)?Pt(u):u;let T=E.frameElement;for(;T&&u&&k!==E;){const $=au(T),R=T.getBoundingClientRect(),D=getComputedStyle(T);R.x+=(T.clientLeft+parseFloat(D.paddingLeft))*$.x,R.y+=(T.clientTop+parseFloat(D.paddingTop))*$.y,d*=$.x,h*=$.y,g*=$.x,v*=$.y,d+=R.x,h+=R.y,T=Pt(T).frameElement}}return{width:g,height:v,top:h,right:d+g,bottom:h+v,left:d,x:d,y:h}}function Rn(e){return(($c(e)?e.ownerDocument:e.document)||window.document).documentElement}function ao(e){return Ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Dc(e){return Zu(Rn(e)).left+ao(e).scrollLeft}function Ju(e){if(zn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||nl(e)&&e.host||Rn(e);return nl(t)?t.host:t}function Ac(e){const t=Ju(e);return Wr(t)?t.ownerDocument.body:sn(t)&&lo(t)?t:Ac(t)}function Bs(e,t){var n;t===void 0&&(t=[]);const u=Ac(e),s=u===((n=e.ownerDocument)==null?void 0:n.body),o=Pt(u);return s?t.concat(o,o.visualViewport||[],lo(u)?u:[]):t.concat(u,Bs(u))}function ul(e,t,n){return t==="viewport"?Pu((function(u,s){const o=Pt(u),r=Rn(u),i=o.visualViewport;let l=r.clientWidth,a=r.clientHeight,f=0,d=0;if(i){l=i.width,a=i.height;const h=Ec();(h||!h&&s==="fixed")&&(f=i.offsetLeft,d=i.offsetTop)}return{width:l,height:a,x:f,y:d}})(e,n)):Ln(t)?Pu((function(u,s){const o=Zu(u,!0,s==="fixed"),r=o.top+u.clientTop,i=o.left+u.clientLeft,l=sn(u)?au(u):{x:1,y:1};return{width:u.clientWidth*l.x,height:u.clientHeight*l.y,x:i*l.x,y:r*l.y}})(t,n)):Pu((function(u){const s=Rn(u),o=ao(u),r=u.ownerDocument.body,i=Lu(s.scrollWidth,s.clientWidth,r.scrollWidth,r.clientWidth),l=Lu(s.scrollHeight,s.clientHeight,r.scrollHeight,r.clientHeight);let a=-o.scrollLeft+Dc(u);const f=-o.scrollTop;return un(r).direction==="rtl"&&(a+=Lu(s.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:f}})(Rn(e)))}function sl(e){return sn(e)&&un(e).position!=="fixed"?e.offsetParent:null}function ol(e){const t=Pt(e);let n=sl(e);for(;n&&Ip(n)&&un(n).position==="static";)n=sl(n);return n&&(zn(n)==="html"||zn(n)==="body"&&un(n).position==="static"&&!ar(n))?t:n||(function(u){let s=Ju(u);for(;sn(s)&&!Wr(s);){if(ar(s))return s;s=Ju(s)}return null})(e)||t}function Pp(e,t,n){const u=sn(t),s=Rn(t),o=Zu(e,!0,n==="fixed",t);let r={scrollLeft:0,scrollTop:0};const i={x:0,y:0};if(u||!u&&n!=="fixed")if((zn(t)!=="body"||lo(s))&&(r=ao(t)),sn(t)){const l=Zu(t,!0);i.x=l.x+t.clientLeft,i.y=l.y+t.clientTop}else s&&(i.x=Dc(s));return{x:o.left+r.scrollLeft-i.x,y:o.top+r.scrollTop-i.y,width:o.width,height:o.height}}const Lp={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:u,strategy:s}=e;const o=n==="clippingAncestors"?(function(a,f){const d=f.get(a);if(d)return d;let h=Bs(a).filter((k=>Ln(k)&&zn(k)!=="body")),g=null;const v=un(a).position==="fixed";let E=v?Ju(a):a;for(;Ln(E)&&!Wr(E);){const k=un(E),T=ar(E);(v?T||g:T||k.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=k:h=h.filter(($=>$!==E)),E=Ju(E)}return f.set(a,h),h})(t,this._c):[].concat(n),r=[...o,u],i=r[0],l=r.reduce(((a,f)=>{const d=ul(t,f,s);return a.top=Lu(d.top,a.top),a.right=tl(d.right,a.right),a.bottom=tl(d.bottom,a.bottom),a.left=Lu(d.left,a.left),a}),ul(t,i,s));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:u}=e;const s=sn(n),o=Rn(n);if(n===o)return t;let r={scrollLeft:0,scrollTop:0},i={x:1,y:1};const l={x:0,y:0};if((s||!s&&u!=="fixed")&&((zn(n)!=="body"||lo(o))&&(r=ao(n)),sn(n))){const a=Zu(n);i=au(n),l.x=a.x+n.clientLeft,l.y=a.y+n.clientTop}return{width:t.width*i.x,height:t.height*i.y,x:t.x*i.x-r.scrollLeft*i.x+l.x,y:t.y*i.y-r.scrollTop*i.y+l.y}},isElement:Ln,getDimensions:function(e){return sn(e)?wc(e):e.getBoundingClientRect()},getOffsetParent:ol,getDocumentElement:Rn,getScale:au,async getElementRects(e){let{reference:t,floating:n,strategy:u}=e;const s=this.getOffsetParent||ol,o=this.getDimensions;return{reference:Pp(t,await s(n),u),floating:{x:0,y:0,...await o(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>un(e).direction==="rtl"},Rp=(e,t,n)=>{const u=new Map,s={platform:Lp,...n},o={...s.platform,_c:u};return wp(e,t,{...s,platform:o})};function Fc(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Fc(e[n],t[n]):e[n]=t[n])}const jt={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Yu(e,t){let n=jt.themes[e]||{},u;do u=n[t],typeof u>"u"?n.$extend?n=jt.themes[n.$extend]||{}:(n=null,u=jt[t]):n=null;while(n);return u}function Op(e){const t=[e];let n=jt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=jt.themes[n.$extend]||{}):n=null;while(n);return t.map(u=>`v-popper--theme-${u}`)}function rl(e){const t=[e];let n=jt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=jt.themes[n.$extend]||{}):n=null;while(n);return t}let du=!1;if(typeof window<"u"){du=!1;try{const e=Object.defineProperty({},"passive",{get(){du=!0}});window.addEventListener("test",null,e)}catch{}}let Mc=!1;typeof window<"u"&&typeof navigator<"u"&&(Mc=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Ic=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),il={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},ll={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function al(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Mo(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Nt=[];let Kn=null;const cl={};function fl(e){let t=cl[e];return t||(t=cl[e]=[]),t}let cr=function(){};typeof window<"u"&&(cr=window.Element);function Ne(e){return function(t){return Yu(t.theme,e)}}const Io="__floating-vue__popper",Pc=()=>tt({name:"VPopper",provide(){return{[Io]:{parentPopper:this}}},inject:{[Io]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Ne("disabled")},positioningDisabled:{type:Boolean,default:Ne("positioningDisabled")},placement:{type:String,default:Ne("placement"),validator:e=>Ic.includes(e)},delay:{type:[String,Number,Object],default:Ne("delay")},distance:{type:[Number,String],default:Ne("distance")},skidding:{type:[Number,String],default:Ne("skidding")},triggers:{type:Array,default:Ne("triggers")},showTriggers:{type:[Array,Function],default:Ne("showTriggers")},hideTriggers:{type:[Array,Function],default:Ne("hideTriggers")},popperTriggers:{type:Array,default:Ne("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Ne("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Ne("popperHideTriggers")},container:{type:[String,Object,cr,Boolean],default:Ne("container")},boundary:{type:[String,cr],default:Ne("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Ne("strategy")},autoHide:{type:[Boolean,Function],default:Ne("autoHide")},handleResize:{type:Boolean,default:Ne("handleResize")},instantMove:{type:Boolean,default:Ne("instantMove")},eagerMount:{type:Boolean,default:Ne("eagerMount")},popperClass:{type:[String,Array,Object],default:Ne("popperClass")},computeTransformOrigin:{type:Boolean,default:Ne("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Ne("autoMinSize")},autoSize:{type:[Boolean,String],default:Ne("autoSize")},autoMaxSize:{type:Boolean,default:Ne("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Ne("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Ne("preventOverflow")},overflowPadding:{type:[Number,String],default:Ne("overflowPadding")},arrowPadding:{type:[Number,String],default:Ne("arrowPadding")},arrowOverflow:{type:Boolean,default:Ne("arrowOverflow")},flip:{type:Boolean,default:Ne("flip")},shift:{type:Boolean,default:Ne("shift")},shiftCrossAxis:{type:Boolean,default:Ne("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Ne("noAutoFocus")},disposeTimeout:{type:Number,default:Ne("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Io])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var u,s;(u=this.parentPopper)!=null&&u.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(Ap({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Ep({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Fp({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Tp({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Cp({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:u,rects:s,middlewareData:o})=>{let r;const{centerOffset:i}=o.arrow;return u.startsWith("top")||u.startsWith("bottom")?r=Math.abs(i)>s.reference.width/2:r=Math.abs(i)>s.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const u=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:o,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let l,a;return o.startsWith("top")||o.startsWith("bottom")?l=s.reference.width:a=s.reference.height,this.$_innerNode.style[u==="min"?"minWidth":u==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[u==="min"?"minHeight":u==="max"?"maxHeight":"height"]=a!=null?`${a}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(Mp({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:u,availableHeight:s})=>{this.$_innerNode.style.maxWidth=u!=null?`${u}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const n=await Rp(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Kn&&this.instantMove&&Kn.instantMove&&Kn!==this.parentPopper){Kn.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Kn=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Mo(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Bs(this.$_referenceNode),...Bs(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),u=n.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(u.left+n.offsetLeft),o=t.y+t.height/2-(u.top+n.offsetTop);this.result.transformOrigin=`${s}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<Nt.length;n++)t=Nt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Nt.push(this),document.body.classList.add("v-popper--some-open");for(const t of rl(this.theme))fl(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Mo(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,al(Nt,this),Nt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of rl(this.theme)){const u=fl(n);al(u,this),u.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Kn===this&&(Kn=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Mo(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,il,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],il,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,ll,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],ll,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(u=>u.addEventListener(t,n,du?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,u,s){let o=n;u!=null&&(o=typeof u=="function"?u(o):u),o.forEach(r=>{const i=t[r];i&&this.$_registerEventListeners(e,i,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:u,eventType:s,handler:o}=n;!e||e===s?u.forEach(r=>r.removeEventListener(s,o)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const u=n.getAttribute(e);u&&(n.removeAttribute(e),n.setAttribute(t,u))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const u=e[n];u==null?t.removeAttribute(n):t.setAttribute(n,u)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(Ru>=e.left&&Ru<=e.right&&Ou>=e.top&&Ou<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=Ru-Tn,u=Ou-Sn,s=t.left+t.width/2-Tn+(t.top+t.height/2)-Sn+t.width+t.height,o=Tn+n*s,r=Sn+u*s;return bs(Tn,Sn,o,r,t.left,t.top,t.left,t.bottom)||bs(Tn,Sn,o,r,t.left,t.top,t.right,t.top)||bs(Tn,Sn,o,r,t.right,t.top,t.right,t.bottom)||bs(Tn,Sn,o,r,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(Mc){const e=du?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>dl(t,!0),e),document.addEventListener("touchend",t=>pl(t,!0),e)}else window.addEventListener("mousedown",e=>dl(e,!1),!0),window.addEventListener("click",e=>pl(e,!1),!0);window.addEventListener("resize",Np)}function dl(e,t){if(jt.autoHideOnMousedown)Lc(e,t);else for(let n=0;n<Nt.length;n++){const u=Nt[n];try{u.mouseDownContains=u.popperNode().contains(e.target)}catch{}}}function pl(e,t){jt.autoHideOnMousedown||Lc(e,t)}function Lc(e,t){const n={};for(let u=Nt.length-1;u>=0;u--){const s=Nt[u];try{const o=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!n[s.randomId]&&hl(s,o,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let i=s.parentPopper;for(;i;)n[i.randomId]=!0,i=i.parentPopper;return}let r=s.parentPopper;for(;r&&hl(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function hl(e,t,n){return n.closeAllPopover||n.closePopover&&t||zp(e,n)&&!t}function zp(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Np(){for(let e=0;e<Nt.length;e++)Nt[e].$_computePosition()}let Tn=0,Sn=0,Ru=0,Ou=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Tn=Ru,Sn=Ou,Ru=e.clientX,Ou=e.clientY},du?{passive:!0}:void 0);function bs(e,t,n,u,s,o,r,i){const l=((r-s)*(t-o)-(i-o)*(e-s))/((i-o)*(n-e)-(r-s)*(u-t)),a=((n-e)*(t-o)-(u-t)*(e-s))/((i-o)*(n-e)-(r-s)*(u-t));return l>=0&&l<=1&&a>=0&&a<=1}const Bp={extends:Pc()},co=(e,t)=>{const n=e.__vccOpts||e;for(const[u,s]of t)n[u]=s;return n};function Hp(e,t,n,u,s,o){return y(),x("div",{ref:"reference",class:le(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[qu(e.$slots,"default",M0(rc(e.slotData)))],2)}const jp=co(Bp,[["render",Hp]]);function qp(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var u=e.indexOf("rv:");return parseInt(e.substring(u+3,e.indexOf(".",u)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Ts;function fr(){fr.init||(fr.init=!0,Ts=qp()!==-1)}var fo={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){fr(),Je(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Ts&&this.$el.appendChild(e),e.data="about:blank",Ts||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Ts&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Vp=_f();vf("data-v-b329ee4c");const Up={class:"resize-observer",tabindex:"-1"};bf();const Wp=Vp((e,t,n,u,s,o)=>(y(),_t("div",Up)));fo.render=Wp;fo.__scopeId="data-v-b329ee4c";fo.__file="src/components/ResizeObserver.vue";const Rc=(e="theme")=>({computed:{themeClass(){return Op(this[e])}}}),Kp=tt({name:"VPopperContent",components:{ResizeObserver:fo},mixins:[Rc()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Gp=["id","aria-hidden","tabindex","data-popper-placement"],Zp={ref:"inner",class:"v-popper__inner"},Jp=c("div",{class:"v-popper__arrow-outer"},null,-1),Yp=c("div",{class:"v-popper__arrow-inner"},null,-1),Xp=[Jp,Yp];function Qp(e,t,n,u,s,o){const r=ju("ResizeObserver");return y(),x("div",{id:e.popperId,ref:"popover",class:le(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:Se(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=hc(i=>e.autoHide&&e.$emit("hide"),["esc"]))},[c("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=i=>e.autoHide&&e.$emit("hide"))}),c("div",{class:"v-popper__wrapper",style:Se(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[c("div",Zp,[e.mounted?(y(),x(de,{key:0},[c("div",null,[qu(e.$slots,"default")]),e.handleResize?(y(),_t(r,{key:0,onNotify:t[1]||(t[1]=i=>e.$emit("resize",i))})):se("",!0)],64)):se("",!0)],512),c("div",{ref:"arrow",class:"v-popper__arrow-container",style:Se(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Xp,4)],4)],46,Gp)}const Oc=co(Kp,[["render",Qp]]),zc={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let dr=function(){};typeof window<"u"&&(dr=window.Element);const eh=tt({name:"VPopperWrapper",components:{Popper:jp,PopperContent:Oc},mixins:[zc,Rc("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,dr,Boolean],default:void 0},boundary:{type:[String,dr],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function th(e,t,n,u,s,o){const r=ju("PopperContent"),i=ju("Popper");return y(),_t(i,jr({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:st(({popperId:l,isShown:a,shouldMountContent:f,skipTransition:d,autoHide:h,show:g,hide:v,handleResize:E,onResize:k,classes:T,result:$})=>[qu(e.$slots,"default",{shown:a,show:g,hide:v}),Le(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:a,mounted:f,"skip-transition":d,"auto-hide":h,"handle-resize":E,classes:T,result:$,onHide:v,onResize:k},{default:st(()=>[qu(e.$slots,"popper",{shown:a,hide:v})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Kr=co(eh,[["render",th]]),nh={...Kr,name:"VDropdown",vPopperTheme:"dropdown"},uh={...Kr,name:"VMenu",vPopperTheme:"menu"},sh={...Kr,name:"VTooltip",vPopperTheme:"tooltip"},oh=tt({name:"VTooltipDirective",components:{Popper:Pc(),PopperContent:Oc},mixins:[zc],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Yu(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Yu(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(u=>this.onResult(t,u)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),rh=["innerHTML"],ih=["textContent"];function lh(e,t,n,u,s,o){const r=ju("PopperContent"),i=ju("Popper");return y(),_t(i,jr({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:st(({popperId:l,isShown:a,shouldMountContent:f,skipTransition:d,autoHide:h,hide:g,handleResize:v,onResize:E,classes:k,result:T})=>[Le(r,{ref:"popperContent",class:le({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:a,mounted:f,"skip-transition":d,"auto-hide":h,"handle-resize":v,classes:k,result:T,onHide:g,onResize:E},{default:st(()=>[e.html?(y(),x("div",{key:0,innerHTML:e.finalContent},null,8,rh)):(y(),x("div",{key:1,textContent:A(e.finalContent)},null,8,ih))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const ah=co(oh,[["render",lh]]),Nc="v-popper--has-tooltip";function ch(e,t){let n=e.placement;if(!n&&t)for(const u of Ic)t[u]&&(n=u);return n||(n=Yu(e.theme||"tooltip","placement")),n}function Bc(e,t,n){let u;const s=typeof t;return s==="string"?u={content:t}:t&&s==="object"?u=t:u={content:!1},u.placement=ch(u,n),u.targetNodes=()=>[e],u.referenceNode=()=>e,u}let Po,Xu,fh=0;function dh(){if(Po)return;Xu=he([]),Po=mc({name:"VTooltipDirectiveApp",setup(){return{directives:Xu}},render(){return this.directives.map(t=>qr(ah,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Po.mount(e)}function ph(e,t,n){dh();const u=he(Bc(e,t,n)),s=he(!1),o={id:fh++,options:u,shown:s};return Xu.value.push(o),e.classList&&e.classList.add(Nc),e.$_popper={options:u,item:o,show(){s.value=!0},hide(){s.value=!1}}}function Hc(e){if(e.$_popper){const t=Xu.value.indexOf(e.$_popper.item);t!==-1&&Xu.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Nc)}function ml(e,{value:t,modifiers:n}){const u=Bc(e,t,n);if(!u.content||Yu(u.theme||"tooltip","disabled"))Hc(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=u):s=ph(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const hh={beforeMount:ml,updated:ml,beforeUnmount(e){Hc(e)}};function gl(e){e.addEventListener("mousedown",Hs),e.addEventListener("click",Hs),e.addEventListener("touchstart",jc,du?{passive:!0}:!1)}function vl(e){e.removeEventListener("mousedown",Hs),e.removeEventListener("click",Hs),e.removeEventListener("touchstart",jc),e.removeEventListener("touchend",qc),e.removeEventListener("touchcancel",Vc)}function Hs(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function jc(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",qc),t.addEventListener("touchcancel",Vc)}}function qc(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],u=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-u.screenY)<20&&Math.abs(n.screenX-u.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Vc(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const mh={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&gl(e)},updated(e,{value:t,oldValue:n,modifiers:u}){e.$_closePopoverModifiers=u,t!==n&&(typeof t>"u"||t?gl(e):vl(e))},beforeUnmount(e){vl(e)}};function gh(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Fc(jt,t),e.directive("tooltip",hh),e.directive("close-popper",mh),e.component("VTooltip",sh),e.component("VDropdown",nh),e.component("VMenu",uh))}const vh={version:"5.2.2",install:gh,options:jt},Wt="";async function bh(){const e=await fetch(`${Wt}/api/requests?summary=true`);if(!e.ok)throw new Error(`GET /api/requests?summary=true failed: ${e.status}`);return e.json()}async function _h(e){const t=await fetch(`${Wt}/api/conversations/${encodeURIComponent(e)}`);if(!t.ok)throw new Error(`GET /api/conversations/${e} failed: ${t.status}`);return t.json()}async function yh(e){const t=await fetch(`${Wt}/api/entries/${e}/detail`);if(t.status===404)return null;if(!t.ok)throw new Error(`GET /api/entries/${e}/detail failed: ${t.status}`);return(await t.json()).contextInfo??null}async function xh(e){const t=await fetch(`${Wt}/api/conversations/${encodeURIComponent(e)}`,{method:"DELETE"});if(!t.ok)throw new Error(`DELETE conversation failed: ${t.status}`)}async function kh(){const e=await fetch(`${Wt}/api/reset`,{method:"POST"});if(!e.ok)throw new Error(`POST /api/reset failed: ${e.status}`)}function wh(e,t,n){const u=new URLSearchParams;t&&u.set("conversation",t);const s=u.toString();return`${Wt}/api/export/${e}${s?`?${s}`:""}`}async function Ch(){const e=await fetch(`${Wt}/api/tags`);if(!e.ok)throw new Error(`GET /api/tags failed: ${e.status}`);return e.json()}async function $h(e,t){const n=await fetch(`${Wt}/api/sessions/${encodeURIComponent(e)}/tags`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({tags:t})});if(!n.ok)throw new Error(`PATCH tags failed: ${n.status}`);return(await n.json()).tags}async function Eh(e,t){const n=await fetch(`${Wt}/api/sessions/${encodeURIComponent(e)}/tags`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({tag:t})});if(!n.ok)throw new Error(`POST tag failed: ${n.status}`);return(await n.json()).tags}async function Th(e,t){const n=await fetch(`${Wt}/api/sessions/${encodeURIComponent(e)}/tags/${encodeURIComponent(t)}`,{method:"DELETE"});if(!n.ok)throw new Error(`DELETE tag failed: ${n.status}`);return(await n.json()).tags}async function Sh(e,t){const n=await fetch(`${Wt}/api/sessions/${encodeURIComponent(e)}/prunes`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({messageId:t})});if(!n.ok)throw new Error(`POST prune failed: ${n.status}`);return(await n.json()).prunedMessages}const ut={system_prompt:{label:"System prompt",color:"#2563eb"},tool_definitions:{label:"Tool definitions",color:"#db2777"},tool_results:{label:"Tool results",color:"#059669"},tool_calls:{label:"Tool calls",color:"#ec4899"},assistant_text:{label:"Assistant text",color:"#d97706"},user_text:{label:"User text",color:"#10b981"},thinking:{label:"Thinking",color:"#8b5cf6"},system_injections:{label:"System injections",color:"#6366f1"},images:{label:"Images",color:"#4b5563"},cache_markers:{label:"Cache markers",color:"#6b7280"},other:{label:"Other",color:"#4b5563"}};function Dh(e){var t;return((t=ut[e])==null?void 0:t.label)??e}function Ah(e,t="#475569"){var n;return((n=ut[e])==null?void 0:n.color)??t}const pu={system:["system_prompt","system_injections"],tools:["tool_definitions","tool_calls"],results:["tool_results"],conversation:["assistant_text","user_text","thinking"],other:["images","cache_markers","other"]},Tt={system:{label:"System",color:"#2563eb"},tools:{label:"Tools",color:"#db2777"},results:{label:"Results",color:"#059669"},conversation:{label:"Conversation",color:"#d97706"},other:{label:"Other",color:"#4b5563"}};function It(e){const t=e.role||"user",n=e.content||"",u=e.contentBlocks;if(u&&Array.isArray(u)){const s=u.some(i=>i.type==="tool_use"),o=u.some(i=>i.type==="tool_result"),r=u.some(i=>i.type==="thinking");if(o)return"tool_results";if(s)return"tool_calls";if(r)return"thinking"}return typeof n=="string"&&n.includes("<system-reminder>")?"system_injections":t==="assistant"?"assistant_text":t==="user"?"user_text":"other"}function po(e){const t={};for(const n of e)if(n.contentBlocks)for(const u of n.contentBlocks)u.type==="tool_use"&&u.id&&u.name&&(t[u.id]=u.name);return t}function Lo(e,t={}){const n=e.contentBlocks;if(n&&Array.isArray(n))for(const u of n){if(u.type==="tool_use")return(u.name||"tool")+"("+(u.input?JSON.stringify(u.input).slice(0,60):"")+")";if(u.type==="tool_result"){const o=u.tool_use_id?t[u.tool_use_id]:null,r=typeof u.content=="string"?u.content:JSON.stringify(u.content||""),i=o?o+": ":"";return i+r.slice(0,80-i.length)}const s=u;if(s.type==="thinking")return(s.thinking||s.text||"").slice(0,80);if(u.type==="text"||u.type==="input_text")return(u.text||"").slice(0,80)}return(e.content||"").slice(0,80)}function Fh(e){return e.contentBlocks&&e.contentBlocks.length>0?e.contentBlocks.map(t=>{if(t.type==="tool_use")return t.name+"("+JSON.stringify(t.input,null,2)+")";if(t.type==="tool_result")return typeof t.content=="string"?t.content:JSON.stringify(t.content,null,2);const n=t;return n.type==="thinking"?n.thinking||n.text||"":t.type==="text"||t.type==="input_text"?t.text||"":JSON.stringify(t,null,2)}).join(`
23
-
24
- `):e.content||""}function Ro(e){const t={role:e.role};if(e.contentBlocks&&e.contentBlocks.length>0)t.content=e.contentBlocks;else try{t.content=JSON.parse(e.content)}catch{t.content=e.content}return t._tokens=e.tokens,t}const Mh=["tool_results","system_injections","tool_calls","thinking","assistant_text","user_text"];function Uc(e){const t=new Map;for(let u=e.length-1;u>=0;u--){const s=e[u],o=It(s);t.has(o)||t.set(o,{items:[],tokens:0});const r=t.get(o);r.items.push({msg:s,origIdx:u}),r.tokens+=s.tokens||0}const n=[...Mh];for(const u of t.keys())n.includes(u)||n.push(u);return n.filter(u=>t.has(u)).map(u=>({category:u,...t.get(u)}))}function vn(e){if(e.length===0)return[];const t=new Map;for(const s of e){const o=s.agentKey||"_default";t.set(o,(t.get(o)||0)+1)}let n="_default",u=0;for(const[s,o]of t)o>u&&(n=s,u=o);return e.map(s=>({entry:s,isMain:(s.agentKey||"_default")===n}))}const bl="context-lens-density",Ft=fp("session",()=>{const e=he(0),t=he([]),n=he(new Map),u=he(0),s=he(!1),o=he(null),r=he(null),i=he(!1),l=he([]),a=he(""),f=he(!1),d=he("dashboard"),h=he("overview"),g=he(null),v=he("live"),E=he(null),k=he(""),T=he(""),$=he("comfortable"),R=he(null),D=he(0),P=he(null),S=he(null),G=he(!1),Z=he(null),K=he(new Set),J=he(!1),me=he("main"),H=he("main"),ae=he("absolute"),oe=he(new Set),M=he(!0),ue=he(!1),ce=he(new Set),q=new Map;function re(U){const pe=new Set(ce.value);pe.add(U),ce.value=pe;const ke=q.get(U);ke&&clearTimeout(ke),q.set(U,setTimeout(()=>{q.delete(U);const Ie=new Set(ce.value);Ie.delete(U),ce.value=Ie},1500))}const _e=new Map,N=he(null),ne=he(0),Q=O(()=>t.value.map(U=>{const pe=n.value.get(U.id);return pe||{...U,agents:[],entries:[]}})),ge=O(()=>[]),ye=O(()=>{let U=Q.value;return k.value&&(U=U.filter(pe=>pe.source===k.value)),T.value&&(U=U.filter(pe=>{const ke=n.value.get(pe.id);if(ke&&ke.entries.length>0)return ke.entries[0].contextInfo.model.includes(T.value);const Ie=t.value.find(Re=>Re.id===pe.id);return Ie==null?void 0:Ie.latestModel.includes(T.value)})),U}),w=O(()=>{let U=t.value;if(k.value&&(U=U.filter(pe=>pe.source===k.value)),a.value){const pe=a.value.toLowerCase();U=U.filter(ke=>{var Ie;return(Ie=ke.tags)==null?void 0:Ie.includes(pe)})}return U}),L=O(()=>{const U=new Set;for(const pe of t.value)pe.source&&U.add(pe.source);return Array.from(U).sort()}),W=O(()=>{const U=new Set;for(const pe of t.value)pe.latestModel&&U.add(pe.latestModel);return Array.from(U).sort()}),j=O(()=>g.value?n.value.get(g.value)??null:null),C=O(()=>{const U=j.value;if(!U||U.entries.length===0)return null;if(v.value==="live"){const Ie=[...vn([...U.entries].reverse())].reverse().find(Re=>Re.isMain);return(Ie==null?void 0:Ie.entry)??U.entries[0]}return U.entries.find(ke=>ke.id===E.value)??U.entries[0]}),I=O(()=>{let U=0;for(const pe of t.value)U+=pe.totalCost??0;return U}),b=O(()=>{let U=0;for(const pe of t.value)U+=pe.entryCount;return U+u.value});async function p(){s.value=!0,r.value=null;try{const U=await bh();e.value=U.revision,t.value=U.conversations,u.value=U.ungroupedCount;const pe=new Set(U.conversations.map(ke=>ke.id));for(const ke of n.value.keys())pe.has(ke)||n.value.delete(ke);!g.value&&U.conversations.length>0&&d.value==="inspector"&&await F(U.conversations[0].id),g.value&&!pe.has(g.value)&&(g.value=null,v.value="live",E.value=null,d.value==="inspector"&&(d.value="dashboard")),g.value&&pe.has(g.value)&&await m(g.value)}catch(U){r.value=U instanceof Error?U.message:String(U)}finally{s.value=!1}}async function m(U){o.value=U;try{const pe=await _h(U),ke=new Map(n.value);ke.set(U,pe),n.value=ke}catch(pe){console.warn(`Failed to load conversation ${U}:`,pe)}finally{o.value=null}}function _(U){if(U.type==="connected"){i.value=!0,U.revision!==e.value&&p();return}U.conversationId&&re(U.conversationId),p(),U.type==="tags-updated"&&B(),U.conversationId&&g.value===U.conversationId&&m(U.conversationId)}async function F(U){g.value=U,v.value="live",E.value=null,n.value.has(U)||await m(U)}function z(){v.value="live",E.value=null}function ie(U){v.value="pinned",E.value=U}function Y(U){d.value=U}function fe(U){h.value=U}function te(U){k.value=U}function Ee(U){T.value=U}function be(U,pe=!1){R.value=U,P.value=null,S.value=null,Z.value=null,G.value=pe,D.value+=1}function xe(U,pe){R.value=U,P.value=pe,S.value=null,Z.value=null,D.value+=1}function Ae(U){R.value=null,P.value=null,S.value=U,Z.value=null,D.value+=1}function Oe(U){R.value="tool_results",P.value=null,S.value=null,Z.value=U,D.value+=1}function Be(U){const pe=new Set(K.value);pe.has(U)?pe.delete(U):pe.add(U),K.value=pe}async function ze(U){const pe=U??K.value;if(pe.size<2)return;K.value=new Set(pe),J.value=!0,d.value="compare";const ke=[];for(const Ie of pe)n.value.has(Ie)||ke.push(m(Ie));await Promise.all(ke)}function it(U="dashboard"){J.value=!1,K.value=new Set,d.value=U}function nt(){R.value=null,P.value=null,S.value=null,G.value=!1,Z.value=null}async function yt(U){if(_e.has(U))return _e.get(U);N.value=U;try{const pe=await yh(U);if(pe&&(_e.set(U,pe),ne.value++,_e.size>50)){const ke=_e.keys().next().value;ke!==void 0&&_e.delete(ke)}return pe}catch{return null}finally{N.value=null}}function xt(U){return _e.get(U)??null}async function Gt(U){try{await xh(U),t.value=t.value.filter(pe=>pe.id!==U),n.value.delete(U),g.value===U&&(t.value.length>0?await F(t.value[0].id):(g.value=null,v.value="live",E.value=null))}catch(pe){r.value=pe instanceof Error?pe.message:String(pe)}}async function wn(){try{await kh(),t.value=[],n.value=new Map,u.value=0,g.value=null,v.value="live",E.value=null,e.value=0}catch(U){r.value=U instanceof Error?U.message:String(U)}}function lt(U){typeof document>"u"||document.documentElement.setAttribute("data-density",U)}function kt(){if(typeof window>"u")return;const U=window.localStorage.getItem(bl);U==="comfortable"||U==="compact"?$.value=U:$.value="comfortable",lt($.value)}function V(U){$.value=U,typeof window<"u"&&window.localStorage.setItem(bl,U),lt(U)}async function B(){f.value=!0;try{const U=await Ch();l.value=U.tags}catch(U){console.warn("Failed to load tags:",U)}finally{f.value=!1}}function ve(U){a.value=U}function ee(){a.value=""}async function $e(U,pe){try{const ke=await $h(U,pe),Ie=t.value.find(Qe=>Qe.id===U);Ie&&(Ie.tags=ke);const Re=n.value.get(U);Re&&(Re.tags=ke),await B()}catch(ke){r.value=ke instanceof Error?ke.message:String(ke)}}async function Me(U,pe){try{const ke=await Eh(U,pe),Ie=t.value.find(Qe=>Qe.id===U);Ie&&(Ie.tags=ke);const Re=n.value.get(U);Re&&(Re.tags=ke),await B()}catch(ke){r.value=ke instanceof Error?ke.message:String(ke)}}async function Fe(U,pe){try{const ke=await Th(U,pe),Ie=t.value.find(Qe=>Qe.id===U);Ie&&(Ie.tags=ke);const Re=n.value.get(U);Re&&(Re.tags=ke),await B()}catch(ke){r.value=ke instanceof Error?ke.message:String(ke)}}async function Xe(U,pe){try{const ke=await Sh(U,pe),Ie=n.value.get(U);Ie&&(Ie.prunedMessages=ke)}catch(ke){r.value=ke instanceof Error?ke.message:String(ke)}}function Ot(U){return`tag-color-${U%8}`}return{revision:e,summaries:t,loadedConversations:n,conversations:Q,ungrouped:ge,loading:s,loadingSession:o,error:r,connected:i,view:d,inspectorTab:h,selectedSessionId:g,selectionMode:v,selectedEntryId:E,sourceFilter:k,modelFilter:T,density:$,messageFocusCategory:R,messageFocusToken:D,messageFocusTool:P,messageFocusIndex:S,messageFocusOpenDetail:G,messageFocusFile:Z,messagesMode:me,timelineMode:H,timelineStackMode:ae,timelineHiddenLegendKeys:oe,timelineShowLimitOverlay:M,timelineShowCacheOverlay:ue,recentlyUpdated:ce,compareSessionIds:K,compareMode:J,allTags:l,tagFilter:a,loadingTags:f,filteredConversations:ye,filteredSummaries:w,sources:L,models:W,selectedSession:j,selectedEntry:C,totalCost:I,totalRequests:b,load:p,loadConversationEntries:m,handleSSEEvent:_,selectSession:F,followLive:z,pinEntry:ie,setView:Y,setInspectorTab:fe,setSourceFilter:te,setModelFilter:Ee,focusMessageCategory:be,focusMessageTool:xe,focusMessageByIndex:Ae,focusMessageFile:Oe,clearMessageFocus:nt,toggleCompareSession:Be,enterCompare:ze,exitCompare:it,loadEntryDetail:yt,getEntryDetail:xt,entryDetailLoading:N,entryDetailVersion:ne,initializeDensity:kt,setDensity:V,deleteSession:Gt,reset:wn,loadTags:B,setTagFilter:ve,clearTagFilter:ee,updateSessionTags:$e,addTagToSession:Me,removeTagFromSession:Fe,pruneMessage:Xe,getTagColorClass:Ot}});function Ih(e,t){const n=he(!1);let u=null,s=null;function o(){u&&u.close(),u=new EventSource(e),u.onopen=()=>{n.value=!0},u.onmessage=i=>{try{const l=JSON.parse(i.data);t(l)}catch{}},u.onerror=()=>{n.value=!1,u==null||u.close(),u=null,s&&clearTimeout(s),s=setTimeout(o,2e3)}}function r(){s&&(clearTimeout(s),s=null),u&&(u.close(),u=null),n.value=!1}return o(),is(r),{connected:n,disconnect:r,reconnect:o}}function Ce(e){return e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function Ct(e){return e==null?"--":"$"+e.toFixed(2)}function pr(e){return e>=1e3?(e/1e3).toFixed(1)+"s":Math.round(e)+"ms"}function hr(e,t=!1){return(t?e:e*100).toFixed(1)+"%"}function xn(e){if(!e)return"?";const t=e.match(/(opus|sonnet|haiku)-(\d+(?:\.\d+)?)/);if(t)return t[1]+"-"+t[2];const n=e.match(/(gpt-4o(?:-mini)?|gpt-4|gpt-3\.5)/);if(n)return n[1];const u=e.match(/(o[134](?:-mini)?)/);if(u)return u[1];const s=e.match(/(gemini-[\d.]+-(?:pro|flash)(?:-\w+)?)/);if(s)return s[1];const o=e.split(/[-_]/);return o.length>2?o.slice(0,3).join("-"):e}function Qu(e){const t=(e||"").toLowerCase();return t.includes("claude")?"badge-claude":t.includes("codex")?"badge-codex":t.includes("cline")?"badge-cline":t.includes("gemini")||t==="gm"?"badge-gemini":t.includes("aider")?"badge-aider":t.includes("opencode")||t==="oc"?"badge-opencode":t.includes("kimi")?"badge-kimi":t==="pi"||t.startsWith("pi-")?"badge-pi":t.includes("bryti")?"badge-bryti":t.includes("copilot")?"badge-copilot":"badge-unknown"}function mr(e){switch(e){case"good":return"#10b981";case"needs-work":return"#f59e0b";case"poor":return"#ef4444";default:return"#64748b"}}const Ph={class:"tag-editor"},Lh={class:"tag-list"},Rh=["onClick"],Oh={key:1,class:"input-wrap"},zh={key:0,class:"suggestions"},Nh=["onMousedown"],Bh=tt({__name:"TagEditor",props:{conversationId:{},tags:{}},setup(e){const t=e,n=Ft(),u=he(!1),s=he(""),o=he(),r=he(-1),i=O(()=>n.allTags.map(D=>D.name)),l=O(()=>{const D=new Set(t.tags);return i.value.filter(P=>!D.has(P))}),a=O(()=>{const D=s.value.trim().toLowerCase();return D?l.value.filter(P=>P.includes(D)).slice(0,5):l.value.slice(0,5)}),f=O(()=>s.value.trim().toLowerCase()),d=O(()=>!(!f.value||t.tags.includes(f.value)||a.value.includes(f.value))),h=O(()=>u.value&&(a.value.length>0||d.value));Ge(u,D=>{D?(n.loadTags(),Je(()=>{var P;return(P=o.value)==null?void 0:P.focus()})):(s.value="",r.value=-1)});const g=O(()=>a.value.length+(d.value?1:0));function v(){u.value=!0}function E(){u.value=!1}async function k(D){const P=D.trim().toLowerCase();if(P){if(t.tags.includes(P)){s.value="";return}await n.addTagToSession(t.conversationId,P),s.value="",r.value=-1}}async function T(D){await n.removeTagFromSession(t.conversationId,D)}function $(D){D.key==="Enter"?(D.preventDefault(),r.value>=0&&r.value<a.value.length?k(a.value[r.value]):s.value.trim()&&k(s.value)):D.key==="Escape"?E():D.key==="ArrowDown"?(D.preventDefault(),r.value=Math.min(r.value+1,g.value-1)):D.key==="ArrowUp"?(D.preventDefault(),r.value=Math.max(r.value-1,-1)):D.key==="Backspace"&&!s.value&&t.tags.length>0&&T(t.tags[t.tags.length-1])}function R(){setTimeout(()=>{s.value.trim()||E()},150)}return(D,P)=>(y(),x("div",Ph,[c("div",Lh,[(y(!0),x(de,null,Te(e.tags,(S,G)=>(y(),x("span",{key:S,class:le(["tag-pill",`tag-color-${G%8}`])},[we(A(S)+" ",1),c("button",{class:"tag-remove",title:"Remove tag",onClick:wt(Z=>T(S),["stop"])},[...P[2]||(P[2]=[c("i",{class:"i-carbon-close"},null,-1)])],8,Rh)],2))),128)),u.value?(y(),x("div",Oh,[je(c("input",{ref_key:"inputRef",ref:o,"onUpdate:modelValue":P[0]||(P[0]=S=>s.value=S),type:"text",class:"tag-input",placeholder:"tag...",onKeydown:$,onBlur:R},null,544),[[Yd,s.value]]),h.value?(y(),x("div",zh,[(y(!0),x(de,null,Te(a.value,(S,G)=>(y(),x("div",{key:S,class:le(["suggestion",{selected:G===r.value}]),onMousedown:wt(Z=>k(S),["prevent"])},A(S),43,Nh))),128)),d.value?(y(),x("div",{key:0,class:le(["suggestion new-tag",{selected:r.value===a.value.length}]),onMousedown:P[1]||(P[1]=wt(S=>k(s.value),["prevent"]))},' Create "'+A(f.value)+'" ',35)):se("",!0)])):se("",!0)])):(y(),x("button",{key:0,class:"add-btn",title:"Add tag",onClick:v},[...P[3]||(P[3]=[c("i",{class:"i-carbon-add"},null,-1)])]))])]))}}),rt=(e,t)=>{const n=e.__vccOpts||e;for(const[u,s]of t)n[u]=s;return n},Hh=rt(Bh,[["__scopeId","data-v-09e55ec4"]]),jh={class:"toolbar"},qh={key:0,class:"session-ctx"},Vh={class:"session-model"},Uh=["title"],Wh=["title","aria-label"],Kh={key:0,class:"session-id-toast"},Gh={key:2,class:"toolbar-sep"},Zh={class:"session-stat"},Jh={class:"session-stat cost"},Yh=["title"],Xh={key:4,class:"session-stat"},Qh=["title"],e1={key:0,class:"toolbar-tag-overflow"},t1={key:0,class:"tag-popover"},n1={class:"compare-label"},u1={class:"toolbar-right"},s1={class:"toolbar-stat"},o1={class:"toolbar-stat"},r1={class:"toolbar-stat cost"},i1={key:1,class:"toolbar-dropdown"},l1={key:2,class:"toolbar-dropdown"},a1=["disabled"],c1=tt({__name:"AppToolbar",setup(e){const t=he(!1),n=he();function u(){t.value=!t.value,t.value&&r.loadTags()}function s(){t.value=!1}function o(oe){t.value&&n.value&&!n.value.contains(oe.target)&&s()}Hn(()=>document.addEventListener("click",o,!0)),is(()=>document.removeEventListener("click",o,!0)),Ge(()=>r.selectedSessionId,()=>{t.value=!1});const r=Ft(),i=he(!1),l=he(!1),a=he(!1),f=O(()=>r.view==="inspector"&&!!r.selectedSession),d=O(()=>r.selectedSession),h=O(()=>r.totalRequests>0),g=O(()=>f.value&&!!r.selectedSessionId),v=O(()=>{const oe=r.selectedSessionId;return oe?r.summaries.find(M=>M.id===oe)??null:null});function E(oe){if(!oe)return"";let M=oe;/^\/home\/[^/]+(\/|$)/.test(M)?M=M.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(M)&&(M=M.replace(/^\/Users\/[^/]+/,"~"));const ue=M.split("/");return ue.length>3?ue.slice(-3).join("/"):M}const k=O(()=>r.selectedSessionId??"");function T(oe){return String(oe).trim().replace(/[^a-zA-Z0-9._-]+/g,"_").replace(/^_+|_+$/g,"").slice(0,80)||"unknown"}function $(oe,M){const ue=oe==="lhar"?"lhar":"lhar.json";return`context-lens-export-${`session-${T(M||"all")}`}-privacy-standard.${ue}`}async function R(oe,M){const ue=await fetch(oe);if(!ue.ok)throw new Error(`Download failed: ${ue.status}`);const ce=await ue.blob(),q=URL.createObjectURL(ce);try{const re=document.createElement("a");re.href=q,re.download=M,re.style.display="none",document.body.appendChild(re),re.click(),document.body.removeChild(re)}finally{URL.revokeObjectURL(q)}}async function D(oe,M){const ue=M==="session"?r.selectedSessionId??void 0:void 0,ce=wh(oe,ue),q=$(oe,ue);try{await R(ce,q)}catch{window.open(ce,"_blank")}i.value=!1}function P(){i.value=!i.value,i.value&&(l.value=!1)}function S(){l.value=!l.value,l.value&&(i.value=!1)}function G(){confirm("Clear all captured data?")&&r.reset(),l.value=!1}function Z(){const oe=r.selectedSessionId;!oe||!g.value||(confirm("Remove this session?")&&r.deleteSession(oe),l.value=!1)}function K(){r.setView("dashboard")}async function J(){const oe=k.value;if(oe){try{await navigator.clipboard.writeText(oe),a.value=!0}catch{}setTimeout(()=>{a.value=!1},1400)}}function me(oe){return oe.length<=18?oe:`${oe.slice(0,8)}…${oe.slice(-8)}`}function H(oe){return a.value?`Copied: ${oe}`:`Session ID: ${oe} (click to copy)`}function ae(oe){(oe.key==="Enter"||oe.key===" ")&&(oe.preventDefault(),J())}return(oe,M)=>(y(),x("header",jh,[c("a",{class:"toolbar-brand toolbar-brand-btn",href:"#sessions",onClick:wt(K,["prevent"])},[...M[8]||(M[8]=[ic('<svg class="logo-mark" width="18" height="18" viewBox="0 0 18 18" aria-hidden="true" data-v-8223f486><circle cx="9" cy="9" r="7.5" fill="none" stroke="var(--accent-blue)" stroke-width="1" opacity="0.35" data-v-8223f486></circle><circle cx="9" cy="9" r="4" fill="none" stroke="var(--accent-blue)" stroke-width="1" opacity="0.6" data-v-8223f486></circle><circle cx="9" cy="9" r="1.5" fill="var(--accent-blue)" data-v-8223f486></circle></svg><span class="brand-text" data-v-8223f486>Context Lens</span>',2)])]),Le(Qt,{name:"session-ctx"},{default:st(()=>{var ue,ce,q,re,_e;return[f.value&&d.value?(y(),x("div",qh,[M[11]||(M[11]=c("span",{class:"toolbar-sep"},null,-1)),c("span",{class:le(["session-badge",X(Qu)(d.value.source)])},A(d.value.source||"?"),3),c("span",Vh,A(X(xn)(((ue=v.value)==null?void 0:ue.latestModel)??"")),1),d.value.workingDirectory?(y(),x("span",{key:0,class:"session-dir",title:d.value.workingDirectory},A(E(d.value.workingDirectory)),9,Uh)):se("",!0),M[12]||(M[12]=c("span",{class:"toolbar-sep"},null,-1)),k.value?(y(),x("span",{key:1,class:le(["session-id",{copied:a.value}]),title:H(k.value),role:"button",tabindex:"0","aria-label":H(k.value),onClick:J,onKeydown:ae},[we(" SID "+A(me(k.value))+" ",1),a.value?(y(),x("span",Kh,"Copied")):se("",!0)],42,Wh)):se("",!0),k.value?(y(),x("span",Gh)):se("",!0),c("span",Zh,A(((ce=v.value)==null?void 0:ce.entryCount)??d.value.entries.length)+" turns",1),c("span",Jh,A(X(Ct)(((q=v.value)==null?void 0:q.totalCost)??0)),1),(re=d.value.prunedMessages)!=null&&re.length?(y(),x("span",{key:3,class:"session-stat session-stat--pruned",title:`${d.value.prunedMessages.length} message${d.value.prunedMessages.length!==1?"s":""} dropped from context`},A(d.value.prunedMessages.length)+" pruned",9,Yh)):se("",!0),(_e=v.value)!=null&&_e.healthScore?(y(),x("span",Xh,[M[9]||(M[9]=we(" Latest health ",-1)),c("span",{class:le(["session-health",{good:v.value.healthScore.rating==="good",warn:v.value.healthScore.rating==="needs-work",bad:v.value.healthScore.rating==="poor"}])},A(v.value.healthScore.overall),3)])):se("",!0),M[13]||(M[13]=c("span",{class:"toolbar-sep"},null,-1)),k.value?(y(),x("div",{key:5,ref_key:"toolbarTagsEl",ref:n,class:"toolbar-tags",onClick:M[0]||(M[0]=wt(()=>{},["stop"]))},[c("button",{class:le(["tags-toggle",{active:t.value,tagged:(d.value.tags??[]).length>0}]),title:t.value?"Close tag editor":"Edit tags",onClick:u},[M[10]||(M[10]=c("i",{class:"i-carbon-tag"},null,-1)),(d.value.tags??[]).length===0?(y(),x(de,{key:0},[we(" Tags ")],64)):(y(),x(de,{key:1},[(y(!0),x(de,null,Te((d.value.tags??[]).slice(0,2),(N,ne)=>(y(),x("span",{key:N,class:le(["toolbar-tag-pill",`tag-color-${ne%8}`])},A(N),3))),128)),(d.value.tags??[]).length>2?(y(),x("span",e1," +"+A((d.value.tags??[]).length-2),1)):se("",!0)],64))],10,Qh),Le(Qt,{name:"tag-popover"},{default:st(()=>[t.value?(y(),x("div",t1,[Le(Hh,{"conversation-id":k.value,tags:d.value.tags??[]},null,8,["conversation-id","tags"])])):se("",!0)]),_:1})],512)):se("",!0)])):se("",!0)]}),_:1}),X(r).compareMode?(y(),x(de,{key:0},[M[16]||(M[16]=c("span",{class:"toolbar-sep"},null,-1)),c("span",n1,[M[14]||(M[14]=c("i",{class:"i-carbon-compare"},null,-1)),we(" Comparing "+A(X(r).compareSessionIds.size)+" sessions ",1)]),c("button",{class:"compare-exit-btn",onClick:M[1]||(M[1]=ue=>X(r).exitCompare())},[...M[15]||(M[15]=[c("i",{class:"i-carbon-close"},null,-1),we(" Exit ",-1)])])],64)):se("",!0),c("div",u1,[c("span",{class:le(["connection",{live:X(r).connected}])},[M[17]||(M[17]=c("span",{class:"connection-dot"},null,-1)),we(" "+A(X(r).connected?"Live":"Offline"),1)],2),f.value?se("",!0):(y(),x(de,{key:0},[c("span",s1,A(X(r).conversations.length)+" session"+A(X(r).conversations.length!==1?"s":""),1),c("span",o1,A(X(r).totalRequests)+" req"+A(X(r).totalRequests!==1?"s":""),1),c("span",r1,A(X(Ct)(X(r).totalCost)),1)],64)),h.value?(y(),x("div",i1,[c("button",{class:"toolbar-control",onClick:P},[...M[18]||(M[18]=[c("i",{class:"i-carbon-download"},null,-1),we(" Export ",-1)])]),Le(Qt,{name:"dropdown"},{default:st(()=>[i.value?(y(),x("div",{key:0,class:"dropdown-menu",onMouseleave:M[6]||(M[6]=ue=>i.value=!1)},[c("button",{class:"dropdown-item",onClick:M[2]||(M[2]=ue=>D("lhar.json","all"))},[...M[19]||(M[19]=[c("i",{class:"i-carbon-document"},null,-1),we(" All (.lhar.json)",-1)])]),c("button",{class:"dropdown-item",onClick:M[3]||(M[3]=ue=>D("lhar","all"))},[...M[20]||(M[20]=[c("i",{class:"i-carbon-document"},null,-1),we(" All (.lhar)",-1)])]),X(r).selectedSessionId?(y(),x(de,{key:0},[M[23]||(M[23]=c("div",{class:"dropdown-sep"},null,-1)),c("button",{class:"dropdown-item",onClick:M[4]||(M[4]=ue=>D("lhar.json","session"))},[...M[21]||(M[21]=[c("i",{class:"i-carbon-document"},null,-1),we(" Session (.lhar.json)",-1)])]),c("button",{class:"dropdown-item",onClick:M[5]||(M[5]=ue=>D("lhar","session"))},[...M[22]||(M[22]=[c("i",{class:"i-carbon-document"},null,-1),we(" Session (.lhar)",-1)])])],64)):se("",!0)],32)):se("",!0)]),_:1})])):se("",!0),h.value?(y(),x("div",l1,[c("button",{class:"toolbar-control",onClick:S},[...M[24]||(M[24]=[c("i",{class:"i-carbon-overflow-menu-horizontal"},null,-1),we(" Menu ",-1)])]),Le(Qt,{name:"dropdown"},{default:st(()=>[l.value?(y(),x("div",{key:0,class:"dropdown-menu",onMouseleave:M[7]||(M[7]=ue=>l.value=!1)},[c("button",{class:"dropdown-item dropdown-item--danger",onClick:G},[...M[25]||(M[25]=[c("i",{class:"i-carbon-trash-can"},null,-1),we(" Reset all ",-1)])]),c("button",{class:le(["dropdown-item dropdown-item--danger",{"dropdown-item--disabled":!g.value}]),disabled:!g.value,onClick:Z},[...M[26]||(M[26]=[c("i",{class:"i-carbon-subtract-alt"},null,-1),we(" Remove this session ",-1)])],10,a1)],32)):se("",!0)]),_:1})])):se("",!0)])]))}}),f1=rt(c1,[["__scopeId","data-v-8223f486"]]),d1=["value","placeholder"],p1=tt({__name:"SearchInput",props:{modelValue:{},placeholder:{default:"Search…"},autoFocus:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,u=t,s=he(!1),o=he();function r(){var l;u("update:modelValue",""),(l=o.value)==null||l.focus()}function i(){var l;n.modelValue?u("update:modelValue",""):(l=o.value)==null||l.blur()}return wf(()=>{var l;n.autoFocus&&((l=o.value)==null||l.focus())}),(l,a)=>(y(),x("div",{class:le(["search-input-root",{focused:s.value,active:e.modelValue.length>0}]),onClick:a[3]||(a[3]=f=>{var d;return(d=o.value)==null?void 0:d.focus()})},[a[5]||(a[5]=c("i",{class:"i-carbon-search search-input-icon"},null,-1)),c("input",{ref_key:"inputRef",ref:o,value:e.modelValue,type:"text",class:"search-input-field",placeholder:e.placeholder,onInput:a[0]||(a[0]=f=>u("update:modelValue",f.target.value)),onFocus:a[1]||(a[1]=f=>s.value=!0),onBlur:a[2]||(a[2]=f=>s.value=!1),onKeydown:hc(i,["escape"])},null,40,d1),e.modelValue.length>0?(y(),x("button",{key:0,class:"search-input-clear",tabindex:"-1",title:"Clear",onClick:wt(r,["stop"])},[...a[4]||(a[4]=[c("i",{class:"i-carbon-close"},null,-1)])])):se("",!0),a[6]||(a[6]=c("div",{class:"search-input-accent"},null,-1))],2))}}),h1=rt(p1,[["__scopeId","data-v-70f5ee93"]]),m1={class:"tag-filter"},g1={key:0,class:"dropdown-loading"},v1=["onClick"],b1={class:"tag-name"},_1={class:"tag-count"},y1={key:2,class:"dropdown-empty"},x1=tt({__name:"TagFilter",setup(e){const t=Ft(),n=he(!1),u=O(()=>t.allTags.length>0),s=O(()=>t.tagFilter),o=O(()=>s.value?`Tag: ${s.value}`:"Tag");function r(a){t.setTagFilter(a),n.value=!1}function i(){t.clearTagFilter(),n.value=!1}function l(){n.value=!n.value,n.value&&t.loadTags()}return(a,f)=>(y(),x("div",m1,[c("button",{class:le(["filter-btn",{active:s.value}]),onClick:l},[we(A(o.value)+" ",1),c("i",{class:le(["i-carbon-chevron-down dropdown-icon",{open:n.value}])},null,2)],2),Le(Qt,{name:"dropdown"},{default:st(()=>[n.value?(y(),x("div",{key:0,class:"dropdown-menu",onMouseleave:f[0]||(f[0]=d=>n.value=!1)},[X(t).loadingTags?(y(),x("div",g1," Loading... ")):u.value?(y(),x(de,{key:1},[c("button",{class:le(["dropdown-item",{active:!s.value}]),onClick:i},[...f[1]||(f[1]=[c("span",{class:"all-label"},"All sessions",-1)])],2),f[2]||(f[2]=c("div",{class:"dropdown-sep"},null,-1)),(y(!0),x(de,null,Te(X(t).allTags,(d,h)=>(y(),x("button",{key:d.name,class:le(["dropdown-item",{active:s.value===d.name}]),onClick:g=>r(d.name)},[c("span",{class:le(["tag-dot",X(t).getTagColorClass(h)])},null,2),c("span",b1,A(d.name),1),c("span",_1,A(d.count),1)],10,v1))),128))],64)):(y(),x("div",y1," No tags yet "))],32)):se("",!0)]),_:1})]))}}),k1=rt(x1,[["__scopeId","data-v-8f64535a"]]);function xu(e){return e<=0?0:e>=1?1:e}function w1(e,t){const n=e.healthScore,u=n?xu((100-n.overall)/100):null,s=e.contextLimit?xu(e.latestTotalTokens/e.contextLimit):0,o=u===null?s:xu(u*.7+s*.3),r=t>0?xu(e.totalCost/t):0,i=xu(o*.7+r*.3);let l="Healthy",a="priority-healthy",f="prio-healthy";i>=.7?(l="Critical",a="priority-critical",f="prio-critical"):i>=.45&&(l="Warning",a="priority-warning",f="prio-warning");const d=`Priority ${Math.round(i*100)} = 0.7×risk(${Math.round(o*100)}) + 0.3×cost(${Math.round(r*100)}).`;return{risk:o,normalizedCost:r,score:i,label:l,toneClass:a,barClass:f,tooltip:d}}function Wc(e,t,n){var k,T;const s=n.filter($=>$.isMain).map($=>$.entry).findIndex($=>$.id===e.id),o=s>=0?s+1:null,r=[],i=e.contextInfo,l=e.composition||[],a=l.reduce(($,R)=>$+R.tokens,0),f=po(i.messages||[]),d=l.find($=>$.category==="tool_results");if(d&&a>0&&d.pct>25){let $=0,R="";for(const D of i.messages||[])if(It(D)==="tool_results"&&D.tokens>$&&($=D.tokens,D.contentBlocks)){for(const P of D.contentBlocks)if(P.type==="tool_result"&&P.tool_use_id&&f[P.tool_use_id]){R=f[P.tool_use_id];break}}if($>2e3){const D=Math.round($/a*100);r.push({severity:"high",title:`Large tool result${R?": "+R:""} (${Ce($)} tokens, ${D}% of context)`,detail:"This single result reduces space for conversation history and is re-sent every turn. You may want to truncate output or use summary flags.",impact:`${Ce($)} tok`})}}const h=l.find($=>$.category==="tool_definitions");if(h&&h.pct>30){const $=new Set;for(const S of t)for(const G of S.contextInfo.messages||[])if(G.contentBlocks)for(const Z of G.contentBlocks)Z.type==="tool_use"&&Z.name&&$.add(Z.name);const R=[];if(i.tools)for(const S of i.tools){const G="name"in S?S.name:(k=S.function)==null?void 0:k.name;G&&R.push(G)}const D=R.filter(S=>!$.has(S)),P=R.length;if(P>$.size+3){const S=D.slice(0,5).join(", ")+(D.length>5?` +${D.length-5} more`:""),G=Math.round(h.tokens*D.length/P);r.push({severity:"high",title:`${$.size}/${P} tools used, ${D.length} idle`,detail:`Unused: ${S}. Definitions cost ~${Ce(G)} tokens and are re-sent every turn. You may want to remove unused tools to free context.`,impact:`~${Ce(G)} tok`})}}if(d&&d.pct>60){const $=l.find(S=>S.category==="user_text"),R=$?$.pct:0,D=new Map;for(const S of i.messages||[])if(It(S)==="tool_results"&&S.contentBlocks){for(const G of S.contentBlocks)if(G.type==="tool_result"&&G.tool_use_id){const Z=f[G.tool_use_id]||"unknown";D.set(Z,(D.get(Z)||0)+(S.tokens||0))}}const P=Array.from(D.entries()).sort((S,G)=>G[1]-S[1]).slice(0,3).map(([S,G])=>`${S} (${Ce(G)})`).join(", ");r.push({severity:"med",title:`Tool results dominate: ${d.pct}% of context`,detail:`Top tools: ${P}. User text is only ${R}%. Large results crowd out conversation history.`,impact:"Structural"})}const g=e.contextLimit>0?Math.round(i.totalTokens/e.contextLimit*100):0;g>80?r.push({severity:"high",title:`Context utilization critical: ${g}%`,detail:`${Ce(i.totalTokens)} of ${Ce(e.contextLimit)} tokens. Overflow risk is elevated, and older messages may be dropped or summarized.`,impact:"Critical"}):g>60&&r.push({severity:"med",title:`Context utilization high: ${g}%`,detail:`${Ce(i.totalTokens)} of ${Ce(e.contextLimit)} tokens used.`,impact:"Monitor"});const v=t.indexOf(e);if(v>0){let $=-1;for(let R=v-1;R>=0;R--)if((T=n[R])!=null&&T.isMain){$=R;break}if($>=0){const R=t[$].contextInfo.totalTokens;i.totalTokens<R*.7&&r.push({severity:"med",title:"Compaction detected",detail:`Tokens dropped ${Ce(R)} → ${Ce(i.totalTokens)}. Context was summarized or truncated — older details may be lost.`,impact:`-${Ce(R-i.totalTokens)} tok`})}}const E=l.find($=>$.category==="system_injections");E&&E.pct>5&&r.push({severity:"med",title:`System injections: ${E.pct}% of context`,detail:`${Ce(E.tokens)} tokens of system-reminder blocks injected into messages. These are re-sent every turn, reducing space for actual conversation.`,impact:`${Ce(E.tokens)} tok`});for(const $ of e.securityAlerts||[]){const R=$.severity==="high"?"high":$.severity==="medium"?"med":"low",D=$.toolName?`tool result: ${$.toolName}`:`${$.role} message`;r.push({severity:R,title:`⚠ ${$.pattern.replace(/_/g," ")} in ${D} (msg ${$.messageIndex+1})`,detail:$.match,impact:$.severity,messageIndex:$.messageIndex,highlight:$.match})}for(const $ of e.outputSecurityAlerts||[]){const R=$.severity==="high"?"high":$.severity==="medium"?"med":"low";r.push({severity:R,title:`⚠ ${$.pattern.replace(/_/g," ")} in response`,detail:$.match,impact:$.severity})}for(const $ of e.toolPatterns||[]){const R=$.kind==="stuck_on_error"?"high":$.kind==="redundant_call"?"med":"low",D=$.kind==="stuck_on_error"?"Loop risk":$.kind==="redundant_call"?"Wasted tokens":"Redundant fetch",P=o!=null?` (turn ${o})`:"";r.push({severity:R,title:$.title+P,detail:$.detail,impact:D})}return r}const C1={class:"kpi-row"},$1={class:"kpi-card"},E1={class:"kpi-value"},T1={class:"kpi-card"},S1={class:"kpi-value accent-blue"},D1={class:"kpi-card"},A1={class:"kpi-value"},F1={class:"kpi-card"},M1={class:"kpi-value accent-green"},I1={class:"kpi-card"},P1={class:"kpi-value accent-amber"},L1={class:"kpi-scope"},R1={class:"section-head"},O1={class:"section-count"},z1={class:"filter-group"},N1={key:0,class:"filter-dropdown"},B1=["onClick"],H1={class:"sort-group"},j1={class:"table-wrap"},q1={class:"ledger"},V1={key:0,class:"col-select"},U1=["onClick"],W1={key:0,class:"col-select"},K1={class:"col-priority"},G1={class:"col-source"},Z1={key:0,class:"row-tags"},J1=["title"],Y1={key:0,class:"row-tag-more"},X1={class:"col-model"},Q1={class:"model-text"},em={class:"col-dir"},tm=["title"],nm={class:"col-turns"},um={class:"num"},sm={class:"col-context"},om={class:"col-cost"},rm={class:"num green"},im={class:"col-health"},lm={class:"health-cell"},am={key:0,class:"health-tooltip"},cm={class:"health-tooltip-title"},fm={class:"health-audit-name"},dm={class:"col-spark"},pm=["innerHTML"],hm={class:"col-time"},mm=["title"],gm={class:"col-arrow"},vm=["href","onClick"],bm=["colspan"],_m={class:"expand-content"},ym={class:"expand-inner"},xm={key:0,class:"expand-loading"},km={key:0,class:"expand-section"},wm={class:"expand-section-label"},Cm={class:"comp-tape"},$m=["title"],Em={key:0,class:"comp-seg-label"},Tm={class:"expand-section"},Sm={class:"finding-text"},Dm={key:1,class:"finding"},Am={key:0,class:"compare-bar"},Fm={class:"compare-bar-text"},Mm={key:0,class:"dashboard-empty"},Im={key:1,class:"dashboard-empty"},Pm=tt({__name:"DashboardView",setup(e){const t=Ft(),n=he("recent"),u=he(new Set),s=he(!1),o=he(""),r=he(!1);Ge(()=>t.compareSessionIds.size,p=>{p===0&&r.value&&(r.value=!1)});function i(){r.value=!r.value,r.value||(t.compareSessionIds=new Set)}function l(p){return t.compareSessionIds.has(p)}function a(p){r.value?t.toggleCompareSession(p):L(p)}const f=O(()=>t.compareSessionIds.size),d=he(null),h=O(()=>{const p=new Set;for(const m of t.summaries)m.source&&p.add(m.source);return Array.from(p).sort()});function g(p){return d.value?d.value.has(p):!0}function v(p){if(!d.value){const _=new Set(h.value);_.delete(p),_.size>0&&(d.value=_);return}const m=new Set(d.value);if(m.has(p)){if(m.delete(p),m.size===0)return}else m.add(p);m.size===h.value.length?d.value=null:d.value=m}const E=O(()=>d.value!==null),k=O(()=>d.value?`Source (${d.value.size})`:"Source"),T=O(()=>{let p=t.summaries;d.value&&(p=p.filter(_=>d.value.has(_.source)));const m=o.value.trim().toLowerCase();if(m&&(p=p.filter(_=>[_.id,_.source,_.label,_.workingDirectory??"",_.latestModel].join("\0").toLowerCase().includes(m))),t.tagFilter){const _=t.tagFilter.toLowerCase();p=p.filter(F=>{var z;return(z=F.tags)==null?void 0:z.includes(_)})}return p}),$=O(()=>{let p=0;for(const m of T.value)p=Math.max(p,m.totalCost);return p}),R=O(()=>{const p=new Map;for(const m of T.value)p.set(m.id,w1(m,$.value));return p}),D=O(()=>{const p=[...T.value];return n.value==="priority"?p.sort((m,_)=>{var ie,Y;const F=((ie=R.value.get(m.id))==null?void 0:ie.score)??0;return(((Y=R.value.get(_.id))==null?void 0:Y.score)??0)-F}):n.value==="cost"&&p.sort((m,_)=>_.totalCost-m.totalCost),p}),P=he("today"),S=O(()=>{if(P.value==="all")return T.value;const p=new Date;p.setHours(0,0,0,0);const m=p.getTime();return T.value.filter(_=>new Date(_.latestTimestamp).getTime()>=m)}),G=O(()=>S.value.length),Z=O(()=>S.value.reduce((p,m)=>p+m.entryCount,0)),K=O(()=>S.value.reduce((p,m)=>p+m.latestTotalTokens,0)),J=O(()=>S.value.reduce((p,m)=>p+m.totalCost,0)),me=O(()=>{const p=S.value.filter(_=>{var F;return((F=_.healthScore)==null?void 0:F.overall)!=null});if(p.length===0)return 0;const m=p.reduce((_,F)=>{var z;return _+(((z=F.healthScore)==null?void 0:z.overall)??0)},0);return Math.round(m/p.length)});function H(p){return R.value.get(p)??{score:0,label:"Healthy",toneClass:"priority-healthy",barClass:"prio-healthy",risk:0,normalizedCost:0,tooltip:""}}function ae(p){return p.contextLimit?p.latestTotalTokens/p.contextLimit:0}function oe(p){return p>=.8?"util-high":p>=.6?"util-mid":"util-low"}function M(p){var _;const m=(_=p.healthScore)==null?void 0:_.rating;return m==="poor"?"health-bad":m==="needs-work"?"health-warn":"health-good"}function ue(p){return p>=90?"health-good":p>=50?"health-warn":"health-bad"}function ce(p){const m=Date.now()-new Date(p).getTime();return m<6e4?"just now":m<36e5?`${Math.floor(m/6e4)}m ago`:m<864e5?`${Math.floor(m/36e5)}h ago`:`${Math.floor(m/864e5)}d ago`}function q(p){const m=new Date(p),_=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),F=m.toLocaleDateString("en-CA");return`${_} on ${F}`}function re(p){if(!p)return"";let m=p;/^\/home\/[^/]+(\/|$)/.test(m)?m=m.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(m)&&(m=m.replace(/^\/Users\/[^/]+/,"~"));const _=m.split("/");return _.length>2?_.slice(-2).join("/"):m}function _e(p){return p==="prio-critical"?"#ef4444":p==="prio-warning"?"#f59e0b":"#0ea5e9"}function N(p,m){if(p.length===0)return"";const _=72,F=22,z=Math.max(...p);if(z===0)return"";const ie=p.map((te,Ee)=>{const be=p.length<=1?_/2:Ee/(p.length-1)*_,xe=F-te/z*(F-4)-2;return`${be.toFixed(1)},${xe.toFixed(1)}`}),Y=ie.join(" ")+` ${_},${F} 0,${F}`,fe="sg"+m.replace("#","");return`<svg viewBox="0 0 ${_} ${F}" preserveAspectRatio="none" style="display:block;width:100%;height:100%"><defs><linearGradient id="${fe}" x1="0" y1="0" x2="0" y2="1"><stop offset="0%" stop-color="${m}" stop-opacity="0.15"/><stop offset="100%" stop-color="${m}" stop-opacity="0.02"/></linearGradient></defs><polygon points="${Y}" fill="url(#${fe})"/><polyline points="${ie.join(" ")}" fill="none" stroke="${m}" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/><circle cx="${ie[ie.length-1].split(",")[0]}" cy="${ie[ie.length-1].split(",")[1]}" r="2" fill="${m}"/></svg>`}function ne(p){const m=p.tokenHistory;if(!m||m.length<2)return"";const _=H(p.id);return N(m,_e(_.barClass))}const Q=[{key:"system_prompt",label:"System",color:"var(--cat-system, #3b82f6)"},{key:"tool_definitions",label:"Tool defs",color:"var(--cat-tools, #ec4899)"},{key:"tool_results",label:"Tool results",color:"var(--cat-tool-results, #10b981)"},{key:"assistant_text",label:"Assistant",color:"var(--cat-assistant, #f59e0b)"},{key:"user_text",label:"User",color:"var(--cat-user, #06b6d4)"},{key:"thinking",label:"Thinking",color:"var(--cat-thinking, #8b5cf6)"},{key:"system_injections",label:"Injections",color:"var(--cat-injections, #6366f1)"}];function ge(p){const m=t.loadedConversations.get(p.id);return!m||m.entries.length===0?[]:m.entries[0].composition||[]}function ye(p){const m=t.loadedConversations.get(p.id);if(!m||m.entries.length===0)return[];const _=m.entries[0],F=[...m.entries].reverse(),z=vn(F);return Wc(_,F,z)}function w(p){return u.value.has(p)}async function L(p){const m=new Set(u.value);m.has(p)?m.delete(p):(m.add(p),t.loadedConversations.has(p)||await t.loadConversationEntries(p)),u.value=m}function W(){u.value=new Set}function j(p){return`#session/${encodeURIComponent(p)}?tab=overview`}function C(p){t.setInspectorTab("overview"),t.selectSession(p),t.setView("inspector")}function I(){s.value=!1}function b(p){p.key==="Escape"&&W()}return(p,m)=>(y(),x("div",{class:"dashboard",onKeydown:b,tabindex:"-1",onClick:I},[c("div",C1,[c("div",$1,[c("div",E1,A(G.value),1),m[9]||(m[9]=c("div",{class:"kpi-label"},"Sessions",-1))]),c("div",T1,[c("div",S1,A(Z.value),1),m[10]||(m[10]=c("div",{class:"kpi-label"},"Requests",-1))]),c("div",D1,[c("div",A1,A(X(Ce)(K.value)),1),m[11]||(m[11]=c("div",{class:"kpi-label"},"Tokens",-1))]),c("div",F1,[c("div",M1,A(X(Ct)(J.value)),1),m[12]||(m[12]=c("div",{class:"kpi-label"},"Cost",-1))]),c("div",I1,[c("div",P1,A(me.value),1),m[13]||(m[13]=c("div",{class:"kpi-label"},"Avg Health",-1))]),c("div",L1,[c("button",{class:le({active:P.value==="today"}),onClick:m[0]||(m[0]=_=>P.value="today")},"Today",2),c("button",{class:le({active:P.value==="all"}),onClick:m[1]||(m[1]=_=>P.value="all")},"All",2)])]),c("div",R1,[m[17]||(m[17]=c("span",{class:"section-title"},"Sessions",-1)),c("span",O1,A(T.value.length),1),Le(h1,{modelValue:o.value,"onUpdate:modelValue":m[2]||(m[2]=_=>o.value=_),placeholder:"Filter by ID, directory, model…"},null,8,["modelValue"]),c("div",z1,[c("button",{class:le(["compare-toggle",{active:r.value}]),onClick:i,title:"Select sessions to compare"},[...m[14]||(m[14]=[c("i",{class:"i-carbon-compare"},null,-1),we(" Compare ",-1)])],2),h.value.length>1?(y(),x("div",N1,[c("button",{class:le(["filter-btn",{"has-filter":E.value}]),onClick:m[3]||(m[3]=wt(_=>s.value=!s.value,["stop"]))},[we(A(k.value)+" ",1),m[15]||(m[15]=c("span",{class:"caret"},null,-1))],2),s.value?(y(),x("div",{key:0,class:"filter-menu",onClick:m[4]||(m[4]=wt(()=>{},["stop"]))},[(y(!0),x(de,null,Te(h.value,_=>(y(),x("div",{key:_,class:le(["filter-option",{checked:g(_)}]),onClick:F=>v(_)},[m[16]||(m[16]=c("span",{class:"check"},[c("i",{class:"i-carbon-checkmark"})],-1)),c("span",{class:le(["source-badge",X(Qu)(_)])},A(_),3)],10,B1))),128))])):se("",!0)])):se("",!0),Le(k1),c("div",H1,[c("button",{class:le(["sort-btn",{active:n.value==="recent"}]),onClick:m[5]||(m[5]=_=>n.value="recent")},"Recent",2),c("button",{class:le(["sort-btn",{active:n.value==="priority"}]),onClick:m[6]||(m[6]=_=>n.value="priority")},"Priority",2),c("button",{class:le(["sort-btn",{active:n.value==="cost"}]),onClick:m[7]||(m[7]=_=>n.value="cost")},"Cost",2)])])]),c("div",j1,[c("table",q1,[c("thead",null,[c("tr",null,[r.value?(y(),x("th",V1)):se("",!0),m[18]||(m[18]=c("th",{class:"col-priority"},null,-1)),m[19]||(m[19]=c("th",{class:"col-source"},"Source",-1)),m[20]||(m[20]=c("th",{class:"col-model"},"Model",-1)),m[21]||(m[21]=c("th",{class:"col-dir"},"Directory",-1)),m[22]||(m[22]=c("th",{class:"col-turns"},"Turns",-1)),m[23]||(m[23]=c("th",{class:"col-context sorted"},"Context",-1)),m[24]||(m[24]=c("th",{class:"col-cost"},"Cost",-1)),m[25]||(m[25]=c("th",{class:"col-health"},"Health",-1)),m[26]||(m[26]=c("th",{class:"col-spark"},"Trend",-1)),m[27]||(m[27]=c("th",{class:"col-time"},"Time",-1)),m[28]||(m[28]=c("th",{class:"col-arrow"},null,-1))])]),c("tbody",null,[(y(!0),x(de,null,Te(D.value,_=>{var F,z,ie;return y(),x(de,{key:_.id},[c("tr",{class:le(["main-row",{expanded:w(_.id),selected:w(_.id)||l(_.id),pulse:X(t).recentlyUpdated.has(_.id)}]),onClick:Y=>a(_.id)},[r.value?(y(),x("td",W1,[c("span",{class:le(["compare-check",{checked:l(_.id)}])},[...m[29]||(m[29]=[c("i",{class:"i-carbon-checkmark"},null,-1)])],2)])):se("",!0),c("td",K1,[c("div",{class:le(["priority-bar",H(_.id).barClass])},null,2)]),c("td",G1,[c("span",{class:le(["source-badge",X(Qu)(_.source)])},A(_.source||"?"),3),(F=_.tags)!=null&&F.length?(y(),x("span",Z1,[(y(!0),x(de,null,Te(_.tags.slice(0,2),(Y,fe)=>(y(),x("span",{key:Y,class:le(["row-tag",X(t).getTagColorClass(fe)]),title:Y},A(Y),11,J1))),128)),_.tags.length>2?(y(),x("span",Y1,"+"+A(_.tags.length-2),1)):se("",!0)])):se("",!0)]),c("td",X1,[c("span",Q1,A(X(xn)(_.latestModel)),1)]),c("td",em,[c("span",{class:"dir-text",title:_.workingDirectory??""},A(re(_.workingDirectory)),9,tm)]),c("td",nm,[c("span",um,A(_.entryCount),1)]),c("td",sm,[c("span",{class:le(["util-chip",oe(ae(_))])},A(Math.round(ae(_)*100))+"% ",3)]),c("td",om,[c("span",rm,A(X(Ct)(_.totalCost)),1)]),c("td",im,[c("div",lm,[c("span",{class:le(["health-num",M(_)])},A(((z=_.healthScore)==null?void 0:z.overall)??"—"),3),(ie=_.healthScore)!=null&&ie.audits?(y(),x("div",am,[c("div",cm,"Health Score: "+A(_.healthScore.overall),1),(y(!0),x(de,null,Te(_.healthScore.audits,Y=>(y(),x("div",{key:Y.id,class:"health-audit-line"},[c("span",fm,A(Y.name),1),c("span",{class:le(["health-audit-score",ue(Y.score)])},A(Y.score),3)]))),128))])):se("",!0)])]),c("td",dm,[c("div",{class:"inline-spark",innerHTML:ne(_)},null,8,pm)]),c("td",hm,[c("span",{class:"time-text",title:q(_.latestTimestamp)},A(ce(_.latestTimestamp)),9,mm)]),c("td",gm,[c("a",{class:"inspect-btn",title:"Open in inspector",href:j(_.id),onClick:wt(Y=>C(_.id),["prevent","stop"])},[...m[30]||(m[30]=[c("i",{class:"i-carbon-arrow-right"},null,-1)])],8,vm)])],10,U1),c("tr",{class:le(["expand-row",{open:w(_.id)}])},[c("td",{colspan:r.value?12:11},[c("div",_m,[c("div",ym,[X(t).loadingSession===_.id?(y(),x("div",xm," Loading… ")):(y(),x(de,{key:1},[ge(_).length>0?(y(),x("div",km,[c("div",wm," Composition · "+A(X(Ce)(ge(_).reduce((Y,fe)=>Y+fe.tokens,0)))+" tokens ",1),c("div",Cm,[(y(),x(de,null,Te(Q,Y=>{var fe,te,Ee,be;return je(c("div",{key:Y.key,class:"comp-seg",style:Se({flex:((fe=ge(_).find(xe=>xe.category===Y.key))==null?void 0:fe.tokens)??0,background:Y.color}),title:`${Y.label}: ${((te=ge(_).find(xe=>xe.category===Y.key))==null?void 0:te.pct)??0}%`},[(((Ee=ge(_).find(xe=>xe.category===Y.key))==null?void 0:Ee.pct)??0)>=12?(y(),x("span",Em,A(Y.label),1)):se("",!0)],12,$m),[[Rd,(((be=ge(_).find(xe=>xe.category===Y.key))==null?void 0:be.tokens)??0)>0]])}),64))])])):se("",!0),c("div",Tm,[m[32]||(m[32]=c("div",{class:"expand-section-label"},"Findings",-1)),c("div",{class:le(["expand-findings",{"expand-findings--scroll":ye(_).length>5}])},[ye(_).length>0?(y(!0),x(de,{key:0},Te(ye(_),(Y,fe)=>(y(),x("div",{key:fe,class:"finding"},[c("i",{class:le(["finding-icon",[`sev-${Y.severity}`,Y.severity==="high"?"i-carbon-warning-alt":Y.severity==="med"?"i-carbon-information":"i-carbon-checkmark"]])},null,2),c("span",Sm,[we(A(Y.title)+" ",1),Y.impact?(y(),x("span",{key:0,class:le(["finding-impact",`sev-${Y.severity}`])},A(Y.impact),3)):se("",!0)])]))),128)):(y(),x("div",Dm,[...m[31]||(m[31]=[c("i",{class:"finding-icon sev-low i-carbon-checkmark"},null,-1),c("span",{class:"finding-text muted"},"No issues detected.",-1)])]))],2)])],64))])])],8,bm)],2)],64)}),128))])])]),Le(Qt,{name:"compare-bar"},{default:st(()=>[r.value&&f.value>=2?(y(),x("div",Am,[c("span",Fm,A(f.value)+" sessions selected",1),c("button",{class:"compare-bar-btn",onClick:m[8]||(m[8]=_=>X(t).enterCompare())},[...m[33]||(m[33]=[c("i",{class:"i-carbon-compare"},null,-1),we(" Compare ",-1)])])])):se("",!0)]),_:1}),D.value.length===0&&(o.value||d.value)?(y(),x("div",Mm,[...m[34]||(m[34]=[c("div",{class:"empty-title"},"No matching sessions",-1),c("div",{class:"empty-sub"},"Try adjusting your search or filters",-1)])])):X(t).summaries.length===0?(y(),x("div",Im,[...m[35]||(m[35]=[c("div",{class:"empty-title"},"No requests captured",-1),c("div",{class:"empty-sub"},[we("Point API calls to "),c("code",null,"localhost:4040")],-1)])])):se("",!0)],32))}}),Lm=rt(Pm,[["__scopeId","data-v-a063358d"]]);function Gr(e){var o,r;const t=e.composition||[],n=t.reduce((i,l)=>i+l.tokens,0),u=new Map(t.map(i=>[i.category,i.tokens])),s=[];for(const[i,l]of Object.entries(pu)){let a=0;for(const f of l)a+=u.get(f)??0;a>0&&s.push({key:i,label:((o=Tt[i])==null?void 0:o.label)??i,color:((r=Tt[i])==null?void 0:r.color)??"#4b5563",tokens:a,pct:n>0?a/n*100:0})}return s.sort((i,l)=>l.tokens-i.tokens)}function Rm(e,t){const n=Gr(e);if(t.size===0)return n;const u=n.filter(o=>!t.has(o.key)),s=u.reduce((o,r)=>o+r.tokens,0);return u.map(o=>({...o,pct:s>0?o.tokens/s*100:0}))}function Oo(e,t){return t.size===0?e.contextInfo.totalTokens:Gr(e).filter(u=>!t.has(u.key)).reduce((u,s)=>u+s.tokens,0)}function Om(e,t){const n=t.findIndex(u=>u.entry.id===e);if(n<=0)return null;for(let u=n-1;u>=0;u--)if(t[u].isMain)return t[u].entry;return null}function zm(e,t){const n=t.findIndex(o=>o.entry.id===e);if(n<0)return 0;let u=n;for(let o=n;o>=0;o--)if(t[o].isMain){u=o;break}let s=0;for(let o=u+1;o<t.length&&!t[o].isMain;o++)s++;return s}function Nm(e,t){var s,o;const n=new Map,u=1800;for(const r of e){const i=[],l=Om(r.entry.id,t);if(l&&r.isMain){const a=l.contextInfo.totalTokens,f=r.entry.contextInfo.totalTokens;a>0&&f<a*.75&&i.push({type:"compaction",label:"Compaction",detail:`${Ce(a)} → ${Ce(f)} total tokens`});const d=vr(l),h=vr(r.entry),g=d>0&&l.usage?l.usage.cacheReadTokens/d:null,v=h>0&&r.entry.usage?r.entry.usage.cacheReadTokens/h:null;if(g!==null&&v!==null){const T=v-g;if(Math.abs(T)>=.2){const $=Math.round(g*100),R=Math.round(v*100),D=T>0?"warmed up":"invalidated",P=T>0?"prompt prefix is now stable, fewer tokens re-processed":"prompt prefix changed, more tokens re-processed this turn (higher cost)";i.push({type:"cache-shift",label:T>0?"Cache warmed":"Cache invalidated",detail:`${$}% to ${R}% hit rate. Cache ${D}: ${P}.`})}}const E=((s=l.composition.find(T=>T.category==="tool_results"))==null?void 0:s.tokens)??0,k=((o=r.entry.composition.find(T=>T.category==="tool_results"))==null?void 0:o.tokens)??0;k-E>=u&&i.push({type:"tool-jump",label:"Tool jump",detail:`tool results +${Ce(k-E)}`})}if(r.isMain){const a=zm(r.entry.id,t);a>=3&&i.push({type:"subagent-burst",label:"Subagent burst",detail:`${a} subagent calls in this turn`})}i.length>0&&n.set(r.entry.id,i)}return n}function Bm(e){return e.type==="compaction"?"C":e.type==="cache-shift"?e.label==="Cache warmed"?"▲":"▽":e.type==="subagent-burst"?"S":"T"}function Hm(e,t){if(e.length===1){const u=e[0];return`<span class="tip-label">Turn ${t}: ${u.label}</span><span class="tip-detail">${u.detail}</span>`}const n=e.map(u=>`<span class="tip-label">${u.label}</span><span class="tip-detail">${u.detail}</span>`).join("");return`<span class="tip-label">Turn ${t}</span>${n}`}function Kc(e,t){const n=t.findIndex(S=>S.entry.id===e.id);if(n<0)return null;const u=e.agentKey||"_default";let s=null;for(let S=n-1;S>=0;S--){const G=t[S].entry;if((G.agentKey||"_default")===u){s=G;break}}if(!s)return null;const o=s.composition||[],r=e.composition||[],i=s.contextInfo.totalTokens,a=e.contextInfo.totalTokens-i,f=new Set;for(const S of o)f.add(S.category);for(const S of r)f.add(S.category);const d=[];for(const S of f){const G=o.find(ae=>ae.category===S),Z=r.find(ae=>ae.category===S),K=G?G.tokens:0,J=Z?Z.tokens:0,me=J-K,H=ut[S]||{label:S};d.push({category:S,label:H.label,delta:me,prevTokens:K,currTokens:J})}const h=[];for(const S of[...d].sort((G,Z)=>Math.abs(Z.delta)-Math.abs(G.delta)))S.delta===0?h.push({type:"same",text:` ${S.label}: ${Ce(S.currTokens)} (unchanged)`,category:S.category,delta:S.delta}):S.prevTokens===0?h.push({type:"add",text:`+ ${S.label}: ${Ce(S.currTokens)} (new)`,category:S.category,delta:S.delta}):S.currTokens===0?h.push({type:"remove",text:`- ${S.label}: ${Ce(S.prevTokens)} (removed)`,category:S.category,delta:S.delta}):S.delta>0?h.push({type:"add",text:`+ ${S.label}: ${Ce(S.prevTokens)} → ${Ce(S.currTokens)} (+${Ce(S.delta)})`,category:S.category,delta:S.delta}):h.push({type:"remove",text:`- ${S.label}: ${Ce(S.prevTokens)} → ${Ce(S.currTokens)} (${Ce(S.delta)})`,category:S.category,delta:S.delta});const g=new Map;for(const[S,G]of Object.entries(pu))for(const Z of G)g.set(Z,S);const v=new Map,E=new Map;for(const S of d){const G=g.get(S.category)??"other";v.set(G,(v.get(G)??0)+S.delta);const Z=E.get(G);(!Z||Math.abs(S.delta)>Z.absDelta)&&E.set(G,{category:S.category,absDelta:Math.abs(S.delta)})}const k=Array.from(v.entries()).map(([S,G])=>{var Z,K;return{group:S,label:((Z=Tt[S])==null?void 0:Z.label)??S,delta:G,category:((K=E.get(S))==null?void 0:K.category)??""}}).filter(S=>S.delta!==0).sort((S,G)=>Math.abs(G.delta)-Math.abs(S.delta)),T=k.filter(S=>S.delta>0).slice(0,3),$=k.filter(S=>S.delta<0).slice(0,3);let R=0,D=0,P=0;for(const S of t)(S.entry.agentKey||"_default")===u&&P++,S.entry.id===s.id&&(R=P),S.entry.id===e.id&&(D=P);return{prevTurnNum:R,currTurnNum:D,delta:a,lines:h,topIncreases:T,topDecreases:$}}function _l(e,t){const n=t?"0.85":"0.35";return/opus/i.test(e)?`rgba(251, 146, 60, ${n})`:/sonnet/i.test(e)?`rgba(96, 165, 250, ${n})`:/haiku/i.test(e)?`rgba(167, 139, 250, ${n})`:/gpt/i.test(e)?`rgba(16, 185, 129, ${n})`:`rgba(148, 163, 184, ${n})`}function zo(e,t,n=3){return t===0?n:Math.max(n,Math.round(e/t*100))}function No(e,t=4){if(e===0)return[0];const n=e/t,u=Math.pow(10,Math.floor(Math.log10(n))),s=Math.ceil(n/u)*u,o=[];for(let r=0;r<=t;r++){const i=r*s;i<=e*1.1&&o.push(i)}return o}function jm(e){return e>30?Math.ceil(e/15):1}function qm(e){let t=0;return e.map(n=>(n.isMain&&t++,n.isMain?t:0))}function Vm(e,t){return`${t?"":"Sub "}${xn(e.contextInfo.model)}: ${Ce(e.contextInfo.totalTokens)} / ${Ct(e.costUsd)}`}function Um(e,t){const n=Gr(e),u=e.contextInfo.totalTokens,s=n.map(o=>`${o.key===t.key?"▸ ":" "}${o.label}: ${Ce(o.tokens)} (${o.pct.toFixed(1)}%)`);return s.push(` Total: ${Ce(u)}`),s.join(`
25
- `)}function yl(e,t){return t==="cost"?Ct(e):Ce(e)}function gr(e){if(!e.usage)return null;const t=vr(e);return t===0?null:e.usage.cacheReadTokens/t}function vr(e){return e.usage?e.usage.inputTokens+e.usage.cacheReadTokens+e.usage.cacheWriteTokens:0}function Wm(e){const t={turnsRemaining:null,growthPerTurn:0,sinceCompaction:0,contextLimit:0,currentTokens:0};if(e.length===0)return t;const n=e.filter(E=>E.isMain).map(E=>E.entry);if(n.length<2)return t;const s=n[n.length-1].contextLimit;if(s<=0)return t;let o=0;for(let E=1;E<n.length;E++){const k=n[E-1].contextInfo.totalTokens,T=n[E].contextInfo.totalTokens;k>0&&T<k*.75&&(o=E)}const r=n.slice(o);if(r.length<2)return t;const i=r[0].contextInfo.totalTokens,l=r[r.length-1].contextInfo.totalTokens,a=l-i,f=r.length-1,d=a/f,h=l,g=s-h;let v=null;return d>0&&(v=Math.floor(g/d),v<0&&(v=0)),{turnsRemaining:v,growthPerTurn:d,sinceCompaction:r.length,contextLimit:s,currentTokens:h}}function Km(e){var l,a;const t=Math.round(e.utilization*100),n=e.healthScore,u=[...e.composition].sort((f,d)=>d.tokens-f.tokens)[0],s=e.topDelta;let o="narrative-neutral",r=`Context is at ${t}% utilization.`;(n==null?void 0:n.rating)==="poor"||t>=85?(o="narrative-advisory",r=`Turn health is elevated risk (${n?n.overall+"/100":t+"% utilization"}).`):(n==null?void 0:n.rating)==="needs-work"||t>=65?(o="narrative-advisory",r=`Turn health shows moderate pressure (${n?n.overall+"/100":t+"% utilization"}).`):n&&(r=`Turn health is stable at ${n.overall}/100.`);const i=[];if(u&&i.push(`${((l=ut[u.category])==null?void 0:l.label)??u.category} is the largest share (${Math.round(u.pct)}%).`),s){const f=((a=ut[s.category])==null?void 0:a.label)??s.category,d=s.delta>0?"grew":"shrank";i.push(`${f} ${d} most vs previous main turn (${Ce(Math.abs(s.delta))}).`)}return{toneClass:o,headline:r,detail:i.join(" ")}}const Gm={Read:{paramKeys:["file_path","path"],kind:"read"},Write:{paramKeys:["file_path","path"],kind:"write"},Edit:{paramKeys:["file_path","path"],kind:"write"},MultiEdit:{paramKeys:["file_path","path"],kind:"write"},read_file:{paramKeys:["path","file_path"],kind:"read"},write_file:{paramKeys:["path","file_path"],kind:"write"},read:{paramKeys:["path","file_path"],kind:"read"},write:{paramKeys:["path","file_path"],kind:"write"},edit:{paramKeys:["path","file_path"],kind:"write"},replace:{paramKeys:["file_path","path"],kind:"write"},readFile:{paramKeys:["path","filePath","file_path"],kind:"read"},writeFile:{paramKeys:["path","filePath","file_path"],kind:"write"},editFile:{paramKeys:["path","filePath","file_path"],kind:"write"},create_file:{paramKeys:["path","file_path"],kind:"write"},patch:{paramKeys:["path","file_path"],kind:"write"}};function Zm(e){const t=Gm[e.name];if(!t)return null;const n=e.input;if(!n||typeof n!="object")return null;for(const u of t.paramKeys){const s=n[u];if(typeof s=="string"&&s.length>0)return{path:Jm(s),kind:t.kind}}return null}function Jm(e){let t=e.replace(/\/+/g,"/");return t.startsWith("./")&&(t=t.slice(2)),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t}function Gc(e,t){if(!t)return e;const n=t.endsWith("/")?t:t+"/";if(e.startsWith(n))return e.slice(n.length);const u=Ym(e);return u?"~/"+e.slice(u.length):e}function Ym(e){const t=e.match(/^(\/(?:home|Users)\/[^/]+\/)/);return t?t[1]:null}function Xm(e,t){const n=new Map;for(const u of e){if(!u.contentBlocks)continue;const o=u.contentBlocks.filter(r=>r.type==="tool_use").length>0?(u.tokens||0)/u.contentBlocks.length:0;for(const r of u.contentBlocks){if(r.type!=="tool_use")continue;const i=r,l=Zm(i);if(l&&i.id){const a=Gc(l.path,t);n.set(i.id,{path:a,kind:l.kind,tokens:Math.round(o)})}}}return n}function Zc(e,t){const n=new Set,u=new Map;function s(o){let r=u.get(o);return r||(r={path:o,tokens:0,reads:0,writes:0,toolResultTokens:0,toolCallTokens:0},u.set(o,r)),r}for(const o of e){const r=o.contextInfo.messages??[];if(r.length===0)continue;const i=Xm(r,t);for(const[l,a]of i){if(n.has(l))continue;n.add(l);const f=s(a.path);f.toolCallTokens+=a.tokens,f.tokens+=a.tokens,a.kind==="read"?f.reads++:f.writes++}for(const l of r){if(!l.contentBlocks)continue;const a=l.contentBlocks.filter(d=>d.type==="tool_result");if(a.length===0)continue;const f=a.length>0?(l.tokens||0)/a.length:0;for(const d of a){if(d.type!=="tool_result")continue;const h=d.tool_use_id,g=i.get(h);if(!g||!n.has(h))continue;const v=s(g.path),E=Math.round(f);v.toolResultTokens+=E,v.tokens+=E}}}return Array.from(u.values()).filter(o=>o.tokens>0).sort((o,r)=>r.tokens-o.tokens)}function Zr(e){const t=e.split("/");return t[t.length-1]||e}function xl(e){const t=e.lastIndexOf("/");return t<=0?"":e.slice(0,t)}const kl=["#3b82f6","#8b5cf6","#06b6d4","#10b981","#f59e0b","#ef4444","#ec4899","#14b8a6","#6366f1","#84cc16"];function br(e){return kl[e%kl.length]}const Qm=8e3,wl=.4;function ku(e,t){var n;return((n=e.find(u=>u.category===t))==null?void 0:n.tokens)??0}function eg(e){return e.reduce((t,n)=>t+n.tokens,0)}function tg(e){var n;const t=new Set;for(const u of e.contextInfo.tools??[]){const s=u,o=typeof s.name=="string"?s.name:typeof((n=s.function)==null?void 0:n.name)=="string"?s.function.name:null;o&&t.add(o)}return t}const _s={oversized_results:"#ef4444",repeated_system:"#6366f1",unused_tools:"#f59e0b",thinking_spill:"#8b5cf6"};function ng(e,t,n){const u=e.composition,s=eg(u);if(s===0)return{totalTokens:0,wasteTokens:0,wasteRatio:0,categories:[],unusedToolNames:[]};const o=[],r=ku(u,"tool_results"),i=Math.max(0,r-Qm);if(i>0&&o.push({id:"oversized_results",label:"Oversized results",tokens:i,pct:i/s,color:_s.oversized_results}),!t){const g=ku(u,"system_prompt")+ku(u,"system_injections");g>0&&o.push({id:"repeated_system",label:"System overhead",tokens:g,pct:g/s,color:_s.repeated_system})}const l=tg(e),a=[...l].filter(g=>!n.has(g));if(a.length>0&&l.size>0){const g=ku(u,"tool_definitions"),v=Math.round(g*(a.length/l.size));v>0&&o.push({id:"unused_tools",label:"Unused tool defs",tokens:v,pct:v/s,color:_s.unused_tools})}const f=ku(u,"thinking"),d=f/s>wl?Math.round(f-s*wl):0;d>0&&o.push({id:"thinking_spill",label:"Excess thinking",tokens:d,pct:d/s,color:_s.thinking_spill}),o.sort((g,v)=>v.tokens-g.tokens);const h=o.reduce((g,v)=>g+v.tokens,0);return{totalTokens:s,wasteTokens:h,wasteRatio:h/s,categories:o,unusedToolNames:a}}function ug(e){var t=0,n=e.children,u=n&&n.length;if(!u)t=1;else for(;--u>=0;)t+=n[u].value;e.value=t}function sg(){return this.eachAfter(ug)}function og(e,t){let n=-1;for(const u of this)e.call(t,u,++n,this);return this}function rg(e,t){for(var n=this,u=[n],s,o,r=-1;n=u.pop();)if(e.call(t,n,++r,this),s=n.children)for(o=s.length-1;o>=0;--o)u.push(s[o]);return this}function ig(e,t){for(var n=this,u=[n],s=[],o,r,i,l=-1;n=u.pop();)if(s.push(n),o=n.children)for(r=0,i=o.length;r<i;++r)u.push(o[r]);for(;n=s.pop();)e.call(t,n,++l,this);return this}function lg(e,t){let n=-1;for(const u of this)if(e.call(t,u,++n,this))return u}function ag(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,u=t.children,s=u&&u.length;--s>=0;)n+=u[s].value;t.value=n})}function cg(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function fg(e){for(var t=this,n=dg(t,e),u=[t];t!==n;)t=t.parent,u.push(t);for(var s=u.length;e!==n;)u.splice(s,0,e),e=e.parent;return u}function dg(e,t){if(e===t)return e;var n=e.ancestors(),u=t.ancestors(),s=null;for(e=n.pop(),t=u.pop();e===t;)s=e,e=n.pop(),t=u.pop();return s}function pg(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function hg(){return Array.from(this)}function mg(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function gg(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*vg(){var e=this,t,n=[e],u,s,o;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,u=e.children)for(s=0,o=u.length;s<o;++s)n.push(u[s]);while(n.length)}function Jr(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=yg)):t===void 0&&(t=_g);for(var n=new js(e),u,s=[n],o,r,i,l;u=s.pop();)if((r=t(u.data))&&(l=(r=Array.from(r)).length))for(u.children=r,i=l-1;i>=0;--i)s.push(o=r[i]=new js(r[i])),o.parent=u,o.depth=u.depth+1;return n.eachBefore(kg)}function bg(){return Jr(this).eachBefore(xg)}function _g(e){return e.children}function yg(e){return Array.isArray(e)?e[1]:null}function xg(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function kg(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function js(e){this.data=e,this.depth=this.height=0,this.parent=null}js.prototype=Jr.prototype={constructor:js,count:sg,each:og,eachAfter:ig,eachBefore:rg,find:lg,sum:ag,sort:cg,path:fg,ancestors:pg,descendants:hg,leaves:mg,links:gg,copy:bg,[Symbol.iterator]:vg};function wg(e){if(typeof e!="function")throw new Error;return e}function wu(){return 0}function Cu(e){return function(){return e}}function Cg(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function $g(e,t,n,u,s){for(var o=e.children,r,i=-1,l=o.length,a=e.value&&(u-t)/e.value;++i<l;)r=o[i],r.y0=n,r.y1=s,r.x0=t,r.x1=t+=r.value*a}function Eg(e,t,n,u,s){for(var o=e.children,r,i=-1,l=o.length,a=e.value&&(s-n)/e.value;++i<l;)r=o[i],r.x0=t,r.x1=u,r.y0=n,r.y1=n+=r.value*a}var Tg=(1+Math.sqrt(5))/2;function Sg(e,t,n,u,s,o){for(var r=[],i=t.children,l,a,f=0,d=0,h=i.length,g,v,E=t.value,k,T,$,R,D,P,S;f<h;){g=s-n,v=o-u;do k=i[d++].value;while(!k&&d<h);for(T=$=k,P=Math.max(v/g,g/v)/(E*e),S=k*k*P,D=Math.max($/S,S/T);d<h;++d){if(k+=a=i[d].value,a<T&&(T=a),a>$&&($=a),S=k*k*P,R=Math.max($/S,S/T),R>D){k-=a;break}D=R}r.push(l={value:k,dice:g<v,children:i.slice(f,d)}),l.dice?$g(l,n,u,s,E?u+=v*k/E:o):Eg(l,n,u,E?n+=g*k/E:s,o),E-=k,f=d}return r}const Dg=(function e(t){function n(u,s,o,r,i){Sg(t,u,s,o,r,i)}return n.ratio=function(u){return e((u=+u)>1?u:1)},n})(Tg);function Ag(){var e=Dg,t=!1,n=1,u=1,s=[0],o=wu,r=wu,i=wu,l=wu,a=wu;function f(h){return h.x0=h.y0=0,h.x1=n,h.y1=u,h.eachBefore(d),s=[0],t&&h.eachBefore(Cg),h}function d(h){var g=s[h.depth],v=h.x0+g,E=h.y0+g,k=h.x1-g,T=h.y1-g;k<v&&(v=k=(v+k)/2),T<E&&(E=T=(E+T)/2),h.x0=v,h.y0=E,h.x1=k,h.y1=T,h.children&&(g=s[h.depth+1]=o(h)/2,v+=a(h)-g,E+=r(h)-g,k-=i(h)-g,T-=l(h)-g,k<v&&(v=k=(v+k)/2),T<E&&(E=T=(E+T)/2),e(h,v,E,k,T))}return f.round=function(h){return arguments.length?(t=!!h,f):t},f.size=function(h){return arguments.length?(n=+h[0],u=+h[1],f):[n,u]},f.tile=function(h){return arguments.length?(e=wg(h),f):e},f.padding=function(h){return arguments.length?f.paddingInner(h).paddingOuter(h):f.paddingInner()},f.paddingInner=function(h){return arguments.length?(o=typeof h=="function"?h:Cu(+h),f):o},f.paddingOuter=function(h){return arguments.length?f.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):f.paddingTop()},f.paddingTop=function(h){return arguments.length?(r=typeof h=="function"?h:Cu(+h),f):r},f.paddingRight=function(h){return arguments.length?(i=typeof h=="function"?h:Cu(+h),f):i},f.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:Cu(+h),f):l},f.paddingLeft=function(h){return arguments.length?(a=typeof h=="function"?h:Cu(+h),f):a},f}const Fg={key:0,class:"panel panel--hero"},Mg={class:"panel-head"},Ig={class:"panel-title"},Pg={class:"panel-sub"},Lg={class:"mode-toggle"},Rg={class:"panel-body"},Og={key:0,class:"treemap"},zg=["onClick"],Ng={class:"tm-label"},Bg={class:"tm-val"},Hg={key:1,class:"tm-label-compact"},jg={key:2,class:"tm-pct"},qg={key:1,class:"treemap treemap-simple"},Vg=["onClick"],Ug={class:"tm-label"},Wg={class:"tm-val"},Kg={key:2,class:"treemap"},Gg=["onClick"],Zg={class:"tm-label"},Jg={class:"tm-val"},Yg={key:1,class:"tm-label-compact"},Xg={key:2,class:"tm-pct"},Qg={class:"legend"},e2={class:"legend-pct"},t2={key:0,class:"legend-item"},n2={class:"legend-file-path"},u2={class:"legend-pct"},s2={key:0,class:"legend-item"},o2={class:"legend-pct"},Cl=5,$l=6,r2=tt({__name:"CompositionTreemap",props:{entry:{},turnNum:{}},emits:["categoryClick","toolClick","fileClick","explain"],setup(e,{emit:t}){const n=e,u=Ft(),s=t,o=he("detailed"),r=he(null),i=O(()=>{var oe;const H=((oe=n.entry)==null?void 0:oe.composition)||[],ae=[];for(const[M,ue]of Object.entries(pu)){let ce=0;for(const q of ue){const re=H.find(_e=>_e.category===q);re&&(ce+=re.tokens)}if(ce>0){const q=Tt[M];ae.push({key:M,label:q.label,color:q.color,tokens:ce})}}return ae}),l=O(()=>{const H=n.entry;return H?H.composition.filter(ae=>ae.tokens>0).map(ae=>{var oe,M;return{key:ae.category,label:((oe=ut[ae.category])==null?void 0:oe.label)??ae.category,color:((M=ut[ae.category])==null?void 0:M.color)??"#4b5563",tokens:ae.tokens,category:ae.category}}):[]});function a(H){const ae=["#10b981","#34d399","#14b8a6","#2dd4bf","#10b981","#06b6d4","#0ea5e9"];return ae[H%ae.length]}const f=O(()=>{const H=n.entry;if(!H)return[];const ae=H.contextInfo.messages||[],oe=po(ae),M=new Map;for(const ue of ae){if(It(ue)!=="tool_results")continue;const ce=(ue.contentBlocks||[]).filter(re=>re.type==="tool_result");if(ce.length===0)continue;const q=(ue.tokens||0)/ce.length;for(const re of ce){const _e=re.tool_use_id||"unknown",N=oe[_e]||`tool:${_e.slice(0,8)}`;M.set(N,(M.get(N)||0)+q)}}return Array.from(M.entries()).sort((ue,ce)=>ce[1]-ue[1]).map(([ue,ce],q)=>({key:`tool-${ue}-${q}`,label:ue,color:a(q),tokens:Math.max(1,Math.round(ce)),category:"tool_results",toolName:ue}))}),d=O(()=>r.value==="tool_results"&&f.value.length>0?f.value:l.value),h=O(()=>{const H=u.selectedSession;if(!H||H.entries.length===0)return[];const ae=H.workingDirectory;return Zc(H.entries,ae).map((M,ue)=>({key:`file-${M.path}-${ue}`,label:Zr(M.path),color:br(ue),tokens:M.tokens,category:"files",toolName:M.path}))}),g=O(()=>D(h.value)),v=O(()=>h.value.length>0),E=O(()=>d.value.slice(0,Cl)),k=O(()=>d.value.slice(Cl)),T=O(()=>k.value.map(H=>`${H.label}: ${me(H.tokens)}`).join(`
26
- `)),$=O(()=>h.value.slice(0,$l)),R=O(()=>h.value.slice($l).map(H=>`${H.toolName||H.label}: ${me(H.tokens)}`).join(`
27
- `));function D(H){if(H.length===0)return[];const ae=H.reduce((ue,ce)=>ue+ce.tokens,0),oe=Jr({key:"root",label:"root",color:"#000000",tokens:0,children:H}).sum(ue=>ue.children&&ue.children.length>0?0:Math.max(0,ue.tokens||0));return Ag().size([100,100]).paddingInner(1).round(!0)(oe).leaves().map(ue=>{const ce=ue.data;return{key:ce.key,label:ce.label,color:ce.color,tokens:ce.tokens,category:ce.category,x:ue.x0,y:ue.y0,w:ue.x1-ue.x0,h:ue.y1-ue.y0,pct:ae>0?ce.tokens/ae*100:0}})}const P=O(()=>D(d.value));function S(H){if(r.value===null&&H.category==="tool_results"&&f.value.length>1){r.value="tool_results";return}if(r.value==="tool_results"&&H.toolName){s("toolClick",H.toolName);return}s("categoryClick",H.category||"tool_results")}function G(H){const ae=n.entry;if(!ae)return;const oe=pu[H]||[];if(oe.length===0)return;let M=oe[0],ue=-1;for(const ce of oe){const q=ae.composition.find(_e=>_e.category===ce),re=(q==null?void 0:q.tokens)??0;re>ue&&(ue=re,M=ce)}s("categoryClick",M)}function Z(H){H.toolName&&s("fileClick",H.toolName)}function K(){r.value=null}const J=O(()=>{var H;return((H=n.entry)==null?void 0:H.contextInfo.totalTokens)??0});function me(H){return J.value===0?"":Math.round(H/J.value*100)+"%"}return Ge(()=>{var H;return(H=n.entry)==null?void 0:H.id},()=>{r.value=null}),(H,ae)=>{const oe=jn("tooltip");return e.entry.composition.length>0?(y(),x("section",Fg,[c("div",Mg,[c("span",Ig,[ae[5]||(ae[5]=we("Composition ",-1)),c("button",{class:"info-btn",onClick:ae[0]||(ae[0]=M=>s("explain"))},[...ae[4]||(ae[4]=[c("i",{class:"i-carbon-information"},null,-1)])])]),c("span",Pg,"Turn "+A(e.turnNum)+" · "+A(X(Ce)(e.entry.composition.reduce((M,ue)=>M+ue.tokens,0))),1),o.value==="detailed"&&r.value?(y(),x("button",{key:0,class:"treemap-back",onClick:K}," Back to categories ")):se("",!0),c("div",Lg,[c("button",{class:le({on:o.value==="detailed"}),onClick:ae[1]||(ae[1]=M=>o.value="detailed")},"Detail",2),c("button",{class:le({on:o.value==="simple"}),onClick:ae[2]||(ae[2]=M=>o.value="simple")},"Simple",2),v.value?(y(),x("button",{key:0,class:le({on:o.value==="files"}),onClick:ae[3]||(ae[3]=M=>o.value="files")},"Files",2)):se("",!0)])]),c("div",Rg,[o.value==="detailed"?(y(),x("div",Og,[(y(!0),x(de,null,Te(P.value,M=>je((y(),x("button",{key:M.key,class:"tm-block tm-block-2d",style:Se({left:M.x+"%",top:M.y+"%",width:M.w+"%",height:M.h+"%",background:M.color}),onClick:ue=>S(M)},[M.w>=18&&M.h>=16?(y(),x(de,{key:0},[c("span",Ng,A(M.label),1),c("span",Bg,A(X(Ce)(M.tokens)),1)],64)):M.w>=12&&M.h>=12?(y(),x("span",Hg,A(M.label.slice(0,8))+A(M.label.length>8?"…":""),1)):M.w>=8&&M.h>=8?(y(),x("span",jg,A(Math.round(M.pct))+"%",1)):se("",!0)],12,zg)),[[oe,`${M.label}: ${M.tokens.toLocaleString()} (${M.pct.toFixed(1)}%)`]])),128))])):o.value==="simple"?(y(),x("div",qg,[(y(!0),x(de,null,Te(i.value,M=>je((y(),x("div",{key:M.key,class:le(["tm-block tm-block-simple",{"tm-block-narrow":M.tokens/e.entry.composition.reduce((ue,ce)=>ue+ce.tokens,0)<.15}]),style:Se({flex:M.tokens,background:M.color}),onClick:ue=>G(M.key)},[c("span",Ug,A(M.label),1),c("span",Wg,A(X(Ce)(M.tokens)),1)],14,Vg)),[[oe,`${M.label}: ${M.tokens.toLocaleString()}`]])),128))])):o.value==="files"?(y(),x("div",Kg,[(y(!0),x(de,null,Te(g.value,M=>je((y(),x("button",{key:M.key,class:"tm-block tm-block-2d",style:Se({left:M.x+"%",top:M.y+"%",width:M.w+"%",height:M.h+"%",background:M.color}),onClick:ue=>Z(M)},[M.w>=18&&M.h>=16?(y(),x(de,{key:0},[c("span",Zg,A(M.label),1),c("span",Jg,A(X(Ce)(M.tokens)),1)],64)):M.w>=12&&M.h>=12?(y(),x("span",Yg,A(M.label.slice(0,8))+A(M.label.length>8?"…":""),1)):M.w>=8&&M.h>=8?(y(),x("span",Xg,A(Math.round(M.pct))+"%",1)):se("",!0)],12,Gg)),[[oe,`${M.toolName||M.label}: ${M.tokens.toLocaleString()} (${M.pct.toFixed(1)}%)`]])),128))])):se("",!0),c("div",Qg,[o.value==="detailed"?(y(),x(de,{key:0},[(y(!0),x(de,null,Te(E.value,M=>(y(),x("span",{key:`legend-${M.key}`,class:"legend-item"},[c("span",{class:"legend-dot",style:Se({background:M.color})},null,4),we(" "+A(M.label)+" ",1),c("span",e2,A(me(M.tokens)),1)]))),128)),d.value.length>E.value.length?je((y(),x("span",t2,[we(" +"+A(d.value.length-E.value.length)+" more ",1)])),[[oe,T.value]]):se("",!0)],64)):o.value==="files"?(y(),x(de,{key:1},[(y(!0),x(de,null,Te($.value,M=>(y(),x("span",{key:`legend-file-${M.key}`,class:"legend-item"},[c("span",{class:"legend-dot",style:Se({background:M.color})},null,4),je((y(),x("span",n2,[we(A(M.label),1)])),[[oe,M.toolName||M.label]]),c("span",u2,A(me(M.tokens)),1)]))),128)),h.value.length>$.value.length?je((y(),x("span",s2,[we(" +"+A(h.value.length-$.value.length)+" more ",1)])),[[oe,R.value]]):se("",!0)],64)):(y(!0),x(de,{key:2},Te(i.value,M=>(y(),x("span",{key:M.key,class:"legend-item"},[c("span",{class:"legend-dot",style:Se({background:M.color})},null,4),we(" "+A(M.label)+" ",1),c("span",o2,A(me(M.tokens)),1)]))),128))])])])):se("",!0)}}}),i2=rt(r2,[["__scopeId","data-v-65684877"]]),l2={key:0,class:"panel panel--secondary"},a2={class:"panel-head"},c2={class:"panel-sub"},f2={class:"panel-body diff-body"},d2={key:0,class:"diff-tapes"},p2={class:"diff-tape-row"},h2={class:"diff-tape-label"},m2={class:"diff-tape-track"},g2={class:"diff-tape-val"},v2={class:"diff-tape-row"},b2={class:"diff-tape-label"},_2={class:"diff-tape-track"},y2={class:"diff-tape-val"},x2={key:1,class:"diff-summary-row"},k2={key:0,class:"diff-summary-group"},w2={class:"diff-summary-label"},C2=["onClick"],$2=["onClick"],E2={key:0,class:"diff-summary-group"},T2={class:"diff-summary-label"},S2=["onClick"],D2={key:1,class:"diff-summary-group"},A2={class:"diff-summary-label"},F2=["onClick"],M2={key:2,class:"diff-hidden-wrap"},I2={class:"diff-hidden-note"},P2=["onClick"],L2={key:1,class:"diff-empty"},R2=2e3,O2=tt({__name:"ContextDiffPanel",props:{diffData:{},currentEntry:{default:null},previousEntry:{default:null},showTapes:{type:Boolean,default:!1},hideUnchanged:{type:Boolean,default:!1},summaryMode:{default:"split"},combinedLabel:{default:"Drivers"},growthLabel:{default:"Growth drivers"},shrinkLabel:{default:"Shrink drivers"},deltaTone:{default:"good"},showWhenEmpty:{type:Boolean,default:!1},emptyText:{default:"First turn — no previous context."}},emits:["categoryClick"],setup(e,{emit:t}){const n=e,u=t,s=O(()=>!!n.diffData||n.showWhenEmpty),o=O(()=>{const g=n.diffData;return g?n.hideUnchanged?g.lines.filter(v=>v.type!=="same"):g.lines:[]}),r=O(()=>{const g=n.diffData,v=n.currentEntry;if(!g||!v)return[];const E=new Map(v.composition.map(k=>[k.category,k.tokens]));return g.lines.filter(k=>k.type==="same").map(k=>{var T;return{category:k.category,label:((T=ut[k.category])==null?void 0:T.label)??k.category,tokens:E.get(k.category)??0}}).sort((k,T)=>T.tokens-k.tokens)}),i=O(()=>r.value.length===0?"":r.value.map(g=>`${g.label}: ${Ce(g.tokens)}`).join(`
28
- `)),l=O(()=>{const g=n.diffData;if(!g)return"var(--text-dim)";const v=g.delta>=0;return n.deltaTone==="bad"?v?"var(--accent-red)":"var(--accent-green)":v?"var(--accent-green)":"var(--accent-red)"});function a(g){return Math.abs(g)>=R2}function f(g,v){return a(g)?v==="up"?"diff-tone-up":"diff-tone-down":"diff-tone-muted"}function d(g){return g.type==="same"?"diff-tone-muted":g.type==="add"?f(g.delta,"up"):f(g.delta,"down")}function h(g){u("categoryClick",g)}return(g,v)=>{const E=jn("tooltip");return s.value?(y(),x("section",l2,[c("div",a2,[v[0]||(v[0]=c("span",{class:"panel-title"},"Context Diff",-1)),e.diffData?(y(),x(de,{key:0},[c("span",c2,"Turn "+A(e.diffData.prevTurnNum)+" → "+A(e.diffData.currTurnNum),1),c("span",{class:"diff-delta",style:Se({color:l.value})},A(e.diffData.delta>=0?"+":"")+A(X(Ce)(e.diffData.delta)),5)],64)):se("",!0)]),c("div",f2,[e.diffData?(y(),x(de,{key:0},[e.showTapes&&e.currentEntry&&e.previousEntry?(y(),x("div",d2,[c("div",p2,[c("span",h2,"T"+A(e.diffData.prevTurnNum),1),c("div",m2,[(y(!0),x(de,null,Te(e.previousEntry.composition,k=>{var T;return y(),x("div",{key:"prev-"+k.category,class:"diff-tape-seg",style:Se({flex:k.tokens,background:((T=X(ut)[k.category])==null?void 0:T.color)??"#475569"})},null,4)}),128))]),c("span",g2,A(X(Ce)(e.previousEntry.contextInfo.totalTokens)),1)]),c("div",v2,[c("span",b2,"T"+A(e.diffData.currTurnNum),1),c("div",_2,[(y(!0),x(de,null,Te(e.currentEntry.composition,k=>{var T;return y(),x("div",{key:"curr-"+k.category,class:"diff-tape-seg",style:Se({flex:k.tokens,background:((T=X(ut)[k.category])==null?void 0:T.color)??"#475569"})},null,4)}),128))]),c("span",y2,A(X(Ce)(e.currentEntry.contextInfo.totalTokens)),1)])])):se("",!0),e.diffData.topIncreases.length>0||e.diffData.topDecreases.length>0?(y(),x("div",x2,[e.summaryMode==="combined"?(y(),x("div",k2,[c("span",w2,A(e.combinedLabel),1),(y(!0),x(de,null,Te(e.diffData.topIncreases,k=>(y(),x("button",{key:"inc-"+k.group,class:le(["diff-summary-chip",f(k.delta,"up")]),onClick:T=>h(k.category)},A(k.label)+" +"+A(X(Ce)(k.delta)),11,C2))),128)),(y(!0),x(de,null,Te(e.diffData.topDecreases,k=>(y(),x("button",{key:"dec-"+k.group,class:le(["diff-summary-chip",f(k.delta,"down")]),onClick:T=>h(k.category)},A(k.label)+" "+A(X(Ce)(k.delta)),11,$2))),128))])):(y(),x(de,{key:1},[e.diffData.topIncreases.length>0?(y(),x("div",E2,[c("span",T2,A(e.growthLabel),1),(y(!0),x(de,null,Te(e.diffData.topIncreases,k=>(y(),x("button",{key:"inc-"+k.group,class:le(["diff-summary-chip",f(k.delta,"up")]),onClick:T=>h(k.category)},A(k.label)+" +"+A(X(Ce)(k.delta)),11,S2))),128))])):se("",!0),e.diffData.topDecreases.length>0?(y(),x("div",D2,[c("span",A2,A(e.shrinkLabel),1),(y(!0),x(de,null,Te(e.diffData.topDecreases,k=>(y(),x("button",{key:"dec-"+k.group,class:le(["diff-summary-chip",f(k.delta,"down")]),onClick:T=>h(k.category)},A(k.label)+" "+A(X(Ce)(k.delta)),11,F2))),128))])):se("",!0)],64))])):se("",!0),e.hideUnchanged&&r.value.length>0?(y(),x("div",M2,[je((y(),x("span",I2,[we(A(r.value.length)+" unchanged "+A(r.value.length===1?"category":"categories")+" hidden ",1)])),[[E,i.value]])])):se("",!0),(y(!0),x(de,null,Te(o.value,(k,T)=>(y(),x("button",{key:"line-"+T,class:le(["diff-line",["diff-"+k.type,d(k)]]),onClick:$=>h(k.category)},A(k.text),11,P2))),128))],64)):(y(),x("span",L2,A(e.emptyText),1))])])):se("",!0)}}}),Jc=rt(O2,[["__scopeId","data-v-f23cde3c"]]),z2={key:0,class:"panel panel--primary"},N2={class:"panel-head"},B2={key:0,class:"finding-count"},H2={key:0,class:"audit-row"},j2=["onClick"],q2={class:"rec-content"},V2={class:"rec-title"},U2=tt({__name:"HealthFindings",props:{entry:{},recommendations:{},auditTooltip:{type:Function}},emits:["recommendationClick"],setup(e,{emit:t}){const n=t;function u(s){s.messageIndex!=null&&n("recommendationClick",s)}return(s,o)=>{const r=jn("tooltip");return e.entry.healthScore||e.recommendations.length>0?(y(),x("section",z2,[c("div",N2,[o[1]||(o[1]=c("span",{class:"panel-title"},"Findings",-1)),e.recommendations.length?(y(),x("span",B2,A(e.recommendations.length),1)):se("",!0)]),e.entry.healthScore?(y(),x("div",H2,[(y(!0),x(de,null,Te(e.entry.healthScore.audits,i=>je((y(),x("span",{key:i.id,class:le(["audit-chip",i.score>=90?"audit-good":i.score>=50?"audit-warn":"audit-bad"])},[we(A(i.name)+" ",1),c("b",null,A(i.score),1)],2)),[[r,e.auditTooltip(i)]])),128))])):se("",!0),e.recommendations.length>0?(y(),x("div",{key:1,class:le(["panel-body rec-list",{"rec-list--scroll":e.recommendations.length>3}])},[(y(!0),x(de,null,Te(e.recommendations,(i,l)=>(y(),x("div",{key:l,class:le(["rec",{"rec-clickable":i.messageIndex!=null}]),onClick:a=>i.messageIndex!=null&&u(i)},[c("i",{class:le(["rec-icon",[`sev-${i.severity}`,i.severity==="high"?"i-carbon-warning-alt":i.severity==="med"?"i-carbon-information":"i-carbon-checkmark"]])},null,2),c("div",q2,[c("div",V2,A(i.title),1),c("div",{class:"rec-detail",onClick:o[0]||(o[0]=wt(()=>{},["stop"]))},A(i.detail),1)]),c("span",{class:le(["rec-impact",`sev-${i.severity}`])},A(i.impact),3)],10,j2))),128))],2)):se("",!0)])):se("",!0)}}}),W2=rt(U2,[["__scopeId","data-v-855dfc40"]]),K2={class:"explain-header"},G2={class:"explain-title"},Z2={class:"explain-tabs"},J2={class:"explain-body"},Y2=tt({__name:"ExplainPanel",props:{open:{type:Boolean},section:{}},emits:["close"],setup(e,{emit:t}){const n=e,u=t,s=he("health");Ge(()=>n.section,i=>{i&&(s.value=i)});function o(){u("close")}function r(i){i.stopPropagation()}return(i,l)=>(y(),_t(Ef,{to:"body"},[Le(Qt,{name:"explain"},{default:st(()=>[e.open?(y(),x("div",{key:0,class:"explain-overlay",onClick:o},[c("aside",{class:"explain-panel",onClick:r},[c("header",K2,[c("h2",G2,[l[3]||(l[3]=c("i",{class:"i-carbon-information"},null,-1)),we(" "+A(s.value==="health"?"Health Score":"Composition"),1)]),c("button",{class:"explain-close",onClick:l[0]||(l[0]=a=>u("close"))},[...l[4]||(l[4]=[c("i",{class:"i-carbon-close"},null,-1)])])]),c("nav",Z2,[c("button",{class:le(["explain-tab",{active:s.value==="health"}]),onClick:l[1]||(l[1]=a=>s.value="health")},"Health",2),c("button",{class:le(["explain-tab",{active:s.value==="composition"}]),onClick:l[2]||(l[2]=a=>s.value="composition")},"Composition",2)]),c("div",J2,[s.value==="health"?(y(),x(de,{key:0},[l[5]||(l[5]=c("p",{class:"explain-intro"}," The health score (0-100) estimates how efficiently this turn uses the context window. It is a weighted average of five audits. A higher score means more room for the conversation to grow. ",-1)),l[6]||(l[6]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"30%"),we(" Context Utilization ")]),c("p",null,"How much of the model's context window is used. Below 50% scores well. Above 80% starts losing points rapidly. Near-limit turns score near zero.")],-1)),l[7]||(l[7]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"25%"),we(" Tool Results ")]),c("p",null,"Whether tool results are proportionally sized. Large tool results (file contents, search results) can dominate the context. Flagged when a single result exceeds 20% of total tokens.")],-1)),l[8]||(l[8]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"20%"),we(" Tool Definitions ")]),c("p",null,"Ratio of tool definitions to total context. If many defined tools go unused across the session, the definitions are wasting space. Also penalised when tool definitions exceed 30% of tokens.")],-1)),l[9]||(l[9]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"15%"),we(" Growth Rate ")]),c("p",null,"How much the context grew since the previous turn. Gradual growth is healthy. A sudden spike (more than 30% of the window in one turn) suggests a large paste or tool result.")],-1)),l[10]||(l[10]=c("div",{class:"explain-audit"},[c("div",{class:"audit-name"},[c("span",{class:"audit-weight"},"10%"),we(" Thinking Overhead ")]),c("p",null,"Proportion of tokens spent on thinking/reasoning blocks. Some thinking is fine, but when it dominates (over 40%) it can crowd out conversation context.")],-1)),l[11]||(l[11]=c("div",{class:"explain-caveat"},[c("i",{class:"i-carbon-warning-alt"}),c("p",null,"This score is a heuristic, not a quality judgment. A low score does not mean the conversation is bad. It highlights patterns worth reviewing.")],-1))],64)):se("",!0),s.value==="composition"?(y(),x(de,{key:1},[l[12]||(l[12]=c("p",{class:"explain-intro"}," The composition treemap shows what types of content fill the context window and how much space each takes. ",-1)),l[13]||(l[13]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#2563eb"}}),c("div",null,[c("strong",null,"System prompt"),c("p",null,"The model's instructions. Set once at the start. Usually stable across turns.")])],-1)),l[14]||(l[14]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#db2777"}}),c("div",null,[c("strong",null,"Tool definitions"),c("p",null,"JSON schemas describing available tools/functions. Sent with every request. Can be large when many tools are defined.")])],-1)),l[15]||(l[15]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#059669"}}),c("div",null,[c("strong",null,"Tool results"),c("p",null,"Data returned from tool calls (file reads, search results, command output). Often the fastest-growing category.")])],-1)),l[16]||(l[16]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#ec4899"}}),c("div",null,[c("strong",null,"Tool calls"),c("p",null,"The model's requests to invoke tools. Includes function name and arguments.")])],-1)),l[17]||(l[17]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#d97706"}}),c("div",null,[c("strong",null,"Assistant text"),c("p",null,"The model's natural language responses. The actual conversation output.")])],-1)),l[18]||(l[18]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#10b981"}}),c("div",null,[c("strong",null,"User text"),c("p",null,"Your messages to the model. Typically small relative to the rest.")])],-1)),l[19]||(l[19]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#8b5cf6"}}),c("div",null,[c("strong",null,"Thinking"),c("p",null,"Extended thinking/reasoning blocks. These are billed but don't persist in the context across turns (for most providers).")])],-1)),l[20]||(l[20]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#6366f1"}}),c("div",null,[c("strong",null,"System injections"),c("p",null,"Content the tool framework inserts alongside the system prompt (reminders, rules, tool instructions). Distinct from the main system prompt.")])],-1)),l[21]||(l[21]=c("div",{class:"explain-category"},[c("span",{class:"cat-dot",style:{background:"#4b5563"}}),c("div",null,[c("strong",null,"Images / Cache markers / Other"),c("p",null,"Image tokens (estimated by resolution), cache control markers, and anything that doesn't fit the categories above.")])],-1))],64)):se("",!0)])])])):se("",!0)]),_:1})]))}}),X2=rt(Y2,[["__scopeId","data-v-758e473e"]]),Q2={key:0,class:"overview"},ev={class:"narrative-copy"},tv={class:"narrative-title"},nv={class:"narrative-detail"},uv={class:"narrative-actions"},sv={class:"stats-grid"},ov={class:"stat-detail"},rv={key:1,class:"stat-tape"},iv={key:2,class:"util-track"},lv={class:"stat-card"},av={class:"stat-readout green"},cv={class:"stat-detail"},fv={key:0,class:"stat-detail stat-detail--bloat"},dv={class:"stat-card"},pv={class:"stat-readout"},hv={key:0,class:"stat-detail"},mv={key:0,class:"stat-card stat-card--health"},gv={class:"health-ring"},vv={width:"48",height:"48",viewBox:"0 0 48 48"},bv=["stroke","stroke-dasharray"],_v=["fill"],yv={class:"stat-label"},xv={key:1,class:"stat-card"},kv={class:"meta-row"},wv={key:0},Cv={key:1},$v={key:2},Ev={key:1,class:"panel panel--overhead"},Tv={class:"panel-head"},Sv={class:"overhead-bar-wrap"},Dv={class:"overhead-bar"},Av=["title"],Fv={class:"overhead-cats"},Mv={class:"overhead-name"},Iv={class:"overhead-tok"},Pv={class:"overhead-pct"},Lv={key:0,class:"overhead-unused"},Rv={key:2,class:"panel panel--secondary"},Ov={class:"panel-head"},zv={class:"panel-sub"},Nv={class:"panel-body msg-preview"},Bv=["onClick"],Hv={class:"msg-group-name"},jv={class:"msg-group-count"},qv={class:"msg-group-tokens"},Vv={class:"msg-group-pct"},Uv={class:"msg-group-bar"},Wv={key:3,class:"panel panel--secondary"},Kv={class:"panel-head"},Gv={class:"panel-sub"},Zv={class:"panel-body file-preview"},Jv={class:"file-list"},Yv=["onClick"],Xv={class:"file-path"},Qv={class:"file-dir"},eb={class:"file-ops"},tb={key:0,class:"file-op file-op--read"},nb={key:1,class:"file-op file-op--write"},ub={class:"file-tokens"},sb={class:"file-pct"},ob={class:"file-bar"},rb=tt({__name:"OverviewTab",setup(e){const t=he(!1),n=he(null);function u(w){n.value=w,t.value=!0}const s=Ft(),o=O(()=>s.selectedEntry),r=O(()=>s.selectedSession),i=O(()=>{var W,j;const w=r.value;if(!w||w.entries.length===0)return null;let L=0;for(const C of w.entries){if(C.httpStatus!==null&&(C.httpStatus<200||C.httpStatus>=300))continue;if(C.costUsd===null){L=null;continue}const I=C.composition,b=C.contextInfo.totalTokens;if(b===0)continue;const p=((W=I.find(ie=>ie.category==="tool_results"))==null?void 0:W.tokens)??0,m=Math.max(0,p-8e3)/b,_=((j=I.find(ie=>ie.category==="thinking"))==null?void 0:j.tokens)??0,F=_/b>.4?(_-b*.4)/b:0,z=Math.min(1,m+F);L!==null&&(L+=C.costUsd*z)}return L!==null?Math.round(L*1e4)/1e4:null}),l=O(()=>{var j;const w=o.value;if(!w)return null;const L=new Set;for(const C of((j=r.value)==null?void 0:j.entries)??[])for(const I of C.contextInfo.messages??[])if(I.contentBlocks)for(const b of I.contentBlocks){const p=b;p.type==="tool_use"&&typeof p.name=="string"&&L.add(p.name)}const W=v.value<=1;return ng(w,W,L)}),a=O(()=>r.value?[...r.value.entries].reverse():[]),f=O(()=>{const w=o.value;return!w||!w.contextLimit?0:w.contextInfo.totalTokens/w.contextLimit}),d=O(()=>{const w=f.value;return w>=.9?"var(--accent-red)":w>=.7?"var(--accent-amber)":"var(--accent-blue)"}),h=O(()=>{const w=o.value;if(!(w!=null&&w.usage))return null;const L=w.usage.inputTokens+w.usage.cacheReadTokens+w.usage.cacheWriteTokens;return L===0?null:w.usage.cacheReadTokens/L}),g=O(()=>vn(a.value)),v=O(()=>{const w=o.value;if(!w)return 0;const L=g.value,W=L.findIndex(j=>j.entry.id===w.id);return W<0?0:L.slice(0,W+1).reduce((j,C)=>j+(C.isMain?1:0),0)}),E=O(()=>{const w=o.value;if(!w)return[];const L=a.value,W=g.value;return Wc(w,L,W)}),k=O(()=>{const w=o.value;if(!w)return null;const L=g.value,W=L.findIndex(j=>j.entry.id===w.id);if(W<0)return null;for(let j=W-1;j>=0;j--)if(L[j].isMain)return L[j].entry;return null}),T=O(()=>{const w=o.value,L=k.value;if(!w||!L)return[];const W=new Map(L.composition.map(I=>[I.category,I.tokens])),j=new Map(w.composition.map(I=>[I.category,I.tokens])),C=new Set([...W.keys(),...j.keys()]);return Array.from(C).map(I=>{const b=W.get(I)??0,p=j.get(I)??0;return{category:I,delta:p-b}}).filter(I=>I.delta!==0).sort((I,b)=>Math.abs(b.delta)-Math.abs(I.delta))}),$=O(()=>{var C;const w=o.value;if(!((C=w==null?void 0:w.composition)!=null&&C.length))return null;const L=w.composition.reduce((I,b)=>I+b.tokens,0);if(L===0)return null;const W={};for(const[I,b]of Object.entries(pu))for(const p of b)W[p]=I;const j=new Map;for(const I of w.composition){const b=W[I.category]??I.category;j.set(b,(j.get(b)||0)+I.tokens)}return[...j.entries()].sort((I,b)=>b[1]-I[1]).map(([I,b])=>{var p;return{key:I,color:((p=Tt[I])==null?void 0:p.color)??"#475569",pct:b/L*100}})}),R=O(()=>{const w=o.value;return!w||g.value.length===0?null:Kc(w,g.value)}),D=O(()=>{var w;return((w=o.value)==null?void 0:w.contextInfo.messages)||[]}),P=O(()=>Uc(D.value)),S=O(()=>P.value.reduce((w,L)=>w+L.tokens,0)),G=O(()=>{var w;return((w=o.value)==null?void 0:w.contextInfo.totalTokens)??0}),Z=O(()=>{const w=o.value;return w?Km({utilization:f.value,healthScore:w.healthScore,composition:w.composition,topDelta:T.value[0]??null}):null});function K(w){s.setInspectorTab(w)}function J(){s.setInspectorTab("messages")}function me(w,L=!0){J(),s.focusMessageCategory(w,L)}function H(){J()}function ae(w){J(),s.focusMessageTool("tool_results",w)}function oe(w){w.messageIndex!=null&&(J(),s.focusMessageByIndex(w.messageIndex))}function M(w){if(!(/growth/i.test(w.id)||/growth/i.test(w.name)))return w.description;const W=w.description||"";if(!/first turn/i.test(W)||v.value<=1)return W;const j=o.value,C=k.value;if(!j||!C||!j.contextLimit)return W;const I=j.contextInfo.totalTokens-C.contextInfo.totalTokens,b=Math.abs(I),p=b/j.contextLimit*100;return`Compared with previous main turn, context ${I>=0?"grew":"shrunk"} by ${Ce(b)} (${p.toFixed(1)}% of limit).`}function ue(w){return Dh(w)}function ce(w){return Ah(w)}function q(w){return G.value>0?Math.round(w/G.value*100):0}function re(w){return G.value>0?`${w/G.value*100}%`:"0%"}const _e=O(()=>{const w=r.value;if(!w||w.entries.length===0)return[];const L=w.workingDirectory;return Zc(w.entries,L)}),N=O(()=>_e.value.reduce((w,L)=>w+L.tokens,0));function ne(w){return N.value>0?Math.round(w/N.value*100):0}function Q(w){return N.value>0?`${w/N.value*100}%`:"0%"}function ge(w){J(),s.focusMessageFile(w)}function ye(w){ge(w)}return(w,L)=>{var j;const W=jn("tooltip");return o.value?(y(),x("div",Q2,[Z.value?(y(),x("section",{key:0,class:le(["health-narrative",Z.value.toneClass])},[c("div",ev,[c("div",tv,A(Z.value.headline),1),c("div",nv,A(Z.value.detail),1)]),c("div",uv,[c("button",{class:"narrative-action",onClick:L[0]||(L[0]=C=>K("messages"))},[...L[7]||(L[7]=[c("i",{class:"i-carbon-chat"},null,-1),we(" Review Messages ",-1)])]),c("button",{class:"narrative-action",onClick:L[1]||(L[1]=C=>K("timeline"))},[...L[8]||(L[8]=[c("i",{class:"i-carbon-activity"},null,-1),we(" View Timeline ",-1)])])])],2)):se("",!0),c("div",sv,[c("div",{class:"stat-card stat-card--spine",style:Se({"--spine-color":d.value})},[c("div",{class:"stat-readout",style:Se({color:d.value})},A(X(hr)(f.value)),5),L[9]||(L[9]=c("div",{class:"stat-label"},"Context",-1)),c("div",ov,A(X(Ce)(o.value.contextInfo.totalTokens))+" / "+A(X(Ce)(o.value.contextLimit)),1),l.value&&l.value.wasteRatio>.05?je((y(),x("div",{key:0,class:le(["stat-projection",{"stat-projection--warn":l.value.wasteRatio>=.5}])},[we(A(Math.round(l.value.wasteRatio*100))+"% overhead",1)],2)),[[W,"Structural overhead this turn: "+l.value.categories.map(C=>`${C.label} ${Math.round(C.pct*100)}%`).join(", ")]]):se("",!0),$.value?(y(),x("div",rv,[(y(!0),x(de,null,Te($.value,C=>(y(),x("div",{key:C.key,class:"stat-tape-seg",style:Se({flex:C.pct,background:C.color})},null,4))),128))])):(y(),x("div",iv,[c("div",{class:"util-fill",style:Se({width:Math.min(f.value*100,100)+"%",background:d.value})},null,4)]))],4),c("div",lv,[c("div",av,A(X(Ct)(o.value.costUsd)),1),L[10]||(L[10]=c("div",{class:"stat-label"},"Turn cost",-1)),c("div",cv,A(X(Ct)(((j=r.value)==null?void 0:j.entries.reduce((C,I)=>C+(I.costUsd??0),0))??0))+" session",1),i.value!==null&&i.value>.001?je((y(),x("div",fv,[we("~"+A(X(Ct)(i.value))+" bloat",1)])),[[W,"Estimated cost of oversized tool results and excess thinking across all turns — tokens re-billed every turn without adding new information"]]):se("",!0)]),c("div",dv,[c("div",pv,A(o.value.usage?X(Ce)(o.value.usage.outputTokens):"—"),1),L[11]||(L[11]=c("div",{class:"stat-label"},"Output",-1)),o.value.timings?(y(),x("div",hv,A(X(pr)(o.value.timings.total_ms)),1)):se("",!0)]),o.value.healthScore?(y(),x("div",mv,[c("div",gv,[(y(),x("svg",vv,[L[12]||(L[12]=c("circle",{cx:"24",cy:"24",r:"19",fill:"none",stroke:"var(--border-dim)","stroke-width":"3","stroke-dasharray":`${89.5} 30`,"stroke-linecap":"round",transform:"rotate(135 24 24)"},null,-1)),c("circle",{cx:"24",cy:"24",r:"19",fill:"none",stroke:X(mr)(o.value.healthScore.rating),"stroke-width":"3","stroke-dasharray":`${89.5*(o.value.healthScore.overall/100)} ${119.4-89.5*(o.value.healthScore.overall/100)}`,"stroke-linecap":"round",transform:"rotate(135 24 24)",style:{transition:"stroke-dasharray 0.6s ease"}},null,8,bv),c("text",{x:"24",y:"25","text-anchor":"middle","dominant-baseline":"central",fill:X(mr)(o.value.healthScore.rating),"font-family":"var(--font-display)","font-size":"13","font-weight":"700"},A(o.value.healthScore.overall),9,_v)]))]),c("div",yv,[L[14]||(L[14]=we("Health ",-1)),c("button",{class:"info-btn",onClick:L[2]||(L[2]=C=>u("health"))},[...L[13]||(L[13]=[c("i",{class:"i-carbon-information"},null,-1)])])])])):(y(),x("div",xv,[...L[15]||(L[15]=[c("div",{class:"stat-readout dim"},"—",-1),c("div",{class:"stat-label"},"Health",-1)])]))]),c("div",kv,[c("span",null,A(o.value.contextInfo.messages.length)+" messages",1),h.value!==null?(y(),x("span",wv," cache "+A(X(hr)(h.value))+" hit ("+A(X(Ce)(o.value.usage.cacheReadTokens))+"r / "+A(X(Ce)(o.value.usage.cacheWriteTokens))+"w) ",1)):se("",!0),o.value.stopReason?(y(),x("span",Cv,"stop: "+A(o.value.stopReason),1)):se("",!0),o.value.responseModel&&o.value.responseModel!==o.value.contextInfo.model?(y(),x("span",$v," model: "+A(o.value.responseModel),1)):se("",!0)]),Le(i2,{entry:o.value,"turn-num":v.value,onCategoryClick:L[3]||(L[3]=C=>me(C,!1)),onToolClick:ae,onFileClick:ye,onExplain:L[4]||(L[4]=C=>u("composition"))},null,8,["entry","turn-num"]),Le(W2,{entry:o.value,recommendations:E.value,"audit-tooltip":M,onRecommendationClick:oe},null,8,["entry","recommendations"]),l.value&&l.value.wasteTokens>0?(y(),x("section",Ev,[c("div",Tv,[L[16]||(L[16]=c("span",{class:"panel-title"},"Structural Overhead",-1)),c("span",{class:le(["overhead-ratio",l.value.wasteRatio>=.5?"rate-high":l.value.wasteRatio>=.3?"rate-med":"rate-low"])},A(Math.round(l.value.wasteRatio*100))+"% this turn ",3)]),c("div",Sv,[c("div",Dv,[(y(!0),x(de,null,Te(l.value.categories,C=>(y(),x("div",{key:C.id,class:"overhead-seg",style:Se({width:`${Math.round(C.pct*100)}%`,background:C.color}),title:`${C.label}: ${X(Ce)(C.tokens)}`},null,12,Av))),128)),c("div",{class:"overhead-seg overhead-seg--useful",style:Se({width:`${Math.max(0,100-Math.round(l.value.wasteRatio*100))}%`}),title:"Useful context"},null,4)])]),c("div",Fv,[(y(!0),x(de,null,Te(l.value.categories,C=>(y(),x("div",{key:C.id,class:"overhead-cat"},[c("span",{class:"overhead-dot",style:Se({background:C.color})},null,4),c("span",Mv,A(C.label),1),c("span",Iv,A(X(Ce)(C.tokens)),1),c("span",Pv,A(Math.round(C.pct*100))+"%",1)]))),128)),l.value.unusedToolNames.length?(y(),x("div",Lv," Unused: "+A(l.value.unusedToolNames.slice(0,4).join(", "))+A(l.value.unusedToolNames.length>4?` +${l.value.unusedToolNames.length-4}`:""),1)):se("",!0)])])):se("",!0),Le(Jc,{"diff-data":R.value,"current-entry":o.value,"previous-entry":k.value,"show-tapes":!0,"hide-unchanged":!0,"summary-mode":"combined","delta-tone":"bad",onCategoryClick:L[5]||(L[5]=C=>me(C,!1))},null,8,["diff-data","current-entry","previous-entry"]),P.value.length?(y(),x("section",Rv,[c("div",Ov,[L[17]||(L[17]=c("span",{class:"panel-title"},"Messages",-1)),c("span",zv,A(D.value.length)+" messages · "+A(X(Ce)(S.value)),1)]),c("div",Nv,[(y(!0),x(de,null,Te(P.value,C=>(y(),x("div",{key:C.category,class:"msg-group-row",onClick:I=>me(C.category,!1)},[c("span",{class:"msg-group-dot",style:Se({background:ce(C.category)})},null,4),c("span",Hv,A(ue(C.category)),1),c("span",jv,A(C.items.length),1),c("span",qv,A(X(Ce)(C.tokens)),1),c("span",Vv,A(q(C.tokens))+"%",1),c("div",Uv,[c("div",{class:"msg-group-bar-fill",style:Se({width:re(C.tokens),background:ce(C.category)})},null,4)])],8,Bv))),128)),c("button",{class:"msg-view-all",onClick:H},"View all messages ›")])])):se("",!0),_e.value.length>0?(y(),x("section",Wv,[c("div",Kv,[L[18]||(L[18]=c("span",{class:"panel-title"},"Files",-1)),c("span",Gv,A(_e.value.length)+" files · "+A(X(Ce)(N.value)),1)]),c("div",Zv,[c("div",Jv,[(y(!0),x(de,null,Te(_e.value,(C,I)=>(y(),x("div",{key:C.path,class:"file-row",onClick:b=>ge(C.path)},[c("span",{class:"file-dot",style:Se({background:X(br)(I)})},null,4),je((y(),x("span",Xv,[c("span",Qv,A(X(xl)(C.path)?X(xl)(C.path)+"/":""),1),we(A(X(Zr)(C.path)),1)])),[[W,C.path]]),c("span",eb,[C.reads>0?je((y(),x("span",tb,[we(A(C.reads)+"r",1)])),[[W,`${C.reads} read${C.reads>1?"s":""}`]]):se("",!0),C.writes>0?je((y(),x("span",nb,[we(A(C.writes)+"w",1)])),[[W,`${C.writes} write/edit${C.writes>1?"s":""}`]]):se("",!0)]),c("span",ub,A(X(Ce)(C.tokens)),1),c("span",sb,A(ne(C.tokens))+"%",1),c("div",ob,[c("div",{class:"file-bar-fill",style:Se({width:Q(C.tokens),background:X(br)(I)})},null,4)])],8,Yv))),128))])])])):se("",!0),Le(X2,{open:t.value,section:n.value,onClose:L[6]||(L[6]=C=>t.value=!1)},null,8,["open","section"])])):se("",!0)}}}),ib=rt(rb,[["__scopeId","data-v-32d0879a"]]),lb={__name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],setup(e,{emit:t}){const n=t,u=e,s=jf(),o=he([]),r=O(()=>o.value.reduce((w,L)=>(w[~~L.id]=L)&&w,{})),i=O(()=>o.value.length),l=he(null),a=he(!1),f=he({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),d=he({splitter:null,timeoutId:null}),h=O(()=>({[`splitpanes splitpanes--${u.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":f.value.dragging})),g=()=>{document.addEventListener("mousemove",k,{passive:!1}),document.addEventListener("mouseup",T),"ontouchstart"in window&&(document.addEventListener("touchmove",k,{passive:!1}),document.addEventListener("touchend",T))},v=()=>{document.removeEventListener("mousemove",k,{passive:!1}),document.removeEventListener("mouseup",T),"ontouchstart"in window&&(document.removeEventListener("touchmove",k,{passive:!1}),document.removeEventListener("touchend",T))},E=(w,L)=>{const W=w.target.closest(".splitpanes__splitter");if(W){const{left:j,top:C}=W.getBoundingClientRect(),{clientX:I,clientY:b}="ontouchstart"in window&&w.touches?w.touches[0]:w;f.value.cursorOffset=u.horizontal?b-C:I-j}g(),f.value.mouseDown=!0,f.value.activeSplitter=L},k=w=>{f.value.mouseDown&&(w.preventDefault(),f.value.dragging=!0,requestAnimationFrame(()=>{G(P(w)),n("resize",o.value.map(L=>({min:L.min,max:L.max,size:L.size})))}))},T=()=>{f.value.dragging&&n("resized",o.value.map(w=>({min:w.min,max:w.max,size:w.size}))),f.value.mouseDown=!1,setTimeout(()=>{f.value.dragging=!1,v()},100)},$=(w,L)=>{"ontouchstart"in window&&(w.preventDefault(),u.dblClickSplitter&&(d.value.splitter===L?(clearTimeout(d.value.timeoutId),d.value.timeoutId=null,R(w,L),d.value.splitter=null):(d.value.splitter=L,d.value.timeoutId=setTimeout(()=>d.value.splitter=null,500)))),f.value.dragging||n("splitter-click",o.value[L])},R=(w,L)=>{let W=0;o.value=o.value.map((j,C)=>(j.size=C===L?j.max:j.min,C!==L&&(W+=j.min),j)),o.value[L].size-=W,n("pane-maximize",o.value[L]),n("resized",o.value.map(j=>({min:j.min,max:j.max,size:j.size})))},D=(w,L)=>{n("pane-click",r.value[L])},P=w=>{const L=l.value.getBoundingClientRect(),{clientX:W,clientY:j}="ontouchstart"in window&&w.touches?w.touches[0]:w;return{x:W-(u.horizontal?0:f.value.cursorOffset)-L.left,y:j-(u.horizontal?f.value.cursorOffset:0)-L.top}},S=w=>{w=w[u.horizontal?"y":"x"];const L=l.value[u.horizontal?"clientHeight":"clientWidth"];return u.rtl&&!u.horizontal&&(w=L-w),w*100/L},G=w=>{const L=f.value.activeSplitter;let W={prevPanesSize:K(L),nextPanesSize:J(L),prevReachedMinPanes:0,nextReachedMinPanes:0};const j=0+(u.pushOtherPanes?0:W.prevPanesSize),C=100-(u.pushOtherPanes?0:W.nextPanesSize),I=Math.max(Math.min(S(w),C),j);let b=[L,L+1],p=o.value[b[0]]||null,m=o.value[b[1]]||null;const _=p.max<100&&I>=p.max+W.prevPanesSize,F=m.max<100&&I<=100-(m.max+J(L+1));if(_||F){_?(p.size=p.max,m.size=Math.max(100-p.max-W.prevPanesSize-W.nextPanesSize,0)):(p.size=Math.max(100-m.max-W.prevPanesSize-J(L+1),0),m.size=m.max);return}if(u.pushOtherPanes){const z=Z(W,I);if(!z)return;({sums:W,panesToResize:b}=z),p=o.value[b[0]]||null,m=o.value[b[1]]||null}p!==null&&(p.size=Math.min(Math.max(I-W.prevPanesSize-W.prevReachedMinPanes,p.min),p.max)),m!==null&&(m.size=Math.min(Math.max(100-I-W.nextPanesSize-W.nextReachedMinPanes,m.min),m.max))},Z=(w,L)=>{const W=f.value.activeSplitter,j=[W,W+1];return L<w.prevPanesSize+o.value[j[0]].min&&(j[0]=me(W).index,w.prevReachedMinPanes=0,j[0]<W&&o.value.forEach((C,I)=>{I>j[0]&&I<=W&&(C.size=C.min,w.prevReachedMinPanes+=C.min)}),w.prevPanesSize=K(j[0]),j[0]===void 0)?(w.prevReachedMinPanes=0,o.value[0].size=o.value[0].min,o.value.forEach((C,I)=>{I>0&&I<=W&&(C.size=C.min,w.prevReachedMinPanes+=C.min)}),o.value[j[1]].size=100-w.prevReachedMinPanes-o.value[0].min-w.prevPanesSize-w.nextPanesSize,null):L>100-w.nextPanesSize-o.value[j[1]].min&&(j[1]=H(W).index,w.nextReachedMinPanes=0,j[1]>W+1&&o.value.forEach((C,I)=>{I>W&&I<j[1]&&(C.size=C.min,w.nextReachedMinPanes+=C.min)}),w.nextPanesSize=J(j[1]-1),j[1]===void 0)?(w.nextReachedMinPanes=0,o.value.forEach((C,I)=>{I<i.value-1&&I>=W+1&&(C.size=C.min,w.nextReachedMinPanes+=C.min)}),o.value[j[0]].size=100-w.prevPanesSize-J(j[0]-1),null):{sums:w,panesToResize:j}},K=w=>o.value.reduce((L,W,j)=>L+(j<w?W.size:0),0),J=w=>o.value.reduce((L,W,j)=>L+(j>w+1?W.size:0),0),me=w=>[...o.value].reverse().find(L=>L.index<w&&L.size>L.min)||{},H=w=>o.value.find(L=>L.index>w+1&&L.size>L.min)||{},ae=()=>{var w;Array.from(((w=l.value)==null?void 0:w.children)||[]).forEach(L=>{const W=L.classList.contains("splitpanes__pane"),j=L.classList.contains("splitpanes__splitter");!W&&!j&&(L.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},oe=(w,L,W=!1)=>{const j=w-1,C=document.createElement("div");C.classList.add("splitpanes__splitter"),W||(C.onmousedown=I=>E(I,j),typeof window<"u"&&"ontouchstart"in window&&(C.ontouchstart=I=>E(I,j)),C.onclick=I=>$(I,j+1)),u.dblClickSplitter&&(C.ondblclick=I=>R(I,j+1)),L.parentNode.insertBefore(C,L)},M=w=>{w.onmousedown=void 0,w.onclick=void 0,w.ondblclick=void 0,w.remove()},ue=()=>{var w;const L=Array.from(((w=l.value)==null?void 0:w.children)||[]);L.forEach(j=>{j.className.includes("splitpanes__splitter")&&M(j)});let W=0;L.forEach(j=>{j.className.includes("splitpanes__pane")&&(!W&&u.firstSplitter?oe(W,j,!0):W&&oe(W,j),W++)})},ce=({uid:w,...L})=>{const W=r.value[w];Object.entries(L).forEach(([j,C])=>W[j]=C)},q=w=>{var L;let W=-1;Array.from(((L=l.value)==null?void 0:L.children)||[]).some(j=>(j.className.includes("splitpanes__pane")&&W++,j.isSameNode(w.el))),o.value.splice(W,0,{...w,index:W}),o.value.forEach((j,C)=>j.index=C),a.value&&Je(()=>{ue(),_e({addedPane:o.value[W]}),n("pane-add",{index:W,panes:o.value.map(j=>({min:j.min,max:j.max,size:j.size}))})})},re=w=>{const L=o.value.findIndex(j=>j.id===w),W=o.value.splice(L,1)[0];o.value.forEach((j,C)=>j.index=C),Je(()=>{ue(),_e({removedPane:{...W}}),n("pane-remove",{removed:W,panes:o.value.map(j=>({min:j.min,max:j.max,size:j.size}))})})},_e=(w={})=>{!w.addedPane&&!w.removedPane?ne():o.value.some(L=>L.givenSize!==null||L.min||L.max<100)?Q(w):N(),a.value&&n("resized",o.value.map(L=>({min:L.min,max:L.max,size:L.size})))},N=()=>{const w=100/i.value;let L=0;const W=[],j=[];o.value.forEach(C=>{C.size=Math.max(Math.min(w,C.max),C.min),L-=C.size,C.size>=C.max&&W.push(C.id),C.size<=C.min&&j.push(C.id)}),L>.1&&ge(L,W,j)},ne=()=>{let w=100;const L=[],W=[];let j=0;o.value.forEach(I=>{w-=I.size,I.givenSize!==null&&j++,I.size>=I.max&&L.push(I.id),I.size<=I.min&&W.push(I.id)});let C=100;w>.1&&(o.value.forEach(I=>{I.givenSize===null&&(I.size=Math.max(Math.min(w/(i.value-j),I.max),I.min)),C-=I.size}),C>.1&&ge(C,L,W))},Q=({addedPane:w,removedPane:L}={})=>{let W=100/i.value,j=0;const C=[],I=[];((w==null?void 0:w.givenSize)??null)!==null&&(W=(100-w.givenSize)/(i.value-1).value),o.value.forEach(b=>{j-=b.size,b.size>=b.max&&C.push(b.id),b.size<=b.min&&I.push(b.id)}),!(Math.abs(j)<.1)&&(o.value.forEach(b=>{(w==null?void 0:w.givenSize)!==null&&(w==null?void 0:w.id)===b.id||(b.size=Math.max(Math.min(W,b.max),b.min)),j-=b.size,b.size>=b.max&&C.push(b.id),b.size<=b.min&&I.push(b.id)}),j>.1&&ge(j,C,I))},ge=(w,L,W)=>{let j;w>0?j=w/(i.value-L.length):j=w/(i.value-W.length),o.value.forEach((C,I)=>{if(w>0&&!L.includes(C.id)){const b=Math.max(Math.min(C.size+j,C.max),C.min),p=b-C.size;w-=p,C.size=b}else if(!W.includes(C.id)){const b=Math.max(Math.min(C.size+j,C.max),C.min),p=b-C.size;w-=p,C.size=b}}),Math.abs(w)>.1&&Je(()=>{a.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};Ge(()=>u.firstSplitter,()=>ue()),Ge(()=>u.dblClickSplitter,w=>{[...l.value.querySelectorAll(".splitpanes__splitter")].forEach((L,W)=>{L.ondblclick=w?j=>R(j,W):void 0})}),uo(()=>a.value=!1),Hn(()=>{ae(),ue(),_e(),n("ready"),a.value=!0});const ye=()=>{var w;return qr("div",{ref:l,class:h.value},(w=s.default)==null?void 0:w.call(s))};return $n("panes",o),$n("indexedPanes",r),$n("horizontal",O(()=>u.horizontal)),$n("requestUpdate",ce),$n("onPaneAdd",q),$n("onPaneRemove",re),$n("onPaneClick",D),(w,L)=>(y(),_t(Ba(ye)))}},El={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const n=e,u=zt("requestUpdate"),s=zt("onPaneAdd"),o=zt("horizontal"),r=zt("onPaneRemove"),i=zt("onPaneClick"),l=(t=ls())==null?void 0:t.uid,a=zt("indexedPanes"),f=O(()=>a.value[l]),d=he(null),h=O(()=>{const k=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(k,v.value),g.value)}),g=O(()=>{const k=parseFloat(n.minSize);return isNaN(k)?0:k}),v=O(()=>{const k=parseFloat(n.maxSize);return isNaN(k)?100:k}),E=O(()=>{var k;return`${o.value?"height":"width"}: ${(k=f.value)==null?void 0:k.size}%`});return Hn(()=>{s({id:l,el:d.value,min:g.value,max:v.value,givenSize:n.size===void 0?null:h.value,size:h.value})}),Ge(()=>h.value,k=>u({uid:l,size:k})),Ge(()=>g.value,k=>u({uid:l,min:k})),Ge(()=>v.value,k=>u({uid:l,max:k})),uo(()=>r(l)),(k,T)=>(y(),x("div",{ref_key:"paneEl",ref:d,class:"splitpanes__pane",onClick:T[0]||(T[0]=$=>X(i)($,k._.uid)),style:Se(E.value)},[qu(k.$slots,"default")],4))}};function ab(){const e=os(new Set);function t(r){e.has(r)?e.delete(r):e.add(r)}function n(r){return e.has(r)}function u(r){e.add(r)}function s(r){e.delete(r)}function o(){e.clear()}return{expanded:e,toggle:t,isExpanded:n,expand:u,collapse:s,collapseAll:o}}function Yc(e,t){if(e.contentBlocks)for(const n of e.contentBlocks){const u=n;if(u.type==="tool_result"&&typeof u.tool_use_id=="string")return`tool_result:${u.tool_use_id}`;if(u.type==="tool_use"&&typeof u.id=="string")return`tool_use:${u.id}`}return`${e.role??"unknown"}:${t}`}function cb(e,t,n){return n.length===0?!1:n.includes(Yc(e,t))}const fb="modulepreload",db=function(e){return"/"+e},Tl={},qe=function(t,n,u){let s=Promise.resolve();if(n&&n.length>0){let r=function(a){return Promise.all(a.map(f=>Promise.resolve(f).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),l=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));s=r(n.map(a=>{if(a=db(a),a in Tl)return;Tl[a]=!0;const f=a.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${d}`))return;const h=document.createElement("link");if(h.rel=f?"stylesheet":fb,f||(h.as="script"),h.crossOrigin="",h.href=a,l&&h.setAttribute("nonce",l),document.head.appendChild(h),f)return new Promise((g,v)=>{h.addEventListener("load",g),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${a}`)))})}))}function o(r){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r}return s.then(r=>{for(const i of r||[])i.status==="rejected"&&o(i.reason);return t().catch(o)})},Sl={};function pb(e){let t=Sl[e];if(t)return t;t=Sl[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);t.push(u)}for(let n=0;n<e.length;n++){const u=e.charCodeAt(n);t[u]="%"+("0"+u.toString(16).toUpperCase()).slice(-2)}return t}function hu(e,t){typeof t!="string"&&(t=hu.defaultChars);const n=pb(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(u){let s="";for(let o=0,r=u.length;o<r;o+=3){const i=parseInt(u.slice(o+1,o+3),16);if(i<128){s+=n[i];continue}if((i&224)===192&&o+3<r){const l=parseInt(u.slice(o+4,o+6),16);if((l&192)===128){const a=i<<6&1984|l&63;a<128?s+="��":s+=String.fromCharCode(a),o+=3;continue}}if((i&240)===224&&o+6<r){const l=parseInt(u.slice(o+4,o+6),16),a=parseInt(u.slice(o+7,o+9),16);if((l&192)===128&&(a&192)===128){const f=i<<12&61440|l<<6&4032|a&63;f<2048||f>=55296&&f<=57343?s+="���":s+=String.fromCharCode(f),o+=6;continue}}if((i&248)===240&&o+9<r){const l=parseInt(u.slice(o+4,o+6),16),a=parseInt(u.slice(o+7,o+9),16),f=parseInt(u.slice(o+10,o+12),16);if((l&192)===128&&(a&192)===128&&(f&192)===128){let d=i<<18&1835008|l<<12&258048|a<<6&4032|f&63;d<65536||d>1114111?s+="����":(d-=65536,s+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),o+=9;continue}}s+="�"}return s})}hu.defaultChars=";/?:@&=+$,#";hu.componentChars="";const Dl={};function hb(e){let t=Dl[e];if(t)return t;t=Dl[e]=[];for(let n=0;n<128;n++){const u=String.fromCharCode(n);/^[0-9a-z]$/i.test(u)?t.push(u):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}function cs(e,t,n){typeof t!="string"&&(n=t,t=cs.defaultChars),typeof n>"u"&&(n=!0);const u=hb(t);let s="";for(let o=0,r=e.length;o<r;o++){const i=e.charCodeAt(o);if(n&&i===37&&o+2<r&&/^[0-9a-f]{2}$/i.test(e.slice(o+1,o+3))){s+=e.slice(o,o+3),o+=2;continue}if(i<128){s+=u[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&o+1<r){const l=e.charCodeAt(o+1);if(l>=56320&&l<=57343){s+=encodeURIComponent(e[o]+e[o+1]),o++;continue}}s+="%EF%BF%BD";continue}s+=encodeURIComponent(e[o])}return s}cs.defaultChars=";/?:@&=+$,-_.!~*'()#";cs.componentChars="-_.!~*'()";function Yr(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function qs(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const mb=/^([a-z0-9.+-]+:)/i,gb=/:[0-9]*$/,vb=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,bb=["<",">",'"',"`"," ","\r",`
29
- `," "],_b=["{","}","|","\\","^","`"].concat(bb),yb=["'"].concat(_b),Al=["%","/","?",";","#"].concat(yb),Fl=["/","?","#"],xb=255,Ml=/^[+a-z0-9A-Z_-]{0,63}$/,kb=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Il={javascript:!0,"javascript:":!0},Pl={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Xr(e,t){if(e&&e instanceof qs)return e;const n=new qs;return n.parse(e,t),n}qs.prototype.parse=function(e,t){let n,u,s,o=e;if(o=o.trim(),!t&&e.split("#").length===1){const a=vb.exec(o);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}let r=mb.exec(o);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,o=o.substr(r.length)),(t||r||o.match(/^\/\/[^@\/]+@[^@\/]+/))&&(s=o.substr(0,2)==="//",s&&!(r&&Il[r])&&(o=o.substr(2),this.slashes=!0)),!Il[r]&&(s||r&&!Pl[r])){let a=-1;for(let v=0;v<Fl.length;v++)u=o.indexOf(Fl[v]),u!==-1&&(a===-1||u<a)&&(a=u);let f,d;a===-1?d=o.lastIndexOf("@"):d=o.lastIndexOf("@",a),d!==-1&&(f=o.slice(0,d),o=o.slice(d+1),this.auth=f),a=-1;for(let v=0;v<Al.length;v++)u=o.indexOf(Al[v]),u!==-1&&(a===-1||u<a)&&(a=u);a===-1&&(a=o.length),o[a-1]===":"&&a--;const h=o.slice(0,a);o=o.slice(a),this.parseHost(h),this.hostname=this.hostname||"";const g=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!g){const v=this.hostname.split(/\./);for(let E=0,k=v.length;E<k;E++){const T=v[E];if(T&&!T.match(Ml)){let $="";for(let R=0,D=T.length;R<D;R++)T.charCodeAt(R)>127?$+="x":$+=T[R];if(!$.match(Ml)){const R=v.slice(0,E),D=v.slice(E+1),P=T.match(kb);P&&(R.push(P[1]),D.unshift(P[2])),D.length&&(o=D.join(".")+o),this.hostname=R.join(".");break}}}}this.hostname.length>xb&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const i=o.indexOf("#");i!==-1&&(this.hash=o.substr(i),o=o.slice(0,i));const l=o.indexOf("?");return l!==-1&&(this.search=o.substr(l),o=o.slice(0,l)),o&&(this.pathname=o),Pl[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};qs.prototype.parseHost=function(e){let t=gb.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const wb=Object.freeze(Object.defineProperty({__proto__:null,decode:hu,encode:cs,format:Yr,parse:Xr},Symbol.toStringTag,{value:"Module"})),Xc=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qc=/[\0-\x1F\x7F-\x9F]/,Cb=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Qr=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,e0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,t0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,$b=Object.freeze(Object.defineProperty({__proto__:null,Any:Xc,Cc:Qc,Cf:Cb,P:Qr,S:e0,Z:t0},Symbol.toStringTag,{value:"Module"})),Eb=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Tb=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Bo;const Sb=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Db=(Bo=String.fromCodePoint)!==null&&Bo!==void 0?Bo:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function Ab(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Sb.get(e))!==null&&t!==void 0?t:e}var ct;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(ct||(ct={}));const Fb=32;var In;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(In||(In={}));function _r(e){return e>=ct.ZERO&&e<=ct.NINE}function Mb(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function Ib(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||_r(e)}function Pb(e){return e===ct.EQUALS||Ib(e)}var at;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(at||(at={}));var Mn;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mn||(Mn={}));class Lb{constructor(t,n,u){this.decodeTree=t,this.emitCodePoint=n,this.errors=u,this.state=at.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mn.Strict}startEntity(t){this.decodeMode=t,this.state=at.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case at.EntityStart:return t.charCodeAt(n)===ct.NUM?(this.state=at.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=at.NamedEntity,this.stateNamedEntity(t,n));case at.NumericStart:return this.stateNumericStart(t,n);case at.NumericDecimal:return this.stateNumericDecimal(t,n);case at.NumericHex:return this.stateNumericHex(t,n);case at.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Fb)===ct.LOWER_X?(this.state=at.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=at.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,u,s){if(n!==u){const o=u-n;this.result=this.result*Math.pow(s,o)+parseInt(t.substr(n,o),s),this.consumed+=o}}stateNumericHex(t,n){const u=n;for(;n<t.length;){const s=t.charCodeAt(n);if(_r(s)||Mb(s))n+=1;else return this.addToNumericResult(t,u,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,u,n,16),-1}stateNumericDecimal(t,n){const u=n;for(;n<t.length;){const s=t.charCodeAt(n);if(_r(s))n+=1;else return this.addToNumericResult(t,u,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,u,n,10),-1}emitNumericEntity(t,n){var u;if(this.consumed<=n)return(u=this.errors)===null||u===void 0||u.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===Mn.Strict)return 0;return this.emitCodePoint(Ab(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:u}=this;let s=u[this.treeIndex],o=(s&In.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const r=t.charCodeAt(n);if(this.treeIndex=Rb(u,s,this.treeIndex+Math.max(1,o),r),this.treeIndex<0)return this.result===0||this.decodeMode===Mn.Attribute&&(o===0||Pb(r))?0:this.emitNotTerminatedNamedEntity();if(s=u[this.treeIndex],o=(s&In.VALUE_LENGTH)>>14,o!==0){if(r===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Mn.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:u}=this,s=(u[n]&In.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,u){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~In.VALUE_LENGTH:s[t+1],u),n===3&&this.emitCodePoint(s[t+2],u),u}end(){var t;switch(this.state){case at.NamedEntity:return this.result!==0&&(this.decodeMode!==Mn.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case at.NumericDecimal:return this.emitNumericEntity(0,2);case at.NumericHex:return this.emitNumericEntity(0,3);case at.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case at.EntityStart:return 0}}}function n0(e){let t="";const n=new Lb(e,u=>t+=Db(u));return function(s,o){let r=0,i=0;for(;(i=s.indexOf("&",i))>=0;){t+=s.slice(r,i),n.startEntity(o);const a=n.write(s,i+1);if(a<0){r=i+n.end();break}r=i+a,i=a===0?r+1:r}const l=t+s.slice(r);return t="",l}}function Rb(e,t,n,u){const s=(t&In.BRANCH_LENGTH)>>7,o=t&In.JUMP_TABLE;if(s===0)return o!==0&&u===o?n:-1;if(o){const l=u-o;return l<0||l>=s?-1:e[n+l]-1}let r=n,i=r+s-1;for(;r<=i;){const l=r+i>>>1,a=e[l];if(a<u)r=l+1;else if(a>u)i=l-1;else return e[l+s]}return-1}const Ob=n0(Eb);n0(Tb);function u0(e,t=Mn.Legacy){return Ob(e,t)}function zb(e){return Object.prototype.toString.call(e)}function ei(e){return zb(e)==="[object String]"}const Nb=Object.prototype.hasOwnProperty;function Bb(e,t){return Nb.call(e,t)}function ho(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){if(n){if(typeof n!="object")throw new TypeError(n+"must be object");Object.keys(n).forEach(function(u){e[u]=n[u]})}}),e}function s0(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ti(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function Vs(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const o0=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Hb=/&([a-z#][a-z0-9]{1,31});/gi,jb=new RegExp(o0.source+"|"+Hb.source,"gi"),qb=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function Vb(e,t){if(t.charCodeAt(0)===35&&qb.test(t)){const u=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ti(u)?Vs(u):e}const n=u0(e);return n!==e?n:e}function Ub(e){return e.indexOf("\\")<0?e:e.replace(o0,"$1")}function mu(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(jb,function(t,n,u){return n||Vb(t,u)})}const Wb=/[&<>"]/,Kb=/[&<>"]/g,Gb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Zb(e){return Gb[e]}function Nn(e){return Wb.test(e)?e.replace(Kb,Zb):e}const Jb=/[.?*+^$[\]\\(){}|-]/g;function Yb(e){return e.replace(Jb,"\\$&")}function Ze(e){switch(e){case 9:case 32:return!0}return!1}function es(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function ts(e){return Qr.test(e)||e0.test(e)}function ns(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function mo(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Xb={mdurl:wb,ucmicro:$b},Qb=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:s0,assign:ho,escapeHtml:Nn,escapeRE:Yb,fromCodePoint:Vs,has:Bb,isMdAsciiPunct:ns,isPunctChar:ts,isSpace:Ze,isString:ei,isValidEntityCode:ti,isWhiteSpace:es,lib:Xb,normalizeReference:mo,unescapeAll:mu,unescapeMd:Ub},Symbol.toStringTag,{value:"Module"}));function e_(e,t,n){let u,s,o,r;const i=e.posMax,l=e.pos;for(e.pos=t+1,u=1;e.pos<i;){if(o=e.src.charCodeAt(e.pos),o===93&&(u--,u===0)){s=!0;break}if(r=e.pos,e.md.inline.skipToken(e),o===91){if(r===e.pos-1)u++;else if(n)return e.pos=l,-1}}let a=-1;return s&&(a=e.pos),e.pos=l,a}function t_(e,t,n){let u,s=t;const o={ok:!1,pos:0,str:""};if(e.charCodeAt(s)===60){for(s++;s<n;){if(u=e.charCodeAt(s),u===10||u===60)return o;if(u===62)return o.pos=s+1,o.str=mu(e.slice(t+1,s)),o.ok=!0,o;if(u===92&&s+1<n){s+=2;continue}s++}return o}let r=0;for(;s<n&&(u=e.charCodeAt(s),!(u===32||u<32||u===127));){if(u===92&&s+1<n){if(e.charCodeAt(s+1)===32)break;s+=2;continue}if(u===40&&(r++,r>32))return o;if(u===41){if(r===0)break;r--}s++}return t===s||r!==0||(o.str=mu(e.slice(t,s)),o.pos=s,o.ok=!0),o}function n_(e,t,n,u){let s,o=t;const r={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(u)r.str=u.str,r.marker=u.marker;else{if(o>=n)return r;let i=e.charCodeAt(o);if(i!==34&&i!==39&&i!==40)return r;t++,o++,i===40&&(i=41),r.marker=i}for(;o<n;){if(s=e.charCodeAt(o),s===r.marker)return r.pos=o+1,r.str+=mu(e.slice(t,o)),r.ok=!0,r;if(s===40&&r.marker===41)return r;s===92&&o+1<n&&o++,o++}return r.can_continue=!0,r.str+=mu(e.slice(t,o)),r}const u_=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:t_,parseLinkLabel:e_,parseLinkTitle:n_},Symbol.toStringTag,{value:"Module"})),rn={};rn.code_inline=function(e,t,n,u,s){const o=e[t];return"<code"+s.renderAttrs(o)+">"+Nn(o.content)+"</code>"};rn.code_block=function(e,t,n,u,s){const o=e[t];return"<pre"+s.renderAttrs(o)+"><code>"+Nn(e[t].content)+`</code></pre>
30
- `};rn.fence=function(e,t,n,u,s){const o=e[t],r=o.info?mu(o.info).trim():"";let i="",l="";if(r){const f=r.split(/(\s+)/g);i=f[0],l=f.slice(2).join("")}let a;if(n.highlight?a=n.highlight(o.content,i,l)||Nn(o.content):a=Nn(o.content),a.indexOf("<pre")===0)return a+`
31
- `;if(r){const f=o.attrIndex("class"),d=o.attrs?o.attrs.slice():[];f<0?d.push(["class",n.langPrefix+i]):(d[f]=d[f].slice(),d[f][1]+=" "+n.langPrefix+i);const h={attrs:d};return`<pre><code${s.renderAttrs(h)}>${a}</code></pre>
32
- `}return`<pre><code${s.renderAttrs(o)}>${a}</code></pre>
33
- `};rn.image=function(e,t,n,u,s){const o=e[t];return o.attrs[o.attrIndex("alt")][1]=s.renderInlineAsText(o.children,n,u),s.renderToken(e,t,n)};rn.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
34
- `:`<br>
35
- `};rn.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
36
- `:`<br>
37
- `:`
38
- `};rn.text=function(e,t){return Nn(e[t].content)};rn.html_block=function(e,t){return e[t].content};rn.html_inline=function(e,t){return e[t].content};function gu(){this.rules=ho({},rn)}gu.prototype.renderAttrs=function(t){let n,u,s;if(!t.attrs)return"";for(s="",n=0,u=t.attrs.length;n<u;n++)s+=" "+Nn(t.attrs[n][0])+'="'+Nn(t.attrs[n][1])+'"';return s};gu.prototype.renderToken=function(t,n,u){const s=t[n];let o="";if(s.hidden)return"";s.block&&s.nesting!==-1&&n&&t[n-1].hidden&&(o+=`
39
- `),o+=(s.nesting===-1?"</":"<")+s.tag,o+=this.renderAttrs(s),s.nesting===0&&u.xhtmlOut&&(o+=" /");let r=!1;if(s.block&&(r=!0,s.nesting===1&&n+1<t.length)){const i=t[n+1];(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===s.tag)&&(r=!1)}return o+=r?`>
40
- `:">",o};gu.prototype.renderInline=function(e,t,n){let u="";const s=this.rules;for(let o=0,r=e.length;o<r;o++){const i=e[o].type;typeof s[i]<"u"?u+=s[i](e,o,t,n,this):u+=this.renderToken(e,o,t)}return u};gu.prototype.renderInlineAsText=function(e,t,n){let u="";for(let s=0,o=e.length;s<o;s++)switch(e[s].type){case"text":u+=e[s].content;break;case"image":u+=this.renderInlineAsText(e[s].children,t,n);break;case"html_inline":case"html_block":u+=e[s].content;break;case"softbreak":case"hardbreak":u+=`
41
- `;break}return u};gu.prototype.render=function(e,t,n){let u="";const s=this.rules;for(let o=0,r=e.length;o<r;o++){const i=e[o].type;i==="inline"?u+=this.renderInline(e[o].children,t,n):typeof s[i]<"u"?u+=s[i](e,o,t,n,this):u+=this.renderToken(e,o,t,n)}return u};function $t(){this.__rules__=[],this.__cache__=null}$t.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1};$t.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(n){n.enabled&&n.alt.forEach(function(u){t.indexOf(u)<0&&t.push(u)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(u){u.enabled&&(n&&u.alt.indexOf(n)<0||e.__cache__[n].push(u.fn))})})};$t.prototype.at=function(e,t,n){const u=this.__find__(e),s=n||{};if(u===-1)throw new Error("Parser rule not found: "+e);this.__rules__[u].fn=t,this.__rules__[u].alt=s.alt||[],this.__cache__=null};$t.prototype.before=function(e,t,n,u){const s=this.__find__(e),o=u||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};$t.prototype.after=function(e,t,n,u){const s=this.__find__(e),o=u||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(s+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null};$t.prototype.push=function(e,t,n){const u=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:u.alt||[]}),this.__cache__=null};$t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const s=this.__find__(u);if(s<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[s].enabled=!0,n.push(u)},this),this.__cache__=null,n};$t.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(n){n.enabled=!1}),this.enable(e,t)};$t.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(u){const s=this.__find__(u);if(s<0){if(t)return;throw new Error("Rules manager: invalid rule name "+u)}this.__rules__[s].enabled=!1,n.push(u)},this),this.__cache__=null,n};$t.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Kt(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}Kt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let u=0,s=n.length;u<s;u++)if(n[u][0]===t)return u;return-1};Kt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Kt.prototype.attrSet=function(t,n){const u=this.attrIndex(t),s=[t,n];u<0?this.attrPush(s):this.attrs[u]=s};Kt.prototype.attrGet=function(t){const n=this.attrIndex(t);let u=null;return n>=0&&(u=this.attrs[n][1]),u};Kt.prototype.attrJoin=function(t,n){const u=this.attrIndex(t);u<0?this.attrPush([t,n]):this.attrs[u][1]=this.attrs[u][1]+" "+n};function r0(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}r0.prototype.Token=Kt;const s_=/\r\n?|\n/g,o_=/\0/g;function r_(e){let t;t=e.src.replace(s_,`
42
- `),t=t.replace(o_,"�"),e.src=t}function i_(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function l_(e){const t=e.tokens;for(let n=0,u=t.length;n<u;n++){const s=t[n];s.type==="inline"&&e.md.inline.parse(s.content,e.md,e.env,s.children)}}function a_(e){return/^<a[>\s]/i.test(e)}function c_(e){return/^<\/a\s*>/i.test(e)}function f_(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,u=t.length;n<u;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let s=t[n].children,o=0;for(let r=s.length-1;r>=0;r--){const i=s[r];if(i.type==="link_close"){for(r--;s[r].level!==i.level&&s[r].type!=="link_open";)r--;continue}if(i.type==="html_inline"&&(a_(i.content)&&o>0&&o--,c_(i.content)&&o++),!(o>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const l=i.content;let a=e.md.linkify.match(l);const f=[];let d=i.level,h=0;a.length>0&&a[0].index===0&&r>0&&s[r-1].type==="text_special"&&(a=a.slice(1));for(let g=0;g<a.length;g++){const v=a[g].url,E=e.md.normalizeLink(v);if(!e.md.validateLink(E))continue;let k=a[g].text;a[g].schema?a[g].schema==="mailto:"&&!/^mailto:/i.test(k)?k=e.md.normalizeLinkText("mailto:"+k).replace(/^mailto:/,""):k=e.md.normalizeLinkText(k):k=e.md.normalizeLinkText("http://"+k).replace(/^http:\/\//,"");const T=a[g].index;if(T>h){const P=new e.Token("text","",0);P.content=l.slice(h,T),P.level=d,f.push(P)}const $=new e.Token("link_open","a",1);$.attrs=[["href",E]],$.level=d++,$.markup="linkify",$.info="auto",f.push($);const R=new e.Token("text","",0);R.content=k,R.level=d,f.push(R);const D=new e.Token("link_close","a",-1);D.level=--d,D.markup="linkify",D.info="auto",f.push(D),h=a[g].lastIndex}if(h<l.length){const g=new e.Token("text","",0);g.content=l.slice(h),g.level=d,f.push(g)}t[n].children=s=s0(s,r,f)}}}}const i0=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,d_=/\((c|tm|r)\)/i,p_=/\((c|tm|r)\)/ig,h_={c:"©",r:"®",tm:"™"};function m_(e,t){return h_[t.toLowerCase()]}function g_(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&(u.content=u.content.replace(p_,m_)),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function v_(e){let t=0;for(let n=e.length-1;n>=0;n--){const u=e[n];u.type==="text"&&!t&&i0.test(u.content)&&(u.content=u.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),u.type==="link_open"&&u.info==="auto"&&t--,u.type==="link_close"&&u.info==="auto"&&t++}}function b_(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(d_.test(e.tokens[t].content)&&g_(e.tokens[t].children),i0.test(e.tokens[t].content)&&v_(e.tokens[t].children))}const __=/['"]/,Ll=/['"]/g,Rl="’";function ys(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function y_(e,t){let n;const u=[];for(let s=0;s<e.length;s++){const o=e[s],r=e[s].level;for(n=u.length-1;n>=0&&!(u[n].level<=r);n--);if(u.length=n+1,o.type!=="text")continue;let i=o.content,l=0,a=i.length;e:for(;l<a;){Ll.lastIndex=l;const f=Ll.exec(i);if(!f)break;let d=!0,h=!0;l=f.index+1;const g=f[0]==="'";let v=32;if(f.index-1>=0)v=i.charCodeAt(f.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){v=e[n].content.charCodeAt(e[n].content.length-1);break}let E=32;if(l<a)E=i.charCodeAt(l);else for(n=s+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){E=e[n].content.charCodeAt(0);break}const k=ns(v)||ts(String.fromCharCode(v)),T=ns(E)||ts(String.fromCharCode(E)),$=es(v),R=es(E);if(R?d=!1:T&&($||k||(d=!1)),$?h=!1:k&&(R||T||(h=!1)),E===34&&f[0]==='"'&&v>=48&&v<=57&&(h=d=!1),d&&h&&(d=k,h=T),!d&&!h){g&&(o.content=ys(o.content,f.index,Rl));continue}if(h)for(n=u.length-1;n>=0;n--){let D=u[n];if(u[n].level<r)break;if(D.single===g&&u[n].level===r){D=u[n];let P,S;g?(P=t.md.options.quotes[2],S=t.md.options.quotes[3]):(P=t.md.options.quotes[0],S=t.md.options.quotes[1]),o.content=ys(o.content,f.index,S),e[D.token].content=ys(e[D.token].content,D.pos,P),l+=S.length-1,D.token===s&&(l+=P.length-1),i=o.content,a=i.length,u.length=n;continue e}}d?u.push({token:s,pos:f.index,single:g,level:r}):h&&g&&(o.content=ys(o.content,f.index,Rl))}}}function x_(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!__.test(e.tokens[t].content)||y_(e.tokens[t].children,e)}function k_(e){let t,n;const u=e.tokens,s=u.length;for(let o=0;o<s;o++){if(u[o].type!=="inline")continue;const r=u[o].children,i=r.length;for(t=0;t<i;t++)r[t].type==="text_special"&&(r[t].type="text");for(t=n=0;t<i;t++)r[t].type==="text"&&t+1<i&&r[t+1].type==="text"?r[t+1].content=r[t].content+r[t+1].content:(t!==n&&(r[n]=r[t]),n++);t!==n&&(r.length=n)}}const Ho=[["normalize",r_],["block",i_],["inline",l_],["linkify",f_],["replacements",b_],["smartquotes",x_],["text_join",k_]];function ni(){this.ruler=new $t;for(let e=0;e<Ho.length;e++)this.ruler.push(Ho[e][0],Ho[e][1])}ni.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,u=t.length;n<u;n++)t[n](e)};ni.prototype.State=r0;function ln(e,t,n,u){this.src=e,this.md=t,this.env=n,this.tokens=u,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const s=this.src;for(let o=0,r=0,i=0,l=0,a=s.length,f=!1;r<a;r++){const d=s.charCodeAt(r);if(!f)if(Ze(d)){i++,d===9?l+=4-l%4:l++;continue}else f=!0;(d===10||r===a-1)&&(d!==10&&r++,this.bMarks.push(o),this.eMarks.push(r),this.tShift.push(i),this.sCount.push(l),this.bsCount.push(0),f=!1,i=0,l=0,o=r+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}ln.prototype.push=function(e,t,n){const u=new Kt(e,t,n);return u.block=!0,n<0&&this.level--,u.level=this.level,n>0&&this.level++,this.tokens.push(u),u};ln.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};ln.prototype.skipEmptyLines=function(t){for(let n=this.lineMax;t<n&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};ln.prototype.skipSpaces=function(t){for(let n=this.src.length;t<n;t++){const u=this.src.charCodeAt(t);if(!Ze(u))break}return t};ln.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Ze(this.src.charCodeAt(--t)))return t+1;return t};ln.prototype.skipChars=function(t,n){for(let u=this.src.length;t<u&&this.src.charCodeAt(t)===n;t++);return t};ln.prototype.skipCharsBack=function(t,n,u){if(t<=u)return t;for(;t>u;)if(n!==this.src.charCodeAt(--t))return t+1;return t};ln.prototype.getLines=function(t,n,u,s){if(t>=n)return"";const o=new Array(n-t);for(let r=0,i=t;i<n;i++,r++){let l=0;const a=this.bMarks[i];let f=a,d;for(i+1<n||s?d=this.eMarks[i]+1:d=this.eMarks[i];f<d&&l<u;){const h=this.src.charCodeAt(f);if(Ze(h))h===9?l+=4-(l+this.bsCount[i])%4:l++;else if(f-a<this.tShift[i])l++;else break;f++}l>u?o[r]=new Array(l-u+1).join(" ")+this.src.slice(f,d):o[r]=this.src.slice(f,d)}return o.join("")};ln.prototype.Token=Kt;const w_=65536;function jo(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];return e.src.slice(n,u)}function Ol(e){const t=[],n=e.length;let u=0,s=e.charCodeAt(u),o=!1,r=0,i="";for(;u<n;)s===124&&(o?(i+=e.substring(r,u-1),r=u):(t.push(i+e.substring(r,u)),i="",r=u+1)),o=s===92,u++,s=e.charCodeAt(u);return t.push(i+e.substring(r)),t}function C_(e,t,n,u){if(t+2>n)return!1;let s=t+1;if(e.sCount[s]<e.blkIndent||e.sCount[s]-e.blkIndent>=4)return!1;let o=e.bMarks[s]+e.tShift[s];if(o>=e.eMarks[s])return!1;const r=e.src.charCodeAt(o++);if(r!==124&&r!==45&&r!==58||o>=e.eMarks[s])return!1;const i=e.src.charCodeAt(o++);if(i!==124&&i!==45&&i!==58&&!Ze(i)||r===45&&Ze(i))return!1;for(;o<e.eMarks[s];){const D=e.src.charCodeAt(o);if(D!==124&&D!==45&&D!==58&&!Ze(D))return!1;o++}let l=jo(e,t+1),a=l.split("|");const f=[];for(let D=0;D<a.length;D++){const P=a[D].trim();if(!P){if(D===0||D===a.length-1)continue;return!1}if(!/^:?-+:?$/.test(P))return!1;P.charCodeAt(P.length-1)===58?f.push(P.charCodeAt(0)===58?"center":"right"):P.charCodeAt(0)===58?f.push("left"):f.push("")}if(l=jo(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;a=Ol(l),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop();const d=a.length;if(d===0||d!==f.length)return!1;if(u)return!0;const h=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),v=e.push("table_open","table",1),E=[t,0];v.map=E;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const T=e.push("tr_open","tr",1);T.map=[t,t+1];for(let D=0;D<a.length;D++){const P=e.push("th_open","th",1);f[D]&&(P.attrs=[["style","text-align:"+f[D]]]);const S=e.push("inline","",0);S.content=a[D].trim(),S.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let $,R=0;for(s=t+2;s<n&&!(e.sCount[s]<e.blkIndent);s++){let D=!1;for(let S=0,G=g.length;S<G;S++)if(g[S](e,s,n,!0)){D=!0;break}if(D||(l=jo(e,s).trim(),!l)||e.sCount[s]-e.blkIndent>=4||(a=Ol(l),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop(),R+=d-a.length,R>w_))break;if(s===t+2){const S=e.push("tbody_open","tbody",1);S.map=$=[t+2,0]}const P=e.push("tr_open","tr",1);P.map=[s,s+1];for(let S=0;S<d;S++){const G=e.push("td_open","td",1);f[S]&&(G.attrs=[["style","text-align:"+f[S]]]);const Z=e.push("inline","",0);Z.content=a[S]?a[S].trim():"",Z.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return $&&(e.push("tbody_close","tbody",-1),$[1]=s),e.push("table_close","table",-1),E[1]=s,e.parentType=h,e.line=s,!0}function $_(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let u=t+1,s=u;for(;u<n;){if(e.isEmpty(u)){u++;continue}if(e.sCount[u]-e.blkIndent>=4){u++,s=u;continue}break}e.line=s;const o=e.push("code_block","code",0);return o.content=e.getLines(t,s,4+e.blkIndent,!1)+`
43
- `,o.map=[t,e.line],!0}function E_(e,t,n,u){let s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||s+3>o)return!1;const r=e.src.charCodeAt(s);if(r!==126&&r!==96)return!1;let i=s;s=e.skipChars(s,r);let l=s-i;if(l<3)return!1;const a=e.src.slice(i,s),f=e.src.slice(s,o);if(r===96&&f.indexOf(String.fromCharCode(r))>=0)return!1;if(u)return!0;let d=t,h=!1;for(;d++,!(d>=n||(s=i=e.bMarks[d]+e.tShift[d],o=e.eMarks[d],s<o&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(s)===r&&!(e.sCount[d]-e.blkIndent>=4)&&(s=e.skipChars(s,r),!(s-i<l)&&(s=e.skipSpaces(s),!(s<o)))){h=!0;break}l=e.sCount[t],e.line=d+(h?1:0);const g=e.push("fence","code",0);return g.info=f,g.content=e.getLines(t+1,d,l,!0),g.markup=a,g.map=[t,e.line],!0}function T_(e,t,n,u){let s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];const r=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(s)!==62)return!1;if(u)return!0;const i=[],l=[],a=[],f=[],d=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let g=!1,v;for(v=t;v<n;v++){const R=e.sCount[v]<e.blkIndent;if(s=e.bMarks[v]+e.tShift[v],o=e.eMarks[v],s>=o)break;if(e.src.charCodeAt(s++)===62&&!R){let P=e.sCount[v]+1,S,G;e.src.charCodeAt(s)===32?(s++,P++,G=!1,S=!0):e.src.charCodeAt(s)===9?(S=!0,(e.bsCount[v]+P)%4===3?(s++,P++,G=!1):G=!0):S=!1;let Z=P;for(i.push(e.bMarks[v]),e.bMarks[v]=s;s<o;){const K=e.src.charCodeAt(s);if(Ze(K))K===9?Z+=4-(Z+e.bsCount[v]+(G?1:0))%4:Z++;else break;s++}g=s>=o,l.push(e.bsCount[v]),e.bsCount[v]=e.sCount[v]+1+(S?1:0),a.push(e.sCount[v]),e.sCount[v]=Z-P,f.push(e.tShift[v]),e.tShift[v]=s-e.bMarks[v];continue}if(g)break;let D=!1;for(let P=0,S=d.length;P<S;P++)if(d[P](e,v,n,!0)){D=!0;break}if(D){e.lineMax=v,e.blkIndent!==0&&(i.push(e.bMarks[v]),l.push(e.bsCount[v]),f.push(e.tShift[v]),a.push(e.sCount[v]),e.sCount[v]-=e.blkIndent);break}i.push(e.bMarks[v]),l.push(e.bsCount[v]),f.push(e.tShift[v]),a.push(e.sCount[v]),e.sCount[v]=-1}const E=e.blkIndent;e.blkIndent=0;const k=e.push("blockquote_open","blockquote",1);k.markup=">";const T=[t,0];k.map=T,e.md.block.tokenize(e,t,v);const $=e.push("blockquote_close","blockquote",-1);$.markup=">",e.lineMax=r,e.parentType=h,T[1]=e.line;for(let R=0;R<f.length;R++)e.bMarks[R+t]=i[R],e.tShift[R+t]=f[R],e.sCount[R+t]=a[R],e.bsCount[R+t]=l[R];return e.blkIndent=E,!0}function S_(e,t,n,u){const s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let o=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(o++);if(r!==42&&r!==45&&r!==95)return!1;let i=1;for(;o<s;){const a=e.src.charCodeAt(o++);if(a!==r&&!Ze(a))return!1;a===r&&i++}if(i<3)return!1;if(u)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(i+1).join(String.fromCharCode(r)),!0}function zl(e,t){const n=e.eMarks[t];let u=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(u++);if(s!==42&&s!==45&&s!==43)return-1;if(u<n){const o=e.src.charCodeAt(u);if(!Ze(o))return-1}return u}function Nl(e,t){const n=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];let s=n;if(s+1>=u)return-1;let o=e.src.charCodeAt(s++);if(o<48||o>57)return-1;for(;;){if(s>=u)return-1;if(o=e.src.charCodeAt(s++),o>=48&&o<=57){if(s-n>=10)return-1;continue}if(o===41||o===46)break;return-1}return s<u&&(o=e.src.charCodeAt(s),!Ze(o))?-1:s}function D_(e,t){const n=e.level+2;for(let u=t+2,s=e.tokens.length-2;u<s;u++)e.tokens[u].level===n&&e.tokens[u].type==="paragraph_open"&&(e.tokens[u+2].hidden=!0,e.tokens[u].hidden=!0,u+=2)}function A_(e,t,n,u){let s,o,r,i,l=t,a=!0;if(e.sCount[l]-e.blkIndent>=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let f=!1;u&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(f=!0);let d,h,g;if((g=Nl(e,l))>=0){if(d=!0,r=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(r,g-1)),f&&h!==1)return!1}else if((g=zl(e,l))>=0)d=!1;else return!1;if(f&&e.skipSpaces(g)>=e.eMarks[l])return!1;if(u)return!0;const v=e.src.charCodeAt(g-1),E=e.tokens.length;d?(i=e.push("ordered_list_open","ol",1),h!==1&&(i.attrs=[["start",h]])):i=e.push("bullet_list_open","ul",1);const k=[l,0];i.map=k,i.markup=String.fromCharCode(v);let T=!1;const $=e.md.block.ruler.getRules("list"),R=e.parentType;for(e.parentType="list";l<n;){o=g,s=e.eMarks[l];const D=e.sCount[l]+g-(e.bMarks[l]+e.tShift[l]);let P=D;for(;o<s;){const M=e.src.charCodeAt(o);if(M===9)P+=4-(P+e.bsCount[l])%4;else if(M===32)P++;else break;o++}const S=o;let G;S>=s?G=1:G=P-D,G>4&&(G=1);const Z=D+G;i=e.push("list_item_open","li",1),i.markup=String.fromCharCode(v);const K=[l,0];i.map=K,d&&(i.info=e.src.slice(r,g-1));const J=e.tight,me=e.tShift[l],H=e.sCount[l],ae=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=Z,e.tight=!0,e.tShift[l]=S-e.bMarks[l],e.sCount[l]=P,S>=s&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||T)&&(a=!1),T=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ae,e.tShift[l]=me,e.sCount[l]=H,e.tight=J,i=e.push("list_item_close","li",-1),i.markup=String.fromCharCode(v),l=e.line,K[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let oe=!1;for(let M=0,ue=$.length;M<ue;M++)if($[M](e,l,n,!0)){oe=!0;break}if(oe)break;if(d){if(g=Nl(e,l),g<0)break;r=e.bMarks[l]+e.tShift[l]}else if(g=zl(e,l),g<0)break;if(v!==e.src.charCodeAt(g-1))break}return d?i=e.push("ordered_list_close","ol",-1):i=e.push("bullet_list_close","ul",-1),i.markup=String.fromCharCode(v),k[1]=l,e.line=l,e.parentType=R,a&&D_(e,E),!0}function F_(e,t,n,u){let s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t],r=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(s)!==91)return!1;function i($){const R=e.lineMax;if($>=R||e.isEmpty($))return null;let D=!1;if(e.sCount[$]-e.blkIndent>3&&(D=!0),e.sCount[$]<0&&(D=!0),!D){const G=e.md.block.ruler.getRules("reference"),Z=e.parentType;e.parentType="reference";let K=!1;for(let J=0,me=G.length;J<me;J++)if(G[J](e,$,R,!0)){K=!0;break}if(e.parentType=Z,K)return null}const P=e.bMarks[$]+e.tShift[$],S=e.eMarks[$];return e.src.slice(P,S+1)}let l=e.src.slice(s,o+1);o=l.length;let a=-1;for(s=1;s<o;s++){const $=l.charCodeAt(s);if($===91)return!1;if($===93){a=s;break}else if($===10){const R=i(r);R!==null&&(l+=R,o=l.length,r++)}else if($===92&&(s++,s<o&&l.charCodeAt(s)===10)){const R=i(r);R!==null&&(l+=R,o=l.length,r++)}}if(a<0||l.charCodeAt(a+1)!==58)return!1;for(s=a+2;s<o;s++){const $=l.charCodeAt(s);if($===10){const R=i(r);R!==null&&(l+=R,o=l.length,r++)}else if(!Ze($))break}const f=e.md.helpers.parseLinkDestination(l,s,o);if(!f.ok)return!1;const d=e.md.normalizeLink(f.str);if(!e.md.validateLink(d))return!1;s=f.pos;const h=s,g=r,v=s;for(;s<o;s++){const $=l.charCodeAt(s);if($===10){const R=i(r);R!==null&&(l+=R,o=l.length,r++)}else if(!Ze($))break}let E=e.md.helpers.parseLinkTitle(l,s,o);for(;E.can_continue;){const $=i(r);if($===null)break;l+=$,s=o,o=l.length,r++,E=e.md.helpers.parseLinkTitle(l,s,o,E)}let k;for(s<o&&v!==s&&E.ok?(k=E.str,s=E.pos):(k="",s=h,r=g);s<o;){const $=l.charCodeAt(s);if(!Ze($))break;s++}if(s<o&&l.charCodeAt(s)!==10&&k)for(k="",s=h,r=g;s<o;){const $=l.charCodeAt(s);if(!Ze($))break;s++}if(s<o&&l.charCodeAt(s)!==10)return!1;const T=mo(l.slice(1,a));return T?(u||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[T]>"u"&&(e.env.references[T]={title:k,href:d}),e.line=r),!0):!1}const M_=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],I_="[a-zA-Z_:][a-zA-Z0-9:._-]*",P_="[^\"'=<>`\\x00-\\x20]+",L_="'[^']*'",R_='"[^"]*"',O_="(?:"+P_+"|"+L_+"|"+R_+")",z_="(?:\\s+"+I_+"(?:\\s*=\\s*"+O_+")?)",l0="<[A-Za-z][A-Za-z0-9\\-]*"+z_+"*\\s*\\/?>",a0="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",N_="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",B_="<[?][\\s\\S]*?[?]>",H_="<![A-Za-z][^>]*>",j_="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",q_=new RegExp("^(?:"+l0+"|"+a0+"|"+N_+"|"+B_+"|"+H_+"|"+j_+")"),V_=new RegExp("^(?:"+l0+"|"+a0+")"),nu=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+M_.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(V_.source+"\\s*$"),/^$/,!1]];function U_(e,t,n,u){let s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(s)!==60)return!1;let r=e.src.slice(s,o),i=0;for(;i<nu.length&&!nu[i][0].test(r);i++);if(i===nu.length)return!1;if(u)return nu[i][2];let l=t+1;if(!nu[i][1].test(r)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(s=e.bMarks[l]+e.tShift[l],o=e.eMarks[l],r=e.src.slice(s,o),nu[i][1].test(r)){r.length!==0&&l++;break}}e.line=l;const a=e.push("html_block","",0);return a.map=[t,l],a.content=e.getLines(t,l,e.blkIndent,!0),!0}function W_(e,t,n,u){let s=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.src.charCodeAt(s);if(r!==35||s>=o)return!1;let i=1;for(r=e.src.charCodeAt(++s);r===35&&s<o&&i<=6;)i++,r=e.src.charCodeAt(++s);if(i>6||s<o&&!Ze(r))return!1;if(u)return!0;o=e.skipSpacesBack(o,s);const l=e.skipCharsBack(o,35,s);l>s&&Ze(e.src.charCodeAt(l-1))&&(o=l),e.line=t+1;const a=e.push("heading_open","h"+String(i),1);a.markup="########".slice(0,i),a.map=[t,e.line];const f=e.push("inline","",0);f.content=e.src.slice(s,o).trim(),f.map=[t,e.line],f.children=[];const d=e.push("heading_close","h"+String(i),-1);return d.markup="########".slice(0,i),!0}function K_(e,t,n){const u=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const s=e.parentType;e.parentType="paragraph";let o=0,r,i=t+1;for(;i<n&&!e.isEmpty(i);i++){if(e.sCount[i]-e.blkIndent>3)continue;if(e.sCount[i]>=e.blkIndent){let g=e.bMarks[i]+e.tShift[i];const v=e.eMarks[i];if(g<v&&(r=e.src.charCodeAt(g),(r===45||r===61)&&(g=e.skipChars(g,r),g=e.skipSpaces(g),g>=v))){o=r===61?1:2;break}}if(e.sCount[i]<0)continue;let h=!1;for(let g=0,v=u.length;g<v;g++)if(u[g](e,i,n,!0)){h=!0;break}if(h)break}if(!o)return!1;const l=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i+1;const a=e.push("heading_open","h"+String(o),1);a.markup=String.fromCharCode(r),a.map=[t,e.line];const f=e.push("inline","",0);f.content=l,f.map=[t,e.line-1],f.children=[];const d=e.push("heading_close","h"+String(o),-1);return d.markup=String.fromCharCode(r),e.parentType=s,!0}function G_(e,t,n){const u=e.md.block.ruler.getRules("paragraph"),s=e.parentType;let o=t+1;for(e.parentType="paragraph";o<n&&!e.isEmpty(o);o++){if(e.sCount[o]-e.blkIndent>3||e.sCount[o]<0)continue;let a=!1;for(let f=0,d=u.length;f<d;f++)if(u[f](e,o,n,!0)){a=!0;break}if(a)break}const r=e.getLines(t,o,e.blkIndent,!1).trim();e.line=o;const i=e.push("paragraph_open","p",1);i.map=[t,e.line];const l=e.push("inline","",0);return l.content=r,l.map=[t,e.line],l.children=[],e.push("paragraph_close","p",-1),e.parentType=s,!0}const xs=[["table",C_,["paragraph","reference"]],["code",$_],["fence",E_,["paragraph","reference","blockquote","list"]],["blockquote",T_,["paragraph","reference","blockquote","list"]],["hr",S_,["paragraph","reference","blockquote","list"]],["list",A_,["paragraph","reference","blockquote"]],["reference",F_],["html_block",U_,["paragraph","reference","blockquote"]],["heading",W_,["paragraph","reference","blockquote"]],["lheading",K_],["paragraph",G_]];function go(){this.ruler=new $t;for(let e=0;e<xs.length;e++)this.ruler.push(xs[e][0],xs[e][1],{alt:(xs[e][2]||[]).slice()})}go.prototype.tokenize=function(e,t,n){const u=this.ruler.getRules(""),s=u.length,o=e.md.options.maxNesting;let r=t,i=!1;for(;r<n&&(e.line=r=e.skipEmptyLines(r),!(r>=n||e.sCount[r]<e.blkIndent));){if(e.level>=o){e.line=n;break}const l=e.line;let a=!1;for(let f=0;f<s;f++)if(a=u[f](e,r,n,!1),a){if(l>=e.line)throw new Error("block rule didn't increment state.line");break}if(!a)throw new Error("none of the block rules matched");e.tight=!i,e.isEmpty(e.line-1)&&(i=!0),r=e.line,r<n&&e.isEmpty(r)&&(i=!0,r++,e.line=r)}};go.prototype.parse=function(e,t,n,u){if(!e)return;const s=new this.State(e,t,n,u);this.tokenize(s,s.line,s.lineMax)};go.prototype.State=ln;function fs(e,t,n,u){this.src=e,this.env=n,this.md=t,this.tokens=u,this.tokens_meta=Array(u.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}fs.prototype.pushPending=function(){const e=new Kt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};fs.prototype.push=function(e,t,n){this.pending&&this.pushPending();const u=new Kt(e,t,n);let s=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),u.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],s={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(u),this.tokens_meta.push(s),u};fs.prototype.scanDelims=function(e,t){const n=this.posMax,u=this.src.charCodeAt(e),s=e>0?this.src.charCodeAt(e-1):32;let o=e;for(;o<n&&this.src.charCodeAt(o)===u;)o++;const r=o-e,i=o<n?this.src.charCodeAt(o):32,l=ns(s)||ts(String.fromCharCode(s)),a=ns(i)||ts(String.fromCharCode(i)),f=es(s),d=es(i),h=!d&&(!a||f||l),g=!f&&(!l||d||a);return{can_open:h&&(t||!g||l),can_close:g&&(t||!h||a),length:r}};fs.prototype.Token=Kt;function Z_(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}function J_(e,t){let n=e.pos;for(;n<e.posMax&&!Z_(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const Y_=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function X_(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,u=e.posMax;if(n+3>u||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const s=e.pending.match(Y_);if(!s)return!1;const o=s[1],r=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!r)return!1;let i=r.url;if(i.length<=o.length)return!1;let l=i.length;for(;l>0&&i.charCodeAt(l-1)===42;)l--;l!==i.length&&(i=i.slice(0,l));const a=e.md.normalizeLink(i);if(!e.md.validateLink(a))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const f=e.push("link_open","a",1);f.attrs=[["href",a]],f.markup="linkify",f.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(i);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=i.length-o.length,!0}function Q_(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const u=e.pending.length-1,s=e.posMax;if(!t)if(u>=0&&e.pending.charCodeAt(u)===32)if(u>=1&&e.pending.charCodeAt(u-1)===32){let o=u-1;for(;o>=1&&e.pending.charCodeAt(o-1)===32;)o--;e.pending=e.pending.slice(0,o),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<s&&Ze(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ui=[];for(let e=0;e<256;e++)ui.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ui[e.charCodeAt(0)]=1});function e3(e,t){let n=e.pos;const u=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=u))return!1;let s=e.src.charCodeAt(n);if(s===10){for(t||e.push("hardbreak","br",0),n++;n<u&&(s=e.src.charCodeAt(n),!!Ze(s));)n++;return e.pos=n,!0}let o=e.src[n];if(s>=55296&&s<=56319&&n+1<u){const i=e.src.charCodeAt(n+1);i>=56320&&i<=57343&&(o+=e.src[n+1],n++)}const r="\\"+o;if(!t){const i=e.push("text_special","",0);s<256&&ui[s]!==0?i.content=o:i.content=r,i.markup=r,i.info="escape"}return e.pos=n+1,!0}function t3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const s=n;n++;const o=e.posMax;for(;n<o&&e.src.charCodeAt(n)===96;)n++;const r=e.src.slice(s,n),i=r.length;if(e.backticksScanned&&(e.backticks[i]||0)<=s)return t||(e.pending+=r),e.pos+=i,!0;let l=n,a;for(;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<o&&e.src.charCodeAt(l)===96;)l++;const f=l-a;if(f===i){if(!t){const d=e.push("code_inline","code",0);d.markup=r,d.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[f]=a}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=i,!0}function n3(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==126)return!1;const s=e.scanDelims(e.pos,!0);let o=s.length;const r=String.fromCharCode(u);if(o<2)return!1;let i;o%2&&(i=e.push("text","",0),i.content=r,o--);for(let l=0;l<o;l+=2)i=e.push("text","",0),i.content=r+r,e.delimiters.push({marker:u,length:0,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close});return e.pos+=s.length,!0}function Bl(e,t){let n;const u=[],s=t.length;for(let o=0;o<s;o++){const r=t[o];if(r.marker!==126||r.end===-1)continue;const i=t[r.end];n=e.tokens[r.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="",e.tokens[i.token-1].type==="text"&&e.tokens[i.token-1].content==="~"&&u.push(i.token-1)}for(;u.length;){const o=u.pop();let r=o+1;for(;r<e.tokens.length&&e.tokens[r].type==="s_close";)r++;r--,o!==r&&(n=e.tokens[r],e.tokens[r]=e.tokens[o],e.tokens[o]=n)}}function u3(e){const t=e.tokens_meta,n=e.tokens_meta.length;Bl(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Bl(e,t[u].delimiters)}const c0={tokenize:n3,postProcess:u3};function s3(e,t){const n=e.pos,u=e.src.charCodeAt(n);if(t||u!==95&&u!==42)return!1;const s=e.scanDelims(e.pos,u===42);for(let o=0;o<s.length;o++){const r=e.push("text","",0);r.content=String.fromCharCode(u),e.delimiters.push({marker:u,length:s.length,token:e.tokens.length-1,end:-1,open:s.can_open,close:s.can_close})}return e.pos+=s.length,!0}function Hl(e,t){const n=t.length;for(let u=n-1;u>=0;u--){const s=t[u];if(s.marker!==95&&s.marker!==42||s.end===-1)continue;const o=t[s.end],r=u>0&&t[u-1].end===s.end+1&&t[u-1].marker===s.marker&&t[u-1].token===s.token-1&&t[s.end+1].token===o.token+1,i=String.fromCharCode(s.marker),l=e.tokens[s.token];l.type=r?"strong_open":"em_open",l.tag=r?"strong":"em",l.nesting=1,l.markup=r?i+i:i,l.content="";const a=e.tokens[o.token];a.type=r?"strong_close":"em_close",a.tag=r?"strong":"em",a.nesting=-1,a.markup=r?i+i:i,a.content="",r&&(e.tokens[t[u-1].token].content="",e.tokens[t[s.end+1].token].content="",u--)}}function o3(e){const t=e.tokens_meta,n=e.tokens_meta.length;Hl(e,e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&Hl(e,t[u].delimiters)}const f0={tokenize:s3,postProcess:o3};function r3(e,t){let n,u,s,o,r="",i="",l=e.pos,a=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const f=e.pos,d=e.posMax,h=e.pos+1,g=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(g<0)return!1;let v=g+1;if(v<d&&e.src.charCodeAt(v)===40){for(a=!1,v++;v<d&&(n=e.src.charCodeAt(v),!(!Ze(n)&&n!==10));v++);if(v>=d)return!1;if(l=v,s=e.md.helpers.parseLinkDestination(e.src,v,e.posMax),s.ok){for(r=e.md.normalizeLink(s.str),e.md.validateLink(r)?v=s.pos:r="",l=v;v<d&&(n=e.src.charCodeAt(v),!(!Ze(n)&&n!==10));v++);if(s=e.md.helpers.parseLinkTitle(e.src,v,e.posMax),v<d&&l!==v&&s.ok)for(i=s.str,v=s.pos;v<d&&(n=e.src.charCodeAt(v),!(!Ze(n)&&n!==10));v++);}(v>=d||e.src.charCodeAt(v)!==41)&&(a=!0),v++}if(a){if(typeof e.env.references>"u")return!1;if(v<d&&e.src.charCodeAt(v)===91?(l=v+1,v=e.md.helpers.parseLinkLabel(e,v),v>=0?u=e.src.slice(l,v++):v=g+1):v=g+1,u||(u=e.src.slice(h,g)),o=e.env.references[mo(u)],!o)return e.pos=f,!1;r=o.href,i=o.title}if(!t){e.pos=h,e.posMax=g;const E=e.push("link_open","a",1),k=[["href",r]];E.attrs=k,i&&k.push(["title",i]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=v,e.posMax=d,!0}function i3(e,t){let n,u,s,o,r,i,l,a,f="";const d=e.pos,h=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const g=e.pos+2,v=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(v<0)return!1;if(o=v+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(n=e.src.charCodeAt(o),!(!Ze(n)&&n!==10));o++);if(o>=h)return!1;for(a=o,i=e.md.helpers.parseLinkDestination(e.src,o,e.posMax),i.ok&&(f=e.md.normalizeLink(i.str),e.md.validateLink(f)?o=i.pos:f=""),a=o;o<h&&(n=e.src.charCodeAt(o),!(!Ze(n)&&n!==10));o++);if(i=e.md.helpers.parseLinkTitle(e.src,o,e.posMax),o<h&&a!==o&&i.ok)for(l=i.str,o=i.pos;o<h&&(n=e.src.charCodeAt(o),!(!Ze(n)&&n!==10));o++);else l="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=d,!1;o++}else{if(typeof e.env.references>"u")return!1;if(o<h&&e.src.charCodeAt(o)===91?(a=o+1,o=e.md.helpers.parseLinkLabel(e,o),o>=0?s=e.src.slice(a,o++):o=v+1):o=v+1,s||(s=e.src.slice(g,v)),r=e.env.references[mo(s)],!r)return e.pos=d,!1;f=r.href,l=r.title}if(!t){u=e.src.slice(g,v);const E=[];e.md.inline.parse(u,e.md,e.env,E);const k=e.push("image","img",0),T=[["src",f],["alt",""]];k.attrs=T,k.children=E,k.content=u,l&&T.push(["title",l])}return e.pos=o,e.posMax=h,!0}const l3=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,a3=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function c3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const u=e.pos,s=e.posMax;for(;;){if(++n>=s)return!1;const r=e.src.charCodeAt(n);if(r===60)return!1;if(r===62)break}const o=e.src.slice(u+1,n);if(a3.test(o)){const r=e.md.normalizeLink(o);if(!e.md.validateLink(r))return!1;if(!t){const i=e.push("link_open","a",1);i.attrs=[["href",r]],i.markup="autolink",i.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=o.length+2,!0}if(l3.test(o)){const r=e.md.normalizeLink("mailto:"+o);if(!e.md.validateLink(r))return!1;if(!t){const i=e.push("link_open","a",1);i.attrs=[["href",r]],i.markup="autolink",i.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(o);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=o.length+2,!0}return!1}function f3(e){return/^<a[>\s]/i.test(e)}function d3(e){return/^<\/a\s*>/i.test(e)}function p3(e){const t=e|32;return t>=97&&t<=122}function h3(e,t){if(!e.md.options.html)return!1;const n=e.posMax,u=e.pos;if(e.src.charCodeAt(u)!==60||u+2>=n)return!1;const s=e.src.charCodeAt(u+1);if(s!==33&&s!==63&&s!==47&&!p3(s))return!1;const o=e.src.slice(u).match(q_);if(!o)return!1;if(!t){const r=e.push("html_inline","",0);r.content=o[0],f3(r.content)&&e.linkLevel++,d3(r.content)&&e.linkLevel--}return e.pos+=o[0].length,!0}const m3=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,g3=/^&([a-z][a-z0-9]{1,31});/i;function v3(e,t){const n=e.pos,u=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=u)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(m3);if(o){if(!t){const r=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),i=e.push("text_special","",0);i.content=ti(r)?Vs(r):Vs(65533),i.markup=o[0],i.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(g3);if(o){const r=u0(o[0]);if(r!==o[0]){if(!t){const i=e.push("text_special","",0);i.content=r,i.markup=o[0],i.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function jl(e){const t={},n=e.length;if(!n)return;let u=0,s=-2;const o=[];for(let r=0;r<n;r++){const i=e[r];if(o.push(0),(e[u].marker!==i.marker||s!==i.token-1)&&(u=r),s=i.token,i.length=i.length||0,!i.close)continue;t.hasOwnProperty(i.marker)||(t[i.marker]=[-1,-1,-1,-1,-1,-1]);const l=t[i.marker][(i.open?3:0)+i.length%3];let a=u-o[u]-1,f=a;for(;a>l;a-=o[a]+1){const d=e[a];if(d.marker===i.marker&&d.open&&d.end<0){let h=!1;if((d.close||i.open)&&(d.length+i.length)%3===0&&(d.length%3!==0||i.length%3!==0)&&(h=!0),!h){const g=a>0&&!e[a-1].open?o[a-1]+1:0;o[r]=r-a+g,o[a]=g,i.open=!1,d.end=r,d.close=!1,f=-1,s=-2;break}}}f!==-1&&(t[i.marker][(i.open?3:0)+(i.length||0)%3]=f)}}function b3(e){const t=e.tokens_meta,n=e.tokens_meta.length;jl(e.delimiters);for(let u=0;u<n;u++)t[u]&&t[u].delimiters&&jl(t[u].delimiters)}function _3(e){let t,n,u=0;const s=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)s[t].nesting<0&&u--,s[t].level=u,s[t].nesting>0&&u++,s[t].type==="text"&&t+1<o&&s[t+1].type==="text"?s[t+1].content=s[t].content+s[t+1].content:(t!==n&&(s[n]=s[t]),n++);t!==n&&(s.length=n)}const qo=[["text",J_],["linkify",X_],["newline",Q_],["escape",e3],["backticks",t3],["strikethrough",c0.tokenize],["emphasis",f0.tokenize],["link",r3],["image",i3],["autolink",c3],["html_inline",h3],["entity",v3]],Vo=[["balance_pairs",b3],["strikethrough",c0.postProcess],["emphasis",f0.postProcess],["fragments_join",_3]];function ds(){this.ruler=new $t;for(let e=0;e<qo.length;e++)this.ruler.push(qo[e][0],qo[e][1]);this.ruler2=new $t;for(let e=0;e<Vo.length;e++)this.ruler2.push(Vo[e][0],Vo[e][1])}ds.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),u=n.length,s=e.md.options.maxNesting,o=e.cache;if(typeof o[t]<"u"){e.pos=o[t];return}let r=!1;if(e.level<s){for(let i=0;i<u;i++)if(e.level++,r=n[i](e,!0),e.level--,r){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;r||e.pos++,o[t]=e.pos};ds.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,u=e.posMax,s=e.md.options.maxNesting;for(;e.pos<u;){const o=e.pos;let r=!1;if(e.level<s){for(let i=0;i<n;i++)if(r=t[i](e,!1),r){if(o>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=u)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};ds.prototype.parse=function(e,t,n,u){const s=new this.State(e,t,n,u);this.tokenize(s);const o=this.ruler2.getRules(""),r=o.length;for(let i=0;i<r;i++)o[i](s)};ds.prototype.State=fs;function y3(e){const t={};e=e||{},t.src_Any=Xc.source,t.src_Cc=Qc.source,t.src_Z=t0.source,t.src_P=Qr.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?!"+n+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+n+"|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function yr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(u){e[u]=n[u]})}),e}function vo(e){return Object.prototype.toString.call(e)}function x3(e){return vo(e)==="[object String]"}function k3(e){return vo(e)==="[object Object]"}function w3(e){return vo(e)==="[object RegExp]"}function ql(e){return vo(e)==="[object Function]"}function C3(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const d0={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function $3(e){return Object.keys(e||{}).reduce(function(t,n){return t||d0.hasOwnProperty(n)},!1)}const E3={"http:":{validate:function(e,t,n){const u=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(u)?u.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const u=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(u)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:u.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const u=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(u)?u.match(n.re.mailto)[0].length:0}}},T3="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",S3="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function D3(e){e.__index__=-1,e.__text_cache__=""}function A3(e){return function(t,n){const u=t.slice(n);return e.test(u)?u.match(e)[0].length:0}}function Vl(){return function(e,t){t.normalize(e)}}function Us(e){const t=e.re=y3(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(T3),n.push(t.src_xn),t.src_tlds=n.join("|");function u(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(u(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(u(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(u(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(u(t.tpl_host_fuzzy_test),"i");const s=[];e.__compiled__={};function o(i,l){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+l)}Object.keys(e.__schemas__).forEach(function(i){const l=e.__schemas__[i];if(l===null)return;const a={validate:null,link:null};if(e.__compiled__[i]=a,k3(l)){w3(l.validate)?a.validate=A3(l.validate):ql(l.validate)?a.validate=l.validate:o(i,l),ql(l.normalize)?a.normalize=l.normalize:l.normalize?o(i,l):a.normalize=Vl();return}if(x3(l)){s.push(i);return}o(i,l)}),s.forEach(function(i){e.__compiled__[e.__schemas__[i]]&&(e.__compiled__[i].validate=e.__compiled__[e.__schemas__[i]].validate,e.__compiled__[i].normalize=e.__compiled__[e.__schemas__[i]].normalize)}),e.__compiled__[""]={validate:null,normalize:Vl()};const r=Object.keys(e.__compiled__).filter(function(i){return i.length>0&&e.__compiled__[i]}).map(C3).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+r+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+r+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),D3(e)}function F3(e,t){const n=e.__index__,u=e.__last_index__,s=e.__text_cache__.slice(n,u);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=u+t,this.raw=s,this.text=s,this.url=s}function xr(e,t){const n=new F3(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function At(e,t){if(!(this instanceof At))return new At(e,t);t||$3(e)&&(t=e,e={}),this.__opts__=yr({},d0,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=yr({},E3,e),this.__compiled__={},this.__tlds__=S3,this.__tlds_replaced__=!1,this.re={},Us(this)}At.prototype.add=function(t,n){return this.__schemas__[t]=n,Us(this),this};At.prototype.set=function(t){return this.__opts__=yr(this.__opts__,t),this};At.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,u,s,o,r,i,l,a,f;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(o=this.testSchemaAt(t,n[2],l.lastIndex),o){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(u=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(r=u.index+u[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=u.index+u[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(f=t.indexOf("@"),f>=0&&(s=t.match(this.re.email_fuzzy))!==null&&(r=s.index+s[1].length,i=s.index+s[0].length,(this.__index__<0||r<this.__index__||r===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=r,this.__last_index__=i))),this.__index__>=0};At.prototype.pretest=function(t){return this.re.pretest.test(t)};At.prototype.testSchemaAt=function(t,n,u){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,u,this):0};At.prototype.match=function(t){const n=[];let u=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(xr(this,u)),u=this.__last_index__);let s=u?t.slice(u):t;for(;this.test(s);)n.push(xr(this,u)),s=s.slice(this.__last_index__),u+=this.__last_index__;return n.length?n:null};At.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const n=this.re.schema_at_start.exec(t);if(!n)return null;const u=this.testSchemaAt(t,n[2],n[0].length);return u?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u,xr(this,0)):null};At.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(u,s,o){return u!==o[s-1]}).reverse(),Us(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,Us(this),this)};At.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};At.prototype.onCompile=function(){};const cu=2147483647,en=36,si=1,us=26,M3=38,I3=700,p0=72,h0=128,m0="-",P3=/^xn--/,L3=/[^\0-\x7F]/,R3=/[\x2E\u3002\uFF0E\uFF61]/g,O3={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Uo=en-si,tn=Math.floor,Wo=String.fromCharCode;function Fn(e){throw new RangeError(O3[e])}function z3(e,t){const n=[];let u=e.length;for(;u--;)n[u]=t(e[u]);return n}function g0(e,t){const n=e.split("@");let u="";n.length>1&&(u=n[0]+"@",e=n[1]),e=e.replace(R3,".");const s=e.split("."),o=z3(s,t).join(".");return u+o}function v0(e){const t=[];let n=0;const u=e.length;for(;n<u;){const s=e.charCodeAt(n++);if(s>=55296&&s<=56319&&n<u){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((s&1023)<<10)+(o&1023)+65536):(t.push(s),n--)}else t.push(s)}return t}const N3=e=>String.fromCodePoint(...e),B3=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:en},Ul=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},b0=function(e,t,n){let u=0;for(e=n?tn(e/I3):e>>1,e+=tn(e/t);e>Uo*us>>1;u+=en)e=tn(e/Uo);return tn(u+(Uo+1)*e/(e+M3))},_0=function(e){const t=[],n=e.length;let u=0,s=h0,o=p0,r=e.lastIndexOf(m0);r<0&&(r=0);for(let i=0;i<r;++i)e.charCodeAt(i)>=128&&Fn("not-basic"),t.push(e.charCodeAt(i));for(let i=r>0?r+1:0;i<n;){const l=u;for(let f=1,d=en;;d+=en){i>=n&&Fn("invalid-input");const h=B3(e.charCodeAt(i++));h>=en&&Fn("invalid-input"),h>tn((cu-u)/f)&&Fn("overflow"),u+=h*f;const g=d<=o?si:d>=o+us?us:d-o;if(h<g)break;const v=en-g;f>tn(cu/v)&&Fn("overflow"),f*=v}const a=t.length+1;o=b0(u-l,a,l==0),tn(u/a)>cu-s&&Fn("overflow"),s+=tn(u/a),u%=a,t.splice(u++,0,s)}return String.fromCodePoint(...t)},y0=function(e){const t=[];e=v0(e);const n=e.length;let u=h0,s=0,o=p0;for(const l of e)l<128&&t.push(Wo(l));const r=t.length;let i=r;for(r&&t.push(m0);i<n;){let l=cu;for(const f of e)f>=u&&f<l&&(l=f);const a=i+1;l-u>tn((cu-s)/a)&&Fn("overflow"),s+=(l-u)*a,u=l;for(const f of e)if(f<u&&++s>cu&&Fn("overflow"),f===u){let d=s;for(let h=en;;h+=en){const g=h<=o?si:h>=o+us?us:h-o;if(d<g)break;const v=d-g,E=en-g;t.push(Wo(Ul(g+v%E,0))),d=tn(v/E)}t.push(Wo(Ul(d,0))),o=b0(s,a,i===r),s=0,++i}++s,++u}return t.join("")},H3=function(e){return g0(e,function(t){return P3.test(t)?_0(t.slice(4).toLowerCase()):t})},j3=function(e){return g0(e,function(t){return L3.test(t)?"xn--"+y0(t):t})},x0={version:"2.3.1",ucs2:{decode:v0,encode:N3},decode:_0,encode:y0,toASCII:j3,toUnicode:H3},q3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},V3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},U3={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}},W3={default:q3,zero:V3,commonmark:U3},K3=/^(vbscript|javascript|file|data):/,G3=/^data:image\/(gif|png|jpeg|webp);/;function Z3(e){const t=e.trim().toLowerCase();return K3.test(t)?G3.test(t):!0}const k0=["http:","https:","mailto:"];function J3(e){const t=Xr(e,!0);if(t.hostname&&(!t.protocol||k0.indexOf(t.protocol)>=0))try{t.hostname=x0.toASCII(t.hostname)}catch{}return cs(Yr(t))}function Y3(e){const t=Xr(e,!0);if(t.hostname&&(!t.protocol||k0.indexOf(t.protocol)>=0))try{t.hostname=x0.toUnicode(t.hostname)}catch{}return hu(Yr(t),hu.defaultChars+"%")}function Rt(e,t){if(!(this instanceof Rt))return new Rt(e,t);t||ei(e)||(t=e||{},e="default"),this.inline=new ds,this.block=new go,this.core=new ni,this.renderer=new gu,this.linkify=new At,this.validateLink=Z3,this.normalizeLink=J3,this.normalizeLinkText=Y3,this.utils=Qb,this.helpers=ho({},u_),this.options={},this.configure(e),t&&this.set(t)}Rt.prototype.set=function(e){return ho(this.options,e),this};Rt.prototype.configure=function(e){const t=this;if(ei(e)){const n=e;if(e=W3[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this};Rt.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(s){n=n.concat(this[s].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const u=e.filter(function(s){return n.indexOf(s)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+u);return this};Rt.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(s){n=n.concat(this[s].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const u=e.filter(function(s){return n.indexOf(s)<0});if(u.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+u);return this};Rt.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Rt.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens};Rt.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Rt.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Rt.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const X3={class:"detail-header"},Q3={class:"header-top"},ey={class:"nav-btns"},ty=["disabled"],ny=["disabled"],uy={key:0,class:"header-meta"},sy={class:"detail-tabs"},oy={key:0,class:"block-sep"},ry={key:0,class:"params-table"},iy={class:"params-key"},ly={class:"params-val"},ay=["innerHTML"],cy=["innerHTML"],fy=["innerHTML"],dy={class:"raw-header"},py=["innerHTML"],hy={class:"detail-footer"},my={class:"meta-key"},gy=["title"],Wl=5e4,Kl=500,vy=2e4,by=450,_y=tt({__name:"DetailPane",props:{entry:{},messages:{},selectedIndex:{}},emits:["close","navigate"],setup(e,{emit:t}){const n=new Rt({html:!1,linkify:!0,typographer:!1,breaks:!0}),u=e,s=t,o=he("rendered"),r=he(!1),i=he(null);let l=null,a=null;const f=new Map,d=new Set,h=he(0),g=O(()=>{var p;return((p=u.messages[u.selectedIndex])==null?void 0:p.msg)??null}),v=O(()=>po(u.entry.contextInfo.messages||[])),E=O(()=>{const p=g.value;if(!p)return"";const m=It(p);let F=(ut[m]||{label:m}).label;if(p.contentBlocks)for(const z of p.contentBlocks){if(z.type==="tool_use"){F=`Tool Call — ${z.name||"unknown"}`;break}if(z.type==="tool_result"){const Y=z.tool_use_id?v.value[z.tool_use_id]:null;F=`Tool Result${Y?" — "+Y:""}`;break}if(z.type==="thinking"){F="Thinking";break}}return F}),k=O(()=>{if(!g.value)return"";const p=It(g.value);return(ut[p]||{color:"#4b5563"}).color}),T=O(()=>!g.value||!u.entry.contextInfo.totalTokens?"0":((g.value.tokens||0)/u.entry.contextInfo.totalTokens*100).toFixed(1)),$=O(()=>u.selectedIndex>0),R=O(()=>u.selectedIndex<u.messages.length-1);Ge(()=>u.selectedIndex,()=>{o.value="rendered",r.value=!1,Je(()=>{i.value&&(i.value.scrollTop=0)}),Je(()=>{j()})}),Ge([o,r],()=>{Je(()=>{j()})}),Ge(g,()=>{Je(()=>{j()})},{immediate:!0});function D(p){const m=u.selectedIndex+p;m>=0&&m<u.messages.length&&s("navigate",m)}function P(p){p.key==="Escape"&&(s("close"),p.preventDefault()),(p.key==="ArrowUp"||p.key==="k")&&(D(-1),p.preventDefault()),(p.key==="ArrowDown"||p.key==="j")&&(D(1),p.preventDefault())}const S=he("Copy");async function G(){if(!g.value)return;const p=o.value==="raw"?JSON.stringify(Ro(g.value),null,2):Fh(g.value);await navigator.clipboard.writeText(p),S.value="Copied!",setTimeout(()=>{S.value="Copy"},1500)}function Z(p){if(r.value)return{text:p,truncated:!1};if(p.length>Wl)return{text:p.slice(0,Wl),truncated:!0};const m=p.split(`
44
- `);return m.length>Kl?{text:m.slice(0,Kl).join(`
45
- `),truncated:!0}:{text:p,truncated:!1}}function K(p){let m=2166136261;for(let _=0;_<p.length;_++)m^=p.charCodeAt(_),m=Math.imul(m,16777619);return(m>>>0).toString(36)}function J(p){return p.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function me(p,m,_){let F="",z=0;m.lastIndex=0;let ie=m.exec(p);for(;ie;){const Y=ie.index,fe=ie[0];F+=J(p.slice(z,Y)),F+=_(fe,Y),z=Y+fe.length,ie=m.exec(p)}return F+=J(p.slice(z)),F}function H(p){return me(p,/"(?:\\.|[^"\\])*"(?=\s*:)?|"(?:\\.|[^"\\])*"|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,(_,F)=>{if(_.startsWith('"')){const z=p.slice(F+_.length);return`<span class="${/^\s*:/.test(z)?"syn-key":"syn-str"}">${J(_)}</span>`}return _==="true"||_==="false"?`<span class="syn-bool">${_}</span>`:_==="null"?`<span class="syn-null">${_}</span>`:`<span class="syn-num">${_}</span>`})}function ae(p){return me(p,/<!--[\s\S]*?-->|<\/?[\w:.-]+(?:\s+[\w:.-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'))?)*\s*\/?>/g,_=>{if(_.startsWith("<!--"))return`<span class="syn-com">${J(_)}</span>`;const F=/^<(\/?)([\w:.-]+)([\s\S]*?)(\/?)>$/.exec(_);if(!F)return`<span class="syn-tag">${J(_)}</span>`;const z=F[1]?"/":"",ie=F[2],Y=F[3]||"",fe=F[4]?"/":"";let te="";const Ee=/([\w:.-]+)(\s*=\s*)(".*?"|'.*?')/g;let be=0,xe=Ee.exec(Y);for(;xe;)te+=J(Y.slice(be,xe.index)),te+=`<span class="syn-attr">${J(xe[1])}</span>`,te+=J(xe[2]),te+=`<span class="syn-str">${J(xe[3])}</span>`,be=xe.index+xe[0].length,xe=Ee.exec(Y);return te+=J(Y.slice(be)),`<span class="syn-punc">&lt;${z}</span><span class="syn-tag">${J(ie)}</span>${te}<span class="syn-punc">${fe}&gt;</span>`})}function oe(p){return me(p,/```[\s\S]*?```|`[^`\n]+`|^#{1,6}\s.+$|^\s*[-*+]\s.+$|^\s*\d+\.\s.+$|^>\s.+$|\*\*[^*\n]+\*\*|__[^_\n]+__|\*[^*\n]+\*|_[^_\n]+_|~~[^~\n]+~~|\[[^\]]+\]\([^)]+\)/gm,_=>_.startsWith("```")||_.startsWith("`")?`<span class="syn-code">${J(_)}</span>`:_.startsWith("#")?`<span class="syn-heading">${J(_)}</span>`:/^\s*[-*+]\s/.test(_)||/^\s*\d+\.\s/.test(_)?`<span class="syn-list">${J(_)}</span>`:_.startsWith(">")?`<span class="syn-quote">${J(_)}</span>`:_.startsWith("[")?`<span class="syn-link">${J(_)}</span>`:`<span class="syn-em">${J(_)}</span>`)}function M(p){return me(p,/\/\/.*$|\/\*[\s\S]*?\*\/|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|`(?:\\.|[^`\\])*`|\b(?:const|let|var|function|return|if|else|for|while|switch|case|break|continue|try|catch|finally|class|extends|new|import|from|export|async|await|interface|type|public|private|protected|throw|in|of|typeof|instanceof|true|false|null|undefined)\b|-?\d+(?:\.\d+)?/gm,_=>_.startsWith("//")||_.startsWith("/*")?`<span class="syn-com">${J(_)}</span>`:_.startsWith('"')||_.startsWith("'")||_.startsWith("`")?`<span class="syn-str">${J(_)}</span>`:/^-?\d/.test(_)?`<span class="syn-num">${_}</span>`:_==="true"||_==="false"?`<span class="syn-bool">${_}</span>`:_==="null"||_==="undefined"?`<span class="syn-null">${_}</span>`:`<span class="syn-keyword">${_}</span>`)}function ue(p){const m=p.trim();if(!(m.startsWith("{")||m.startsWith("[")))return!1;try{return JSON.parse(m),!0}catch{return!1}}function ce(p){const m=p.trim();return m.startsWith("<")?/<[\w:.-]+[\s>]/.test(m)&&/<\/[\w:.-]+>/.test(m):!1}function q(p){return/(^#{1,6}\s)|(^\s*[-*+]\s)|(^\s*\d+\.\s)|(```)|(`[^`\n]+`)|(\[[^\]]+\]\([^)]+\))|(^>\s)|(\*\*[^*\n]+\*\*)/m.test(p)}function re(p){return/[{}();]|(^\s*(const|let|var|function|if|for|while|class|import|export)\s)/m.test(p)}function _e(p,m=!1){return m||ue(p)?"json":ce(p)?"xml":q(p)?"markdown":re(p)?"code":"text"}function N(p){return p==="text"||p==="input_text"||p==="thinking"}function ne(p){return n.render(p)}function Q(p,m=!1){const _=_e(p,m);return _==="json"?H(p):_==="xml"?ae(p):_==="markdown"?oe(p):_==="code"?M(p):J(p)}function ge(p){return p==="json"?"json":p==="xml"?"xml":p==="markdown"?"markdown":p==="code"?"typescript":null}function ye(p,m){return!(m==="text"||p.length>vy||p.split(`
46
- `).length>by)}async function w(){if(!l){if(a)return a;a=(async()=>{const{createHighlighterCore:p}=await qe(async()=>{const{createHighlighterCore:_}=await import("./core-IjjuPsJe.js");return{createHighlighterCore:_}},[]),{createOnigurumaEngine:m}=await qe(async()=>{const{createOnigurumaEngine:_}=await import("./engine-oniguruma-KVl37NQr.js");return{createOnigurumaEngine:_}},[]);l=await p({engine:m(qe(()=>import("./wasm-CG6Dc4jp.js"),[])),themes:[qe(()=>import("./github-dark-DHJKELXO.js"),[])],langs:[qe(()=>import("./json-Cp-IABpG.js"),[]),qe(()=>import("./jsonc-Des-eS-w.js"),[]),qe(()=>import("./yaml-Buea-lGh.js"),[]),qe(()=>import("./xml-sdJ4AIDG.js"),__vite__mapDeps([0,1])),qe(()=>import("./html-GMplVEZG.js"),__vite__mapDeps([2,3,4])),qe(()=>import("./css-DPfMkruS.js"),[]),qe(()=>import("./markdown-Cvjx9yec.js"),[]),qe(()=>import("./typescript-BPQ3VLAy.js"),[]),qe(()=>import("./javascript-wDzz0qaB.js"),[]),qe(()=>import("./jsx-g9-lgVsj.js"),[]),qe(()=>import("./tsx-COt5Ahok.js"),[]),qe(()=>import("./python-B6aJPvgy.js"),[]),qe(()=>import("./shellscript-Yzrsuije.js"),[]),qe(()=>import("./sql-BLtJtn59.js"),[]),qe(()=>import("./diff-D97Zzqfu.js"),[]),qe(()=>import("./toml-vGWfd6FD.js"),[]),qe(()=>import("./rust-B1yitclQ.js"),[]),qe(()=>import("./go-CxLEBnE3.js"),[]),qe(()=>import("./c-BIGW1oBm.js"),[]),qe(()=>import("./cpp-BRuaLJcg.js"),__vite__mapDeps([5,6,7])),qe(()=>import("./java-CylS5w8V.js"),[]),qe(()=>import("./ruby-CkRbH_-r.js"),__vite__mapDeps([8,2,3,4,0,1,7,9,10,11,12,5,6,13,14])),qe(()=>import("./php-Dhbhpdrm.js"),__vite__mapDeps([15,2,3,4,0,1,7,16])),qe(()=>import("./swift-Dg5xB15N.js"),[]),qe(()=>import("./kotlin-BdnUsdx6.js"),[]),qe(()=>import("./graphql-ChdNCCLP.js"),__vite__mapDeps([9,3,10,11,12])),qe(()=>import("./dockerfile-BcOcwvcX.js"),[])]})})(),await a}}async function L(p,m,_){if(!ye(p,m)||f.has(_)||d.has(_))return;const F=ge(m);if(F){d.add(_);try{if(await w(),!l)return;const z=l.codeToHtml(p,{lang:F,theme:"github-dark"});f.set(_,z),h.value+=1}catch{}finally{d.delete(_)}}}function W(p,m=!1){h.value;const _=_e(p,m),F=`${_}:${K(p)}`;if(ye(p,_)){const z=f.get(F);if(z)return z;L(p,_,F)}return Q(p,m)}function j(){const p=g.value;if(!p)return;if(o.value==="raw"){const _=JSON.stringify(Ro(p),null,2),F=Z(_).text,z=_e(F,!0);L(F,z,`${z}:${K(F)}`);return}const m=I();for(const _ of m){const F=Z(_.content).text,z=_e(F,_.isJson);L(F,z,`${z}:${K(F)}`)}}function C(p){const m=Object.entries(p);if(m.length===0)return null;const _=[];for(const[F,z]of m){if(z==null){_.push([F,"null"]);continue}if(typeof z=="boolean"||typeof z=="number"){_.push([F,String(z)]);continue}if(typeof z=="string"){if(z.length>120||z.includes(`
47
- `))return null;_.push([F,z]);continue}return null}return _}function I(){const p=g.value;if(!p)return[];const m=p.contentBlocks;return m&&m.length>0?m.map(_=>{if(_.type==="tool_use"){const z=_.input&&typeof _.input=="object"&&!Array.isArray(_.input)?_.input:null,ie=z?C(z):null,Y=z?JSON.stringify(z,null,2):"{}";return{type:"tool_use",label:`tool_use: ${_.name||"?"}`,labelClass:"lbl-tool-use",content:Y,isJson:!0,toolParams:ie}}if(_.type==="tool_result"){const z=_.tool_use_id?v.value[_.tool_use_id]:null,ie=typeof _.content=="string"?_.content:JSON.stringify(_.content,null,2);return{type:"tool_result",label:`tool_result${z?": "+z:""}`,labelClass:"lbl-tool-result",content:ie,isJson:!1}}const F=_;return F.type==="thinking"?{type:"thinking",label:"thinking",labelClass:"lbl-thinking",content:F.thinking||F.text||"",isJson:!1}:_.type==="text"||_.type==="input_text"?{type:_.type,label:_.type,labelClass:"lbl-text",content:_.text||"",isJson:!1}:_.type==="image"?{type:"image",label:"image",labelClass:"lbl-image",content:"[Image content]",isJson:!1}:{type:"unknown",label:"block",labelClass:"lbl-text",content:`[Unknown block type: ${_.type||"unspecified"}]`,isJson:!1}}):[{type:"text",label:"",labelClass:"",content:p.content||"",isJson:!1}]}const b=O(()=>{const p=g.value;if(!p)return[];const m=[["Role",p.role],["Tokens",Ce(p.tokens||0)],["% context",T.value+"%"],["Model",u.entry.contextInfo.model||"?"]];if(p.contentBlocks){for(const _ of p.contentBlocks)if(_.type==="tool_use"&&(m.push(["tool_use_id",_.id||"?"]),m.push(["tool_name",_.name||"?"])),_.type==="tool_result"&&_.tool_use_id){m.push(["tool_use_id",_.tool_use_id]);const F=v.value[_.tool_use_id];F&&m.push(["tool_name",F])}}return m.push(["Position",`${u.selectedIndex+1} / ${u.messages.length}`]),m});return(p,m)=>{const _=jn("tooltip");return y(),x("div",{class:"detail",tabindex:"0",onKeydown:P},[c("div",X3,[c("div",Q3,[c("span",{class:"detail-title",style:Se({color:k.value})},A(E.value),5),c("div",ey,[je((y(),x("button",{disabled:!$.value,onClick:m[0]||(m[0]=F=>D(-1))},[...m[6]||(m[6]=[c("i",{class:"i-carbon-chevron-up"},null,-1)])],8,ty)),[[_,"↑ Previous"]]),je((y(),x("button",{disabled:!R.value,onClick:m[1]||(m[1]=F=>D(1))},[...m[7]||(m[7]=[c("i",{class:"i-carbon-chevron-down"},null,-1)])],8,ny)),[[_,"↓ Next"]])]),je((y(),x("button",{class:"close-btn",onClick:m[2]||(m[2]=F=>p.$emit("close"))},[...m[8]||(m[8]=[c("i",{class:"i-carbon-close"},null,-1)])])),[[_,"Close (Esc)"]])]),g.value?(y(),x("div",uy,[c("span",null,[c("b",null,A(g.value.role),1)]),c("span",null,A(X(Ce)(g.value.tokens||0))+" tok",1),c("span",null,A(T.value)+"%",1),c("span",null,A(e.selectedIndex+1)+"/"+A(e.messages.length),1)])):se("",!0)]),c("div",sy,[c("button",{class:le({on:o.value==="rendered"}),onClick:m[3]||(m[3]=F=>o.value="rendered")},"Rendered",2),c("button",{class:le({on:o.value==="raw"}),onClick:m[4]||(m[4]=F=>o.value="raw")},"Raw",2)]),c("div",{ref_key:"contentEl",ref:i,class:"detail-body"},[o.value==="rendered"&&g.value?(y(!0),x(de,{key:0},Te(I(),(F,z)=>(y(),x(de,{key:z},[z>0?(y(),x("hr",oy)):se("",!0),F.label?(y(),x("div",{key:1,class:le(["block-label",F.labelClass])},A(F.label),3)):se("",!0),F.type==="tool_use"?(y(),x(de,{key:2},[F.toolParams?(y(),x("table",ry,[c("tbody",null,[(y(!0),x(de,null,Te(F.toolParams,([ie,Y])=>(y(),x("tr",{key:ie},[c("td",iy,A(ie),1),c("td",ly,A(Y),1)]))),128))])])):(y(),x("div",{key:1,class:"block-content syntax rich-html kind-json",innerHTML:W(Z(F.content).text,!0)},null,8,ay))],64)):N(F.type)?(y(),x("div",{key:3,class:"block-content md-rendered",innerHTML:ne(Z(F.content).text)},null,8,cy)):(y(),x("div",{key:4,class:le(["block-content syntax rich-html",`kind-${_e(Z(F.content).text,F.isJson)}`]),innerHTML:W(Z(F.content).text,F.isJson)},null,10,fy)),Z(F.content).truncated?(y(),x("button",{key:5,class:"show-more",onClick:m[5]||(m[5]=ie=>r.value=!0)}," Show full content… ")):se("",!0)],64))),128)):o.value==="raw"&&g.value?(y(),x(de,{key:1},[c("div",dy,[c("button",{class:le(["copy-btn",{copied:S.value==="Copied!"}]),onClick:G},[m[9]||(m[9]=c("i",{class:"i-carbon-copy"},null,-1)),we(" "+A(S.value),1)],2)]),c("div",{class:"block-content syntax rich-html kind-json",innerHTML:W(JSON.stringify(X(Ro)(g.value),null,2),!0)},null,8,py)],64)):se("",!0)],512),c("div",hy,[m[10]||(m[10]=c("div",{class:"meta-header"},"Metadata",-1)),(y(!0),x(de,null,Te(b.value,([F,z])=>(y(),x(de,{key:F},[c("span",my,A(F),1),c("span",{class:"meta-val",title:z},A(z),9,gy)],64))),128))])],32)}}}),yy=rt(_y,[["__scopeId","data-v-02c22b5e"]]),xy={class:"msg-toolbar"},ky={class:"message-view-toggle"},wy={key:0,class:"message-view-toggle agent-toggle"},Cy={key:0,class:"heavy-strip"},$y={class:"heavy-actions"},Ey=["onClick"],Ty={class:"heavy-category"},Sy={class:"heavy-preview"},Dy={class:"heavy-tokens"},Ay={key:1,class:"focus-strip"},Fy={key:0},My={key:1},Iy=["data-category"],Py=["onClick"],Ly={class:"group-name"},Ry={class:"group-stats"},Oy={class:"group-bar-track"},zy=["data-tool-name","onClick"],Ny={class:"msg-role"},By={class:"msg-preview"},Hy={key:0,class:"focus-strip"},jy={class:"focus-file-name"},qy={class:"focus-file-count"},Vy={class:"chrono-list"},Uy=["onClick"],Wy={class:"chrono-gutter subagent-gutter"},Ky={class:"chrono-preview subagent-preview"},Gy={class:"chrono-tok subagent-model"},Zy={class:"chrono-turn-label"},Jy={key:2,class:"chrono-future-sep"},Yy=["onClick"],Xy={class:"chrono-gutter"},Qy={class:"chrono-type"},e6={class:"chrono-preview"},t6=["onClick"],n6=tt({__name:"MessagesTab",setup(e){const t=Ft(),n=O(()=>t.selectedEntry),u=O(()=>t.selectedSession),{isExpanded:s,toggle:o,expand:r}=ab(),i=O(()=>{var V;return((V=u.value)==null?void 0:V.prunedMessages)??[]});function l(V,B){return cb(V,B,i.value)}async function a(V,B,ve){var Me;ve.stopPropagation();const ee=(Me=u.value)==null?void 0:Me.id;if(!ee||l(V,B))return;const $e=Yc(V,B);await t.pruneMessage(ee,$e)}const f=he(null),d=he("chrono"),h=he(!1),g=he(0),v=he(null),E=he(1),k=he(null),T=he([]),$=he(0),R=O(()=>po(P.value)),D=O(()=>{const V=u.value;return!V||V.entries.length<=1?!1:vn([...V.entries].reverse()).some(ve=>!ve.isMain)}),P=O(()=>{var B;if(!n.value)return[];t.entryDetailVersion;const V=t.getEntryDetail(n.value.id);return(B=V==null?void 0:V.messages)!=null&&B.length?V.messages:n.value.contextInfo.messages||[]}),S=O(()=>!u.value||u.value.entries.length===0?null:u.value.entries[0]),G=O(()=>{var B;if(!S.value)return[];t.entryDetailVersion;const V=t.getEntryDetail(S.value.id);return(B=V==null?void 0:V.messages)!=null&&B.length?V.messages:S.value.contextInfo.messages||[]}),Z=O(()=>P.value.length),K=O(()=>t.selectionMode!=="pinned"?!1:G.value.length>Z.value);function J(V){const B=u.value;if(!B)return null;for(let ve=1;ve<B.entries.length;ve++){const ee=B.entries[ve].contextInfo.messages;if(ee&&ee.length>V)return ee[V]}return null}const me=O(()=>{const V=i.value,B=P.value,ve=[];if(V.length>0){const ee=new Map;for(const Fe of V){const Xe=Fe.match(/^(user|assistant|unknown):(\d+)$/);Xe&&ee.set(parseInt(Xe[2]),Fe)}let $e=0;const Me=Math.max(B.length+ee.size,ee.size>0?Math.max(...ee.keys())+1:0);for(let Fe=0;Fe<Me;Fe++)if(ee.has(Fe)){const Xe=J(Fe);Xe&&ve.push({msg:Xe,origIdx:Fe,future:!1,prunedGhost:!0})}else $e<B.length&&(ve.push({msg:B[$e],origIdx:Fe,future:!1,prunedGhost:!1}),$e++);for(;$e<B.length;)ve.push({msg:B[$e],origIdx:ve.length,future:!1,prunedGhost:!1}),$e++}else for(let ee=0;ee<B.length;ee++)ve.push({msg:B[ee],origIdx:ee,future:!1,prunedGhost:!1});if(K.value)for(let ee=B.length;ee<G.value.length;ee++)ve.push({msg:G.value[ee],origIdx:ee,future:!0,prunedGhost:!1});return ve}),H=O(()=>{const V=me.value,B=new Set;V.length>0&&B.add(0);let ve=!1;for(let ee=0;ee<V.length;ee++){const $e=V[ee].msg.role;$e==="assistant"?ve=!0:$e==="user"&&ve&&(B.add(ee),ve=!1)}return B}),ae=O(()=>{const V=u.value,B=n.value;if(!V||!B||t.messagesMode!=="all")return new Map;const ve=vn([...V.entries].reverse()),ee=[],$e=[];let Me=[];for(const pe of ve)pe.isMain?(ee.push(pe.entry),ee.length>1&&$e.push([...Me]),Me=[]):ee.length>0&&Me.push(pe.entry);$e.push([...Me]);const Fe=ee.findIndex(pe=>pe.id===B.id);if(Fe<0)return new Map;const Xe=Array.from(H.value).sort((pe,ke)=>pe-ke),Ot=ue.value,U=new Map;for(let pe=0;pe<=Fe&&pe<$e.length;pe++){const ke=$e[pe];if(ke.length===0)continue;const Ie=pe+1-Ot;Ie<0||Ie<Xe.length&&U.set(Xe[Ie],ke)}return U}),oe=O(()=>{const V=u.value,B=n.value;if(!V||!B)return 1;const ve=vn([...V.entries].reverse());let ee=0;for(const $e of ve)if($e.isMain&&ee++,$e.entry.id===B.id)return ee;return 1}),M=O(()=>{const V=Z.value;let B=0;for(const ve of H.value)ve<V&&B++;return B}),ue=O(()=>Math.max(0,oe.value-M.value)),ce=O(()=>{const V=new Map;let B=ue.value;for(const ve of H.value)B++,V.set(ve,B);return V}),q=O(()=>Uc(P.value)),re=O(()=>{if(d.value==="chrono")return ge.value;const V=[];for(const B of q.value)for(const ve of B.items)V.push(ve);return V}),_e=O(()=>k.value!==null),N=O(()=>_e.value?k.value:n.value),ne=O(()=>_e.value?T.value:re.value),Q=O(()=>_e.value?$.value:g.value),ge=O(()=>P.value.map((V,B)=>({msg:V,origIdx:B}))),ye=O(()=>{const V=[];let B=0;for(const ve of me.value)ve.future||(B+=ve.msg.tokens||0),V.push(B);return V}),w=O(()=>{var V;return((V=n.value)==null?void 0:V.contextInfo.totalTokens)??0}),L=O(()=>{const V=[];for(const B of q.value)for(const ve of B.items)V.push({origIdx:ve.origIdx,category:B.category,preview:Lo(ve.msg,R.value)||"(empty)",tokens:ve.msg.tokens||0});return V.filter(B=>B.tokens>0).sort((B,ve)=>ve.tokens-B.tokens).slice(0,3)}),W=O(()=>t.messageFocusTool),j=O(()=>t.messageFocusCategory),C=O(()=>t.messageFocusFile),I=O(()=>{var ee;const V=t.messageFocusCategory;if(!V)return null;const B=new Set(q.value.map($e=>$e.category));if(B.has(V))return V;const ve={assistant_text:["tool_calls","thinking","assistant_text","user_text"],tool_definitions:["tool_calls","tool_results","system_injections"],system_prompt:["system_injections","assistant_text","user_text"],images:["user_text","assistant_text","tool_results"],cache_markers:["tool_results","assistant_text","user_text"],other:["assistant_text","user_text","tool_results"]};for(const $e of ve[V]||[])if(B.has($e))return $e;return((ee=q.value[0])==null?void 0:ee.category)??null}),b=O(()=>!!j.value&&!!I.value&&j.value!==I.value);function p(){k.value=null,T.value=[]}function m(V){p(),g.value=V,ie(V),h.value=!0}function _(){h.value=!1,p()}function F(V){V.key==="Escape"&&h.value&&(_(),V.preventDefault(),V.stopPropagation())}function z(V){var $e;const B=(V.contentBlocks||[])[0];if(!B)return`${V.role}|${V.tokens||0}|${(($e=V.content)==null?void 0:$e.slice(0,160))||""}`;if(B.type==="tool_result"){const Me=typeof B.content=="string"?B.content:JSON.stringify(B.content||"");return`${V.role}|${V.tokens||0}|tool_result|${B.tool_use_id||""}|${Me.slice(0,160)}`}if(B.type==="tool_use")return`${V.role}|${V.tokens||0}|tool_use|${B.id||""}|${B.name||""}|${JSON.stringify(B.input||{}).slice(0,120)}`;const ve=B,ee=String(ve.text||ve.thinking||"").slice(0,160);return`${V.role}|${V.tokens||0}|${String(ve.type||"other")}|${ee}`}function ie(V){const B=re.value[V];if(!B)return;const ve=z(B.msg);v.value=ve;let ee=0;for(let $e=0;$e<=V;$e++)z(re.value[$e].msg)===ve&&(ee+=1);E.value=Math.max(1,ee)}function Y(){const V=v.value;if(!V)return-1;let B=0;for(let ve=0;ve<re.value.length;ve++)if(z(re.value[ve].msg)===V&&(B+=1,B===E.value))return ve;return-1}function fe(V){_e.value?$.value=V:(g.value=V,ie(V))}function te(V,B){let ve=0;for(let ee=0;ee<q.value.length;ee++){if(ee===V)return ve+B;ve+=q.value[ee].items.length}return 0}function Ee(V){const B=re.value.findIndex(ve=>ve.origIdx===V);if(B>=0){if(d.value==="category"){const ve=P.value[V];if(ve){const ee=It(ve);r(ee)}}m(B)}}function be(V){const B=It(V);return(ut[B]||{color:"#4b5563"}).color}function xe(V){const B=It(V);return(ut[B]||{label:B}).label}function Ae(V){var ee;if(!u.value)return;const B=u.value.entries;let ve=null;for(let $e=B.length-1;$e>=0;$e--)if((((ee=B[$e].contextInfo.messages)==null?void 0:ee.length)??0)>V){ve=B[$e];break}ve||(ve=B[0]),t.pinEntry(ve.id)}async function Oe(V){var Me;const B=u.value;if(!B)return;const ve=B.entries.find(Fe=>Fe.id===V);if(!ve)return;await t.loadEntryDetail(V),t.entryDetailVersion;const ee=t.getEntryDetail(V),$e=(Me=ee==null?void 0:ee.messages)!=null&&Me.length?ee.messages:ve.contextInfo.messages||[];k.value=ve,T.value=$e.map((Fe,Xe)=>({msg:Fe,origIdx:Xe})),$.value=0,h.value=!0}function Be(V){return It(V)==="tool_results"&&(V.tokens||0)>8e3}function ze(V){if(It(V)!=="tool_results")return null;for(const B of V.contentBlocks||[])if(B.type==="tool_result")return B.tool_use_id&&R.value[B.tool_use_id]||null;return null}function it(V){const B=W.value;if(!B)return{};const ve=ze(V);if(!ve)return{"tool-muted":!0};const ee=ve.trim().toLowerCase(),$e=B.trim().toLowerCase();return{"tool-focused":ee===$e,"tool-muted":ee!==$e}}async function nt(){const V=I.value,B=t.messageFocusIndex,ve=t.messageFocusOpenDetail,ee=t.messageFocusTool,$e=t.messageFocusFile;t.clearMessageFocus();const Me=B;if(Me!=null){if(d.value==="chrono"){for(let pe=0;pe<4;pe++){await Je(),Ee(Me),await Je();const ke=f.value;if(ke){const Re=Array.from(ke.querySelectorAll(".chrono-row")).find(Qe=>Qe.classList.contains("selected"));if(Re){Re.scrollIntoView({block:"center",behavior:"smooth"});return}}}return}for(let pe=0;pe<4;pe++){await Je();for(const ke of q.value)if(ke.items.find(Re=>Re.origIdx===Me)){r(ke.category),await Je(),await Je(),Ee(Me),await Je();const Re=f.value;if(Re){const Et=Array.from(Re.querySelectorAll(".msg-row")).find(bo=>bo.classList.contains("selected"));Et&&Et.scrollIntoView({block:"center",behavior:"smooth"})}return}}return}if($e){t.messageFocusFile=$e,d.value="chrono",await Je();const pe=P.value,ke=new Set;for(const Re of pe)if(Re.contentBlocks){for(const Qe of Re.contentBlocks)if(Qe.type==="tool_use"){const Et=Qe;wn(Et)===$e&&ke.add(Et.id)}}let Ie=-1;for(let Re=0;Re<pe.length;Re++){const Qe=pe[Re];if(Qe.contentBlocks){for(const Et of Qe.contentBlocks){if(Et.type==="tool_result"&&ke.has(Et.tool_use_id)){Ie=Re;break}if(Et.type==="tool_use"&&wn(Et)===$e&&Ie<0){Ie=Re;break}}if(Ie>=0)break}}if(Ie>=0)for(let Re=0;Re<4;Re++){await Je();const Qe=f.value;if(!Qe)continue;const Et=Array.from(Qe.querySelectorAll(".chrono-row"));if(Et[Ie]){Et[Ie].scrollIntoView({block:"center",behavior:"smooth"});return}}return}const Fe=V;if(!Fe)return;const Xe=ve;if(Xe?d.value="chrono":d.value="category",d.value==="chrono"){for(let pe=0;pe<4;pe++){await Je();const ke=f.value;if(!ke)continue;const Ie=Array.from(ke.querySelectorAll(".chrono-row"));let Re=-1;for(let Qe=P.value.length-1;Qe>=0;Qe--)if(It(P.value[Qe])===Fe){Re=Qe;break}if(Re>=0&&Ie[Re]){Ie[Re].scrollIntoView({block:"center",behavior:"smooth"}),Xe&&(await Je(),Ee(Re));return}}return}let Ot=null;for(let pe=0;pe<4;pe++){if(await Je(),Ot=f.value,!Ot)continue;r(Fe),await Je();const ke=Ot.querySelector(`[data-category="${Fe}"]`);if(ke){ke.scrollIntoView({block:"center",behavior:"smooth"});break}}if(!Ot)return;const U=ee;if(U){const pe=Array.from(Ot.querySelectorAll(".msg-row")),ke=U.trim().toLowerCase(),Ie=pe.find(Re=>(Re.getAttribute("data-tool-name")||"").trim().toLowerCase()===ke);Ie&&Ie.scrollIntoView({block:"center",behavior:"smooth"})}}function yt(){t.focusMessageCategory(I.value||t.messageFocusCategory||"tool_results")}function xt(){t.clearMessageFocus()}const Gt=O(()=>{const V=C.value;if(!V)return new Set;const B=P.value,ve=new Set,ee=new Set;for(let $e=0;$e<B.length;$e++){const Me=B[$e];if(Me.contentBlocks){for(const Fe of Me.contentBlocks)if(Fe.type==="tool_use"){const Xe=Fe;wn(Xe)===V&&(ee.add(Xe.id),ve.add($e))}}}for(let $e=0;$e<B.length;$e++){const Me=B[$e];if(Me.contentBlocks)for(const Fe of Me.contentBlocks)Fe.type==="tool_result"&&ee.has(Fe.tool_use_id)&&ve.add($e)}return ve});function wn(V){var ee;const B=V.input,ve=(ee=t.selectedSession)==null?void 0:ee.workingDirectory;if(B&&typeof B=="object")for(const $e of["file_path","path","filePath"]){const Me=B[$e];if(typeof Me=="string"&&Me.length>0){let Fe=Me.replace(/\/+/g,"/");return Fe.startsWith("./")&&(Fe=Fe.slice(2)),Fe.length>1&&Fe.endsWith("/")&&(Fe=Fe.slice(0,-1)),Gc(Fe,ve)}}return null}function lt(V){if(!C.value)return{};const ve=Gt.value;return{"file-focused":ve.has(V),"file-muted":!ve.has(V)}}const kt=O(()=>{const V=C.value;return V?Zr(V):""});return Ge(()=>t.messageFocusToken,async()=>{await nt()},{immediate:!0}),Ge(()=>t.inspectorTab,async V=>{V==="messages"&&await nt()}),Ge(()=>{var V;return(V=n.value)==null?void 0:V.id},async V=>{V!=null&&await t.loadEntryDetail(V)},{immediate:!0}),Ge(()=>{var V;return(V=S.value)==null?void 0:V.id},async V=>{var B;V!=null&&V!==((B=n.value)==null?void 0:B.id)&&await t.loadEntryDetail(V)},{immediate:!0}),Hn(async()=>{t.inspectorTab==="messages"&&t.messageFocusCategory&&await nt()}),Ge(re,()=>{if(!h.value||_e.value)return;const V=Y();if(V>=0&&V!==g.value){g.value=V;return}g.value>=re.value.length&&(g.value=Math.max(0,re.value.length-1),ie(g.value))}),(V,B)=>{const ve=jn("tooltip");return n.value?(y(),x("div",{key:0,class:"messages-tab",onKeydown:F},[Le(X(lb),{class:"default-theme","push-other-panes":!1},{default:st(()=>[Le(X(El),{"min-size":25,size:h.value?42:100},{default:st(()=>[c("div",{ref_key:"msgListEl",ref:f,class:"msg-list"},[c("div",xy,[c("div",ky,[c("button",{class:le({on:d.value==="chrono"}),onClick:B[0]||(B[0]=ee=>d.value="chrono")},"Chronological",2),c("button",{class:le({on:d.value==="category"}),onClick:B[1]||(B[1]=ee=>d.value="category")},"By Category",2)]),D.value&&d.value==="chrono"?(y(),x("div",wy,[c("button",{class:le({on:X(t).messagesMode==="main"}),onClick:B[2]||(B[2]=ee=>X(t).messagesMode="main")},"Main",2),c("button",{class:le({on:X(t).messagesMode==="all"}),onClick:B[3]||(B[3]=ee=>X(t).messagesMode="all")},"All",2)])):se("",!0)]),d.value==="category"?(y(),x(de,{key:0},[L.value.length>0?(y(),x("div",Cy,[B[4]||(B[4]=c("div",{class:"heavy-title"},"Top heavy messages",-1)),c("div",$y,[(y(!0),x(de,null,Te(L.value,ee=>(y(),x("button",{key:ee.origIdx,class:"heavy-action",onClick:$e=>Ee(ee.origIdx)},[c("span",Ty,A((X(ut)[ee.category]||{label:ee.category}).label),1),c("span",Sy,A(ee.preview),1),c("span",Dy,A(X(Ce)(ee.tokens)),1)],8,Ey))),128))])])):se("",!0),W.value||b.value?(y(),x("div",Ay,[W.value?(y(),x("span",Fy,[B[5]||(B[5]=we(" Filtered tool: ",-1)),c("b",null,A(W.value),1)])):se("",!0),b.value?(y(),x("span",My,[B[6]||(B[6]=we(" Showing ",-1)),c("b",null,A((X(ut)[I.value||""]||{label:I.value}).label),1),B[7]||(B[7]=we(" for ",-1)),c("b",null,A((X(ut)[j.value||""]||{label:j.value}).label),1),B[8]||(B[8]=we(". ",-1))])):se("",!0),W.value?(y(),x("button",{key:2,class:"focus-clear",onClick:wt(yt,["stop"])},"Show all")):se("",!0)])):se("",!0),(y(!0),x(de,null,Te(q.value,(ee,$e)=>(y(),x("div",{key:ee.category,class:"msg-group","data-category":ee.category},[c("div",{class:"group-head",onClick:Me=>X(o)(ee.category)},[c("i",{class:le(["group-arrow",X(s)(ee.category)||I.value===ee.category?"i-carbon-chevron-down":"i-carbon-chevron-right"])},null,2),c("span",{class:"group-dot",style:Se({background:(X(ut)[ee.category]||{color:"#4b5563"}).color})},null,4),c("span",Ly,A((X(ut)[ee.category]||{label:ee.category}).label),1),c("span",Ry,[we(A(ee.items.length)+" ",1),B[9]||(B[9]=c("span",{class:"group-sep"},"·",-1)),we(" "+A(X(Ce)(ee.tokens))+" ",1),B[10]||(B[10]=c("span",{class:"group-sep"},"·",-1)),we(" "+A(w.value>0?Math.round(ee.tokens/w.value*100):0)+"% ",1)]),c("div",Oy,[c("div",{class:"group-bar-fill",style:Se({width:(w.value>0?Math.round(ee.tokens/w.value*100):0)+"%",background:(X(ut)[ee.category]||{color:"#4b5563"}).color})},null,4)])],8,Py),c("div",{class:le(["group-items",{open:X(s)(ee.category)||I.value===ee.category}])},[(y(!0),x(de,null,Te(ee.items,(Me,Fe)=>{var Xe;return y(),x("div",{key:Me.origIdx,class:le(["msg-row",[it(Me.msg),{selected:h.value&&!_e.value&&((Xe=re.value[g.value])==null?void 0:Xe.origIdx)===Me.origIdx}]]),"data-tool-name":ze(Me.msg)||"",onClick:Ot=>m(te($e,Fe))},[c("span",Ny,A(Me.msg.role==="user"?"›":Me.msg.role==="assistant"?"‹":"·"),1),c("span",By,A(X(Lo)(Me.msg,R.value)||"(empty)"),1),je((y(),x("span",{class:le(["msg-tok",{hot:(Me.msg.tokens||0)>2e3,oversized:Be(Me.msg)}])},[we(A(X(Ce)(Me.msg.tokens||0)),1)],2)),[[ve,Be(Me.msg)?"Tool result exceeds 8K tokens — re-sent every turn":void 0]])],10,zy)}),128))],2)],8,Iy))),128))],64)):d.value==="chrono"?(y(),x(de,{key:1},[C.value?(y(),x("div",Hy,[c("span",null,[B[11]||(B[11]=we(" Filtered file: ",-1)),je((y(),x("b",jy,[we(A(kt.value),1)])),[[ve,C.value]]),c("span",qy,"("+A(Gt.value.size)+" messages)",1)]),c("button",{class:"focus-clear",onClick:wt(xt,["stop"])},"Show all")])):se("",!0),c("div",Vy,[(y(!0),x(de,null,Te(me.value,(ee,$e)=>{var Me;return y(),x(de,{key:$e},[ae.value.has($e)?(y(!0),x(de,{key:0},Te(ae.value.get($e),Fe=>je((y(),x("div",{key:"sub-"+Fe.id,class:"chrono-subagent-row",onClick:Xe=>Oe(Fe.id)},[c("span",Wy,A(X(Ce)(Fe.contextInfo.totalTokens)),1),B[12]||(B[12]=c("span",{class:"chrono-cat-dot subagent-dot"},null,-1)),B[13]||(B[13]=c("span",{class:"chrono-type subagent-type"},"subagent",-1)),c("span",Ky,A(Fe.agentLabel),1),c("span",Gy,A(X(xn)(Fe.contextInfo.model)),1)],8,Uy)),[[ve,"Click to view subagent context"]])),128)):se("",!0),ce.value.has($e)?(y(),x("div",{key:1,class:le(["chrono-turn-marker",{future:ee.future}])},[c("span",Zy,"Turn "+A(ce.value.get($e)),1),B[14]||(B[14]=c("span",{class:"chrono-turn-line"},null,-1))],2)):se("",!0),ee.future&&$e===Z.value?(y(),x("div",Jy,[...B[15]||(B[15]=[c("span",{class:"chrono-future-line"},null,-1),c("span",{class:"chrono-future-label"},"After this turn",-1),c("span",{class:"chrono-future-line"},null,-1)])])):se("",!0),c("div",{class:le(["chrono-row",[lt(ee.origIdx),{selected:!ee.future&&h.value&&!_e.value&&((Me=re.value[g.value])==null?void 0:Me.origIdx)===ee.origIdx,future:ee.future,pruned:ee.prunedGhost||!ee.future&&l(ee.msg,ee.origIdx)}]]),style:Se({"--cat-border":be(ee.msg)}),onClick:Fe=>ee.future?Ae(ee.origIdx):m(ee.origIdx)},[je((y(),x("span",Xy,[we(A(ee.future?"":X(Ce)(ye.value[$e])),1)])),[[ve,ee.future?"Click to jump to this turn":`Cumulative: ${X(Ce)(ye.value[$e])} of ${X(Ce)(w.value)}`]]),c("span",{class:"chrono-cat-dot",style:Se({background:be(ee.msg)})},null,4),c("span",Qy,A(xe(ee.msg)),1),c("span",e6,A(X(Lo)(ee.msg,R.value)||"(empty)"),1),je((y(),x("span",{class:le(["chrono-tok",{hot:!ee.future&&(ee.msg.tokens||0)>2e3,oversized:!ee.future&&Be(ee.msg)}])},[we(A(X(Ce)(ee.msg.tokens||0)),1)],2)),[[ve,!ee.future&&Be(ee.msg)?"Tool result exceeds 8K tokens — re-sent every turn, crowding conversation history":void 0]]),!ee.future&&!ee.prunedGhost&&!l(ee.msg,ee.origIdx)?(y(),x("button",{key:0,class:"prune-btn",title:"Drop from context permanently",onClick:wt(Fe=>a(ee.msg,ee.origIdx,Fe),["stop"])},"✕",8,t6)):se("",!0)],14,Yy)],64)}),128))])],64)):se("",!0)],512)]),_:1},8,["size"]),h.value?(y(),_t(X(El),{key:0,"min-size":25,size:58},{default:st(()=>[Le(yy,{entry:N.value,messages:ne.value,"selected-index":Q.value,onClose:_,onNavigate:fe},null,8,["entry","messages","selected-index"])]),_:1})):se("",!0)]),_:1})],32)):se("",!0)}}}),u6=rt(n6,[["__scopeId","data-v-bef84068"]]),s6={key:0,class:"timeline-tab"},o6={class:"timeline-scope-controls"},r6={class:"scope-toggle"},i6=["onClick"],l6={class:"panel panel--hero"},a6={class:"panel-head"},c6={class:"panel-controls"},f6={class:"mode-toggle"},d6={class:"panel-body"},p6={class:"chart-container"},h6={class:"y-axis"},m6=["onClick"],g6=["viewBox"],v6=["points"],b6=["aria-label"],_6={class:"chart-legend"},y6=["onClick"],x6={key:0,class:"projection-badge"},k6={key:1,class:"projection-badge projection-badge--warn"},w6={class:"panel panel--secondary panel--spine panel--cost"},C6={class:"panel-head"},$6={class:"panel-sub"},E6={class:"panel-body"},T6={class:"chart-container"},S6={class:"y-axis"},D6=["onClick"],A6={class:"chart-legend"},F6=tt({__name:"TimelineTab",setup(e){const t=Ft(),n=O({get:()=>t.timelineMode,set:C=>{t.timelineMode=C}}),u=O({get:()=>t.timelineStackMode,set:C=>{t.timelineStackMode=C}}),s=O({get:()=>t.timelineHiddenLegendKeys,set:C=>{t.timelineHiddenLegendKeys=C}}),o=O({get:()=>t.timelineShowLimitOverlay,set:C=>{t.timelineShowLimitOverlay=C}}),r=O({get:()=>t.timelineShowCacheOverlay,set:C=>{t.timelineShowCacheOverlay=C}}),i=he(null),l=he(null),a=O(()=>t.selectedSession),f=O(()=>t.selectedEntry),d=O(()=>a.value?vn([...a.value.entries].reverse()):[]),h=O(()=>n.value==="main"?d.value.filter(C=>C.isMain):d.value),g=O(()=>{let C=0;for(const I of h.value){const b=I.entry.contextInfo.totalTokens;b>C&&(C=b)}return C}),v=O(()=>{let C=0;for(const I of h.value){const b=I.entry.costUsd??0;b>C&&(C=b)}return C}),E=O(()=>h.value.length<=40),k=O(()=>No(P.value)),T=O(()=>qm(h.value)),$=O(()=>Nm(h.value,d.value)),R=O(()=>h.value.map((C,I)=>{const b=$.value.get(C.entry.id)||[],p=b[0]||null,m=T.value[I]||I+1,_=p?`Turn ${m}: ${b.map(F=>`${F.label}: ${F.detail}`).join(", ")}`:"";return{entryId:C.entry.id,firstEvent:p,title:p?Hm(b,m):"",ariaLabel:_}}));function D(C){const I=new Set(s.value);I.has(C)?I.delete(C):I.add(C),s.value=I}const P=O(()=>{if(s.value.size===0)return g.value;let C=0;for(const I of h.value){const b=Oo(I.entry,s.value);b>C&&(C=b)}return C});function S(C){const I=Oo(C.entry,s.value);return zo(I,P.value)}function G(C){return Rm(C.entry,s.value)}function Z(C){return zo(C.entry.costUsd??0,v.value)}function K(C){t.pinEntry(C.id)}function J(C){t.setInspectorTab("messages"),t.focusMessageCategory(C)}const me=O(()=>jm(h.value.length)),H=O(()=>{const C=f.value;if(C&&C.contextLimit>0)return C.contextLimit;const I=h.value;return I.length>0?I[I.length-1].entry.contextLimit:0}),ae=O(()=>{const C=P.value;return o.value?Math.max(C,H.value):C}),oe=O(()=>{const C=ae.value,I=H.value;return C===0||I===0?-1:(1-I/C)*100});function M(C){if(u.value==="normalized")return 100;if(!o.value)return S(C);const I=Oo(C.entry,s.value);return zo(I,ae.value)}const ue=O(()=>No(ae.value)),ce=O(()=>No(v.value)),q=[0,25,50,75,100],re=O(()=>{const C=f.value;return C?Kc(C,d.value):null}),_e=O(()=>{const C=new Map;for(const I of h.value){const b=xn(I.entry.contextInfo.model);C.has(b)||C.set(b,_l(I.entry.contextInfo.model,!0))}return Array.from(C.entries()).map(([I,b])=>({name:I,color:b}))}),N=O(()=>Object.entries(Tt).map(([C,I])=>({key:C,name:I.label,color:I.color}))),ne=O(()=>{const C=h.value;if(C.length===0)return-1;if(n.value!=="all")return C.length-1;for(let I=C.length-1;I>=0;I--)if(C[I].isMain)return I;return-1}),Q=O(()=>{const C=h.value,I=ne.value;if(I<0)return!1;for(let b=0;b<=I;b++)if(!(n.value==="all"&&!C[b].isMain)&&gr(C[b].entry)!==null)return!0;return!1}),ge=O(()=>{const C=Math.max(0,ne.value+1);return C===0?"0 0 1 100":`0 0 ${C} 100`}),ye=O(()=>{const C=h.value.length,I=Math.max(0,ne.value+1);return C===0||I===0?"0%":`${I/C*100}%`}),w=O(()=>{const C=h.value,I=ne.value;if(C.length===0||I<0)return"";const b=[];for(let p=0;p<=I;p++){if(n.value==="all"&&!C[p].isMain)continue;const m=gr(C[p].entry);if(m===null)continue;const _=p+.5,F=(1-m)*100;b.push(`${_.toFixed(3)},${F.toFixed(2)}`)}return b.join(" ")}),L=O(()=>Wm(d.value));function W(C){C&&(C.scrollLeft=C.scrollWidth)}function j(){Je(()=>{W(i.value),W(l.value)})}return Hn(()=>{j()}),Ge(()=>{var C,I;return[((C=a.value)==null?void 0:C.id)??"",n.value,h.value.length,((I=h.value[h.value.length-1])==null?void 0:I.entry.id)??""]},()=>{j()},{immediate:!0}),(C,I)=>{const b=jn("tooltip");return a.value?(y(),x("div",s6,[c("div",o6,[I[4]||(I[4]=c("span",{class:"scope-label"},"Scope",-1)),c("div",r6,[(y(),x(de,null,Te(["main","all"],p=>c("button",{key:"scope-"+p,class:le({on:n.value===p}),onClick:m=>n.value=p},A(p==="all"?"All turns":"Main turns"),11,i6)),64))])]),c("section",l6,[c("div",a6,[I[9]||(I[9]=c("span",{class:"panel-title"},"Token Timeline",-1)),c("div",c6,[Q.value?(y(),x("button",{key:0,class:le(["overlay-toggle",{on:r.value}]),onClick:I[0]||(I[0]=p=>r.value=!r.value)},[...I[5]||(I[5]=[c("span",{class:"legend-dot legend-dot--cache"},null,-1),we(" Cache ",-1)])],2)):se("",!0),u.value==="absolute"?(y(),x("button",{key:1,class:le(["overlay-toggle",{on:o.value}]),onClick:I[1]||(I[1]=p=>o.value=!o.value)},[...I[6]||(I[6]=[c("span",{class:"legend-dot legend-dot--dashed"},null,-1),we(" Limit ",-1)])],2)):se("",!0),c("div",f6,[je((y(),x("button",{class:le({on:u.value==="absolute"}),onClick:I[2]||(I[2]=p=>u.value="absolute")},[...I[7]||(I[7]=[c("i",{class:"i-carbon-chart-column mode-icon"},null,-1),we(" Abs ",-1)])],2)),[[b,"Absolute token counts"]]),je((y(),x("button",{class:le({on:u.value==="normalized"}),onClick:I[3]||(I[3]=p=>u.value="normalized")},[...I[8]||(I[8]=[c("i",{class:"i-carbon-chart-maximum mode-icon"},null,-1),we(" Pct ",-1)])],2)),[[b,"Normalized to 100% per turn"]])])])]),c("div",d6,[c("div",p6,[c("div",h6,[u.value==="normalized"?(y(!0),x(de,{key:0},Te([...q].reverse(),p=>(y(),x("span",{key:"norm-"+p},A(p)+"%",1))),128)):(y(!0),x(de,{key:1},Te([...o.value?ue.value:k.value].reverse(),p=>(y(),x("span",{key:p},A(X(yl)(p,"tokens")),1))),128))]),c("div",{ref_key:"tokenChartScrollEl",ref:i,class:"chart-scroll"},[c("div",{class:le(["bars-wrap",{sparse:E.value}])},[c("div",{class:le(["bars",{sparse:E.value}])},[(y(!0),x(de,null,Te(h.value,(p,m)=>{var _;return y(),x("div",{key:p.entry.id,class:le(["bar",{active:((_=f.value)==null?void 0:_.id)===p.entry.id,normalized:u.value==="normalized"}]),style:Se({height:M(p)+"%"}),onClick:F=>K(p.entry)},[(y(!0),x(de,null,Te(G(p),F=>je((y(),x("div",{key:p.entry.id+"-"+F.key,class:"bar-segment",style:Se({height:F.pct+"%",background:F.color})},null,4)),[[b,X(Um)(p.entry,F)]])),128))],14,m6)}),128))],2),u.value==="absolute"&&o.value&&oe.value>=0?(y(),x("div",{key:0,class:"limit-line",style:Se({top:oe.value+"%"})},null,4)):se("",!0),r.value&&w.value?(y(),x("svg",{key:1,class:"cache-line-svg",viewBox:ge.value,style:Se({width:ye.value}),preserveAspectRatio:"none"},[c("polyline",{points:w.value,fill:"none",stroke:"var(--accent-cyan)","stroke-width":"1.5","vector-effect":"non-scaling-stroke","stroke-linejoin":"round","stroke-linecap":"round",opacity:"0.7"},null,8,v6)],12,g6)):se("",!0)],2),c("div",{class:le(["events",{sparse:E.value}])},[(y(!0),x(de,null,Te(R.value,p=>(y(),x("div",{key:"evt-"+p.entryId,class:"event-slot"},[p.firstEvent?je((y(),x("button",{key:0,class:le(["event-marker",`event-marker--${p.firstEvent.type}`]),type:"button","aria-label":p.ariaLabel},[we(A(X(Bm)(p.firstEvent)),1)],10,b6)),[[b,{content:p.title,html:!0}]]):se("",!0)]))),128))],2),c("div",{class:le(["labels",{sparse:E.value}])},[(y(!0),x(de,null,Te(T.value,(p,m)=>(y(),x("div",{key:m,class:"label"},A(p&&(me.value<=1||p%me.value===0)?p:""),1))),128))],2)],512)]),c("div",_6,[(y(!0),x(de,null,Te(N.value,p=>(y(),x("button",{key:p.key,class:le(["legend-item legend-item--interactive",{"legend-item--hidden":s.value.has(p.key)}]),onClick:m=>D(p.key)},[c("span",{class:"legend-dot",style:Se({background:s.value.has(p.key)?"var(--text-ghost)":p.color})},null,4),we(" "+A(p.name),1)],10,y6))),128)),L.value.turnsRemaining!==null&&L.value.turnsRemaining>0?je((y(),x("span",x6,[we(" ~"+A(L.value.turnsRemaining)+" turns remaining ",1)])),[[b,`Growing ~${X(Ce)(Math.round(L.value.growthPerTurn))}/turn over ${L.value.sinceCompaction} turns since last compaction`]]):L.value.turnsRemaining===0?je((y(),x("span",k6,[...I[10]||(I[10]=[we(" At limit ",-1)])])),[[b,"Context window is at or near the limit"]]):se("",!0)])])]),c("section",w6,[c("div",C6,[I[11]||(I[11]=c("span",{class:"panel-title"},"Cost Timeline",-1)),c("span",$6,"Scope: "+A(n.value==="main"?"Main turns only":"All turns"),1)]),c("div",E6,[c("div",T6,[c("div",S6,[(y(!0),x(de,null,Te([...ce.value].reverse(),p=>(y(),x("span",{key:"cost-"+p},A(X(yl)(p,"cost")),1))),128))]),c("div",{ref_key:"costChartScrollEl",ref:l,class:"chart-scroll"},[c("div",{class:le(["bars-wrap",{sparse:E.value}])},[c("div",{class:le(["bars",{sparse:E.value}])},[(y(!0),x(de,null,Te(h.value,p=>{var m;return je((y(),x("div",{key:"cost-"+p.entry.id,class:le(["bar",{active:((m=f.value)==null?void 0:m.id)===p.entry.id}]),style:Se({height:Z(p)+"%"}),onClick:_=>K(p.entry)},[c("div",{class:"bar-cost",style:Se({background:X(_l)(p.entry.contextInfo.model,p.isMain)})},null,4)],14,D6)),[[b,X(Vm)(p.entry,p.isMain)]])}),128))],2)],2),c("div",{class:le(["labels",{sparse:E.value}])},[(y(!0),x(de,null,Te(T.value,(p,m)=>(y(),x("div",{key:"cost-label-"+m,class:"label"},A(p&&(me.value<=1||p%me.value===0)?p:""),1))),128))],2)],512)]),c("div",A6,[(y(!0),x(de,null,Te(_e.value,p=>(y(),x("span",{key:p.name,class:"legend-item"},[c("span",{class:"legend-dot",style:Se({background:p.color})},null,4),we(" "+A(p.name),1)]))),128))])])]),Le(Jc,{"diff-data":re.value,"show-when-empty":!!f.value,onCategoryClick:J},null,8,["diff-data","show-when-empty"])])):se("",!0)}}}),M6=rt(F6,[["__scopeId","data-v-e2d83061"]]),I6=["aria-label","aria-valuemax","aria-valuenow"],P6={class:"scrubber-controls"},L6=["disabled"],R6={class:"readout-num"},O6={class:"readout-total"},z6=["disabled"],N6={class:"spark-bars"},B6={class:"tt-row tt-turn"},H6={class:"tt-row"},j6={class:"tt-row tt-dim"},q6=tt({__name:"TurnScrubber",setup(e){const t=Ft(),n=he(null),u=he(!1),s=he(null),o=O(()=>t.selectedSession),r=O(()=>t.selectedEntry),i=O(()=>o.value?vn([...o.value.entries].reverse()):[]),l=O(()=>i.value.filter(q=>q.isMain)),a=O(()=>l.value.map(q=>q.entry)),f=O(()=>l.value.map(q=>!q.isMain)),d=O(()=>a.value.length),h=O(()=>{const q=r.value;if(!q)return-1;let re=-1;for(const _e of i.value)if(_e.isMain&&re++,_e.entry.id===q.id)return re;return-1}),g=O(()=>{let q=0;for(const re of a.value)re.contextInfo.totalTokens>q&&(q=re.contextInfo.totalTokens);return q}),v=O(()=>{const q=g.value;return q===0?a.value.map(()=>({height:.15,tokens:0,cost:0,model:"",utilization:0})):a.value.map(re=>({height:Math.max(.08,re.contextInfo.totalTokens/q),tokens:re.contextInfo.totalTokens,cost:re.costUsd??0,model:xn(re.contextInfo.model),utilization:re.contextLimit>0?re.contextInfo.totalTokens/re.contextLimit:0}))}),E=O(()=>t.selectionMode!=="pinned"||h.value<0?!1:h.value<d.value-1),k=O(()=>E.value?Math.max(0,d.value-1-h.value):0),T=O(()=>E.value?k.value/d.value>=.12:!1),$=O(()=>((h.value+1)/d.value+1)/2*100),R=O(()=>{const q=[];let re=0,_e=-1;for(const N of i.value)N.isMain?(_e>=0&&q.push(re),re=0,_e++):re++;return _e>=0&&q.push(re),q}),D=O(()=>{if(s.value===null||s.value<0||s.value>=a.value.length)return null;const q=a.value[s.value],re=v.value[s.value],_e=R.value[s.value]||0;return{turn:s.value+1,tokens:Ce(q.contextInfo.totalTokens),cost:Ct(q.costUsd),model:re.model,subs:_e,isSub:f.value[s.value]||!1}});function P(q){me(q)&&t.pinEntry(a.value[q].id)}function S(){t.followLive()}function G(){const q=h.value-1;me(q)&&P(q)}function Z(){const q=h.value+1;me(q)&&P(q)}function K(){r.value&&t.pinEntry(r.value.id)}function J(q){const re=n.value;if(!re||d.value===0)return-1;const _e=re.getBoundingClientRect(),ne=Math.max(0,Math.min(q.clientX-_e.left,_e.width))/_e.width;return Math.min(Math.floor(ne*d.value),d.value-1)}function me(q){return q>=0&&q<d.value}function H(q){var _e,N;if(d.value===0)return;u.value=!0;const re=J(q);me(re)&&P(re),(N=(_e=q.target)==null?void 0:_e.setPointerCapture)==null||N.call(_e,q.pointerId)}function ae(q){const re=J(q);s.value=me(re)?re:null,u.value&&me(re)&&P(re)}function oe(q){var re,_e;u.value=!1,(_e=(re=q.target)==null?void 0:re.releasePointerCapture)==null||_e.call(re,q.pointerId)}function M(){s.value=null}function ue(q){q.key==="ArrowLeft"||q.key==="ArrowUp"?(q.preventDefault(),G()):q.key==="ArrowRight"||q.key==="ArrowDown"?(q.preventDefault(),Z()):q.key==="Home"?(q.preventDefault(),P(0)):q.key==="End"?(q.preventDefault(),d.value>0&&P(d.value-1)):q.key==="Escape"&&(q.preventDefault(),S())}function ce(q){return q>=.9?"var(--accent-red)":q>=.7?"var(--accent-amber)":"var(--accent-blue)"}return(q,re)=>o.value&&r.value&&d.value>=1?(y(),x("div",{key:0,class:"scrubber",role:"slider","aria-label":`Turn scrubber: turn ${h.value+1} of ${d.value}`,"aria-valuemin":1,"aria-valuemax":d.value,"aria-valuenow":h.value+1,tabindex:"0",onKeydown:ue},[c("div",P6,[c("button",{class:"ctrl-btn",disabled:h.value<=0,onClick:G,title:"Previous turn (←)","aria-label":"Previous turn"},[...re[0]||(re[0]=[c("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[c("path",{d:"M7 1L3 5L7 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,L6),c("span",{class:le(["turn-readout",X(t).selectionMode==="live"?"is-live":"is-pinned"])},[re[1]||(re[1]=c("span",{class:"readout-dot"},null,-1)),c("span",R6,A(h.value+1),1),re[2]||(re[2]=c("span",{class:"readout-sep"},"/",-1)),c("span",O6,A(d.value),1)],2),c("button",{class:"ctrl-btn",disabled:h.value<0||h.value>=d.value-1,onClick:Z,title:"Next turn (→)","aria-label":"Next turn"},[...re[3]||(re[3]=[c("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[c("path",{d:"M3 1L7 5L3 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,z6)]),c("div",{ref_key:"trackEl",ref:n,class:"scrubber-track",onPointerdown:H,onPointermove:ae,onPointerup:oe,onPointerleave:M},[c("div",N6,[(y(!0),x(de,null,Te(v.value,(_e,N)=>(y(),x("div",{key:N,class:le(["spark-col",{active:N===h.value,hover:N===s.value&&N!==h.value,past:X(t).selectionMode==="pinned"&&N>h.value,"is-sub":f.value[N]}])},[c("div",{class:"spark-bar",style:Se({height:_e.height*100+"%","--bar-color":ce(_e.utilization)})},null,4),R.value[N]>0?(y(),x("div",{key:0,class:le(["sub-dot",{"sub-burst":R.value[N]>=3}])},null,2)):se("",!0)],2))),128))]),h.value>=0?(y(),x("div",{key:0,class:le(["playhead",{live:X(t).selectionMode==="live"}]),style:Se({left:(h.value+.5)/d.value*100+"%"})},[...re[4]||(re[4]=[c("div",{class:"playhead-line"},null,-1),c("div",{class:"playhead-head"},null,-1)])],6)):se("",!0),T.value?(y(),x("div",{key:1,class:"new-turns-badge",style:Se({left:$.value+"%"}),onClick:wt(S,["stop"])}," +"+A(k.value)+" new ",5)):se("",!0),Le(Qt,{name:"tooltip-fade"},{default:st(()=>[D.value&&s.value!==h.value?(y(),x("div",{key:0,class:"scrub-tooltip",style:Se({left:Math.min(Math.max((s.value+.5)/d.value*100,8),92)+"%"})},[c("div",B6,"T"+A(D.value.turn)+A(D.value.isSub?" (sub)":""),1),c("div",H6,A(D.value.tokens)+" · "+A(D.value.cost),1),c("div",j6,A(D.value.model)+A(D.value.subs>0?` · ${D.value.subs} sub`:""),1)],4)):se("",!0)]),_:1})],544),X(t).selectionMode==="live"?(y(),x("button",{key:0,class:"action-btn action-pin",onClick:K,title:"Pin current turn to scrub history"},[...re[5]||(re[5]=[c("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[c("circle",{cx:"5",cy:"5",r:"3.5",stroke:"currentColor","stroke-width":"1"}),c("circle",{cx:"5",cy:"5",r:"1.5",fill:"currentColor"})],-1),we(" Pin ",-1)])])):(y(),x("button",{key:1,class:"action-btn action-return",onClick:S,title:"Return to live (Esc)"},[...re[6]||(re[6]=[c("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[c("path",{d:"M2 5H8M8 5L5.5 2.5M8 5L5.5 7.5",stroke:"currentColor","stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"})],-1),we(" Live ",-1)])]))],40,I6)):se("",!0)}}),V6=rt(q6,[["__scopeId","data-v-865993b3"]]),U6={class:"tab-bar"},W6=["onClick"],K6={class:"tab-content"},G6=tt({__name:"InspectorPanel",setup(e){const t=Ft(),n=[{id:"overview",label:"Overview",icon:"i-carbon-dashboard"},{id:"messages",label:"Messages",icon:"i-carbon-chat"},{id:"timeline",label:"Timeline",icon:"i-carbon-activity"}],u={overview:ib,messages:u6,timeline:M6},s=O(()=>u[t.inspectorTab]);function o(i){i==="messages"&&t.clearMessageFocus(),t.setInspectorTab(i)}function r(i){i.key==="Escape"&&!i.defaultPrevented&&t.setView("dashboard")}return(i,l)=>(y(),x("div",{class:"inspector",onKeydown:r,tabindex:"-1"},[Le(V6),c("div",U6,[(y(),x(de,null,Te(n,a=>c("button",{key:a.id,class:le(["tab-btn",{active:X(t).inspectorTab===a.id}]),onClick:f=>o(a.id)},[c("i",{class:le(a.icon)},null,2),we(" "+A(a.label),1)],10,W6)),64))]),c("div",K6,[(y(),_t(Ba(s.value),{key:X(t).inspectorTab}))])],32))}}),Z6=rt(G6,[["__scopeId","data-v-74dad8d1"]]),J6={class:"session-rail","aria-label":"Sessions"},Y6={class:"rail-scroll"},X6=["onClick"],Q6={class:"tile-meta"},ex={key:0,class:"tile-tags"},tx=["title"],nx={key:0,class:"tile-tag-more"},ux=tt({__name:"SessionRail",setup(e){const t=Ft();function n(l){t.selectSession(l),t.setView("inspector")}function u(){t.setView("dashboard")}function s(l){var E;const a=xn(l.latestModel),f=l.entryCount+(l.entryCount===1?" turn":" turns"),d=Ct(l.totalCost),h=l.healthScore?`
48
- Health ${l.healthScore.overall}/100 (${l.healthScore.rating})`:"",g=l.workingDirectory?`
49
- ${l.workingDirectory}`:"",v=(E=l.tags)!=null&&E.length?`
50
- Tags: ${l.tags.join(", ")}`:"";return`${l.source} · ${a}
51
- ${f} · ${d}${h}${g}${v}`}function o(l){return l.contextLimit?Math.min(100,Math.round(l.latestTotalTokens/l.contextLimit*100)):0}function r(l){const a=o(l);return a>=80?"high":a>=60?"mid":"low"}const i={delay:{show:50,hide:0},placement:"right"};return(l,a)=>{const f=jn("tooltip");return y(),x("nav",J6,[je((y(),x("button",{class:"rail-back",onClick:u},[...a[0]||(a[0]=[c("i",{class:"i-carbon-grid grid-icon"},null,-1)])])),[[f,{content:"Dashboard",...i}]]),a[1]||(a[1]=c("span",{class:"rail-label"},"SESSIONS",-1)),c("div",Y6,[(y(!0),x(de,null,Te(X(t).filteredSummaries,d=>{var h;return je((y(),x("button",{key:d.id,class:le(["rail-tile",{active:d.id===X(t).selectedSessionId,pulse:X(t).recentlyUpdated.has(d.id)}]),onClick:g=>n(d.id)},[c("span",{class:le(["tile-source",X(Qu)(d.source)])},A(d.source||"?"),3),c("span",Q6,A(d.entryCount)+"t",1),c("span",{class:le(["tile-util",r(d)])},A(o(d))+"%",3),(h=d.tags)!=null&&h.length?(y(),x("span",ex,[(y(!0),x(de,null,Te(d.tags.slice(0,3),(g,v)=>(y(),x("span",{key:g,class:le(["tile-tag-dot",X(t).getTagColorClass(v)]),title:g},null,10,tx))),128)),d.tags.length>3?(y(),x("span",nx,"+")):se("",!0)])):se("",!0)],10,X6)),[[f,{content:s(d),...i}]])}),128))])])}}}),sx=rt(ux,[["__scopeId","data-v-cdc746c2"]]),ox={class:"compare-view"},rx={class:"compare-header"},ix={class:"compare-title"},lx={class:"compare-count"},ax={class:"legend"},cx={class:"lanes"},fx=["onMouseenter"],dx={class:"lane-header"},px={class:"lane-identity"},hx={class:"lane-index"},mx={class:"lane-model"},gx={key:0,class:"lane-dir"},vx={class:"lane-metrics"},bx={class:"lm-cell"},_x={class:"lm-value"},yx={key:0,class:"lm-winner"},xx={class:"lm-cell"},kx={class:"lm-value green"},wx={key:0,class:"lm-winner"},Cx={class:"lm-cell"},$x={key:0,class:"lm-winner"},Ex={class:"lm-cell"},Tx={key:1,class:"lm-value ghost"},Sx={key:0,class:"lm-cell"},Dx={class:"lm-value dim"},Ax={key:1,class:"lm-cell"},Fx={class:"lm-value dim"},Mx={key:0,class:"lm-winner"},Ix={class:"lm-cell"},Px={class:"lm-value dim"},Lx=["href","onClick"],Rx={class:"lane-body"},Ox={class:"turn-track"},zx=["title","href","onMouseenter","onClick"],Nx={class:"turn-num"},Bx={key:0,class:"turns-empty"},Hx={key:0,class:"sparkline-col"},jx={class:"sparkline-cell"},qx={class:"sparkline",viewBox:"0 0 100 100",preserveAspectRatio:"none"},Vx=["y1","y2"],Ux=["d"],Wx=["d"],Kx={class:"sparkline-val"},Gx={class:"sparkline-cell"},Zx={class:"sparkline sparkline--cost",viewBox:"0 0 100 100",preserveAspectRatio:"none"},Jx=["d"],Yx=["d"],Xx={class:"sparkline-val"},Qx={key:0,class:"comp-row"},ek={class:"comp-tape"},tk=["title"],nk={key:0,class:"comp-seg-label"},uk={class:"comp-total"},Gl="#ef4444",Zl="#9ca3af",sk=tt({__name:"CompareView",setup(e){const t=Ft(),n=he(null),u=he(null),s=he(null),o=O(()=>{const N=Object.entries(Tt).map(([ne,Q])=>({key:ne,label:Q.label,color:Q.color}));return N.push({key:"error",label:"Error",color:Gl}),N.push({key:"stall",label:"Stall",color:Zl}),N});function r(N){const ne={};for(const[Q,ge]of Object.entries(pu)){ne[Q]=0;for(const ye of ge){const w=N.find(L=>L.category===ye);w&&(ne[Q]+=w.tokens)}}return ne}function i(N){const ne=r(N);let Q="other",ge=0;for(const[ye,w]of Object.entries(ne))w>ge&&(Q=ye,ge=w);return Q}function l(N){const ne=r(N),Q=Object.values(ne).reduce((ge,ye)=>ge+ye,0);return Q===0?[]:Object.entries(ne).filter(([,ge])=>ge>0).sort((ge,ye)=>ye[1]-ge[1]).map(([ge,ye])=>{var w;return{key:ge,color:((w=Tt[ge])==null?void 0:w.color)??"#475569",pct:ye/Q*100}})}function a(N){const ne=new Map;for(const ye of N){const w=ye.agentKey||"_default";ne.set(w,(ne.get(w)||0)+1)}let Q="_default",ge=0;for(const[ye,w]of ne)w>ge&&(Q=ye,ge=w);return Q}function f(N){const ne=a(N.entries);return N.entries.filter(ge=>(ge.agentKey||"_default")===ne).sort((ge,ye)=>new Date(ge.timestamp).getTime()-new Date(ye.timestamp).getTime()).map((ge,ye)=>{var C;const w=(ge.httpStatus??200)>=400,L=ge.stopReason==="max_tokens",W=i(ge.composition);let j;return w?j=Gl:L?j=Zl:j=((C=Tt[W])==null?void 0:C.color)??Tt.other.color,{turnNumber:ye+1,entry:ge,dominantGroup:W,color:j,isError:w,isStall:L,tokens:ge.contextInfo.totalTokens,costUsd:ge.costUsd??0,segments:l(ge.composition)}})}function d(N){if(!N)return"";let ne=N;/^\/home\/[^/]+(\/|$)/.test(ne)?ne=ne.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(ne)&&(ne=ne.replace(/^\/Users\/[^/]+/,"~"));const Q=ne.split("/");return Q.length>2?Q.slice(-2).join("/"):ne}function h(N){for(let ne=N.length-1;ne>=0;ne--){const Q=gr(N[ne].entry);if(Q!==null)return Q}return null}const g=O(()=>{const N=[];for(const ne of t.compareSessionIds){const Q=t.loadedConversations.get(ne),ge=t.summaries.find(te=>te.id===ne);if(!Q&&!ge)continue;const ye=Q?f(Q):[],w=Q?Q.entries.reduce((te,Ee)=>te+(Ee.costUsd??0),0):(ge==null?void 0:ge.totalCost)??0,L=Q?Q.entries.reduce((te,Ee)=>{var be;return te+(((be=Ee.timings)==null?void 0:be.total_ms)??0)},0):0,W=ye.length>0?ye[ye.length-1].entry:null,j=ye.map(te=>te.tokens),C=ye.map(te=>te.costUsd),I=Q?(W==null?void 0:W.healthScore)??(ge==null?void 0:ge.healthScore):ge==null?void 0:ge.healthScore,b=(W==null?void 0:W.contextInfo.totalTokens)??(ge==null?void 0:ge.latestTotalTokens)??0,p=(W==null?void 0:W.contextLimit)??(ge==null?void 0:ge.contextLimit)??2e5,m=(ge==null?void 0:ge.latestModel)??(W==null?void 0:W.contextInfo.model)??"",_=(ge==null?void 0:ge.source)??(Q==null?void 0:Q.source)??"",F=(ge==null?void 0:ge.workingDirectory)??(Q==null?void 0:Q.workingDirectory)??null,z=Q?Q.entries.reduce((te,Ee)=>{var be;return te+(((be=Ee.usage)==null?void 0:be.outputTokens)??0)},0):0,ie=W?l(W.composition):[],Y=h(ye),fe=z>0&&w>0?w/z*1e3:null;N.push({id:ne,source:_,model:m,directory:d(F),turnCount:ye.length,totalCost:w,totalDurationMs:L,finalTokens:b,contextLimit:p,healthRating:(I==null?void 0:I.rating)??"unknown",healthScore:(I==null?void 0:I.overall)??0,turns:ye,tokenHistory:j,costHistory:C,utilization:p>0?b/p:0,outputTokens:z,cacheRate:Y,costPerOutputK:fe,finalComposition:ie})}return N}),v=O(()=>{let N=0;for(const ne of g.value)for(const Q of ne.turns)Q.tokens>N&&(N=Q.tokens);return N||1}),E=O(()=>{let N=0;for(const ne of g.value)for(const Q of ne.turns)Q.costUsd>N&&(N=Q.costUsd);return N||.01}),k=O(()=>{let N=0;for(const ne of g.value){N=Math.max(N,ne.contextLimit);for(const Q of ne.tokenHistory)Q>N&&(N=Q)}return N||1});function T(N){const ye=8+N/v.value*24;return Math.round(ye)+"px"}function $(N){return N<=0?0:.15+N/E.value*.85}function R(N,ne){if(N.length===0)return"";const Q=100,ge=100,ye=N.length>1?Q/(N.length-1):0;return N.map((w,L)=>{const W=N.length===1?Q/2:L*ye,j=ge-w/ne*ge;return`${L===0?"M":"L"}${W.toFixed(1)},${j.toFixed(1)}`}).join(" ")}function D(N,ne){if(N.length===0)return"";const Q=100,ge=100,ye=N.length>1?Q/(N.length-1):0,w=N.map((j,C)=>{const I=N.length===1?Q/2:C*ye,b=ge-j/ne*ge;return`${C===0?"M":"L"}${I.toFixed(1)},${b.toFixed(1)}`}).join(" "),L=N.length===1?Q/2:(N.length-1)*ye,W=N.length===1?Q/2:0;return`${w} L${L.toFixed(1)},${ge} L${W.toFixed(1)},${ge} Z`}function P(N){const ne=k.value;return 100-N/ne*100}const S=O(()=>{let N=0;for(const ne of g.value)for(const Q of ne.costHistory)Q>N&&(N=Q);return N||.01});function G(N,ne){return n.value===null||ne===n.value?1:N===u.value?.3:.4}function Z(N){var Q;const ne=[`Turn ${N.turnNumber}`,`Model: ${xn(N.entry.contextInfo.model)}`,`Context: ${Ce(N.entry.contextInfo.totalTokens)}`,`Cost: ${Ct(N.entry.costUsd)}`,`Dominant: ${((Q=Tt[N.dominantGroup])==null?void 0:Q.label)??N.dominantGroup}`];return N.entry.timings&&ne.push(`Duration: ${pr(N.entry.timings.total_ms)}`),N.entry.stopReason&&ne.push(`Stop: ${N.entry.stopReason}`),N.isError&&ne.push(`HTTP ${N.entry.httpStatus}`),ne.join(`
52
- `)}function K(N,ne){return`#session/${encodeURIComponent(N)}?tab=overview&turn=${ne}`}function J(N){return`#session/${encodeURIComponent(N)}?tab=overview`}function me(N,ne){n.value=ne,u.value=N}function H(){n.value=null,u.value=null}function ae(N,ne,Q){N.ctrlKey||N.metaKey||N.button===1||(N.preventDefault(),t.exitCompare("inspector"),t.selectSession(ne),t.pinEntry(Q.entry.id))}function oe(N,ne){N.ctrlKey||N.metaKey||N.button===1||(N.preventDefault(),t.exitCompare("inspector"),t.setInspectorTab("overview"),t.selectSession(ne))}function M(){t.exitCompare("dashboard")}function ue(N){return N>=.8?"util-high":N>=.6?"util-mid":"util-low"}function ce(N){s.value=N}function q(){s.value=null}function re(N){return N>=.01?"$"+N.toFixed(2)+"/K":"$"+N.toFixed(3)+"/K"}const _e=O(()=>{const N=g.value;if(N.length<2)return null;const ne=N.map(I=>I.totalCost),Q=N.map(I=>I.finalTokens),ge=N.map(I=>I.turnCount),ye=N.map(I=>I.costPerOutputK),w=Math.min(...ne),L=Math.min(...Q),W=Math.min(...ge),j=ye.filter(I=>I!==null),C=j.length>0?Math.min(...j):null;return N.map(I=>({isCheapest:I.totalCost<=w,isLeanest:I.finalTokens<=L,isFewest:I.turnCount<=W,isMostEfficient:C!==null&&I.costPerOutputK!==null&&I.costPerOutputK<=C}))});return(N,ne)=>(y(),x("div",ox,[c("header",rx,[c("button",{class:"back-btn",onClick:M},[...ne[0]||(ne[0]=[c("i",{class:"i-carbon-arrow-left"},null,-1),we(" Dashboard ",-1)])]),c("h1",ix,[ne[1]||(ne[1]=we(" Compare ",-1)),c("span",lx,A(g.value.length)+" sessions",1)]),c("div",ax,[(y(!0),x(de,null,Te(o.value,Q=>(y(),x("span",{key:Q.key,class:"legend-chip"},[c("span",{class:"legend-swatch",style:Se({background:Q.color})},null,4),we(" "+A(Q.label),1)]))),128))])]),c("div",cx,[(y(!0),x(de,null,Te(g.value,(Q,ge)=>(y(),x("div",{key:Q.id,class:le(["lane",{"lane--focused":s.value===Q.id,"lane--dimmed":s.value!==null&&s.value!==Q.id}]),onMouseenter:ye=>ce(Q.id),onMouseleave:q},[c("div",dx,[c("div",px,[c("div",hx,A(ge+1),1),c("span",{class:le(["source-badge",X(Qu)(Q.source)])},A(Q.source||"?"),3),c("span",mx,A(X(xn)(Q.model)),1),Q.directory?(y(),x("span",gx,A(Q.directory),1)):se("",!0)]),c("div",vx,[c("div",bx,[c("span",_x,A(Q.turnCount),1),ne[2]||(ne[2]=c("span",{class:"lm-key"},"turns",-1)),_e.value&&_e.value[ge].isFewest?(y(),x("span",yx)):se("",!0)]),c("div",xx,[c("span",kx,A(X(Ct)(Q.totalCost)),1),ne[3]||(ne[3]=c("span",{class:"lm-key"},"cost",-1)),_e.value&&_e.value[ge].isCheapest?(y(),x("span",wx)):se("",!0)]),c("div",Cx,[c("span",{class:le(["lm-value",ue(Q.utilization)])},A(Math.round(Q.utilization*100))+"% ",3),ne[4]||(ne[4]=c("span",{class:"lm-key"},"context",-1)),_e.value&&_e.value[ge].isLeanest?(y(),x("span",$x)):se("",!0)]),c("div",Ex,[Q.healthRating!=="unknown"?(y(),x("span",{key:0,class:"lm-value lm-health",style:Se({color:X(mr)(Q.healthRating)})},A(Q.healthScore),5)):(y(),x("span",Tx,"--")),ne[5]||(ne[5]=c("span",{class:"lm-key"},"health",-1))]),Q.cacheRate!==null?(y(),x("div",Sx,[c("span",Dx,A(X(hr)(Q.cacheRate)),1),ne[6]||(ne[6]=c("span",{class:"lm-key"},"cache",-1))])):se("",!0),Q.costPerOutputK!==null?(y(),x("div",Ax,[c("span",Fx,A(re(Q.costPerOutputK)),1),ne[7]||(ne[7]=c("span",{class:"lm-key"},"$/out",-1)),_e.value&&_e.value[ge].isMostEfficient?(y(),x("span",Mx)):se("",!0)])):se("",!0),c("div",Ix,[c("span",Px,A(Q.totalDurationMs>0?X(pr)(Q.totalDurationMs):"--"),1),ne[8]||(ne[8]=c("span",{class:"lm-key"},"duration",-1))])]),c("a",{class:"inspect-btn",title:"Open in inspector",href:J(Q.id),onClick:ye=>oe(ye,Q.id)},[...ne[9]||(ne[9]=[c("i",{class:"i-carbon-arrow-right"},null,-1)])],8,Lx)]),c("div",Rx,[c("div",Ox,[(y(!0),x(de,null,Te(Q.turns,ye=>(y(),x("a",{key:ye.turnNumber,class:le(["turn-col",{"turn-col--error":ye.isError,"turn-col--stall":ye.isStall,"turn-col--crosslit":n.value===ye.turnNumber&&u.value!==Q.id}]),style:Se({opacity:G(Q.id,ye.turnNumber)}),title:Z(ye),href:K(Q.id,ye.turnNumber),onMouseenter:w=>me(Q.id,ye.turnNumber),onMouseleave:H,onClick:w=>ae(w,Q.id,ye)},[c("div",{class:"turn-bar",style:Se({height:T(ye.tokens)})},[(y(!0),x(de,null,Te(ye.segments,w=>(y(),x("div",{key:w.key,class:"turn-seg",style:Se({flex:w.pct,background:w.color})},null,4))),128))],4),c("div",{class:"cost-dot",style:Se({opacity:$(ye.costUsd)})},null,4),c("span",Nx,A(ye.turnNumber),1)],46,zx))),128)),Q.turns.length===0?(y(),x("div",Bx," Loading... ")):se("",!0)]),Q.tokenHistory.length>1?(y(),x("div",Hx,[c("div",jx,[(y(),x("svg",qx,[c("line",{x1:"0",y1:P(Q.contextLimit),x2:"100",y2:P(Q.contextLimit),class:"sparkline-limit"},null,8,Vx),c("path",{d:D(Q.tokenHistory,k.value),class:"sparkline-area"},null,8,Ux),c("path",{d:R(Q.tokenHistory,k.value),class:"sparkline-line"},null,8,Wx)])),c("span",Kx,[we(A(X(Ce)(Q.finalTokens)),1),ne[10]||(ne[10]=c("span",{class:"sparkline-sep"},"/",-1)),we(A(X(Ce)(Q.contextLimit)),1)])]),c("div",Gx,[(y(),x("svg",Zx,[c("path",{d:D(Q.costHistory,S.value),class:"sparkline-area sparkline-area--cost"},null,8,Jx),c("path",{d:R(Q.costHistory,S.value),class:"sparkline-line sparkline-line--cost"},null,8,Yx)])),c("span",Xx,A(X(Ct)(Q.totalCost))+" total",1)])])):se("",!0)]),Q.finalComposition.length>0?(y(),x("div",Qx,[c("div",ek,[(y(!0),x(de,null,Te(Q.finalComposition,ye=>{var w,L;return y(),x("div",{key:ye.key,class:"comp-seg",style:Se({flex:ye.pct,background:ye.color}),title:`${((w=X(Tt)[ye.key])==null?void 0:w.label)??ye.key}: ${Math.round(ye.pct)}%`},[ye.pct>=18?(y(),x("span",nk,A(((L=X(Tt)[ye.key])==null?void 0:L.label)??ye.key),1)):se("",!0)],12,tk)}),128))]),c("span",uk,A(X(Ce)(Q.finalTokens)),1)])):se("",!0)],42,fx))),128))])]))}}),ok=rt(sk,[["__scopeId","data-v-c274f2d8"]]),rk={},ik={class:"empty"};function lk(e,t){return y(),x("div",ik,[...t[0]||(t[0]=[ic('<svg class="empty-icon" width="48" height="48" viewBox="0 0 48 48" aria-hidden="true" data-v-213dcf0e><circle cx="24" cy="24" r="20" fill="none" stroke="var(--border-mid)" stroke-width="1" data-v-213dcf0e></circle><circle cx="24" cy="24" r="10" fill="none" stroke="var(--border-bright)" stroke-width="0.8" data-v-213dcf0e></circle><circle cx="24" cy="24" r="3" fill="var(--accent-blue)" opacity="0.4" data-v-213dcf0e></circle></svg><div class="empty-title" data-v-213dcf0e>No requests captured yet</div><div class="empty-sub" data-v-213dcf0e> Start a tool through the CLI to capture traffic: </div><div class="empty-examples" data-v-213dcf0e><code data-v-213dcf0e>context-lens claude</code><code data-v-213dcf0e>context-lens codex</code><code data-v-213dcf0e>context-lens gemini</code></div>',4)])])}const ak=rt(rk,[["render",lk],["__scopeId","data-v-213dcf0e"]]),ck={class:"app"},fk={class:"app-body"},dk={key:0,class:"app-loading"},pk={key:0,class:"rail-wrapper"},hk={class:"main-content"},mk={key:"inspector",class:"inspector-content"},gk={key:1,class:"loading-placeholder"},Jl="#sessions",vk=tt({__name:"App",setup(e){const t=Ft(),n=he(!1),u=he(!1),s=["overview","messages","timeline"];let o=null;const r=he(null),i=O(()=>{const k=t.view,T=r.value;return T===null?"view-instant":T==="dashboard"&&k==="inspector"?"view-slide-forward":T==="inspector"&&k==="dashboard"?"view-slide-back":"view-instant"});Ge(()=>t.view,(k,T)=>{r.value!==null?r.value=T:r.value=k});const{connected:l}=Ih("/api/events",k=>{t.handleSSEEvent(k)});Ge(l,k=>{t.connected=k});function a(k){const T=k.match(/^#session\/([^?]+)(?:\?(.*))?$/);if(!T)return{sessionId:null,tab:null,turn:null};const R=decodeURIComponent(T[1]).trim()||null;if(!R)return{sessionId:null,tab:null,turn:null};const D=new URLSearchParams(T[2]??""),P=D.get("tab"),S=P&&s.includes(P)?P:null,G=D.get("turn"),Z=G?Number.parseInt(G,10):NaN,K=Number.isFinite(Z)&&Z>0?Z:null;return{sessionId:R,tab:S,turn:K}}function f(k){return vn([...k.entries].reverse()).filter(T=>T.isMain).map(T=>T.entry)}function d(){if(t.selectionMode!=="pinned")return null;const k=t.selectedSession;if(!k)return null;const T=f(k);if(T.length===0)return null;const $=t.selectedEntryId;if($==null)return null;const R=T.findIndex(P=>P.id===$);if(R<0)return null;const D=R+1;return D<T.length?D:null}function h(k){const T=k.match(/^#compare\/(.+)$/);return T?T[1].split(",").map($=>decodeURIComponent($.trim())).filter(Boolean):null}async function g(){n.value=!0;try{const k=window.location.hash||"",T=h(k);if(T&&T.length>=2){const P=T.filter(S=>t.summaries.some(G=>G.id===S));if(P.length>=2){await t.enterCompare(new Set(P));return}}const{sessionId:$,tab:R,turn:D}=a(k);if($){if(!t.summaries.some(S=>S.id===$)){t.setView("dashboard");return}if(await t.selectSession($),R&&t.setInspectorTab(R),D!=null&&t.selectedSession){const S=f(t.selectedSession);if(S.length>0){const G=Math.min(Math.max(D,1),S.length);G<S.length?t.pinEntry(S[G-1].id):t.followLive()}else t.followLive()}else t.followLive();t.setView("inspector");return}t.setView("dashboard")}finally{n.value=!1}}function v(){if(n.value)return;let k=Jl;if(t.view==="compare"&&t.compareSessionIds.size>=2)k=`#compare/${Array.from(t.compareSessionIds).map($=>encodeURIComponent($)).join(",")}`;else if(t.view==="inspector"&&t.selectedSessionId){const T=new URLSearchParams;T.set("tab",t.inspectorTab);const $=d();$!=null&&T.set("turn",String($));const R=T.toString();k=`#session/${encodeURIComponent(t.selectedSessionId)}${R?`?${R}`:""}`}window.location.hash!==k&&(window.location.hash=k)}function E(){g()}return Ge(()=>{var k;return[t.view,t.selectedSessionId,t.inspectorTab,t.selectionMode,t.selectedEntryId,(k=t.selectedSession)==null?void 0:k.entries.length,t.compareMode,t.compareSessionIds.size]},()=>{v()}),Hn(async()=>{try{t.initializeDensity(),await t.load(),window.location.hash||(window.location.hash=Jl),await g(),window.addEventListener("hashchange",E),o=setInterval(()=>{document.hidden||t.load()},5e3)}finally{u.value=!0}}),is(()=>{window.removeEventListener("hashchange",E),o&&(clearInterval(o),o=null)}),(k,T)=>(y(),x("div",ck,[Le(f1),c("div",fk,[u.value?(y(),x(de,{key:1},[Le(Qt,{name:"rail-slide"},{default:st(()=>[X(t).view==="inspector"?(y(),x("div",pk,[Le(sx)])):se("",!0)]),_:1}),c("div",hk,[Le(Qt,{name:i.value},{default:st(()=>[X(t).view==="dashboard"?(y(),_t(Lm,{key:"dashboard"})):X(t).view==="compare"?(y(),_t(ok,{key:"compare"})):X(t).view==="inspector"?(y(),x("div",mk,[X(t).selectedSession?(y(),_t(Z6,{key:0})):(y(),x("div",gk,[...T[1]||(T[1]=[c("div",{class:"loading-spinner"},null,-1)])]))])):(y(),_t(ak,{key:"empty"}))]),_:1},8,["name"])])],64)):(y(),x("div",dk,[...T[0]||(T[0]=[c("div",{class:"loading-spinner"},null,-1)])]))])]))}}),bk=rt(vk,[["__scopeId","data-v-eb13f43c"]]),oi=mc(bk);oi.use(op());oi.use(vh,{themes:{tooltip:{delay:{show:200,hide:0},distance:8,overflowPadding:8}}});oi.mount("#app");