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.
- package/dist/cli-utils.d.ts +6 -5
- package/dist/cli-utils.d.ts.map +1 -1
- package/dist/cli-utils.js +25 -22
- package/dist/cli-utils.js.map +1 -1
- package/dist/cli.js +133 -50
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +6 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +28 -0
- package/dist/config.js.map +1 -1
- package/dist/core/conversation.d.ts +3 -2
- package/dist/core/conversation.d.ts.map +1 -1
- package/dist/core/conversation.js +9 -3
- package/dist/core/conversation.js.map +1 -1
- package/dist/core/parse.d.ts.map +1 -1
- package/dist/core/parse.js +57 -5
- package/dist/core/parse.js.map +1 -1
- package/dist/core/security.d.ts.map +1 -1
- package/dist/core/security.js +15 -1
- package/dist/core/security.js.map +1 -1
- package/dist/importers/claude-code.d.ts +19 -0
- package/dist/importers/claude-code.d.ts.map +1 -0
- package/dist/importers/claude-code.js +166 -0
- package/dist/importers/claude-code.js.map +1 -0
- package/dist/importers/codex.d.ts +22 -0
- package/dist/importers/codex.d.ts.map +1 -0
- package/dist/importers/codex.js +172 -0
- package/dist/importers/codex.js.map +1 -0
- package/dist/importers/index.d.ts +12 -0
- package/dist/importers/index.d.ts.map +1 -0
- package/dist/importers/index.js +153 -0
- package/dist/importers/index.js.map +1 -0
- package/dist/importers/types.d.ts +51 -0
- package/dist/importers/types.d.ts.map +1 -0
- package/dist/importers/types.js +8 -0
- package/dist/importers/types.js.map +1 -0
- package/dist/lhar/composition.d.ts.map +1 -1
- package/dist/lhar/composition.js +13 -0
- package/dist/lhar/composition.js.map +1 -1
- package/dist/lhar/response.d.ts.map +1 -1
- package/dist/lhar/response.js +17 -1
- package/dist/lhar/response.js.map +1 -1
- package/dist/server/api.d.ts.map +1 -1
- package/dist/server/api.js +72 -0
- package/dist/server/api.js.map +1 -1
- package/dist/server/store.d.ts +3 -0
- package/dist/server/store.d.ts.map +1 -1
- package/dist/server/store.js +12 -2
- package/dist/server/store.js.map +1 -1
- package/dist/types.d.ts +16 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/version.generated.d.ts +1 -1
- package/dist/version.generated.js +1 -1
- package/mitm_addon.py +107 -4
- package/package.json +4 -4
- package/ui/dist/assets/index-BlAdJWw0.css +1 -0
- package/ui/dist/assets/index-DO3TMDY3.js +58 -0
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-CZq91bC_.js +0 -52
- package/ui/dist/assets/index-DSyD9xgM.css +0 -1
|
@@ -0,0 +1,58 @@
|
|
|
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 o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const r of u.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&s(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(o){if(o.ep)return;o.ep=!0;const u=n(o);fetch(o.href,u)}})();/**
|
|
3
|
+
* @vue/shared v3.5.28
|
|
4
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
5
|
+
* @license MIT
|
|
6
|
+
**/function Sr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ke={},ls=[],nn=()=>{},ua=()=>!1,tu=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ar=e=>e.startsWith("onUpdate:"),it=Object.assign,Dr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},zd=Object.prototype.hasOwnProperty,Ue=(e,t)=>zd.call(e,t),Ae=Array.isArray,as=e=>ao(e)==="[object Map]",ra=e=>ao(e)==="[object Set]",fi=e=>ao(e)==="[object Date]",Pe=e=>typeof e=="function",Xe=e=>typeof e=="string",Ut=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",ia=e=>(Ve(e)||Pe(e))&&Pe(e.then)&&Pe(e.catch),la=Object.prototype.toString,ao=e=>la.call(e),Nd=e=>ao(e).slice(8,-1),aa=e=>ao(e)==="[object Object]",nu=e=>Xe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Fs=Sr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),su=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Bd=/-\w/g,Rt=su(e=>e.replace(Bd,t=>t.slice(1).toUpperCase())),jd=/\B([A-Z])/g,Hn=su(e=>e.replace(jd,"-$1").toLowerCase()),ou=su(e=>e.charAt(0).toUpperCase()+e.slice(1)),$u=su(e=>e?`on${ou(e)}`:""),Ln=(e,t)=>!Object.is(e,t),So=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},ca=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Fr=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Hd=e=>{const t=Xe(e)?Number(e):NaN;return isNaN(t)?e:t};let pi;const uu=()=>pi||(pi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Se(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],o=Xe(s)?Wd(s):Se(s);if(o)for(const u in o)t[u]=o[u]}return t}else if(Xe(e)||Ve(e))return e}const qd=/;(?![^(]*\))/g,Ud=/:([^]+)/,Vd=/\/\*[^]*?\*\//g;function Wd(e){const t={};return e.replace(Vd,"").split(qd).forEach(n=>{if(n){const s=n.split(Ud);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function ue(e){let t="";if(Xe(e))t=e;else if(Ae(e))for(let n=0;n<e.length;n++){const s=ue(e[n]);s&&(t+=s+" ")}else if(Ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Kd(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Xe(t)&&(e.class=ue(t)),n&&(e.style=Se(n)),e}const Gd="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Zd=Sr(Gd);function da(e){return!!e||e===""}function Jd(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Mr(e[s],t[s]);return n}function Mr(e,t){if(e===t)return!0;let n=fi(e),s=fi(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ut(e),s=Ut(t),n||s)return e===t;if(n=Ae(e),s=Ae(t),n||s)return n&&s?Jd(e,t):!1;if(n=Ve(e),s=Ve(t),n||s){if(!n||!s)return!1;const o=Object.keys(e).length,u=Object.keys(t).length;if(o!==u)return!1;for(const r in e){const i=e.hasOwnProperty(r),l=t.hasOwnProperty(r);if(i&&!l||!i&&l||!Mr(e[r],t[r]))return!1}}return String(e)===String(t)}const fa=e=>!!(e&&e.__v_isRef===!0),M=e=>Xe(e)?e:e==null?"":Ae(e)||Ve(e)&&(e.toString===la||!Pe(e.toString))?fa(e)?M(e.value):JSON.stringify(e,pa,2):String(e),pa=(e,t)=>fa(t)?pa(e,t.value):as(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o],u)=>(n[Tu(s,u)+" =>"]=o,n),{})}:ra(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Tu(n))}:Ut(t)?Tu(t):Ve(t)&&!Ae(t)&&!aa(t)?String(t):t,Tu=(e,t="")=>{var n;return Ut(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 ht;class ha{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=ht,!t&&ht&&(this.index=(ht.scopes||(ht.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=ht;try{return ht=this,t()}finally{ht=n}}}on(){++this._on===1&&(this.prevScope=ht,ht=this)}off(){this._on>0&&--this._on===0&&(ht=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const o=this.parent.scopes.pop();o&&o!==this&&(this.parent.scopes[this.index]=o,o.index=this.index)}this.parent=void 0}}}function ma(e){return new ha(e)}function ga(){return ht}function Yd(e,t=!1){ht&&ht.cleanups.push(e)}let Ze;const Eu=new WeakSet;class va{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,ht&&ht.active&&ht.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Eu.has(this)&&(Eu.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||_a(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,hi(this),ya(this);const t=Ze,n=jt;Ze=this,jt=!0;try{return this.fn()}finally{xa(this),Ze=t,jt=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Lr(t);this.deps=this.depsTail=void 0,hi(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Eu.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Qu(this)&&this.run()}get dirty(){return Qu(this)}}let ba=0,Ms,Is;function _a(e,t=!1){if(e.flags|=8,t){e.next=Is,Is=e;return}e.next=Ms,Ms=e}function Ir(){ba++}function Pr(){if(--ba>0)return;if(Is){let t=Is;for(Is=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ms;){let t=Ms;for(Ms=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function ya(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xa(e){let t,n=e.depsTail,s=n;for(;s;){const o=s.prevDep;s.version===-1?(s===n&&(n=o),Lr(s),Xd(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=o}e.deps=t,e.depsTail=n}function Qu(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ka(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ka(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qs)||(e.globalVersion=qs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Qu(e))))return;e.flags|=2;const t=e.dep,n=Ze,s=jt;Ze=e,jt=!0;try{ya(e);const o=e.fn(e._value);(t.version===0||Ln(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ze=n,jt=s,xa(e),e.flags&=-3}}function Lr(e,t=!1){const{dep:n,prevSub:s,nextSub:o}=e;if(s&&(s.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let u=n.computed.deps;u;u=u.nextDep)Lr(u,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xd(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let jt=!0;const wa=[];function _n(){wa.push(jt),jt=!1}function yn(){const e=wa.pop();jt=e===void 0?!0:e}function hi(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ze;Ze=void 0;try{t()}finally{Ze=n}}}let qs=0;class Qd{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 Rr{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(!Ze||!jt||Ze===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ze)n=this.activeLink=new Qd(Ze,this),Ze.deps?(n.prevDep=Ze.depsTail,Ze.depsTail.nextDep=n,Ze.depsTail=n):Ze.deps=Ze.depsTail=n,Ca(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=Ze.depsTail,n.nextDep=void 0,Ze.depsTail.nextDep=n,Ze.depsTail=n,Ze.deps===n&&(Ze.deps=s)}return n}trigger(t){this.version++,qs++,this.notify(t)}notify(t){Ir();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pr()}}}function Ca(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)Ca(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Lo=new WeakMap,Qn=Symbol(""),er=Symbol(""),Us=Symbol("");function mt(e,t,n){if(jt&&Ze){let s=Lo.get(e);s||Lo.set(e,s=new Map);let o=s.get(n);o||(s.set(n,o=new Rr),o.map=s,o.key=n),o.track()}}function hn(e,t,n,s,o,u){const r=Lo.get(e);if(!r){qs++;return}const i=l=>{l&&l.trigger()};if(Ir(),t==="clear")r.forEach(i);else{const l=Ae(e),a=l&&nu(n);if(l&&n==="length"){const c=Number(s);r.forEach((f,h)=>{(h==="length"||h===Us||!Ut(h)&&h>=c)&&i(f)})}else switch((n!==void 0||r.has(void 0))&&i(r.get(n)),a&&i(r.get(Us)),t){case"add":l?a&&i(r.get("length")):(i(r.get(Qn)),as(e)&&i(r.get(er)));break;case"delete":l||(i(r.get(Qn)),as(e)&&i(r.get(er)));break;case"set":as(e)&&i(r.get(Qn));break}}Pr()}function e0(e,t){const n=Lo.get(e);return n&&n.get(t)}function ss(e){const t=je(e);return t===e?t:(mt(t,"iterate",Us),At(e)?t:t.map(Vt))}function ru(e){return mt(e=je(e),"iterate",Us),e}function Dn(e,t){return xn(e)?hs(vn(e)?Vt(t):t):Vt(t)}const t0={__proto__:null,[Symbol.iterator](){return Su(this,Symbol.iterator,e=>Dn(this,e))},concat(...e){return ss(this).concat(...e.map(t=>Ae(t)?ss(t):t))},entries(){return Su(this,"entries",e=>(e[1]=Dn(this,e[1]),e))},every(e,t){return cn(this,"every",e,t,void 0,arguments)},filter(e,t){return cn(this,"filter",e,t,n=>n.map(s=>Dn(this,s)),arguments)},find(e,t){return cn(this,"find",e,t,n=>Dn(this,n),arguments)},findIndex(e,t){return cn(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return cn(this,"findLast",e,t,n=>Dn(this,n),arguments)},findLastIndex(e,t){return cn(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return cn(this,"forEach",e,t,void 0,arguments)},includes(...e){return Au(this,"includes",e)},indexOf(...e){return Au(this,"indexOf",e)},join(e){return ss(this).join(e)},lastIndexOf(...e){return Au(this,"lastIndexOf",e)},map(e,t){return cn(this,"map",e,t,void 0,arguments)},pop(){return xs(this,"pop")},push(...e){return xs(this,"push",e)},reduce(e,...t){return mi(this,"reduce",e,t)},reduceRight(e,...t){return mi(this,"reduceRight",e,t)},shift(){return xs(this,"shift")},some(e,t){return cn(this,"some",e,t,void 0,arguments)},splice(...e){return xs(this,"splice",e)},toReversed(){return ss(this).toReversed()},toSorted(e){return ss(this).toSorted(e)},toSpliced(...e){return ss(this).toSpliced(...e)},unshift(...e){return xs(this,"unshift",e)},values(){return Su(this,"values",e=>Dn(this,e))}};function Su(e,t,n){const s=ru(e),o=s[t]();return s!==e&&!At(e)&&(o._next=o.next,o.next=()=>{const u=o._next();return u.done||(u.value=n(u.value)),u}),o}const n0=Array.prototype;function cn(e,t,n,s,o,u){const r=ru(e),i=r!==e&&!At(e),l=r[t];if(l!==n0[t]){const f=l.apply(e,u);return i?Vt(f):f}let a=n;r!==e&&(i?a=function(f,h){return n.call(this,Dn(e,f),h,e)}:n.length>2&&(a=function(f,h){return n.call(this,f,h,e)}));const c=l.call(r,a,s);return i&&o?o(c):c}function mi(e,t,n,s){const o=ru(e);let u=n;return o!==e&&(At(e)?n.length>3&&(u=function(r,i,l){return n.call(this,r,i,l,e)}):u=function(r,i,l){return n.call(this,r,Dn(e,i),l,e)}),o[t](u,...s)}function Au(e,t,n){const s=je(e);mt(s,"iterate",Us);const o=s[t](...n);return(o===-1||o===!1)&&iu(n[0])?(n[0]=je(n[0]),s[t](...n)):o}function xs(e,t,n=[]){_n(),Ir();const s=je(e)[t].apply(e,n);return Pr(),yn(),s}const s0=Sr("__proto__,__v_isRef,__isVue"),$a=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ut));function o0(e){Ut(e)||(e=String(e));const t=je(this);return mt(t,"has",e),t.hasOwnProperty(e)}class Ta{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,u=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return u;if(n==="__v_raw")return s===(o?u?h0:Da:u?Aa:Sa).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const r=Ae(t);if(!o){let l;if(r&&(l=t0[n]))return l;if(n==="hasOwnProperty")return o0}const i=Reflect.get(t,n,tt(t)?t:s);if((Ut(n)?$a.has(n):s0(n))||(o||mt(t,"get",n),u))return i;if(tt(i)){const l=r&&nu(n)?i:i.value;return o&&Ve(l)?nr(l):l}return Ve(i)?o?nr(i):co(i):i}}class Ea extends Ta{constructor(t=!1){super(!1,t)}set(t,n,s,o){let u=t[n];const r=Ae(t)&&nu(n);if(!this._isShallow){const a=xn(u);if(!At(s)&&!xn(s)&&(u=je(u),s=je(s)),!r&&tt(u)&&!tt(s))return a||(u.value=s),!0}const i=r?Number(n)<t.length:Ue(t,n),l=Reflect.set(t,n,s,tt(t)?t:o);return t===je(o)&&(i?Ln(s,u)&&hn(t,"set",n,s):hn(t,"add",n,s)),l}deleteProperty(t,n){const s=Ue(t,n);t[n];const o=Reflect.deleteProperty(t,n);return o&&s&&hn(t,"delete",n,void 0),o}has(t,n){const s=Reflect.has(t,n);return(!Ut(n)||!$a.has(n))&&mt(t,"has",n),s}ownKeys(t){return mt(t,"iterate",Ae(t)?"length":Qn),Reflect.ownKeys(t)}}class u0 extends Ta{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const r0=new Ea,i0=new u0,l0=new Ea(!0);const tr=e=>e,_o=e=>Reflect.getPrototypeOf(e);function a0(e,t,n){return function(...s){const o=this.__v_raw,u=je(o),r=as(u),i=e==="entries"||e===Symbol.iterator&&r,l=e==="keys"&&r,a=o[e](...s),c=n?tr:t?hs:Vt;return!t&&mt(u,"iterate",l?er:Qn),it(Object.create(a),{next(){const{value:f,done:h}=a.next();return h?{value:f,done:h}:{value:i?[c(f[0]),c(f[1])]:c(f),done:h}}})}}function yo(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function c0(e,t){const n={get(o){const u=this.__v_raw,r=je(u),i=je(o);e||(Ln(o,i)&&mt(r,"get",o),mt(r,"get",i));const{has:l}=_o(r),a=t?tr:e?hs:Vt;if(l.call(r,o))return a(u.get(o));if(l.call(r,i))return a(u.get(i));u!==r&&u.get(o)},get size(){const o=this.__v_raw;return!e&&mt(je(o),"iterate",Qn),o.size},has(o){const u=this.__v_raw,r=je(u),i=je(o);return e||(Ln(o,i)&&mt(r,"has",o),mt(r,"has",i)),o===i?u.has(o):u.has(o)||u.has(i)},forEach(o,u){const r=this,i=r.__v_raw,l=je(i),a=t?tr:e?hs:Vt;return!e&&mt(l,"iterate",Qn),i.forEach((c,f)=>o.call(u,a(c),a(f),r))}};return it(n,e?{add:yo("add"),set:yo("set"),delete:yo("delete"),clear:yo("clear")}:{add(o){!t&&!At(o)&&!xn(o)&&(o=je(o));const u=je(this);return _o(u).has.call(u,o)||(u.add(o),hn(u,"add",o,o)),this},set(o,u){!t&&!At(u)&&!xn(u)&&(u=je(u));const r=je(this),{has:i,get:l}=_o(r);let a=i.call(r,o);a||(o=je(o),a=i.call(r,o));const c=l.call(r,o);return r.set(o,u),a?Ln(u,c)&&hn(r,"set",o,u):hn(r,"add",o,u),this},delete(o){const u=je(this),{has:r,get:i}=_o(u);let l=r.call(u,o);l||(o=je(o),l=r.call(u,o)),i&&i.call(u,o);const a=u.delete(o);return l&&hn(u,"delete",o,void 0),a},clear(){const o=je(this),u=o.size!==0,r=o.clear();return u&&hn(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=a0(o,e,t)}),n}function Or(e,t){const n=c0(e,t);return(s,o,u)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(Ue(n,o)&&o in s?n:s,o,u)}const d0={get:Or(!1,!1)},f0={get:Or(!1,!0)},p0={get:Or(!0,!1)};const Sa=new WeakMap,Aa=new WeakMap,Da=new WeakMap,h0=new WeakMap;function m0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function g0(e){return e.__v_skip||!Object.isExtensible(e)?0:m0(Nd(e))}function co(e){return xn(e)?e:zr(e,!1,r0,d0,Sa)}function v0(e){return zr(e,!1,l0,f0,Aa)}function nr(e){return zr(e,!0,i0,p0,Da)}function zr(e,t,n,s,o){if(!Ve(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const u=g0(e);if(u===0)return e;const r=o.get(e);if(r)return r;const i=new Proxy(e,u===2?s:n);return o.set(e,i),i}function vn(e){return xn(e)?vn(e.__v_raw):!!(e&&e.__v_isReactive)}function xn(e){return!!(e&&e.__v_isReadonly)}function At(e){return!!(e&&e.__v_isShallow)}function iu(e){return e?!!e.__v_raw:!1}function je(e){const t=e&&e.__v_raw;return t?je(t):e}function Nr(e){return!Ue(e,"__v_skip")&&Object.isExtensible(e)&&ca(e,"__v_skip",!0),e}const Vt=e=>Ve(e)?co(e):e,hs=e=>Ve(e)?nr(e):e;function tt(e){return e?e.__v_isRef===!0:!1}function ie(e){return b0(e,!1)}function b0(e,t){return tt(e)?e:new _0(e,t)}class _0{constructor(t,n){this.dep=new Rr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:je(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,s=this.__v_isShallow||At(t)||xn(t);t=s?t:je(t),Ln(t,n)&&(this._rawValue=t,this._value=s?t:Vt(t),this.dep.trigger())}}function Y(e){return tt(e)?e.value:e}const y0={get:(e,t,n)=>t==="__v_raw"?e:Y(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return tt(o)&&!tt(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Fa(e){return vn(e)?e:new Proxy(e,y0)}function x0(e){const t=Ae(e)?new Array(e.length):{};for(const n in e)t[n]=w0(e,n);return t}class k0{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0,this._raw=je(t);let o=!0,u=t;if(!Ae(t)||!nu(String(n)))do o=!iu(u)||At(u);while(o&&(u=u.__v_raw));this._shallow=o}get value(){let t=this._object[this._key];return this._shallow&&(t=Y(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&tt(this._raw[this._key])){const n=this._object[this._key];if(tt(n)){n.value=t;return}}this._object[this._key]=t}get dep(){return e0(this._raw,this._key)}}function w0(e,t,n){return new k0(e,t,n)}class C0{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Rr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&Ze!==this)return _a(this,!0),!0}get value(){const t=this.dep.track();return ka(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function $0(e,t,n=!1){let s,o;return Pe(e)?s=e:(s=e.get,o=e.set),new C0(s,o,n)}const xo={},Ro=new WeakMap;let Jn;function T0(e,t=!1,n=Jn){if(n){let s=Ro.get(n);s||Ro.set(n,s=[]),s.push(e)}}function E0(e,t,n=Ke){const{immediate:s,deep:o,once:u,scheduler:r,augmentJob:i,call:l}=n,a=D=>o?D:At(D)||o===!1||o===0?mn(D,1):mn(D);let c,f,h,g,v=!1,S=!1;if(tt(e)?(f=()=>e.value,v=At(e)):vn(e)?(f=()=>a(e),v=!0):Ae(e)?(S=!0,v=e.some(D=>vn(D)||At(D)),f=()=>e.map(D=>{if(tt(D))return D.value;if(vn(D))return a(D);if(Pe(D))return l?l(D,2):D()})):Pe(e)?t?f=l?()=>l(e,2):e:f=()=>{if(h){_n();try{h()}finally{yn()}}const D=Jn;Jn=c;try{return l?l(e,3,[g]):e(g)}finally{Jn=D}}:f=nn,t&&o){const D=f,F=o===!0?1/0:o;f=()=>mn(D(),F)}const $=ga(),E=()=>{c.stop(),$&&$.active&&Dr($.effects,c)};if(u&&t){const D=t;t=(...F)=>{D(...F),E()}}let C=S?new Array(e.length).fill(xo):xo;const L=D=>{if(!(!(c.flags&1)||!c.dirty&&!D))if(t){const F=c.run();if(o||v||(S?F.some((A,V)=>Ln(A,C[V])):Ln(F,C))){h&&h();const A=Jn;Jn=c;try{const V=[F,C===xo?void 0:S&&C[0]===xo?[]:C,g];C=F,l?l(t,3,V):t(...V)}finally{Jn=A}}}else c.run()};return i&&i(L),c=new va(f),c.scheduler=r?()=>r(L,!1):L,g=D=>T0(D,!1,c),h=c.onStop=()=>{const D=Ro.get(c);if(D){if(l)l(D,4);else for(const F of D)F();Ro.delete(c)}},t?s?L(!0):C=c.run():r?r(L.bind(null,!0),!0):c.run(),E.pause=c.pause.bind(c),E.resume=c.resume.bind(c),E.stop=E,E}function mn(e,t=1/0,n){if(t<=0||!Ve(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,tt(e))mn(e.value,t,n);else if(Ae(e))for(let s=0;s<e.length;s++)mn(e[s],t,n);else if(ra(e)||as(e))e.forEach(s=>{mn(s,t,n)});else if(aa(e)){for(const s in e)mn(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&mn(e[s],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 fo(e,t,n,s){try{return s?e(...s):e()}catch(o){lu(o,t,n)}}function Wt(e,t,n,s){if(Pe(e)){const o=fo(e,t,n,s);return o&&ia(o)&&o.catch(u=>{lu(u,t,n)}),o}if(Ae(e)){const o=[];for(let u=0;u<e.length;u++)o.push(Wt(e[u],t,n,s));return o}}function lu(e,t,n,s=!0){const o=t?t.vnode:null,{errorHandler:u,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||Ke;if(t){let i=t.parent;const l=t.proxy,a=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const c=i.ec;if(c){for(let f=0;f<c.length;f++)if(c[f](e,l,a)===!1)return}i=i.parent}if(u){_n(),fo(u,null,10,[e,l,a]),yn();return}}S0(e,n,o,s,r)}function S0(e,t,n,s=!0,o=!1){if(o)throw e;console.error(e)}const yt=[];let Yt=-1;const cs=[];let Fn=null,rs=0;const Ma=Promise.resolve();let Oo=null;function Ye(e){const t=Oo||Ma;return e?t.then(this?e.bind(this):e):t}function A0(e){let t=Yt+1,n=yt.length;for(;t<n;){const s=t+n>>>1,o=yt[s],u=Vs(o);u<e||u===e&&o.flags&2?t=s+1:n=s}return t}function Br(e){if(!(e.flags&1)){const t=Vs(e),n=yt[yt.length-1];!n||!(e.flags&2)&&t>=Vs(n)?yt.push(e):yt.splice(A0(t),0,e),e.flags|=1,Ia()}}function Ia(){Oo||(Oo=Ma.then(La))}function D0(e){Ae(e)?cs.push(...e):Fn&&e.id===-1?Fn.splice(rs+1,0,e):e.flags&1||(cs.push(e),e.flags|=1),Ia()}function gi(e,t,n=Yt+1){for(;n<yt.length;n++){const s=yt[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;yt.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Pa(e){if(cs.length){const t=[...new Set(cs)].sort((n,s)=>Vs(n)-Vs(s));if(cs.length=0,Fn){Fn.push(...t);return}for(Fn=t,rs=0;rs<Fn.length;rs++){const n=Fn[rs];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Fn=null,rs=0}}const Vs=e=>e.id==null?e.flags&2?-1:1/0:e.id;function La(e){try{for(Yt=0;Yt<yt.length;Yt++){const t=yt[Yt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),fo(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Yt<yt.length;Yt++){const t=yt[Yt];t&&(t.flags&=-2)}Yt=-1,yt.length=0,Pa(),Oo=null,(yt.length||cs.length)&&La()}}let ft=null,au=null;function zo(e){const t=ft;return ft=e,au=e&&e.type.__scopeId||null,t}function F0(e){au=e}function M0(){au=null}const I0=e=>nt;function nt(e,t=ft,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&jo(-1);const u=zo(t);let r;try{r=e(...o)}finally{zo(u),s._d&&jo(1)}return r};return s._n=!0,s._c=!0,s._d=!0,s}function He(e,t){if(ft===null)return e;const n=hu(ft),s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[u,r,i,l=Ke]=t[o];u&&(Pe(u)&&(u={mounted:u,updated:u}),u.deep&&mn(r),s.push({dir:u,instance:n,value:r,oldValue:void 0,arg:i,modifiers:l}))}return e}function Vn(e,t,n,s){const o=e.dirs,u=t&&t.dirs;for(let r=0;r<o.length;r++){const i=o[r];u&&(i.oldValue=u[r].value);let l=i.dir[s];l&&(_n(),Wt(l,n,8,[e.el,i,e,t]),yn())}}function Tn(e,t){if(vt){let n=vt.provides;const s=vt.parent&&vt.parent.provides;s===n&&(n=vt.provides=Object.create(s)),n[e]=t}}function Nt(e,t,n=!1){const s=ho();if(s||es){let o=es?es._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Pe(t)?t.call(s&&s.proxy):t}}function P0(){return!!(ho()||es)}const L0=Symbol.for("v-scx"),R0=()=>Nt(L0);function O0(e,t){return jr(e,null,t)}function Ge(e,t,n){return jr(e,t,n)}function jr(e,t,n=Ke){const{immediate:s,deep:o,flush:u,once:r}=n,i=it({},n),l=t&&s||!t&&u!=="post";let a;if(Ys){if(u==="sync"){const g=R0();a=g.__watcherHandles||(g.__watcherHandles=[])}else if(!l){const g=()=>{};return g.stop=nn,g.resume=nn,g.pause=nn,g}}const c=vt;i.call=(g,v,S)=>Wt(g,c,v,S);let f=!1;u==="post"?i.scheduler=g=>{pt(g,c&&c.suspense)}:u!=="sync"&&(f=!0,i.scheduler=(g,v)=>{v?g():Br(g)}),i.augmentJob=g=>{t&&(g.flags|=4),f&&(g.flags|=2,c&&(g.id=c.uid,g.i=c))};const h=E0(e,t,i);return Ys&&(a?a.push(h):l&&h()),h}function z0(e,t,n){const s=this.proxy,o=Xe(e)?e.includes(".")?Ra(s,e):()=>s[e]:e.bind(s,s);let u;Pe(t)?u=t:(u=t.handler,n=t);const r=mo(this),i=jr(o,u.bind(s),n);return r(),i}function Ra(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o<n.length&&s;o++)s=s[n[o]];return s}}const Oa=Symbol("_vte"),za=e=>e.__isTeleport,Ps=e=>e&&(e.disabled||e.disabled===""),vi=e=>e&&(e.defer||e.defer===""),bi=e=>typeof SVGElement<"u"&&e instanceof SVGElement,_i=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,sr=(e,t)=>{const n=e&&e.to;return Xe(n)?t?t(n):null:n},Na={name:"Teleport",__isTeleport:!0,process(e,t,n,s,o,u,r,i,l,a){const{mc:c,pc:f,pbc:h,o:{insert:g,querySelector:v,createText:S,createComment:$}}=a,E=Ps(t.props);let{shapeFlag:C,children:L,dynamicChildren:D}=t;if(e==null){const F=t.el=S(""),A=t.anchor=S("");g(F,n,s),g(A,n,s);const V=(Z,K)=>{C&16&&c(L,Z,K,o,u,r,i,l)},G=()=>{const Z=t.target=sr(t.props,v),K=or(Z,t,S,g);Z&&(r!=="svg"&&bi(Z)?r="svg":r!=="mathml"&&_i(Z)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(Z),E||(V(Z,K),Ao(t,!1)))};E&&(V(n,A),Ao(t,!0)),vi(t.props)?(t.el.__isMounted=!1,pt(()=>{G(),delete t.el.__isMounted},u)):G()}else{if(vi(t.props)&&e.el.__isMounted===!1){pt(()=>{Na.process(e,t,n,s,o,u,r,i,l,a)},u);return}t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,A=t.target=e.target,V=t.targetAnchor=e.targetAnchor,G=Ps(e.props),Z=G?n:A,K=G?F:V;if(r==="svg"||bi(A)?r="svg":(r==="mathml"||_i(A))&&(r="mathml"),D?(h(e.dynamicChildren,D,Z,o,u,r,i),Wr(e,t,!0)):l||f(e,t,Z,K,o,u,r,i,!1),E)G?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):ko(t,n,F,a,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const pe=t.target=sr(t.props,v);pe&&ko(t,pe,null,a,0)}else G&&ko(t,A,V,a,1);Ao(t,E)}},remove(e,t,n,{um:s,o:{remove:o}},u){const{shapeFlag:r,children:i,anchor:l,targetStart:a,targetAnchor:c,target:f,props:h}=e;if(f&&(o(a),o(c)),u&&o(l),r&16){const g=u||!Ps(h);for(let v=0;v<i.length;v++){const S=i[v];s(S,t,n,g,!!S.dynamicChildren)}}},move:ko,hydrate:N0};function ko(e,t,n,{o:{insert:s},m:o},u=2){u===0&&s(e.targetAnchor,t,n);const{el:r,anchor:i,shapeFlag:l,children:a,props:c}=e,f=u===2;if(f&&s(r,t,n),(!f||Ps(c))&&l&16)for(let h=0;h<a.length;h++)o(a[h],t,n,2);f&&s(i,t,n)}function N0(e,t,n,s,o,u,{o:{nextSibling:r,parentNode:i,querySelector:l,insert:a,createText:c}},f){function h($,E){let C=E;for(;C;){if(C&&C.nodeType===8){if(C.data==="teleport start anchor")t.targetStart=C;else if(C.data==="teleport anchor"){t.targetAnchor=C,$._lpa=t.targetAnchor&&r(t.targetAnchor);break}}C=r(C)}}function g($,E){E.anchor=f(r($),E,i($),n,s,o,u)}const v=t.target=sr(t.props,l),S=Ps(t.props);if(v){const $=v._lpa||v.firstChild;t.shapeFlag&16&&(S?(g(e,t),h(v,$),t.targetAnchor||or(v,t,c,a,i(e)===v?e:null)):(t.anchor=r(e),h(v,$),t.targetAnchor||or(v,t,c,a),f($&&r($),t,v,n,s,o,u))),Ao(t,S)}else S&&t.shapeFlag&16&&(g(e,t),t.targetStart=e,t.targetAnchor=r(e));return t.anchor&&r(t.anchor)}const Ba=Na;function Ao(e,t){const n=e.ctx;if(n&&n.ut){let s,o;for(t?(s=e.el,o=e.anchor):(s=e.targetStart,o=e.targetAnchor);s&&s!==o;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function or(e,t,n,s,o=null){const u=t.targetStart=n(""),r=t.targetAnchor=n("");return u[Oa]=r,e&&(s(u,e,o),s(r,e,o)),r}const Xt=Symbol("_leaveCb"),ks=Symbol("_enterCb");function B0(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Kt(()=>{e.isMounted=!0}),po(()=>{e.isUnmounting=!0}),e}const Mt=[Function,Array],ja={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},Ha=e=>{const t=e.subTree;return t.component?Ha(t.component):t},j0={name:"BaseTransition",props:ja,setup(e,{slots:t}){const n=ho(),s=B0();return()=>{const o=t.default&&Va(t.default(),!0);if(!o||!o.length)return;const u=qa(o),r=je(e),{mode:i}=r;if(s.isLeaving)return Du(u);const l=yi(u);if(!l)return Du(u);let a=ur(l,r,s,n,f=>a=f);l.type!==gt&&Ws(l,a);let c=n.subTree&&yi(n.subTree);if(c&&c.type!==gt&&!Xn(c,l)&&Ha(n).type!==gt){let f=ur(c,r,s,n);if(Ws(c,f),i==="out-in"&&l.type!==gt)return s.isLeaving=!0,f.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete f.afterLeave,c=void 0},Du(u);i==="in-out"&&l.type!==gt?f.delayLeave=(h,g,v)=>{const S=Ua(s,c);S[String(c.key)]=c,h[Xt]=()=>{g(),h[Xt]=void 0,delete a.delayedLeave,c=void 0},a.delayedLeave=()=>{v(),delete a.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return u}}};function qa(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==gt){t=n;break}}return t}const H0=j0;function Ua(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function ur(e,t,n,s,o){const{appear:u,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:c,onEnterCancelled:f,onBeforeLeave:h,onLeave:g,onAfterLeave:v,onLeaveCancelled:S,onBeforeAppear:$,onAppear:E,onAfterAppear:C,onAppearCancelled:L}=t,D=String(e.key),F=Ua(n,e),A=(Z,K)=>{Z&&Wt(Z,s,9,K)},V=(Z,K)=>{const pe=K[1];A(Z,K),Ae(Z)?Z.every(H=>H.length<=1)&&pe():Z.length<=1&&pe()},G={mode:r,persisted:i,beforeEnter(Z){let K=l;if(!n.isMounted)if(u)K=$||l;else return;Z[Xt]&&Z[Xt](!0);const pe=F[D];pe&&Xn(e,pe)&&pe.el[Xt]&&pe.el[Xt](),A(K,[Z])},enter(Z){let K=a,pe=c,H=f;if(!n.isMounted)if(u)K=E||a,pe=C||c,H=L||f;else return;let le=!1;Z[ks]=J=>{le||(le=!0,J?A(H,[Z]):A(pe,[Z]),G.delayedLeave&&G.delayedLeave(),Z[ks]=void 0)};const be=Z[ks].bind(null,!1);K?V(K,[Z,be]):be()},leave(Z,K){const pe=String(e.key);if(Z[ks]&&Z[ks](!0),n.isUnmounting)return K();A(h,[Z]);let H=!1;Z[Xt]=be=>{H||(H=!0,K(),be?A(S,[Z]):A(v,[Z]),Z[Xt]=void 0,F[pe]===e&&delete F[pe])};const le=Z[Xt].bind(null,!1);F[pe]=e,g?V(g,[Z,le]):le()},clone(Z){const K=ur(Z,t,n,s,o);return o&&o(K),K}};return G}function Du(e){if(cu(e))return e=zn(e),e.children=null,e}function yi(e){if(!cu(e))return za(e.type)&&e.children?qa(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 Ws(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ws(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 Va(e,t=!1,n){let s=[],o=0;for(let u=0;u<e.length;u++){let r=e[u];const i=n==null?r.key:String(n)+String(r.key!=null?r.key:u);r.type===ce?(r.patchFlag&128&&o++,s=s.concat(Va(r.children,t,i))):(t||r.type!==gt)&&s.push(i!=null?zn(r,{key:i}):r)}if(o>1)for(let u=0;u<s.length;u++)s[u].patchFlag=-2;return s}function Qe(e,t){return Pe(e)?it({name:e.name},t,{setup:e}):e}function Wa(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function xi(e,t){let n;return!!((n=Object.getOwnPropertyDescriptor(e,t))&&!n.configurable)}const No=new WeakMap;function Ls(e,t,n,s,o=!1){if(Ae(e)){e.forEach((S,$)=>Ls(S,t&&(Ae(t)?t[$]:t),n,s,o));return}if(ds(s)&&!o){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&Ls(e,t,n,s.component.subTree);return}const u=s.shapeFlag&4?hu(s.component):s.el,r=o?null:u,{i,r:l}=e,a=t&&t.r,c=i.refs===Ke?i.refs={}:i.refs,f=i.setupState,h=je(f),g=f===Ke?ua:S=>xi(c,S)?!1:Ue(h,S),v=(S,$)=>!($&&xi(c,$));if(a!=null&&a!==l){if(ki(t),Xe(a))c[a]=null,g(a)&&(f[a]=null);else if(tt(a)){const S=t;v(a,S.k)&&(a.value=null),S.k&&(c[S.k]=null)}}if(Pe(l))fo(l,i,12,[r,c]);else{const S=Xe(l),$=tt(l);if(S||$){const E=()=>{if(e.f){const C=S?g(l)?f[l]:c[l]:v()||!e.k?l.value:c[e.k];if(o)Ae(C)&&Dr(C,u);else if(Ae(C))C.includes(u)||C.push(u);else if(S)c[l]=[u],g(l)&&(f[l]=c[l]);else{const L=[u];v(l,e.k)&&(l.value=L),e.k&&(c[e.k]=L)}}else S?(c[l]=r,g(l)&&(f[l]=r)):$&&(v(l,e.k)&&(l.value=r),e.k&&(c[e.k]=r))};if(r){const C=()=>{E(),No.delete(e)};C.id=-1,No.set(e,C),pt(C,n)}else ki(e),E()}}}function ki(e){const t=No.get(e);t&&(t.flags|=8,No.delete(e))}uu().requestIdleCallback;uu().cancelIdleCallback;const ds=e=>!!e.type.__asyncLoader,cu=e=>e.type.__isKeepAlive;function q0(e,t){Ka(e,"a",t)}function U0(e,t){Ka(e,"da",t)}function Ka(e,t,n=vt){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(du(t,s,n),n){let o=n.parent;for(;o&&o.parent;)cu(o.parent.vnode)&&V0(s,t,n,o),o=o.parent}}function V0(e,t,n,s){const o=du(t,e,s,!0);_s(()=>{Dr(s[t],o)},n)}function du(e,t,n=vt,s=!1){if(n){const o=n[e]||(n[e]=[]),u=t.__weh||(t.__weh=(...r)=>{_n();const i=mo(n),l=Wt(t,n,e,r);return i(),yn(),l});return s?o.unshift(u):o.push(u),u}}const wn=e=>(t,n=vt)=>{(!Ys||e==="sp")&&du(e,(...s)=>t(...s),n)},W0=wn("bm"),Kt=wn("m"),K0=wn("bu"),G0=wn("u"),po=wn("bum"),_s=wn("um"),Z0=wn("sp"),J0=wn("rtg"),Y0=wn("rtc");function X0(e,t=vt){du("ec",e,t)}const Hr="components",Q0="directives";function Ks(e,t){return qr(Hr,e,!0,t)||e}const Ga=Symbol.for("v-ndc");function Za(e){return Xe(e)?qr(Hr,e,!1)||e:e||Ga}function qn(e){return qr(Q0,e)}function qr(e,t,n=!0,s=!1){const o=ft||vt;if(o){const u=o.type;if(e===Hr){const i=Of(u,!1);if(i&&(i===t||i===Rt(t)||i===ou(Rt(t))))return u}const r=wi(o[e]||u[e],t)||wi(o.appContext[e],t);return!r&&s?u:r}}function wi(e,t){return e&&(e[t]||e[Rt(t)]||e[ou(Rt(t))])}function Ee(e,t,n,s){let o;const u=n,r=Ae(e);if(r||Xe(e)){const i=r&&vn(e);let l=!1,a=!1;i&&(l=!At(e),a=xn(e),e=ru(e)),o=new Array(e.length);for(let c=0,f=e.length;c<f;c++)o[c]=t(l?a?hs(Vt(e[c])):Vt(e[c]):e[c],c,void 0,u)}else if(typeof e=="number"){o=new Array(e);for(let i=0;i<e;i++)o[i]=t(i+1,i,void 0,u)}else if(Ve(e))if(e[Symbol.iterator])o=Array.from(e,(i,l)=>t(i,l,void 0,u));else{const i=Object.keys(e);o=new Array(i.length);for(let l=0,a=i.length;l<a;l++){const c=i[l];o[l]=t(e[c],c,l,u)}}else o=[];return o}function Gs(e,t,n={},s,o){if(ft.ce||ft.parent&&ds(ft.parent)&&ft.parent.ce){const a=Object.keys(n).length>0;return t!=="default"&&(n.name=t),_(),rt(ce,null,[Le("slot",n,s)],a?-2:64)}let u=e[t];u&&u._c&&(u._d=!1),_();const r=u&&Ja(u(n)),i=n.key||r&&r.key,l=rt(ce,{key:(i&&!Ut(i)?i:`_${t}`)+(!r&&s?"_fb":"")},r||[],r&&e._===1?64:-2);return l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),u&&u._c&&(u._d=!0),l}function Ja(e){return e.some(t=>Js(t)?!(t.type===gt||t.type===ce&&!Ja(t.children)):!0)?e:null}const rr=e=>e?vc(e)?hu(e):rr(e.parent):null,Rs=it(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=>rr(e.parent),$root:e=>rr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Xa(e),$forceUpdate:e=>e.f||(e.f=()=>{Br(e.update)}),$nextTick:e=>e.n||(e.n=Ye.bind(e.proxy)),$watch:e=>z0.bind(e)}),Fu=(e,t)=>e!==Ke&&!e.__isScriptSetup&&Ue(e,t),ef={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:o,props:u,accessCache:r,type:i,appContext:l}=e;if(t[0]!=="$"){const h=r[t];if(h!==void 0)switch(h){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return u[t]}else{if(Fu(s,t))return r[t]=1,s[t];if(o!==Ke&&Ue(o,t))return r[t]=2,o[t];if(Ue(u,t))return r[t]=3,u[t];if(n!==Ke&&Ue(n,t))return r[t]=4,n[t];ir&&(r[t]=0)}}const a=Rs[t];let c,f;if(a)return t==="$attrs"&&mt(e.attrs,"get",""),a(e);if((c=i.__cssModules)&&(c=c[t]))return c;if(n!==Ke&&Ue(n,t))return r[t]=4,n[t];if(f=l.config.globalProperties,Ue(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:u}=e;return Fu(o,t)?(o[t]=n,!0):s!==Ke&&Ue(s,t)?(s[t]=n,!0):Ue(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(u[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,props:u,type:r}},i){let l;return!!(n[i]||e!==Ke&&i[0]!=="$"&&Ue(e,i)||Fu(t,i)||Ue(u,i)||Ue(s,i)||Ue(Rs,i)||Ue(o.config.globalProperties,i)||(l=r.__cssModules)&&l[i])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ue(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function tf(){return nf().slots}function nf(e){const t=ho();return t.setupContext||(t.setupContext=_c(t))}function Ci(e){return Ae(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let ir=!0;function sf(e){const t=Xa(e),n=e.proxy,s=e.ctx;ir=!1,t.beforeCreate&&$i(t.beforeCreate,e,"bc");const{data:o,computed:u,methods:r,watch:i,provide:l,inject:a,created:c,beforeMount:f,mounted:h,beforeUpdate:g,updated:v,activated:S,deactivated:$,beforeDestroy:E,beforeUnmount:C,destroyed:L,unmounted:D,render:F,renderTracked:A,renderTriggered:V,errorCaptured:G,serverPrefetch:Z,expose:K,inheritAttrs:pe,components:H,directives:le,filters:be}=t;if(a&&of(a,s,null),r)for(const he in r){const W=r[he];Pe(W)&&(s[he]=W.bind(n))}if(o){const he=o.call(n,n);Ve(he)&&(e.data=co(he))}if(ir=!0,u)for(const he in u){const W=u[he],re=Pe(W)?W.bind(n,n):Pe(W.get)?W.get.bind(n,n):nn,ke=!Pe(W)&&Pe(W.set)?W.set.bind(n):nn,j=R({get:re,set:ke});Object.defineProperty(s,he,{enumerable:!0,configurable:!0,get:()=>j.value,set:ne=>j.value=ne})}if(i)for(const he in i)Ya(i[he],s,n,he);if(l){const he=Pe(l)?l.call(n):l;Reflect.ownKeys(he).forEach(W=>{Tn(W,he[W])})}c&&$i(c,e,"c");function de(he,W){Ae(W)?W.forEach(re=>he(re.bind(n))):W&&he(W.bind(n))}if(de(W0,f),de(Kt,h),de(K0,g),de(G0,v),de(q0,S),de(U0,$),de(X0,G),de(Y0,A),de(J0,V),de(po,C),de(_s,D),de(Z0,Z),Ae(K))if(K.length){const he=e.exposed||(e.exposed={});K.forEach(W=>{Object.defineProperty(he,W,{get:()=>n[W],set:re=>n[W]=re,enumerable:!0})})}else e.exposed||(e.exposed={});F&&e.render===nn&&(e.render=F),pe!=null&&(e.inheritAttrs=pe),H&&(e.components=H),le&&(e.directives=le),Z&&Wa(e)}function of(e,t,n=nn){Ae(e)&&(e=lr(e));for(const s in e){const o=e[s];let u;Ve(o)?"default"in o?u=Nt(o.from||s,o.default,!0):u=Nt(o.from||s):u=Nt(o),tt(u)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>u.value,set:r=>u.value=r}):t[s]=u}}function $i(e,t,n){Wt(Ae(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Ya(e,t,n,s){let o=s.includes(".")?Ra(n,s):()=>n[s];if(Xe(e)){const u=t[e];Pe(u)&&Ge(o,u)}else if(Pe(e))Ge(o,e.bind(n));else if(Ve(e))if(Ae(e))e.forEach(u=>Ya(u,t,n,s));else{const u=Pe(e.handler)?e.handler.bind(n):t[e.handler];Pe(u)&&Ge(o,u,e)}}function Xa(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:u,config:{optionMergeStrategies:r}}=e.appContext,i=u.get(t);let l;return i?l=i:!o.length&&!n&&!s?l=t:(l={},o.length&&o.forEach(a=>Bo(l,a,r,!0)),Bo(l,t,r)),Ve(t)&&u.set(t,l),l}function Bo(e,t,n,s=!1){const{mixins:o,extends:u}=t;u&&Bo(e,u,n,!0),o&&o.forEach(r=>Bo(e,r,n,!0));for(const r in t)if(!(s&&r==="expose")){const i=uf[r]||n&&n[r];e[r]=i?i(e[r],t[r]):t[r]}return e}const uf={data:Ti,props:Ei,emits:Ei,methods:As,computed:As,beforeCreate:_t,created:_t,beforeMount:_t,mounted:_t,beforeUpdate:_t,updated:_t,beforeDestroy:_t,beforeUnmount:_t,destroyed:_t,unmounted:_t,activated:_t,deactivated:_t,errorCaptured:_t,serverPrefetch:_t,components:As,directives:As,watch:lf,provide:Ti,inject:rf};function Ti(e,t){return t?e?function(){return it(Pe(e)?e.call(this,this):e,Pe(t)?t.call(this,this):t)}:t:e}function rf(e,t){return As(lr(e),lr(t))}function lr(e){if(Ae(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function _t(e,t){return e?[...new Set([].concat(e,t))]:t}function As(e,t){return e?it(Object.create(null),e,t):t}function Ei(e,t){return e?Ae(e)&&Ae(t)?[...new Set([...e,...t])]:it(Object.create(null),Ci(e),Ci(t??{})):t}function lf(e,t){if(!e)return t;if(!t)return e;const n=it(Object.create(null),e);for(const s in t)n[s]=_t(e[s],t[s]);return n}function Qa(){return{app:null,config:{isNativeTag:ua,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 af=0;function cf(e,t){return function(s,o=null){Pe(s)||(s=it({},s)),o!=null&&!Ve(o)&&(o=null);const u=Qa(),r=new WeakSet,i=[];let l=!1;const a=u.app={_uid:af++,_component:s,_props:o,_container:null,_context:u,_instance:null,version:Nf,get config(){return u.config},set config(c){},use(c,...f){return r.has(c)||(c&&Pe(c.install)?(r.add(c),c.install(a,...f)):Pe(c)&&(r.add(c),c(a,...f))),a},mixin(c){return u.mixins.includes(c)||u.mixins.push(c),a},component(c,f){return f?(u.components[c]=f,a):u.components[c]},directive(c,f){return f?(u.directives[c]=f,a):u.directives[c]},mount(c,f,h){if(!l){const g=a._ceVNode||Le(s,o);return g.appContext=u,h===!0?h="svg":h===!1&&(h=void 0),e(g,c,h),l=!0,a._container=c,c.__vue_app__=a,hu(g.component)}},onUnmount(c){i.push(c)},unmount(){l&&(Wt(i,a._instance,16),e(null,a._container),delete a._container.__vue_app__)},provide(c,f){return u.provides[c]=f,a},runWithContext(c){const f=es;es=a;try{return c()}finally{es=f}}};return a}}let es=null;const df=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Rt(t)}Modifiers`]||e[`${Hn(t)}Modifiers`];function ff(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||Ke;let o=n;const u=t.startsWith("update:"),r=u&&df(s,t.slice(7));r&&(r.trim&&(o=n.map(c=>Xe(c)?c.trim():c)),r.number&&(o=n.map(Fr)));let i,l=s[i=$u(t)]||s[i=$u(Rt(t))];!l&&u&&(l=s[i=$u(Hn(t))]),l&&Wt(l,e,6,o);const a=s[i+"Once"];if(a){if(!e.emitted)e.emitted={};else if(e.emitted[i])return;e.emitted[i]=!0,Wt(a,e,6,o)}}const pf=new WeakMap;function ec(e,t,n=!1){const s=n?pf:t.emitsCache,o=s.get(e);if(o!==void 0)return o;const u=e.emits;let r={},i=!1;if(!Pe(e)){const l=a=>{const c=ec(a,t,!0);c&&(i=!0,it(r,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!u&&!i?(Ve(e)&&s.set(e,null),null):(Ae(u)?u.forEach(l=>r[l]=null):it(r,u),Ve(e)&&s.set(e,r),r)}function fu(e,t){return!e||!tu(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ue(e,t[0].toLowerCase()+t.slice(1))||Ue(e,Hn(t))||Ue(e,t))}function Si(e){const{type:t,vnode:n,proxy:s,withProxy:o,propsOptions:[u],slots:r,attrs:i,emit:l,render:a,renderCache:c,props:f,data:h,setupState:g,ctx:v,inheritAttrs:S}=e,$=zo(e);let E,C;try{if(n.shapeFlag&4){const D=o||s,F=D;E=Qt(a.call(F,D,c,f,g,h,v)),C=i}else{const D=t;E=Qt(D.length>1?D(f,{attrs:i,slots:r,emit:l}):D(f,null)),C=t.props?i:hf(i)}}catch(D){Os.length=0,lu(D,e,1),E=Le(gt)}let L=E;if(C&&S!==!1){const D=Object.keys(C),{shapeFlag:F}=L;D.length&&F&7&&(u&&D.some(Ar)&&(C=mf(C,u)),L=zn(L,C,!1,!0))}return n.dirs&&(L=zn(L,null,!1,!0),L.dirs=L.dirs?L.dirs.concat(n.dirs):n.dirs),n.transition&&Ws(L,n.transition),E=L,zo($),E}const hf=e=>{let t;for(const n in e)(n==="class"||n==="style"||tu(n))&&((t||(t={}))[n]=e[n]);return t},mf=(e,t)=>{const n={};for(const s in e)(!Ar(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function gf(e,t,n){const{props:s,children:o,component:u}=e,{props:r,children:i,patchFlag:l}=t,a=u.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Ai(s,r,a):!!r;if(l&8){const c=t.dynamicProps;for(let f=0;f<c.length;f++){const h=c[f];if(tc(r,s,h)&&!fu(a,h))return!0}}}else return(o||i)&&(!i||!i.$stable)?!0:s===r?!1:s?r?Ai(s,r,a):!0:!!r;return!1}function Ai(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let o=0;o<s.length;o++){const u=s[o];if(tc(t,e,u)&&!fu(n,u))return!0}return!1}function tc(e,t,n){const s=e[n],o=t[n];return n==="style"&&Ve(s)&&Ve(o)?!Mr(s,o):s!==o}function vf({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const nc={},sc=()=>Object.create(nc),oc=e=>Object.getPrototypeOf(e)===nc;function bf(e,t,n,s=!1){const o={},u=sc();e.propsDefaults=Object.create(null),uc(e,t,o,u);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=s?o:v0(o):e.type.props?e.props=o:e.props=u,e.attrs=u}function _f(e,t,n,s){const{props:o,attrs:u,vnode:{patchFlag:r}}=e,i=je(o),[l]=e.propsOptions;let a=!1;if((s||r>0)&&!(r&16)){if(r&8){const c=e.vnode.dynamicProps;for(let f=0;f<c.length;f++){let h=c[f];if(fu(e.emitsOptions,h))continue;const g=t[h];if(l)if(Ue(u,h))g!==u[h]&&(u[h]=g,a=!0);else{const v=Rt(h);o[v]=ar(l,i,v,g,e,!1)}else g!==u[h]&&(u[h]=g,a=!0)}}}else{uc(e,t,o,u)&&(a=!0);let c;for(const f in i)(!t||!Ue(t,f)&&((c=Hn(f))===f||!Ue(t,c)))&&(l?n&&(n[f]!==void 0||n[c]!==void 0)&&(o[f]=ar(l,i,f,void 0,e,!0)):delete o[f]);if(u!==i)for(const f in u)(!t||!Ue(t,f))&&(delete u[f],a=!0)}a&&hn(e.attrs,"set","")}function uc(e,t,n,s){const[o,u]=e.propsOptions;let r=!1,i;if(t)for(let l in t){if(Fs(l))continue;const a=t[l];let c;o&&Ue(o,c=Rt(l))?!u||!u.includes(c)?n[c]=a:(i||(i={}))[c]=a:fu(e.emitsOptions,l)||(!(l in s)||a!==s[l])&&(s[l]=a,r=!0)}if(u){const l=je(n),a=i||Ke;for(let c=0;c<u.length;c++){const f=u[c];n[f]=ar(o,l,f,a[f],e,!Ue(a,f))}}return r}function ar(e,t,n,s,o,u){const r=e[n];if(r!=null){const i=Ue(r,"default");if(i&&s===void 0){const l=r.default;if(r.type!==Function&&!r.skipFactory&&Pe(l)){const{propsDefaults:a}=o;if(n in a)s=a[n];else{const c=mo(o);s=a[n]=l.call(null,t),c()}}else s=l;o.ce&&o.ce._setProp(n,s)}r[0]&&(u&&!i?s=!1:r[1]&&(s===""||s===Hn(n))&&(s=!0))}return s}const yf=new WeakMap;function rc(e,t,n=!1){const s=n?yf:t.propsCache,o=s.get(e);if(o)return o;const u=e.props,r={},i=[];let l=!1;if(!Pe(e)){const c=f=>{l=!0;const[h,g]=rc(f,t,!0);it(r,h),g&&i.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!u&&!l)return Ve(e)&&s.set(e,ls),ls;if(Ae(u))for(let c=0;c<u.length;c++){const f=Rt(u[c]);Di(f)&&(r[f]=Ke)}else if(u)for(const c in u){const f=Rt(c);if(Di(f)){const h=u[c],g=r[f]=Ae(h)||Pe(h)?{type:h}:it({},h),v=g.type;let S=!1,$=!0;if(Ae(v))for(let E=0;E<v.length;++E){const C=v[E],L=Pe(C)&&C.name;if(L==="Boolean"){S=!0;break}else L==="String"&&($=!1)}else S=Pe(v)&&v.name==="Boolean";g[0]=S,g[1]=$,(S||Ue(g,"default"))&&i.push(f)}}const a=[r,i];return Ve(e)&&s.set(e,a),a}function Di(e){return e[0]!=="$"&&!Fs(e)}const Ur=e=>e==="_"||e==="_ctx"||e==="$stable",Vr=e=>Ae(e)?e.map(Qt):[Qt(e)],xf=(e,t,n)=>{if(t._n)return t;const s=nt((...o)=>Vr(t(...o)),n);return s._c=!1,s},ic=(e,t,n)=>{const s=e._ctx;for(const o in e){if(Ur(o))continue;const u=e[o];if(Pe(u))t[o]=xf(o,u,s);else if(u!=null){const r=Vr(u);t[o]=()=>r}}},lc=(e,t)=>{const n=Vr(t);e.slots.default=()=>n},ac=(e,t,n)=>{for(const s in t)(n||!Ur(s))&&(e[s]=t[s])},kf=(e,t,n)=>{const s=e.slots=sc();if(e.vnode.shapeFlag&32){const o=t._;o?(ac(s,t,n),n&&ca(s,"_",o,!0)):ic(t,s)}else t&&lc(e,t)},wf=(e,t,n)=>{const{vnode:s,slots:o}=e;let u=!0,r=Ke;if(s.shapeFlag&32){const i=t._;i?n&&i===1?u=!1:ac(o,t,n):(u=!t.$stable,ic(t,o)),r=t}else t&&(lc(e,t),r={default:1});if(u)for(const i in o)!Ur(i)&&r[i]==null&&delete o[i]},pt=Sf;function Cf(e){return $f(e)}function $f(e,t){const n=uu();n.__VUE__=!0;const{insert:s,remove:o,patchProp:u,createElement:r,createText:i,createComment:l,setText:a,setElementText:c,parentNode:f,nextSibling:h,setScopeId:g=nn,insertStaticContent:v}=e,S=(b,p,m,y=null,P=null,O=null,oe=void 0,ee=null,ae=!!p.dynamicChildren)=>{if(b===p)return;b&&!Xn(b,p)&&(y=w(b),ne(b,P,O,!0),b=null),p.patchFlag===-2&&(ae=!1,p.dynamicChildren=null);const{type:te,ref:Te,shapeFlag:ve}=p;switch(te){case pu:$(b,p,m,y);break;case gt:E(b,p,m,y);break;case Do:b==null&&C(p,m,y,oe);break;case ce:H(b,p,m,y,P,O,oe,ee,ae);break;default:ve&1?F(b,p,m,y,P,O,oe,ee,ae):ve&6?le(b,p,m,y,P,O,oe,ee,ae):(ve&64||ve&128)&&te.process(b,p,m,y,P,O,oe,ee,ae,T)}Te!=null&&P?Ls(Te,b&&b.ref,O,p||b,!p):Te==null&&b&&b.ref!=null&&Ls(b.ref,null,O,b,!0)},$=(b,p,m,y)=>{if(b==null)s(p.el=i(p.children),m,y);else{const P=p.el=b.el;p.children!==b.children&&a(P,p.children)}},E=(b,p,m,y)=>{b==null?s(p.el=l(p.children||""),m,y):p.el=b.el},C=(b,p,m,y)=>{[b.el,b.anchor]=v(b.children,p,m,y,b.el,b.anchor)},L=({el:b,anchor:p},m,y)=>{let P;for(;b&&b!==p;)P=h(b),s(b,m,y),b=P;s(p,m,y)},D=({el:b,anchor:p})=>{let m;for(;b&&b!==p;)m=h(b),o(b),b=m;o(p)},F=(b,p,m,y,P,O,oe,ee,ae)=>{if(p.type==="svg"?oe="svg":p.type==="math"&&(oe="mathml"),b==null)A(p,m,y,P,O,oe,ee,ae);else{const te=b.el&&b.el._isVueCE?b.el:null;try{te&&te._beginPatch(),Z(b,p,P,O,oe,ee,ae)}finally{te&&te._endPatch()}}},A=(b,p,m,y,P,O,oe,ee)=>{let ae,te;const{props:Te,shapeFlag:ve,transition:we,dirs:De}=b;if(ae=b.el=r(b.type,O,Te&&Te.is,Te),ve&8?c(ae,b.children):ve&16&&G(b.children,ae,null,y,P,Mu(b,O),oe,ee),De&&Vn(b,null,y,"created"),V(ae,b,b.scopeId,oe,y),Te){for(const Ne in Te)Ne!=="value"&&!Fs(Ne)&&u(ae,Ne,null,Te[Ne],O,y);"value"in Te&&u(ae,"value",null,Te.value,O),(te=Te.onVnodeBeforeMount)&&Jt(te,y,b)}De&&Vn(b,null,y,"beforeMount");const Re=Tf(P,we);Re&&we.beforeEnter(ae),s(ae,p,m),((te=Te&&Te.onVnodeMounted)||Re||De)&&pt(()=>{te&&Jt(te,y,b),Re&&we.enter(ae),De&&Vn(b,null,y,"mounted")},P)},V=(b,p,m,y,P)=>{if(m&&g(b,m),y)for(let O=0;O<y.length;O++)g(b,y[O]);if(P){let O=P.subTree;if(p===O||fc(O.type)&&(O.ssContent===p||O.ssFallback===p)){const oe=P.vnode;V(b,oe,oe.scopeId,oe.slotScopeIds,P.parent)}}},G=(b,p,m,y,P,O,oe,ee,ae=0)=>{for(let te=ae;te<b.length;te++){const Te=b[te]=ee?pn(b[te]):Qt(b[te]);S(null,Te,p,m,y,P,O,oe,ee)}},Z=(b,p,m,y,P,O,oe)=>{const ee=p.el=b.el;let{patchFlag:ae,dynamicChildren:te,dirs:Te}=p;ae|=b.patchFlag&16;const ve=b.props||Ke,we=p.props||Ke;let De;if(m&&Wn(m,!1),(De=we.onVnodeBeforeUpdate)&&Jt(De,m,p,b),Te&&Vn(p,b,m,"beforeUpdate"),m&&Wn(m,!0),(ve.innerHTML&&we.innerHTML==null||ve.textContent&&we.textContent==null)&&c(ee,""),te?K(b.dynamicChildren,te,ee,m,y,Mu(p,P),O):oe||W(b,p,ee,null,m,y,Mu(p,P),O,!1),ae>0){if(ae&16)pe(ee,ve,we,m,P);else if(ae&2&&ve.class!==we.class&&u(ee,"class",null,we.class,P),ae&4&&u(ee,"style",ve.style,we.style,P),ae&8){const Re=p.dynamicProps;for(let Ne=0;Ne<Re.length;Ne++){const Oe=Re[Ne],lt=ve[Oe],ot=we[Oe];(ot!==lt||Oe==="value")&&u(ee,Oe,lt,ot,P,m)}}ae&1&&b.children!==p.children&&c(ee,p.children)}else!oe&&te==null&&pe(ee,ve,we,m,P);((De=we.onVnodeUpdated)||Te)&&pt(()=>{De&&Jt(De,m,p,b),Te&&Vn(p,b,m,"updated")},y)},K=(b,p,m,y,P,O,oe)=>{for(let ee=0;ee<p.length;ee++){const ae=b[ee],te=p[ee],Te=ae.el&&(ae.type===ce||!Xn(ae,te)||ae.shapeFlag&198)?f(ae.el):m;S(ae,te,Te,null,y,P,O,oe,!0)}},pe=(b,p,m,y,P)=>{if(p!==m){if(p!==Ke)for(const O in p)!Fs(O)&&!(O in m)&&u(b,O,p[O],null,P,y);for(const O in m){if(Fs(O))continue;const oe=m[O],ee=p[O];oe!==ee&&O!=="value"&&u(b,O,ee,oe,P,y)}"value"in m&&u(b,"value",p.value,m.value,P)}},H=(b,p,m,y,P,O,oe,ee,ae)=>{const te=p.el=b?b.el:i(""),Te=p.anchor=b?b.anchor:i("");let{patchFlag:ve,dynamicChildren:we,slotScopeIds:De}=p;De&&(ee=ee?ee.concat(De):De),b==null?(s(te,m,y),s(Te,m,y),G(p.children||[],m,Te,P,O,oe,ee,ae)):ve>0&&ve&64&&we&&b.dynamicChildren&&b.dynamicChildren.length===we.length?(K(b.dynamicChildren,we,m,P,O,oe,ee),(p.key!=null||P&&p===P.subTree)&&Wr(b,p,!0)):W(b,p,m,Te,P,O,oe,ee,ae)},le=(b,p,m,y,P,O,oe,ee,ae)=>{p.slotScopeIds=ee,b==null?p.shapeFlag&512?P.ctx.activate(p,m,y,oe,ae):be(p,m,y,P,O,oe,ae):J(b,p,ae)},be=(b,p,m,y,P,O,oe)=>{const ee=b.component=If(b,y,P);if(cu(b)&&(ee.ctx.renderer=T),Pf(ee,!1,oe),ee.asyncDep){if(P&&P.registerDep(ee,de,oe),!b.el){const ae=ee.subTree=Le(gt);E(null,ae,p,m),b.placeholder=ae.el}}else de(ee,b,p,m,P,O,oe)},J=(b,p,m)=>{const y=p.component=b.component;if(gf(b,p,m))if(y.asyncDep&&!y.asyncResolved){he(y,p,m);return}else y.next=p,y.update();else p.el=b.el,y.vnode=p},de=(b,p,m,y,P,O,oe)=>{const ee=()=>{if(b.isMounted){let{next:ve,bu:we,u:De,parent:Re,vnode:Ne}=b;{const kt=cc(b);if(kt){ve&&(ve.el=Ne.el,he(b,ve,oe)),kt.asyncDep.then(()=>{pt(()=>{b.isUnmounted||te()},P)});return}}let Oe=ve,lt;Wn(b,!1),ve?(ve.el=Ne.el,he(b,ve,oe)):ve=Ne,we&&So(we),(lt=ve.props&&ve.props.onVnodeBeforeUpdate)&&Jt(lt,Re,ve,Ne),Wn(b,!0);const ot=Si(b),xt=b.subTree;b.subTree=ot,S(xt,ot,f(xt.el),w(xt),b,P,O),ve.el=ot.el,Oe===null&&vf(b,ot.el),De&&pt(De,P),(lt=ve.props&&ve.props.onVnodeUpdated)&&pt(()=>Jt(lt,Re,ve,Ne),P)}else{let ve;const{el:we,props:De}=p,{bm:Re,m:Ne,parent:Oe,root:lt,type:ot}=b,xt=ds(p);Wn(b,!1),Re&&So(Re),!xt&&(ve=De&&De.onVnodeBeforeMount)&&Jt(ve,Oe,p),Wn(b,!0);{lt.ce&<.ce._hasShadowRoot()&<.ce._injectChildStyle(ot);const kt=b.subTree=Si(b);S(null,kt,m,y,b,P,O),p.el=kt.el}if(Ne&&pt(Ne,P),!xt&&(ve=De&&De.onVnodeMounted)){const kt=p;pt(()=>Jt(ve,Oe,kt),P)}(p.shapeFlag&256||Oe&&ds(Oe.vnode)&&Oe.vnode.shapeFlag&256)&&b.a&&pt(b.a,P),b.isMounted=!0,p=m=y=null}};b.scope.on();const ae=b.effect=new va(ee);b.scope.off();const te=b.update=ae.run.bind(ae),Te=b.job=ae.runIfDirty.bind(ae);Te.i=b,Te.id=b.uid,ae.scheduler=()=>Br(Te),Wn(b,!0),te()},he=(b,p,m)=>{p.component=b;const y=b.vnode.props;b.vnode=p,b.next=null,_f(b,p.props,y,m),wf(b,p.children,m),_n(),gi(b),yn()},W=(b,p,m,y,P,O,oe,ee,ae=!1)=>{const te=b&&b.children,Te=b?b.shapeFlag:0,ve=p.children,{patchFlag:we,shapeFlag:De}=p;if(we>0){if(we&128){ke(te,ve,m,y,P,O,oe,ee,ae);return}else if(we&256){re(te,ve,m,y,P,O,oe,ee,ae);return}}De&8?(Te&16&&x(te,P,O),ve!==te&&c(m,ve)):Te&16?De&16?ke(te,ve,m,y,P,O,oe,ee,ae):x(te,P,O,!0):(Te&8&&c(m,""),De&16&&G(ve,m,y,P,O,oe,ee,ae))},re=(b,p,m,y,P,O,oe,ee,ae)=>{b=b||ls,p=p||ls;const te=b.length,Te=p.length,ve=Math.min(te,Te);let we;for(we=0;we<ve;we++){const De=p[we]=ae?pn(p[we]):Qt(p[we]);S(b[we],De,m,null,P,O,oe,ee,ae)}te>Te?x(b,P,O,!0,!1,ve):G(p,m,y,P,O,oe,ee,ae,ve)},ke=(b,p,m,y,P,O,oe,ee,ae)=>{let te=0;const Te=p.length;let ve=b.length-1,we=Te-1;for(;te<=ve&&te<=we;){const De=b[te],Re=p[te]=ae?pn(p[te]):Qt(p[te]);if(Xn(De,Re))S(De,Re,m,null,P,O,oe,ee,ae);else break;te++}for(;te<=ve&&te<=we;){const De=b[ve],Re=p[we]=ae?pn(p[we]):Qt(p[we]);if(Xn(De,Re))S(De,Re,m,null,P,O,oe,ee,ae);else break;ve--,we--}if(te>ve){if(te<=we){const De=we+1,Re=De<Te?p[De].el:y;for(;te<=we;)S(null,p[te]=ae?pn(p[te]):Qt(p[te]),m,Re,P,O,oe,ee,ae),te++}}else if(te>we)for(;te<=ve;)ne(b[te],P,O,!0),te++;else{const De=te,Re=te,Ne=new Map;for(te=Re;te<=we;te++){const dt=p[te]=ae?pn(p[te]):Qt(p[te]);dt.key!=null&&Ne.set(dt.key,te)}let Oe,lt=0;const ot=we-Re+1;let xt=!1,kt=0;const Zt=new Array(ot);for(te=0;te<ot;te++)Zt[te]=0;for(te=De;te<=ve;te++){const dt=b[te];if(lt>=ot){ne(dt,P,O,!0);continue}let wt;if(dt.key!=null)wt=Ne.get(dt.key);else for(Oe=Re;Oe<=we;Oe++)if(Zt[Oe-Re]===0&&Xn(dt,p[Oe])){wt=Oe;break}wt===void 0?ne(dt,P,O,!0):(Zt[wt-Re]=te+1,wt>=kt?kt=wt:xt=!0,S(dt,p[wt],m,null,P,O,oe,ee,ae),lt++)}const Cn=xt?Ef(Zt):ls;for(Oe=Cn.length-1,te=ot-1;te>=0;te--){const dt=Re+te,wt=p[dt],U=p[dt+1],q=dt+1<Te?U.el||dc(U):y;Zt[te]===0?S(null,wt,m,q,P,O,oe,ee,ae):xt&&(Oe<0||te!==Cn[Oe]?j(wt,m,q,2):Oe--)}}},j=(b,p,m,y,P=null)=>{const{el:O,type:oe,transition:ee,children:ae,shapeFlag:te}=b;if(te&6){j(b.component.subTree,p,m,y);return}if(te&128){b.suspense.move(p,m,y);return}if(te&64){oe.move(b,p,m,T);return}if(oe===ce){s(O,p,m);for(let ve=0;ve<ae.length;ve++)j(ae[ve],p,m,y);s(b.anchor,p,m);return}if(oe===Do){L(b,p,m);return}if(y!==2&&te&1&&ee)if(y===0)ee.beforeEnter(O),s(O,p,m),pt(()=>ee.enter(O),P);else{const{leave:ve,delayLeave:we,afterLeave:De}=ee,Re=()=>{b.ctx.isUnmounted?o(O):s(O,p,m)},Ne=()=>{O._isLeaving&&O[Xt](!0),ve(O,()=>{Re(),De&&De()})};we?we(O,Re,Ne):Ne()}else s(O,p,m)},ne=(b,p,m,y=!1,P=!1)=>{const{type:O,props:oe,ref:ee,children:ae,dynamicChildren:te,shapeFlag:Te,patchFlag:ve,dirs:we,cacheIndex:De}=b;if(ve===-2&&(P=!1),ee!=null&&(_n(),Ls(ee,null,m,b,!0),yn()),De!=null&&(p.renderCache[De]=void 0),Te&256){p.ctx.deactivate(b);return}const Re=Te&1&&we,Ne=!ds(b);let Oe;if(Ne&&(Oe=oe&&oe.onVnodeBeforeUnmount)&&Jt(Oe,p,b),Te&6)_e(b.component,m,y);else{if(Te&128){b.suspense.unmount(m,y);return}Re&&Vn(b,null,p,"beforeUnmount"),Te&64?b.type.remove(b,p,m,T,y):te&&!te.hasOnce&&(O!==ce||ve>0&&ve&64)?x(te,p,m,!1,!0):(O===ce&&ve&384||!P&&Te&16)&&x(ae,p,m),y&&Q(b)}(Ne&&(Oe=oe&&oe.onVnodeUnmounted)||Re)&&pt(()=>{Oe&&Jt(Oe,p,b),Re&&Vn(b,null,p,"unmounted")},m)},Q=b=>{const{type:p,el:m,anchor:y,transition:P}=b;if(p===ce){fe(m,y);return}if(p===Do){D(b);return}const O=()=>{o(m),P&&!P.persisted&&P.afterLeave&&P.afterLeave()};if(b.shapeFlag&1&&P&&!P.persisted){const{leave:oe,delayLeave:ee}=P,ae=()=>oe(m,O);ee?ee(b.el,O,ae):ae()}else O()},fe=(b,p)=>{let m;for(;b!==p;)m=h(b),o(b),b=m;o(p)},_e=(b,p,m)=>{const{bum:y,scope:P,job:O,subTree:oe,um:ee,m:ae,a:te}=b;Fi(ae),Fi(te),y&&So(y),P.stop(),O&&(O.flags|=8,ne(oe,b,p,m)),ee&&pt(ee,p),pt(()=>{b.isUnmounted=!0},p)},x=(b,p,m,y=!1,P=!1,O=0)=>{for(let oe=O;oe<b.length;oe++)ne(b[oe],p,m,y,P)},w=b=>{if(b.shapeFlag&6)return w(b.component.subTree);if(b.shapeFlag&128)return b.suspense.next();const p=h(b.anchor||b.el),m=p&&p[Oa];return m?h(m):p};let z=!1;const N=(b,p,m)=>{let y;b==null?p._vnode&&(ne(p._vnode,null,null,!0),y=p._vnode.component):S(p._vnode||null,b,p,null,null,null,m),p._vnode=b,z||(z=!0,gi(y),Pa(),z=!1)},T={p:S,um:ne,m:j,r:Q,mt:be,mc:G,pc:W,pbc:K,n:w,o:e};return{render:N,hydrate:void 0,createApp:cf(N)}}function Mu({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 Wn({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Tf(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Wr(e,t,n=!1){const s=e.children,o=t.children;if(Ae(s)&&Ae(o))for(let u=0;u<s.length;u++){const r=s[u];let i=o[u];i.shapeFlag&1&&!i.dynamicChildren&&((i.patchFlag<=0||i.patchFlag===32)&&(i=o[u]=pn(o[u]),i.el=r.el),!n&&i.patchFlag!==-2&&Wr(r,i)),i.type===pu&&(i.patchFlag===-1&&(i=o[u]=pn(i)),i.el=r.el),i.type===gt&&!i.el&&(i.el=r.el)}}function Ef(e){const t=e.slice(),n=[0];let s,o,u,r,i;const l=e.length;for(s=0;s<l;s++){const a=e[s];if(a!==0){if(o=n[n.length-1],e[o]<a){t[s]=o,n.push(s);continue}for(u=0,r=n.length-1;u<r;)i=u+r>>1,e[n[i]]<a?u=i+1:r=i;a<e[n[u]]&&(u>0&&(t[s]=n[u-1]),n[u]=s)}}for(u=n.length,r=n[u-1];u-- >0;)n[u]=r,r=t[r];return n}function cc(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:cc(t)}function Fi(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function dc(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?dc(t.subTree):null}const fc=e=>e.__isSuspense;function Sf(e,t){t&&t.pendingBranch?Ae(e)?t.effects.push(...e):t.effects.push(e):D0(e)}const ce=Symbol.for("v-fgt"),pu=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),Do=Symbol.for("v-stc"),Os=[];let St=null;function _(e=!1){Os.push(St=e?null:[])}function Af(){Os.pop(),St=Os[Os.length-1]||null}let Zs=1;function jo(e,t=!1){Zs+=e,e<0&&St&&t&&(St.hasOnce=!0)}function pc(e){return e.dynamicChildren=Zs>0?St||ls:null,Af(),Zs>0&&St&&St.push(e),e}function k(e,t,n,s,o,u){return pc(d(e,t,n,s,o,u,!0))}function rt(e,t,n,s,o){return pc(Le(e,t,n,s,o,!0))}function Js(e){return e?e.__v_isVNode===!0:!1}function Xn(e,t){return e.type===t.type&&e.key===t.key}const hc=({key:e})=>e??null,Fo=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Xe(e)||tt(e)||Pe(e)?{i:ft,r:e,k:t,f:!!n}:e:null);function d(e,t=null,n=null,s=0,o=null,u=e===ce?0:1,r=!1,i=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&hc(t),ref:t&&Fo(t),scopeId:au,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:u,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:ft};return i?(Kr(l,n),u&128&&e.normalize(l)):n&&(l.shapeFlag|=Xe(n)?8:16),Zs>0&&!r&&St&&(l.patchFlag>0||u&6)&&l.patchFlag!==32&&St.push(l),l}const Le=Df;function Df(e,t=null,n=null,s=0,o=null,u=!1){if((!e||e===Ga)&&(e=gt),Js(e)){const i=zn(e,t,!0);return n&&Kr(i,n),Zs>0&&!u&&St&&(i.shapeFlag&6?St[St.indexOf(e)]=i:St.push(i)),i.patchFlag=-2,i}if(zf(e)&&(e=e.__vccOpts),t){t=mc(t);let{class:i,style:l}=t;i&&!Xe(i)&&(t.class=ue(i)),Ve(l)&&(iu(l)&&!Ae(l)&&(l=it({},l)),t.style=Se(l))}const r=Xe(e)?1:fc(e)?128:za(e)?64:Ve(e)?4:Pe(e)?2:0;return d(e,t,n,s,o,r,u,!0)}function mc(e){return e?iu(e)||oc(e)?it({},e):e:null}function zn(e,t,n=!1,s=!1){const{props:o,ref:u,patchFlag:r,children:i,transition:l}=e,a=t?Gr(o||{},t):o,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&hc(a),ref:t&&t.ref?n&&u?Ae(u)?u.concat(Fo(t)):[u,Fo(t)]:Fo(t):u,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!==ce?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&&zn(e.ssContent),ssFallback:e.ssFallback&&zn(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&s&&Ws(c,l.clone(c)),c}function xe(e=" ",t=0){return Le(pu,null,e,t)}function gc(e,t){const n=Le(Do,null,e);return n.staticCount=t,n}function se(e="",t=!1){return t?(_(),rt(gt,null,e)):Le(gt,null,e)}function Qt(e){return e==null||typeof e=="boolean"?Le(gt):Ae(e)?Le(ce,null,e.slice()):Js(e)?pn(e):Le(pu,null,String(e))}function pn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:zn(e)}function Kr(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(Ae(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),Kr(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!oc(t)?t._ctx=ft:o===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),s&64?(n=16,t=[xe(t)]):n=8);e.children=t,e.shapeFlag|=n}function Gr(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const o in s)if(o==="class")t.class!==s.class&&(t.class=ue([t.class,s.class]));else if(o==="style")t.style=Se([t.style,s.style]);else if(tu(o)){const u=t[o],r=s[o];r&&u!==r&&!(Ae(u)&&u.includes(r))&&(t[o]=u?[].concat(u,r):r)}else o!==""&&(t[o]=s[o])}return t}function Jt(e,t,n,s=null){Wt(e,t,7,[n,s])}const Ff=Qa();let Mf=0;function If(e,t,n){const s=e.type,o=(t?t.appContext:e.appContext)||Ff,u={uid:Mf++,vnode:e,type:s,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new ha(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:rc(s,o),emitsOptions:ec(s,o),emit:null,emitted:null,propsDefaults:Ke,inheritAttrs:s.inheritAttrs,ctx:Ke,data:Ke,props:Ke,attrs:Ke,slots:Ke,refs:Ke,setupState:Ke,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 u.ctx={_:u},u.root=t?t.root:u,u.emit=ff.bind(null,u),e.ce&&e.ce(u),u}let vt=null;const ho=()=>vt||ft;let Ho,cr;{const e=uu(),t=(n,s)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(s),u=>{o.length>1?o.forEach(r=>r(u)):o[0](u)}};Ho=t("__VUE_INSTANCE_SETTERS__",n=>vt=n),cr=t("__VUE_SSR_SETTERS__",n=>Ys=n)}const mo=e=>{const t=vt;return Ho(e),e.scope.on(),()=>{e.scope.off(),Ho(t)}},Mi=()=>{vt&&vt.scope.off(),Ho(null)};function vc(e){return e.vnode.shapeFlag&4}let Ys=!1;function Pf(e,t=!1,n=!1){t&&cr(t);const{props:s,children:o}=e.vnode,u=vc(e);bf(e,s,u,t),kf(e,o,n||t);const r=u?Lf(e,t):void 0;return t&&cr(!1),r}function Lf(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,ef);const{setup:s}=n;if(s){_n();const o=e.setupContext=s.length>1?_c(e):null,u=mo(e),r=fo(s,e,0,[e.props,o]),i=ia(r);if(yn(),u(),(i||e.sp)&&!ds(e)&&Wa(e),i){if(r.then(Mi,Mi),t)return r.then(l=>{Ii(e,l)}).catch(l=>{lu(l,e,0)});e.asyncDep=r}else Ii(e,r)}else bc(e)}function Ii(e,t,n){Pe(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ve(t)&&(e.setupState=Fa(t)),bc(e)}function bc(e,t,n){const s=e.type;e.render||(e.render=s.render||nn);{const o=mo(e);_n();try{sf(e)}finally{yn(),o()}}}const Rf={get(e,t){return mt(e,"get",""),e[t]}};function _c(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Rf),slots:e.slots,emit:e.emit,expose:t}}function hu(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Fa(Nr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Rs)return Rs[n](e)},has(t,n){return n in t||n in Rs}})):e.proxy}function Of(e,t=!0){return Pe(e)?e.displayName||e.name:e.name||t&&e.__name}function zf(e){return Pe(e)&&"__vccOpts"in e}const R=(e,t)=>$0(e,t,Ys);function Zr(e,t,n){try{jo(-1);const s=arguments.length;return s===2?Ve(t)&&!Ae(t)?Js(t)?Le(e,null,[t]):Le(e,t):Le(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Js(n)&&(n=[n]),Le(e,t,n))}finally{jo(1)}}const Nf="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 dr;const Pi=typeof window<"u"&&window.trustedTypes;if(Pi)try{dr=Pi.createPolicy("vue",{createHTML:e=>e})}catch{}const yc=dr?e=>dr.createHTML(e):e=>e,Bf="http://www.w3.org/2000/svg",jf="http://www.w3.org/1998/Math/MathML",fn=typeof document<"u"?document:null,Li=fn&&fn.createElement("template"),Hf={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t==="svg"?fn.createElementNS(Bf,e):t==="mathml"?fn.createElementNS(jf,e):n?fn.createElement(e,{is:n}):fn.createElement(e);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},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,s,o,u){const r=n?n.previousSibling:t.lastChild;if(o&&(o===u||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===u||!(o=o.nextSibling)););else{Li.innerHTML=yc(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const i=Li.content;if(s==="svg"||s==="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]}},$n="transition",ws="animation",Xs=Symbol("_vtc"),xc={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},qf=it({},ja,xc),Uf=e=>(e.displayName="Transition",e.props=qf,e),Pt=Uf((e,{slots:t})=>Zr(H0,Vf(e),t)),Kn=(e,t=[])=>{Ae(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ri=e=>e?Ae(e)?e.some(t=>t.length>1):e.length>1:!1;function Vf(e){const t={};for(const H in e)H in xc||(t[H]=e[H]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:u=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:i=`${n}-enter-to`,appearFromClass:l=u,appearActiveClass:a=r,appearToClass:c=i,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:h=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,v=Wf(o),S=v&&v[0],$=v&&v[1],{onBeforeEnter:E,onEnter:C,onEnterCancelled:L,onLeave:D,onLeaveCancelled:F,onBeforeAppear:A=E,onAppear:V=C,onAppearCancelled:G=L}=t,Z=(H,le,be,J)=>{H._enterCancelled=J,Gn(H,le?c:i),Gn(H,le?a:r),be&&be()},K=(H,le)=>{H._isLeaving=!1,Gn(H,f),Gn(H,g),Gn(H,h),le&&le()},pe=H=>(le,be)=>{const J=H?V:C,de=()=>Z(le,H,be);Kn(J,[le,de]),Oi(()=>{Gn(le,H?l:u),dn(le,H?c:i),Ri(J)||zi(le,s,S,de)})};return it(t,{onBeforeEnter(H){Kn(E,[H]),dn(H,u),dn(H,r)},onBeforeAppear(H){Kn(A,[H]),dn(H,l),dn(H,a)},onEnter:pe(!1),onAppear:pe(!0),onLeave(H,le){H._isLeaving=!0;const be=()=>K(H,le);dn(H,f),H._enterCancelled?(dn(H,h),ji(H)):(ji(H),dn(H,h)),Oi(()=>{H._isLeaving&&(Gn(H,f),dn(H,g),Ri(D)||zi(H,s,$,be))}),Kn(D,[H,be])},onEnterCancelled(H){Z(H,!1,void 0,!0),Kn(L,[H])},onAppearCancelled(H){Z(H,!0,void 0,!0),Kn(G,[H])},onLeaveCancelled(H){K(H),Kn(F,[H])}})}function Wf(e){if(e==null)return null;if(Ve(e))return[Iu(e.enter),Iu(e.leave)];{const t=Iu(e);return[t,t]}}function Iu(e){return Hd(e)}function dn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xs]||(e[Xs]=new Set)).add(t)}function Gn(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Xs];n&&(n.delete(t),n.size||(e[Xs]=void 0))}function Oi(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kf=0;function zi(e,t,n,s){const o=e._endId=++Kf,u=()=>{o===e._endId&&s()};if(n!=null)return setTimeout(u,n);const{type:r,timeout:i,propCount:l}=Gf(e,t);if(!r)return s();const a=r+"end";let c=0;const f=()=>{e.removeEventListener(a,h),u()},h=g=>{g.target===e&&++c>=l&&f()};setTimeout(()=>{c<l&&f()},i+1),e.addEventListener(a,h)}function Gf(e,t){const n=window.getComputedStyle(e),s=v=>(n[v]||"").split(", "),o=s(`${$n}Delay`),u=s(`${$n}Duration`),r=Ni(o,u),i=s(`${ws}Delay`),l=s(`${ws}Duration`),a=Ni(i,l);let c=null,f=0,h=0;t===$n?r>0&&(c=$n,f=r,h=u.length):t===ws?a>0&&(c=ws,f=a,h=l.length):(f=Math.max(r,a),c=f>0?r>a?$n:ws:null,h=c?c===$n?u.length:l.length:0);const g=c===$n&&/\b(?:transform|all)(?:,|$)/.test(s(`${$n}Property`).toString());return{type:c,timeout:f,propCount:h,hasTransform:g}}function Ni(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Bi(n)+Bi(e[s])))}function Bi(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function ji(e){return(e?e.ownerDocument:document).body.offsetHeight}function Zf(e,t,n){const s=e[Xs];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const qo=Symbol("_vod"),kc=Symbol("_vsh"),Jf={name:"show",beforeMount(e,{value:t},{transition:n}){e[qo]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Cs(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Cs(e,!0),s.enter(e)):s.leave(e,()=>{Cs(e,!1)}):Cs(e,t))},beforeUnmount(e,{value:t}){Cs(e,t)}};function Cs(e,t){e.style.display=t?e[qo]:"none",e[kc]=!t}const Yf=Symbol(""),Xf=/(?:^|;)\s*display\s*:/;function Qf(e,t,n){const s=e.style,o=Xe(n);let u=!1;if(n&&!o){if(t)if(Xe(t))for(const r of t.split(";")){const i=r.slice(0,r.indexOf(":")).trim();n[i]==null&&Mo(s,i,"")}else for(const r in t)n[r]==null&&Mo(s,r,"");for(const r in n)r==="display"&&(u=!0),Mo(s,r,n[r])}else if(o){if(t!==n){const r=s[Yf];r&&(n+=";"+r),s.cssText=n,u=Xf.test(n)}}else t&&e.removeAttribute("style");qo in e&&(e[qo]=u?s.display:"",e[kc]&&(s.display="none"))}const Hi=/\s*!important$/;function Mo(e,t,n){if(Ae(n))n.forEach(s=>Mo(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ep(e,t);Hi.test(n)?e.setProperty(Hn(s),n.replace(Hi,""),"important"):e[s]=n}}const qi=["Webkit","Moz","ms"],Pu={};function ep(e,t){const n=Pu[t];if(n)return n;let s=Rt(t);if(s!=="filter"&&s in e)return Pu[t]=s;s=ou(s);for(let o=0;o<qi.length;o++){const u=qi[o]+s;if(u in e)return Pu[t]=u}return t}const Ui="http://www.w3.org/1999/xlink";function Vi(e,t,n,s,o,u=Zd(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ui,t.slice(6,t.length)):e.setAttributeNS(Ui,t,n):n==null||u&&!da(n)?e.removeAttribute(t):e.setAttribute(t,u?"":Ut(n)?String(n):n)}function Wi(e,t,n,s,o){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?yc(n):n);return}const u=e.tagName;if(t==="value"&&u!=="PROGRESS"&&!u.includes("-")){const i=u==="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=da(n):n==null&&i==="string"?(n="",r=!0):i==="number"&&(n=0,r=!0)}try{e[t]=n}catch{}r&&e.removeAttribute(o||t)}function is(e,t,n,s){e.addEventListener(t,n,s)}function tp(e,t,n,s){e.removeEventListener(t,n,s)}const Ki=Symbol("_vei");function np(e,t,n,s,o=null){const u=e[Ki]||(e[Ki]={}),r=u[t];if(s&&r)r.value=s;else{const[i,l]=sp(t);if(s){const a=u[t]=rp(s,o);is(e,i,a,l)}else r&&(tp(e,i,r,l),u[t]=void 0)}}const Gi=/(?:Once|Passive|Capture)$/;function sp(e){let t;if(Gi.test(e)){t={};let s;for(;s=e.match(Gi);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Hn(e.slice(2)),t]}let Lu=0;const op=Promise.resolve(),up=()=>Lu||(op.then(()=>Lu=0),Lu=Date.now());function rp(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Wt(ip(s,n.value),t,5,[s])};return n.value=e,n.attached=up(),n}function ip(e,t){if(Ae(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const Zi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,lp=(e,t,n,s,o,u)=>{const r=o==="svg";t==="class"?Zf(e,s,r):t==="style"?Qf(e,n,s):tu(t)?Ar(t)||np(e,t,n,s,u):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):ap(e,t,s,r))?(Wi(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Vi(e,t,s,r,u,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Xe(s))?Wi(e,Rt(t),s,u,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Vi(e,t,s,r))};function ap(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Zi(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 o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Zi(t)&&Xe(n)?!1:t in e}const Ji=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ae(t)?n=>So(t,n):t};function cp(e){e.target.composing=!0}function Yi(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ru=Symbol("_assign");function Xi(e,t,n){return t&&(e=e.trim()),n&&(e=Fr(e)),e}const wc={created(e,{modifiers:{lazy:t,trim:n,number:s}},o){e[Ru]=Ji(o);const u=s||o.props&&o.props.type==="number";is(e,t?"change":"input",r=>{r.target.composing||e[Ru](Xi(e.value,n,u))}),(n||u)&&is(e,"change",()=>{e.value=Xi(e.value,n,u)}),t||(is(e,"compositionstart",cp),is(e,"compositionend",Yi),is(e,"change",Yi))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:o,number:u}},r){if(e[Ru]=Ji(r),e.composing)return;const i=(u||e.type==="number")&&!/^0\d/.test(e.value)?Fr(e.value):e.value,l=t??"";i!==l&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||o&&e.value.trim()===l)||(e.value=l))}},dp=["ctrl","shift","alt","meta"],fp={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)=>dp.some(n=>e[`${n}Key`]&&!t.includes(n))},bt=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=((o,...u)=>{for(let r=0;r<t.length;r++){const i=fp[t[r]];if(i&&i(o,t))return}return e(o,...u)}))},pp={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Uo=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=(o=>{if(!("key"in o))return;const u=Hn(o.key);if(t.some(r=>r===u||pp[r]===u))return e(o)}))},hp=it({patchProp:lp},Hf);let Qi;function mp(){return Qi||(Qi=Cf(hp))}const Cc=((...e)=>{const t=mp().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=vp(s);if(!o)return;const u=t._component;!Pe(u)&&!u.render&&!u.template&&(u.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,gp(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t});function gp(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function vp(e){return Xe(e)?document.querySelector(e):e}/*!
|
|
19
|
+
* pinia v2.3.1
|
|
20
|
+
* (c) 2025 Eduardo San Martin Morote
|
|
21
|
+
* @license MIT
|
|
22
|
+
*/let $c;const mu=e=>$c=e,Tc=Symbol();function fr(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var zs;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(zs||(zs={}));function bp(){const e=ma(!0),t=e.run(()=>ie({}));let n=[],s=[];const o=Nr({install(u){mu(o),o._a=u,u.provide(Tc,o),u.config.globalProperties.$pinia=o,s.forEach(r=>n.push(r)),s=[]},use(u){return this._a?n.push(u):s.push(u),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Ec=()=>{};function el(e,t,n,s=Ec){e.push(t);const o=()=>{const u=e.indexOf(t);u>-1&&(e.splice(u,1),s())};return!n&&ga()&&Yd(o),o}function os(e,...t){e.slice().forEach(n=>{n(...t)})}const _p=e=>e(),tl=Symbol(),Ou=Symbol();function pr(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],o=e[n];fr(o)&&fr(s)&&e.hasOwnProperty(n)&&!tt(s)&&!vn(s)?e[n]=pr(o,s):e[n]=s}return e}const yp=Symbol();function xp(e){return!fr(e)||!e.hasOwnProperty(yp)}const{assign:En}=Object;function kp(e){return!!(tt(e)&&e.effect)}function wp(e,t,n,s){const{state:o,actions:u,getters:r}=t,i=n.state.value[e];let l;function a(){i||(n.state.value[e]=o?o():{});const c=x0(n.state.value[e]);return En(c,u,Object.keys(r||{}).reduce((f,h)=>(f[h]=Nr(R(()=>{mu(n);const g=n._s.get(e);return r[h].call(g,g)})),f),{}))}return l=Sc(e,a,t,n,s,!0),l}function Sc(e,t,n={},s,o,u){let r;const i=En({actions:{}},n),l={deep:!0};let a,c,f=[],h=[],g;const v=s.state.value[e];!u&&!v&&(s.state.value[e]={});let S;function $(G){let Z;a=c=!1,typeof G=="function"?(G(s.state.value[e]),Z={type:zs.patchFunction,storeId:e,events:g}):(pr(s.state.value[e],G),Z={type:zs.patchObject,payload:G,storeId:e,events:g});const K=S=Symbol();Ye().then(()=>{S===K&&(a=!0)}),c=!0,os(f,Z,s.state.value[e])}const E=u?function(){const{state:Z}=n,K=Z?Z():{};this.$patch(pe=>{En(pe,K)})}:Ec;function C(){r.stop(),f=[],h=[],s._s.delete(e)}const L=(G,Z="")=>{if(tl in G)return G[Ou]=Z,G;const K=function(){mu(s);const pe=Array.from(arguments),H=[],le=[];function be(he){H.push(he)}function J(he){le.push(he)}os(h,{args:pe,name:K[Ou],store:F,after:be,onError:J});let de;try{de=G.apply(this&&this.$id===e?this:F,pe)}catch(he){throw os(le,he),he}return de instanceof Promise?de.then(he=>(os(H,he),he)).catch(he=>(os(le,he),Promise.reject(he))):(os(H,de),de)};return K[tl]=!0,K[Ou]=Z,K},D={_p:s,$id:e,$onAction:el.bind(null,h),$patch:$,$reset:E,$subscribe(G,Z={}){const K=el(f,G,Z.detached,()=>pe()),pe=r.run(()=>Ge(()=>s.state.value[e],H=>{(Z.flush==="sync"?c:a)&&G({storeId:e,type:zs.direct,events:g},H)},En({},l,Z)));return K},$dispose:C},F=co(D);s._s.set(e,F);const V=(s._a&&s._a.runWithContext||_p)(()=>s._e.run(()=>(r=ma()).run(()=>t({action:L}))));for(const G in V){const Z=V[G];if(tt(Z)&&!kp(Z)||vn(Z))u||(v&&xp(Z)&&(tt(Z)?Z.value=v[G]:pr(Z,v[G])),s.state.value[e][G]=Z);else if(typeof Z=="function"){const K=L(Z,G);V[G]=K,i.actions[G]=Z}}return En(F,V),En(je(F),V),Object.defineProperty(F,"$state",{get:()=>s.state.value[e],set:G=>{$(Z=>{En(Z,G)})}}),s._p.forEach(G=>{En(F,r.run(()=>G({store:F,app:s._a,pinia:s,options:i})))}),v&&u&&n.hydrate&&n.hydrate(F.$state,v),a=!0,c=!0,F}/*! #__NO_SIDE_EFFECTS__ */function Cp(e,t,n){let s,o;const u=typeof t=="function";s=e,o=u?n:t;function r(i,l){const a=P0();return i=i||(a?Nt(Tc,null):null),i&&mu(i),i=$c,i._s.has(s)||(u?Sc(s,t,o,i):wp(s,o,i)),i._s.get(s)}return r.$id=s,r}const $p=["top","right","bottom","left"],nl=["start","end"],sl=$p.reduce((e,t)=>e.concat(t,t+"-"+nl[0],t+"-"+nl[1]),[]),Qs=Math.min,Yn=Math.max,Tp={left:"right",right:"left",bottom:"top",top:"bottom"},Ep={start:"end",end:"start"};function hr(e,t,n){return Yn(e,Qs(t,n))}function ns(e,t){return typeof e=="function"?e(t):e}function un(e){return e.split("-")[0]}function Ht(e){return e.split("-")[1]}function Ac(e){return e==="x"?"y":"x"}function Jr(e){return e==="y"?"height":"width"}const Sp=new Set(["top","bottom"]);function gn(e){return Sp.has(un(e))?"y":"x"}function Yr(e){return Ac(gn(e))}function Dc(e,t,n){n===void 0&&(n=!1);const s=Ht(e),o=Yr(e),u=Jr(o);let r=o==="x"?s===(n?"end":"start")?"right":"left":s==="start"?"bottom":"top";return t.reference[u]>t.floating[u]&&(r=Wo(r)),[r,Wo(r)]}function Ap(e){const t=Wo(e);return[Vo(e),t,Vo(t)]}function Vo(e){return e.replace(/start|end/g,t=>Ep[t])}const ol=["left","right"],ul=["right","left"],Dp=["top","bottom"],Fp=["bottom","top"];function Mp(e,t,n){switch(e){case"top":case"bottom":return n?t?ul:ol:t?ol:ul;case"left":case"right":return t?Dp:Fp;default:return[]}}function Ip(e,t,n,s){const o=Ht(e);let u=Mp(un(e),n==="start",s);return o&&(u=u.map(r=>r+"-"+o),t&&(u=u.concat(u.map(Vo)))),u}function Wo(e){return e.replace(/left|right|bottom|top/g,t=>Tp[t])}function Pp(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fc(e){return typeof e!="number"?Pp(e):{top:e,right:e,bottom:e,left:e}}function Ns(e){const{x:t,y:n,width:s,height:o}=e;return{width:s,height:o,top:n,left:t,right:t+s,bottom:n+o,x:t,y:n}}function rl(e,t,n){let{reference:s,floating:o}=e;const u=gn(t),r=Yr(t),i=Jr(r),l=un(t),a=u==="y",c=s.x+s.width/2-o.width/2,f=s.y+s.height/2-o.height/2,h=s[i]/2-o[i]/2;let g;switch(l){case"top":g={x:c,y:s.y-o.height};break;case"bottom":g={x:c,y:s.y+s.height};break;case"right":g={x:s.x+s.width,y:f};break;case"left":g={x:s.x-o.width,y:f};break;default:g={x:s.x,y:s.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 Lp(e,t){var n;t===void 0&&(t={});const{x:s,y:o,platform:u,rects:r,elements:i,strategy:l}=e,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:h=!1,padding:g=0}=ns(t,e),v=Fc(g),$=i[h?f==="floating"?"reference":"floating":f],E=Ns(await u.getClippingRect({element:(n=await(u.isElement==null?void 0:u.isElement($)))==null||n?$:$.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(i.floating)),boundary:a,rootBoundary:c,strategy:l})),C=f==="floating"?{x:s,y:o,width:r.floating.width,height:r.floating.height}:r.reference,L=await(u.getOffsetParent==null?void 0:u.getOffsetParent(i.floating)),D=await(u.isElement==null?void 0:u.isElement(L))?await(u.getScale==null?void 0:u.getScale(L))||{x:1,y:1}:{x:1,y:1},F=Ns(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:i,rect:C,offsetParent:L,strategy:l}):C);return{top:(E.top-F.top+v.top)/D.y,bottom:(F.bottom-E.bottom+v.bottom)/D.y,left:(E.left-F.left+v.left)/D.x,right:(F.right-E.right+v.right)/D.x}}const Rp=async(e,t,n)=>{const{placement:s="bottom",strategy:o="absolute",middleware:u=[],platform:r}=n,i=u.filter(Boolean),l=await(r.isRTL==null?void 0:r.isRTL(t));let a=await r.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:f}=rl(a,s,l),h=s,g={},v=0;for(let $=0;$<i.length;$++){var S;const{name:E,fn:C}=i[$],{x:L,y:D,data:F,reset:A}=await C({x:c,y:f,initialPlacement:s,placement:h,strategy:o,middlewareData:g,rects:a,platform:{...r,detectOverflow:(S=r.detectOverflow)!=null?S:Lp},elements:{reference:e,floating:t}});c=L??c,f=D??f,g={...g,[E]:{...g[E],...F}},A&&v<=50&&(v++,typeof A=="object"&&(A.placement&&(h=A.placement),A.rects&&(a=A.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:o}):A.rects),{x:c,y:f}=rl(a,h,l)),$=-1)}return{x:c,y:f,placement:h,strategy:o,middlewareData:g}},Op=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:s,placement:o,rects:u,platform:r,elements:i,middlewareData:l}=t,{element:a,padding:c=0}=ns(e,t)||{};if(a==null)return{};const f=Fc(c),h={x:n,y:s},g=Yr(o),v=Jr(g),S=await r.getDimensions(a),$=g==="y",E=$?"top":"left",C=$?"bottom":"right",L=$?"clientHeight":"clientWidth",D=u.reference[v]+u.reference[g]-h[g]-u.floating[v],F=h[g]-u.reference[g],A=await(r.getOffsetParent==null?void 0:r.getOffsetParent(a));let V=A?A[L]:0;(!V||!await(r.isElement==null?void 0:r.isElement(A)))&&(V=i.floating[L]||u.floating[v]);const G=D/2-F/2,Z=V/2-S[v]/2-1,K=Qs(f[E],Z),pe=Qs(f[C],Z),H=K,le=V-S[v]-pe,be=V/2-S[v]/2+G,J=hr(H,be,le),de=!l.arrow&&Ht(o)!=null&&be!==J&&u.reference[v]/2-(be<H?K:pe)-S[v]/2<0,he=de?be<H?be-H:be-le:0;return{[g]:h[g]+he,data:{[g]:J,centerOffset:be-J-he,...de&&{alignmentOffset:he}},reset:de}}});function zp(e,t,n){return(e?[...n.filter(o=>Ht(o)===e),...n.filter(o=>Ht(o)!==e)]:n.filter(o=>un(o)===o)).filter(o=>e?Ht(o)===e||(t?Vo(o)!==o:!1):!0)}const Np=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,s,o;const{rects:u,middlewareData:r,placement:i,platform:l,elements:a}=t,{crossAxis:c=!1,alignment:f,allowedPlacements:h=sl,autoAlignment:g=!0,...v}=ns(e,t),S=f!==void 0||h===sl?zp(f||null,g,h):h,$=await l.detectOverflow(t,v),E=((n=r.autoPlacement)==null?void 0:n.index)||0,C=S[E];if(C==null)return{};const L=Dc(C,u,await(l.isRTL==null?void 0:l.isRTL(a.floating)));if(i!==C)return{reset:{placement:S[0]}};const D=[$[un(C)],$[L[0]],$[L[1]]],F=[...((s=r.autoPlacement)==null?void 0:s.overflows)||[],{placement:C,overflows:D}],A=S[E+1];if(A)return{data:{index:E+1,overflows:F},reset:{placement:A}};const V=F.map(K=>{const pe=Ht(K.placement);return[K.placement,pe&&c?K.overflows.slice(0,2).reduce((H,le)=>H+le,0):K.overflows[0],K.overflows]}).sort((K,pe)=>K[1]-pe[1]),Z=((o=V.filter(K=>K[2].slice(0,Ht(K[0])?2:3).every(pe=>pe<=0))[0])==null?void 0:o[0])||V[0][0];return Z!==i?{data:{index:E+1,overflows:F},reset:{placement:Z}}:{}}}},Bp=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,s;const{placement:o,middlewareData:u,rects:r,initialPlacement:i,platform:l,elements:a}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:S=!0,...$}=ns(e,t);if((n=u.arrow)!=null&&n.alignmentOffset)return{};const E=un(o),C=gn(i),L=un(i)===i,D=await(l.isRTL==null?void 0:l.isRTL(a.floating)),F=h||(L||!S?[Wo(i)]:Ap(i)),A=v!=="none";!h&&A&&F.push(...Ip(i,S,v,D));const V=[i,...F],G=await l.detectOverflow(t,$),Z=[];let K=((s=u.flip)==null?void 0:s.overflows)||[];if(c&&Z.push(G[E]),f){const be=Dc(o,r,D);Z.push(G[be[0]],G[be[1]])}if(K=[...K,{placement:o,overflows:Z}],!Z.every(be=>be<=0)){var pe,H;const be=(((pe=u.flip)==null?void 0:pe.index)||0)+1,J=V[be];if(J&&(!(f==="alignment"?C!==gn(J):!1)||K.every(W=>gn(W.placement)===C?W.overflows[0]>0:!0)))return{data:{index:be,overflows:K},reset:{placement:J}};let de=(H=K.filter(he=>he.overflows[0]<=0).sort((he,W)=>he.overflows[1]-W.overflows[1])[0])==null?void 0:H.placement;if(!de)switch(g){case"bestFit":{var le;const he=(le=K.filter(W=>{if(A){const re=gn(W.placement);return re===C||re==="y"}return!0}).map(W=>[W.placement,W.overflows.filter(re=>re>0).reduce((re,ke)=>re+ke,0)]).sort((W,re)=>W[1]-re[1])[0])==null?void 0:le[0];he&&(de=he);break}case"initialPlacement":de=i;break}if(o!==de)return{reset:{placement:de}}}return{}}}},jp=new Set(["left","top"]);async function Hp(e,t){const{placement:n,platform:s,elements:o}=e,u=await(s.isRTL==null?void 0:s.isRTL(o.floating)),r=un(n),i=Ht(n),l=gn(n)==="y",a=jp.has(r)?-1:1,c=u&&l?-1:1,f=ns(t,e);let{mainAxis:h,crossAxis:g,alignmentAxis:v}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return i&&typeof v=="number"&&(g=i==="end"?v*-1:v),l?{x:g*c,y:h*a}:{x:h*a,y:g*c}}const qp=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,s;const{x:o,y:u,placement:r,middlewareData:i}=t,l=await Hp(t,e);return r===((n=i.offset)==null?void 0:n.placement)&&(s=i.arrow)!=null&&s.alignmentOffset?{}:{x:o+l.x,y:u+l.y,data:{...l,placement:r}}}}},Up=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:s,placement:o,platform:u}=t,{mainAxis:r=!0,crossAxis:i=!1,limiter:l={fn:E=>{let{x:C,y:L}=E;return{x:C,y:L}}},...a}=ns(e,t),c={x:n,y:s},f=await u.detectOverflow(t,a),h=gn(un(o)),g=Ac(h);let v=c[g],S=c[h];if(r){const E=g==="y"?"top":"left",C=g==="y"?"bottom":"right",L=v+f[E],D=v-f[C];v=hr(L,v,D)}if(i){const E=h==="y"?"top":"left",C=h==="y"?"bottom":"right",L=S+f[E],D=S-f[C];S=hr(L,S,D)}const $=l.fn({...t,[g]:v,[h]:S});return{...$,data:{x:$.x-n,y:$.y-s,enabled:{[g]:r,[h]:i}}}}}},Vp=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,s;const{placement:o,rects:u,platform:r,elements:i}=t,{apply:l=()=>{},...a}=ns(e,t),c=await r.detectOverflow(t,a),f=un(o),h=Ht(o),g=gn(o)==="y",{width:v,height:S}=u.floating;let $,E;f==="top"||f==="bottom"?($=f,E=h===(await(r.isRTL==null?void 0:r.isRTL(i.floating))?"start":"end")?"left":"right"):(E=f,$=h==="end"?"top":"bottom");const C=S-c.top-c.bottom,L=v-c.left-c.right,D=Qs(S-c[$],C),F=Qs(v-c[E],L),A=!t.middlewareData.shift;let V=D,G=F;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(G=L),(s=t.middlewareData.shift)!=null&&s.enabled.y&&(V=C),A&&!h){const K=Yn(c.left,0),pe=Yn(c.right,0),H=Yn(c.top,0),le=Yn(c.bottom,0);g?G=v-2*(K!==0||pe!==0?K+pe:Yn(c.left,c.right)):V=S-2*(H!==0||le!==0?H+le:Yn(c.top,c.bottom))}await l({...t,availableWidth:G,availableHeight:V});const Z=await r.getDimensions(i.floating);return v!==Z.width||S!==Z.height?{reset:{rects:!0}}:{}}}};function Lt(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function sn(e){return Lt(e).getComputedStyle(e)}const il=Math.min,Bs=Math.max,Ko=Math.round;function Mc(e){const t=sn(e);let n=parseFloat(t.width),s=parseFloat(t.height);const o=e.offsetWidth,u=e.offsetHeight,r=Ko(n)!==o||Ko(s)!==u;return r&&(n=o,s=u),{width:n,height:s,fallback:r}}function Nn(e){return Pc(e)?(e.nodeName||"").toLowerCase():""}let wo;function Ic(){if(wo)return wo;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(wo=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),wo):navigator.userAgent}function on(e){return e instanceof Lt(e).HTMLElement}function Rn(e){return e instanceof Lt(e).Element}function Pc(e){return e instanceof Lt(e).Node}function ll(e){return typeof ShadowRoot>"u"?!1:e instanceof Lt(e).ShadowRoot||e instanceof ShadowRoot}function gu(e){const{overflow:t,overflowX:n,overflowY:s,display:o}=sn(e);return/auto|scroll|overlay|hidden|clip/.test(t+s+n)&&!["inline","contents"].includes(o)}function Wp(e){return["table","td","th"].includes(Nn(e))}function mr(e){const t=/firefox/i.test(Ic()),n=sn(e),s=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!s&&s!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((o=>n.willChange.includes(o)))||["paint","layout","strict","content"].some((o=>{const u=n.contain;return u!=null&&u.includes(o)}))}function Lc(){return!/^((?!chrome|android).)*safari/i.test(Ic())}function Xr(e){return["html","body","#document"].includes(Nn(e))}function Rc(e){return Rn(e)?e:e.contextElement}const Oc={x:1,y:1};function fs(e){const t=Rc(e);if(!on(t))return Oc;const n=t.getBoundingClientRect(),{width:s,height:o,fallback:u}=Mc(t);let r=(u?Ko(n.width):n.width)/s,i=(u?Ko(n.height):n.height)/o;return r&&Number.isFinite(r)||(r=1),i&&Number.isFinite(i)||(i=1),{x:r,y:i}}function eo(e,t,n,s){var o,u;t===void 0&&(t=!1),n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=Rc(e);let l=Oc;t&&(s?Rn(s)&&(l=fs(s)):l=fs(e));const a=i?Lt(i):window,c=!Lc()&&n;let f=(r.left+(c&&((o=a.visualViewport)==null?void 0:o.offsetLeft)||0))/l.x,h=(r.top+(c&&((u=a.visualViewport)==null?void 0:u.offsetTop)||0))/l.y,g=r.width/l.x,v=r.height/l.y;if(i){const S=Lt(i),$=s&&Rn(s)?Lt(s):s;let E=S.frameElement;for(;E&&s&&$!==S;){const C=fs(E),L=E.getBoundingClientRect(),D=getComputedStyle(E);L.x+=(E.clientLeft+parseFloat(D.paddingLeft))*C.x,L.y+=(E.clientTop+parseFloat(D.paddingTop))*C.y,f*=C.x,h*=C.y,g*=C.x,v*=C.y,f+=L.x,h+=L.y,E=Lt(E).frameElement}}return{width:g,height:v,top:h,right:f+g,bottom:h+v,left:f,x:f,y:h}}function On(e){return((Pc(e)?e.ownerDocument:e.document)||window.document).documentElement}function vu(e){return Rn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function zc(e){return eo(On(e)).left+vu(e).scrollLeft}function to(e){if(Nn(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ll(e)&&e.host||On(e);return ll(t)?t.host:t}function Nc(e){const t=to(e);return Xr(t)?t.ownerDocument.body:on(t)&&gu(t)?t:Nc(t)}function Go(e,t){var n;t===void 0&&(t=[]);const s=Nc(e),o=s===((n=e.ownerDocument)==null?void 0:n.body),u=Lt(s);return o?t.concat(u,u.visualViewport||[],gu(s)?s:[]):t.concat(s,Go(s))}function al(e,t,n){return t==="viewport"?Ns((function(s,o){const u=Lt(s),r=On(s),i=u.visualViewport;let l=r.clientWidth,a=r.clientHeight,c=0,f=0;if(i){l=i.width,a=i.height;const h=Lc();(h||!h&&o==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}return{width:l,height:a,x:c,y:f}})(e,n)):Rn(t)?Ns((function(s,o){const u=eo(s,!0,o==="fixed"),r=u.top+s.clientTop,i=u.left+s.clientLeft,l=on(s)?fs(s):{x:1,y:1};return{width:s.clientWidth*l.x,height:s.clientHeight*l.y,x:i*l.x,y:r*l.y}})(t,n)):Ns((function(s){const o=On(s),u=vu(s),r=s.ownerDocument.body,i=Bs(o.scrollWidth,o.clientWidth,r.scrollWidth,r.clientWidth),l=Bs(o.scrollHeight,o.clientHeight,r.scrollHeight,r.clientHeight);let a=-u.scrollLeft+zc(s);const c=-u.scrollTop;return sn(r).direction==="rtl"&&(a+=Bs(o.clientWidth,r.clientWidth)-i),{width:i,height:l,x:a,y:c}})(On(e)))}function cl(e){return on(e)&&sn(e).position!=="fixed"?e.offsetParent:null}function dl(e){const t=Lt(e);let n=cl(e);for(;n&&Wp(n)&&sn(n).position==="static";)n=cl(n);return n&&(Nn(n)==="html"||Nn(n)==="body"&&sn(n).position==="static"&&!mr(n))?t:n||(function(s){let o=to(s);for(;on(o)&&!Xr(o);){if(mr(o))return o;o=to(o)}return null})(e)||t}function Kp(e,t,n){const s=on(t),o=On(t),u=eo(e,!0,n==="fixed",t);let r={scrollLeft:0,scrollTop:0};const i={x:0,y:0};if(s||!s&&n!=="fixed")if((Nn(t)!=="body"||gu(o))&&(r=vu(t)),on(t)){const l=eo(t,!0);i.x=l.x+t.clientLeft,i.y=l.y+t.clientTop}else o&&(i.x=zc(o));return{x:u.left+r.scrollLeft-i.x,y:u.top+r.scrollTop-i.y,width:u.width,height:u.height}}const Gp={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:s,strategy:o}=e;const u=n==="clippingAncestors"?(function(a,c){const f=c.get(a);if(f)return f;let h=Go(a).filter(($=>Rn($)&&Nn($)!=="body")),g=null;const v=sn(a).position==="fixed";let S=v?to(a):a;for(;Rn(S)&&!Xr(S);){const $=sn(S),E=mr(S);(v?E||g:E||$.position!=="static"||!g||!["absolute","fixed"].includes(g.position))?g=$:h=h.filter((C=>C!==S)),S=to(S)}return c.set(a,h),h})(t,this._c):[].concat(n),r=[...u,s],i=r[0],l=r.reduce(((a,c)=>{const f=al(t,c,o);return a.top=Bs(f.top,a.top),a.right=il(f.right,a.right),a.bottom=il(f.bottom,a.bottom),a.left=Bs(f.left,a.left),a}),al(t,i,o));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:s}=e;const o=on(n),u=On(n);if(n===u)return t;let r={scrollLeft:0,scrollTop:0},i={x:1,y:1};const l={x:0,y:0};if((o||!o&&s!=="fixed")&&((Nn(n)!=="body"||gu(u))&&(r=vu(n)),on(n))){const a=eo(n);i=fs(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:Rn,getDimensions:function(e){return on(e)?Mc(e):e.getBoundingClientRect()},getOffsetParent:dl,getDocumentElement:On,getScale:fs,async getElementRects(e){let{reference:t,floating:n,strategy:s}=e;const o=this.getOffsetParent||dl,u=this.getDimensions;return{reference:Kp(t,await o(n),s),floating:{x:0,y:0,...await u(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>sn(e).direction==="rtl"},Zp=(e,t,n)=>{const s=new Map,o={platform:Gp,...n},u={...o.platform,_c:s};return Rp(e,t,{...o,platform:u})};function Bc(e,t){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(typeof t[n]=="object"&&e[n]?Bc(e[n],t[n]):e[n]=t[n])}const qt={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 no(e,t){let n=qt.themes[e]||{},s;do s=n[t],typeof s>"u"?n.$extend?n=qt.themes[n.$extend]||{}:(n=null,s=qt[t]):n=null;while(n);return s}function Jp(e){const t=[e];let n=qt.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=qt.themes[n.$extend]||{}):n=null;while(n);return t.map(s=>`v-popper--theme-${s}`)}function fl(e){const t=[e];let n=qt.themes[e]||{};do n.$extend?(t.push(n.$extend),n=qt.themes[n.$extend]||{}):n=null;while(n);return t}let ms=!1;if(typeof window<"u"){ms=!1;try{const e=Object.defineProperty({},"passive",{get(){ms=!0}});window.addEventListener("test",null,e)}catch{}}let jc=!1;typeof window<"u"&&typeof navigator<"u"&&(jc=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Hc=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),pl={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},hl={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function ml(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function zu(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Bt=[];let Zn=null;const gl={};function vl(e){let t=gl[e];return t||(t=gl[e]=[]),t}let gr=function(){};typeof window<"u"&&(gr=window.Element);function ze(e){return function(t){return no(t.theme,e)}}const Nu="__floating-vue__popper",qc=()=>Qe({name:"VPopper",provide(){return{[Nu]:{parentPopper:this}}},inject:{[Nu]:{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:ze("disabled")},positioningDisabled:{type:Boolean,default:ze("positioningDisabled")},placement:{type:String,default:ze("placement"),validator:e=>Hc.includes(e)},delay:{type:[String,Number,Object],default:ze("delay")},distance:{type:[Number,String],default:ze("distance")},skidding:{type:[Number,String],default:ze("skidding")},triggers:{type:Array,default:ze("triggers")},showTriggers:{type:[Array,Function],default:ze("showTriggers")},hideTriggers:{type:[Array,Function],default:ze("hideTriggers")},popperTriggers:{type:Array,default:ze("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ze("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ze("popperHideTriggers")},container:{type:[String,Object,gr,Boolean],default:ze("container")},boundary:{type:[String,gr],default:ze("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ze("strategy")},autoHide:{type:[Boolean,Function],default:ze("autoHide")},handleResize:{type:Boolean,default:ze("handleResize")},instantMove:{type:Boolean,default:ze("instantMove")},eagerMount:{type:Boolean,default:ze("eagerMount")},popperClass:{type:[String,Array,Object],default:ze("popperClass")},computeTransformOrigin:{type:Boolean,default:ze("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ze("autoMinSize")},autoSize:{type:[Boolean,String],default:ze("autoSize")},autoMaxSize:{type:Boolean,default:ze("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ze("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ze("preventOverflow")},overflowPadding:{type:[Number,String],default:ze("overflowPadding")},arrowPadding:{type:[Number,String],default:ze("arrowPadding")},arrowOverflow:{type:Boolean,default:ze("arrowOverflow")},flip:{type:Boolean,default:ze("flip")},shift:{type:Boolean,default:ze("shift")},shiftCrossAxis:{type:Boolean,default:ze("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ze("noAutoFocus")},disposeTimeout:{type:Number,default:ze("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[Nu])==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 s,o;(s=this.parentPopper)!=null&&s.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((o=this.parentPopper)==null?void 0:o.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(qp({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(Np({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(Up({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(Bp({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(Op({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:s,rects:o,middlewareData:u})=>{let r;const{centerOffset:i}=u.arrow;return s.startsWith("top")||s.startsWith("bottom")?r=Math.abs(i)>o.reference.width/2:r=Math.abs(i)>o.reference.height/2,{data:{overflow:r}}}}),this.autoMinSize||this.autoSize){const s=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:o,placement:u,middlewareData:r})=>{var i;if((i=r.autoSize)!=null&&i.skip)return{};let l,a;return u.startsWith("top")||u.startsWith("bottom")?l=o.reference.width:a=o.reference.height,this.$_innerNode.style[s==="min"?"minWidth":s==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[s==="min"?"minHeight":s==="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(Vp({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:s,availableHeight:o})=>{this.$_innerNode.style.maxWidth=s!=null?`${s}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await Zp(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),Zn&&this.instantMove&&Zn.instantMove&&Zn!==this.parentPopper){Zn.$_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&&(Zn=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 zu(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Go(this.$_referenceNode),...Go(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"),s=n.parentNode.getBoundingClientRect(),o=t.x+t.width/2-(s.left+n.offsetLeft),u=t.y+t.height/2-(s.top+n.offsetTop);this.result.transformOrigin=`${o}px ${u}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<Bt.length;n++)t=Bt[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Bt.push(this),document.body.classList.add("v-popper--some-open");for(const t of fl(this.theme))vl(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 zu(),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,ml(Bt,this),Bt.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of fl(this.theme)){const s=vl(n);ml(s,this),s.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Zn===this&&(Zn=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 zu(),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,pl,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],pl,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,hl,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],hl,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(s=>s.addEventListener(t,n,ms?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,s,o){let u=n;s!=null&&(u=typeof s=="function"?s(u):s),u.forEach(r=>{const i=t[r];i&&this.$_registerEventListeners(e,i,o)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:s,eventType:o,handler:u}=n;!e||e===o?s.forEach(r=>r.removeEventListener(o,u)):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 s=n.getAttribute(e);s&&(n.removeAttribute(e),n.setAttribute(t,s))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const s=e[n];s==null?t.removeAttribute(n):t.setAttribute(n,s)}},$_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(js>=e.left&&js<=e.right&&Hs>=e.top&&Hs<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=js-Sn,s=Hs-An,o=t.left+t.width/2-Sn+(t.top+t.height/2)-An+t.width+t.height,u=Sn+n*o,r=An+s*o;return Co(Sn,An,u,r,t.left,t.top,t.left,t.bottom)||Co(Sn,An,u,r,t.left,t.top,t.right,t.top)||Co(Sn,An,u,r,t.right,t.top,t.right,t.bottom)||Co(Sn,An,u,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(jc){const e=ms?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>bl(t,!0),e),document.addEventListener("touchend",t=>_l(t,!0),e)}else window.addEventListener("mousedown",e=>bl(e,!1),!0),window.addEventListener("click",e=>_l(e,!1),!0);window.addEventListener("resize",Xp)}function bl(e,t){if(qt.autoHideOnMousedown)Uc(e,t);else for(let n=0;n<Bt.length;n++){const s=Bt[n];try{s.mouseDownContains=s.popperNode().contains(e.target)}catch{}}}function _l(e,t){qt.autoHideOnMousedown||Uc(e,t)}function Uc(e,t){const n={};for(let s=Bt.length-1;s>=0;s--){const o=Bt[s];try{const u=o.containsGlobalTarget=o.mouseDownContains||o.popperNode().contains(e.target);o.pendingHide=!1,requestAnimationFrame(()=>{if(o.pendingHide=!1,!n[o.randomId]&&yl(o,u,e)){if(o.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&u){let i=o.parentPopper;for(;i;)n[i.randomId]=!0,i=i.parentPopper;return}let r=o.parentPopper;for(;r&&yl(r,r.containsGlobalTarget,e);)r.$_handleGlobalClose(e,t),r=r.parentPopper}})}catch{}}}function yl(e,t,n){return n.closeAllPopover||n.closePopover&&t||Yp(e,n)&&!t}function Yp(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function Xp(){for(let e=0;e<Bt.length;e++)Bt[e].$_computePosition()}let Sn=0,An=0,js=0,Hs=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Sn=js,An=Hs,js=e.clientX,Hs=e.clientY},ms?{passive:!0}:void 0);function Co(e,t,n,s,o,u,r,i){const l=((r-o)*(t-u)-(i-u)*(e-o))/((i-u)*(n-e)-(r-o)*(s-t)),a=((n-e)*(t-u)-(s-t)*(e-o))/((i-u)*(n-e)-(r-o)*(s-t));return l>=0&&l<=1&&a>=0&&a<=1}const Qp={extends:qc()},bu=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n};function eh(e,t,n,s,o,u){return _(),k("div",{ref:"reference",class:ue(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Gs(e.$slots,"default",Kd(mc(e.slotData)))],2)}const th=bu(Qp,[["render",eh]]);function nh(){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 s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var o=e.indexOf("Edge/");return o>0?parseInt(e.substring(o+5,e.indexOf(".",o)),10):-1}let Io;function vr(){vr.init||(vr.init=!0,Io=nh()!==-1)}var _u={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){vr(),Ye(()=>{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",Io&&this.$el.appendChild(e),e.data="about:blank",Io||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&&(!Io&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const sh=I0();F0("data-v-b329ee4c");const oh={class:"resize-observer",tabindex:"-1"};M0();const uh=sh((e,t,n,s,o,u)=>(_(),rt("div",oh)));_u.render=uh;_u.__scopeId="data-v-b329ee4c";_u.__file="src/components/ResizeObserver.vue";const Vc=(e="theme")=>({computed:{themeClass(){return Jp(this[e])}}}),rh=Qe({name:"VPopperContent",components:{ResizeObserver:_u},mixins:[Vc()],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}}}),ih=["id","aria-hidden","tabindex","data-popper-placement"],lh={ref:"inner",class:"v-popper__inner"},ah=d("div",{class:"v-popper__arrow-outer"},null,-1),ch=d("div",{class:"v-popper__arrow-inner"},null,-1),dh=[ah,ch];function fh(e,t,n,s,o,u){const r=Ks("ResizeObserver");return _(),k("div",{id:e.popperId,ref:"popover",class:ue(["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]=Uo(i=>e.autoHide&&e.$emit("hide"),["esc"]))},[d("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=i=>e.autoHide&&e.$emit("hide"))}),d("div",{class:"v-popper__wrapper",style:Se(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[d("div",lh,[e.mounted?(_(),k(ce,{key:0},[d("div",null,[Gs(e.$slots,"default")]),e.handleResize?(_(),rt(r,{key:0,onNotify:t[1]||(t[1]=i=>e.$emit("resize",i))})):se("",!0)],64)):se("",!0)],512),d("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)},dh,4)],4)],46,ih)}const Wc=bu(rh,[["render",fh]]),Kc={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 br=function(){};typeof window<"u"&&(br=window.Element);const ph=Qe({name:"VPopperWrapper",components:{Popper:th,PopperContent:Wc},mixins:[Kc,Vc("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,br,Boolean],default:void 0},boundary:{type:[String,br],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 hh(e,t,n,s,o,u){const r=Ks("PopperContent"),i=Ks("Popper");return _(),rt(i,Gr({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:nt(({popperId:l,isShown:a,shouldMountContent:c,skipTransition:f,autoHide:h,show:g,hide:v,handleResize:S,onResize:$,classes:E,result:C})=>[Gs(e.$slots,"default",{shown:a,show:g,hide:v}),Le(r,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:a,mounted:c,"skip-transition":f,"auto-hide":h,"handle-resize":S,classes:E,result:C,onHide:v,onResize:$},{default:nt(()=>[Gs(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 Qr=bu(ph,[["render",hh]]),mh={...Qr,name:"VDropdown",vPopperTheme:"dropdown"},gh={...Qr,name:"VMenu",vPopperTheme:"menu"},vh={...Qr,name:"VTooltip",vPopperTheme:"tooltip"},bh=Qe({name:"VTooltipDirective",components:{Popper:qc(),PopperContent:Wc},mixins:[Kc],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>no(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>no(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(s=>this.onResult(t,s)):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}}}),_h=["innerHTML"],yh=["textContent"];function xh(e,t,n,s,o,u){const r=Ks("PopperContent"),i=Ks("Popper");return _(),rt(i,Gr({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:nt(({popperId:l,isShown:a,shouldMountContent:c,skipTransition:f,autoHide:h,hide:g,handleResize:v,onResize:S,classes:$,result:E})=>[Le(r,{ref:"popperContent",class:ue({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:a,mounted:c,"skip-transition":f,"auto-hide":h,"handle-resize":v,classes:$,result:E,onHide:g,onResize:S},{default:nt(()=>[e.html?(_(),k("div",{key:0,innerHTML:e.finalContent},null,8,_h)):(_(),k("div",{key:1,textContent:M(e.finalContent)},null,8,yh))]),_: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 kh=bu(bh,[["render",xh]]),Gc="v-popper--has-tooltip";function wh(e,t){let n=e.placement;if(!n&&t)for(const s of Hc)t[s]&&(n=s);return n||(n=no(e.theme||"tooltip","placement")),n}function Zc(e,t,n){let s;const o=typeof t;return o==="string"?s={content:t}:t&&o==="object"?s=t:s={content:!1},s.placement=wh(s,n),s.targetNodes=()=>[e],s.referenceNode=()=>e,s}let Bu,so,Ch=0;function $h(){if(Bu)return;so=ie([]),Bu=Cc({name:"VTooltipDirectiveApp",setup(){return{directives:so}},render(){return this.directives.map(t=>Zr(kh,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Bu.mount(e)}function Th(e,t,n){$h();const s=ie(Zc(e,t,n)),o=ie(!1),u={id:Ch++,options:s,shown:o};return so.value.push(u),e.classList&&e.classList.add(Gc),e.$_popper={options:s,item:u,show(){o.value=!0},hide(){o.value=!1}}}function Jc(e){if(e.$_popper){const t=so.value.indexOf(e.$_popper.item);t!==-1&&so.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Gc)}function xl(e,{value:t,modifiers:n}){const s=Zc(e,t,n);if(!s.content||no(s.theme||"tooltip","disabled"))Jc(e);else{let o;e.$_popper?(o=e.$_popper,o.options.value=s):o=Th(e,t,n),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?o.show():o.hide())}}const Eh={beforeMount:xl,updated:xl,beforeUnmount(e){Jc(e)}};function kl(e){e.addEventListener("mousedown",Zo),e.addEventListener("click",Zo),e.addEventListener("touchstart",Yc,ms?{passive:!0}:!1)}function wl(e){e.removeEventListener("mousedown",Zo),e.removeEventListener("click",Zo),e.removeEventListener("touchstart",Yc),e.removeEventListener("touchend",Xc),e.removeEventListener("touchcancel",Qc)}function Zo(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Yc(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",Xc),t.addEventListener("touchcancel",Qc)}}function Xc(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const n=e.changedTouches[0],s=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-s.screenY)<20&&Math.abs(n.screenX-s.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Qc(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}const Sh={beforeMount(e,{value:t,modifiers:n}){e.$_closePopoverModifiers=n,(typeof t>"u"||t)&&kl(e)},updated(e,{value:t,oldValue:n,modifiers:s}){e.$_closePopoverModifiers=s,t!==n&&(typeof t>"u"||t?kl(e):wl(e))},beforeUnmount(e){wl(e)}};function Ah(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Bc(qt,t),e.directive("tooltip",Eh),e.directive("close-popper",Sh),e.component("VTooltip",vh),e.component("VDropdown",mh),e.component("VMenu",gh))}const Dh={version:"5.2.2",install:Ah,options:qt},Ft="";async function Fh(){const e=await fetch(`${Ft}/api/requests?summary=true`);if(!e.ok)throw new Error(`GET /api/requests?summary=true failed: ${e.status}`);return e.json()}async function Mh(e){const t=await fetch(`${Ft}/api/conversations/${encodeURIComponent(e)}`);if(!t.ok)throw new Error(`GET /api/conversations/${e} failed: ${t.status}`);return t.json()}async function Ih(e){const t=await fetch(`${Ft}/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 Ph(e){const t=await fetch(`${Ft}/api/conversations/${encodeURIComponent(e)}`,{method:"DELETE"});if(!t.ok)throw new Error(`DELETE conversation failed: ${t.status}`)}async function Lh(){const e=await fetch(`${Ft}/api/reset`,{method:"POST"});if(!e.ok)throw new Error(`POST /api/reset failed: ${e.status}`)}async function Rh(){const e=await fetch(`${Ft}/api/import/scan`,{method:"POST"});if(!e.ok){const t=await e.json().catch(()=>({}));throw new Error(t.error??`POST /api/import/scan failed: ${e.status}`)}return e.json()}async function Oh(e){let t;try{t=JSON.parse(e)}catch{throw new Error("Invalid JSON — paste a raw Anthropic or OpenAI request body")}const n=await fetch(`${Ft}/api/paste`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)});if(!n.ok){const s=await n.json().catch(()=>({}));throw new Error(s.error??`POST /api/paste failed: ${n.status}`)}return n.json()}function ed(e,t,n){const s=new URLSearchParams;t&&s.set("conversation",t),n&&n!=="standard"&&s.set("privacy",n);const o=s.toString();return`${Ft}/api/export/${e}${o?`?${o}`:""}`}const td="https://contextlens.io",zh=`${td}/api/upload`;async function Nh(e){const t=ed("lhar.json",e,"standard"),n=await fetch(t);if(!n.ok)throw new Error(`Export failed: ${n.status}`);const s=await n.blob(),o=new FormData;o.append("file",s,e?`session-${e}.lhar.json`:"export.lhar.json");const u=await fetch(zh,{method:"POST",body:o});if(!u.ok){const r=await u.json().catch(()=>({error:u.statusText}));throw new Error(r.error??`Upload failed: ${u.status}`)}return u.json()}async function Bh(e){const t=await fetch(`${td}/s/${e}`,{method:"DELETE"});if(!t.ok){const n=await t.json().catch(()=>({error:t.statusText}));throw new Error(n.error??`Delete failed: ${t.status}`)}}async function jh(){const e=await fetch(`${Ft}/api/tags`);if(!e.ok)throw new Error(`GET /api/tags failed: ${e.status}`);return e.json()}async function Hh(e,t){const n=await fetch(`${Ft}/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 qh(e,t){const n=await fetch(`${Ft}/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 Uh(e,t){const n=await fetch(`${Ft}/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 Vh(e,t){const n=await fetch(`${Ft}/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 Wh(e){var t;return((t=ut[e])==null?void 0:t.label)??e}function Kh(e,t="#475569"){var n;return((n=ut[e])==null?void 0:n.color)??t}const gs={system:["system_prompt","system_injections"],tools:["tool_definitions","tool_calls"],results:["tool_results"],conversation:["assistant_text","user_text","thinking"],other:["images","cache_markers","other"]},Et={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||"",s=e.contentBlocks;if(s&&Array.isArray(s)){const o=s.some(i=>i.type==="tool_use"),u=s.some(i=>i.type==="tool_result"),r=s.some(i=>i.type==="thinking");if(u)return"tool_results";if(o)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 yu(e){const t={};for(const n of e)if(n.contentBlocks)for(const s of n.contentBlocks)s.type==="tool_use"&&s.id&&s.name&&(t[s.id]=s.name);return t}function ju(e,t={}){const n=e.contentBlocks;if(n&&Array.isArray(n))for(const s of n){if(s.type==="tool_use")return(s.name||"tool")+"("+(s.input?JSON.stringify(s.input).slice(0,60):"")+")";if(s.type==="tool_result"){const u=s.tool_use_id?t[s.tool_use_id]:null,r=typeof s.content=="string"?s.content:JSON.stringify(s.content||""),i=u?u+": ":"";return i+r.slice(0,80-i.length)}const o=s;if(o.type==="thinking")return(o.thinking||o.text||"").slice(0,80);if(s.type==="text"||s.type==="input_text")return(s.text||"").slice(0,80)}return(e.content||"").slice(0,80)}function Gh(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 Hu(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 Zh=["tool_results","system_injections","tool_calls","thinking","assistant_text","user_text"];function nd(e){const t=new Map;for(let s=e.length-1;s>=0;s--){const o=e[s],u=It(o);t.has(u)||t.set(u,{items:[],tokens:0});const r=t.get(u);r.items.push({msg:o,origIdx:s}),r.tokens+=o.tokens||0}const n=[...Zh];for(const s of t.keys())n.includes(s)||n.push(s);return n.filter(s=>t.has(s)).map(s=>({category:s,...t.get(s)}))}function bn(e){if(e.length===0)return[];const t=new Map;for(const o of e){const u=o.agentKey||"_default";t.set(u,(t.get(u)||0)+1)}let n="_default",s=0;for(const[o,u]of t)u>s&&(n=o,s=u);return e.map(o=>({entry:o,isMain:(o.agentKey||"_default")===n}))}let Jh=1;function Yh(e,t){var l,a,c;const n=e.gen_ai.usage,s=e.usage_ext,o=e.context_lens,u=n.input_tokens>0||n.output_tokens>0||s.cache_read_tokens>0||s.cache_write_tokens>0||s.thinking_tokens>0,r=((l=e.raw)==null?void 0:l.request_body)??{},i=Xh(e.gen_ai.system);return{id:Jh++,timestamp:e.timestamp,contextInfo:{provider:i,apiFormat:e.http.api_format,model:e.gen_ai.request.model,systemTokens:o.system_tokens,toolsTokens:o.tools_tokens,messagesTokens:o.messages_tokens,totalTokens:n.input_tokens,systemPrompts:Qh(r),tools:e1(r),messages:t1(r)},response:((a=e.raw)==null?void 0:a.response_body)??{},contextLimit:o.window_size,source:e.source.tool,conversationId:e.trace_id,agentKey:e.parent_span_id?`${e.trace_id}:${e.source.agent_role}`:null,agentLabel:e.source.agent_role||"main",httpStatus:e.http.status_code,timings:e.timings,requestBytes:e.transfer.request_bytes,responseBytes:e.transfer.response_bytes,targetUrl:e.http.url,composition:o.composition??[],costUsd:s.cost_usd,healthScore:null,securityAlerts:(((c=o.security)==null?void 0:c.alerts)??[]).map(f=>({messageIndex:f.message_index,role:f.role,toolName:f.tool_name,severity:f.severity,pattern:f.pattern,match:f.match,offset:f.offset,length:f.length})),outputSecurityAlerts:[],usage:u?{inputTokens:n.input_tokens,outputTokens:n.output_tokens,cacheReadTokens:s.cache_read_tokens,cacheWriteTokens:s.cache_write_tokens,thinkingTokens:s.thinking_tokens}:null,responseModel:e.gen_ai.response.model,stopReason:e.gen_ai.response.finish_reasons[0]??null}}function Xh(e){return e==="anthropic"?"anthropic":e==="openai"?"openai":e==="google"?"gemini":e||"unknown"}function Qh(e){const t=e.system;return t?typeof t=="string"?[{content:t}]:Array.isArray(t)?t.filter(n=>typeof n=="object"&&n!==null&&n.type==="text").map(n=>({content:n.text})):[]:[]}function e1(e,t){const n=e.tools;return Array.isArray(n)?n:[]}function t1(e,t){const n=e.messages;return Array.isArray(n)?n.map(s=>({role:String(s.role??"user"),content:typeof s.content=="string"?s.content:JSON.stringify(s.content),contentBlocks:Array.isArray(s.content)?s.content:null,tokens:0})):[]}function Cl(e){const t=new Map;for(const n of e){const s=n.agentKey??`${n.conversationId}:main`;t.has(s)||t.set(s,{key:s,label:n.agentLabel,model:n.contextInfo.model,entries:[]}),t.get(s).entries.push(n)}return Array.from(t.values())}function n1(e,t){var u;const n=((u=t[0])==null?void 0:u.contextInfo.model)??e.model??"",s=e.tool||"unknown",o=new Date(e.started_at).toLocaleString();return`${s} · ${n} · ${o}`}async function s1(e){var l,a,c,f;const t=await fetch(e);if(!t.ok)throw new Error(`Failed to load shared session: ${t.status} ${t.statusText}`);const n=await t.json();if(!((l=n==null?void 0:n.lhar)!=null&&l.sessions)||!((a=n==null?void 0:n.lhar)!=null&&a.entries))throw new Error("Invalid LHAR format: missing sessions or entries");const{sessions:s,entries:o}=n.lhar,u=o.map((h,g)=>Yh(h)),r=[],i=[];for(const h of s){const g=u.filter(F=>F.conversationId===h.trace_id);if(g.length===0)continue;const v=Cl(g),S=n1(h,g),$=g.reduce((F,A)=>F+(A.costUsd??0),0),E=g[g.length-1],C=((c=E.usage)==null?void 0:c.inputTokens)??E.contextInfo.totalTokens,L={id:h.trace_id,label:S,source:h.tool,workingDirectory:null,firstSeen:h.started_at,sessionId:null,tags:[],agents:v,entries:g},D={id:h.trace_id,label:S,source:h.tool,workingDirectory:null,firstSeen:h.started_at,sessionId:null,tags:[],entryCount:g.length,latestTimestamp:E.timestamp,latestModel:E.contextInfo.model,latestTotalTokens:C,contextLimit:E.contextLimit,totalCost:$,healthScore:null,tokenHistory:g.map(F=>{var A;return((A=F.usage)==null?void 0:A.inputTokens)??F.contextInfo.totalTokens})};r.push(L),i.push(D)}if(r.length===0&&u.length>0){const h="shared",g=Cl(u),v=u.reduce(($,E)=>$+(E.costUsd??0),0),S=u[u.length-1];r.push({id:h,label:"Shared session",source:u[0].source,workingDirectory:null,firstSeen:u[0].timestamp,sessionId:null,tags:[],agents:g,entries:u}),i.push({id:h,label:"Shared session",source:u[0].source,workingDirectory:null,firstSeen:u[0].timestamp,sessionId:null,tags:[],entryCount:u.length,latestTimestamp:S.timestamp,latestModel:S.contextInfo.model,latestTotalTokens:((f=S.usage)==null?void 0:f.inputTokens)??S.contextInfo.totalTokens,contextLimit:S.contextLimit,totalCost:v,healthScore:null,tokenHistory:u.map($=>{var E;return((E=$.usage)==null?void 0:E.inputTokens)??$.contextInfo.totalTokens})})}return{conversations:r,summaries:i}}const $l="context-lens-density",Tt=Cp("session",()=>{const e=ie(!1),t=ie(0),n=ie([]),s=ie(new Map),o=ie(0),u=ie(!1),r=ie(null),i=ie(null),l=ie(!1),a=ie([]),c=ie(""),f=ie(!1),h=ie("dashboard"),g=ie("overview"),v=ie(null),S=ie("live"),$=ie(null),E=ie(""),C=ie(""),L=ie("comfortable"),D=ie(null),F=ie(0),A=ie(null),V=ie(null),G=ie(!1),Z=ie(null),K=ie(new Set),pe=ie(!1),H=ie("main"),le=ie("main"),be=ie("absolute"),J=ie(new Set),de=ie(!0),he=ie(!1),W=ie(new Set),re=new Map;function ke(B){const ge=new Set(W.value);ge.add(B),W.value=ge;const ye=re.get(B);ye&&clearTimeout(ye),re.set(B,setTimeout(()=>{re.delete(B);const Ie=new Set(W.value);Ie.delete(B),W.value=Ie},1500))}const j=new Map,ne=ie(null),Q=ie(0),fe=R(()=>n.value.map(B=>{const ge=s.value.get(B.id);return ge||{...B,agents:[],entries:[]}})),_e=R(()=>[]),x=R(()=>{let B=fe.value;return E.value&&(B=B.filter(ge=>ge.source===E.value)),C.value&&(B=B.filter(ge=>{const ye=s.value.get(ge.id);if(ye&&ye.entries.length>0)return ye.entries[0].contextInfo.model.includes(C.value);const Ie=n.value.find(We=>We.id===ge.id);return Ie==null?void 0:Ie.latestModel.includes(C.value)})),B}),w=R(()=>{let B=n.value;if(E.value&&(B=B.filter(ge=>ge.source===E.value)),c.value){const ge=c.value.toLowerCase();B=B.filter(ye=>{var Ie;return(Ie=ye.tags)==null?void 0:Ie.includes(ge)})}return B}),z=R(()=>{const B=new Set;for(const ge of n.value)ge.source&&B.add(ge.source);return Array.from(B).sort()}),N=R(()=>{const B=new Set;for(const ge of n.value)ge.latestModel&&B.add(ge.latestModel);return Array.from(B).sort()}),T=R(()=>v.value?s.value.get(v.value)??null:null),I=R(()=>{const B=T.value;if(!B||B.entries.length===0)return null;if(S.value==="live"){const Ie=[...bn([...B.entries].reverse())].reverse().find(We=>We.isMain);return(Ie==null?void 0:Ie.entry)??B.entries[0]}return B.entries.find(ye=>ye.id===$.value)??B.entries[0]}),b=R(()=>{let B=0;for(const ge of n.value)B+=ge.totalCost??0;return B}),p=R(()=>{let B=0;for(const ge of n.value)B+=ge.entryCount;return B+o.value});async function m(B){u.value=!0,i.value=null;try{const{conversations:ge,summaries:ye}=await s1(B);e.value=!0,n.value=ye;const Ie=new Map;for(const We of ge)Ie.set(We.id,We);s.value=Ie,ye.length>0&&(h.value="inspector",await oe(ye[0].id))}catch(ge){i.value=ge instanceof Error?ge.message:String(ge)}finally{u.value=!1}}async function y(){u.value=!0,i.value=null;try{const B=await Fh();t.value=B.revision,n.value=B.conversations,o.value=B.ungroupedCount;const ge=new Set(B.conversations.map(ye=>ye.id));for(const ye of s.value.keys())ge.has(ye)||s.value.delete(ye);!v.value&&B.conversations.length>0&&h.value==="inspector"&&await oe(B.conversations[0].id),v.value&&!ge.has(v.value)&&(v.value=null,S.value="live",$.value=null,h.value==="inspector"&&(h.value="dashboard")),v.value&&ge.has(v.value)&&await P(v.value)}catch(B){i.value=B instanceof Error?B.message:String(B)}finally{u.value=!1}}async function P(B){r.value=B;try{const ge=await Mh(B),ye=new Map(s.value);ye.set(B,ge),s.value=ye}catch(ge){console.warn(`Failed to load conversation ${B}:`,ge)}finally{r.value=null}}function O(B){if(B.type==="connected"){l.value=!0,B.revision!==t.value&&y();return}B.conversationId&&ke(B.conversationId),y(),B.type==="tags-updated"&&X(),B.conversationId&&v.value===B.conversationId&&P(B.conversationId)}async function oe(B){v.value=B,S.value="live",$.value=null,s.value.has(B)||await P(B)}function ee(){S.value="live",$.value=null}function ae(B){S.value="pinned",$.value=B}function te(B){h.value=B}function Te(B){g.value=B}function ve(B){E.value=B}function we(B){C.value=B}function De(B,ge=!1){D.value=B,A.value=null,V.value=null,Z.value=null,G.value=ge,F.value+=1}function Re(B,ge){D.value=B,A.value=ge,V.value=null,Z.value=null,F.value+=1}function Ne(B){D.value=null,A.value=null,V.value=B,Z.value=null,F.value+=1}function Oe(B){D.value="tool_results",A.value=null,V.value=null,Z.value=B,F.value+=1}function lt(B){const ge=new Set(K.value);ge.has(B)?ge.delete(B):ge.add(B),K.value=ge}async function ot(B){const ge=B??K.value;if(ge.size<2)return;K.value=new Set(ge),pe.value=!0,h.value="compare";const ye=[];for(const Ie of ge)s.value.has(Ie)||ye.push(P(Ie));await Promise.all(ye)}function xt(B="dashboard"){pe.value=!1,K.value=new Set,h.value=B}function kt(){D.value=null,A.value=null,V.value=null,G.value=!1,Z.value=null}async function Zt(B){if(j.has(B))return j.get(B);ne.value=B;try{const ge=await Ih(B);if(ge&&(j.set(B,ge),Q.value++,j.size>50)){const ye=j.keys().next().value;ye!==void 0&&j.delete(ye)}return ge}catch{return null}finally{ne.value=null}}function Cn(B){return j.get(B)??null}async function dt(B){try{await Ph(B),n.value=n.value.filter(ge=>ge.id!==B),s.value.delete(B),v.value===B&&(n.value.length>0?await oe(n.value[0].id):(v.value=null,S.value="live",$.value=null))}catch(ge){i.value=ge instanceof Error?ge.message:String(ge)}}async function wt(){try{await Lh(),n.value=[],s.value=new Map,o.value=0,v.value=null,S.value="live",$.value=null,t.value=0}catch(B){i.value=B instanceof Error?B.message:String(B)}}function U(B){typeof document>"u"||document.documentElement.setAttribute("data-density",B)}function q(){if(typeof window>"u")return;const B=window.localStorage.getItem($l);B==="comfortable"||B==="compact"?L.value=B:L.value="comfortable",U(L.value)}function me(B){L.value=B,typeof window<"u"&&window.localStorage.setItem($l,B),U(B)}async function X(){f.value=!0;try{const B=await jh();a.value=B.tags}catch(B){console.warn("Failed to load tags:",B)}finally{f.value=!1}}function $e(B){c.value=B}function Me(){c.value=""}async function Fe(B,ge){try{const ye=await Hh(B,ge),Ie=n.value.find(an=>an.id===B);Ie&&(Ie.tags=ye);const We=s.value.get(B);We&&(We.tags=ye),await X()}catch(ye){i.value=ye instanceof Error?ye.message:String(ye)}}async function et(B,ge){try{const ye=await qh(B,ge),Ie=n.value.find(an=>an.id===B);Ie&&(Ie.tags=ye);const We=s.value.get(B);We&&(We.tags=ye),await X()}catch(ye){i.value=ye instanceof Error?ye.message:String(ye)}}async function zt(B,ge){try{const ye=await Uh(B,ge),Ie=n.value.find(an=>an.id===B);Ie&&(Ie.tags=ye);const We=s.value.get(B);We&&(We.tags=ye),await X()}catch(ye){i.value=ye instanceof Error?ye.message:String(ye)}}async function Un(B,ge){try{const ye=await Vh(B,ge),Ie=s.value.get(B);Ie&&(Ie.prunedMessages=ye)}catch(ye){i.value=ye instanceof Error?ye.message:String(ye)}}function Be(B){return`tag-color-${B%8}`}return{revision:t,summaries:n,loadedConversations:s,conversations:fe,ungrouped:_e,loading:u,loadingSession:r,error:i,connected:l,view:h,inspectorTab:g,selectedSessionId:v,selectionMode:S,selectedEntryId:$,sourceFilter:E,modelFilter:C,density:L,messageFocusCategory:D,messageFocusToken:F,messageFocusTool:A,messageFocusIndex:V,messageFocusOpenDetail:G,messageFocusFile:Z,messagesMode:H,timelineMode:le,timelineStackMode:be,timelineHiddenLegendKeys:J,timelineShowLimitOverlay:de,timelineShowCacheOverlay:he,recentlyUpdated:W,compareSessionIds:K,compareMode:pe,allTags:a,tagFilter:c,loadingTags:f,filteredConversations:x,filteredSummaries:w,sources:z,models:N,selectedSession:T,selectedEntry:I,totalCost:b,totalRequests:p,isSharedMode:e,loadShared:m,load:y,loadConversationEntries:P,handleSSEEvent:O,selectSession:oe,followLive:ee,pinEntry:ae,setView:te,setInspectorTab:Te,setSourceFilter:ve,setModelFilter:we,focusMessageCategory:De,focusMessageTool:Re,focusMessageByIndex:Ne,focusMessageFile:Oe,clearMessageFocus:kt,toggleCompareSession:lt,enterCompare:ot,exitCompare:xt,loadEntryDetail:Zt,getEntryDetail:Cn,entryDetailLoading:ne,entryDetailVersion:Q,initializeDensity:q,setDensity:me,deleteSession:dt,reset:wt,loadTags:X,setTagFilter:$e,clearTagFilter:Me,updateSessionTags:Fe,addTagToSession:et,removeTagFromSession:zt,pruneMessage:Un,getTagColorClass:Be}});function o1(e,t,n){const s=ie(!1);let o=null,u=null;function r(){o&&o.close(),o=new EventSource(e),o.onopen=()=>{s.value=!0},o.onmessage=l=>{try{const a=JSON.parse(l.data);t(a)}catch{}},o.onerror=()=>{s.value=!1,o==null||o.close(),o=null,u&&clearTimeout(u),u=setTimeout(r,2e3)}}function i(){u&&(clearTimeout(u),u=null),o&&(o.close(),o=null),s.value=!1}return n!=null&&n.disabled||r(),_s(i),{connected:s,disconnect:i,reconnect:r}}const sd="context-lens-analytics-consent",u1="https://contextlens.goatcounter.com/count",r1="https://gc.zgo.at/count.js";let Bn=!1,Jo=!1,ts=[];function od(){try{const e=window.localStorage.getItem(sd);return e==="granted"||e==="denied"?e:null}catch{return null}}function Tl(e){try{window.localStorage.setItem(sd,e)}catch{}Bn=e==="granted",Bn&&ud()}function ud(){if(!Jo){Jo=!0;try{window.goatcounter={no_onload:!0};const e=document.createElement("script");e.async=!0,e.src=r1,e.dataset.goatcounter=u1,e.onerror=()=>{Bn=!1,ts=[]},e.onload=()=>{i1()},document.head.appendChild(e)}catch{Bn=!1,ts=[]}}}function i1(){var t;if(typeof((t=window.goatcounter)==null?void 0:t.count)!="function"||ts.length===0)return;const e=[...ts];ts=[];for(const n of e)try{window.goatcounter.count(n)}catch{}}function rd(){Bn=od()==="granted",Bn&&ud()}function Ds(e){var n;if(!Bn)return;const t=`/${e}`;try{if(typeof((n=window.goatcounter)==null?void 0:n.count)=="function"){window.goatcounter.count({path:t});return}Jo&&ts.push({path:t})}catch{}}function Po(e){var n;if(!Bn)return;const t=`/event/${e}`;try{if(typeof((n=window.goatcounter)==null?void 0:n.count)=="function"){window.goatcounter.count({path:t,event:!0});return}Jo&&ts.push({path:t,event:!0})}catch{}}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 _r(e){return e>=1e3?(e/1e3).toFixed(1)+"s":Math.round(e)+"ms"}function yr(e,t=!1){return(t?e:e*100).toFixed(1)+"%"}function kn(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 s=e.match(/(o[134](?:-mini)?)/);if(s)return s[1];const o=e.match(/(gemini-[\d.]+-(?:pro|flash)(?:-\w+)?)/);if(o)return o[1];const u=e.split(/[-_]/);return u.length>2?u.slice(0,3).join("-"):e}function oo(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 xr(e){switch(e){case"good":return"#10b981";case"needs-work":return"#f59e0b";case"poor":return"#ef4444";default:return"#64748b"}}const l1={class:"tag-editor"},a1={class:"tag-list"},c1=["onClick"],d1={key:1,class:"input-wrap"},f1={key:0,class:"suggestions"},p1=["onMousedown"],h1=Qe({__name:"TagEditor",props:{conversationId:{},tags:{}},setup(e){const t=e,n=Tt(),s=ie(!1),o=ie(""),u=ie(),r=ie(-1),i=R(()=>n.allTags.map(D=>D.name)),l=R(()=>{const D=new Set(t.tags);return i.value.filter(F=>!D.has(F))}),a=R(()=>{const D=o.value.trim().toLowerCase();return D?l.value.filter(F=>F.includes(D)).slice(0,5):l.value.slice(0,5)}),c=R(()=>o.value.trim().toLowerCase()),f=R(()=>!(!c.value||t.tags.includes(c.value)||a.value.includes(c.value))),h=R(()=>s.value&&(a.value.length>0||f.value));Ge(s,D=>{D?(n.loadTags(),Ye(()=>{var F;return(F=u.value)==null?void 0:F.focus()})):(o.value="",r.value=-1)});const g=R(()=>a.value.length+(f.value?1:0));function v(){s.value=!0}function S(){s.value=!1}async function $(D){const F=D.trim().toLowerCase();if(F){if(t.tags.includes(F)){o.value="";return}await n.addTagToSession(t.conversationId,F),o.value="",r.value=-1}}async function E(D){await n.removeTagFromSession(t.conversationId,D)}function C(D){D.key==="Enter"?(D.preventDefault(),r.value>=0&&r.value<a.value.length?$(a.value[r.value]):o.value.trim()&&$(o.value)):D.key==="Escape"?S():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"&&!o.value&&t.tags.length>0&&E(t.tags[t.tags.length-1])}function L(){setTimeout(()=>{o.value.trim()||S()},150)}return(D,F)=>(_(),k("div",l1,[d("div",a1,[(_(!0),k(ce,null,Ee(e.tags,(A,V)=>(_(),k("span",{key:A,class:ue(["tag-pill",`tag-color-${V%8}`])},[xe(M(A)+" ",1),d("button",{class:"tag-remove",title:"Remove tag",onClick:bt(G=>E(A),["stop"])},[...F[2]||(F[2]=[d("i",{class:"i-carbon-close"},null,-1)])],8,c1)],2))),128)),s.value?(_(),k("div",d1,[He(d("input",{ref_key:"inputRef",ref:u,"onUpdate:modelValue":F[0]||(F[0]=A=>o.value=A),type:"text",class:"tag-input",placeholder:"tag...",onKeydown:C,onBlur:L},null,544),[[wc,o.value]]),h.value?(_(),k("div",f1,[(_(!0),k(ce,null,Ee(a.value,(A,V)=>(_(),k("div",{key:A,class:ue(["suggestion",{selected:V===r.value}]),onMousedown:bt(G=>$(A),["prevent"])},M(A),43,p1))),128)),f.value?(_(),k("div",{key:0,class:ue(["suggestion new-tag",{selected:r.value===a.value.length}]),onMousedown:F[1]||(F[1]=bt(A=>$(o.value),["prevent"]))},' Create "'+M(c.value)+'" ',35)):se("",!0)])):se("",!0)])):(_(),k("button",{key:0,class:"add-btn",title:"Add tag",onClick:v},[...F[3]||(F[3]=[d("i",{class:"i-carbon-add"},null,-1)])]))])]))}}),st=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},m1=st(h1,[["__scopeId","data-v-09e55ec4"]]),g1={class:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"paste-title"},v1={class:"modal-header"},b1={class:"modal-body"},_1=["onKeydown"],y1={key:0,class:"paste-error"},x1={class:"modal-footer"},k1=["disabled"],w1={key:0,class:"i-carbon-circle-dash spin"},C1={key:1,class:"i-carbon-analytics"},$1=Qe({__name:"PasteModal",emits:["close"],setup(e,{emit:t}){const n=t,s=Tt(),o=ie(""),u=ie(""),r=ie(!1),i=ie();Kt(()=>{var f;(f=i.value)==null||f.focus(),document.addEventListener("keydown",l)}),_s(()=>{document.removeEventListener("keydown",l)});function l(f){f.key==="Escape"&&n("close")}function a(f){f.target===f.currentTarget&&n("close")}async function c(){const f=o.value.trim();if(f){u.value="",r.value=!0;try{const{conversationId:h}=await Oh(f);Po("paste"),h&&(await s.loadConversationEntries(h),s.selectSession(h),s.setView("inspector")),n("close")}catch(h){u.value=h instanceof Error?h.message:String(h)}finally{r.value=!1}}}return(f,h)=>(_(),k("div",{class:"modal-backdrop",onClick:a},[d("div",g1,[d("div",v1,[h[4]||(h[4]=d("span",{id:"paste-title",class:"modal-title"},"Paste request",-1)),d("button",{class:"modal-close","aria-label":"Close",onClick:h[0]||(h[0]=g=>n("close"))},[...h[3]||(h[3]=[d("i",{class:"i-carbon-close"},null,-1)])])]),d("div",b1,[h[5]||(h[5]=d("p",{class:"modal-hint"}," Paste a raw Anthropic or OpenAI request body (JSON). The full composition breakdown will appear as a new session. ",-1)),He(d("textarea",{ref_key:"textareaEl",ref:i,"onUpdate:modelValue":h[1]||(h[1]=g=>o.value=g),class:"paste-textarea",placeholder:'{ "model": "claude-sonnet-4-...", "messages": [...] }',spellcheck:"false",autocomplete:"off",onKeydown:[Uo(bt(c,["meta","prevent"]),["enter"]),Uo(bt(c,["ctrl","prevent"]),["enter"])]},null,40,_1),[[wc,o.value]]),u.value?(_(),k("p",y1,M(u.value),1)):se("",!0)]),d("div",x1,[d("button",{class:"btn-secondary",onClick:h[2]||(h[2]=g=>n("close"))},"Cancel"),d("button",{class:"btn-primary",disabled:!o.value.trim()||r.value,onClick:c},[r.value?(_(),k("i",w1)):(_(),k("i",C1)),xe(" "+M(r.value?"Analyzing…":"Analyze"),1)],8,k1)])])]))}}),T1=st($1,[["__scopeId","data-v-24c08f9e"]]),E1={class:"toolbar"},S1={key:0,class:"session-ctx"},A1={class:"session-model"},D1=["title"],F1=["title","aria-label"],M1={key:0,class:"session-id-toast"},I1={key:2,class:"toolbar-sep"},P1={class:"session-stat"},L1={class:"session-stat cost"},R1=["title"],O1={key:4,class:"session-stat"},z1=["title"],N1={key:0,class:"toolbar-tag-overflow"},B1={key:0,class:"tag-popover"},j1={class:"compare-label"},H1={class:"toolbar-right"},q1=["disabled"],U1={class:"toolbar-stat"},V1={class:"toolbar-stat"},W1={class:"toolbar-stat cost"},K1={key:4,class:"toolbar-uploading"},G1={key:5,class:"toolbar-dropdown"},Z1=["disabled"],J1={key:6,class:"toolbar-dropdown"},Y1=["disabled"],X1={key:0,class:"i-carbon-circle-dash spin"},Q1={key:1,class:"i-carbon-folder-open"},em=["disabled"],tm={key:0,class:"import-toast"},nm=Qe({__name:"AppToolbar",setup(e){const t=ie(!1),n=ie(!1),s=ie(null);async function o(){n.value=!0,s.value=null,h.value=!1;try{const{summaries:x}=await Rh();await c.load();const w=x.reduce((N,T)=>N+T.imported,0);w>0&&Po("import");const z=x.filter(N=>N.found>0).map(N=>`${N.source}: ${N.imported} new`).join(", ");s.value=w>0?`Imported ${w} session${w!==1?"s":""}${z?` (${z})`:""}`:"No new sessions found",setTimeout(()=>{s.value=null},4e3)}catch(x){s.value=x instanceof Error?x.message:"Import failed",setTimeout(()=>{s.value=null},4e3)}finally{n.value=!1}}const u=ie(!1),r=ie();function i(){u.value=!u.value,u.value&&c.loadTags()}function l(){u.value=!1}function a(x){u.value&&r.value&&!r.value.contains(x.target)&&l()}Kt(()=>document.addEventListener("click",a,!0)),_s(()=>document.removeEventListener("click",a,!0)),Ge(()=>c.selectedSessionId,()=>{u.value=!1});const c=Tt(),f=ie(!1),h=ie(!1),g=ie(!1),v=ie(!1),S=ie(null),$=ie(!1),E=ie(Date.now());let C=null;Kt(()=>{C=setInterval(()=>{E.value=Date.now()},6e4)}),po(()=>{C&&clearInterval(C)});const L=R(()=>{if(!c.isSharedMode||!c.summaries.length)return null;const z=new Date(c.summaries[0].firstSeen).getTime()+10080*60*1e3-E.value;return Math.max(0,Math.ceil(z/(1440*60*1e3)))}),D=R(()=>c.view==="inspector"&&!!c.selectedSession),F=R(()=>c.selectedSession),A=R(()=>c.totalRequests>0),V=R(()=>D.value&&!!c.selectedSessionId),G=R(()=>{const x=c.selectedSessionId;return x?c.summaries.find(w=>w.id===x)??null:null});function Z(x){if(!x)return"";let w=x;/^\/home\/[^/]+(\/|$)/.test(w)?w=w.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(w)&&(w=w.replace(/^\/Users\/[^/]+/,"~"));const z=w.split("/");return z.length>3?z.slice(-3).join("/"):w}const K=R(()=>c.selectedSessionId??"");function pe(x){return String(x).trim().replace(/[^a-zA-Z0-9._-]+/g,"_").replace(/^_+|_+$/g,"").slice(0,80)||"unknown"}function H(x,w){const z=x==="lhar"?"lhar":"lhar.json";return`context-lens-export-${`session-${pe(w||"all")}`}-privacy-standard.${z}`}async function le(x,w){const z=await fetch(x);if(!z.ok)throw new Error(`Download failed: ${z.status}`);const N=await z.blob(),T=URL.createObjectURL(N);try{const I=document.createElement("a");I.href=T,I.download=w,I.style.display="none",document.body.appendChild(I),I.click(),document.body.removeChild(I)}finally{URL.revokeObjectURL(T)}}async function be(x,w){const z=w==="session"?c.selectedSessionId??void 0:void 0,N=ed(x,z),T=H(x,z);try{await le(N,T)}catch{window.open(N,"_blank")}Po("export"),f.value=!1}async function J(){if(confirm("Delete this shared session? The link will stop working immediately.")){$.value=!0;try{const x=window.location.pathname.match(/^\/s\/([0-9a-f]+)/);if(!x)throw new Error("Could not determine session ID from URL");await Bh(x[1]),alert("Session deleted."),window.location.href="https://contextlens.io"}catch(x){alert(`Delete failed: ${x.message}`)}finally{$.value=!1}}}async function de(){v.value=!0,S.value=null,f.value=!1;const x=c.selectedSessionId??void 0;try{const w=await Nh(x);Po("share");const z=w.stats.total>0?`${w.summary}
|
|
25
|
+
|
|
26
|
+
Share URL copied to clipboard:
|
|
27
|
+
${w.url}`:`No sensitive data found.
|
|
28
|
+
|
|
29
|
+
Share URL copied to clipboard:
|
|
30
|
+
${w.url}`;await navigator.clipboard.writeText(w.url).catch(()=>{}),alert(z),window.open(w.url,"_blank")}catch(w){S.value=w.message,alert(`Upload failed: ${w.message}`)}finally{v.value=!1}}function he(){f.value=!f.value,f.value&&(h.value=!1)}function W(){h.value=!h.value,h.value&&(f.value=!1)}function re(){confirm("Clear all captured data?")&&c.reset(),h.value=!1}function ke(){const x=c.selectedSessionId;!x||!V.value||(confirm("Remove this session?")&&c.deleteSession(x),h.value=!1)}function j(){c.setView("dashboard")}async function ne(){const x=K.value;if(x){try{await navigator.clipboard.writeText(x),g.value=!0}catch{}setTimeout(()=>{g.value=!1},1400)}}function Q(x){return x.length<=18?x:`${x.slice(0,8)}…${x.slice(-8)}`}function fe(x){return g.value?`Copied: ${x}`:`Session ID: ${x} (click to copy)`}function _e(x){(x.key==="Enter"||x.key===" ")&&(x.preventDefault(),ne())}return(x,w)=>(_(),k(ce,null,[d("header",E1,[d("a",{class:"toolbar-brand toolbar-brand-btn",href:"#sessions",onClick:bt(j,["prevent"])},[...w[11]||(w[11]=[gc('<svg class="logo-mark" width="18" height="18" viewBox="0 0 18 18" aria-hidden="true" data-v-cb378846><circle cx="9" cy="9" r="7.5" fill="none" stroke="var(--accent-blue)" stroke-width="1" opacity="0.35" data-v-cb378846></circle><circle cx="9" cy="9" r="4" fill="none" stroke="var(--accent-blue)" stroke-width="1" opacity="0.6" data-v-cb378846></circle><circle cx="9" cy="9" r="1.5" fill="var(--accent-blue)" data-v-cb378846></circle></svg><span class="brand-text" data-v-cb378846>Context Lens</span>',2)])]),Le(Pt,{name:"session-ctx"},{default:nt(()=>{var z,N,T,I,b;return[D.value&&F.value?(_(),k("div",S1,[w[14]||(w[14]=d("span",{class:"toolbar-sep"},null,-1)),d("span",{class:ue(["session-badge",Y(oo)(F.value.source)])},M(F.value.source||"?"),3),d("span",A1,M(Y(kn)(((z=G.value)==null?void 0:z.latestModel)??"")),1),F.value.workingDirectory?(_(),k("span",{key:0,class:"session-dir",title:F.value.workingDirectory},M(Z(F.value.workingDirectory)),9,D1)):se("",!0),w[15]||(w[15]=d("span",{class:"toolbar-sep"},null,-1)),K.value?(_(),k("span",{key:1,class:ue(["session-id",{copied:g.value}]),title:fe(K.value),role:"button",tabindex:"0","aria-label":fe(K.value),onClick:ne,onKeydown:_e},[xe(" SID "+M(Q(K.value))+" ",1),g.value?(_(),k("span",M1,"Copied")):se("",!0)],42,F1)):se("",!0),K.value?(_(),k("span",I1)):se("",!0),d("span",P1,M(((N=G.value)==null?void 0:N.entryCount)??F.value.entries.length)+" turns",1),d("span",L1,M(Y(Ct)(((T=G.value)==null?void 0:T.totalCost)??0)),1),(I=F.value.prunedMessages)!=null&&I.length?(_(),k("span",{key:3,class:"session-stat session-stat--pruned",title:`${F.value.prunedMessages.length} message${F.value.prunedMessages.length!==1?"s":""} dropped from context`},M(F.value.prunedMessages.length)+" pruned",9,R1)):se("",!0),(b=G.value)!=null&&b.healthScore?(_(),k("span",O1,[w[12]||(w[12]=xe(" Latest health ",-1)),d("span",{class:ue(["session-health",{good:G.value.healthScore.rating==="good",warn:G.value.healthScore.rating==="needs-work",bad:G.value.healthScore.rating==="poor"}])},M(G.value.healthScore.overall),3)])):se("",!0),w[16]||(w[16]=d("span",{class:"toolbar-sep"},null,-1)),K.value?(_(),k("div",{key:5,ref_key:"toolbarTagsEl",ref:r,class:"toolbar-tags",onClick:w[0]||(w[0]=bt(()=>{},["stop"]))},[d("button",{class:ue(["tags-toggle",{active:u.value,tagged:(F.value.tags??[]).length>0}]),title:u.value?"Close tag editor":"Edit tags",onClick:i},[w[13]||(w[13]=d("i",{class:"i-carbon-tag"},null,-1)),(F.value.tags??[]).length===0?(_(),k(ce,{key:0},[xe(" Tags ")],64)):(_(),k(ce,{key:1},[(_(!0),k(ce,null,Ee((F.value.tags??[]).slice(0,2),(p,m)=>(_(),k("span",{key:p,class:ue(["toolbar-tag-pill",`tag-color-${m%8}`])},M(p),3))),128)),(F.value.tags??[]).length>2?(_(),k("span",N1," +"+M((F.value.tags??[]).length-2),1)):se("",!0)],64))],10,z1),Le(Pt,{name:"tag-popover"},{default:nt(()=>[u.value?(_(),k("div",B1,[Le(m1,{"conversation-id":K.value,tags:F.value.tags??[]},null,8,["conversation-id","tags"])])):se("",!0)]),_:1})],512)):se("",!0)])):se("",!0)]}),_:1}),Y(c).compareMode?(_(),k(ce,{key:0},[w[19]||(w[19]=d("span",{class:"toolbar-sep"},null,-1)),d("span",j1,[w[17]||(w[17]=d("i",{class:"i-carbon-compare"},null,-1)),xe(" Comparing "+M(Y(c).compareSessionIds.size)+" sessions ",1)]),d("button",{class:"compare-exit-btn",onClick:w[1]||(w[1]=z=>Y(c).exitCompare())},[...w[18]||(w[18]=[d("i",{class:"i-carbon-close"},null,-1),xe(" Exit ",-1)])])],64)):se("",!0),d("div",H1,[Y(c).isSharedMode?(_(),k("span",{key:0,class:ue(["connection shared",{expiring:L.value!==null&&L.value<=1}])},[w[20]||(w[20]=d("i",{class:"i-carbon-share"},null,-1)),xe(" Shared"+M(L.value!==null?` · ${L.value}d left`:""),1)],2)):se("",!0),Y(c).isSharedMode?(_(),k("button",{key:1,class:"toolbar-control toolbar-control--danger",disabled:$.value,onClick:J},[w[21]||(w[21]=d("i",{class:"i-carbon-trash-can"},null,-1)),xe(" "+M($.value?"Deleting…":"Delete"),1)],8,q1)):(_(),k("span",{key:2,class:ue(["connection",{live:Y(c).connected}])},[w[22]||(w[22]=d("span",{class:"connection-dot"},null,-1)),xe(" "+M(Y(c).connected?"Live":"Offline"),1)],2)),D.value?se("",!0):(_(),k(ce,{key:3},[d("span",U1,M(Y(c).conversations.length)+" session"+M(Y(c).conversations.length!==1?"s":""),1),d("span",V1,M(Y(c).totalRequests)+" req"+M(Y(c).totalRequests!==1?"s":""),1),d("span",W1,M(Y(Ct)(Y(c).totalCost)),1)],64)),d("button",{class:"toolbar-control",onClick:w[2]||(w[2]=z=>t.value=!0)},[...w[23]||(w[23]=[d("i",{class:"i-carbon-paste"},null,-1),xe(" Paste ",-1)])]),v.value?(_(),k("div",K1,[...w[24]||(w[24]=[d("i",{class:"i-carbon-circle-dash toolbar-spinner"},null,-1),xe(" Uploading… ",-1)])])):se("",!0),A.value&&!v.value?(_(),k("div",G1,[d("button",{class:"toolbar-control",onClick:he},[...w[25]||(w[25]=[d("i",{class:"i-carbon-download"},null,-1),xe(" Export ",-1)])]),Le(Pt,{name:"dropdown"},{default:nt(()=>[f.value?(_(),k("div",{key:0,class:"dropdown-menu",onMouseleave:w[8]||(w[8]=z=>f.value=!1)},[d("button",{class:"dropdown-item",onClick:w[3]||(w[3]=z=>be("lhar.json","all"))},[...w[26]||(w[26]=[d("i",{class:"i-carbon-document"},null,-1),xe(" All (.lhar.json)",-1)])]),d("button",{class:"dropdown-item",onClick:w[4]||(w[4]=z=>be("lhar","all"))},[...w[27]||(w[27]=[d("i",{class:"i-carbon-document"},null,-1),xe(" All (.lhar)",-1)])]),Y(c).selectedSessionId?(_(),k(ce,{key:0},[w[30]||(w[30]=d("div",{class:"dropdown-sep"},null,-1)),d("button",{class:"dropdown-item",onClick:w[5]||(w[5]=z=>be("lhar.json","session"))},[...w[28]||(w[28]=[d("i",{class:"i-carbon-document"},null,-1),xe(" Session (.lhar.json)",-1)])]),d("button",{class:"dropdown-item",onClick:w[6]||(w[6]=z=>be("lhar","session"))},[...w[29]||(w[29]=[d("i",{class:"i-carbon-document"},null,-1),xe(" Session (.lhar)",-1)])])],64)):se("",!0),Y(c).selectedSessionId?(_(),k(ce,{key:1},[w[32]||(w[32]=d("div",{class:"dropdown-sep"},null,-1)),d("button",{class:"dropdown-item dropdown-item--upload",disabled:v.value,onClick:w[7]||(w[7]=z=>de())},[w[31]||(w[31]=d("i",{class:"i-carbon-upload"},null,-1)),xe(" "+M(v.value?"Uploading…":"Share (contextlens.io)"),1)],8,Z1)],64)):se("",!0)],32)):se("",!0)]),_:1})])):se("",!0),A.value&&!Y(c).isSharedMode?(_(),k("div",J1,[d("button",{class:"toolbar-control",onClick:W},[...w[33]||(w[33]=[d("i",{class:"i-carbon-overflow-menu-horizontal"},null,-1),xe(" Menu ",-1)])]),Le(Pt,{name:"dropdown"},{default:nt(()=>[h.value?(_(),k("div",{key:0,class:"dropdown-menu",onMouseleave:w[9]||(w[9]=z=>h.value=!1)},[d("button",{class:"dropdown-item",disabled:n.value,onClick:o},[n.value?(_(),k("i",X1)):(_(),k("i",Q1)),xe(" "+M(n.value?"Scanning…":"Import CLI sessions"),1)],8,Y1),w[36]||(w[36]=d("div",{class:"dropdown-sep"},null,-1)),d("button",{class:"dropdown-item dropdown-item--danger",onClick:re},[...w[34]||(w[34]=[d("i",{class:"i-carbon-trash-can"},null,-1),xe(" Reset all ",-1)])]),d("button",{class:ue(["dropdown-item dropdown-item--danger",{"dropdown-item--disabled":!V.value}]),disabled:!V.value,onClick:ke},[...w[35]||(w[35]=[d("i",{class:"i-carbon-subtract-alt"},null,-1),xe(" Remove this session ",-1)])],10,em)],32)):se("",!0)]),_:1})])):se("",!0)]),Le(Pt,{name:"import-toast"},{default:nt(()=>[s.value?(_(),k("div",tm,M(s.value),1)):se("",!0)]),_:1})]),(_(),rt(Ba,{to:"body"},[t.value?(_(),rt(T1,{key:0,onClose:w[10]||(w[10]=z=>t.value=!1)})):se("",!0)]))],64))}}),sm=st(nm,[["__scopeId","data-v-cb378846"]]),om=["value","placeholder"],um=Qe({__name:"SearchInput",props:{modelValue:{},placeholder:{default:"Search…"},autoFocus:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,s=t,o=ie(!1),u=ie();function r(){var l;s("update:modelValue",""),(l=u.value)==null||l.focus()}function i(){var l;n.modelValue?s("update:modelValue",""):(l=u.value)==null||l.blur()}return O0(()=>{var l;n.autoFocus&&((l=u.value)==null||l.focus())}),(l,a)=>(_(),k("div",{class:ue(["search-input-root",{focused:o.value,active:e.modelValue.length>0}]),onClick:a[3]||(a[3]=c=>{var f;return(f=u.value)==null?void 0:f.focus()})},[a[5]||(a[5]=d("i",{class:"i-carbon-search search-input-icon"},null,-1)),d("input",{ref_key:"inputRef",ref:u,value:e.modelValue,type:"text",class:"search-input-field",placeholder:e.placeholder,onInput:a[0]||(a[0]=c=>s("update:modelValue",c.target.value)),onFocus:a[1]||(a[1]=c=>o.value=!0),onBlur:a[2]||(a[2]=c=>o.value=!1),onKeydown:Uo(i,["escape"])},null,40,om),e.modelValue.length>0?(_(),k("button",{key:0,class:"search-input-clear",tabindex:"-1",title:"Clear",onClick:bt(r,["stop"])},[...a[4]||(a[4]=[d("i",{class:"i-carbon-close"},null,-1)])])):se("",!0),a[6]||(a[6]=d("div",{class:"search-input-accent"},null,-1))],2))}}),rm=st(um,[["__scopeId","data-v-70f5ee93"]]),im={class:"tag-filter"},lm={key:0,class:"dropdown-loading"},am=["onClick"],cm={class:"tag-name"},dm={class:"tag-count"},fm={key:2,class:"dropdown-empty"},pm=Qe({__name:"TagFilter",setup(e){const t=Tt(),n=ie(!1),s=R(()=>t.allTags.length>0),o=R(()=>t.tagFilter),u=R(()=>o.value?`Tag: ${o.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,c)=>(_(),k("div",im,[d("button",{class:ue(["filter-btn",{active:o.value}]),onClick:l},[xe(M(u.value)+" ",1),d("i",{class:ue(["i-carbon-chevron-down dropdown-icon",{open:n.value}])},null,2)],2),Le(Pt,{name:"dropdown"},{default:nt(()=>[n.value?(_(),k("div",{key:0,class:"dropdown-menu",onMouseleave:c[0]||(c[0]=f=>n.value=!1)},[Y(t).loadingTags?(_(),k("div",lm," Loading... ")):s.value?(_(),k(ce,{key:1},[d("button",{class:ue(["dropdown-item",{active:!o.value}]),onClick:i},[...c[1]||(c[1]=[d("span",{class:"all-label"},"All sessions",-1)])],2),c[2]||(c[2]=d("div",{class:"dropdown-sep"},null,-1)),(_(!0),k(ce,null,Ee(Y(t).allTags,(f,h)=>(_(),k("button",{key:f.name,class:ue(["dropdown-item",{active:o.value===f.name}]),onClick:g=>r(f.name)},[d("span",{class:ue(["tag-dot",Y(t).getTagColorClass(h)])},null,2),d("span",cm,M(f.name),1),d("span",dm,M(f.count),1)],10,am))),128))],64)):(_(),k("div",fm," No tags yet "))],32)):se("",!0)]),_:1})]))}}),hm=st(pm,[["__scopeId","data-v-8f64535a"]]);function $s(e){return e<=0?0:e>=1?1:e}function mm(e,t){const n=e.healthScore,s=n?$s((100-n.overall)/100):null,o=e.contextLimit?$s(e.latestTotalTokens/e.contextLimit):0,u=s===null?o:$s(s*.7+o*.3),r=t>0?$s(e.totalCost/t):0,i=$s(u*.7+r*.3);let l="Healthy",a="priority-healthy",c="prio-healthy";i>=.7?(l="Critical",a="priority-critical",c="prio-critical"):i>=.45&&(l="Warning",a="priority-warning",c="prio-warning");const f=`Priority ${Math.round(i*100)} = 0.7×risk(${Math.round(u*100)}) + 0.3×cost(${Math.round(r*100)}).`;return{risk:u,normalizedCost:r,score:i,label:l,toneClass:a,barClass:c,tooltip:f}}function id(e,t,n){var $,E;const o=n.filter(C=>C.isMain).map(C=>C.entry).findIndex(C=>C.id===e.id),u=o>=0?o+1:null,r=[],i=e.contextInfo,l=e.composition||[],a=l.reduce((C,L)=>C+L.tokens,0),c=yu(i.messages||[]),f=l.find(C=>C.category==="tool_results");if(f&&a>0&&f.pct>25){let C=0,L="";for(const D of i.messages||[])if(It(D)==="tool_results"&&D.tokens>C&&(C=D.tokens,D.contentBlocks)){for(const F of D.contentBlocks)if(F.type==="tool_result"&&F.tool_use_id&&c[F.tool_use_id]){L=c[F.tool_use_id];break}}if(C>2e3){const D=Math.round(C/a*100);r.push({severity:"high",title:`Large tool result${L?": "+L:""} (${Ce(C)} 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(C)} tok`})}}const h=l.find(C=>C.category==="tool_definitions");if(h&&h.pct>30){const C=new Set;for(const A of t)for(const V of A.contextInfo.messages||[])if(V.contentBlocks)for(const G of V.contentBlocks)G.type==="tool_use"&&G.name&&C.add(G.name);const L=[];if(i.tools)for(const A of i.tools){const V="name"in A?A.name:($=A.function)==null?void 0:$.name;V&&L.push(V)}const D=L.filter(A=>!C.has(A)),F=L.length;if(F>C.size+3){const A=D.slice(0,5).join(", ")+(D.length>5?` +${D.length-5} more`:""),V=Math.round(h.tokens*D.length/F);r.push({severity:"high",title:`${C.size}/${F} tools used, ${D.length} idle`,detail:`Unused: ${A}. Definitions cost ~${Ce(V)} tokens and are re-sent every turn. You may want to remove unused tools to free context.`,impact:`~${Ce(V)} tok`})}}if(f&&f.pct>60){const C=l.find(A=>A.category==="user_text"),L=C?C.pct:0,D=new Map;for(const A of i.messages||[])if(It(A)==="tool_results"&&A.contentBlocks){for(const V of A.contentBlocks)if(V.type==="tool_result"&&V.tool_use_id){const G=c[V.tool_use_id]||"unknown";D.set(G,(D.get(G)||0)+(A.tokens||0))}}const F=Array.from(D.entries()).sort((A,V)=>V[1]-A[1]).slice(0,3).map(([A,V])=>`${A} (${Ce(V)})`).join(", ");r.push({severity:"med",title:`Tool results dominate: ${f.pct}% of context`,detail:`Top tools: ${F}. User text is only ${L}%. 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 C=-1;for(let L=v-1;L>=0;L--)if((E=n[L])!=null&&E.isMain){C=L;break}if(C>=0){const L=t[C].contextInfo.totalTokens;i.totalTokens<L*.7&&r.push({severity:"med",title:"Compaction detected",detail:`Tokens dropped ${Ce(L)} → ${Ce(i.totalTokens)}. Context was summarized or truncated — older details may be lost.`,impact:`-${Ce(L-i.totalTokens)} tok`})}}const S=l.find(C=>C.category==="system_injections");S&&S.pct>5&&r.push({severity:"med",title:`System injections: ${S.pct}% of context`,detail:`${Ce(S.tokens)} tokens of system-reminder blocks injected into messages. These are re-sent every turn, reducing space for actual conversation.`,impact:`${Ce(S.tokens)} tok`});for(const C of e.securityAlerts||[]){const L=C.severity==="high"?"high":C.severity==="medium"?"med":"low",D=C.toolName?`tool result: ${C.toolName}`:`${C.role} message`;r.push({severity:L,title:`⚠ ${C.pattern.replace(/_/g," ")} in ${D} (msg ${C.messageIndex+1})`,detail:C.match,impact:C.severity,messageIndex:C.messageIndex,highlight:C.match})}for(const C of e.outputSecurityAlerts||[]){const L=C.severity==="high"?"high":C.severity==="medium"?"med":"low";r.push({severity:L,title:`⚠ ${C.pattern.replace(/_/g," ")} in response`,detail:C.match,impact:C.severity})}for(const C of e.toolPatterns||[]){const L=C.kind==="stuck_on_error"?"high":C.kind==="redundant_call"?"med":"low",D=C.kind==="stuck_on_error"?"Loop risk":C.kind==="redundant_call"?"Wasted tokens":"Redundant fetch",F=u!=null?` (turn ${u})`:"";r.push({severity:L,title:C.title+F,detail:C.detail,impact:D})}return r}const gm={class:"kpi-row"},vm={class:"kpi-card"},bm={class:"kpi-value"},_m={class:"kpi-card"},ym={class:"kpi-value accent-blue"},xm={class:"kpi-card"},km={class:"kpi-value"},wm={class:"kpi-card"},Cm={class:"kpi-value accent-green"},$m={class:"kpi-card"},Tm={class:"kpi-value accent-amber"},Em={class:"kpi-scope"},Sm={class:"section-head"},Am={class:"section-count"},Dm={class:"filter-group"},Fm={key:0,class:"filter-dropdown"},Mm=["onClick"],Im={class:"sort-group"},Pm={class:"table-wrap"},Lm={class:"ledger"},Rm={key:0,class:"col-select"},Om=["onClick"],zm={key:0,class:"col-select"},Nm={class:"col-priority"},Bm={class:"col-source"},jm={key:0,class:"row-tags"},Hm=["title"],qm={key:0,class:"row-tag-more"},Um={class:"col-model"},Vm={class:"model-text"},Wm={class:"col-dir"},Km=["title"],Gm={class:"col-turns"},Zm={class:"num"},Jm={class:"col-context"},Ym={class:"col-cost"},Xm={class:"num green"},Qm={class:"col-health"},eg={class:"health-cell"},tg={key:0,class:"health-tooltip"},ng={class:"health-tooltip-title"},sg={class:"health-audit-name"},og={class:"col-spark"},ug=["innerHTML"],rg={class:"col-time"},ig=["title"],lg={class:"col-arrow"},ag=["href","onClick"],cg=["colspan"],dg={class:"expand-content"},fg={class:"expand-inner"},pg={key:0,class:"expand-loading"},hg={key:0,class:"expand-section"},mg={class:"expand-section-label"},gg={class:"comp-tape"},vg=["title"],bg={key:0,class:"comp-seg-label"},_g={class:"expand-section"},yg={class:"finding-text"},xg={key:1,class:"finding"},kg={key:0,class:"compare-bar"},wg={class:"compare-bar-text"},Cg={key:0,class:"dashboard-empty"},$g={key:1,class:"dashboard-empty"},Tg=Qe({__name:"DashboardView",setup(e){const t=Tt(),n=ie("recent"),s=ie(new Set),o=ie(!1),u=ie(""),r=ie(!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):w(p)}const c=R(()=>t.compareSessionIds.size),f=ie(null),h=R(()=>{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 f.value?f.value.has(p):!0}function v(p){if(!f.value){const y=new Set(h.value);y.delete(p),y.size>0&&(f.value=y);return}const m=new Set(f.value);if(m.has(p)){if(m.delete(p),m.size===0)return}else m.add(p);m.size===h.value.length?f.value=null:f.value=m}const S=R(()=>f.value!==null),$=R(()=>f.value?`Source (${f.value.size})`:"Source"),E=R(()=>{let p=t.summaries;f.value&&(p=p.filter(y=>f.value.has(y.source)));const m=u.value.trim().toLowerCase();if(m&&(p=p.filter(y=>[y.id,y.source,y.label,y.workingDirectory??"",y.latestModel].join("\0").toLowerCase().includes(m))),t.tagFilter){const y=t.tagFilter.toLowerCase();p=p.filter(P=>{var O;return(O=P.tags)==null?void 0:O.includes(y)})}return p}),C=R(()=>{let p=0;for(const m of E.value)p=Math.max(p,m.totalCost);return p}),L=R(()=>{const p=new Map;for(const m of E.value)p.set(m.id,mm(m,C.value));return p}),D=R(()=>{const p=[...E.value];return n.value==="priority"?p.sort((m,y)=>{var oe,ee;const P=((oe=L.value.get(m.id))==null?void 0:oe.score)??0;return(((ee=L.value.get(y.id))==null?void 0:ee.score)??0)-P}):n.value==="cost"&&p.sort((m,y)=>y.totalCost-m.totalCost),p}),F=ie("today"),A=R(()=>{if(F.value==="all")return E.value;const p=new Date;p.setHours(0,0,0,0);const m=p.getTime();return E.value.filter(y=>new Date(y.latestTimestamp).getTime()>=m)}),V=R(()=>A.value.length),G=R(()=>A.value.reduce((p,m)=>p+m.entryCount,0)),Z=R(()=>A.value.reduce((p,m)=>p+m.latestTotalTokens,0)),K=R(()=>A.value.reduce((p,m)=>p+m.totalCost,0)),pe=R(()=>{const p=A.value.filter(y=>{var P;return((P=y.healthScore)==null?void 0:P.overall)!=null});if(p.length===0)return 0;const m=p.reduce((y,P)=>{var O;return y+(((O=P.healthScore)==null?void 0:O.overall)??0)},0);return Math.round(m/p.length)});function H(p){return L.value.get(p)??{score:0,label:"Healthy",toneClass:"priority-healthy",barClass:"prio-healthy",risk:0,normalizedCost:0,tooltip:""}}function le(p){return p.contextLimit?p.latestTotalTokens/p.contextLimit:0}function be(p){return p>=.8?"util-high":p>=.6?"util-mid":"util-low"}function J(p){var y;const m=(y=p.healthScore)==null?void 0:y.rating;return m==="poor"?"health-bad":m==="needs-work"?"health-warn":"health-good"}function de(p){return p>=90?"health-good":p>=50?"health-warn":"health-bad"}function he(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 W(p){const m=new Date(p),y=m.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}),P=m.toLocaleDateString("en-CA");return`${y} on ${P}`}function re(p){if(!p)return"";let m=p;/^\/home\/[^/]+(\/|$)/.test(m)?m=m.replace(/^\/home\/[^/]+/,"~"):/^\/Users\/[^/]+(\/|$)/.test(m)&&(m=m.replace(/^\/Users\/[^/]+/,"~"));const y=m.split("/");return y.length>2?y.slice(-2).join("/"):m}function ke(p){return p==="prio-critical"?"#ef4444":p==="prio-warning"?"#f59e0b":"#0ea5e9"}function j(p,m){if(p.length===0)return"";const y=72,P=22,O=Math.max(...p);if(O===0)return"";const oe=p.map((te,Te)=>{const ve=p.length<=1?y/2:Te/(p.length-1)*y,we=P-te/O*(P-4)-2;return`${ve.toFixed(1)},${we.toFixed(1)}`}),ee=oe.join(" ")+` ${y},${P} 0,${P}`,ae="sg"+m.replace("#","");return`<svg viewBox="0 0 ${y} ${P}" preserveAspectRatio="none" style="display:block;width:100%;height:100%"><defs><linearGradient id="${ae}" 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="${ee}" fill="url(#${ae})"/><polyline points="${oe.join(" ")}" fill="none" stroke="${m}" stroke-width="1.5" stroke-linejoin="round" stroke-linecap="round"/><circle cx="${oe[oe.length-1].split(",")[0]}" cy="${oe[oe.length-1].split(",")[1]}" r="2" fill="${m}"/></svg>`}function ne(p){const m=p.tokenHistory;if(!m||m.length<2)return"";const y=H(p.id);return j(m,ke(y.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 fe(p){const m=t.loadedConversations.get(p.id);return!m||m.entries.length===0?[]:m.entries[0].composition||[]}function _e(p){const m=t.loadedConversations.get(p.id);if(!m||m.entries.length===0)return[];const y=m.entries[0],P=[...m.entries].reverse(),O=bn(P);return id(y,P,O)}function x(p){return s.value.has(p)}async function w(p){const m=new Set(s.value);m.has(p)?m.delete(p):(m.add(p),t.loadedConversations.has(p)||await t.loadConversationEntries(p)),s.value=m}function z(){s.value=new Set}function N(p){return`#session/${encodeURIComponent(p)}?tab=overview`}function T(p){t.setInspectorTab("overview"),t.selectSession(p),t.setView("inspector")}function I(){o.value=!1}function b(p){p.key==="Escape"&&z()}return(p,m)=>(_(),k("div",{class:"dashboard",onKeydown:b,tabindex:"-1",onClick:I},[d("div",gm,[d("div",vm,[d("div",bm,M(V.value),1),m[9]||(m[9]=d("div",{class:"kpi-label"},"Sessions",-1))]),d("div",_m,[d("div",ym,M(G.value),1),m[10]||(m[10]=d("div",{class:"kpi-label"},"Requests",-1))]),d("div",xm,[d("div",km,M(Y(Ce)(Z.value)),1),m[11]||(m[11]=d("div",{class:"kpi-label"},"Tokens",-1))]),d("div",wm,[d("div",Cm,M(Y(Ct)(K.value)),1),m[12]||(m[12]=d("div",{class:"kpi-label"},"Cost",-1))]),d("div",$m,[d("div",Tm,M(pe.value),1),m[13]||(m[13]=d("div",{class:"kpi-label"},"Avg Health",-1))]),d("div",Em,[d("button",{class:ue({active:F.value==="today"}),onClick:m[0]||(m[0]=y=>F.value="today")},"Today",2),d("button",{class:ue({active:F.value==="all"}),onClick:m[1]||(m[1]=y=>F.value="all")},"All",2)])]),d("div",Sm,[m[17]||(m[17]=d("span",{class:"section-title"},"Sessions",-1)),d("span",Am,M(E.value.length),1),Le(rm,{modelValue:u.value,"onUpdate:modelValue":m[2]||(m[2]=y=>u.value=y),placeholder:"Filter by ID, directory, model…"},null,8,["modelValue"]),d("div",Dm,[d("button",{class:ue(["compare-toggle",{active:r.value}]),onClick:i,title:"Select sessions to compare"},[...m[14]||(m[14]=[d("i",{class:"i-carbon-compare"},null,-1),xe(" Compare ",-1)])],2),h.value.length>1?(_(),k("div",Fm,[d("button",{class:ue(["filter-btn",{"has-filter":S.value}]),onClick:m[3]||(m[3]=bt(y=>o.value=!o.value,["stop"]))},[xe(M($.value)+" ",1),m[15]||(m[15]=d("span",{class:"caret"},null,-1))],2),o.value?(_(),k("div",{key:0,class:"filter-menu",onClick:m[4]||(m[4]=bt(()=>{},["stop"]))},[(_(!0),k(ce,null,Ee(h.value,y=>(_(),k("div",{key:y,class:ue(["filter-option",{checked:g(y)}]),onClick:P=>v(y)},[m[16]||(m[16]=d("span",{class:"check"},[d("i",{class:"i-carbon-checkmark"})],-1)),d("span",{class:ue(["source-badge",Y(oo)(y)])},M(y),3)],10,Mm))),128))])):se("",!0)])):se("",!0),Le(hm),d("div",Im,[d("button",{class:ue(["sort-btn",{active:n.value==="recent"}]),onClick:m[5]||(m[5]=y=>n.value="recent")},"Recent",2),d("button",{class:ue(["sort-btn",{active:n.value==="priority"}]),onClick:m[6]||(m[6]=y=>n.value="priority")},"Priority",2),d("button",{class:ue(["sort-btn",{active:n.value==="cost"}]),onClick:m[7]||(m[7]=y=>n.value="cost")},"Cost",2)])])]),d("div",Pm,[d("table",Lm,[d("thead",null,[d("tr",null,[r.value?(_(),k("th",Rm)):se("",!0),m[18]||(m[18]=d("th",{class:"col-priority"},null,-1)),m[19]||(m[19]=d("th",{class:"col-source"},"Source",-1)),m[20]||(m[20]=d("th",{class:"col-model"},"Model",-1)),m[21]||(m[21]=d("th",{class:"col-dir"},"Directory",-1)),m[22]||(m[22]=d("th",{class:"col-turns"},"Turns",-1)),m[23]||(m[23]=d("th",{class:"col-context sorted"},"Context",-1)),m[24]||(m[24]=d("th",{class:"col-cost"},"Cost",-1)),m[25]||(m[25]=d("th",{class:"col-health"},"Health",-1)),m[26]||(m[26]=d("th",{class:"col-spark"},"Trend",-1)),m[27]||(m[27]=d("th",{class:"col-time"},"Time",-1)),m[28]||(m[28]=d("th",{class:"col-arrow"},null,-1))])]),d("tbody",null,[(_(!0),k(ce,null,Ee(D.value,y=>{var P,O,oe;return _(),k(ce,{key:y.id},[d("tr",{class:ue(["main-row",{expanded:x(y.id),selected:x(y.id)||l(y.id),pulse:Y(t).recentlyUpdated.has(y.id)}]),onClick:ee=>a(y.id)},[r.value?(_(),k("td",zm,[d("span",{class:ue(["compare-check",{checked:l(y.id)}])},[...m[29]||(m[29]=[d("i",{class:"i-carbon-checkmark"},null,-1)])],2)])):se("",!0),d("td",Nm,[d("div",{class:ue(["priority-bar",H(y.id).barClass])},null,2)]),d("td",Bm,[d("span",{class:ue(["source-badge",Y(oo)(y.source)])},M(y.source||"?"),3),(P=y.tags)!=null&&P.length?(_(),k("span",jm,[(_(!0),k(ce,null,Ee(y.tags.slice(0,2),(ee,ae)=>(_(),k("span",{key:ee,class:ue(["row-tag",Y(t).getTagColorClass(ae)]),title:ee},M(ee),11,Hm))),128)),y.tags.length>2?(_(),k("span",qm,"+"+M(y.tags.length-2),1)):se("",!0)])):se("",!0)]),d("td",Um,[d("span",Vm,M(Y(kn)(y.latestModel)),1)]),d("td",Wm,[d("span",{class:"dir-text",title:y.workingDirectory??""},M(re(y.workingDirectory)),9,Km)]),d("td",Gm,[d("span",Zm,M(y.entryCount),1)]),d("td",Jm,[d("span",{class:ue(["util-chip",be(le(y))])},M(Math.round(le(y)*100))+"% ",3)]),d("td",Ym,[d("span",Xm,M(Y(Ct)(y.totalCost)),1)]),d("td",Qm,[d("div",eg,[d("span",{class:ue(["health-num",J(y)])},M(((O=y.healthScore)==null?void 0:O.overall)??"—"),3),(oe=y.healthScore)!=null&&oe.audits?(_(),k("div",tg,[d("div",ng,"Health Score: "+M(y.healthScore.overall),1),(_(!0),k(ce,null,Ee(y.healthScore.audits,ee=>(_(),k("div",{key:ee.id,class:"health-audit-line"},[d("span",sg,M(ee.name),1),d("span",{class:ue(["health-audit-score",de(ee.score)])},M(ee.score),3)]))),128))])):se("",!0)])]),d("td",og,[d("div",{class:"inline-spark",innerHTML:ne(y)},null,8,ug)]),d("td",rg,[d("span",{class:"time-text",title:W(y.latestTimestamp)},M(he(y.latestTimestamp)),9,ig)]),d("td",lg,[d("a",{class:"inspect-btn",title:"Open in inspector",href:N(y.id),onClick:bt(ee=>T(y.id),["prevent","stop"])},[...m[30]||(m[30]=[d("i",{class:"i-carbon-arrow-right"},null,-1)])],8,ag)])],10,Om),d("tr",{class:ue(["expand-row",{open:x(y.id)}])},[d("td",{colspan:r.value?12:11},[d("div",dg,[d("div",fg,[Y(t).loadingSession===y.id?(_(),k("div",pg," Loading… ")):(_(),k(ce,{key:1},[fe(y).length>0?(_(),k("div",hg,[d("div",mg," Composition · "+M(Y(Ce)(fe(y).reduce((ee,ae)=>ee+ae.tokens,0)))+" tokens ",1),d("div",gg,[(_(),k(ce,null,Ee(Q,ee=>{var ae,te,Te,ve;return He(d("div",{key:ee.key,class:"comp-seg",style:Se({flex:((ae=fe(y).find(we=>we.category===ee.key))==null?void 0:ae.tokens)??0,background:ee.color}),title:`${ee.label}: ${((te=fe(y).find(we=>we.category===ee.key))==null?void 0:te.pct)??0}%`},[(((Te=fe(y).find(we=>we.category===ee.key))==null?void 0:Te.pct)??0)>=12?(_(),k("span",bg,M(ee.label),1)):se("",!0)],12,vg),[[Jf,(((ve=fe(y).find(we=>we.category===ee.key))==null?void 0:ve.tokens)??0)>0]])}),64))])])):se("",!0),d("div",_g,[m[32]||(m[32]=d("div",{class:"expand-section-label"},"Findings",-1)),d("div",{class:ue(["expand-findings",{"expand-findings--scroll":_e(y).length>5}])},[_e(y).length>0?(_(!0),k(ce,{key:0},Ee(_e(y),(ee,ae)=>(_(),k("div",{key:ae,class:"finding"},[d("i",{class:ue(["finding-icon",[`sev-${ee.severity}`,ee.severity==="high"?"i-carbon-warning-alt":ee.severity==="med"?"i-carbon-information":"i-carbon-checkmark"]])},null,2),d("span",yg,[xe(M(ee.title)+" ",1),ee.impact?(_(),k("span",{key:0,class:ue(["finding-impact",`sev-${ee.severity}`])},M(ee.impact),3)):se("",!0)])]))),128)):(_(),k("div",xg,[...m[31]||(m[31]=[d("i",{class:"finding-icon sev-low i-carbon-checkmark"},null,-1),d("span",{class:"finding-text muted"},"No issues detected.",-1)])]))],2)])],64))])])],8,cg)],2)],64)}),128))])])]),Le(Pt,{name:"compare-bar"},{default:nt(()=>[r.value&&c.value>=2?(_(),k("div",kg,[d("span",wg,M(c.value)+" sessions selected",1),d("button",{class:"compare-bar-btn",onClick:m[8]||(m[8]=y=>Y(t).enterCompare())},[...m[33]||(m[33]=[d("i",{class:"i-carbon-compare"},null,-1),xe(" Compare ",-1)])])])):se("",!0)]),_:1}),D.value.length===0&&(u.value||f.value)?(_(),k("div",Cg,[...m[34]||(m[34]=[d("div",{class:"empty-title"},"No matching sessions",-1),d("div",{class:"empty-sub"},"Try adjusting your search or filters",-1)])])):Y(t).summaries.length===0?(_(),k("div",$g,[...m[35]||(m[35]=[d("div",{class:"empty-title"},"No requests captured",-1),d("div",{class:"empty-sub"},[xe("Point API calls to "),d("code",null,"localhost:4040")],-1)])])):se("",!0)],32))}}),Eg=st(Tg,[["__scopeId","data-v-a063358d"]]);function ei(e){var u,r;const t=e.composition||[],n=t.reduce((i,l)=>i+l.tokens,0),s=new Map(t.map(i=>[i.category,i.tokens])),o=[];for(const[i,l]of Object.entries(gs)){let a=0;for(const c of l)a+=s.get(c)??0;a>0&&o.push({key:i,label:((u=Et[i])==null?void 0:u.label)??i,color:((r=Et[i])==null?void 0:r.color)??"#4b5563",tokens:a,pct:n>0?a/n*100:0})}return o.sort((i,l)=>l.tokens-i.tokens)}function Sg(e,t){const n=ei(e);if(t.size===0)return n;const s=n.filter(u=>!t.has(u.key)),o=s.reduce((u,r)=>u+r.tokens,0);return s.map(u=>({...u,pct:o>0?u.tokens/o*100:0}))}function qu(e,t){return t.size===0?e.contextInfo.totalTokens:ei(e).filter(s=>!t.has(s.key)).reduce((s,o)=>s+o.tokens,0)}function Ag(e,t){const n=t.findIndex(s=>s.entry.id===e);if(n<=0)return null;for(let s=n-1;s>=0;s--)if(t[s].isMain)return t[s].entry;return null}function Dg(e,t){const n=t.findIndex(u=>u.entry.id===e);if(n<0)return 0;let s=n;for(let u=n;u>=0;u--)if(t[u].isMain){s=u;break}let o=0;for(let u=s+1;u<t.length&&!t[u].isMain;u++)o++;return o}function Fg(e,t){var o,u;const n=new Map,s=1800;for(const r of e){const i=[],l=Ag(r.entry.id,t);if(l&&r.isMain){const a=l.contextInfo.totalTokens,c=r.entry.contextInfo.totalTokens;a>0&&c<a*.75&&i.push({type:"compaction",label:"Compaction",detail:`${Ce(a)} → ${Ce(c)} total tokens`});const f=wr(l),h=wr(r.entry),g=f>0&&l.usage?l.usage.cacheReadTokens/f:null,v=h>0&&r.entry.usage?r.entry.usage.cacheReadTokens/h:null;if(g!==null&&v!==null){const E=v-g;if(Math.abs(E)>=.2){const C=Math.round(g*100),L=Math.round(v*100),D=E>0?"warmed up":"invalidated",F=E>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:E>0?"Cache warmed":"Cache invalidated",detail:`${C}% to ${L}% hit rate. Cache ${D}: ${F}.`})}}const S=((o=l.composition.find(E=>E.category==="tool_results"))==null?void 0:o.tokens)??0,$=((u=r.entry.composition.find(E=>E.category==="tool_results"))==null?void 0:u.tokens)??0;$-S>=s&&i.push({type:"tool-jump",label:"Tool jump",detail:`tool results +${Ce($-S)}`})}if(r.isMain){const a=Dg(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 Mg(e){return e.type==="compaction"?"C":e.type==="cache-shift"?e.label==="Cache warmed"?"▲":"▽":e.type==="subagent-burst"?"S":"T"}function Ig(e,t){if(e.length===1){const s=e[0];return`<span class="tip-label">Turn ${t}: ${s.label}</span><span class="tip-detail">${s.detail}</span>`}const n=e.map(s=>`<span class="tip-label">${s.label}</span><span class="tip-detail">${s.detail}</span>`).join("");return`<span class="tip-label">Turn ${t}</span>${n}`}function ld(e,t){const n=t.findIndex(A=>A.entry.id===e.id);if(n<0)return null;const s=e.agentKey||"_default";let o=null;for(let A=n-1;A>=0;A--){const V=t[A].entry;if((V.agentKey||"_default")===s){o=V;break}}if(!o)return null;const u=o.composition||[],r=e.composition||[],i=o.contextInfo.totalTokens,a=e.contextInfo.totalTokens-i,c=new Set;for(const A of u)c.add(A.category);for(const A of r)c.add(A.category);const f=[];for(const A of c){const V=u.find(le=>le.category===A),G=r.find(le=>le.category===A),Z=V?V.tokens:0,K=G?G.tokens:0,pe=K-Z,H=ut[A]||{label:A};f.push({category:A,label:H.label,delta:pe,prevTokens:Z,currTokens:K})}const h=[];for(const A of[...f].sort((V,G)=>Math.abs(G.delta)-Math.abs(V.delta)))A.delta===0?h.push({type:"same",text:` ${A.label}: ${Ce(A.currTokens)} (unchanged)`,category:A.category,delta:A.delta}):A.prevTokens===0?h.push({type:"add",text:`+ ${A.label}: ${Ce(A.currTokens)} (new)`,category:A.category,delta:A.delta}):A.currTokens===0?h.push({type:"remove",text:`- ${A.label}: ${Ce(A.prevTokens)} (removed)`,category:A.category,delta:A.delta}):A.delta>0?h.push({type:"add",text:`+ ${A.label}: ${Ce(A.prevTokens)} → ${Ce(A.currTokens)} (+${Ce(A.delta)})`,category:A.category,delta:A.delta}):h.push({type:"remove",text:`- ${A.label}: ${Ce(A.prevTokens)} → ${Ce(A.currTokens)} (${Ce(A.delta)})`,category:A.category,delta:A.delta});const g=new Map;for(const[A,V]of Object.entries(gs))for(const G of V)g.set(G,A);const v=new Map,S=new Map;for(const A of f){const V=g.get(A.category)??"other";v.set(V,(v.get(V)??0)+A.delta);const G=S.get(V);(!G||Math.abs(A.delta)>G.absDelta)&&S.set(V,{category:A.category,absDelta:Math.abs(A.delta)})}const $=Array.from(v.entries()).map(([A,V])=>{var G,Z;return{group:A,label:((G=Et[A])==null?void 0:G.label)??A,delta:V,category:((Z=S.get(A))==null?void 0:Z.category)??""}}).filter(A=>A.delta!==0).sort((A,V)=>Math.abs(V.delta)-Math.abs(A.delta)),E=$.filter(A=>A.delta>0).slice(0,3),C=$.filter(A=>A.delta<0).slice(0,3);let L=0,D=0,F=0;for(const A of t)(A.entry.agentKey||"_default")===s&&F++,A.entry.id===o.id&&(L=F),A.entry.id===e.id&&(D=F);return{prevTurnNum:L,currTurnNum:D,delta:a,lines:h,topIncreases:E,topDecreases:C}}function El(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 Uu(e,t,n=3){return t===0?n:Math.max(n,Math.round(e/t*100))}function Vu(e,t=4){if(e===0)return[0];const n=e/t,s=Math.pow(10,Math.floor(Math.log10(n))),o=Math.ceil(n/s)*s,u=[];for(let r=0;r<=t;r++){const i=r*o;i<=e*1.1&&u.push(i)}return u}function Pg(e){return e>30?Math.ceil(e/15):1}function Lg(e){let t=0;return e.map(n=>(n.isMain&&t++,n.isMain?t:0))}function Rg(e,t){return`${t?"":"Sub "}${kn(e.contextInfo.model)}: ${Ce(e.contextInfo.totalTokens)} / ${Ct(e.costUsd)}`}function Og(e,t){const n=ei(e),s=e.contextInfo.totalTokens,o=n.map(u=>`${u.key===t.key?"▸ ":" "}${u.label}: ${Ce(u.tokens)} (${u.pct.toFixed(1)}%)`);return o.push(` Total: ${Ce(s)}`),o.join(`
|
|
31
|
+
`)}function Sl(e,t){return t==="cost"?Ct(e):Ce(e)}function kr(e){if(!e.usage)return null;const t=wr(e);return t===0?null:e.usage.cacheReadTokens/t}function wr(e){return e.usage?e.usage.inputTokens+e.usage.cacheReadTokens+e.usage.cacheWriteTokens:0}function zg(e){const t={turnsRemaining:null,growthPerTurn:0,sinceCompaction:0,contextLimit:0,currentTokens:0};if(e.length===0)return t;const n=e.filter(S=>S.isMain).map(S=>S.entry);if(n.length<2)return t;const o=n[n.length-1].contextLimit;if(o<=0)return t;let u=0;for(let S=1;S<n.length;S++){const $=n[S-1].contextInfo.totalTokens,E=n[S].contextInfo.totalTokens;$>0&&E<$*.75&&(u=S)}const r=n.slice(u);if(r.length<2)return t;const i=r[0].contextInfo.totalTokens,l=r[r.length-1].contextInfo.totalTokens,a=l-i,c=r.length-1,f=a/c,h=l,g=o-h;let v=null;return f>0&&(v=Math.floor(g/f),v<0&&(v=0)),{turnsRemaining:v,growthPerTurn:f,sinceCompaction:r.length,contextLimit:o,currentTokens:h}}function Ng(e){var l,a;const t=Math.round(e.utilization*100),n=e.healthScore,s=[...e.composition].sort((c,f)=>f.tokens-c.tokens)[0],o=e.topDelta;let u="narrative-neutral",r=`Context is at ${t}% utilization.`;(n==null?void 0:n.rating)==="poor"||t>=85?(u="narrative-advisory",r=`Turn health is elevated risk (${n?n.overall+"/100":t+"% utilization"}).`):(n==null?void 0:n.rating)==="needs-work"||t>=65?(u="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(s&&i.push(`${((l=ut[s.category])==null?void 0:l.label)??s.category} is the largest share (${Math.round(s.pct)}%).`),o){const c=((a=ut[o.category])==null?void 0:a.label)??o.category,f=o.delta>0?"grew":"shrank";i.push(`${c} ${f} most vs previous main turn (${Ce(Math.abs(o.delta))}).`)}return{toneClass:u,headline:r,detail:i.join(" ")}}const Bg={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 jg(e){const t=Bg[e.name];if(!t)return null;const n=e.input;if(!n||typeof n!="object")return null;for(const s of t.paramKeys){const o=n[s];if(typeof o=="string"&&o.length>0)return{path:Hg(o),kind:t.kind}}return null}function Hg(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 ad(e,t){if(!t)return e;const n=t.endsWith("/")?t:t+"/";if(e.startsWith(n))return e.slice(n.length);const s=qg(e);return s?"~/"+e.slice(s.length):e}function qg(e){const t=e.match(/^(\/(?:home|Users)\/[^/]+\/)/);return t?t[1]:null}function Ug(e,t){const n=new Map;for(const s of e){if(!s.contentBlocks)continue;const u=s.contentBlocks.filter(r=>r.type==="tool_use").length>0?(s.tokens||0)/s.contentBlocks.length:0;for(const r of s.contentBlocks){if(r.type!=="tool_use")continue;const i=r,l=jg(i);if(l&&i.id){const a=ad(l.path,t);n.set(i.id,{path:a,kind:l.kind,tokens:Math.round(u)})}}}return n}function cd(e,t){const n=new Set,s=new Map;function o(u){let r=s.get(u);return r||(r={path:u,tokens:0,reads:0,writes:0,toolResultTokens:0,toolCallTokens:0},s.set(u,r)),r}for(const u of e){const r=u.contextInfo.messages??[];if(r.length===0)continue;const i=Ug(r,t);for(const[l,a]of i){if(n.has(l))continue;n.add(l);const c=o(a.path);c.toolCallTokens+=a.tokens,c.tokens+=a.tokens,a.kind==="read"?c.reads++:c.writes++}for(const l of r){if(!l.contentBlocks)continue;const a=l.contentBlocks.filter(f=>f.type==="tool_result");if(a.length===0)continue;const c=a.length>0?(l.tokens||0)/a.length:0;for(const f of a){if(f.type!=="tool_result")continue;const h=f.tool_use_id,g=i.get(h);if(!g||!n.has(h))continue;const v=o(g.path),S=Math.round(c);v.toolResultTokens+=S,v.tokens+=S}}}return Array.from(s.values()).filter(u=>u.tokens>0).sort((u,r)=>r.tokens-u.tokens)}function ti(e){const t=e.split("/");return t[t.length-1]||e}function Al(e){const t=e.lastIndexOf("/");return t<=0?"":e.slice(0,t)}const Dl=["#3b82f6","#8b5cf6","#06b6d4","#10b981","#f59e0b","#ef4444","#ec4899","#14b8a6","#6366f1","#84cc16"];function Cr(e){return Dl[e%Dl.length]}const Vg=8e3,Fl=.4;function Ts(e,t){var n;return((n=e.find(s=>s.category===t))==null?void 0:n.tokens)??0}function Wg(e){return e.reduce((t,n)=>t+n.tokens,0)}function Kg(e){var n;const t=new Set;for(const s of e.contextInfo.tools??[]){const o=s,u=typeof o.name=="string"?o.name:typeof((n=o.function)==null?void 0:n.name)=="string"?o.function.name:null;u&&t.add(u)}return t}const $o={oversized_results:"#ef4444",repeated_system:"#6366f1",unused_tools:"#f59e0b",thinking_spill:"#8b5cf6"};function Gg(e,t,n){const s=e.composition,o=Wg(s);if(o===0)return{totalTokens:0,wasteTokens:0,wasteRatio:0,categories:[],unusedToolNames:[]};const u=[],r=Ts(s,"tool_results"),i=Math.max(0,r-Vg);if(i>0&&u.push({id:"oversized_results",label:"Oversized results",tokens:i,pct:i/o,color:$o.oversized_results}),!t){const g=Ts(s,"system_prompt")+Ts(s,"system_injections");g>0&&u.push({id:"repeated_system",label:"System overhead",tokens:g,pct:g/o,color:$o.repeated_system})}const l=Kg(e),a=[...l].filter(g=>!n.has(g));if(a.length>0&&l.size>0){const g=Ts(s,"tool_definitions"),v=Math.round(g*(a.length/l.size));v>0&&u.push({id:"unused_tools",label:"Unused tool defs",tokens:v,pct:v/o,color:$o.unused_tools})}const c=Ts(s,"thinking"),f=c/o>Fl?Math.round(c-o*Fl):0;f>0&&u.push({id:"thinking_spill",label:"Excess thinking",tokens:f,pct:f/o,color:$o.thinking_spill}),u.sort((g,v)=>v.tokens-g.tokens);const h=u.reduce((g,v)=>g+v.tokens,0);return{totalTokens:o,wasteTokens:h,wasteRatio:h/o,categories:u,unusedToolNames:a}}function Zg(e){var t=0,n=e.children,s=n&&n.length;if(!s)t=1;else for(;--s>=0;)t+=n[s].value;e.value=t}function Jg(){return this.eachAfter(Zg)}function Yg(e,t){let n=-1;for(const s of this)e.call(t,s,++n,this);return this}function Xg(e,t){for(var n=this,s=[n],o,u,r=-1;n=s.pop();)if(e.call(t,n,++r,this),o=n.children)for(u=o.length-1;u>=0;--u)s.push(o[u]);return this}function Qg(e,t){for(var n=this,s=[n],o=[],u,r,i,l=-1;n=s.pop();)if(o.push(n),u=n.children)for(r=0,i=u.length;r<i;++r)s.push(u[r]);for(;n=o.pop();)e.call(t,n,++l,this);return this}function ev(e,t){let n=-1;for(const s of this)if(e.call(t,s,++n,this))return s}function tv(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,s=t.children,o=s&&s.length;--o>=0;)n+=s[o].value;t.value=n})}function nv(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function sv(e){for(var t=this,n=ov(t,e),s=[t];t!==n;)t=t.parent,s.push(t);for(var o=s.length;e!==n;)s.splice(o,0,e),e=e.parent;return s}function ov(e,t){if(e===t)return e;var n=e.ancestors(),s=t.ancestors(),o=null;for(e=n.pop(),t=s.pop();e===t;)o=e,e=n.pop(),t=s.pop();return o}function uv(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function rv(){return Array.from(this)}function iv(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function lv(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*av(){var e=this,t,n=[e],s,o,u;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,s=e.children)for(o=0,u=s.length;o<u;++o)n.push(s[o]);while(n.length)}function ni(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=fv)):t===void 0&&(t=dv);for(var n=new Yo(e),s,o=[n],u,r,i,l;s=o.pop();)if((r=t(s.data))&&(l=(r=Array.from(r)).length))for(s.children=r,i=l-1;i>=0;--i)o.push(u=r[i]=new Yo(r[i])),u.parent=s,u.depth=s.depth+1;return n.eachBefore(hv)}function cv(){return ni(this).eachBefore(pv)}function dv(e){return e.children}function fv(e){return Array.isArray(e)?e[1]:null}function pv(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function hv(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Yo(e){this.data=e,this.depth=this.height=0,this.parent=null}Yo.prototype=ni.prototype={constructor:Yo,count:Jg,each:Yg,eachAfter:Qg,eachBefore:Xg,find:ev,sum:tv,sort:nv,path:sv,ancestors:uv,descendants:rv,leaves:iv,links:lv,copy:cv,[Symbol.iterator]:av};function mv(e){if(typeof e!="function")throw new Error;return e}function Es(){return 0}function Ss(e){return function(){return e}}function gv(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 vv(e,t,n,s,o){for(var u=e.children,r,i=-1,l=u.length,a=e.value&&(s-t)/e.value;++i<l;)r=u[i],r.y0=n,r.y1=o,r.x0=t,r.x1=t+=r.value*a}function bv(e,t,n,s,o){for(var u=e.children,r,i=-1,l=u.length,a=e.value&&(o-n)/e.value;++i<l;)r=u[i],r.x0=t,r.x1=s,r.y0=n,r.y1=n+=r.value*a}var _v=(1+Math.sqrt(5))/2;function yv(e,t,n,s,o,u){for(var r=[],i=t.children,l,a,c=0,f=0,h=i.length,g,v,S=t.value,$,E,C,L,D,F,A;c<h;){g=o-n,v=u-s;do $=i[f++].value;while(!$&&f<h);for(E=C=$,F=Math.max(v/g,g/v)/(S*e),A=$*$*F,D=Math.max(C/A,A/E);f<h;++f){if($+=a=i[f].value,a<E&&(E=a),a>C&&(C=a),A=$*$*F,L=Math.max(C/A,A/E),L>D){$-=a;break}D=L}r.push(l={value:$,dice:g<v,children:i.slice(c,f)}),l.dice?vv(l,n,s,o,S?s+=v*$/S:u):bv(l,n,s,S?n+=g*$/S:o,u),S-=$,c=f}return r}const xv=(function e(t){function n(s,o,u,r,i){yv(t,s,o,u,r,i)}return n.ratio=function(s){return e((s=+s)>1?s:1)},n})(_v);function kv(){var e=xv,t=!1,n=1,s=1,o=[0],u=Es,r=Es,i=Es,l=Es,a=Es;function c(h){return h.x0=h.y0=0,h.x1=n,h.y1=s,h.eachBefore(f),o=[0],t&&h.eachBefore(gv),h}function f(h){var g=o[h.depth],v=h.x0+g,S=h.y0+g,$=h.x1-g,E=h.y1-g;$<v&&(v=$=(v+$)/2),E<S&&(S=E=(S+E)/2),h.x0=v,h.y0=S,h.x1=$,h.y1=E,h.children&&(g=o[h.depth+1]=u(h)/2,v+=a(h)-g,S+=r(h)-g,$-=i(h)-g,E-=l(h)-g,$<v&&(v=$=(v+$)/2),E<S&&(S=E=(S+E)/2),e(h,v,S,$,E))}return c.round=function(h){return arguments.length?(t=!!h,c):t},c.size=function(h){return arguments.length?(n=+h[0],s=+h[1],c):[n,s]},c.tile=function(h){return arguments.length?(e=mv(h),c):e},c.padding=function(h){return arguments.length?c.paddingInner(h).paddingOuter(h):c.paddingInner()},c.paddingInner=function(h){return arguments.length?(u=typeof h=="function"?h:Ss(+h),c):u},c.paddingOuter=function(h){return arguments.length?c.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):c.paddingTop()},c.paddingTop=function(h){return arguments.length?(r=typeof h=="function"?h:Ss(+h),c):r},c.paddingRight=function(h){return arguments.length?(i=typeof h=="function"?h:Ss(+h),c):i},c.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:Ss(+h),c):l},c.paddingLeft=function(h){return arguments.length?(a=typeof h=="function"?h:Ss(+h),c):a},c}const wv={key:0,class:"panel panel--hero"},Cv={class:"panel-head"},$v={class:"panel-title"},Tv={class:"panel-sub"},Ev={class:"mode-toggle"},Sv={class:"panel-body"},Av={key:0,class:"treemap"},Dv=["onClick"],Fv={class:"tm-label"},Mv={class:"tm-val"},Iv={key:1,class:"tm-label-compact"},Pv={key:2,class:"tm-pct"},Lv={key:1,class:"treemap treemap-simple"},Rv=["onClick"],Ov={class:"tm-label"},zv={class:"tm-val"},Nv={key:2,class:"treemap"},Bv=["onClick"],jv={class:"tm-label"},Hv={class:"tm-val"},qv={key:1,class:"tm-label-compact"},Uv={key:2,class:"tm-pct"},Vv={class:"legend"},Wv={class:"legend-pct"},Kv={key:0,class:"legend-item"},Gv={class:"legend-file-path"},Zv={class:"legend-pct"},Jv={key:0,class:"legend-item"},Yv={class:"legend-pct"},Ml=5,Il=6,Xv=Qe({__name:"CompositionTreemap",props:{entry:{},turnNum:{}},emits:["categoryClick","toolClick","fileClick","explain"],setup(e,{emit:t}){const n=e,s=Tt(),o=t,u=ie("detailed"),r=ie(null),i=R(()=>{var be;const H=((be=n.entry)==null?void 0:be.composition)||[],le=[];for(const[J,de]of Object.entries(gs)){let he=0;for(const W of de){const re=H.find(ke=>ke.category===W);re&&(he+=re.tokens)}if(he>0){const W=Et[J];le.push({key:J,label:W.label,color:W.color,tokens:he})}}return le}),l=R(()=>{const H=n.entry;return H?H.composition.filter(le=>le.tokens>0).map(le=>{var be,J;return{key:le.category,label:((be=ut[le.category])==null?void 0:be.label)??le.category,color:((J=ut[le.category])==null?void 0:J.color)??"#4b5563",tokens:le.tokens,category:le.category}}):[]});function a(H){const le=["#10b981","#34d399","#14b8a6","#2dd4bf","#10b981","#06b6d4","#0ea5e9"];return le[H%le.length]}const c=R(()=>{const H=n.entry;if(!H)return[];const le=H.contextInfo.messages||[],be=yu(le),J=new Map;for(const de of le){if(It(de)!=="tool_results")continue;const he=(de.contentBlocks||[]).filter(re=>re.type==="tool_result");if(he.length===0)continue;const W=(de.tokens||0)/he.length;for(const re of he){const ke=re.tool_use_id||"unknown",j=be[ke]||`tool:${ke.slice(0,8)}`;J.set(j,(J.get(j)||0)+W)}}return Array.from(J.entries()).sort((de,he)=>he[1]-de[1]).map(([de,he],W)=>({key:`tool-${de}-${W}`,label:de,color:a(W),tokens:Math.max(1,Math.round(he)),category:"tool_results",toolName:de}))}),f=R(()=>r.value==="tool_results"&&c.value.length>0?c.value:l.value),h=R(()=>{const H=s.selectedSession;if(!H||H.entries.length===0)return[];const le=H.workingDirectory;return cd(H.entries,le).map((J,de)=>({key:`file-${J.path}-${de}`,label:ti(J.path),color:Cr(de),tokens:J.tokens,category:"files",toolName:J.path}))}),g=R(()=>D(h.value)),v=R(()=>h.value.length>0),S=R(()=>f.value.slice(0,Ml)),$=R(()=>f.value.slice(Ml)),E=R(()=>$.value.map(H=>`${H.label}: ${pe(H.tokens)}`).join(`
|
|
32
|
+
`)),C=R(()=>h.value.slice(0,Il)),L=R(()=>h.value.slice(Il).map(H=>`${H.toolName||H.label}: ${pe(H.tokens)}`).join(`
|
|
33
|
+
`));function D(H){if(H.length===0)return[];const le=H.reduce((de,he)=>de+he.tokens,0),be=ni({key:"root",label:"root",color:"#000000",tokens:0,children:H}).sum(de=>de.children&&de.children.length>0?0:Math.max(0,de.tokens||0));return kv().size([100,100]).paddingInner(1).round(!0)(be).leaves().map(de=>{const he=de.data;return{key:he.key,label:he.label,color:he.color,tokens:he.tokens,category:he.category,x:de.x0,y:de.y0,w:de.x1-de.x0,h:de.y1-de.y0,pct:le>0?he.tokens/le*100:0}})}const F=R(()=>D(f.value));function A(H){if(r.value===null&&H.category==="tool_results"&&c.value.length>1){r.value="tool_results";return}if(r.value==="tool_results"&&H.toolName){o("toolClick",H.toolName);return}o("categoryClick",H.category||"tool_results")}function V(H){const le=n.entry;if(!le)return;const be=gs[H]||[];if(be.length===0)return;let J=be[0],de=-1;for(const he of be){const W=le.composition.find(ke=>ke.category===he),re=(W==null?void 0:W.tokens)??0;re>de&&(de=re,J=he)}o("categoryClick",J)}function G(H){H.toolName&&o("fileClick",H.toolName)}function Z(){r.value=null}const K=R(()=>{var H;return((H=n.entry)==null?void 0:H.contextInfo.totalTokens)??0});function pe(H){return K.value===0?"":Math.round(H/K.value*100)+"%"}return Ge(()=>{var H;return(H=n.entry)==null?void 0:H.id},()=>{r.value=null}),(H,le)=>{const be=qn("tooltip");return e.entry.composition.length>0?(_(),k("section",wv,[d("div",Cv,[d("span",$v,[le[5]||(le[5]=xe("Composition ",-1)),d("button",{class:"info-btn",onClick:le[0]||(le[0]=J=>o("explain"))},[...le[4]||(le[4]=[d("i",{class:"i-carbon-information"},null,-1)])])]),d("span",Tv,"Turn "+M(e.turnNum)+" · "+M(Y(Ce)(e.entry.composition.reduce((J,de)=>J+de.tokens,0))),1),u.value==="detailed"&&r.value?(_(),k("button",{key:0,class:"treemap-back",onClick:Z}," Back to categories ")):se("",!0),d("div",Ev,[d("button",{class:ue({on:u.value==="detailed"}),onClick:le[1]||(le[1]=J=>u.value="detailed")},"Detail",2),d("button",{class:ue({on:u.value==="simple"}),onClick:le[2]||(le[2]=J=>u.value="simple")},"Simple",2),v.value?(_(),k("button",{key:0,class:ue({on:u.value==="files"}),onClick:le[3]||(le[3]=J=>u.value="files")},"Files",2)):se("",!0)])]),d("div",Sv,[u.value==="detailed"?(_(),k("div",Av,[(_(!0),k(ce,null,Ee(F.value,J=>He((_(),k("button",{key:J.key,class:"tm-block tm-block-2d",style:Se({left:J.x+"%",top:J.y+"%",width:J.w+"%",height:J.h+"%",background:J.color}),onClick:de=>A(J)},[J.w>=18&&J.h>=16?(_(),k(ce,{key:0},[d("span",Fv,M(J.label),1),d("span",Mv,M(Y(Ce)(J.tokens)),1)],64)):J.w>=12&&J.h>=12?(_(),k("span",Iv,M(J.label.slice(0,8))+M(J.label.length>8?"…":""),1)):J.w>=8&&J.h>=8?(_(),k("span",Pv,M(Math.round(J.pct))+"%",1)):se("",!0)],12,Dv)),[[be,`${J.label}: ${J.tokens.toLocaleString()} (${J.pct.toFixed(1)}%)`]])),128))])):u.value==="simple"?(_(),k("div",Lv,[(_(!0),k(ce,null,Ee(i.value,J=>He((_(),k("div",{key:J.key,class:ue(["tm-block tm-block-simple",{"tm-block-narrow":J.tokens/e.entry.composition.reduce((de,he)=>de+he.tokens,0)<.15}]),style:Se({flex:J.tokens,background:J.color}),onClick:de=>V(J.key)},[d("span",Ov,M(J.label),1),d("span",zv,M(Y(Ce)(J.tokens)),1)],14,Rv)),[[be,`${J.label}: ${J.tokens.toLocaleString()}`]])),128))])):u.value==="files"?(_(),k("div",Nv,[(_(!0),k(ce,null,Ee(g.value,J=>He((_(),k("button",{key:J.key,class:"tm-block tm-block-2d",style:Se({left:J.x+"%",top:J.y+"%",width:J.w+"%",height:J.h+"%",background:J.color}),onClick:de=>G(J)},[J.w>=18&&J.h>=16?(_(),k(ce,{key:0},[d("span",jv,M(J.label),1),d("span",Hv,M(Y(Ce)(J.tokens)),1)],64)):J.w>=12&&J.h>=12?(_(),k("span",qv,M(J.label.slice(0,8))+M(J.label.length>8?"…":""),1)):J.w>=8&&J.h>=8?(_(),k("span",Uv,M(Math.round(J.pct))+"%",1)):se("",!0)],12,Bv)),[[be,`${J.toolName||J.label}: ${J.tokens.toLocaleString()} (${J.pct.toFixed(1)}%)`]])),128))])):se("",!0),d("div",Vv,[u.value==="detailed"?(_(),k(ce,{key:0},[(_(!0),k(ce,null,Ee(S.value,J=>(_(),k("span",{key:`legend-${J.key}`,class:"legend-item"},[d("span",{class:"legend-dot",style:Se({background:J.color})},null,4),xe(" "+M(J.label)+" ",1),d("span",Wv,M(pe(J.tokens)),1)]))),128)),f.value.length>S.value.length?He((_(),k("span",Kv,[xe(" +"+M(f.value.length-S.value.length)+" more ",1)])),[[be,E.value]]):se("",!0)],64)):u.value==="files"?(_(),k(ce,{key:1},[(_(!0),k(ce,null,Ee(C.value,J=>(_(),k("span",{key:`legend-file-${J.key}`,class:"legend-item"},[d("span",{class:"legend-dot",style:Se({background:J.color})},null,4),He((_(),k("span",Gv,[xe(M(J.label),1)])),[[be,J.toolName||J.label]]),d("span",Zv,M(pe(J.tokens)),1)]))),128)),h.value.length>C.value.length?He((_(),k("span",Jv,[xe(" +"+M(h.value.length-C.value.length)+" more ",1)])),[[be,L.value]]):se("",!0)],64)):(_(!0),k(ce,{key:2},Ee(i.value,J=>(_(),k("span",{key:J.key,class:"legend-item"},[d("span",{class:"legend-dot",style:Se({background:J.color})},null,4),xe(" "+M(J.label)+" ",1),d("span",Yv,M(pe(J.tokens)),1)]))),128))])])])):se("",!0)}}}),Qv=st(Xv,[["__scopeId","data-v-65684877"]]),e2={key:0,class:"panel panel--secondary"},t2={class:"panel-head"},n2={class:"panel-sub"},s2={class:"panel-body diff-body"},o2={key:0,class:"diff-tapes"},u2={class:"diff-tape-row"},r2={class:"diff-tape-label"},i2={class:"diff-tape-track"},l2={class:"diff-tape-val"},a2={class:"diff-tape-row"},c2={class:"diff-tape-label"},d2={class:"diff-tape-track"},f2={class:"diff-tape-val"},p2={key:1,class:"diff-summary-row"},h2={key:0,class:"diff-summary-group"},m2={class:"diff-summary-label"},g2=["onClick"],v2=["onClick"],b2={key:0,class:"diff-summary-group"},_2={class:"diff-summary-label"},y2=["onClick"],x2={key:1,class:"diff-summary-group"},k2={class:"diff-summary-label"},w2=["onClick"],C2={key:2,class:"diff-hidden-wrap"},$2={class:"diff-hidden-note"},T2=["onClick"],E2={key:1,class:"diff-empty"},S2=2e3,A2=Qe({__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,s=t,o=R(()=>!!n.diffData||n.showWhenEmpty),u=R(()=>{const g=n.diffData;return g?n.hideUnchanged?g.lines.filter(v=>v.type!=="same"):g.lines:[]}),r=R(()=>{const g=n.diffData,v=n.currentEntry;if(!g||!v)return[];const S=new Map(v.composition.map($=>[$.category,$.tokens]));return g.lines.filter($=>$.type==="same").map($=>{var E;return{category:$.category,label:((E=ut[$.category])==null?void 0:E.label)??$.category,tokens:S.get($.category)??0}}).sort(($,E)=>E.tokens-$.tokens)}),i=R(()=>r.value.length===0?"":r.value.map(g=>`${g.label}: ${Ce(g.tokens)}`).join(`
|
|
34
|
+
`)),l=R(()=>{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)>=S2}function c(g,v){return a(g)?v==="up"?"diff-tone-up":"diff-tone-down":"diff-tone-muted"}function f(g){return g.type==="same"?"diff-tone-muted":g.type==="add"?c(g.delta,"up"):c(g.delta,"down")}function h(g){s("categoryClick",g)}return(g,v)=>{const S=qn("tooltip");return o.value?(_(),k("section",e2,[d("div",t2,[v[0]||(v[0]=d("span",{class:"panel-title"},"Context Diff",-1)),e.diffData?(_(),k(ce,{key:0},[d("span",n2,"Turn "+M(e.diffData.prevTurnNum)+" → "+M(e.diffData.currTurnNum),1),d("span",{class:"diff-delta",style:Se({color:l.value})},M(e.diffData.delta>=0?"+":"")+M(Y(Ce)(e.diffData.delta)),5)],64)):se("",!0)]),d("div",s2,[e.diffData?(_(),k(ce,{key:0},[e.showTapes&&e.currentEntry&&e.previousEntry?(_(),k("div",o2,[d("div",u2,[d("span",r2,"T"+M(e.diffData.prevTurnNum),1),d("div",i2,[(_(!0),k(ce,null,Ee(e.previousEntry.composition,$=>{var E;return _(),k("div",{key:"prev-"+$.category,class:"diff-tape-seg",style:Se({flex:$.tokens,background:((E=Y(ut)[$.category])==null?void 0:E.color)??"#475569"})},null,4)}),128))]),d("span",l2,M(Y(Ce)(e.previousEntry.contextInfo.totalTokens)),1)]),d("div",a2,[d("span",c2,"T"+M(e.diffData.currTurnNum),1),d("div",d2,[(_(!0),k(ce,null,Ee(e.currentEntry.composition,$=>{var E;return _(),k("div",{key:"curr-"+$.category,class:"diff-tape-seg",style:Se({flex:$.tokens,background:((E=Y(ut)[$.category])==null?void 0:E.color)??"#475569"})},null,4)}),128))]),d("span",f2,M(Y(Ce)(e.currentEntry.contextInfo.totalTokens)),1)])])):se("",!0),e.diffData.topIncreases.length>0||e.diffData.topDecreases.length>0?(_(),k("div",p2,[e.summaryMode==="combined"?(_(),k("div",h2,[d("span",m2,M(e.combinedLabel),1),(_(!0),k(ce,null,Ee(e.diffData.topIncreases,$=>(_(),k("button",{key:"inc-"+$.group,class:ue(["diff-summary-chip",c($.delta,"up")]),onClick:E=>h($.category)},M($.label)+" +"+M(Y(Ce)($.delta)),11,g2))),128)),(_(!0),k(ce,null,Ee(e.diffData.topDecreases,$=>(_(),k("button",{key:"dec-"+$.group,class:ue(["diff-summary-chip",c($.delta,"down")]),onClick:E=>h($.category)},M($.label)+" "+M(Y(Ce)($.delta)),11,v2))),128))])):(_(),k(ce,{key:1},[e.diffData.topIncreases.length>0?(_(),k("div",b2,[d("span",_2,M(e.growthLabel),1),(_(!0),k(ce,null,Ee(e.diffData.topIncreases,$=>(_(),k("button",{key:"inc-"+$.group,class:ue(["diff-summary-chip",c($.delta,"up")]),onClick:E=>h($.category)},M($.label)+" +"+M(Y(Ce)($.delta)),11,y2))),128))])):se("",!0),e.diffData.topDecreases.length>0?(_(),k("div",x2,[d("span",k2,M(e.shrinkLabel),1),(_(!0),k(ce,null,Ee(e.diffData.topDecreases,$=>(_(),k("button",{key:"dec-"+$.group,class:ue(["diff-summary-chip",c($.delta,"down")]),onClick:E=>h($.category)},M($.label)+" "+M(Y(Ce)($.delta)),11,w2))),128))])):se("",!0)],64))])):se("",!0),e.hideUnchanged&&r.value.length>0?(_(),k("div",C2,[He((_(),k("span",$2,[xe(M(r.value.length)+" unchanged "+M(r.value.length===1?"category":"categories")+" hidden ",1)])),[[S,i.value]])])):se("",!0),(_(!0),k(ce,null,Ee(u.value,($,E)=>(_(),k("button",{key:"line-"+E,class:ue(["diff-line",["diff-"+$.type,f($)]]),onClick:C=>h($.category)},M($.text),11,T2))),128))],64)):(_(),k("span",E2,M(e.emptyText),1))])])):se("",!0)}}}),dd=st(A2,[["__scopeId","data-v-f23cde3c"]]),D2={key:0,class:"panel panel--primary"},F2={class:"panel-head"},M2={key:0,class:"finding-count"},I2={key:0,class:"audit-row"},P2=["onClick"],L2={class:"rec-content"},R2={class:"rec-title"},O2=Qe({__name:"HealthFindings",props:{entry:{},recommendations:{},auditTooltip:{type:Function}},emits:["recommendationClick"],setup(e,{emit:t}){const n=t;function s(o){o.messageIndex!=null&&n("recommendationClick",o)}return(o,u)=>{const r=qn("tooltip");return e.entry.healthScore||e.recommendations.length>0?(_(),k("section",D2,[d("div",F2,[u[1]||(u[1]=d("span",{class:"panel-title"},"Findings",-1)),e.recommendations.length?(_(),k("span",M2,M(e.recommendations.length),1)):se("",!0)]),e.entry.healthScore?(_(),k("div",I2,[(_(!0),k(ce,null,Ee(e.entry.healthScore.audits,i=>He((_(),k("span",{key:i.id,class:ue(["audit-chip",i.score>=90?"audit-good":i.score>=50?"audit-warn":"audit-bad"])},[xe(M(i.name)+" ",1),d("b",null,M(i.score),1)],2)),[[r,e.auditTooltip(i)]])),128))])):se("",!0),e.recommendations.length>0?(_(),k("div",{key:1,class:ue(["panel-body rec-list",{"rec-list--scroll":e.recommendations.length>3}])},[(_(!0),k(ce,null,Ee(e.recommendations,(i,l)=>(_(),k("div",{key:l,class:ue(["rec",{"rec-clickable":i.messageIndex!=null}]),onClick:a=>i.messageIndex!=null&&s(i)},[d("i",{class:ue(["rec-icon",[`sev-${i.severity}`,i.severity==="high"?"i-carbon-warning-alt":i.severity==="med"?"i-carbon-information":"i-carbon-checkmark"]])},null,2),d("div",L2,[d("div",R2,M(i.title),1),d("div",{class:"rec-detail",onClick:u[0]||(u[0]=bt(()=>{},["stop"]))},M(i.detail),1)]),d("span",{class:ue(["rec-impact",`sev-${i.severity}`])},M(i.impact),3)],10,P2))),128))],2)):se("",!0)])):se("",!0)}}}),z2=st(O2,[["__scopeId","data-v-855dfc40"]]),N2={class:"explain-header"},B2={class:"explain-title"},j2={class:"explain-tabs"},H2={class:"explain-body"},q2=Qe({__name:"ExplainPanel",props:{open:{type:Boolean},section:{}},emits:["close"],setup(e,{emit:t}){const n=e,s=t,o=ie("health");Ge(()=>n.section,i=>{i&&(o.value=i)});function u(){s("close")}function r(i){i.stopPropagation()}return(i,l)=>(_(),rt(Ba,{to:"body"},[Le(Pt,{name:"explain"},{default:nt(()=>[e.open?(_(),k("div",{key:0,class:"explain-overlay",onClick:u},[d("aside",{class:"explain-panel",onClick:r},[d("header",N2,[d("h2",B2,[l[3]||(l[3]=d("i",{class:"i-carbon-information"},null,-1)),xe(" "+M(o.value==="health"?"Health Score":"Composition"),1)]),d("button",{class:"explain-close",onClick:l[0]||(l[0]=a=>s("close"))},[...l[4]||(l[4]=[d("i",{class:"i-carbon-close"},null,-1)])])]),d("nav",j2,[d("button",{class:ue(["explain-tab",{active:o.value==="health"}]),onClick:l[1]||(l[1]=a=>o.value="health")},"Health",2),d("button",{class:ue(["explain-tab",{active:o.value==="composition"}]),onClick:l[2]||(l[2]=a=>o.value="composition")},"Composition",2)]),d("div",H2,[o.value==="health"?(_(),k(ce,{key:0},[l[5]||(l[5]=d("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]=d("div",{class:"explain-audit"},[d("div",{class:"audit-name"},[d("span",{class:"audit-weight"},"30%"),xe(" Context Utilization ")]),d("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]=d("div",{class:"explain-audit"},[d("div",{class:"audit-name"},[d("span",{class:"audit-weight"},"25%"),xe(" Tool Results ")]),d("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]=d("div",{class:"explain-audit"},[d("div",{class:"audit-name"},[d("span",{class:"audit-weight"},"20%"),xe(" Tool Definitions ")]),d("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]=d("div",{class:"explain-audit"},[d("div",{class:"audit-name"},[d("span",{class:"audit-weight"},"15%"),xe(" Growth Rate ")]),d("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]=d("div",{class:"explain-audit"},[d("div",{class:"audit-name"},[d("span",{class:"audit-weight"},"10%"),xe(" Thinking Overhead ")]),d("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]=d("div",{class:"explain-caveat"},[d("i",{class:"i-carbon-warning-alt"}),d("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),o.value==="composition"?(_(),k(ce,{key:1},[l[12]||(l[12]=d("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]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#2563eb"}}),d("div",null,[d("strong",null,"System prompt"),d("p",null,"The model's instructions. Set once at the start. Usually stable across turns.")])],-1)),l[14]||(l[14]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#db2777"}}),d("div",null,[d("strong",null,"Tool definitions"),d("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]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#059669"}}),d("div",null,[d("strong",null,"Tool results"),d("p",null,"Data returned from tool calls (file reads, search results, command output). Often the fastest-growing category.")])],-1)),l[16]||(l[16]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#ec4899"}}),d("div",null,[d("strong",null,"Tool calls"),d("p",null,"The model's requests to invoke tools. Includes function name and arguments.")])],-1)),l[17]||(l[17]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#d97706"}}),d("div",null,[d("strong",null,"Assistant text"),d("p",null,"The model's natural language responses. The actual conversation output.")])],-1)),l[18]||(l[18]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#10b981"}}),d("div",null,[d("strong",null,"User text"),d("p",null,"Your messages to the model. Typically small relative to the rest.")])],-1)),l[19]||(l[19]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#8b5cf6"}}),d("div",null,[d("strong",null,"Thinking"),d("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]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#6366f1"}}),d("div",null,[d("strong",null,"System injections"),d("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]=d("div",{class:"explain-category"},[d("span",{class:"cat-dot",style:{background:"#4b5563"}}),d("div",null,[d("strong",null,"Images / Cache markers / Other"),d("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})]))}}),U2=st(q2,[["__scopeId","data-v-758e473e"]]),V2={key:0,class:"overview"},W2={class:"narrative-copy"},K2={class:"narrative-title"},G2={class:"narrative-detail"},Z2={class:"narrative-actions"},J2={class:"stats-grid"},Y2={class:"stat-detail"},X2={key:1,class:"stat-tape"},Q2={key:2,class:"util-track"},eb={class:"stat-card"},tb={class:"stat-readout green"},nb={class:"stat-detail"},sb={key:0,class:"stat-detail stat-detail--bloat"},ob={class:"stat-card"},ub={class:"stat-readout"},rb={key:0,class:"stat-detail"},ib={key:0,class:"stat-card stat-card--health"},lb={class:"health-ring"},ab={width:"48",height:"48",viewBox:"0 0 48 48"},cb=["stroke","stroke-dasharray"],db=["fill"],fb={class:"stat-label"},pb={key:1,class:"stat-card"},hb={class:"meta-row"},mb={key:0},gb={key:1},vb={key:2},bb={key:1,class:"panel panel--overhead"},_b={class:"panel-head"},yb={class:"overhead-bar-wrap"},xb={class:"overhead-bar"},kb=["title"],wb={class:"overhead-cats"},Cb={class:"overhead-name"},$b={class:"overhead-tok"},Tb={class:"overhead-pct"},Eb={key:0,class:"overhead-unused"},Sb={key:2,class:"panel panel--secondary"},Ab={class:"panel-head"},Db={class:"panel-sub"},Fb={class:"panel-body msg-preview"},Mb=["onClick"],Ib={class:"msg-group-name"},Pb={class:"msg-group-count"},Lb={class:"msg-group-tokens"},Rb={class:"msg-group-pct"},Ob={class:"msg-group-bar"},zb={key:3,class:"panel panel--secondary"},Nb={class:"panel-head"},Bb={class:"panel-sub"},jb={class:"panel-body file-preview"},Hb={class:"file-list"},qb=["onClick"],Ub={class:"file-path"},Vb={class:"file-dir"},Wb={class:"file-ops"},Kb={key:0,class:"file-op file-op--read"},Gb={key:1,class:"file-op file-op--write"},Zb={class:"file-tokens"},Jb={class:"file-pct"},Yb={class:"file-bar"},Xb=Qe({__name:"OverviewTab",setup(e){const t=ie(!1),n=ie(null);function s(x){n.value=x,t.value=!0}const o=Tt(),u=R(()=>o.selectedEntry),r=R(()=>o.selectedSession),i=R(()=>{var z,N;const x=r.value;if(!x||x.entries.length===0)return null;let w=0;for(const T of x.entries){if(T.httpStatus!==null&&(T.httpStatus<200||T.httpStatus>=300))continue;if(T.costUsd===null){w=null;continue}const I=T.composition,b=T.contextInfo.totalTokens;if(b===0)continue;const p=((z=I.find(oe=>oe.category==="tool_results"))==null?void 0:z.tokens)??0,m=Math.max(0,p-8e3)/b,y=((N=I.find(oe=>oe.category==="thinking"))==null?void 0:N.tokens)??0,P=y/b>.4?(y-b*.4)/b:0,O=Math.min(1,m+P);w!==null&&(w+=T.costUsd*O)}return w!==null?Math.round(w*1e4)/1e4:null}),l=R(()=>{var N;const x=u.value;if(!x)return null;const w=new Set;for(const T of((N=r.value)==null?void 0:N.entries)??[])for(const I of T.contextInfo.messages??[])if(I.contentBlocks)for(const b of I.contentBlocks){const p=b;p.type==="tool_use"&&typeof p.name=="string"&&w.add(p.name)}const z=v.value<=1;return Gg(x,z,w)}),a=R(()=>r.value?[...r.value.entries].reverse():[]),c=R(()=>{const x=u.value;return!x||!x.contextLimit?0:x.contextInfo.totalTokens/x.contextLimit}),f=R(()=>{const x=c.value;return x>=.9?"var(--accent-red)":x>=.7?"var(--accent-amber)":"var(--accent-blue)"}),h=R(()=>{const x=u.value;if(!(x!=null&&x.usage))return null;const w=x.usage.inputTokens+x.usage.cacheReadTokens+x.usage.cacheWriteTokens;return w===0?null:x.usage.cacheReadTokens/w}),g=R(()=>bn(a.value)),v=R(()=>{const x=u.value;if(!x)return 0;const w=g.value,z=w.findIndex(N=>N.entry.id===x.id);return z<0?0:w.slice(0,z+1).reduce((N,T)=>N+(T.isMain?1:0),0)}),S=R(()=>{const x=u.value;if(!x)return[];const w=a.value,z=g.value;return id(x,w,z)}),$=R(()=>{const x=u.value;if(!x)return null;const w=g.value,z=w.findIndex(N=>N.entry.id===x.id);if(z<0)return null;for(let N=z-1;N>=0;N--)if(w[N].isMain)return w[N].entry;return null}),E=R(()=>{const x=u.value,w=$.value;if(!x||!w)return[];const z=new Map(w.composition.map(I=>[I.category,I.tokens])),N=new Map(x.composition.map(I=>[I.category,I.tokens])),T=new Set([...z.keys(),...N.keys()]);return Array.from(T).map(I=>{const b=z.get(I)??0,p=N.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))}),C=R(()=>{var T;const x=u.value;if(!((T=x==null?void 0:x.composition)!=null&&T.length))return null;const w=x.composition.reduce((I,b)=>I+b.tokens,0);if(w===0)return null;const z={};for(const[I,b]of Object.entries(gs))for(const p of b)z[p]=I;const N=new Map;for(const I of x.composition){const b=z[I.category]??I.category;N.set(b,(N.get(b)||0)+I.tokens)}return[...N.entries()].sort((I,b)=>b[1]-I[1]).map(([I,b])=>{var p;return{key:I,color:((p=Et[I])==null?void 0:p.color)??"#475569",pct:b/w*100}})}),L=R(()=>{const x=u.value;return!x||g.value.length===0?null:ld(x,g.value)}),D=R(()=>{var x;return((x=u.value)==null?void 0:x.contextInfo.messages)||[]}),F=R(()=>nd(D.value)),A=R(()=>F.value.reduce((x,w)=>x+w.tokens,0)),V=R(()=>{var x;return((x=u.value)==null?void 0:x.contextInfo.totalTokens)??0}),G=R(()=>{const x=u.value;return x?Ng({utilization:c.value,healthScore:x.healthScore,composition:x.composition,topDelta:E.value[0]??null}):null});function Z(x){o.setInspectorTab(x)}function K(){o.setInspectorTab("messages")}function pe(x,w=!0){K(),o.focusMessageCategory(x,w)}function H(){K()}function le(x){K(),o.focusMessageTool("tool_results",x)}function be(x){x.messageIndex!=null&&(K(),o.focusMessageByIndex(x.messageIndex))}function J(x){if(!(/growth/i.test(x.id)||/growth/i.test(x.name)))return x.description;const z=x.description||"";if(!/first turn/i.test(z)||v.value<=1)return z;const N=u.value,T=$.value;if(!N||!T||!N.contextLimit)return z;const I=N.contextInfo.totalTokens-T.contextInfo.totalTokens,b=Math.abs(I),p=b/N.contextLimit*100;return`Compared with previous main turn, context ${I>=0?"grew":"shrunk"} by ${Ce(b)} (${p.toFixed(1)}% of limit).`}function de(x){return Wh(x)}function he(x){return Kh(x)}function W(x){return V.value>0?Math.round(x/V.value*100):0}function re(x){return V.value>0?`${x/V.value*100}%`:"0%"}const ke=R(()=>{const x=r.value;if(!x||x.entries.length===0)return[];const w=x.workingDirectory;return cd(x.entries,w)}),j=R(()=>ke.value.reduce((x,w)=>x+w.tokens,0));function ne(x){return j.value>0?Math.round(x/j.value*100):0}function Q(x){return j.value>0?`${x/j.value*100}%`:"0%"}function fe(x){K(),o.focusMessageFile(x)}function _e(x){fe(x)}return(x,w)=>{var N;const z=qn("tooltip");return u.value?(_(),k("div",V2,[G.value?(_(),k("section",{key:0,class:ue(["health-narrative",G.value.toneClass])},[d("div",W2,[d("div",K2,M(G.value.headline),1),d("div",G2,M(G.value.detail),1)]),d("div",Z2,[d("button",{class:"narrative-action",onClick:w[0]||(w[0]=T=>Z("messages"))},[...w[7]||(w[7]=[d("i",{class:"i-carbon-chat"},null,-1),xe(" Review Messages ",-1)])]),d("button",{class:"narrative-action",onClick:w[1]||(w[1]=T=>Z("timeline"))},[...w[8]||(w[8]=[d("i",{class:"i-carbon-activity"},null,-1),xe(" View Timeline ",-1)])])])],2)):se("",!0),d("div",J2,[d("div",{class:"stat-card stat-card--spine",style:Se({"--spine-color":f.value})},[d("div",{class:"stat-readout",style:Se({color:f.value})},M(Y(yr)(c.value)),5),w[9]||(w[9]=d("div",{class:"stat-label"},"Context",-1)),d("div",Y2,M(Y(Ce)(u.value.contextInfo.totalTokens))+" / "+M(Y(Ce)(u.value.contextLimit)),1),l.value&&l.value.wasteRatio>.05?He((_(),k("div",{key:0,class:ue(["stat-projection",{"stat-projection--warn":l.value.wasteRatio>=.5}])},[xe(M(Math.round(l.value.wasteRatio*100))+"% overhead",1)],2)),[[z,"Structural overhead this turn: "+l.value.categories.map(T=>`${T.label} ${Math.round(T.pct*100)}%`).join(", ")]]):se("",!0),C.value?(_(),k("div",X2,[(_(!0),k(ce,null,Ee(C.value,T=>(_(),k("div",{key:T.key,class:"stat-tape-seg",style:Se({flex:T.pct,background:T.color})},null,4))),128))])):(_(),k("div",Q2,[d("div",{class:"util-fill",style:Se({width:Math.min(c.value*100,100)+"%",background:f.value})},null,4)]))],4),d("div",eb,[d("div",tb,M(Y(Ct)(u.value.costUsd)),1),w[10]||(w[10]=d("div",{class:"stat-label"},"Turn cost",-1)),d("div",nb,M(Y(Ct)(((N=r.value)==null?void 0:N.entries.reduce((T,I)=>T+(I.costUsd??0),0))??0))+" session",1),i.value!==null&&i.value>.001?He((_(),k("div",sb,[xe("~"+M(Y(Ct)(i.value))+" bloat",1)])),[[z,"Estimated cost of oversized tool results and excess thinking across all turns — tokens re-billed every turn without adding new information"]]):se("",!0)]),d("div",ob,[d("div",ub,M(u.value.usage?Y(Ce)(u.value.usage.outputTokens):"—"),1),w[11]||(w[11]=d("div",{class:"stat-label"},"Output",-1)),u.value.timings?(_(),k("div",rb,M(Y(_r)(u.value.timings.total_ms)),1)):se("",!0)]),u.value.healthScore?(_(),k("div",ib,[d("div",lb,[(_(),k("svg",ab,[w[12]||(w[12]=d("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)),d("circle",{cx:"24",cy:"24",r:"19",fill:"none",stroke:Y(xr)(u.value.healthScore.rating),"stroke-width":"3","stroke-dasharray":`${89.5*(u.value.healthScore.overall/100)} ${119.4-89.5*(u.value.healthScore.overall/100)}`,"stroke-linecap":"round",transform:"rotate(135 24 24)",style:{transition:"stroke-dasharray 0.6s ease"}},null,8,cb),d("text",{x:"24",y:"25","text-anchor":"middle","dominant-baseline":"central",fill:Y(xr)(u.value.healthScore.rating),"font-family":"var(--font-display)","font-size":"13","font-weight":"700"},M(u.value.healthScore.overall),9,db)]))]),d("div",fb,[w[14]||(w[14]=xe("Health ",-1)),d("button",{class:"info-btn",onClick:w[2]||(w[2]=T=>s("health"))},[...w[13]||(w[13]=[d("i",{class:"i-carbon-information"},null,-1)])])])])):(_(),k("div",pb,[...w[15]||(w[15]=[d("div",{class:"stat-readout dim"},"—",-1),d("div",{class:"stat-label"},"Health",-1)])]))]),d("div",hb,[d("span",null,M(u.value.contextInfo.messages.length)+" messages",1),h.value!==null?(_(),k("span",mb," cache "+M(Y(yr)(h.value))+" hit ("+M(Y(Ce)(u.value.usage.cacheReadTokens))+"r / "+M(Y(Ce)(u.value.usage.cacheWriteTokens))+"w) ",1)):se("",!0),u.value.stopReason?(_(),k("span",gb,"stop: "+M(u.value.stopReason),1)):se("",!0),u.value.responseModel&&u.value.responseModel!==u.value.contextInfo.model?(_(),k("span",vb," model: "+M(u.value.responseModel),1)):se("",!0)]),Le(Qv,{entry:u.value,"turn-num":v.value,onCategoryClick:w[3]||(w[3]=T=>pe(T,!1)),onToolClick:le,onFileClick:_e,onExplain:w[4]||(w[4]=T=>s("composition"))},null,8,["entry","turn-num"]),Le(z2,{entry:u.value,recommendations:S.value,"audit-tooltip":J,onRecommendationClick:be},null,8,["entry","recommendations"]),l.value&&l.value.wasteTokens>0?(_(),k("section",bb,[d("div",_b,[w[16]||(w[16]=d("span",{class:"panel-title"},"Structural Overhead",-1)),d("span",{class:ue(["overhead-ratio",l.value.wasteRatio>=.5?"rate-high":l.value.wasteRatio>=.3?"rate-med":"rate-low"])},M(Math.round(l.value.wasteRatio*100))+"% this turn ",3)]),d("div",yb,[d("div",xb,[(_(!0),k(ce,null,Ee(l.value.categories,T=>(_(),k("div",{key:T.id,class:"overhead-seg",style:Se({width:`${Math.round(T.pct*100)}%`,background:T.color}),title:`${T.label}: ${Y(Ce)(T.tokens)}`},null,12,kb))),128)),d("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)])]),d("div",wb,[(_(!0),k(ce,null,Ee(l.value.categories,T=>(_(),k("div",{key:T.id,class:"overhead-cat"},[d("span",{class:"overhead-dot",style:Se({background:T.color})},null,4),d("span",Cb,M(T.label),1),d("span",$b,M(Y(Ce)(T.tokens)),1),d("span",Tb,M(Math.round(T.pct*100))+"%",1)]))),128)),l.value.unusedToolNames.length?(_(),k("div",Eb," Unused: "+M(l.value.unusedToolNames.slice(0,4).join(", "))+M(l.value.unusedToolNames.length>4?` +${l.value.unusedToolNames.length-4}`:""),1)):se("",!0)])])):se("",!0),Le(dd,{"diff-data":L.value,"current-entry":u.value,"previous-entry":$.value,"show-tapes":!0,"hide-unchanged":!0,"summary-mode":"combined","delta-tone":"bad",onCategoryClick:w[5]||(w[5]=T=>pe(T,!1))},null,8,["diff-data","current-entry","previous-entry"]),F.value.length?(_(),k("section",Sb,[d("div",Ab,[w[17]||(w[17]=d("span",{class:"panel-title"},"Messages",-1)),d("span",Db,M(D.value.length)+" messages · "+M(Y(Ce)(A.value)),1)]),d("div",Fb,[(_(!0),k(ce,null,Ee(F.value,T=>(_(),k("div",{key:T.category,class:"msg-group-row",onClick:I=>pe(T.category,!1)},[d("span",{class:"msg-group-dot",style:Se({background:he(T.category)})},null,4),d("span",Ib,M(de(T.category)),1),d("span",Pb,M(T.items.length),1),d("span",Lb,M(Y(Ce)(T.tokens)),1),d("span",Rb,M(W(T.tokens))+"%",1),d("div",Ob,[d("div",{class:"msg-group-bar-fill",style:Se({width:re(T.tokens),background:he(T.category)})},null,4)])],8,Mb))),128)),d("button",{class:"msg-view-all",onClick:H},"View all messages ›")])])):se("",!0),ke.value.length>0?(_(),k("section",zb,[d("div",Nb,[w[18]||(w[18]=d("span",{class:"panel-title"},"Files",-1)),d("span",Bb,M(ke.value.length)+" files · "+M(Y(Ce)(j.value)),1)]),d("div",jb,[d("div",Hb,[(_(!0),k(ce,null,Ee(ke.value,(T,I)=>(_(),k("div",{key:T.path,class:"file-row",onClick:b=>fe(T.path)},[d("span",{class:"file-dot",style:Se({background:Y(Cr)(I)})},null,4),He((_(),k("span",Ub,[d("span",Vb,M(Y(Al)(T.path)?Y(Al)(T.path)+"/":""),1),xe(M(Y(ti)(T.path)),1)])),[[z,T.path]]),d("span",Wb,[T.reads>0?He((_(),k("span",Kb,[xe(M(T.reads)+"r",1)])),[[z,`${T.reads} read${T.reads>1?"s":""}`]]):se("",!0),T.writes>0?He((_(),k("span",Gb,[xe(M(T.writes)+"w",1)])),[[z,`${T.writes} write/edit${T.writes>1?"s":""}`]]):se("",!0)]),d("span",Zb,M(Y(Ce)(T.tokens)),1),d("span",Jb,M(ne(T.tokens))+"%",1),d("div",Yb,[d("div",{class:"file-bar-fill",style:Se({width:Q(T.tokens),background:Y(Cr)(I)})},null,4)])],8,qb))),128))])])])):se("",!0),Le(U2,{open:t.value,section:n.value,onClose:w[6]||(w[6]=T=>t.value=!1)},null,8,["open","section"])])):se("",!0)}}}),Qb=st(Xb,[["__scopeId","data-v-32d0879a"]]),e_={__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,s=e,o=tf(),u=ie([]),r=R(()=>u.value.reduce((x,w)=>(x[~~w.id]=w)&&x,{})),i=R(()=>u.value.length),l=ie(null),a=ie(!1),c=ie({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),f=ie({splitter:null,timeoutId:null}),h=R(()=>({[`splitpanes splitpanes--${s.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":c.value.dragging})),g=()=>{document.addEventListener("mousemove",$,{passive:!1}),document.addEventListener("mouseup",E),"ontouchstart"in window&&(document.addEventListener("touchmove",$,{passive:!1}),document.addEventListener("touchend",E))},v=()=>{document.removeEventListener("mousemove",$,{passive:!1}),document.removeEventListener("mouseup",E),"ontouchstart"in window&&(document.removeEventListener("touchmove",$,{passive:!1}),document.removeEventListener("touchend",E))},S=(x,w)=>{const z=x.target.closest(".splitpanes__splitter");if(z){const{left:N,top:T}=z.getBoundingClientRect(),{clientX:I,clientY:b}="ontouchstart"in window&&x.touches?x.touches[0]:x;c.value.cursorOffset=s.horizontal?b-T:I-N}g(),c.value.mouseDown=!0,c.value.activeSplitter=w},$=x=>{c.value.mouseDown&&(x.preventDefault(),c.value.dragging=!0,requestAnimationFrame(()=>{V(F(x)),n("resize",u.value.map(w=>({min:w.min,max:w.max,size:w.size})))}))},E=()=>{c.value.dragging&&n("resized",u.value.map(x=>({min:x.min,max:x.max,size:x.size}))),c.value.mouseDown=!1,setTimeout(()=>{c.value.dragging=!1,v()},100)},C=(x,w)=>{"ontouchstart"in window&&(x.preventDefault(),s.dblClickSplitter&&(f.value.splitter===w?(clearTimeout(f.value.timeoutId),f.value.timeoutId=null,L(x,w),f.value.splitter=null):(f.value.splitter=w,f.value.timeoutId=setTimeout(()=>f.value.splitter=null,500)))),c.value.dragging||n("splitter-click",u.value[w])},L=(x,w)=>{let z=0;u.value=u.value.map((N,T)=>(N.size=T===w?N.max:N.min,T!==w&&(z+=N.min),N)),u.value[w].size-=z,n("pane-maximize",u.value[w]),n("resized",u.value.map(N=>({min:N.min,max:N.max,size:N.size})))},D=(x,w)=>{n("pane-click",r.value[w])},F=x=>{const w=l.value.getBoundingClientRect(),{clientX:z,clientY:N}="ontouchstart"in window&&x.touches?x.touches[0]:x;return{x:z-(s.horizontal?0:c.value.cursorOffset)-w.left,y:N-(s.horizontal?c.value.cursorOffset:0)-w.top}},A=x=>{x=x[s.horizontal?"y":"x"];const w=l.value[s.horizontal?"clientHeight":"clientWidth"];return s.rtl&&!s.horizontal&&(x=w-x),x*100/w},V=x=>{const w=c.value.activeSplitter;let z={prevPanesSize:Z(w),nextPanesSize:K(w),prevReachedMinPanes:0,nextReachedMinPanes:0};const N=0+(s.pushOtherPanes?0:z.prevPanesSize),T=100-(s.pushOtherPanes?0:z.nextPanesSize),I=Math.max(Math.min(A(x),T),N);let b=[w,w+1],p=u.value[b[0]]||null,m=u.value[b[1]]||null;const y=p.max<100&&I>=p.max+z.prevPanesSize,P=m.max<100&&I<=100-(m.max+K(w+1));if(y||P){y?(p.size=p.max,m.size=Math.max(100-p.max-z.prevPanesSize-z.nextPanesSize,0)):(p.size=Math.max(100-m.max-z.prevPanesSize-K(w+1),0),m.size=m.max);return}if(s.pushOtherPanes){const O=G(z,I);if(!O)return;({sums:z,panesToResize:b}=O),p=u.value[b[0]]||null,m=u.value[b[1]]||null}p!==null&&(p.size=Math.min(Math.max(I-z.prevPanesSize-z.prevReachedMinPanes,p.min),p.max)),m!==null&&(m.size=Math.min(Math.max(100-I-z.nextPanesSize-z.nextReachedMinPanes,m.min),m.max))},G=(x,w)=>{const z=c.value.activeSplitter,N=[z,z+1];return w<x.prevPanesSize+u.value[N[0]].min&&(N[0]=pe(z).index,x.prevReachedMinPanes=0,N[0]<z&&u.value.forEach((T,I)=>{I>N[0]&&I<=z&&(T.size=T.min,x.prevReachedMinPanes+=T.min)}),x.prevPanesSize=Z(N[0]),N[0]===void 0)?(x.prevReachedMinPanes=0,u.value[0].size=u.value[0].min,u.value.forEach((T,I)=>{I>0&&I<=z&&(T.size=T.min,x.prevReachedMinPanes+=T.min)}),u.value[N[1]].size=100-x.prevReachedMinPanes-u.value[0].min-x.prevPanesSize-x.nextPanesSize,null):w>100-x.nextPanesSize-u.value[N[1]].min&&(N[1]=H(z).index,x.nextReachedMinPanes=0,N[1]>z+1&&u.value.forEach((T,I)=>{I>z&&I<N[1]&&(T.size=T.min,x.nextReachedMinPanes+=T.min)}),x.nextPanesSize=K(N[1]-1),N[1]===void 0)?(x.nextReachedMinPanes=0,u.value.forEach((T,I)=>{I<i.value-1&&I>=z+1&&(T.size=T.min,x.nextReachedMinPanes+=T.min)}),u.value[N[0]].size=100-x.prevPanesSize-K(N[0]-1),null):{sums:x,panesToResize:N}},Z=x=>u.value.reduce((w,z,N)=>w+(N<x?z.size:0),0),K=x=>u.value.reduce((w,z,N)=>w+(N>x+1?z.size:0),0),pe=x=>[...u.value].reverse().find(w=>w.index<x&&w.size>w.min)||{},H=x=>u.value.find(w=>w.index>x+1&&w.size>w.min)||{},le=()=>{var x;Array.from(((x=l.value)==null?void 0:x.children)||[]).forEach(w=>{const z=w.classList.contains("splitpanes__pane"),N=w.classList.contains("splitpanes__splitter");!z&&!N&&(w.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},be=(x,w,z=!1)=>{const N=x-1,T=document.createElement("div");T.classList.add("splitpanes__splitter"),z||(T.onmousedown=I=>S(I,N),typeof window<"u"&&"ontouchstart"in window&&(T.ontouchstart=I=>S(I,N)),T.onclick=I=>C(I,N+1)),s.dblClickSplitter&&(T.ondblclick=I=>L(I,N+1)),w.parentNode.insertBefore(T,w)},J=x=>{x.onmousedown=void 0,x.onclick=void 0,x.ondblclick=void 0,x.remove()},de=()=>{var x;const w=Array.from(((x=l.value)==null?void 0:x.children)||[]);w.forEach(N=>{N.className.includes("splitpanes__splitter")&&J(N)});let z=0;w.forEach(N=>{N.className.includes("splitpanes__pane")&&(!z&&s.firstSplitter?be(z,N,!0):z&&be(z,N),z++)})},he=({uid:x,...w})=>{const z=r.value[x];Object.entries(w).forEach(([N,T])=>z[N]=T)},W=x=>{var w;let z=-1;Array.from(((w=l.value)==null?void 0:w.children)||[]).some(N=>(N.className.includes("splitpanes__pane")&&z++,N.isSameNode(x.el))),u.value.splice(z,0,{...x,index:z}),u.value.forEach((N,T)=>N.index=T),a.value&&Ye(()=>{de(),ke({addedPane:u.value[z]}),n("pane-add",{index:z,panes:u.value.map(N=>({min:N.min,max:N.max,size:N.size}))})})},re=x=>{const w=u.value.findIndex(N=>N.id===x),z=u.value.splice(w,1)[0];u.value.forEach((N,T)=>N.index=T),Ye(()=>{de(),ke({removedPane:{...z}}),n("pane-remove",{removed:z,panes:u.value.map(N=>({min:N.min,max:N.max,size:N.size}))})})},ke=(x={})=>{!x.addedPane&&!x.removedPane?ne():u.value.some(w=>w.givenSize!==null||w.min||w.max<100)?Q(x):j(),a.value&&n("resized",u.value.map(w=>({min:w.min,max:w.max,size:w.size})))},j=()=>{const x=100/i.value;let w=0;const z=[],N=[];u.value.forEach(T=>{T.size=Math.max(Math.min(x,T.max),T.min),w-=T.size,T.size>=T.max&&z.push(T.id),T.size<=T.min&&N.push(T.id)}),w>.1&&fe(w,z,N)},ne=()=>{let x=100;const w=[],z=[];let N=0;u.value.forEach(I=>{x-=I.size,I.givenSize!==null&&N++,I.size>=I.max&&w.push(I.id),I.size<=I.min&&z.push(I.id)});let T=100;x>.1&&(u.value.forEach(I=>{I.givenSize===null&&(I.size=Math.max(Math.min(x/(i.value-N),I.max),I.min)),T-=I.size}),T>.1&&fe(T,w,z))},Q=({addedPane:x,removedPane:w}={})=>{let z=100/i.value,N=0;const T=[],I=[];((x==null?void 0:x.givenSize)??null)!==null&&(z=(100-x.givenSize)/(i.value-1).value),u.value.forEach(b=>{N-=b.size,b.size>=b.max&&T.push(b.id),b.size<=b.min&&I.push(b.id)}),!(Math.abs(N)<.1)&&(u.value.forEach(b=>{(x==null?void 0:x.givenSize)!==null&&(x==null?void 0:x.id)===b.id||(b.size=Math.max(Math.min(z,b.max),b.min)),N-=b.size,b.size>=b.max&&T.push(b.id),b.size<=b.min&&I.push(b.id)}),N>.1&&fe(N,T,I))},fe=(x,w,z)=>{let N;x>0?N=x/(i.value-w.length):N=x/(i.value-z.length),u.value.forEach((T,I)=>{if(x>0&&!w.includes(T.id)){const b=Math.max(Math.min(T.size+N,T.max),T.min),p=b-T.size;x-=p,T.size=b}else if(!z.includes(T.id)){const b=Math.max(Math.min(T.size+N,T.max),T.min),p=b-T.size;x-=p,T.size=b}}),Math.abs(x)>.1&&Ye(()=>{a.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})};Ge(()=>s.firstSplitter,()=>de()),Ge(()=>s.dblClickSplitter,x=>{[...l.value.querySelectorAll(".splitpanes__splitter")].forEach((w,z)=>{w.ondblclick=x?N=>L(N,z):void 0})}),po(()=>a.value=!1),Kt(()=>{le(),de(),ke(),n("ready"),a.value=!0});const _e=()=>{var x;return Zr("div",{ref:l,class:h.value},(x=o.default)==null?void 0:x.call(o))};return Tn("panes",u),Tn("indexedPanes",r),Tn("horizontal",R(()=>s.horizontal)),Tn("requestUpdate",he),Tn("onPaneAdd",W),Tn("onPaneRemove",re),Tn("onPaneClick",D),(x,w)=>(_(),rt(Za(_e)))}},Pl={__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,s=Nt("requestUpdate"),o=Nt("onPaneAdd"),u=Nt("horizontal"),r=Nt("onPaneRemove"),i=Nt("onPaneClick"),l=(t=ho())==null?void 0:t.uid,a=Nt("indexedPanes"),c=R(()=>a.value[l]),f=ie(null),h=R(()=>{const $=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min($,v.value),g.value)}),g=R(()=>{const $=parseFloat(n.minSize);return isNaN($)?0:$}),v=R(()=>{const $=parseFloat(n.maxSize);return isNaN($)?100:$}),S=R(()=>{var $;return`${u.value?"height":"width"}: ${($=c.value)==null?void 0:$.size}%`});return Kt(()=>{o({id:l,el:f.value,min:g.value,max:v.value,givenSize:n.size===void 0?null:h.value,size:h.value})}),Ge(()=>h.value,$=>s({uid:l,size:$})),Ge(()=>g.value,$=>s({uid:l,min:$})),Ge(()=>v.value,$=>s({uid:l,max:$})),po(()=>r(l)),($,E)=>(_(),k("div",{ref_key:"paneEl",ref:f,class:"splitpanes__pane",onClick:E[0]||(E[0]=C=>Y(i)(C,$._.uid)),style:Se(S.value)},[Gs($.$slots,"default")],4))}};function t_(){const e=co(new Set);function t(r){e.has(r)?e.delete(r):e.add(r)}function n(r){return e.has(r)}function s(r){e.add(r)}function o(r){e.delete(r)}function u(){e.clear()}return{expanded:e,toggle:t,isExpanded:n,expand:s,collapse:o,collapseAll:u}}function fd(e,t){if(e.contentBlocks)for(const n of e.contentBlocks){const s=n;if(s.type==="tool_result"&&typeof s.tool_use_id=="string")return`tool_result:${s.tool_use_id}`;if(s.type==="tool_use"&&typeof s.id=="string")return`tool_use:${s.id}`}return`${e.role??"unknown"}:${t}`}function n_(e,t,n){return n.length===0?!1:n.includes(fd(e,t))}const s_="modulepreload",o_=function(e){return"/"+e},Ll={},qe=function(t,n,s){let o=Promise.resolve();if(n&&n.length>0){let r=function(a){return Promise.all(a.map(c=>Promise.resolve(c).then(f=>({status:"fulfilled",value:f}),f=>({status:"rejected",reason:f}))))};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"));o=r(n.map(a=>{if(a=o_(a),a in Ll)return;Ll[a]=!0;const c=a.endsWith(".css"),f=c?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${f}`))return;const h=document.createElement("link");if(h.rel=c?"stylesheet":s_,c||(h.as="script"),h.crossOrigin="",h.href=a,l&&h.setAttribute("nonce",l),document.head.appendChild(h),c)return new Promise((g,v)=>{h.addEventListener("load",g),h.addEventListener("error",()=>v(new Error(`Unable to preload CSS for ${a}`)))})}))}function u(r){const i=new Event("vite:preloadError",{cancelable:!0});if(i.payload=r,window.dispatchEvent(i),!i.defaultPrevented)throw r}return o.then(r=>{for(const i of r||[])i.status==="rejected"&&u(i.reason);return t().catch(u)})},Rl={};function u_(e){let t=Rl[e];if(t)return t;t=Rl[e]=[];for(let n=0;n<128;n++){const s=String.fromCharCode(n);t.push(s)}for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);t[s]="%"+("0"+s.toString(16).toUpperCase()).slice(-2)}return t}function vs(e,t){typeof t!="string"&&(t=vs.defaultChars);const n=u_(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(s){let o="";for(let u=0,r=s.length;u<r;u+=3){const i=parseInt(s.slice(u+1,u+3),16);if(i<128){o+=n[i];continue}if((i&224)===192&&u+3<r){const l=parseInt(s.slice(u+4,u+6),16);if((l&192)===128){const a=i<<6&1984|l&63;a<128?o+="��":o+=String.fromCharCode(a),u+=3;continue}}if((i&240)===224&&u+6<r){const l=parseInt(s.slice(u+4,u+6),16),a=parseInt(s.slice(u+7,u+9),16);if((l&192)===128&&(a&192)===128){const c=i<<12&61440|l<<6&4032|a&63;c<2048||c>=55296&&c<=57343?o+="���":o+=String.fromCharCode(c),u+=6;continue}}if((i&248)===240&&u+9<r){const l=parseInt(s.slice(u+4,u+6),16),a=parseInt(s.slice(u+7,u+9),16),c=parseInt(s.slice(u+10,u+12),16);if((l&192)===128&&(a&192)===128&&(c&192)===128){let f=i<<18&1835008|l<<12&258048|a<<6&4032|c&63;f<65536||f>1114111?o+="����":(f-=65536,o+=String.fromCharCode(55296+(f>>10),56320+(f&1023))),u+=9;continue}}o+="�"}return o})}vs.defaultChars=";/?:@&=+$,#";vs.componentChars="";const Ol={};function r_(e){let t=Ol[e];if(t)return t;t=Ol[e]=[];for(let n=0;n<128;n++){const s=String.fromCharCode(n);/^[0-9a-z]$/i.test(s)?t.push(s):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 go(e,t,n){typeof t!="string"&&(n=t,t=go.defaultChars),typeof n>"u"&&(n=!0);const s=r_(t);let o="";for(let u=0,r=e.length;u<r;u++){const i=e.charCodeAt(u);if(n&&i===37&&u+2<r&&/^[0-9a-f]{2}$/i.test(e.slice(u+1,u+3))){o+=e.slice(u,u+3),u+=2;continue}if(i<128){o+=s[i];continue}if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&u+1<r){const l=e.charCodeAt(u+1);if(l>=56320&&l<=57343){o+=encodeURIComponent(e[u]+e[u+1]),u++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[u])}return o}go.defaultChars=";/?:@&=+$,-_.!~*'()#";go.componentChars="-_.!~*'()";function si(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 Xo(){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 i_=/^([a-z0-9.+-]+:)/i,l_=/:[0-9]*$/,a_=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c_=["<",">",'"',"`"," ","\r",`
|
|
35
|
+
`," "],d_=["{","}","|","\\","^","`"].concat(c_),f_=["'"].concat(d_),zl=["%","/","?",";","#"].concat(f_),Nl=["/","?","#"],p_=255,Bl=/^[+a-z0-9A-Z_-]{0,63}$/,h_=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,jl={javascript:!0,"javascript:":!0},Hl={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function oi(e,t){if(e&&e instanceof Xo)return e;const n=new Xo;return n.parse(e,t),n}Xo.prototype.parse=function(e,t){let n,s,o,u=e;if(u=u.trim(),!t&&e.split("#").length===1){const a=a_.exec(u);if(a)return this.pathname=a[1],a[2]&&(this.search=a[2]),this}let r=i_.exec(u);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,u=u.substr(r.length)),(t||r||u.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=u.substr(0,2)==="//",o&&!(r&&jl[r])&&(u=u.substr(2),this.slashes=!0)),!jl[r]&&(o||r&&!Hl[r])){let a=-1;for(let v=0;v<Nl.length;v++)s=u.indexOf(Nl[v]),s!==-1&&(a===-1||s<a)&&(a=s);let c,f;a===-1?f=u.lastIndexOf("@"):f=u.lastIndexOf("@",a),f!==-1&&(c=u.slice(0,f),u=u.slice(f+1),this.auth=c),a=-1;for(let v=0;v<zl.length;v++)s=u.indexOf(zl[v]),s!==-1&&(a===-1||s<a)&&(a=s);a===-1&&(a=u.length),u[a-1]===":"&&a--;const h=u.slice(0,a);u=u.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 S=0,$=v.length;S<$;S++){const E=v[S];if(E&&!E.match(Bl)){let C="";for(let L=0,D=E.length;L<D;L++)E.charCodeAt(L)>127?C+="x":C+=E[L];if(!C.match(Bl)){const L=v.slice(0,S),D=v.slice(S+1),F=E.match(h_);F&&(L.push(F[1]),D.unshift(F[2])),D.length&&(u=D.join(".")+u),this.hostname=L.join(".");break}}}}this.hostname.length>p_&&(this.hostname=""),g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const i=u.indexOf("#");i!==-1&&(this.hash=u.substr(i),u=u.slice(0,i));const l=u.indexOf("?");return l!==-1&&(this.search=u.substr(l),u=u.slice(0,l)),u&&(this.pathname=u),Hl[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Xo.prototype.parseHost=function(e){let t=l_.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 m_=Object.freeze(Object.defineProperty({__proto__:null,decode:vs,encode:go,format:si,parse:oi},Symbol.toStringTag,{value:"Module"})),pd=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,hd=/[\0-\x1F\x7F-\x9F]/,g_=/[\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]/,ui=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\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]/,md=/[\$\+<->\^`\|~\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]/,gd=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,v_=Object.freeze(Object.defineProperty({__proto__:null,Any:pd,Cc:hd,Cf:g_,P:ui,S:md,Z:gd},Symbol.toStringTag,{value:"Module"})),b_=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୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢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;怳Ādpuct;戏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ǣጓ\0y;䐎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Ā;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀ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Ā;elƀ;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\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»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ↄⅪ←ٖ↛ǰ↉\0proø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;䅓Ācrir;榿;쀀𝔬ͯ\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\0m;櫳;櫽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))),__=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Wu;const y_=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]]),x_=(Wu=String.fromCodePoint)!==null&&Wu!==void 0?Wu: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 k_(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=y_.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 w_=32;var Pn;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Pn||(Pn={}));function $r(e){return e>=ct.ZERO&&e<=ct.NINE}function C_(e){return e>=ct.UPPER_A&&e<=ct.UPPER_F||e>=ct.LOWER_A&&e<=ct.LOWER_F}function $_(e){return e>=ct.UPPER_A&&e<=ct.UPPER_Z||e>=ct.LOWER_A&&e<=ct.LOWER_Z||$r(e)}function T_(e){return e===ct.EQUALS||$_(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 In;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(In||(In={}));class E_{constructor(t,n,s){this.decodeTree=t,this.emitCodePoint=n,this.errors=s,this.state=at.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=In.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)|w_)===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,s,o){if(n!==s){const u=s-n;this.result=this.result*Math.pow(o,u)+parseInt(t.substr(n,u),o),this.consumed+=u}}stateNumericHex(t,n){const s=n;for(;n<t.length;){const o=t.charCodeAt(n);if($r(o)||C_(o))n+=1;else return this.addToNumericResult(t,s,n,16),this.emitNumericEntity(o,3)}return this.addToNumericResult(t,s,n,16),-1}stateNumericDecimal(t,n){const s=n;for(;n<t.length;){const o=t.charCodeAt(n);if($r(o))n+=1;else return this.addToNumericResult(t,s,n,10),this.emitNumericEntity(o,2)}return this.addToNumericResult(t,s,n,10),-1}emitNumericEntity(t,n){var s;if(this.consumed<=n)return(s=this.errors)===null||s===void 0||s.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===ct.SEMI)this.consumed+=1;else if(this.decodeMode===In.Strict)return 0;return this.emitCodePoint(k_(this.result),this.consumed),this.errors&&(t!==ct.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:s}=this;let o=s[this.treeIndex],u=(o&Pn.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const r=t.charCodeAt(n);if(this.treeIndex=S_(s,o,this.treeIndex+Math.max(1,u),r),this.treeIndex<0)return this.result===0||this.decodeMode===In.Attribute&&(u===0||T_(r))?0:this.emitNotTerminatedNamedEntity();if(o=s[this.treeIndex],u=(o&Pn.VALUE_LENGTH)>>14,u!==0){if(r===ct.SEMI)return this.emitNamedEntityData(this.treeIndex,u,this.consumed+this.excess);this.decodeMode!==In.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:s}=this,o=(s[n]&Pn.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,s){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~Pn.VALUE_LENGTH:o[t+1],s),n===3&&this.emitCodePoint(o[t+2],s),s}end(){var t;switch(this.state){case at.NamedEntity:return this.result!==0&&(this.decodeMode!==In.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 vd(e){let t="";const n=new E_(e,s=>t+=x_(s));return function(o,u){let r=0,i=0;for(;(i=o.indexOf("&",i))>=0;){t+=o.slice(r,i),n.startEntity(u);const a=n.write(o,i+1);if(a<0){r=i+n.end();break}r=i+a,i=a===0?r+1:r}const l=t+o.slice(r);return t="",l}}function S_(e,t,n,s){const o=(t&Pn.BRANCH_LENGTH)>>7,u=t&Pn.JUMP_TABLE;if(o===0)return u!==0&&s===u?n:-1;if(u){const l=s-u;return l<0||l>=o?-1:e[n+l]-1}let r=n,i=r+o-1;for(;r<=i;){const l=r+i>>>1,a=e[l];if(a<s)r=l+1;else if(a>s)i=l-1;else return e[l+o]}return-1}const A_=vd(b_);vd(__);function bd(e,t=In.Legacy){return A_(e,t)}function D_(e){return Object.prototype.toString.call(e)}function ri(e){return D_(e)==="[object String]"}const F_=Object.prototype.hasOwnProperty;function M_(e,t){return F_.call(e,t)}function xu(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(s){e[s]=n[s]})}}),e}function _d(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function ii(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 Qo(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 yd=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,I_=/&([a-z#][a-z0-9]{1,31});/gi,P_=new RegExp(yd.source+"|"+I_.source,"gi"),L_=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function R_(e,t){if(t.charCodeAt(0)===35&&L_.test(t)){const s=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return ii(s)?Qo(s):e}const n=bd(e);return n!==e?n:e}function O_(e){return e.indexOf("\\")<0?e:e.replace(yd,"$1")}function bs(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(P_,function(t,n,s){return n||R_(t,s)})}const z_=/[&<>"]/,N_=/[&<>"]/g,B_={"&":"&","<":"<",">":">",'"':"""};function j_(e){return B_[e]}function jn(e){return z_.test(e)?e.replace(N_,j_):e}const H_=/[.?*+^$[\]\\(){}|-]/g;function q_(e){return e.replace(H_,"\\$&")}function Je(e){switch(e){case 9:case 32:return!0}return!1}function uo(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 ro(e){return ui.test(e)||md.test(e)}function io(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 ku(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const U_={mdurl:m_,ucmicro:v_},V_=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:_d,assign:xu,escapeHtml:jn,escapeRE:q_,fromCodePoint:Qo,has:M_,isMdAsciiPunct:io,isPunctChar:ro,isSpace:Je,isString:ri,isValidEntityCode:ii,isWhiteSpace:uo,lib:U_,normalizeReference:ku,unescapeAll:bs,unescapeMd:O_},Symbol.toStringTag,{value:"Module"}));function W_(e,t,n){let s,o,u,r;const i=e.posMax,l=e.pos;for(e.pos=t+1,s=1;e.pos<i;){if(u=e.src.charCodeAt(e.pos),u===93&&(s--,s===0)){o=!0;break}if(r=e.pos,e.md.inline.skipToken(e),u===91){if(r===e.pos-1)s++;else if(n)return e.pos=l,-1}}let a=-1;return o&&(a=e.pos),e.pos=l,a}function K_(e,t,n){let s,o=t;const u={ok:!1,pos:0,str:""};if(e.charCodeAt(o)===60){for(o++;o<n;){if(s=e.charCodeAt(o),s===10||s===60)return u;if(s===62)return u.pos=o+1,u.str=bs(e.slice(t+1,o)),u.ok=!0,u;if(s===92&&o+1<n){o+=2;continue}o++}return u}let r=0;for(;o<n&&(s=e.charCodeAt(o),!(s===32||s<32||s===127));){if(s===92&&o+1<n){if(e.charCodeAt(o+1)===32)break;o+=2;continue}if(s===40&&(r++,r>32))return u;if(s===41){if(r===0)break;r--}o++}return t===o||r!==0||(u.str=bs(e.slice(t,o)),u.pos=o,u.ok=!0),u}function G_(e,t,n,s){let o,u=t;const r={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(s)r.str=s.str,r.marker=s.marker;else{if(u>=n)return r;let i=e.charCodeAt(u);if(i!==34&&i!==39&&i!==40)return r;t++,u++,i===40&&(i=41),r.marker=i}for(;u<n;){if(o=e.charCodeAt(u),o===r.marker)return r.pos=u+1,r.str+=bs(e.slice(t,u)),r.ok=!0,r;if(o===40&&r.marker===41)return r;o===92&&u+1<n&&u++,u++}return r.can_continue=!0,r.str+=bs(e.slice(t,u)),r}const Z_=Object.freeze(Object.defineProperty({__proto__:null,parseLinkDestination:K_,parseLinkLabel:W_,parseLinkTitle:G_},Symbol.toStringTag,{value:"Module"})),rn={};rn.code_inline=function(e,t,n,s,o){const u=e[t];return"<code"+o.renderAttrs(u)+">"+jn(u.content)+"</code>"};rn.code_block=function(e,t,n,s,o){const u=e[t];return"<pre"+o.renderAttrs(u)+"><code>"+jn(e[t].content)+`</code></pre>
|
|
36
|
+
`};rn.fence=function(e,t,n,s,o){const u=e[t],r=u.info?bs(u.info).trim():"";let i="",l="";if(r){const c=r.split(/(\s+)/g);i=c[0],l=c.slice(2).join("")}let a;if(n.highlight?a=n.highlight(u.content,i,l)||jn(u.content):a=jn(u.content),a.indexOf("<pre")===0)return a+`
|
|
37
|
+
`;if(r){const c=u.attrIndex("class"),f=u.attrs?u.attrs.slice():[];c<0?f.push(["class",n.langPrefix+i]):(f[c]=f[c].slice(),f[c][1]+=" "+n.langPrefix+i);const h={attrs:f};return`<pre><code${o.renderAttrs(h)}>${a}</code></pre>
|
|
38
|
+
`}return`<pre><code${o.renderAttrs(u)}>${a}</code></pre>
|
|
39
|
+
`};rn.image=function(e,t,n,s,o){const u=e[t];return u.attrs[u.attrIndex("alt")][1]=o.renderInlineAsText(u.children,n,s),o.renderToken(e,t,n)};rn.hardbreak=function(e,t,n){return n.xhtmlOut?`<br />
|
|
40
|
+
`:`<br>
|
|
41
|
+
`};rn.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br />
|
|
42
|
+
`:`<br>
|
|
43
|
+
`:`
|
|
44
|
+
`};rn.text=function(e,t){return jn(e[t].content)};rn.html_block=function(e,t){return e[t].content};rn.html_inline=function(e,t){return e[t].content};function ys(){this.rules=xu({},rn)}ys.prototype.renderAttrs=function(t){let n,s,o;if(!t.attrs)return"";for(o="",n=0,s=t.attrs.length;n<s;n++)o+=" "+jn(t.attrs[n][0])+'="'+jn(t.attrs[n][1])+'"';return o};ys.prototype.renderToken=function(t,n,s){const o=t[n];let u="";if(o.hidden)return"";o.block&&o.nesting!==-1&&n&&t[n-1].hidden&&(u+=`
|
|
45
|
+
`),u+=(o.nesting===-1?"</":"<")+o.tag,u+=this.renderAttrs(o),o.nesting===0&&s.xhtmlOut&&(u+=" /");let r=!1;if(o.block&&(r=!0,o.nesting===1&&n+1<t.length)){const i=t[n+1];(i.type==="inline"||i.hidden||i.nesting===-1&&i.tag===o.tag)&&(r=!1)}return u+=r?`>
|
|
46
|
+
`:">",u};ys.prototype.renderInline=function(e,t,n){let s="";const o=this.rules;for(let u=0,r=e.length;u<r;u++){const i=e[u].type;typeof o[i]<"u"?s+=o[i](e,u,t,n,this):s+=this.renderToken(e,u,t)}return s};ys.prototype.renderInlineAsText=function(e,t,n){let s="";for(let o=0,u=e.length;o<u;o++)switch(e[o].type){case"text":s+=e[o].content;break;case"image":s+=this.renderInlineAsText(e[o].children,t,n);break;case"html_inline":case"html_block":s+=e[o].content;break;case"softbreak":case"hardbreak":s+=`
|
|
47
|
+
`;break}return s};ys.prototype.render=function(e,t,n){let s="";const o=this.rules;for(let u=0,r=e.length;u<r;u++){const i=e[u].type;i==="inline"?s+=this.renderInline(e[u].children,t,n):typeof o[i]<"u"?s+=o[i](e,u,t,n,this):s+=this.renderToken(e,u,t,n)}return s};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(s){t.indexOf(s)<0&&t.push(s)})}),e.__cache__={},t.forEach(function(n){e.__cache__[n]=[],e.__rules__.forEach(function(s){s.enabled&&(n&&s.alt.indexOf(n)<0||e.__cache__[n].push(s.fn))})})};$t.prototype.at=function(e,t,n){const s=this.__find__(e),o=n||{};if(s===-1)throw new Error("Parser rule not found: "+e);this.__rules__[s].fn=t,this.__rules__[s].alt=o.alt||[],this.__cache__=null};$t.prototype.before=function(e,t,n,s){const o=this.__find__(e),u=s||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:u.alt||[]}),this.__cache__=null};$t.prototype.after=function(e,t,n,s){const o=this.__find__(e),u=s||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:u.alt||[]}),this.__cache__=null};$t.prototype.push=function(e,t,n){const s=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:s.alt||[]}),this.__cache__=null};$t.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(s){const o=this.__find__(s);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+s)}this.__rules__[o].enabled=!0,n.push(s)},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(s){const o=this.__find__(s);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+s)}this.__rules__[o].enabled=!1,n.push(s)},this),this.__cache__=null,n};$t.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Gt(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}Gt.prototype.attrIndex=function(t){if(!this.attrs)return-1;const n=this.attrs;for(let s=0,o=n.length;s<o;s++)if(n[s][0]===t)return s;return-1};Gt.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]};Gt.prototype.attrSet=function(t,n){const s=this.attrIndex(t),o=[t,n];s<0?this.attrPush(o):this.attrs[s]=o};Gt.prototype.attrGet=function(t){const n=this.attrIndex(t);let s=null;return n>=0&&(s=this.attrs[n][1]),s};Gt.prototype.attrJoin=function(t,n){const s=this.attrIndex(t);s<0?this.attrPush([t,n]):this.attrs[s][1]=this.attrs[s][1]+" "+n};function xd(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}xd.prototype.Token=Gt;const J_=/\r\n?|\n/g,Y_=/\0/g;function X_(e){let t;t=e.src.replace(J_,`
|
|
48
|
+
`),t=t.replace(Y_,"�"),e.src=t}function Q_(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 ey(e){const t=e.tokens;for(let n=0,s=t.length;n<s;n++){const o=t[n];o.type==="inline"&&e.md.inline.parse(o.content,e.md,e.env,o.children)}}function ty(e){return/^<a[>\s]/i.test(e)}function ny(e){return/^<\/a\s*>/i.test(e)}function sy(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,s=t.length;n<s;n++){if(t[n].type!=="inline"||!e.md.linkify.pretest(t[n].content))continue;let o=t[n].children,u=0;for(let r=o.length-1;r>=0;r--){const i=o[r];if(i.type==="link_close"){for(r--;o[r].level!==i.level&&o[r].type!=="link_open";)r--;continue}if(i.type==="html_inline"&&(ty(i.content)&&u>0&&u--,ny(i.content)&&u++),!(u>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const l=i.content;let a=e.md.linkify.match(l);const c=[];let f=i.level,h=0;a.length>0&&a[0].index===0&&r>0&&o[r-1].type==="text_special"&&(a=a.slice(1));for(let g=0;g<a.length;g++){const v=a[g].url,S=e.md.normalizeLink(v);if(!e.md.validateLink(S))continue;let $=a[g].text;a[g].schema?a[g].schema==="mailto:"&&!/^mailto:/i.test($)?$=e.md.normalizeLinkText("mailto:"+$).replace(/^mailto:/,""):$=e.md.normalizeLinkText($):$=e.md.normalizeLinkText("http://"+$).replace(/^http:\/\//,"");const E=a[g].index;if(E>h){const F=new e.Token("text","",0);F.content=l.slice(h,E),F.level=f,c.push(F)}const C=new e.Token("link_open","a",1);C.attrs=[["href",S]],C.level=f++,C.markup="linkify",C.info="auto",c.push(C);const L=new e.Token("text","",0);L.content=$,L.level=f,c.push(L);const D=new e.Token("link_close","a",-1);D.level=--f,D.markup="linkify",D.info="auto",c.push(D),h=a[g].lastIndex}if(h<l.length){const g=new e.Token("text","",0);g.content=l.slice(h),g.level=f,c.push(g)}t[n].children=o=_d(o,r,c)}}}}const kd=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,oy=/\((c|tm|r)\)/i,uy=/\((c|tm|r)\)/ig,ry={c:"©",r:"®",tm:"™"};function iy(e,t){return ry[t.toLowerCase()]}function ly(e){let t=0;for(let n=e.length-1;n>=0;n--){const s=e[n];s.type==="text"&&!t&&(s.content=s.content.replace(uy,iy)),s.type==="link_open"&&s.info==="auto"&&t--,s.type==="link_close"&&s.info==="auto"&&t++}}function ay(e){let t=0;for(let n=e.length-1;n>=0;n--){const s=e[n];s.type==="text"&&!t&&kd.test(s.content)&&(s.content=s.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–")),s.type==="link_open"&&s.info==="auto"&&t--,s.type==="link_close"&&s.info==="auto"&&t++}}function cy(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(oy.test(e.tokens[t].content)&&ly(e.tokens[t].children),kd.test(e.tokens[t].content)&&ay(e.tokens[t].children))}const dy=/['"]/,ql=/['"]/g,Ul="’";function To(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function fy(e,t){let n;const s=[];for(let o=0;o<e.length;o++){const u=e[o],r=e[o].level;for(n=s.length-1;n>=0&&!(s[n].level<=r);n--);if(s.length=n+1,u.type!=="text")continue;let i=u.content,l=0,a=i.length;e:for(;l<a;){ql.lastIndex=l;const c=ql.exec(i);if(!c)break;let f=!0,h=!0;l=c.index+1;const g=c[0]==="'";let v=32;if(c.index-1>=0)v=i.charCodeAt(c.index-1);else for(n=o-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 S=32;if(l<a)S=i.charCodeAt(l);else for(n=o+1;n<e.length&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n++)if(e[n].content){S=e[n].content.charCodeAt(0);break}const $=io(v)||ro(String.fromCharCode(v)),E=io(S)||ro(String.fromCharCode(S)),C=uo(v),L=uo(S);if(L?f=!1:E&&(C||$||(f=!1)),C?h=!1:$&&(L||E||(h=!1)),S===34&&c[0]==='"'&&v>=48&&v<=57&&(h=f=!1),f&&h&&(f=$,h=E),!f&&!h){g&&(u.content=To(u.content,c.index,Ul));continue}if(h)for(n=s.length-1;n>=0;n--){let D=s[n];if(s[n].level<r)break;if(D.single===g&&s[n].level===r){D=s[n];let F,A;g?(F=t.md.options.quotes[2],A=t.md.options.quotes[3]):(F=t.md.options.quotes[0],A=t.md.options.quotes[1]),u.content=To(u.content,c.index,A),e[D.token].content=To(e[D.token].content,D.pos,F),l+=A.length-1,D.token===o&&(l+=F.length-1),i=u.content,a=i.length,s.length=n;continue e}}f?s.push({token:o,pos:c.index,single:g,level:r}):h&&g&&(u.content=To(u.content,c.index,Ul))}}}function py(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)e.tokens[t].type!=="inline"||!dy.test(e.tokens[t].content)||fy(e.tokens[t].children,e)}function hy(e){let t,n;const s=e.tokens,o=s.length;for(let u=0;u<o;u++){if(s[u].type!=="inline")continue;const r=s[u].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 Ku=[["normalize",X_],["block",Q_],["inline",ey],["linkify",sy],["replacements",cy],["smartquotes",py],["text_join",hy]];function li(){this.ruler=new $t;for(let e=0;e<Ku.length;e++)this.ruler.push(Ku[e][0],Ku[e][1])}li.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,s=t.length;n<s;n++)t[n](e)};li.prototype.State=xd;function ln(e,t,n,s){this.src=e,this.md=t,this.env=n,this.tokens=s,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 o=this.src;for(let u=0,r=0,i=0,l=0,a=o.length,c=!1;r<a;r++){const f=o.charCodeAt(r);if(!c)if(Je(f)){i++,f===9?l+=4-l%4:l++;continue}else c=!0;(f===10||r===a-1)&&(f!==10&&r++,this.bMarks.push(u),this.eMarks.push(r),this.tShift.push(i),this.sCount.push(l),this.bsCount.push(0),c=!1,i=0,l=0,u=r+1)}this.bMarks.push(o.length),this.eMarks.push(o.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 s=new Gt(e,t,n);return s.block=!0,n<0&&this.level--,s.level=this.level,n>0&&this.level++,this.tokens.push(s),s};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 s=this.src.charCodeAt(t);if(!Je(s))break}return t};ln.prototype.skipSpacesBack=function(t,n){if(t<=n)return t;for(;t>n;)if(!Je(this.src.charCodeAt(--t)))return t+1;return t};ln.prototype.skipChars=function(t,n){for(let s=this.src.length;t<s&&this.src.charCodeAt(t)===n;t++);return t};ln.prototype.skipCharsBack=function(t,n,s){if(t<=s)return t;for(;t>s;)if(n!==this.src.charCodeAt(--t))return t+1;return t};ln.prototype.getLines=function(t,n,s,o){if(t>=n)return"";const u=new Array(n-t);for(let r=0,i=t;i<n;i++,r++){let l=0;const a=this.bMarks[i];let c=a,f;for(i+1<n||o?f=this.eMarks[i]+1:f=this.eMarks[i];c<f&&l<s;){const h=this.src.charCodeAt(c);if(Je(h))h===9?l+=4-(l+this.bsCount[i])%4:l++;else if(c-a<this.tShift[i])l++;else break;c++}l>s?u[r]=new Array(l-s+1).join(" ")+this.src.slice(c,f):u[r]=this.src.slice(c,f)}return u.join("")};ln.prototype.Token=Gt;const my=65536;function Gu(e,t){const n=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return e.src.slice(n,s)}function Vl(e){const t=[],n=e.length;let s=0,o=e.charCodeAt(s),u=!1,r=0,i="";for(;s<n;)o===124&&(u?(i+=e.substring(r,s-1),r=s):(t.push(i+e.substring(r,s)),i="",r=s+1)),u=o===92,s++,o=e.charCodeAt(s);return t.push(i+e.substring(r)),t}function gy(e,t,n,s){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent||e.sCount[o]-e.blkIndent>=4)return!1;let u=e.bMarks[o]+e.tShift[o];if(u>=e.eMarks[o])return!1;const r=e.src.charCodeAt(u++);if(r!==124&&r!==45&&r!==58||u>=e.eMarks[o])return!1;const i=e.src.charCodeAt(u++);if(i!==124&&i!==45&&i!==58&&!Je(i)||r===45&&Je(i))return!1;for(;u<e.eMarks[o];){const D=e.src.charCodeAt(u);if(D!==124&&D!==45&&D!==58&&!Je(D))return!1;u++}let l=Gu(e,t+1),a=l.split("|");const c=[];for(let D=0;D<a.length;D++){const F=a[D].trim();if(!F){if(D===0||D===a.length-1)continue;return!1}if(!/^:?-+:?$/.test(F))return!1;F.charCodeAt(F.length-1)===58?c.push(F.charCodeAt(0)===58?"center":"right"):F.charCodeAt(0)===58?c.push("left"):c.push("")}if(l=Gu(e,t).trim(),l.indexOf("|")===-1||e.sCount[t]-e.blkIndent>=4)return!1;a=Vl(l),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop();const f=a.length;if(f===0||f!==c.length)return!1;if(s)return!0;const h=e.parentType;e.parentType="table";const g=e.md.block.ruler.getRules("blockquote"),v=e.push("table_open","table",1),S=[t,0];v.map=S;const $=e.push("thead_open","thead",1);$.map=[t,t+1];const E=e.push("tr_open","tr",1);E.map=[t,t+1];for(let D=0;D<a.length;D++){const F=e.push("th_open","th",1);c[D]&&(F.attrs=[["style","text-align:"+c[D]]]);const A=e.push("inline","",0);A.content=a[D].trim(),A.children=[],e.push("th_close","th",-1)}e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let C,L=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let D=!1;for(let A=0,V=g.length;A<V;A++)if(g[A](e,o,n,!0)){D=!0;break}if(D||(l=Gu(e,o).trim(),!l)||e.sCount[o]-e.blkIndent>=4||(a=Vl(l),a.length&&a[0]===""&&a.shift(),a.length&&a[a.length-1]===""&&a.pop(),L+=f-a.length,L>my))break;if(o===t+2){const A=e.push("tbody_open","tbody",1);A.map=C=[t+2,0]}const F=e.push("tr_open","tr",1);F.map=[o,o+1];for(let A=0;A<f;A++){const V=e.push("td_open","td",1);c[A]&&(V.attrs=[["style","text-align:"+c[A]]]);const G=e.push("inline","",0);G.content=a[A]?a[A].trim():"",G.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return C&&(e.push("tbody_close","tbody",-1),C[1]=o),e.push("table_close","table",-1),S[1]=o,e.parentType=h,e.line=o,!0}function vy(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let s=t+1,o=s;for(;s<n;){if(e.isEmpty(s)){s++;continue}if(e.sCount[s]-e.blkIndent>=4){s++,o=s;continue}break}e.line=o;const u=e.push("code_block","code",0);return u.content=e.getLines(t,o,4+e.blkIndent,!1)+`
|
|
49
|
+
`,u.map=[t,e.line],!0}function by(e,t,n,s){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>u)return!1;const r=e.src.charCodeAt(o);if(r!==126&&r!==96)return!1;let i=o;o=e.skipChars(o,r);let l=o-i;if(l<3)return!1;const a=e.src.slice(i,o),c=e.src.slice(o,u);if(r===96&&c.indexOf(String.fromCharCode(r))>=0)return!1;if(s)return!0;let f=t,h=!1;for(;f++,!(f>=n||(o=i=e.bMarks[f]+e.tShift[f],u=e.eMarks[f],o<u&&e.sCount[f]<e.blkIndent));)if(e.src.charCodeAt(o)===r&&!(e.sCount[f]-e.blkIndent>=4)&&(o=e.skipChars(o,r),!(o-i<l)&&(o=e.skipSpaces(o),!(o<u)))){h=!0;break}l=e.sCount[t],e.line=f+(h?1:0);const g=e.push("fence","code",0);return g.info=c,g.content=e.getLines(t+1,f,l,!0),g.markup=a,g.map=[t,e.line],!0}function _y(e,t,n,s){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];const r=e.lineMax;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==62)return!1;if(s)return!0;const i=[],l=[],a=[],c=[],f=e.md.block.ruler.getRules("blockquote"),h=e.parentType;e.parentType="blockquote";let g=!1,v;for(v=t;v<n;v++){const L=e.sCount[v]<e.blkIndent;if(o=e.bMarks[v]+e.tShift[v],u=e.eMarks[v],o>=u)break;if(e.src.charCodeAt(o++)===62&&!L){let F=e.sCount[v]+1,A,V;e.src.charCodeAt(o)===32?(o++,F++,V=!1,A=!0):e.src.charCodeAt(o)===9?(A=!0,(e.bsCount[v]+F)%4===3?(o++,F++,V=!1):V=!0):A=!1;let G=F;for(i.push(e.bMarks[v]),e.bMarks[v]=o;o<u;){const Z=e.src.charCodeAt(o);if(Je(Z))Z===9?G+=4-(G+e.bsCount[v]+(V?1:0))%4:G++;else break;o++}g=o>=u,l.push(e.bsCount[v]),e.bsCount[v]=e.sCount[v]+1+(A?1:0),a.push(e.sCount[v]),e.sCount[v]=G-F,c.push(e.tShift[v]),e.tShift[v]=o-e.bMarks[v];continue}if(g)break;let D=!1;for(let F=0,A=f.length;F<A;F++)if(f[F](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]),c.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]),c.push(e.tShift[v]),a.push(e.sCount[v]),e.sCount[v]=-1}const S=e.blkIndent;e.blkIndent=0;const $=e.push("blockquote_open","blockquote",1);$.markup=">";const E=[t,0];$.map=E,e.md.block.tokenize(e,t,v);const C=e.push("blockquote_close","blockquote",-1);C.markup=">",e.lineMax=r,e.parentType=h,E[1]=e.line;for(let L=0;L<c.length;L++)e.bMarks[L+t]=i[L],e.tShift[L+t]=c[L],e.sCount[L+t]=a[L],e.bsCount[L+t]=l[L];return e.blkIndent=S,!0}function yy(e,t,n,s){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let u=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(u++);if(r!==42&&r!==45&&r!==95)return!1;let i=1;for(;u<o;){const a=e.src.charCodeAt(u++);if(a!==r&&!Je(a))return!1;a===r&&i++}if(i<3)return!1;if(s)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 Wl(e,t){const n=e.eMarks[t];let s=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(s++);if(o!==42&&o!==45&&o!==43)return-1;if(s<n){const u=e.src.charCodeAt(s);if(!Je(u))return-1}return s}function Kl(e,t){const n=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];let o=n;if(o+1>=s)return-1;let u=e.src.charCodeAt(o++);if(u<48||u>57)return-1;for(;;){if(o>=s)return-1;if(u=e.src.charCodeAt(o++),u>=48&&u<=57){if(o-n>=10)return-1;continue}if(u===41||u===46)break;return-1}return o<s&&(u=e.src.charCodeAt(o),!Je(u))?-1:o}function xy(e,t){const n=e.level+2;for(let s=t+2,o=e.tokens.length-2;s<o;s++)e.tokens[s].level===n&&e.tokens[s].type==="paragraph_open"&&(e.tokens[s+2].hidden=!0,e.tokens[s].hidden=!0,s+=2)}function ky(e,t,n,s){let o,u,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 c=!1;s&&e.parentType==="paragraph"&&e.sCount[l]>=e.blkIndent&&(c=!0);let f,h,g;if((g=Kl(e,l))>=0){if(f=!0,r=e.bMarks[l]+e.tShift[l],h=Number(e.src.slice(r,g-1)),c&&h!==1)return!1}else if((g=Wl(e,l))>=0)f=!1;else return!1;if(c&&e.skipSpaces(g)>=e.eMarks[l])return!1;if(s)return!0;const v=e.src.charCodeAt(g-1),S=e.tokens.length;f?(i=e.push("ordered_list_open","ol",1),h!==1&&(i.attrs=[["start",h]])):i=e.push("bullet_list_open","ul",1);const $=[l,0];i.map=$,i.markup=String.fromCharCode(v);let E=!1;const C=e.md.block.ruler.getRules("list"),L=e.parentType;for(e.parentType="list";l<n;){u=g,o=e.eMarks[l];const D=e.sCount[l]+g-(e.bMarks[l]+e.tShift[l]);let F=D;for(;u<o;){const J=e.src.charCodeAt(u);if(J===9)F+=4-(F+e.bsCount[l])%4;else if(J===32)F++;else break;u++}const A=u;let V;A>=o?V=1:V=F-D,V>4&&(V=1);const G=D+V;i=e.push("list_item_open","li",1),i.markup=String.fromCharCode(v);const Z=[l,0];i.map=Z,f&&(i.info=e.src.slice(r,g-1));const K=e.tight,pe=e.tShift[l],H=e.sCount[l],le=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=G,e.tight=!0,e.tShift[l]=A-e.bMarks[l],e.sCount[l]=F,A>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),(!e.tight||E)&&(a=!1),E=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=le,e.tShift[l]=pe,e.sCount[l]=H,e.tight=K,i=e.push("list_item_close","li",-1),i.markup=String.fromCharCode(v),l=e.line,Z[1]=l,l>=n||e.sCount[l]<e.blkIndent||e.sCount[l]-e.blkIndent>=4)break;let be=!1;for(let J=0,de=C.length;J<de;J++)if(C[J](e,l,n,!0)){be=!0;break}if(be)break;if(f){if(g=Kl(e,l),g<0)break;r=e.bMarks[l]+e.tShift[l]}else if(g=Wl(e,l),g<0)break;if(v!==e.src.charCodeAt(g-1))break}return f?i=e.push("ordered_list_close","ol",-1):i=e.push("bullet_list_close","ul",-1),i.markup=String.fromCharCode(v),$[1]=l,e.line=l,e.parentType=L,a&&xy(e,S),!0}function wy(e,t,n,s){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t],r=t+1;if(e.sCount[t]-e.blkIndent>=4||e.src.charCodeAt(o)!==91)return!1;function i(C){const L=e.lineMax;if(C>=L||e.isEmpty(C))return null;let D=!1;if(e.sCount[C]-e.blkIndent>3&&(D=!0),e.sCount[C]<0&&(D=!0),!D){const V=e.md.block.ruler.getRules("reference"),G=e.parentType;e.parentType="reference";let Z=!1;for(let K=0,pe=V.length;K<pe;K++)if(V[K](e,C,L,!0)){Z=!0;break}if(e.parentType=G,Z)return null}const F=e.bMarks[C]+e.tShift[C],A=e.eMarks[C];return e.src.slice(F,A+1)}let l=e.src.slice(o,u+1);u=l.length;let a=-1;for(o=1;o<u;o++){const C=l.charCodeAt(o);if(C===91)return!1;if(C===93){a=o;break}else if(C===10){const L=i(r);L!==null&&(l+=L,u=l.length,r++)}else if(C===92&&(o++,o<u&&l.charCodeAt(o)===10)){const L=i(r);L!==null&&(l+=L,u=l.length,r++)}}if(a<0||l.charCodeAt(a+1)!==58)return!1;for(o=a+2;o<u;o++){const C=l.charCodeAt(o);if(C===10){const L=i(r);L!==null&&(l+=L,u=l.length,r++)}else if(!Je(C))break}const c=e.md.helpers.parseLinkDestination(l,o,u);if(!c.ok)return!1;const f=e.md.normalizeLink(c.str);if(!e.md.validateLink(f))return!1;o=c.pos;const h=o,g=r,v=o;for(;o<u;o++){const C=l.charCodeAt(o);if(C===10){const L=i(r);L!==null&&(l+=L,u=l.length,r++)}else if(!Je(C))break}let S=e.md.helpers.parseLinkTitle(l,o,u);for(;S.can_continue;){const C=i(r);if(C===null)break;l+=C,o=u,u=l.length,r++,S=e.md.helpers.parseLinkTitle(l,o,u,S)}let $;for(o<u&&v!==o&&S.ok?($=S.str,o=S.pos):($="",o=h,r=g);o<u;){const C=l.charCodeAt(o);if(!Je(C))break;o++}if(o<u&&l.charCodeAt(o)!==10&&$)for($="",o=h,r=g;o<u;){const C=l.charCodeAt(o);if(!Je(C))break;o++}if(o<u&&l.charCodeAt(o)!==10)return!1;const E=ku(l.slice(1,a));return E?(s||(typeof e.env.references>"u"&&(e.env.references={}),typeof e.env.references[E]>"u"&&(e.env.references[E]={title:$,href:f}),e.line=r),!0):!1}const Cy=["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"],$y="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ty="[^\"'=<>`\\x00-\\x20]+",Ey="'[^']*'",Sy='"[^"]*"',Ay="(?:"+Ty+"|"+Ey+"|"+Sy+")",Dy="(?:\\s+"+$y+"(?:\\s*=\\s*"+Ay+")?)",wd="<[A-Za-z][A-Za-z0-9\\-]*"+Dy+"*\\s*\\/?>",Cd="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Fy="<!---?>|<!--(?:[^-]|-[^-]|--[^>])*-->",My="<[?][\\s\\S]*?[?]>",Iy="<![A-Za-z][^>]*>",Py="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",Ly=new RegExp("^(?:"+wd+"|"+Cd+"|"+Fy+"|"+My+"|"+Iy+"|"+Py+")"),Ry=new RegExp("^(?:"+wd+"|"+Cd+")"),us=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+Cy.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Ry.source+"\\s*$"),/^$/,!1]];function Oy(e,t,n,s){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let r=e.src.slice(o,u),i=0;for(;i<us.length&&!us[i][0].test(r);i++);if(i===us.length)return!1;if(s)return us[i][2];let l=t+1;if(!us[i][1].test(r)){for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],u=e.eMarks[l],r=e.src.slice(o,u),us[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 zy(e,t,n,s){let o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let r=e.src.charCodeAt(o);if(r!==35||o>=u)return!1;let i=1;for(r=e.src.charCodeAt(++o);r===35&&o<u&&i<=6;)i++,r=e.src.charCodeAt(++o);if(i>6||o<u&&!Je(r))return!1;if(s)return!0;u=e.skipSpacesBack(u,o);const l=e.skipCharsBack(u,35,o);l>o&&Je(e.src.charCodeAt(l-1))&&(u=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 c=e.push("inline","",0);c.content=e.src.slice(o,u).trim(),c.map=[t,e.line],c.children=[];const f=e.push("heading_close","h"+String(i),-1);return f.markup="########".slice(0,i),!0}function Ny(e,t,n){const s=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let u=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))){u=r===61?1:2;break}}if(e.sCount[i]<0)continue;let h=!1;for(let g=0,v=s.length;g<v;g++)if(s[g](e,i,n,!0)){h=!0;break}if(h)break}if(!u)return!1;const l=e.getLines(t,i,e.blkIndent,!1).trim();e.line=i+1;const a=e.push("heading_open","h"+String(u),1);a.markup=String.fromCharCode(r),a.map=[t,e.line];const c=e.push("inline","",0);c.content=l,c.map=[t,e.line-1],c.children=[];const f=e.push("heading_close","h"+String(u),-1);return f.markup=String.fromCharCode(r),e.parentType=o,!0}function By(e,t,n){const s=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let u=t+1;for(e.parentType="paragraph";u<n&&!e.isEmpty(u);u++){if(e.sCount[u]-e.blkIndent>3||e.sCount[u]<0)continue;let a=!1;for(let c=0,f=s.length;c<f;c++)if(s[c](e,u,n,!0)){a=!0;break}if(a)break}const r=e.getLines(t,u,e.blkIndent,!1).trim();e.line=u;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=o,!0}const Eo=[["table",gy,["paragraph","reference"]],["code",vy],["fence",by,["paragraph","reference","blockquote","list"]],["blockquote",_y,["paragraph","reference","blockquote","list"]],["hr",yy,["paragraph","reference","blockquote","list"]],["list",ky,["paragraph","reference","blockquote"]],["reference",wy],["html_block",Oy,["paragraph","reference","blockquote"]],["heading",zy,["paragraph","reference","blockquote"]],["lheading",Ny],["paragraph",By]];function wu(){this.ruler=new $t;for(let e=0;e<Eo.length;e++)this.ruler.push(Eo[e][0],Eo[e][1],{alt:(Eo[e][2]||[]).slice()})}wu.prototype.tokenize=function(e,t,n){const s=this.ruler.getRules(""),o=s.length,u=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>=u){e.line=n;break}const l=e.line;let a=!1;for(let c=0;c<o;c++)if(a=s[c](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)}};wu.prototype.parse=function(e,t,n,s){if(!e)return;const o=new this.State(e,t,n,s);this.tokenize(o,o.line,o.lineMax)};wu.prototype.State=ln;function vo(e,t,n,s){this.src=e,this.env=n,this.md=t,this.tokens=s,this.tokens_meta=Array(s.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}vo.prototype.pushPending=function(){const e=new Gt("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e};vo.prototype.push=function(e,t,n){this.pending&&this.pushPending();const s=new Gt(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),s.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(s),this.tokens_meta.push(o),s};vo.prototype.scanDelims=function(e,t){const n=this.posMax,s=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let u=e;for(;u<n&&this.src.charCodeAt(u)===s;)u++;const r=u-e,i=u<n?this.src.charCodeAt(u):32,l=io(o)||ro(String.fromCharCode(o)),a=io(i)||ro(String.fromCharCode(i)),c=uo(o),f=uo(i),h=!f&&(!a||c||l),g=!c&&(!l||f||a);return{can_open:h&&(t||!g||l),can_close:g&&(t||!h||a),length:r}};vo.prototype.Token=Gt;function jy(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 Hy(e,t){let n=e.pos;for(;n<e.posMax&&!jy(e.src.charCodeAt(n));)n++;return n===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}const qy=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;function Uy(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,s=e.posMax;if(n+3>s||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(qy);if(!o)return!1;const u=o[1],r=e.md.linkify.matchAtStart(e.src.slice(n-u.length));if(!r)return!1;let i=r.url;if(i.length<=u.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,-u.length);const c=e.push("link_open","a",1);c.attrs=[["href",a]],c.markup="linkify",c.info="auto";const f=e.push("text","",0);f.content=e.md.normalizeLinkText(i);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=i.length-u.length,!0}function Vy(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const s=e.pending.length-1,o=e.posMax;if(!t)if(s>=0&&e.pending.charCodeAt(s)===32)if(s>=1&&e.pending.charCodeAt(s-1)===32){let u=s-1;for(;u>=1&&e.pending.charCodeAt(u-1)===32;)u--;e.pending=e.pending.slice(0,u),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<o&&Je(e.src.charCodeAt(n));)n++;return e.pos=n,!0}const ai=[];for(let e=0;e<256;e++)ai.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){ai[e.charCodeAt(0)]=1});function Wy(e,t){let n=e.pos;const s=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=s))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n<s&&(o=e.src.charCodeAt(n),!!Je(o));)n++;return e.pos=n,!0}let u=e.src[n];if(o>=55296&&o<=56319&&n+1<s){const i=e.src.charCodeAt(n+1);i>=56320&&i<=57343&&(u+=e.src[n+1],n++)}const r="\\"+u;if(!t){const i=e.push("text_special","",0);o<256&&ai[o]!==0?i.content=u:i.content=r,i.markup=r,i.info="escape"}return e.pos=n+1,!0}function Ky(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const o=n;n++;const u=e.posMax;for(;n<u&&e.src.charCodeAt(n)===96;)n++;const r=e.src.slice(o,n),i=r.length;if(e.backticksScanned&&(e.backticks[i]||0)<=o)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<u&&e.src.charCodeAt(l)===96;)l++;const c=l-a;if(c===i){if(!t){const f=e.push("code_inline","code",0);f.markup=r,f.content=e.src.slice(n,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[c]=a}return e.backticksScanned=!0,t||(e.pending+=r),e.pos+=i,!0}function Gy(e,t){const n=e.pos,s=e.src.charCodeAt(n);if(t||s!==126)return!1;const o=e.scanDelims(e.pos,!0);let u=o.length;const r=String.fromCharCode(s);if(u<2)return!1;let i;u%2&&(i=e.push("text","",0),i.content=r,u--);for(let l=0;l<u;l+=2)i=e.push("text","",0),i.content=r+r,e.delimiters.push({marker:s,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0}function Gl(e,t){let n;const s=[],o=t.length;for(let u=0;u<o;u++){const r=t[u];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==="~"&&s.push(i.token-1)}for(;s.length;){const u=s.pop();let r=u+1;for(;r<e.tokens.length&&e.tokens[r].type==="s_close";)r++;r--,u!==r&&(n=e.tokens[r],e.tokens[r]=e.tokens[u],e.tokens[u]=n)}}function Zy(e){const t=e.tokens_meta,n=e.tokens_meta.length;Gl(e,e.delimiters);for(let s=0;s<n;s++)t[s]&&t[s].delimiters&&Gl(e,t[s].delimiters)}const $d={tokenize:Gy,postProcess:Zy};function Jy(e,t){const n=e.pos,s=e.src.charCodeAt(n);if(t||s!==95&&s!==42)return!1;const o=e.scanDelims(e.pos,s===42);for(let u=0;u<o.length;u++){const r=e.push("text","",0);r.content=String.fromCharCode(s),e.delimiters.push({marker:s,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0}function Zl(e,t){const n=t.length;for(let s=n-1;s>=0;s--){const o=t[s];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const u=t[o.end],r=s>0&&t[s-1].end===o.end+1&&t[s-1].marker===o.marker&&t[s-1].token===o.token-1&&t[o.end+1].token===u.token+1,i=String.fromCharCode(o.marker),l=e.tokens[o.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[u.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[s-1].token].content="",e.tokens[t[o.end+1].token].content="",s--)}}function Yy(e){const t=e.tokens_meta,n=e.tokens_meta.length;Zl(e,e.delimiters);for(let s=0;s<n;s++)t[s]&&t[s].delimiters&&Zl(e,t[s].delimiters)}const Td={tokenize:Jy,postProcess:Yy};function Xy(e,t){let n,s,o,u,r="",i="",l=e.pos,a=!0;if(e.src.charCodeAt(e.pos)!==91)return!1;const c=e.pos,f=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<f&&e.src.charCodeAt(v)===40){for(a=!1,v++;v<f&&(n=e.src.charCodeAt(v),!(!Je(n)&&n!==10));v++);if(v>=f)return!1;if(l=v,o=e.md.helpers.parseLinkDestination(e.src,v,e.posMax),o.ok){for(r=e.md.normalizeLink(o.str),e.md.validateLink(r)?v=o.pos:r="",l=v;v<f&&(n=e.src.charCodeAt(v),!(!Je(n)&&n!==10));v++);if(o=e.md.helpers.parseLinkTitle(e.src,v,e.posMax),v<f&&l!==v&&o.ok)for(i=o.str,v=o.pos;v<f&&(n=e.src.charCodeAt(v),!(!Je(n)&&n!==10));v++);}(v>=f||e.src.charCodeAt(v)!==41)&&(a=!0),v++}if(a){if(typeof e.env.references>"u")return!1;if(v<f&&e.src.charCodeAt(v)===91?(l=v+1,v=e.md.helpers.parseLinkLabel(e,v),v>=0?s=e.src.slice(l,v++):v=g+1):v=g+1,s||(s=e.src.slice(h,g)),u=e.env.references[ku(s)],!u)return e.pos=c,!1;r=u.href,i=u.title}if(!t){e.pos=h,e.posMax=g;const S=e.push("link_open","a",1),$=[["href",r]];S.attrs=$,i&&$.push(["title",i]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=v,e.posMax=f,!0}function Qy(e,t){let n,s,o,u,r,i,l,a,c="";const f=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(u=v+1,u<h&&e.src.charCodeAt(u)===40){for(u++;u<h&&(n=e.src.charCodeAt(u),!(!Je(n)&&n!==10));u++);if(u>=h)return!1;for(a=u,i=e.md.helpers.parseLinkDestination(e.src,u,e.posMax),i.ok&&(c=e.md.normalizeLink(i.str),e.md.validateLink(c)?u=i.pos:c=""),a=u;u<h&&(n=e.src.charCodeAt(u),!(!Je(n)&&n!==10));u++);if(i=e.md.helpers.parseLinkTitle(e.src,u,e.posMax),u<h&&a!==u&&i.ok)for(l=i.str,u=i.pos;u<h&&(n=e.src.charCodeAt(u),!(!Je(n)&&n!==10));u++);else l="";if(u>=h||e.src.charCodeAt(u)!==41)return e.pos=f,!1;u++}else{if(typeof e.env.references>"u")return!1;if(u<h&&e.src.charCodeAt(u)===91?(a=u+1,u=e.md.helpers.parseLinkLabel(e,u),u>=0?o=e.src.slice(a,u++):u=v+1):u=v+1,o||(o=e.src.slice(g,v)),r=e.env.references[ku(o)],!r)return e.pos=f,!1;c=r.href,l=r.title}if(!t){s=e.src.slice(g,v);const S=[];e.md.inline.parse(s,e.md,e.env,S);const $=e.push("image","img",0),E=[["src",c],["alt",""]];$.attrs=E,$.children=S,$.content=s,l&&E.push(["title",l])}return e.pos=u,e.posMax=h,!0}const e3=/^([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])?)*)$/,t3=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function n3(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const s=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const r=e.src.charCodeAt(n);if(r===60)return!1;if(r===62)break}const u=e.src.slice(s+1,n);if(t3.test(u)){const r=e.md.normalizeLink(u);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(u);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=u.length+2,!0}if(e3.test(u)){const r=e.md.normalizeLink("mailto:"+u);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(u);const a=e.push("link_close","a",-1);a.markup="autolink",a.info="auto"}return e.pos+=u.length+2,!0}return!1}function s3(e){return/^<a[>\s]/i.test(e)}function o3(e){return/^<\/a\s*>/i.test(e)}function u3(e){const t=e|32;return t>=97&&t<=122}function r3(e,t){if(!e.md.options.html)return!1;const n=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==60||s+2>=n)return!1;const o=e.src.charCodeAt(s+1);if(o!==33&&o!==63&&o!==47&&!u3(o))return!1;const u=e.src.slice(s).match(Ly);if(!u)return!1;if(!t){const r=e.push("html_inline","",0);r.content=u[0],s3(r.content)&&e.linkLevel++,o3(r.content)&&e.linkLevel--}return e.pos+=u[0].length,!0}const i3=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,l3=/^&([a-z][a-z0-9]{1,31});/i;function a3(e,t){const n=e.pos,s=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=s)return!1;if(e.src.charCodeAt(n+1)===35){const u=e.src.slice(n).match(i3);if(u){if(!t){const r=u[1][0].toLowerCase()==="x"?parseInt(u[1].slice(1),16):parseInt(u[1],10),i=e.push("text_special","",0);i.content=ii(r)?Qo(r):Qo(65533),i.markup=u[0],i.info="entity"}return e.pos+=u[0].length,!0}}else{const u=e.src.slice(n).match(l3);if(u){const r=bd(u[0]);if(r!==u[0]){if(!t){const i=e.push("text_special","",0);i.content=r,i.markup=u[0],i.info="entity"}return e.pos+=u[0].length,!0}}}return!1}function Jl(e){const t={},n=e.length;if(!n)return;let s=0,o=-2;const u=[];for(let r=0;r<n;r++){const i=e[r];if(u.push(0),(e[s].marker!==i.marker||o!==i.token-1)&&(s=r),o=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=s-u[s]-1,c=a;for(;a>l;a-=u[a]+1){const f=e[a];if(f.marker===i.marker&&f.open&&f.end<0){let h=!1;if((f.close||i.open)&&(f.length+i.length)%3===0&&(f.length%3!==0||i.length%3!==0)&&(h=!0),!h){const g=a>0&&!e[a-1].open?u[a-1]+1:0;u[r]=r-a+g,u[a]=g,i.open=!1,f.end=r,f.close=!1,c=-1,o=-2;break}}}c!==-1&&(t[i.marker][(i.open?3:0)+(i.length||0)%3]=c)}}function c3(e){const t=e.tokens_meta,n=e.tokens_meta.length;Jl(e.delimiters);for(let s=0;s<n;s++)t[s]&&t[s].delimiters&&Jl(t[s].delimiters)}function d3(e){let t,n,s=0;const o=e.tokens,u=e.tokens.length;for(t=n=0;t<u;t++)o[t].nesting<0&&s--,o[t].level=s,o[t].nesting>0&&s++,o[t].type==="text"&&t+1<u&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}const Zu=[["text",Hy],["linkify",Uy],["newline",Vy],["escape",Wy],["backticks",Ky],["strikethrough",$d.tokenize],["emphasis",Td.tokenize],["link",Xy],["image",Qy],["autolink",n3],["html_inline",r3],["entity",a3]],Ju=[["balance_pairs",c3],["strikethrough",$d.postProcess],["emphasis",Td.postProcess],["fragments_join",d3]];function bo(){this.ruler=new $t;for(let e=0;e<Zu.length;e++)this.ruler.push(Zu[e][0],Zu[e][1]);this.ruler2=new $t;for(let e=0;e<Ju.length;e++)this.ruler2.push(Ju[e][0],Ju[e][1])}bo.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),s=n.length,o=e.md.options.maxNesting,u=e.cache;if(typeof u[t]<"u"){e.pos=u[t];return}let r=!1;if(e.level<o){for(let i=0;i<s;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++,u[t]=e.pos};bo.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,s=e.posMax,o=e.md.options.maxNesting;for(;e.pos<s;){const u=e.pos;let r=!1;if(e.level<o){for(let i=0;i<n;i++)if(r=t[i](e,!1),r){if(u>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=s)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};bo.prototype.parse=function(e,t,n,s){const o=new this.State(e,t,n,s);this.tokenize(o);const u=this.ruler2.getRules(""),r=u.length;for(let i=0;i<r;i++)u[i](o)};bo.prototype.State=vo;function f3(e){const t={};e=e||{},t.src_Any=pd.source,t.src_Cc=hd.source,t.src_Z=gd.source,t.src_P=ui.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 Tr(e){return Array.prototype.slice.call(arguments,1).forEach(function(n){n&&Object.keys(n).forEach(function(s){e[s]=n[s]})}),e}function Cu(e){return Object.prototype.toString.call(e)}function p3(e){return Cu(e)==="[object String]"}function h3(e){return Cu(e)==="[object Object]"}function m3(e){return Cu(e)==="[object RegExp]"}function Yl(e){return Cu(e)==="[object Function]"}function g3(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const Ed={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function v3(e){return Object.keys(e||{}).reduce(function(t,n){return t||Ed.hasOwnProperty(n)},!1)}const b3={"http:":{validate:function(e,t,n){const s=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(s)?s.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const s=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(s)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:s.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const s=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(s)?s.match(n.re.mailto)[0].length:0}}},_3="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]",y3="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function x3(e){e.__index__=-1,e.__text_cache__=""}function k3(e){return function(t,n){const s=t.slice(n);return e.test(s)?s.match(e)[0].length:0}}function Xl(){return function(e,t){t.normalize(e)}}function eu(e){const t=e.re=f3(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(_3),n.push(t.src_xn),t.src_tlds=n.join("|");function s(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(s(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(s(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(s(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(s(t.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function u(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,h3(l)){m3(l.validate)?a.validate=k3(l.validate):Yl(l.validate)?a.validate=l.validate:u(i,l),Yl(l.normalize)?a.normalize=l.normalize:l.normalize?u(i,l):a.normalize=Xl();return}if(p3(l)){o.push(i);return}u(i,l)}),o.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:Xl()};const r=Object.keys(e.__compiled__).filter(function(i){return i.length>0&&e.__compiled__[i]}).map(g3).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"),x3(e)}function w3(e,t){const n=e.__index__,s=e.__last_index__,o=e.__text_cache__.slice(n,s);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=s+t,this.raw=o,this.text=o,this.url=o}function Er(e,t){const n=new w3(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Dt(e,t){if(!(this instanceof Dt))return new Dt(e,t);t||v3(e)&&(t=e,e={}),this.__opts__=Tr({},Ed,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Tr({},b3,e),this.__compiled__={},this.__tlds__=y3,this.__tlds_replaced__=!1,this.re={},eu(this)}Dt.prototype.add=function(t,n){return this.__schemas__[t]=n,eu(this),this};Dt.prototype.set=function(t){return this.__opts__=Tr(this.__opts__,t),this};Dt.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let n,s,o,u,r,i,l,a,c;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(n=l.exec(t))!==null;)if(u=this.testSchemaAt(t,n[2],l.lastIndex),u){this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+u;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(s=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(r=s.index+s[1].length,(this.__index__<0||r<this.__index__)&&(this.__schema__="",this.__index__=r,this.__last_index__=s.index+s[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=t.indexOf("@"),c>=0&&(o=t.match(this.re.email_fuzzy))!==null&&(r=o.index+o[1].length,i=o.index+o[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};Dt.prototype.pretest=function(t){return this.re.pretest.test(t)};Dt.prototype.testSchemaAt=function(t,n,s){return this.__compiled__[n.toLowerCase()]?this.__compiled__[n.toLowerCase()].validate(t,s,this):0};Dt.prototype.match=function(t){const n=[];let s=0;this.__index__>=0&&this.__text_cache__===t&&(n.push(Er(this,s)),s=this.__last_index__);let o=s?t.slice(s):t;for(;this.test(o);)n.push(Er(this,s)),o=o.slice(this.__last_index__),s+=this.__last_index__;return n.length?n:null};Dt.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 s=this.testSchemaAt(t,n[2],n[0].length);return s?(this.__schema__=n[2],this.__index__=n.index+n[1].length,this.__last_index__=n.index+n[0].length+s,Er(this,0)):null};Dt.prototype.tlds=function(t,n){return t=Array.isArray(t)?t:[t],n?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(s,o,u){return s!==u[o-1]}).reverse(),eu(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,eu(this),this)};Dt.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};Dt.prototype.onCompile=function(){};const ps=2147483647,en=36,ci=1,lo=26,C3=38,$3=700,Sd=72,Ad=128,Dd="-",T3=/^xn--/,E3=/[^\0-\x7F]/,S3=/[\x2E\u3002\uFF0E\uFF61]/g,A3={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Yu=en-ci,tn=Math.floor,Xu=String.fromCharCode;function Mn(e){throw new RangeError(A3[e])}function D3(e,t){const n=[];let s=e.length;for(;s--;)n[s]=t(e[s]);return n}function Fd(e,t){const n=e.split("@");let s="";n.length>1&&(s=n[0]+"@",e=n[1]),e=e.replace(S3,".");const o=e.split("."),u=D3(o,t).join(".");return s+u}function Md(e){const t=[];let n=0;const s=e.length;for(;n<s;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<s){const u=e.charCodeAt(n++);(u&64512)==56320?t.push(((o&1023)<<10)+(u&1023)+65536):(t.push(o),n--)}else t.push(o)}return t}const F3=e=>String.fromCodePoint(...e),M3=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:en},Ql=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},Id=function(e,t,n){let s=0;for(e=n?tn(e/$3):e>>1,e+=tn(e/t);e>Yu*lo>>1;s+=en)e=tn(e/Yu);return tn(s+(Yu+1)*e/(e+C3))},Pd=function(e){const t=[],n=e.length;let s=0,o=Ad,u=Sd,r=e.lastIndexOf(Dd);r<0&&(r=0);for(let i=0;i<r;++i)e.charCodeAt(i)>=128&&Mn("not-basic"),t.push(e.charCodeAt(i));for(let i=r>0?r+1:0;i<n;){const l=s;for(let c=1,f=en;;f+=en){i>=n&&Mn("invalid-input");const h=M3(e.charCodeAt(i++));h>=en&&Mn("invalid-input"),h>tn((ps-s)/c)&&Mn("overflow"),s+=h*c;const g=f<=u?ci:f>=u+lo?lo:f-u;if(h<g)break;const v=en-g;c>tn(ps/v)&&Mn("overflow"),c*=v}const a=t.length+1;u=Id(s-l,a,l==0),tn(s/a)>ps-o&&Mn("overflow"),o+=tn(s/a),s%=a,t.splice(s++,0,o)}return String.fromCodePoint(...t)},Ld=function(e){const t=[];e=Md(e);const n=e.length;let s=Ad,o=0,u=Sd;for(const l of e)l<128&&t.push(Xu(l));const r=t.length;let i=r;for(r&&t.push(Dd);i<n;){let l=ps;for(const c of e)c>=s&&c<l&&(l=c);const a=i+1;l-s>tn((ps-o)/a)&&Mn("overflow"),o+=(l-s)*a,s=l;for(const c of e)if(c<s&&++o>ps&&Mn("overflow"),c===s){let f=o;for(let h=en;;h+=en){const g=h<=u?ci:h>=u+lo?lo:h-u;if(f<g)break;const v=f-g,S=en-g;t.push(Xu(Ql(g+v%S,0))),f=tn(v/S)}t.push(Xu(Ql(f,0))),u=Id(o,a,i===r),o=0,++i}++o,++s}return t.join("")},I3=function(e){return Fd(e,function(t){return T3.test(t)?Pd(t.slice(4).toLowerCase()):t})},P3=function(e){return Fd(e,function(t){return E3.test(t)?"xn--"+Ld(t):t})},Rd={version:"2.3.1",ucs2:{decode:Md,encode:F3},decode:Pd,encode:Ld,toASCII:P3,toUnicode:I3},L3={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},R3={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"]}}},O3={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"]}}},z3={default:L3,zero:R3,commonmark:O3},N3=/^(vbscript|javascript|file|data):/,B3=/^data:image\/(gif|png|jpeg|webp);/;function j3(e){const t=e.trim().toLowerCase();return N3.test(t)?B3.test(t):!0}const Od=["http:","https:","mailto:"];function H3(e){const t=oi(e,!0);if(t.hostname&&(!t.protocol||Od.indexOf(t.protocol)>=0))try{t.hostname=Rd.toASCII(t.hostname)}catch{}return go(si(t))}function q3(e){const t=oi(e,!0);if(t.hostname&&(!t.protocol||Od.indexOf(t.protocol)>=0))try{t.hostname=Rd.toUnicode(t.hostname)}catch{}return vs(si(t),vs.defaultChars+"%")}function Ot(e,t){if(!(this instanceof Ot))return new Ot(e,t);t||ri(e)||(t=e||{},e="default"),this.inline=new bo,this.block=new wu,this.core=new li,this.renderer=new ys,this.linkify=new Dt,this.validateLink=j3,this.normalizeLink=H3,this.normalizeLinkText=q3,this.utils=V_,this.helpers=xu({},Z_),this.options={},this.configure(e),t&&this.set(t)}Ot.prototype.set=function(e){return xu(this.options,e),this};Ot.prototype.configure=function(e){const t=this;if(ri(e)){const n=e;if(e=z3[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};Ot.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const s=e.filter(function(o){return n.indexOf(o)<0});if(s.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+s);return this};Ot.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const s=e.filter(function(o){return n.indexOf(o)<0});if(s.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+s);return this};Ot.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};Ot.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};Ot.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Ot.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens};Ot.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};const U3={class:"detail-header"},V3={class:"header-top"},W3={class:"nav-btns"},K3=["disabled"],G3=["disabled"],Z3={key:0,class:"header-meta"},J3={class:"detail-tabs"},Y3={key:0,class:"block-sep"},X3={key:0,class:"params-table"},Q3={class:"params-key"},e6={class:"params-val"},t6=["innerHTML"],n6=["innerHTML"],s6=["innerHTML"],o6={class:"raw-header"},u6=["innerHTML"],r6={class:"detail-footer"},i6={class:"meta-key"},l6=["title"],ea=5e4,ta=500,a6=2e4,c6=450,d6=Qe({__name:"DetailPane",props:{entry:{},messages:{},selectedIndex:{}},emits:["close","navigate"],setup(e,{emit:t}){const n=new Ot({html:!1,linkify:!0,typographer:!1,breaks:!0}),s=e,o=t,u=ie("rendered"),r=ie(!1),i=ie(null);let l=null,a=null;const c=new Map,f=new Set,h=ie(0),g=R(()=>{var p;return((p=s.messages[s.selectedIndex])==null?void 0:p.msg)??null}),v=R(()=>yu(s.entry.contextInfo.messages||[])),S=R(()=>{const p=g.value;if(!p)return"";const m=It(p);let P=(ut[m]||{label:m}).label;if(p.contentBlocks)for(const O of p.contentBlocks){if(O.type==="tool_use"){P=`Tool Call — ${O.name||"unknown"}`;break}if(O.type==="tool_result"){const ee=O.tool_use_id?v.value[O.tool_use_id]:null;P=`Tool Result${ee?" — "+ee:""}`;break}if(O.type==="thinking"){P="Thinking";break}}return P}),$=R(()=>{if(!g.value)return"";const p=It(g.value);return(ut[p]||{color:"#4b5563"}).color}),E=R(()=>!g.value||!s.entry.contextInfo.totalTokens?"0":((g.value.tokens||0)/s.entry.contextInfo.totalTokens*100).toFixed(1)),C=R(()=>s.selectedIndex>0),L=R(()=>s.selectedIndex<s.messages.length-1);Ge(()=>s.selectedIndex,()=>{u.value="rendered",r.value=!1,Ye(()=>{i.value&&(i.value.scrollTop=0)}),Ye(()=>{N()})}),Ge([u,r],()=>{Ye(()=>{N()})}),Ge(g,()=>{Ye(()=>{N()})},{immediate:!0});function D(p){const m=s.selectedIndex+p;m>=0&&m<s.messages.length&&o("navigate",m)}function F(p){p.key==="Escape"&&(o("close"),p.preventDefault()),(p.key==="ArrowUp"||p.key==="k")&&(D(-1),p.preventDefault()),(p.key==="ArrowDown"||p.key==="j")&&(D(1),p.preventDefault())}const A=ie("Copy");async function V(){if(!g.value)return;const p=u.value==="raw"?JSON.stringify(Hu(g.value),null,2):Gh(g.value);await navigator.clipboard.writeText(p),A.value="Copied!",setTimeout(()=>{A.value="Copy"},1500)}function G(p){if(r.value)return{text:p,truncated:!1};if(p.length>ea)return{text:p.slice(0,ea),truncated:!0};const m=p.split(`
|
|
50
|
+
`);return m.length>ta?{text:m.slice(0,ta).join(`
|
|
51
|
+
`),truncated:!0}:{text:p,truncated:!1}}function Z(p){let m=2166136261;for(let y=0;y<p.length;y++)m^=p.charCodeAt(y),m=Math.imul(m,16777619);return(m>>>0).toString(36)}function K(p){return p.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function pe(p,m,y){let P="",O=0;m.lastIndex=0;let oe=m.exec(p);for(;oe;){const ee=oe.index,ae=oe[0];P+=K(p.slice(O,ee)),P+=y(ae,ee),O=ee+ae.length,oe=m.exec(p)}return P+=K(p.slice(O)),P}function H(p){return pe(p,/"(?:\\.|[^"\\])*"(?=\s*:)?|"(?:\\.|[^"\\])*"|\btrue\b|\bfalse\b|\bnull\b|-?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,(y,P)=>{if(y.startsWith('"')){const O=p.slice(P+y.length);return`<span class="${/^\s*:/.test(O)?"syn-key":"syn-str"}">${K(y)}</span>`}return y==="true"||y==="false"?`<span class="syn-bool">${y}</span>`:y==="null"?`<span class="syn-null">${y}</span>`:`<span class="syn-num">${y}</span>`})}function le(p){return pe(p,/<!--[\s\S]*?-->|<\/?[\w:.-]+(?:\s+[\w:.-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'))?)*\s*\/?>/g,y=>{if(y.startsWith("<!--"))return`<span class="syn-com">${K(y)}</span>`;const P=/^<(\/?)([\w:.-]+)([\s\S]*?)(\/?)>$/.exec(y);if(!P)return`<span class="syn-tag">${K(y)}</span>`;const O=P[1]?"/":"",oe=P[2],ee=P[3]||"",ae=P[4]?"/":"";let te="";const Te=/([\w:.-]+)(\s*=\s*)(".*?"|'.*?')/g;let ve=0,we=Te.exec(ee);for(;we;)te+=K(ee.slice(ve,we.index)),te+=`<span class="syn-attr">${K(we[1])}</span>`,te+=K(we[2]),te+=`<span class="syn-str">${K(we[3])}</span>`,ve=we.index+we[0].length,we=Te.exec(ee);return te+=K(ee.slice(ve)),`<span class="syn-punc"><${O}</span><span class="syn-tag">${K(oe)}</span>${te}<span class="syn-punc">${ae}></span>`})}function be(p){return pe(p,/```[\s\S]*?```|`[^`\n]+`|^#{1,6}\s.+$|^\s*[-*+]\s.+$|^\s*\d+\.\s.+$|^>\s.+$|\*\*[^*\n]+\*\*|__[^_\n]+__|\*[^*\n]+\*|_[^_\n]+_|~~[^~\n]+~~|\[[^\]]+\]\([^)]+\)/gm,y=>y.startsWith("```")||y.startsWith("`")?`<span class="syn-code">${K(y)}</span>`:y.startsWith("#")?`<span class="syn-heading">${K(y)}</span>`:/^\s*[-*+]\s/.test(y)||/^\s*\d+\.\s/.test(y)?`<span class="syn-list">${K(y)}</span>`:y.startsWith(">")?`<span class="syn-quote">${K(y)}</span>`:y.startsWith("[")?`<span class="syn-link">${K(y)}</span>`:`<span class="syn-em">${K(y)}</span>`)}function J(p){return pe(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,y=>y.startsWith("//")||y.startsWith("/*")?`<span class="syn-com">${K(y)}</span>`:y.startsWith('"')||y.startsWith("'")||y.startsWith("`")?`<span class="syn-str">${K(y)}</span>`:/^-?\d/.test(y)?`<span class="syn-num">${y}</span>`:y==="true"||y==="false"?`<span class="syn-bool">${y}</span>`:y==="null"||y==="undefined"?`<span class="syn-null">${y}</span>`:`<span class="syn-keyword">${y}</span>`)}function de(p){const m=p.trim();if(!(m.startsWith("{")||m.startsWith("[")))return!1;try{return JSON.parse(m),!0}catch{return!1}}function he(p){const m=p.trim();return m.startsWith("<")?/<[\w:.-]+[\s>]/.test(m)&&/<\/[\w:.-]+>/.test(m):!1}function W(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 ke(p,m=!1){return m||de(p)?"json":he(p)?"xml":W(p)?"markdown":re(p)?"code":"text"}function j(p){return p==="text"||p==="input_text"||p==="thinking"}function ne(p){return n.render(p)}function Q(p,m=!1){const y=ke(p,m);return y==="json"?H(p):y==="xml"?le(p):y==="markdown"?be(p):y==="code"?J(p):K(p)}function fe(p){return p==="json"?"json":p==="xml"?"xml":p==="markdown"?"markdown":p==="code"?"typescript":null}function _e(p,m){return!(m==="text"||p.length>a6||p.split(`
|
|
52
|
+
`).length>c6)}async function x(){if(!l){if(a)return a;a=(async()=>{const{createHighlighterCore:p}=await qe(async()=>{const{createHighlighterCore:y}=await import("./core-IjjuPsJe.js");return{createHighlighterCore:y}},[]),{createOnigurumaEngine:m}=await qe(async()=>{const{createOnigurumaEngine:y}=await import("./engine-oniguruma-KVl37NQr.js");return{createOnigurumaEngine:y}},[]);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 w(p,m,y){if(!_e(p,m)||c.has(y)||f.has(y))return;const P=fe(m);if(P){f.add(y);try{if(await x(),!l)return;const O=l.codeToHtml(p,{lang:P,theme:"github-dark"});c.set(y,O),h.value+=1}catch{}finally{f.delete(y)}}}function z(p,m=!1){h.value;const y=ke(p,m),P=`${y}:${Z(p)}`;if(_e(p,y)){const O=c.get(P);if(O)return O;w(p,y,P)}return Q(p,m)}function N(){const p=g.value;if(!p)return;if(u.value==="raw"){const y=JSON.stringify(Hu(p),null,2),P=G(y).text,O=ke(P,!0);w(P,O,`${O}:${Z(P)}`);return}const m=I();for(const y of m){const P=G(y.content).text,O=ke(P,y.isJson);w(P,O,`${O}:${Z(P)}`)}}function T(p){const m=Object.entries(p);if(m.length===0)return null;const y=[];for(const[P,O]of m){if(O==null){y.push([P,"null"]);continue}if(typeof O=="boolean"||typeof O=="number"){y.push([P,String(O)]);continue}if(typeof O=="string"){if(O.length>120||O.includes(`
|
|
53
|
+
`))return null;y.push([P,O]);continue}return null}return y}function I(){const p=g.value;if(!p)return[];const m=p.contentBlocks;return m&&m.length>0?m.map(y=>{if(y.type==="tool_use"){const O=y.input&&typeof y.input=="object"&&!Array.isArray(y.input)?y.input:null,oe=O?T(O):null,ee=O?JSON.stringify(O,null,2):"{}";return{type:"tool_use",label:`tool_use: ${y.name||"?"}`,labelClass:"lbl-tool-use",content:ee,isJson:!0,toolParams:oe}}if(y.type==="tool_result"){const O=y.tool_use_id?v.value[y.tool_use_id]:null,oe=typeof y.content=="string"?y.content:JSON.stringify(y.content,null,2);return{type:"tool_result",label:`tool_result${O?": "+O:""}`,labelClass:"lbl-tool-result",content:oe,isJson:!1}}const P=y;return P.type==="thinking"?{type:"thinking",label:"thinking",labelClass:"lbl-thinking",content:P.thinking||P.text||"",isJson:!1}:y.type==="text"||y.type==="input_text"?{type:y.type,label:y.type,labelClass:"lbl-text",content:y.text||"",isJson:!1}:y.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: ${y.type||"unspecified"}]`,isJson:!1}}):[{type:"text",label:"",labelClass:"",content:p.content||"",isJson:!1}]}const b=R(()=>{const p=g.value;if(!p)return[];const m=[["Role",p.role],["Tokens",Ce(p.tokens||0)],["% context",E.value+"%"],["Model",s.entry.contextInfo.model||"?"]];if(p.contentBlocks){for(const y of p.contentBlocks)if(y.type==="tool_use"&&(m.push(["tool_use_id",y.id||"?"]),m.push(["tool_name",y.name||"?"])),y.type==="tool_result"&&y.tool_use_id){m.push(["tool_use_id",y.tool_use_id]);const P=v.value[y.tool_use_id];P&&m.push(["tool_name",P])}}return m.push(["Position",`${s.selectedIndex+1} / ${s.messages.length}`]),m});return(p,m)=>{const y=qn("tooltip");return _(),k("div",{class:"detail",tabindex:"0",onKeydown:F},[d("div",U3,[d("div",V3,[d("span",{class:"detail-title",style:Se({color:$.value})},M(S.value),5),d("div",W3,[He((_(),k("button",{disabled:!C.value,onClick:m[0]||(m[0]=P=>D(-1))},[...m[6]||(m[6]=[d("i",{class:"i-carbon-chevron-up"},null,-1)])],8,K3)),[[y,"↑ Previous"]]),He((_(),k("button",{disabled:!L.value,onClick:m[1]||(m[1]=P=>D(1))},[...m[7]||(m[7]=[d("i",{class:"i-carbon-chevron-down"},null,-1)])],8,G3)),[[y,"↓ Next"]])]),He((_(),k("button",{class:"close-btn",onClick:m[2]||(m[2]=P=>p.$emit("close"))},[...m[8]||(m[8]=[d("i",{class:"i-carbon-close"},null,-1)])])),[[y,"Close (Esc)"]])]),g.value?(_(),k("div",Z3,[d("span",null,[d("b",null,M(g.value.role),1)]),d("span",null,M(Y(Ce)(g.value.tokens||0))+" tok",1),d("span",null,M(E.value)+"%",1),d("span",null,M(e.selectedIndex+1)+"/"+M(e.messages.length),1)])):se("",!0)]),d("div",J3,[d("button",{class:ue({on:u.value==="rendered"}),onClick:m[3]||(m[3]=P=>u.value="rendered")},"Rendered",2),d("button",{class:ue({on:u.value==="raw"}),onClick:m[4]||(m[4]=P=>u.value="raw")},"Raw",2)]),d("div",{ref_key:"contentEl",ref:i,class:"detail-body"},[u.value==="rendered"&&g.value?(_(!0),k(ce,{key:0},Ee(I(),(P,O)=>(_(),k(ce,{key:O},[O>0?(_(),k("hr",Y3)):se("",!0),P.label?(_(),k("div",{key:1,class:ue(["block-label",P.labelClass])},M(P.label),3)):se("",!0),P.type==="tool_use"?(_(),k(ce,{key:2},[P.toolParams?(_(),k("table",X3,[d("tbody",null,[(_(!0),k(ce,null,Ee(P.toolParams,([oe,ee])=>(_(),k("tr",{key:oe},[d("td",Q3,M(oe),1),d("td",e6,M(ee),1)]))),128))])])):(_(),k("div",{key:1,class:"block-content syntax rich-html kind-json",innerHTML:z(G(P.content).text,!0)},null,8,t6))],64)):j(P.type)?(_(),k("div",{key:3,class:"block-content md-rendered",innerHTML:ne(G(P.content).text)},null,8,n6)):(_(),k("div",{key:4,class:ue(["block-content syntax rich-html",`kind-${ke(G(P.content).text,P.isJson)}`]),innerHTML:z(G(P.content).text,P.isJson)},null,10,s6)),G(P.content).truncated?(_(),k("button",{key:5,class:"show-more",onClick:m[5]||(m[5]=oe=>r.value=!0)}," Show full content… ")):se("",!0)],64))),128)):u.value==="raw"&&g.value?(_(),k(ce,{key:1},[d("div",o6,[d("button",{class:ue(["copy-btn",{copied:A.value==="Copied!"}]),onClick:V},[m[9]||(m[9]=d("i",{class:"i-carbon-copy"},null,-1)),xe(" "+M(A.value),1)],2)]),d("div",{class:"block-content syntax rich-html kind-json",innerHTML:z(JSON.stringify(Y(Hu)(g.value),null,2),!0)},null,8,u6)],64)):se("",!0)],512),d("div",r6,[m[10]||(m[10]=d("div",{class:"meta-header"},"Metadata",-1)),(_(!0),k(ce,null,Ee(b.value,([P,O])=>(_(),k(ce,{key:P},[d("span",i6,M(P),1),d("span",{class:"meta-val",title:O},M(O),9,l6)],64))),128))])],32)}}}),f6=st(d6,[["__scopeId","data-v-02c22b5e"]]),p6={class:"msg-toolbar"},h6={class:"message-view-toggle"},m6={key:0,class:"message-view-toggle agent-toggle"},g6={key:0,class:"heavy-strip"},v6={class:"heavy-actions"},b6=["onClick"],_6={class:"heavy-category"},y6={class:"heavy-preview"},x6={class:"heavy-tokens"},k6={key:1,class:"focus-strip"},w6={key:0},C6={key:1},$6=["data-category"],T6=["onClick"],E6={class:"group-name"},S6={class:"group-stats"},A6={class:"group-bar-track"},D6=["data-tool-name","onClick"],F6={class:"msg-role"},M6={class:"msg-preview"},I6={key:0,class:"focus-strip"},P6={class:"focus-file-name"},L6={class:"focus-file-count"},R6={class:"chrono-list"},O6=["onClick"],z6={class:"chrono-gutter subagent-gutter"},N6={class:"chrono-preview subagent-preview"},B6={class:"chrono-tok subagent-model"},j6={class:"chrono-turn-label"},H6={key:2,class:"chrono-future-sep"},q6=["onClick"],U6={class:"chrono-gutter"},V6={class:"chrono-type"},W6={class:"chrono-preview"},K6=["onClick"],G6=Qe({__name:"MessagesTab",setup(e){const t=Tt(),n=R(()=>t.selectedEntry),s=R(()=>t.selectedSession),{isExpanded:o,toggle:u,expand:r}=t_(),i=R(()=>{var U;return((U=s.value)==null?void 0:U.prunedMessages)??[]});function l(U,q){return n_(U,q,i.value)}async function a(U,q,me){var Me;me.stopPropagation();const X=(Me=s.value)==null?void 0:Me.id;if(!X||l(U,q))return;const $e=fd(U,q);await t.pruneMessage(X,$e)}const c=ie(null),f=ie("chrono"),h=ie(!1),g=ie(0),v=ie(null),S=ie(1),$=ie(null),E=ie([]),C=ie(0),L=R(()=>yu(F.value)),D=R(()=>{const U=s.value;return!U||U.entries.length<=1?!1:bn([...U.entries].reverse()).some(me=>!me.isMain)}),F=R(()=>{var q;if(!n.value)return[];t.entryDetailVersion;const U=t.getEntryDetail(n.value.id);return(q=U==null?void 0:U.messages)!=null&&q.length?U.messages:n.value.contextInfo.messages||[]}),A=R(()=>!s.value||s.value.entries.length===0?null:s.value.entries[0]),V=R(()=>{var q;if(!A.value)return[];t.entryDetailVersion;const U=t.getEntryDetail(A.value.id);return(q=U==null?void 0:U.messages)!=null&&q.length?U.messages:A.value.contextInfo.messages||[]}),G=R(()=>F.value.length),Z=R(()=>t.selectionMode!=="pinned"?!1:V.value.length>G.value);function K(U){const q=s.value;if(!q)return null;for(let me=1;me<q.entries.length;me++){const X=q.entries[me].contextInfo.messages;if(X&&X.length>U)return X[U]}return null}const pe=R(()=>{const U=i.value,q=F.value,me=[];if(U.length>0){const X=new Map;for(const Fe of U){const et=Fe.match(/^(user|assistant|unknown):(\d+)$/);et&&X.set(parseInt(et[2]),Fe)}let $e=0;const Me=Math.max(q.length+X.size,X.size>0?Math.max(...X.keys())+1:0);for(let Fe=0;Fe<Me;Fe++)if(X.has(Fe)){const et=K(Fe);et&&me.push({msg:et,origIdx:Fe,future:!1,prunedGhost:!0})}else $e<q.length&&(me.push({msg:q[$e],origIdx:Fe,future:!1,prunedGhost:!1}),$e++);for(;$e<q.length;)me.push({msg:q[$e],origIdx:me.length,future:!1,prunedGhost:!1}),$e++}else for(let X=0;X<q.length;X++)me.push({msg:q[X],origIdx:X,future:!1,prunedGhost:!1});if(Z.value)for(let X=q.length;X<V.value.length;X++)me.push({msg:V.value[X],origIdx:X,future:!0,prunedGhost:!1});return me}),H=R(()=>{const U=pe.value,q=new Set;U.length>0&&q.add(0);let me=!1;for(let X=0;X<U.length;X++){const $e=U[X].msg.role;$e==="assistant"?me=!0:$e==="user"&&me&&(q.add(X),me=!1)}return q}),le=R(()=>{const U=s.value,q=n.value;if(!U||!q||t.messagesMode!=="all")return new Map;const me=bn([...U.entries].reverse()),X=[],$e=[];let Me=[];for(const Be of me)Be.isMain?(X.push(Be.entry),X.length>1&&$e.push([...Me]),Me=[]):X.length>0&&Me.push(Be.entry);$e.push([...Me]);const Fe=X.findIndex(Be=>Be.id===q.id);if(Fe<0)return new Map;const et=Array.from(H.value).sort((Be,B)=>Be-B),zt=de.value,Un=new Map;for(let Be=0;Be<=Fe&&Be<$e.length;Be++){const B=$e[Be];if(B.length===0)continue;const ge=Be+1-zt;ge<0||ge<et.length&&Un.set(et[ge],B)}return Un}),be=R(()=>{const U=s.value,q=n.value;if(!U||!q)return 1;const me=bn([...U.entries].reverse());let X=0;for(const $e of me)if($e.isMain&&X++,$e.entry.id===q.id)return X;return 1}),J=R(()=>{const U=G.value;let q=0;for(const me of H.value)me<U&&q++;return q}),de=R(()=>Math.max(0,be.value-J.value)),he=R(()=>{const U=new Map;let q=de.value;for(const me of H.value)q++,U.set(me,q);return U}),W=R(()=>nd(F.value)),re=R(()=>{if(f.value==="chrono")return fe.value;const U=[];for(const q of W.value)for(const me of q.items)U.push(me);return U}),ke=R(()=>$.value!==null),j=R(()=>ke.value?$.value:n.value),ne=R(()=>ke.value?E.value:re.value),Q=R(()=>ke.value?C.value:g.value),fe=R(()=>F.value.map((U,q)=>({msg:U,origIdx:q}))),_e=R(()=>{const U=[];let q=0;for(const me of pe.value)me.future||(q+=me.msg.tokens||0),U.push(q);return U}),x=R(()=>{var U;return((U=n.value)==null?void 0:U.contextInfo.totalTokens)??0}),w=R(()=>{const U=[];for(const q of W.value)for(const me of q.items)U.push({origIdx:me.origIdx,category:q.category,preview:ju(me.msg,L.value)||"(empty)",tokens:me.msg.tokens||0});return U.filter(q=>q.tokens>0).sort((q,me)=>me.tokens-q.tokens).slice(0,3)}),z=R(()=>t.messageFocusTool),N=R(()=>t.messageFocusCategory),T=R(()=>t.messageFocusFile),I=R(()=>{var X;const U=t.messageFocusCategory;if(!U)return null;const q=new Set(W.value.map($e=>$e.category));if(q.has(U))return U;const me={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 me[U]||[])if(q.has($e))return $e;return((X=W.value[0])==null?void 0:X.category)??null}),b=R(()=>!!N.value&&!!I.value&&N.value!==I.value);function p(){$.value=null,E.value=[]}function m(U){p(),g.value=U,oe(U),h.value=!0}function y(){h.value=!1,p()}function P(U){U.key==="Escape"&&h.value&&(y(),U.preventDefault(),U.stopPropagation())}function O(U){var $e;const q=(U.contentBlocks||[])[0];if(!q)return`${U.role}|${U.tokens||0}|${(($e=U.content)==null?void 0:$e.slice(0,160))||""}`;if(q.type==="tool_result"){const Me=typeof q.content=="string"?q.content:JSON.stringify(q.content||"");return`${U.role}|${U.tokens||0}|tool_result|${q.tool_use_id||""}|${Me.slice(0,160)}`}if(q.type==="tool_use")return`${U.role}|${U.tokens||0}|tool_use|${q.id||""}|${q.name||""}|${JSON.stringify(q.input||{}).slice(0,120)}`;const me=q,X=String(me.text||me.thinking||"").slice(0,160);return`${U.role}|${U.tokens||0}|${String(me.type||"other")}|${X}`}function oe(U){const q=re.value[U];if(!q)return;const me=O(q.msg);v.value=me;let X=0;for(let $e=0;$e<=U;$e++)O(re.value[$e].msg)===me&&(X+=1);S.value=Math.max(1,X)}function ee(){const U=v.value;if(!U)return-1;let q=0;for(let me=0;me<re.value.length;me++)if(O(re.value[me].msg)===U&&(q+=1,q===S.value))return me;return-1}function ae(U){ke.value?C.value=U:(g.value=U,oe(U))}function te(U,q){let me=0;for(let X=0;X<W.value.length;X++){if(X===U)return me+q;me+=W.value[X].items.length}return 0}function Te(U){const q=re.value.findIndex(me=>me.origIdx===U);if(q>=0){if(f.value==="category"){const me=F.value[U];if(me){const X=It(me);r(X)}}m(q)}}function ve(U){const q=It(U);return(ut[q]||{color:"#4b5563"}).color}function we(U){const q=It(U);return(ut[q]||{label:q}).label}function De(U){var X;if(!s.value)return;const q=s.value.entries;let me=null;for(let $e=q.length-1;$e>=0;$e--)if((((X=q[$e].contextInfo.messages)==null?void 0:X.length)??0)>U){me=q[$e];break}me||(me=q[0]),t.pinEntry(me.id)}async function Re(U){var Me;const q=s.value;if(!q)return;const me=q.entries.find(Fe=>Fe.id===U);if(!me)return;await t.loadEntryDetail(U),t.entryDetailVersion;const X=t.getEntryDetail(U),$e=(Me=X==null?void 0:X.messages)!=null&&Me.length?X.messages:me.contextInfo.messages||[];$.value=me,E.value=$e.map((Fe,et)=>({msg:Fe,origIdx:et})),C.value=0,h.value=!0}function Ne(U){return It(U)==="tool_results"&&(U.tokens||0)>8e3}function Oe(U){if(It(U)!=="tool_results")return null;for(const q of U.contentBlocks||[])if(q.type==="tool_result")return q.tool_use_id&&L.value[q.tool_use_id]||null;return null}function lt(U){const q=z.value;if(!q)return{};const me=Oe(U);if(!me)return{"tool-muted":!0};const X=me.trim().toLowerCase(),$e=q.trim().toLowerCase();return{"tool-focused":X===$e,"tool-muted":X!==$e}}async function ot(){const U=I.value,q=t.messageFocusIndex,me=t.messageFocusOpenDetail,X=t.messageFocusTool,$e=t.messageFocusFile;t.clearMessageFocus();const Me=q;if(Me!=null){if(f.value==="chrono"){for(let Be=0;Be<4;Be++){await Ye(),Te(Me),await Ye();const B=c.value;if(B){const ye=Array.from(B.querySelectorAll(".chrono-row")).find(Ie=>Ie.classList.contains("selected"));if(ye){ye.scrollIntoView({block:"center",behavior:"smooth"});return}}}return}for(let Be=0;Be<4;Be++){await Ye();for(const B of W.value)if(B.items.find(ye=>ye.origIdx===Me)){r(B.category),await Ye(),await Ye(),Te(Me),await Ye();const ye=c.value;if(ye){const We=Array.from(ye.querySelectorAll(".msg-row")).find(an=>an.classList.contains("selected"));We&&We.scrollIntoView({block:"center",behavior:"smooth"})}return}}return}if($e){t.messageFocusFile=$e,f.value="chrono",await Ye();const Be=F.value,B=new Set;for(const ye of Be)if(ye.contentBlocks){for(const Ie of ye.contentBlocks)if(Ie.type==="tool_use"){const We=Ie;Cn(We)===$e&&B.add(We.id)}}let ge=-1;for(let ye=0;ye<Be.length;ye++){const Ie=Be[ye];if(Ie.contentBlocks){for(const We of Ie.contentBlocks){if(We.type==="tool_result"&&B.has(We.tool_use_id)){ge=ye;break}if(We.type==="tool_use"&&Cn(We)===$e&&ge<0){ge=ye;break}}if(ge>=0)break}}if(ge>=0)for(let ye=0;ye<4;ye++){await Ye();const Ie=c.value;if(!Ie)continue;const We=Array.from(Ie.querySelectorAll(".chrono-row"));if(We[ge]){We[ge].scrollIntoView({block:"center",behavior:"smooth"});return}}return}const Fe=U;if(!Fe)return;const et=me;if(et?f.value="chrono":f.value="category",f.value==="chrono"){for(let Be=0;Be<4;Be++){await Ye();const B=c.value;if(!B)continue;const ge=Array.from(B.querySelectorAll(".chrono-row"));let ye=-1;for(let Ie=F.value.length-1;Ie>=0;Ie--)if(It(F.value[Ie])===Fe){ye=Ie;break}if(ye>=0&&ge[ye]){ge[ye].scrollIntoView({block:"center",behavior:"smooth"}),et&&(await Ye(),Te(ye));return}}return}let zt=null;for(let Be=0;Be<4;Be++){if(await Ye(),zt=c.value,!zt)continue;r(Fe),await Ye();const B=zt.querySelector(`[data-category="${Fe}"]`);if(B){B.scrollIntoView({block:"center",behavior:"smooth"});break}}if(!zt)return;const Un=X;if(Un){const Be=Array.from(zt.querySelectorAll(".msg-row")),B=Un.trim().toLowerCase(),ge=Be.find(ye=>(ye.getAttribute("data-tool-name")||"").trim().toLowerCase()===B);ge&&ge.scrollIntoView({block:"center",behavior:"smooth"})}}function xt(){t.focusMessageCategory(I.value||t.messageFocusCategory||"tool_results")}function kt(){t.clearMessageFocus()}const Zt=R(()=>{const U=T.value;if(!U)return new Set;const q=F.value,me=new Set,X=new Set;for(let $e=0;$e<q.length;$e++){const Me=q[$e];if(Me.contentBlocks){for(const Fe of Me.contentBlocks)if(Fe.type==="tool_use"){const et=Fe;Cn(et)===U&&(X.add(et.id),me.add($e))}}}for(let $e=0;$e<q.length;$e++){const Me=q[$e];if(Me.contentBlocks)for(const Fe of Me.contentBlocks)Fe.type==="tool_result"&&X.has(Fe.tool_use_id)&&me.add($e)}return me});function Cn(U){var X;const q=U.input,me=(X=t.selectedSession)==null?void 0:X.workingDirectory;if(q&&typeof q=="object")for(const $e of["file_path","path","filePath"]){const Me=q[$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)),ad(Fe,me)}}return null}function dt(U){if(!T.value)return{};const me=Zt.value;return{"file-focused":me.has(U),"file-muted":!me.has(U)}}const wt=R(()=>{const U=T.value;return U?ti(U):""});return Ge(()=>t.messageFocusToken,async()=>{await ot()},{immediate:!0}),Ge(()=>t.inspectorTab,async U=>{U==="messages"&&await ot()}),Ge(()=>{var U;return(U=n.value)==null?void 0:U.id},async U=>{U!=null&&await t.loadEntryDetail(U)},{immediate:!0}),Ge(()=>{var U;return(U=A.value)==null?void 0:U.id},async U=>{var q;U!=null&&U!==((q=n.value)==null?void 0:q.id)&&await t.loadEntryDetail(U)},{immediate:!0}),Kt(async()=>{t.inspectorTab==="messages"&&t.messageFocusCategory&&await ot()}),Ge(re,()=>{if(!h.value||ke.value)return;const U=ee();if(U>=0&&U!==g.value){g.value=U;return}g.value>=re.value.length&&(g.value=Math.max(0,re.value.length-1),oe(g.value))}),(U,q)=>{const me=qn("tooltip");return n.value?(_(),k("div",{key:0,class:"messages-tab",onKeydown:P},[Le(Y(e_),{class:"default-theme","push-other-panes":!1},{default:nt(()=>[Le(Y(Pl),{"min-size":25,size:h.value?42:100},{default:nt(()=>[d("div",{ref_key:"msgListEl",ref:c,class:"msg-list"},[d("div",p6,[d("div",h6,[d("button",{class:ue({on:f.value==="chrono"}),onClick:q[0]||(q[0]=X=>f.value="chrono")},"Chronological",2),d("button",{class:ue({on:f.value==="category"}),onClick:q[1]||(q[1]=X=>f.value="category")},"By Category",2)]),D.value&&f.value==="chrono"?(_(),k("div",m6,[d("button",{class:ue({on:Y(t).messagesMode==="main"}),onClick:q[2]||(q[2]=X=>Y(t).messagesMode="main")},"Main",2),d("button",{class:ue({on:Y(t).messagesMode==="all"}),onClick:q[3]||(q[3]=X=>Y(t).messagesMode="all")},"All",2)])):se("",!0)]),f.value==="category"?(_(),k(ce,{key:0},[w.value.length>0?(_(),k("div",g6,[q[4]||(q[4]=d("div",{class:"heavy-title"},"Top heavy messages",-1)),d("div",v6,[(_(!0),k(ce,null,Ee(w.value,X=>(_(),k("button",{key:X.origIdx,class:"heavy-action",onClick:$e=>Te(X.origIdx)},[d("span",_6,M((Y(ut)[X.category]||{label:X.category}).label),1),d("span",y6,M(X.preview),1),d("span",x6,M(Y(Ce)(X.tokens)),1)],8,b6))),128))])])):se("",!0),z.value||b.value?(_(),k("div",k6,[z.value?(_(),k("span",w6,[q[5]||(q[5]=xe(" Filtered tool: ",-1)),d("b",null,M(z.value),1)])):se("",!0),b.value?(_(),k("span",C6,[q[6]||(q[6]=xe(" Showing ",-1)),d("b",null,M((Y(ut)[I.value||""]||{label:I.value}).label),1),q[7]||(q[7]=xe(" for ",-1)),d("b",null,M((Y(ut)[N.value||""]||{label:N.value}).label),1),q[8]||(q[8]=xe(". ",-1))])):se("",!0),z.value?(_(),k("button",{key:2,class:"focus-clear",onClick:bt(xt,["stop"])},"Show all")):se("",!0)])):se("",!0),(_(!0),k(ce,null,Ee(W.value,(X,$e)=>(_(),k("div",{key:X.category,class:"msg-group","data-category":X.category},[d("div",{class:"group-head",onClick:Me=>Y(u)(X.category)},[d("i",{class:ue(["group-arrow",Y(o)(X.category)||I.value===X.category?"i-carbon-chevron-down":"i-carbon-chevron-right"])},null,2),d("span",{class:"group-dot",style:Se({background:(Y(ut)[X.category]||{color:"#4b5563"}).color})},null,4),d("span",E6,M((Y(ut)[X.category]||{label:X.category}).label),1),d("span",S6,[xe(M(X.items.length)+" ",1),q[9]||(q[9]=d("span",{class:"group-sep"},"·",-1)),xe(" "+M(Y(Ce)(X.tokens))+" ",1),q[10]||(q[10]=d("span",{class:"group-sep"},"·",-1)),xe(" "+M(x.value>0?Math.round(X.tokens/x.value*100):0)+"% ",1)]),d("div",A6,[d("div",{class:"group-bar-fill",style:Se({width:(x.value>0?Math.round(X.tokens/x.value*100):0)+"%",background:(Y(ut)[X.category]||{color:"#4b5563"}).color})},null,4)])],8,T6),d("div",{class:ue(["group-items",{open:Y(o)(X.category)||I.value===X.category}])},[(_(!0),k(ce,null,Ee(X.items,(Me,Fe)=>{var et;return _(),k("div",{key:Me.origIdx,class:ue(["msg-row",[lt(Me.msg),{selected:h.value&&!ke.value&&((et=re.value[g.value])==null?void 0:et.origIdx)===Me.origIdx}]]),"data-tool-name":Oe(Me.msg)||"",onClick:zt=>m(te($e,Fe))},[d("span",F6,M(Me.msg.role==="user"?"›":Me.msg.role==="assistant"?"‹":"·"),1),d("span",M6,M(Y(ju)(Me.msg,L.value)||"(empty)"),1),He((_(),k("span",{class:ue(["msg-tok",{hot:(Me.msg.tokens||0)>2e3,oversized:Ne(Me.msg)}])},[xe(M(Y(Ce)(Me.msg.tokens||0)),1)],2)),[[me,Ne(Me.msg)?"Tool result exceeds 8K tokens — re-sent every turn":void 0]])],10,D6)}),128))],2)],8,$6))),128))],64)):f.value==="chrono"?(_(),k(ce,{key:1},[T.value?(_(),k("div",I6,[d("span",null,[q[11]||(q[11]=xe(" Filtered file: ",-1)),He((_(),k("b",P6,[xe(M(wt.value),1)])),[[me,T.value]]),d("span",L6,"("+M(Zt.value.size)+" messages)",1)]),d("button",{class:"focus-clear",onClick:bt(kt,["stop"])},"Show all")])):se("",!0),d("div",R6,[(_(!0),k(ce,null,Ee(pe.value,(X,$e)=>{var Me;return _(),k(ce,{key:$e},[le.value.has($e)?(_(!0),k(ce,{key:0},Ee(le.value.get($e),Fe=>He((_(),k("div",{key:"sub-"+Fe.id,class:"chrono-subagent-row",onClick:et=>Re(Fe.id)},[d("span",z6,M(Y(Ce)(Fe.contextInfo.totalTokens)),1),q[12]||(q[12]=d("span",{class:"chrono-cat-dot subagent-dot"},null,-1)),q[13]||(q[13]=d("span",{class:"chrono-type subagent-type"},"subagent",-1)),d("span",N6,M(Fe.agentLabel),1),d("span",B6,M(Y(kn)(Fe.contextInfo.model)),1)],8,O6)),[[me,"Click to view subagent context"]])),128)):se("",!0),he.value.has($e)?(_(),k("div",{key:1,class:ue(["chrono-turn-marker",{future:X.future}])},[d("span",j6,"Turn "+M(he.value.get($e)),1),q[14]||(q[14]=d("span",{class:"chrono-turn-line"},null,-1))],2)):se("",!0),X.future&&$e===G.value?(_(),k("div",H6,[...q[15]||(q[15]=[d("span",{class:"chrono-future-line"},null,-1),d("span",{class:"chrono-future-label"},"After this turn",-1),d("span",{class:"chrono-future-line"},null,-1)])])):se("",!0),d("div",{class:ue(["chrono-row",[dt(X.origIdx),{selected:!X.future&&h.value&&!ke.value&&((Me=re.value[g.value])==null?void 0:Me.origIdx)===X.origIdx,future:X.future,pruned:X.prunedGhost||!X.future&&l(X.msg,X.origIdx)}]]),style:Se({"--cat-border":ve(X.msg)}),onClick:Fe=>X.future?De(X.origIdx):m(X.origIdx)},[He((_(),k("span",U6,[xe(M(X.future?"":Y(Ce)(_e.value[$e])),1)])),[[me,X.future?"Click to jump to this turn":`Cumulative: ${Y(Ce)(_e.value[$e])} of ${Y(Ce)(x.value)}`]]),d("span",{class:"chrono-cat-dot",style:Se({background:ve(X.msg)})},null,4),d("span",V6,M(we(X.msg)),1),d("span",W6,M(Y(ju)(X.msg,L.value)||"(empty)"),1),He((_(),k("span",{class:ue(["chrono-tok",{hot:!X.future&&(X.msg.tokens||0)>2e3,oversized:!X.future&&Ne(X.msg)}])},[xe(M(Y(Ce)(X.msg.tokens||0)),1)],2)),[[me,!X.future&&Ne(X.msg)?"Tool result exceeds 8K tokens — re-sent every turn, crowding conversation history":void 0]]),!X.future&&!X.prunedGhost&&!l(X.msg,X.origIdx)?(_(),k("button",{key:0,class:"prune-btn",title:"Drop from context permanently",onClick:bt(Fe=>a(X.msg,X.origIdx,Fe),["stop"])},"✕",8,K6)):se("",!0)],14,q6)],64)}),128))])],64)):se("",!0)],512)]),_:1},8,["size"]),h.value?(_(),rt(Y(Pl),{key:0,"min-size":25,size:58},{default:nt(()=>[Le(f6,{entry:j.value,messages:ne.value,"selected-index":Q.value,onClose:y,onNavigate:ae},null,8,["entry","messages","selected-index"])]),_:1})):se("",!0)]),_:1})],32)):se("",!0)}}}),Z6=st(G6,[["__scopeId","data-v-bef84068"]]),J6={key:0,class:"timeline-tab"},Y6={class:"timeline-scope-controls"},X6={class:"scope-toggle"},Q6=["onClick"],ex={class:"panel panel--hero"},tx={class:"panel-head"},nx={class:"panel-controls"},sx={class:"mode-toggle"},ox={class:"panel-body"},ux={class:"chart-container"},rx={class:"y-axis"},ix=["onClick"],lx=["viewBox"],ax=["points"],cx=["aria-label"],dx={class:"chart-legend"},fx=["onClick"],px={key:0,class:"projection-badge"},hx={key:1,class:"projection-badge projection-badge--warn"},mx={class:"panel panel--secondary panel--spine panel--cost"},gx={class:"panel-head"},vx={class:"panel-sub"},bx={class:"panel-body"},_x={class:"chart-container"},yx={class:"y-axis"},xx=["onClick"],kx={class:"chart-legend"},wx=Qe({__name:"TimelineTab",setup(e){const t=Tt(),n=R({get:()=>t.timelineMode,set:T=>{t.timelineMode=T}}),s=R({get:()=>t.timelineStackMode,set:T=>{t.timelineStackMode=T}}),o=R({get:()=>t.timelineHiddenLegendKeys,set:T=>{t.timelineHiddenLegendKeys=T}}),u=R({get:()=>t.timelineShowLimitOverlay,set:T=>{t.timelineShowLimitOverlay=T}}),r=R({get:()=>t.timelineShowCacheOverlay,set:T=>{t.timelineShowCacheOverlay=T}}),i=ie(null),l=ie(null),a=R(()=>t.selectedSession),c=R(()=>t.selectedEntry),f=R(()=>a.value?bn([...a.value.entries].reverse()):[]),h=R(()=>n.value==="main"?f.value.filter(T=>T.isMain):f.value),g=R(()=>{let T=0;for(const I of h.value){const b=I.entry.contextInfo.totalTokens;b>T&&(T=b)}return T}),v=R(()=>{let T=0;for(const I of h.value){const b=I.entry.costUsd??0;b>T&&(T=b)}return T}),S=R(()=>h.value.length<=40),$=R(()=>Vu(F.value)),E=R(()=>Lg(h.value)),C=R(()=>Fg(h.value,f.value)),L=R(()=>h.value.map((T,I)=>{const b=C.value.get(T.entry.id)||[],p=b[0]||null,m=E.value[I]||I+1,y=p?`Turn ${m}: ${b.map(P=>`${P.label}: ${P.detail}`).join(", ")}`:"";return{entryId:T.entry.id,firstEvent:p,title:p?Ig(b,m):"",ariaLabel:y}}));function D(T){const I=new Set(o.value);I.has(T)?I.delete(T):I.add(T),o.value=I}const F=R(()=>{if(o.value.size===0)return g.value;let T=0;for(const I of h.value){const b=qu(I.entry,o.value);b>T&&(T=b)}return T});function A(T){const I=qu(T.entry,o.value);return Uu(I,F.value)}function V(T){return Sg(T.entry,o.value)}function G(T){return Uu(T.entry.costUsd??0,v.value)}function Z(T){t.pinEntry(T.id)}function K(T){t.setInspectorTab("messages"),t.focusMessageCategory(T)}const pe=R(()=>Pg(h.value.length)),H=R(()=>{const T=c.value;if(T&&T.contextLimit>0)return T.contextLimit;const I=h.value;return I.length>0?I[I.length-1].entry.contextLimit:0}),le=R(()=>{const T=F.value;return u.value?Math.max(T,H.value):T}),be=R(()=>{const T=le.value,I=H.value;return T===0||I===0?-1:(1-I/T)*100});function J(T){if(s.value==="normalized")return 100;if(!u.value)return A(T);const I=qu(T.entry,o.value);return Uu(I,le.value)}const de=R(()=>Vu(le.value)),he=R(()=>Vu(v.value)),W=[0,25,50,75,100],re=R(()=>{const T=c.value;return T?ld(T,f.value):null}),ke=R(()=>{const T=new Map;for(const I of h.value){const b=kn(I.entry.contextInfo.model);T.has(b)||T.set(b,El(I.entry.contextInfo.model,!0))}return Array.from(T.entries()).map(([I,b])=>({name:I,color:b}))}),j=R(()=>Object.entries(Et).map(([T,I])=>({key:T,name:I.label,color:I.color}))),ne=R(()=>{const T=h.value;if(T.length===0)return-1;if(n.value!=="all")return T.length-1;for(let I=T.length-1;I>=0;I--)if(T[I].isMain)return I;return-1}),Q=R(()=>{const T=h.value,I=ne.value;if(I<0)return!1;for(let b=0;b<=I;b++)if(!(n.value==="all"&&!T[b].isMain)&&kr(T[b].entry)!==null)return!0;return!1}),fe=R(()=>{const T=Math.max(0,ne.value+1);return T===0?"0 0 1 100":`0 0 ${T} 100`}),_e=R(()=>{const T=h.value.length,I=Math.max(0,ne.value+1);return T===0||I===0?"0%":`${I/T*100}%`}),x=R(()=>{const T=h.value,I=ne.value;if(T.length===0||I<0)return"";const b=[];for(let p=0;p<=I;p++){if(n.value==="all"&&!T[p].isMain)continue;const m=kr(T[p].entry);if(m===null)continue;const y=p+.5,P=(1-m)*100;b.push(`${y.toFixed(3)},${P.toFixed(2)}`)}return b.join(" ")}),w=R(()=>zg(f.value));function z(T){T&&(T.scrollLeft=T.scrollWidth)}function N(){Ye(()=>{z(i.value),z(l.value)})}return Kt(()=>{N()}),Ge(()=>{var T,I;return[((T=a.value)==null?void 0:T.id)??"",n.value,h.value.length,((I=h.value[h.value.length-1])==null?void 0:I.entry.id)??""]},()=>{N()},{immediate:!0}),(T,I)=>{const b=qn("tooltip");return a.value?(_(),k("div",J6,[d("div",Y6,[I[4]||(I[4]=d("span",{class:"scope-label"},"Scope",-1)),d("div",X6,[(_(),k(ce,null,Ee(["main","all"],p=>d("button",{key:"scope-"+p,class:ue({on:n.value===p}),onClick:m=>n.value=p},M(p==="all"?"All turns":"Main turns"),11,Q6)),64))])]),d("section",ex,[d("div",tx,[I[9]||(I[9]=d("span",{class:"panel-title"},"Token Timeline",-1)),d("div",nx,[Q.value?(_(),k("button",{key:0,class:ue(["overlay-toggle",{on:r.value}]),onClick:I[0]||(I[0]=p=>r.value=!r.value)},[...I[5]||(I[5]=[d("span",{class:"legend-dot legend-dot--cache"},null,-1),xe(" Cache ",-1)])],2)):se("",!0),s.value==="absolute"?(_(),k("button",{key:1,class:ue(["overlay-toggle",{on:u.value}]),onClick:I[1]||(I[1]=p=>u.value=!u.value)},[...I[6]||(I[6]=[d("span",{class:"legend-dot legend-dot--dashed"},null,-1),xe(" Limit ",-1)])],2)):se("",!0),d("div",sx,[He((_(),k("button",{class:ue({on:s.value==="absolute"}),onClick:I[2]||(I[2]=p=>s.value="absolute")},[...I[7]||(I[7]=[d("i",{class:"i-carbon-chart-column mode-icon"},null,-1),xe(" Abs ",-1)])],2)),[[b,"Absolute token counts"]]),He((_(),k("button",{class:ue({on:s.value==="normalized"}),onClick:I[3]||(I[3]=p=>s.value="normalized")},[...I[8]||(I[8]=[d("i",{class:"i-carbon-chart-maximum mode-icon"},null,-1),xe(" Pct ",-1)])],2)),[[b,"Normalized to 100% per turn"]])])])]),d("div",ox,[d("div",ux,[d("div",rx,[s.value==="normalized"?(_(!0),k(ce,{key:0},Ee([...W].reverse(),p=>(_(),k("span",{key:"norm-"+p},M(p)+"%",1))),128)):(_(!0),k(ce,{key:1},Ee([...u.value?de.value:$.value].reverse(),p=>(_(),k("span",{key:p},M(Y(Sl)(p,"tokens")),1))),128))]),d("div",{ref_key:"tokenChartScrollEl",ref:i,class:"chart-scroll"},[d("div",{class:ue(["bars-wrap",{sparse:S.value}])},[d("div",{class:ue(["bars",{sparse:S.value}])},[(_(!0),k(ce,null,Ee(h.value,(p,m)=>{var y;return _(),k("div",{key:p.entry.id,class:ue(["bar",{active:((y=c.value)==null?void 0:y.id)===p.entry.id,normalized:s.value==="normalized"}]),style:Se({height:J(p)+"%"}),onClick:P=>Z(p.entry)},[(_(!0),k(ce,null,Ee(V(p),P=>He((_(),k("div",{key:p.entry.id+"-"+P.key,class:"bar-segment",style:Se({height:P.pct+"%",background:P.color})},null,4)),[[b,Y(Og)(p.entry,P)]])),128))],14,ix)}),128))],2),s.value==="absolute"&&u.value&&be.value>=0?(_(),k("div",{key:0,class:"limit-line",style:Se({top:be.value+"%"})},null,4)):se("",!0),r.value&&x.value?(_(),k("svg",{key:1,class:"cache-line-svg",viewBox:fe.value,style:Se({width:_e.value}),preserveAspectRatio:"none"},[d("polyline",{points:x.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,ax)],12,lx)):se("",!0)],2),d("div",{class:ue(["events",{sparse:S.value}])},[(_(!0),k(ce,null,Ee(L.value,p=>(_(),k("div",{key:"evt-"+p.entryId,class:"event-slot"},[p.firstEvent?He((_(),k("button",{key:0,class:ue(["event-marker",`event-marker--${p.firstEvent.type}`]),type:"button","aria-label":p.ariaLabel},[xe(M(Y(Mg)(p.firstEvent)),1)],10,cx)),[[b,{content:p.title,html:!0}]]):se("",!0)]))),128))],2),d("div",{class:ue(["labels",{sparse:S.value}])},[(_(!0),k(ce,null,Ee(E.value,(p,m)=>(_(),k("div",{key:m,class:"label"},M(p&&(pe.value<=1||p%pe.value===0)?p:""),1))),128))],2)],512)]),d("div",dx,[(_(!0),k(ce,null,Ee(j.value,p=>(_(),k("button",{key:p.key,class:ue(["legend-item legend-item--interactive",{"legend-item--hidden":o.value.has(p.key)}]),onClick:m=>D(p.key)},[d("span",{class:"legend-dot",style:Se({background:o.value.has(p.key)?"var(--text-ghost)":p.color})},null,4),xe(" "+M(p.name),1)],10,fx))),128)),w.value.turnsRemaining!==null&&w.value.turnsRemaining>0?He((_(),k("span",px,[xe(" ~"+M(w.value.turnsRemaining)+" turns remaining ",1)])),[[b,`Growing ~${Y(Ce)(Math.round(w.value.growthPerTurn))}/turn over ${w.value.sinceCompaction} turns since last compaction`]]):w.value.turnsRemaining===0?He((_(),k("span",hx,[...I[10]||(I[10]=[xe(" At limit ",-1)])])),[[b,"Context window is at or near the limit"]]):se("",!0)])])]),d("section",mx,[d("div",gx,[I[11]||(I[11]=d("span",{class:"panel-title"},"Cost Timeline",-1)),d("span",vx,"Scope: "+M(n.value==="main"?"Main turns only":"All turns"),1)]),d("div",bx,[d("div",_x,[d("div",yx,[(_(!0),k(ce,null,Ee([...he.value].reverse(),p=>(_(),k("span",{key:"cost-"+p},M(Y(Sl)(p,"cost")),1))),128))]),d("div",{ref_key:"costChartScrollEl",ref:l,class:"chart-scroll"},[d("div",{class:ue(["bars-wrap",{sparse:S.value}])},[d("div",{class:ue(["bars",{sparse:S.value}])},[(_(!0),k(ce,null,Ee(h.value,p=>{var m;return He((_(),k("div",{key:"cost-"+p.entry.id,class:ue(["bar",{active:((m=c.value)==null?void 0:m.id)===p.entry.id}]),style:Se({height:G(p)+"%"}),onClick:y=>Z(p.entry)},[d("div",{class:"bar-cost",style:Se({background:Y(El)(p.entry.contextInfo.model,p.isMain)})},null,4)],14,xx)),[[b,Y(Rg)(p.entry,p.isMain)]])}),128))],2)],2),d("div",{class:ue(["labels",{sparse:S.value}])},[(_(!0),k(ce,null,Ee(E.value,(p,m)=>(_(),k("div",{key:"cost-label-"+m,class:"label"},M(p&&(pe.value<=1||p%pe.value===0)?p:""),1))),128))],2)],512)]),d("div",kx,[(_(!0),k(ce,null,Ee(ke.value,p=>(_(),k("span",{key:p.name,class:"legend-item"},[d("span",{class:"legend-dot",style:Se({background:p.color})},null,4),xe(" "+M(p.name),1)]))),128))])])]),Le(dd,{"diff-data":re.value,"show-when-empty":!!c.value,onCategoryClick:K},null,8,["diff-data","show-when-empty"])])):se("",!0)}}}),Cx=st(wx,[["__scopeId","data-v-e2d83061"]]),$x=["aria-label","aria-valuemax","aria-valuenow"],Tx={class:"scrubber-controls"},Ex=["disabled"],Sx={class:"readout-num"},Ax={class:"readout-total"},Dx=["disabled"],Fx={class:"spark-bars"},Mx={class:"tt-row tt-turn"},Ix={class:"tt-row"},Px={class:"tt-row tt-dim"},Lx=Qe({__name:"TurnScrubber",setup(e){const t=Tt(),n=ie(null),s=ie(!1),o=ie(null),u=R(()=>t.selectedSession),r=R(()=>t.selectedEntry),i=R(()=>u.value?bn([...u.value.entries].reverse()):[]),l=R(()=>i.value.filter(W=>W.isMain)),a=R(()=>l.value.map(W=>W.entry)),c=R(()=>l.value.map(W=>!W.isMain)),f=R(()=>a.value.length),h=R(()=>{const W=r.value;if(!W)return-1;let re=-1;for(const ke of i.value)if(ke.isMain&&re++,ke.entry.id===W.id)return re;return-1}),g=R(()=>{let W=0;for(const re of a.value)re.contextInfo.totalTokens>W&&(W=re.contextInfo.totalTokens);return W}),v=R(()=>{const W=g.value;return W===0?a.value.map(()=>({height:.15,tokens:0,cost:0,model:"",utilization:0})):a.value.map(re=>({height:Math.max(.08,re.contextInfo.totalTokens/W),tokens:re.contextInfo.totalTokens,cost:re.costUsd??0,model:kn(re.contextInfo.model),utilization:re.contextLimit>0?re.contextInfo.totalTokens/re.contextLimit:0}))}),S=R(()=>t.selectionMode!=="pinned"||h.value<0?!1:h.value<f.value-1),$=R(()=>S.value?Math.max(0,f.value-1-h.value):0),E=R(()=>S.value?$.value/f.value>=.12:!1),C=R(()=>((h.value+1)/f.value+1)/2*100),L=R(()=>{const W=[];let re=0,ke=-1;for(const j of i.value)j.isMain?(ke>=0&&W.push(re),re=0,ke++):re++;return ke>=0&&W.push(re),W}),D=R(()=>{if(o.value===null||o.value<0||o.value>=a.value.length)return null;const W=a.value[o.value],re=v.value[o.value],ke=L.value[o.value]||0;return{turn:o.value+1,tokens:Ce(W.contextInfo.totalTokens),cost:Ct(W.costUsd),model:re.model,subs:ke,isSub:c.value[o.value]||!1}});function F(W){pe(W)&&t.pinEntry(a.value[W].id)}function A(){t.followLive()}function V(){const W=h.value-1;pe(W)&&F(W)}function G(){const W=h.value+1;pe(W)&&F(W)}function Z(){r.value&&t.pinEntry(r.value.id)}function K(W){const re=n.value;if(!re||f.value===0)return-1;const ke=re.getBoundingClientRect(),ne=Math.max(0,Math.min(W.clientX-ke.left,ke.width))/ke.width;return Math.min(Math.floor(ne*f.value),f.value-1)}function pe(W){return W>=0&&W<f.value}function H(W){var ke,j;if(f.value===0)return;s.value=!0;const re=K(W);pe(re)&&F(re),(j=(ke=W.target)==null?void 0:ke.setPointerCapture)==null||j.call(ke,W.pointerId)}function le(W){const re=K(W);o.value=pe(re)?re:null,s.value&&pe(re)&&F(re)}function be(W){var re,ke;s.value=!1,(ke=(re=W.target)==null?void 0:re.releasePointerCapture)==null||ke.call(re,W.pointerId)}function J(){o.value=null}function de(W){W.key==="ArrowLeft"||W.key==="ArrowUp"?(W.preventDefault(),V()):W.key==="ArrowRight"||W.key==="ArrowDown"?(W.preventDefault(),G()):W.key==="Home"?(W.preventDefault(),F(0)):W.key==="End"?(W.preventDefault(),f.value>0&&F(f.value-1)):W.key==="Escape"&&(W.preventDefault(),A())}function he(W){return W>=.9?"var(--accent-red)":W>=.7?"var(--accent-amber)":"var(--accent-blue)"}return(W,re)=>u.value&&r.value&&f.value>=1?(_(),k("div",{key:0,class:"scrubber",role:"slider","aria-label":`Turn scrubber: turn ${h.value+1} of ${f.value}`,"aria-valuemin":1,"aria-valuemax":f.value,"aria-valuenow":h.value+1,tabindex:"0",onKeydown:de},[d("div",Tx,[d("button",{class:"ctrl-btn",disabled:h.value<=0,onClick:V,title:"Previous turn (←)","aria-label":"Previous turn"},[...re[0]||(re[0]=[d("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[d("path",{d:"M7 1L3 5L7 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Ex),d("span",{class:ue(["turn-readout",Y(t).selectionMode==="live"?"is-live":"is-pinned"])},[re[1]||(re[1]=d("span",{class:"readout-dot"},null,-1)),d("span",Sx,M(h.value+1),1),re[2]||(re[2]=d("span",{class:"readout-sep"},"/",-1)),d("span",Ax,M(f.value),1)],2),d("button",{class:"ctrl-btn",disabled:h.value<0||h.value>=f.value-1,onClick:G,title:"Next turn (→)","aria-label":"Next turn"},[...re[3]||(re[3]=[d("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[d("path",{d:"M3 1L7 5L3 9",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Dx)]),d("div",{ref_key:"trackEl",ref:n,class:"scrubber-track",onPointerdown:H,onPointermove:le,onPointerup:be,onPointerleave:J},[d("div",Fx,[(_(!0),k(ce,null,Ee(v.value,(ke,j)=>(_(),k("div",{key:j,class:ue(["spark-col",{active:j===h.value,hover:j===o.value&&j!==h.value,past:Y(t).selectionMode==="pinned"&&j>h.value,"is-sub":c.value[j]}])},[d("div",{class:"spark-bar",style:Se({height:ke.height*100+"%","--bar-color":he(ke.utilization)})},null,4),L.value[j]>0?(_(),k("div",{key:0,class:ue(["sub-dot",{"sub-burst":L.value[j]>=3}])},null,2)):se("",!0)],2))),128))]),h.value>=0?(_(),k("div",{key:0,class:ue(["playhead",{live:Y(t).selectionMode==="live"}]),style:Se({left:(h.value+.5)/f.value*100+"%"})},[...re[4]||(re[4]=[d("div",{class:"playhead-line"},null,-1),d("div",{class:"playhead-head"},null,-1)])],6)):se("",!0),E.value?(_(),k("div",{key:1,class:"new-turns-badge",style:Se({left:C.value+"%"}),onClick:bt(A,["stop"])}," +"+M($.value)+" new ",5)):se("",!0),Le(Pt,{name:"tooltip-fade"},{default:nt(()=>[D.value&&o.value!==h.value?(_(),k("div",{key:0,class:"scrub-tooltip",style:Se({left:Math.min(Math.max((o.value+.5)/f.value*100,8),92)+"%"})},[d("div",Mx,"T"+M(D.value.turn)+M(D.value.isSub?" (sub)":""),1),d("div",Ix,M(D.value.tokens)+" · "+M(D.value.cost),1),d("div",Px,M(D.value.model)+M(D.value.subs>0?` · ${D.value.subs} sub`:""),1)],4)):se("",!0)]),_:1})],544),Y(t).selectionMode==="live"?(_(),k("button",{key:0,class:"action-btn action-pin",onClick:Z,title:"Pin current turn to scrub history"},[...re[5]||(re[5]=[d("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[d("circle",{cx:"5",cy:"5",r:"3.5",stroke:"currentColor","stroke-width":"1"}),d("circle",{cx:"5",cy:"5",r:"1.5",fill:"currentColor"})],-1),xe(" Pin ",-1)])])):(_(),k("button",{key:1,class:"action-btn action-return",onClick:A,title:"Return to live (Esc)"},[...re[6]||(re[6]=[d("svg",{width:"10",height:"10",viewBox:"0 0 10 10",fill:"none"},[d("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),xe(" Live ",-1)])]))],40,$x)):se("",!0)}}),Rx=st(Lx,[["__scopeId","data-v-865993b3"]]),Ox={class:"tab-bar"},zx=["onClick"],Nx={class:"tab-content"},Bx=Qe({__name:"InspectorPanel",setup(e){const t=Tt(),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"}],s={overview:Qb,messages:Z6,timeline:Cx},o=R(()=>s[t.inspectorTab]);function u(i){i==="messages"&&t.clearMessageFocus(),t.setInspectorTab(i)}function r(i){i.key==="Escape"&&!i.defaultPrevented&&t.setView("dashboard")}return(i,l)=>(_(),k("div",{class:"inspector",onKeydown:r,tabindex:"-1"},[Le(Rx),d("div",Ox,[(_(),k(ce,null,Ee(n,a=>d("button",{key:a.id,class:ue(["tab-btn",{active:Y(t).inspectorTab===a.id}]),onClick:c=>u(a.id)},[d("i",{class:ue(a.icon)},null,2),xe(" "+M(a.label),1)],10,zx)),64))]),d("div",Nx,[(_(),rt(Za(o.value),{key:Y(t).inspectorTab}))])],32))}}),jx=st(Bx,[["__scopeId","data-v-74dad8d1"]]),Hx={class:"session-rail","aria-label":"Sessions"},qx={class:"rail-scroll"},Ux=["onClick"],Vx={class:"tile-meta"},Wx={key:0,class:"tile-tags"},Kx=["title"],Gx={key:0,class:"tile-tag-more"},Zx=Qe({__name:"SessionRail",setup(e){const t=Tt();function n(l){t.selectSession(l),t.setView("inspector")}function s(){t.setView("dashboard")}function o(l){var S;const a=kn(l.latestModel),c=l.entryCount+(l.entryCount===1?" turn":" turns"),f=Ct(l.totalCost),h=l.healthScore?`
|
|
54
|
+
Health ${l.healthScore.overall}/100 (${l.healthScore.rating})`:"",g=l.workingDirectory?`
|
|
55
|
+
${l.workingDirectory}`:"",v=(S=l.tags)!=null&&S.length?`
|
|
56
|
+
Tags: ${l.tags.join(", ")}`:"";return`${l.source} · ${a}
|
|
57
|
+
${c} · ${f}${h}${g}${v}`}function u(l){return l.contextLimit?Math.min(100,Math.round(l.latestTotalTokens/l.contextLimit*100)):0}function r(l){const a=u(l);return a>=80?"high":a>=60?"mid":"low"}const i={delay:{show:50,hide:0},placement:"right"};return(l,a)=>{const c=qn("tooltip");return _(),k("nav",Hx,[He((_(),k("button",{class:"rail-back",onClick:s},[...a[0]||(a[0]=[d("i",{class:"i-carbon-grid grid-icon"},null,-1)])])),[[c,{content:"Dashboard",...i}]]),a[1]||(a[1]=d("span",{class:"rail-label"},"SESSIONS",-1)),d("div",qx,[(_(!0),k(ce,null,Ee(Y(t).filteredSummaries,f=>{var h;return He((_(),k("button",{key:f.id,class:ue(["rail-tile",{active:f.id===Y(t).selectedSessionId,pulse:Y(t).recentlyUpdated.has(f.id)}]),onClick:g=>n(f.id)},[d("span",{class:ue(["tile-source",Y(oo)(f.source)])},M(f.source||"?"),3),d("span",Vx,M(f.entryCount)+"t",1),d("span",{class:ue(["tile-util",r(f)])},M(u(f))+"%",3),(h=f.tags)!=null&&h.length?(_(),k("span",Wx,[(_(!0),k(ce,null,Ee(f.tags.slice(0,3),(g,v)=>(_(),k("span",{key:g,class:ue(["tile-tag-dot",Y(t).getTagColorClass(v)]),title:g},null,10,Kx))),128)),f.tags.length>3?(_(),k("span",Gx,"+")):se("",!0)])):se("",!0)],10,Ux)),[[c,{content:o(f),...i}]])}),128))])])}}}),Jx=st(Zx,[["__scopeId","data-v-cdc746c2"]]),Yx={class:"compare-view"},Xx={class:"compare-header"},Qx={class:"compare-title"},ek={class:"compare-count"},tk={class:"legend"},nk={class:"lanes"},sk=["onMouseenter"],ok={class:"lane-header"},uk={class:"lane-identity"},rk={class:"lane-index"},ik={class:"lane-model"},lk={key:0,class:"lane-dir"},ak={class:"lane-metrics"},ck={class:"lm-cell"},dk={class:"lm-value"},fk={key:0,class:"lm-winner"},pk={class:"lm-cell"},hk={class:"lm-value green"},mk={key:0,class:"lm-winner"},gk={class:"lm-cell"},vk={key:0,class:"lm-winner"},bk={class:"lm-cell"},_k={key:1,class:"lm-value ghost"},yk={key:0,class:"lm-cell"},xk={class:"lm-value dim"},kk={key:1,class:"lm-cell"},wk={class:"lm-value dim"},Ck={key:0,class:"lm-winner"},$k={class:"lm-cell"},Tk={class:"lm-value dim"},Ek=["href","onClick"],Sk={class:"lane-body"},Ak={class:"turn-track"},Dk=["title","href","onMouseenter","onClick"],Fk={class:"turn-num"},Mk={key:0,class:"turns-empty"},Ik={key:0,class:"sparkline-col"},Pk={class:"sparkline-cell"},Lk={class:"sparkline",viewBox:"0 0 100 100",preserveAspectRatio:"none"},Rk=["y1","y2"],Ok=["d"],zk=["d"],Nk={class:"sparkline-val"},Bk={class:"sparkline-cell"},jk={class:"sparkline sparkline--cost",viewBox:"0 0 100 100",preserveAspectRatio:"none"},Hk=["d"],qk=["d"],Uk={class:"sparkline-val"},Vk={key:0,class:"comp-row"},Wk={class:"comp-tape"},Kk=["title"],Gk={key:0,class:"comp-seg-label"},Zk={class:"comp-total"},na="#ef4444",sa="#9ca3af",Jk=Qe({__name:"CompareView",setup(e){const t=Tt(),n=ie(null),s=ie(null),o=ie(null),u=R(()=>{const j=Object.entries(Et).map(([ne,Q])=>({key:ne,label:Q.label,color:Q.color}));return j.push({key:"error",label:"Error",color:na}),j.push({key:"stall",label:"Stall",color:sa}),j});function r(j){const ne={};for(const[Q,fe]of Object.entries(gs)){ne[Q]=0;for(const _e of fe){const x=j.find(w=>w.category===_e);x&&(ne[Q]+=x.tokens)}}return ne}function i(j){const ne=r(j);let Q="other",fe=0;for(const[_e,x]of Object.entries(ne))x>fe&&(Q=_e,fe=x);return Q}function l(j){const ne=r(j),Q=Object.values(ne).reduce((fe,_e)=>fe+_e,0);return Q===0?[]:Object.entries(ne).filter(([,fe])=>fe>0).sort((fe,_e)=>_e[1]-fe[1]).map(([fe,_e])=>{var x;return{key:fe,color:((x=Et[fe])==null?void 0:x.color)??"#475569",pct:_e/Q*100}})}function a(j){const ne=new Map;for(const _e of j){const x=_e.agentKey||"_default";ne.set(x,(ne.get(x)||0)+1)}let Q="_default",fe=0;for(const[_e,x]of ne)x>fe&&(Q=_e,fe=x);return Q}function c(j){const ne=a(j.entries);return j.entries.filter(fe=>(fe.agentKey||"_default")===ne).sort((fe,_e)=>new Date(fe.timestamp).getTime()-new Date(_e.timestamp).getTime()).map((fe,_e)=>{var T;const x=(fe.httpStatus??200)>=400,w=fe.stopReason==="max_tokens",z=i(fe.composition);let N;return x?N=na:w?N=sa:N=((T=Et[z])==null?void 0:T.color)??Et.other.color,{turnNumber:_e+1,entry:fe,dominantGroup:z,color:N,isError:x,isStall:w,tokens:fe.contextInfo.totalTokens,costUsd:fe.costUsd??0,segments:l(fe.composition)}})}function f(j){if(!j)return"";let ne=j;/^\/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(j){for(let ne=j.length-1;ne>=0;ne--){const Q=kr(j[ne].entry);if(Q!==null)return Q}return null}const g=R(()=>{const j=[];for(const ne of t.compareSessionIds){const Q=t.loadedConversations.get(ne),fe=t.summaries.find(te=>te.id===ne);if(!Q&&!fe)continue;const _e=Q?c(Q):[],x=Q?Q.entries.reduce((te,Te)=>te+(Te.costUsd??0),0):(fe==null?void 0:fe.totalCost)??0,w=Q?Q.entries.reduce((te,Te)=>{var ve;return te+(((ve=Te.timings)==null?void 0:ve.total_ms)??0)},0):0,z=_e.length>0?_e[_e.length-1].entry:null,N=_e.map(te=>te.tokens),T=_e.map(te=>te.costUsd),I=Q?(z==null?void 0:z.healthScore)??(fe==null?void 0:fe.healthScore):fe==null?void 0:fe.healthScore,b=(z==null?void 0:z.contextInfo.totalTokens)??(fe==null?void 0:fe.latestTotalTokens)??0,p=(z==null?void 0:z.contextLimit)??(fe==null?void 0:fe.contextLimit)??2e5,m=(fe==null?void 0:fe.latestModel)??(z==null?void 0:z.contextInfo.model)??"",y=(fe==null?void 0:fe.source)??(Q==null?void 0:Q.source)??"",P=(fe==null?void 0:fe.workingDirectory)??(Q==null?void 0:Q.workingDirectory)??null,O=Q?Q.entries.reduce((te,Te)=>{var ve;return te+(((ve=Te.usage)==null?void 0:ve.outputTokens)??0)},0):0,oe=z?l(z.composition):[],ee=h(_e),ae=O>0&&x>0?x/O*1e3:null;j.push({id:ne,source:y,model:m,directory:f(P),turnCount:_e.length,totalCost:x,totalDurationMs:w,finalTokens:b,contextLimit:p,healthRating:(I==null?void 0:I.rating)??"unknown",healthScore:(I==null?void 0:I.overall)??0,turns:_e,tokenHistory:N,costHistory:T,utilization:p>0?b/p:0,outputTokens:O,cacheRate:ee,costPerOutputK:ae,finalComposition:oe})}return j}),v=R(()=>{let j=0;for(const ne of g.value)for(const Q of ne.turns)Q.tokens>j&&(j=Q.tokens);return j||1}),S=R(()=>{let j=0;for(const ne of g.value)for(const Q of ne.turns)Q.costUsd>j&&(j=Q.costUsd);return j||.01}),$=R(()=>{let j=0;for(const ne of g.value){j=Math.max(j,ne.contextLimit);for(const Q of ne.tokenHistory)Q>j&&(j=Q)}return j||1});function E(j){const _e=8+j/v.value*24;return Math.round(_e)+"px"}function C(j){return j<=0?0:.15+j/S.value*.85}function L(j,ne){if(j.length===0)return"";const Q=100,fe=100,_e=j.length>1?Q/(j.length-1):0;return j.map((x,w)=>{const z=j.length===1?Q/2:w*_e,N=fe-x/ne*fe;return`${w===0?"M":"L"}${z.toFixed(1)},${N.toFixed(1)}`}).join(" ")}function D(j,ne){if(j.length===0)return"";const Q=100,fe=100,_e=j.length>1?Q/(j.length-1):0,x=j.map((N,T)=>{const I=j.length===1?Q/2:T*_e,b=fe-N/ne*fe;return`${T===0?"M":"L"}${I.toFixed(1)},${b.toFixed(1)}`}).join(" "),w=j.length===1?Q/2:(j.length-1)*_e,z=j.length===1?Q/2:0;return`${x} L${w.toFixed(1)},${fe} L${z.toFixed(1)},${fe} Z`}function F(j){const ne=$.value;return 100-j/ne*100}const A=R(()=>{let j=0;for(const ne of g.value)for(const Q of ne.costHistory)Q>j&&(j=Q);return j||.01});function V(j,ne){return n.value===null||ne===n.value?1:j===s.value?.3:.4}function G(j){var Q;const ne=[`Turn ${j.turnNumber}`,`Model: ${kn(j.entry.contextInfo.model)}`,`Context: ${Ce(j.entry.contextInfo.totalTokens)}`,`Cost: ${Ct(j.entry.costUsd)}`,`Dominant: ${((Q=Et[j.dominantGroup])==null?void 0:Q.label)??j.dominantGroup}`];return j.entry.timings&&ne.push(`Duration: ${_r(j.entry.timings.total_ms)}`),j.entry.stopReason&&ne.push(`Stop: ${j.entry.stopReason}`),j.isError&&ne.push(`HTTP ${j.entry.httpStatus}`),ne.join(`
|
|
58
|
+
`)}function Z(j,ne){return`#session/${encodeURIComponent(j)}?tab=overview&turn=${ne}`}function K(j){return`#session/${encodeURIComponent(j)}?tab=overview`}function pe(j,ne){n.value=ne,s.value=j}function H(){n.value=null,s.value=null}function le(j,ne,Q){j.ctrlKey||j.metaKey||j.button===1||(j.preventDefault(),t.exitCompare("inspector"),t.selectSession(ne),t.pinEntry(Q.entry.id))}function be(j,ne){j.ctrlKey||j.metaKey||j.button===1||(j.preventDefault(),t.exitCompare("inspector"),t.setInspectorTab("overview"),t.selectSession(ne))}function J(){t.exitCompare("dashboard")}function de(j){return j>=.8?"util-high":j>=.6?"util-mid":"util-low"}function he(j){o.value=j}function W(){o.value=null}function re(j){return j>=.01?"$"+j.toFixed(2)+"/K":"$"+j.toFixed(3)+"/K"}const ke=R(()=>{const j=g.value;if(j.length<2)return null;const ne=j.map(I=>I.totalCost),Q=j.map(I=>I.finalTokens),fe=j.map(I=>I.turnCount),_e=j.map(I=>I.costPerOutputK),x=Math.min(...ne),w=Math.min(...Q),z=Math.min(...fe),N=_e.filter(I=>I!==null),T=N.length>0?Math.min(...N):null;return j.map(I=>({isCheapest:I.totalCost<=x,isLeanest:I.finalTokens<=w,isFewest:I.turnCount<=z,isMostEfficient:T!==null&&I.costPerOutputK!==null&&I.costPerOutputK<=T}))});return(j,ne)=>(_(),k("div",Yx,[d("header",Xx,[d("button",{class:"back-btn",onClick:J},[...ne[0]||(ne[0]=[d("i",{class:"i-carbon-arrow-left"},null,-1),xe(" Dashboard ",-1)])]),d("h1",Qx,[ne[1]||(ne[1]=xe(" Compare ",-1)),d("span",ek,M(g.value.length)+" sessions",1)]),d("div",tk,[(_(!0),k(ce,null,Ee(u.value,Q=>(_(),k("span",{key:Q.key,class:"legend-chip"},[d("span",{class:"legend-swatch",style:Se({background:Q.color})},null,4),xe(" "+M(Q.label),1)]))),128))])]),d("div",nk,[(_(!0),k(ce,null,Ee(g.value,(Q,fe)=>(_(),k("div",{key:Q.id,class:ue(["lane",{"lane--focused":o.value===Q.id,"lane--dimmed":o.value!==null&&o.value!==Q.id}]),onMouseenter:_e=>he(Q.id),onMouseleave:W},[d("div",ok,[d("div",uk,[d("div",rk,M(fe+1),1),d("span",{class:ue(["source-badge",Y(oo)(Q.source)])},M(Q.source||"?"),3),d("span",ik,M(Y(kn)(Q.model)),1),Q.directory?(_(),k("span",lk,M(Q.directory),1)):se("",!0)]),d("div",ak,[d("div",ck,[d("span",dk,M(Q.turnCount),1),ne[2]||(ne[2]=d("span",{class:"lm-key"},"turns",-1)),ke.value&&ke.value[fe].isFewest?(_(),k("span",fk)):se("",!0)]),d("div",pk,[d("span",hk,M(Y(Ct)(Q.totalCost)),1),ne[3]||(ne[3]=d("span",{class:"lm-key"},"cost",-1)),ke.value&&ke.value[fe].isCheapest?(_(),k("span",mk)):se("",!0)]),d("div",gk,[d("span",{class:ue(["lm-value",de(Q.utilization)])},M(Math.round(Q.utilization*100))+"% ",3),ne[4]||(ne[4]=d("span",{class:"lm-key"},"context",-1)),ke.value&&ke.value[fe].isLeanest?(_(),k("span",vk)):se("",!0)]),d("div",bk,[Q.healthRating!=="unknown"?(_(),k("span",{key:0,class:"lm-value lm-health",style:Se({color:Y(xr)(Q.healthRating)})},M(Q.healthScore),5)):(_(),k("span",_k,"--")),ne[5]||(ne[5]=d("span",{class:"lm-key"},"health",-1))]),Q.cacheRate!==null?(_(),k("div",yk,[d("span",xk,M(Y(yr)(Q.cacheRate)),1),ne[6]||(ne[6]=d("span",{class:"lm-key"},"cache",-1))])):se("",!0),Q.costPerOutputK!==null?(_(),k("div",kk,[d("span",wk,M(re(Q.costPerOutputK)),1),ne[7]||(ne[7]=d("span",{class:"lm-key"},"$/out",-1)),ke.value&&ke.value[fe].isMostEfficient?(_(),k("span",Ck)):se("",!0)])):se("",!0),d("div",$k,[d("span",Tk,M(Q.totalDurationMs>0?Y(_r)(Q.totalDurationMs):"--"),1),ne[8]||(ne[8]=d("span",{class:"lm-key"},"duration",-1))])]),d("a",{class:"inspect-btn",title:"Open in inspector",href:K(Q.id),onClick:_e=>be(_e,Q.id)},[...ne[9]||(ne[9]=[d("i",{class:"i-carbon-arrow-right"},null,-1)])],8,Ek)]),d("div",Sk,[d("div",Ak,[(_(!0),k(ce,null,Ee(Q.turns,_e=>(_(),k("a",{key:_e.turnNumber,class:ue(["turn-col",{"turn-col--error":_e.isError,"turn-col--stall":_e.isStall,"turn-col--crosslit":n.value===_e.turnNumber&&s.value!==Q.id}]),style:Se({opacity:V(Q.id,_e.turnNumber)}),title:G(_e),href:Z(Q.id,_e.turnNumber),onMouseenter:x=>pe(Q.id,_e.turnNumber),onMouseleave:H,onClick:x=>le(x,Q.id,_e)},[d("div",{class:"turn-bar",style:Se({height:E(_e.tokens)})},[(_(!0),k(ce,null,Ee(_e.segments,x=>(_(),k("div",{key:x.key,class:"turn-seg",style:Se({flex:x.pct,background:x.color})},null,4))),128))],4),d("div",{class:"cost-dot",style:Se({opacity:C(_e.costUsd)})},null,4),d("span",Fk,M(_e.turnNumber),1)],46,Dk))),128)),Q.turns.length===0?(_(),k("div",Mk," Loading... ")):se("",!0)]),Q.tokenHistory.length>1?(_(),k("div",Ik,[d("div",Pk,[(_(),k("svg",Lk,[d("line",{x1:"0",y1:F(Q.contextLimit),x2:"100",y2:F(Q.contextLimit),class:"sparkline-limit"},null,8,Rk),d("path",{d:D(Q.tokenHistory,$.value),class:"sparkline-area"},null,8,Ok),d("path",{d:L(Q.tokenHistory,$.value),class:"sparkline-line"},null,8,zk)])),d("span",Nk,[xe(M(Y(Ce)(Q.finalTokens)),1),ne[10]||(ne[10]=d("span",{class:"sparkline-sep"},"/",-1)),xe(M(Y(Ce)(Q.contextLimit)),1)])]),d("div",Bk,[(_(),k("svg",jk,[d("path",{d:D(Q.costHistory,A.value),class:"sparkline-area sparkline-area--cost"},null,8,Hk),d("path",{d:L(Q.costHistory,A.value),class:"sparkline-line sparkline-line--cost"},null,8,qk)])),d("span",Uk,M(Y(Ct)(Q.totalCost))+" total",1)])])):se("",!0)]),Q.finalComposition.length>0?(_(),k("div",Vk,[d("div",Wk,[(_(!0),k(ce,null,Ee(Q.finalComposition,_e=>{var x,w;return _(),k("div",{key:_e.key,class:"comp-seg",style:Se({flex:_e.pct,background:_e.color}),title:`${((x=Y(Et)[_e.key])==null?void 0:x.label)??_e.key}: ${Math.round(_e.pct)}%`},[_e.pct>=18?(_(),k("span",Gk,M(((w=Y(Et)[_e.key])==null?void 0:w.label)??_e.key),1)):se("",!0)],12,Kk)}),128))]),d("span",Zk,M(Y(Ce)(Q.finalTokens)),1)])):se("",!0)],42,sk))),128))])]))}}),Yk=st(Jk,[["__scopeId","data-v-c274f2d8"]]),Xk={},Qk={class:"empty"};function e4(e,t){return _(),k("div",Qk,[...t[0]||(t[0]=[gc('<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 t4=st(Xk,[["render",e4],["__scopeId","data-v-213dcf0e"]]),n4={key:0,class:"consent-banner"},s4=Qe({__name:"AnalyticsConsent",setup(e){const t=ie(!1);Kt(()=>{t.value=od()===null});function n(){Tl("granted"),rd(),Ds("dashboard"),t.value=!1}function s(){Tl("denied"),t.value=!1}return(o,u)=>(_(),rt(Pt,{name:"consent-slide"},{default:nt(()=>[t.value?(_(),k("div",n4,[d("div",{class:"consent-content"},[u[0]||(u[0]=d("span",{class:"consent-text"},[d("strong",null,"Help improve Context Lens?"),xe(" Anonymous page view stats only — never prompts, sessions, or API keys. ")],-1)),d("div",{class:"consent-actions"},[d("button",{class:"consent-btn consent-btn--accept",onClick:n},"Sure"),d("button",{class:"consent-btn consent-btn--decline",onClick:s},"No thanks")])])])):se("",!0)]),_:1}))}}),o4=st(s4,[["__scopeId","data-v-859e0c61"]]),u4={class:"app"},r4={class:"app-body"},i4={key:0,class:"app-loading"},l4={key:0,class:"rail-wrapper"},a4={class:"main-content"},c4={key:"inspector",class:"inspector-content"},d4={key:1,class:"loading-placeholder"},oa="#sessions",f4=Qe({__name:"App",setup(e){const t=Tt(),n=ie(!1),s=ie(!1),o=["overview","messages","timeline"];let u=null;const r=ie(null),i=R(()=>{const E=t.view,C=r.value;return C===null?"view-instant":C==="dashboard"&&E==="inspector"?"view-slide-forward":C==="inspector"&&E==="dashboard"?"view-slide-back":"view-instant"});Ge(()=>t.view,(E,C)=>{r.value!==null?r.value=C:r.value=E});const l=!!window.__CONTEXTLENS_SHARED_SESSION_URL__,{connected:a}=o1("/api/events",E=>{t.handleSSEEvent(E)},{disabled:l});Ge(a,E=>{t.connected=E});function c(E){const C=E.match(/^#session\/([^?]+)(?:\?(.*))?$/);if(!C)return{sessionId:null,tab:null,turn:null};const D=decodeURIComponent(C[1]).trim()||null;if(!D)return{sessionId:null,tab:null,turn:null};const F=new URLSearchParams(C[2]??""),A=F.get("tab"),V=A&&o.includes(A)?A:null,G=F.get("turn"),Z=G?Number.parseInt(G,10):NaN,K=Number.isFinite(Z)&&Z>0?Z:null;return{sessionId:D,tab:V,turn:K}}function f(E){return bn([...E.entries].reverse()).filter(C=>C.isMain).map(C=>C.entry)}function h(){if(t.selectionMode!=="pinned")return null;const E=t.selectedSession;if(!E)return null;const C=f(E);if(C.length===0)return null;const L=t.selectedEntryId;if(L==null)return null;const D=C.findIndex(A=>A.id===L);if(D<0)return null;const F=D+1;return F<C.length?F:null}function g(E){const C=E.match(/^#compare\/(.+)$/);return C?C[1].split(",").map(L=>decodeURIComponent(L.trim())).filter(Boolean):null}async function v(){n.value=!0;try{const E=window.location.hash||"",C=g(E);if(C&&C.length>=2){const A=C.filter(V=>t.summaries.some(G=>G.id===V));if(A.length>=2){await t.enterCompare(new Set(A));return}}const{sessionId:L,tab:D,turn:F}=c(E);if(L){if(!t.summaries.some(V=>V.id===L)){t.setView("dashboard");return}if(await t.selectSession(L),D&&t.setInspectorTab(D),F!=null&&t.selectedSession){const V=f(t.selectedSession);if(V.length>0){const G=Math.min(Math.max(F,1),V.length);G<V.length?t.pinEntry(V[G-1].id):t.followLive()}else t.followLive()}else t.followLive();t.setView("inspector");return}t.setView("dashboard")}finally{n.value=!1}}function S(){if(n.value)return;let E=oa;if(t.view==="compare"&&t.compareSessionIds.size>=2)E=`#compare/${Array.from(t.compareSessionIds).map(L=>encodeURIComponent(L)).join(",")}`;else if(t.view==="inspector"&&t.selectedSessionId){const C=new URLSearchParams;C.set("tab",t.inspectorTab);const L=h();L!=null&&C.set("turn",String(L));const D=C.toString();E=`#session/${encodeURIComponent(t.selectedSessionId)}${D?`?${D}`:""}`}window.location.hash!==E&&(window.location.hash=E)}function $(){v()}return Ge(()=>{var E;return[t.view,t.selectedSessionId,t.inspectorTab,t.selectionMode,t.selectedEntryId,(E=t.selectedSession)==null?void 0:E.entries.length,t.compareMode,t.compareSessionIds.size]},()=>{S()}),Ge(()=>[t.view,t.inspectorTab],([E,C])=>{E==="inspector"?Ds(`inspector/${C}`):(E==="dashboard"||E==="compare")&&Ds(E)}),Kt(async()=>{try{t.initializeDensity(),l||rd();const E=l?window.__CONTEXTLENS_SHARED_SESSION_URL__:void 0;E?await t.loadShared(E):(await t.load(),window.location.hash||(window.location.hash=oa),await v(),t.view==="inspector"?Ds(`inspector/${t.inspectorTab}`):(t.view==="dashboard"||t.view==="compare")&&Ds(t.view),window.addEventListener("hashchange",$),u=setInterval(()=>{document.hidden||t.load()},5e3))}finally{s.value=!0}}),_s(()=>{window.removeEventListener("hashchange",$),u&&(clearInterval(u),u=null)}),(E,C)=>(_(),k("div",u4,[Le(sm),d("div",r4,[s.value?(_(),k(ce,{key:1},[Le(Pt,{name:"rail-slide"},{default:nt(()=>[Y(t).view==="inspector"?(_(),k("div",l4,[Le(Jx)])):se("",!0)]),_:1}),d("div",a4,[Le(Pt,{name:i.value},{default:nt(()=>[Y(t).view==="dashboard"?(_(),rt(Eg,{key:"dashboard"})):Y(t).view==="compare"?(_(),rt(Yk,{key:"compare"})):Y(t).view==="inspector"?(_(),k("div",c4,[Y(t).selectedSession?(_(),rt(jx,{key:0})):(_(),k("div",d4,[...C[1]||(C[1]=[d("div",{class:"loading-spinner"},null,-1)])]))])):(_(),rt(t4,{key:"empty"}))]),_:1},8,["name"])])],64)):(_(),k("div",i4,[...C[0]||(C[0]=[d("div",{class:"loading-spinner"},null,-1)])]))]),l?se("",!0):(_(),rt(o4,{key:0}))]))}}),p4=st(f4,[["__scopeId","data-v-a7b8096a"]]),di=Cc(p4);di.use(bp());di.use(Dh,{themes:{tooltip:{delay:{show:200,hide:0},distance:8,overflowPadding:8}}});di.mount("#app");
|